玉澜
d9c74fbe96
feat: add result schemas and devapp pagination
2026-08-10 21:23:23 +08:00
玉澜
03bda02e04
test: close unified framework contract coverage
2026-08-10 14:41:41 +08:00
玉澜
2dd067562e
feat: add unified command result framework core
2026-08-10 12:22:46 +08:00
玉澜
ad5909b8a6
docs(corecmd): describe risk/gate homology branches as residual bridges
2026-08-04 10:18:16 +08:00
玉澜
ec7f4deaf4
refactor(corecmd): retire zombie annotation paths and fix alias validation
...
Make enum and required-flag validation alias-aware via a shared
flagNameProvided/EffectiveValue path so values passed through flag
aliases are no longer skipped; drop the fully-migrated runtime risk/gate
annotation bridge and the orphaned tool-metadata/title annotation
writers, trimming the cli seam re-exports accordingly.
2026-08-04 08:36:26 +08:00
玉澜
517eedb412
refactor(schema): drop dead cli.RegisterRuntimeContractFinal wrapper and legacy catalog label
...
- 删除 cli.RegisterRuntimeContractFinal 包装器:生产侧零调用(全部走
corecmd.New 内部注册或 contractfinal 直调),9 处测试调用迁移到
contractfinal.RegisterRuntimeContractFinal
- 删除死常量 ProvenanceEmbeddedCommandCatalog(全库零引用的 legacy
wire label;运行时装配统一打 SchemaSourceRuntimeAssembled)
- 同步 6 处文档/注释:AGENTS.md、RFC §277、contract/final.go、
contractfinal/store.go、contractfinal/doc.go、corecmd.go、
contract/doc.go、contract_register_seam_test.go 的死符号钉扎改为
import 前缀分层检查兜底
2026-08-03 13:26:34 +08:00
玉澜
ea43db1d64
refactor(schema): drop cli shim packages, add testseam swap, consolidate ForTest helpers
...
- import 统一:删除 cli/contractfinal 与 cli/runtimeannotate 垫片包,
26 个消费文件一律直引 corecmd/*;cli 根仅保留 runtime_schema_seam.go
包内别名,依赖图保持单向无环
- 新增 internal/testseam.Swap[T]:包级 var 注入缝置换由 t.Cleanup
结构性恢复;迁移 pipeline*/stdinIsTerminalFn/loadReviewedCommandRegistry/
schemaCommandCatalogError/schemaParameterBindingData/finalSchemaAgentMetadata
六组核心缝(26+ 处)
- ForTest 辅助归拢到 per-package fortest.go(corecmd/contract、
corecmd/contractfinal、shortcut、cli),生产文件只留真逻辑
- 文档同步:runtime_schema_seam.go / runtimeannotate/doc.go 注释、
CHANGELOG、RFC §278-279、AGENTS.md
2026-08-03 00:50:16 +08:00
玉澜 and Cursor
286a84edcd
refactor(cmdcore): move annotate/ContractFinal store under corecmd
...
Break the remaining corecmd→cli reverse dependency by owning
runtimeannotate and contractfinal on the framework side, with cli
keeping thin re-exports. Document the three authoring tiers and that
Shortcut may use DeclareLeafMetadata.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 00:10:03 +08:00