玉澜 and Cursor
7773eb27f1
refactor(corecmd): rename package and finish ContractFinal leaf migration
...
Move cmdcore to corecmd, declare attendance ContractFinal in helpers, keep
Sheet destructive commands --yes-only, and align catalog/policy provenance.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-31 14:13:46 +08:00
玉澜
f0d558a0d1
refactor(shortcut): route live commands through cmdcore
2026-07-31 00:21:33 +08:00
玉澜
340f01e95c
refactor(cmdcore): align leaf safety with schema contract
2026-07-30 23:03:32 +08:00
玉澜 and Cursor
a5cefd67f3
feat(cmdcore): typed SchemaDecl final source with assembly guards
...
- SchemaDecl on CommandSpec/LeafSpec declares the final ToolSpec payload;
framework converts in-process (no JSON bridge) and Schema assembly
pass-throughs it.
- Assembly fails closed on declared identity mismatched with the bound
entry and on reviewed fields in the declaration payload.
- RFC/homology/AGENTS docs pin declare=final-source, safety precedence
Final > Risk > gate, and light runtime write semantics.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 20:36:33 +08:00
玉澜 and Cursor
8c9c22f4b0
feat(cmdcore): declare-or-annotate homology with full ToolSpec authority
...
Pin path A: Contract fields declare CLI surface; write-guard uses runtime_gate;
RFC §5.0/§5.0.4 covers every Schema ToolSpec field group so none are ownerless.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-30 20:36:31 +08:00
克谨
1fb966dbff
fix(cli): centralize parameter alias generation entrypoint
2026-07-29 13:17:55 +08:00
玉澜
51dc237d8a
feat: declarative LeafSpec command framework + schema generation/consumption separation
...
== LeafSpec command framework (internal/helpers/leaf.go) ==
Declarative command construction: LeafSpec/LeafFlag/NewLeafCommand with
Call (pluggable dispatch), LeafInt, PostMount, Trim, Validate. Collapses
per-command hand-written required validation, alias/env fallback, value
transform, and toolArgs assembly into one declarative path.
== devapp migration (28/31 commands) ==
All MCP-direct devapp leaf commands migrated to LeafSpec. Factories
(devAppCall/devAppCallCursor/devAppMeta) fold 33 repeated closures.
fakeDevAppRunner asserts toolArgs for every migrated command. 4 complex
commands (delete/robot submit/result/config) kept hand-written.
== Schema generation/consumption separation ==
- gen.go: isolated //go:generate pragmas from business code.
- command_meta.go: ResolveMeta(cliPath) -> CommandMeta{Identity,Safety,Selection}.
- command_safety.go: SafetyForCLIPath + RenderSafetyAnnotation; safety metadata
flows from embedded catalog into --help output.
- calendar.go HelpFunc fix: delegates to root HelpFunc at help-time.
- schema_catalog_structure.go: closed catalog structure validation gate.
== Registry + catalog per-product sharding ==
schema_command_registry and schema_catalog split into per-product shards,
eliminating concurrent-PR merge conflicts on these files.
== MCP metadata refresh tool ==
cmd/fetch_mcp_metadata: iterates 26 MCP server endpoints, merges with previous
data for cross-server interface_ref. make fetch-mcp-metadata target.
== AGENTS.md ==
Documents the generation/consumption split.
Verified: make policy exit 0, drift zero, all tests pass.
2026-07-19 09:38:43 +08:00
玉澜 and Cursor
b2561388fe
fix(schema): keep Cobra hard-required as required projection floor
...
Stop letting manual/hint overlays project MarkFlagRequired flags as
optional; add final payload regression and gofmt the disposition test.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 15:27:23 +08:00
玉澜 and Cursor
5856a897d1
feat(schema): split human hints into metadata and selection
...
Own safety/gates/parameters in metadata/ and Agent prose in selection/,
drop the monolithic Manual file, and keep confirmation aligned with
per-tool runtime_gate.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 13:40:09 +08:00
玉澜
2879683cad
fix(schema): enforce final delivery and runtime contracts
2026-07-14 08:11:27 +08:00
玉澜
1f2b992e9c
fix(schema): align capability contracts and delivery
2026-07-13 22:51:38 +08:00
玉澜
55afc656ac
fix(schema): validate agent example delivery
2026-07-13 20:33:56 +08:00
玉澜
f6c2ce655d
refactor(schema): unify registry-first delivery
2026-07-13 19:49:40 +08:00
玉澜
f77232d7c1
feat(schema): add agent-friendly manual hints
2026-07-13 13:41:30 +08:00
玉澜
31faf7205b
docs: add repository agent guidance
2026-07-13 11:53:18 +08:00