Repository navigation
feat(sdk): 原生构建、测试、运行调试准备与只读模型输入 - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原生宿主现在可以向工作区 Provider 发送构建、测试、运行及调试准备请求。SDK 此前只提供模型和依赖,插件作者无法通过对应的类型化入口实现这些流程。本 PR 为 Node/Java SDK 补齐处理器、版本协商、操作进度和只读模型输入,并用无页面示例验证真实 Core 链路。
配套宿主:1lck/Lithe-IDEA#1517;总计划:1lck/Lithe-IDEA#1495。Maven 插件的实际接入见 Draft PR #7。
功能
build.execute/test/discoverTests/prepareRun/prepareDebug和 Java 对应具名入口,返回类型化任务结果、测试清单、可移植运行计划及原生程序调试计划。litheBuild版本 1–6;方法分别要求 2/3/4/5,包含modelInputs的请求要求 6。旧版本明确拒绝新方法/输入,不调用私有函数或宿主命令兜底。sdk-e2e.mjs增加显式工作区源码快照模式,仅复制 rust/shared 到独立可丢弃 checkout,源工作树/index 只读,不复制缓存;补充工具测试、开发指南和示例模块。验证
58ca81cf66c5c6e281c7df73ac67adb3526174f3。整轮工作流因最新 preview 的调试契约漂移失败,不能视为全绿;镜像须在主 PR 合并后同步。host-ref手动入口,可在合并前固定宿主 SHA 运行原生场景;默认/定时检查仍验证 preview,不放松镜像、版本准入或旧契约兼容检查。已按用户要求标记为 Ready for review(Open)。合并发布仍按依赖顺序:宿主协议需先进入 preview;合并后用
node scripts/contract.mjs sync --revision <merged preview commit>同步精确契约镜像,再复跑锁定/preview E2E并安排新 SDK 版本发布。本 PR 没有手工编辑 contract/v1、契约锁、版本号、标签或发布 SDK。Java/Maven 业务迁移、真实 LLDB/JDT 和 Windows 宿主实现不在此处。