cadre-ai 4.2.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +35 -0
  4. package/README.md +27 -24
  5. package/agents/cadre-phase-worker.md +4 -0
  6. package/agents/cadre-task-worker.md +4 -0
  7. package/dist/cadre-cli.mjs +35 -18
  8. package/dist/cadre-mcp.mjs +2979 -2610
  9. package/package.json +2 -2
  10. package/skills/create/SKILL.md +3 -3
  11. package/skills/implement/SKILL.md +8 -0
  12. package/skills/implement/references/decisions.md +33 -0
  13. package/skills/implement/references/parallel-workers.md +4 -0
  14. package/skills/implement/references/resume-recovery.md +2 -0
  15. package/skills/quick/SKILL.md +3 -34
  16. package/skills/quick/agents/openai.yaml +1 -1
  17. package/skills/quick/references/bounded-work.md +36 -0
  18. package/skills/refresh/SKILL.md +6 -0
  19. package/skills/revert/SKILL.md +1 -1
  20. package/skills/review/SKILL.md +4 -0
  21. package/skills/revise/SKILL.md +6 -0
  22. package/skills/start/SKILL.md +15 -0
  23. package/skills/start/agents/openai.yaml +4 -0
  24. package/skills/track/SKILL.md +8 -2
  25. package/skills/wisp/SKILL.md +3 -3
  26. package/templates/{v8 → v10}/init/workflow.md +11 -0
  27. package/templates/{v8 → v10}/styleguides/index.md +2 -1
  28. package/templates/v10/styleguides/rust.md +27 -0
  29. package/templates/{v8 → v10}/track/dependency-context.json +1 -1
  30. package/templates/v10/track/design.md +32 -0
  31. package/templates/{v8 → v10}/track/spec.md +4 -0
  32. package/templates/{v8 → v10}/track/state.json +8 -2
  33. /package/templates/{v8 → v10}/init/archive/.gitkeep +0 -0
  34. /package/templates/{v8 → v10}/init/gitignore.template +0 -0
  35. /package/templates/{v8 → v10}/init/guidelines.md +0 -0
  36. /package/templates/{v8 → v10}/init/operations/.gitkeep +0 -0
  37. /package/templates/{v8 → v10}/init/patterns/index.md +0 -0
  38. /package/templates/{v8 → v10}/init/product.md +0 -0
  39. /package/templates/{v8 → v10}/init/project.json +0 -0
  40. /package/templates/{v8 → v10}/init/refreshes/.gitkeep +0 -0
  41. /package/templates/{v8 → v10}/init/styleguides/general.md +0 -0
  42. /package/templates/{v8 → v10}/init/styleguides/language.md +0 -0
  43. /package/templates/{v8 → v10}/init/tech-stack.md +0 -0
  44. /package/templates/{v8 → v10}/init/tracks/.gitkeep +0 -0
  45. /package/templates/{v8 → v10}/init/tracks.md +0 -0
  46. /package/templates/{v8 → v10}/init/wisps/.gitkeep +0 -0
  47. /package/templates/{v8 → v10}/project/pattern.md +0 -0
  48. /package/templates/{v8 → v10}/project/refresh-operation.json +0 -0
  49. /package/templates/{v8 → v10}/project/refresh.md +0 -0
  50. /package/templates/{v8 → v10}/quick/record.json +0 -0
  51. /package/templates/{v8 → v10}/styleguides/dart.md +0 -0
  52. /package/templates/{v8 → v10}/styleguides/flutter.md +0 -0
  53. /package/templates/{v8 → v10}/styleguides/go.md +0 -0
  54. /package/templates/{v8 → v10}/styleguides/gradle.md +0 -0
  55. /package/templates/{v8 → v10}/styleguides/html-css.md +0 -0
  56. /package/templates/{v8 → v10}/styleguides/java.md +0 -0
  57. /package/templates/{v8 → v10}/styleguides/javascript.md +0 -0
  58. /package/templates/{v8 → v10}/styleguides/kotlin.md +0 -0
  59. /package/templates/{v8 → v10}/styleguides/maven.md +0 -0
  60. /package/templates/{v8 → v10}/styleguides/python.md +0 -0
  61. /package/templates/{v8 → v10}/styleguides/react.md +0 -0
  62. /package/templates/{v8 → v10}/styleguides/swift.md +0 -0
  63. /package/templates/{v8 → v10}/styleguides/swiftui.md +0 -0
  64. /package/templates/{v8 → v10}/styleguides/typescript.md +0 -0
  65. /package/templates/{v8 → v10}/track/bug.md +0 -0
  66. /package/templates/{v8 → v10}/track/execution.json +0 -0
  67. /package/templates/{v8 → v10}/track/learning.md +0 -0
  68. /package/templates/{v8 → v10}/track/plan.md +0 -0
  69. /package/templates/{v8 → v10}/track/revert-operation.json +0 -0
  70. /package/templates/{v8 → v10}/track/revise-operation.json +0 -0
  71. /package/templates/{v8 → v10}/track/revision.md +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cadre",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "description": "A human-governed, Git-aware product delivery harness for Codex, Claude Code, and Zed Agent.",
5
5
  "author": {
6
6
  "name": "Dhivon AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cadre",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "description": "A human-governed, Git-aware product delivery harness for Codex, Claude Code, and Zed Agent.",
5
5
  "author": {
6
6
  "name": "Dhivon AI",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.3.1] - 2026-12-03
4
+
5
+ - Create accepts project-authored guides such as `.cadre/styleguides/terminal-ownership.md` alongside bundled defaults in the same setup approval. Custom guides need only their staged paths and contents.
6
+ - Template catalog v10 adds a Rust guide for Rust and Cargo projects. Existing v9 projects remain supported.
7
+
8
+ ## [4.3.0] - 2026-12-03
9
+
10
+ Start is the primary command for new work. Use Cadre: Start in Codex,
11
+ `/cadre:start` in Claude Code, or `/cadre-start` in Zed. Start inspects scope and
12
+ existing checkpoints before editing. Quick delivers a bounded change with one
13
+ final approval. Track prepares a specification, plan, and conditional design
14
+ for approval. You can still ask for Track directly on any size of change.
15
+
16
+ **Deprecation.** Direct `quick` shows one notice and continues in 4.3.0. Removal is
17
+ planned for the following release. Start uses the same bounded-work procedure.
18
+ Existing Quick checkpoints, records, archived history, and receipts remain usable.
19
+
20
+ **Upgrade.** Run `npm install -g cadre-ai@4.3.0`, then
21
+ `cadre-ai install --target all --scope user`. Reload your client (in Zed, reload
22
+ the workspace and open a new Agent thread). Installing enables Start. Existing
23
+ supported schema-2 projects, including 4.2.0 projects, adopt the v9 project
24
+ contract through an approved Refresh.
25
+
26
+ ### Design, decisions, and integration fixes
27
+
28
+ - Add explicit implementation clarification gates and durable, digest-bound decisions that block affected execution while independent work continues.
29
+ - Add conditional approved design.md with template v9, provenance, revision, dependency context and retained retrieval. Verification approach references acceptance criteria without repeating them.
30
+ - Add opt-in technical Autopilot as Autonomous execution plus a separate decision policy. Product/external choices and final completion still need human authority. Existing Autonomous remains ask-by-default.
31
+ - Preserve v1–v8 templates and historical journals; adopt the new project contract through approved Refresh. The MCP catalog retains 21 tools.
32
+ - Enforce v9 design assessment and dependency coverage for active tracks revised through Refresh while preserving legacy context-only maintenance.
33
+ - Bind owned build caches to canonical project identity, accepting verified legacy temporary-path aliases without deleting outputs or adopting foreign caches.
34
+ - On Zed upgrades, retire exact default approvals for removed setup and archive tools. Customized rules are preserved.
35
+ - Adapt Zed candidate authoring to terminal tools for ignored staging paths, retaining safe quoting, exact manifests, validation, and approval before promotion.
36
+ - Expand the website's design and decision guide, artifact reference, release notes, navigation, search metadata, and generated sitemap coverage. Native Zed and protocol validation are reported separately; token savings remain unproven.
37
+
3
38
  ## [4.2.0] - 2026-11-08
4
39
 
5
40
  ### Optional telemetry
package/README.md CHANGED
@@ -2,11 +2,16 @@
2
2
 
3
3
  Cadre is a product of [Dhivon AI](https://dhivon.ai).
4
4
 
5
- **Cadre 4.2.0** adds optional operation telemetry to help diagnose slow MCP
6
- operations and failures. Telemetry-capable builds default on outside CI, with clear
7
- installation/startup disclosure, persistent opt-out, and support for your own
8
- Sentry DSN or a Sentry-free build. Ten workflows, 21 MCP tools, and immutable
9
- template v8 support Codex, Claude Code, and Zed Agent. See [cadre-ai on npm](https://www.npmjs.com/package/cadre-ai).
5
+ **Cadre 4.3.1** adds a bundled Rust guide and lets Create include separate project-authored styleguides in the setup approval.
6
+
7
+ Cadre 4.3.0 introduced Start for new work. Describe the change once. Cadre
8
+ verifies a bounded fix through Quick or prepares a Track specification and plan for
9
+ a migration or coordinated change. Invoke Track directly when you want a plan,
10
+ even for a small fix. Direct Quick is deprecated in 4.3.0 and remains available in 4.3.1.
11
+
12
+ Install `cadre-ai@4.3.1`, run `cadre-ai install --target all`, and reload your
13
+ client to discover Start. Existing supported projects adopt template v10 through an
14
+ approved Refresh. Quick records, receipts, and interrupted work carry forward.
10
15
 
11
16
  Cadre is a human-governed, Git-aware delivery harness for Codex, Claude Code,
12
17
  and Zed Agent. All three integrations are stable as of Cadre 3.9.1.
@@ -67,15 +72,14 @@ execution. See the [testing and release documentation](https://cadre.dhivon.ai/t
67
72
 
68
73
  ## Unified Refresh
69
74
 
70
- Refresh now combines context maintenance, learning consolidation and completed-track archival under one approval, receipt and commit. Cadre 4.2.0 exposes ten workflows and 21 MCP tools with template v8. The standalone archive skill and MCP tool are removed. Existing approved archive journals remain recoverable through `candidate_apply`. Older supported projects adopt the new workflow contract in an approved Refresh.
75
+ Refresh now combines context maintenance, learning consolidation and completed-track archival under one approval, receipt and commit. Cadre 4.3.1 ships ten primary commands, the temporary Quick alias, 21 MCP tools, and template v10. The standalone archive skill and MCP tool are removed. Existing approved archive journals remain recoverable through `candidate_apply`. Older supported projects adopt the new workflow contract in an approved Refresh.
71
76
 
72
77
  ```text
73
- Create → Track → Implement → Review → completed tracks ─┐
74
- └──→ Quick → verified outcomes ─────────────────────┤
75
- Context + patterns + repository changes ────────────────┤
78
+ Create → Start ┬→ Quick → verified outcome ────────────┐
79
+ └→ Track → Implement → Review ──────────┤
80
+ Project context, patterns, and repository changes ─────┤
76
81
  ↓
77
82
  Refresh
78
- context + learning + active seeds + archival
79
83
  one approval · one receipt · one commit
80
84
  ```
81
85
 
@@ -86,7 +90,7 @@ batch limit. It also works without completed tracks or new guidance to add.
86
90
 
87
91
  ## Quick changes
88
92
 
89
- Use `quick` for one bounded fix, refactor, documentation change, test, or small
93
+ Start selects Quick for one bounded fix, refactor, documentation change, test, or small
90
94
  feature. It reads relevant Cadre context, implements and verifies the change,
91
95
  then asks for one final approval of the diff and outcome record. Material scope
92
96
  choices are discussed before editing. One local commit contains the change and
@@ -94,14 +98,12 @@ its durable record. A later approved `refresh` batch consolidates useful lessons
94
98
  and moves unchanged records to `.cadre/archive/.quick/`. Routine track context
95
99
  loads no quick history; focused search retrieves relevant outcomes when needed.
96
100
 
97
- Invoke `$cadre:quick` in Codex, `/cadre:quick` in Claude Code, or `/cadre-quick`
98
- in Zed. Cadre 4.2.0 includes Quick and unified Refresh with template v8. Existing v5/v6
99
- projects retain their workflows; enabling quick requires an approved refresh
100
- adopting its contract. Wisp remains stateless exploration.
101
+ Select **Cadre: Start** (`$cadre:start`) in Codex, `/cadre:start` in Claude Code, or
102
+ `/cadre-start` in Zed. Wisp remains available for stateless exploration.
101
103
 
102
104
  ## Upcoming roadmap
103
105
 
104
- Three optional capabilities are planned beyond 4.2.0:
106
+ Three optional capabilities are planned beyond 4.3.0:
105
107
 
106
108
  1. **Deeper GitHub / GitLab integration** for coordinating work across multiple
107
109
  people, including shared work status, ownership and review handoffs.
@@ -112,7 +114,7 @@ Three optional capabilities are planned beyond 4.2.0:
112
114
 
113
115
  Each capability will be independently **opt-in and disabled by default**. The
114
116
  core single-repository workflow will remain usable without enabling any of them.
115
- These are upcoming roadmap items, not features included in 4.2.0; no delivery dates
117
+ These are upcoming roadmap items, not features included in 4.3.0; no delivery dates
116
118
  are committed. See the [roadmap](https://cadre.dhivon.ai/team-and-polyrepo/).
117
119
 
118
120
  ## Capabilities
@@ -263,7 +265,7 @@ After installation or update:
263
265
  - Start a new Codex conversation so the new skills and MCP tools are loaded.
264
266
  - In Claude Code, run `/reload-plugins` or start a new session.
265
267
  - In Zed, run `workspace: reload` from the command palette, then open a new
266
- Agent thread. Confirm all ten skills under AI → Skills and the active Cadre
268
+ Agent thread. Confirm the ten primary skills and Quick alias under AI → Skills and the active Cadre
267
269
  server under AI → MCP Servers. Replacing the installed payload can leave
268
270
  an already-open workspace with stale skill discovery until it reloads.
269
271
 
@@ -303,9 +305,9 @@ Cadre will:
303
305
  ### 2. Create a feature or bug track
304
306
 
305
307
  ```text
306
- Codex: $cadre:track Add passwordless login as a feature
307
- Claude Code: /cadre:track Fix duplicate invoice creation as a bug
308
- Zed Agent: /cadre-track Add passwordless login as a feature
308
+ Codex: $cadre:start Add passwordless login as a feature
309
+ Claude Code: /cadre:start Fix duplicate invoice creation as a bug
310
+ Zed Agent: /cadre-start Add passwordless login as a feature
309
311
  ```
310
312
 
311
313
  Cadre proposes and approves together:
@@ -361,7 +363,8 @@ Refresh accepts one or more completed tracks in one resumable batch. It distills
361
363
  | Command | Purpose |
362
364
  | --- | --- |
363
365
  | `create` | Initialize or resume Cadre, classify project context, initialize Git when needed, and establish approved project artifacts. |
364
- | `quick` | Deliver a bounded change with one final approval, one combined commit, and a durable outcome record. |
366
+ | `start` | Start or resume work through Quick or Track. |
367
+ | `quick` (deprecated) | Deliver a bounded change with one final approval, one combined commit, and a durable outcome record. |
365
368
  | `track` | Create or resume a feature/bug specification, phased plan, dependency set, and learning seed. |
366
369
  | `implement` | Execute or resume the approved phase/task DAG in parallel by default or explicitly sequentially, with worktrees, tests, learning, approvals, and commit provenance. |
367
370
  | `review` | Review a ready track, record approved findings, add remediation phases, or complete an approved clean cycle. |
@@ -442,7 +445,7 @@ Important sources of truth:
442
445
 
443
446
  ## MCP capabilities
444
447
 
445
- The `cadre` stdio server exposes active immutable resources at `cadre://templates/v8/...` and 21 tools:
448
+ The `cadre` stdio server exposes active immutable resources at `cadre://templates/v10/...` and 21 tools:
446
449
 
447
450
  | Tool | Mutation | Purpose |
448
451
  | --- | --- | --- |
@@ -534,7 +537,7 @@ pnpm --filter cadre-ai validate
534
537
 
535
538
  ### Memory format upgrade
536
539
 
537
- Cadre 4.2.0 packages template set v8 and supports existing 4.0.0 and 4.1.0 projects. Existing 3.9.0/3.9.1/3.9.2 schema-2/v5 projects need no project migration or version-only refresh. Older formats must use Cadre 3.9.0 for an approved refresh to schema-2/v5 before installing 4.2.0. Published v1–v7 templates remain unchanged in source, and terminal learning remains historical evidence. Active Pattern Seeds record revisions and exact pattern fingerprints; changed guidance requires reassessment. Task handoffs preserve decisions, failed approaches, uncertainty, and next actions alongside existing checkpoints. Use all `context_read` pages before acting, and retain source inspection and approval gates. Routine `project_status` uses summaries; request `detail: "full"` for history/graph diagnostics. Filtered/paged listings never narrow validation coverage.
540
+ Cadre 4.3.1 packages template set v10 and supports existing 4.0.0, 4.1.0, 4.2.0, and 4.3.0 projects. Existing 3.9.0/3.9.1/3.9.2 schema-2/v5 projects need no project migration or version-only refresh. Older formats must use Cadre 3.9.0 for an approved refresh to schema-2/v5 before installing 4.3.1. Published v1–v9 templates remain unchanged in source, and terminal learning remains historical evidence. Active Pattern Seeds record revisions and exact pattern fingerprints; changed guidance requires reassessment. Task handoffs preserve decisions, failed approaches, uncertainty, and next actions alongside existing checkpoints. Use all `context_read` pages before acting, and retain source inspection and approval gates. Routine `project_status` uses summaries; request `detail: "full"` for history/graph diagnostics. Filtered/paged listings never narrow validation coverage.
538
541
 
539
542
  Release preparation includes regression tests, package inspection, and documentation checks. Publishing still requires native installer/discovery/activation checks for Codex, Claude Code, and Zed. Local model tests and byte benchmarks do not establish universal token savings or semantic correctness of generated learning.
540
543
 
@@ -23,3 +23,7 @@ You are a Cadre phase implementation worker holding a temporary execution lease.
23
23
  ## Cohesive execution contract
24
24
 
25
25
  For a new cohesive-v1 execution, main may assign a whole approved commit group. Execute its internal dependencies in order, verify every task, and return individual authorization, verification and handoff evidence with one shared product commit. Never split a group across workers or independently schedule a member before the group's external dependencies. Legacy executions keep their original task boundaries. Main owns atomic complete_group, Git integration, receipts and all Cadre state. Use only the owned build-cache path main supplies. Fast-forward integration is valid provenance; do not require a merge object.
26
+
27
+ ## Material uncertainty
28
+
29
+ Before affected edits, inspect evidence. Follow established conventions for routine details; investigate unknown facts. Stop affected work and report materially different choices to main with the question, options, recommendation, affected tasks, and source evidence. Never silently select product behavior or treat confidence as authority. Main records and resolves blocking decisions; wait for its exact resolution even under Autopilot. Preserve approved design, and distinguish these blockers from harmless follow-up questions. Continue other assigned independent work only when main authorizes it.
@@ -22,3 +22,7 @@ You are a Cadre task implementation worker. The main agent is the only scheduler
22
22
  ## Cohesive execution contract
23
23
 
24
24
  For a new cohesive-v1 execution, main may assign a whole approved commit group. Execute its internal dependencies in order, verify every task, and return individual authorization, verification and handoff evidence with one shared product commit. Never split a group across workers or independently schedule a member before the group's external dependencies. Legacy executions keep their original task boundaries. Main owns atomic complete_group, Git integration, receipts and all Cadre state. Use only the owned build-cache path main supplies. Fast-forward integration is valid provenance; do not require a merge object.
25
+
26
+ ## Material uncertainty
27
+
28
+ Before affected edits, inspect evidence. Follow established conventions for routine details; investigate unknown facts. Stop affected work and report materially different choices to main with the question, options, recommendation, affected tasks, and source evidence. Never silently select product behavior or treat confidence as authority. Main records and resolves blocking decisions; wait for its exact resolution even under Autopilot. Preserve approved design, and distinguish these blockers from harmless follow-up questions. Continue other assigned independent work only when main authorizes it.
@@ -40,21 +40,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  ));
41
41
 
42
42
  // src/domain/version.ts
43
- var CADRE_RUNTIME_VERSION, TEMPLATE_SET_VERSION;
43
+ var CADRE_RUNTIME_VERSION, TEMPLATE_SET_VERSION, COMPATIBLE_TEMPLATE_SET_VERSIONS, LEGACY_TEMPLATE_SET_VERSIONS, templateVersions;
44
44
  var init_version = __esm({
45
45
  "src/domain/version.ts"() {
46
46
  "use strict";
47
- CADRE_RUNTIME_VERSION = "4.2.0";
48
- TEMPLATE_SET_VERSION = "v8";
47
+ CADRE_RUNTIME_VERSION = "4.3.1";
48
+ TEMPLATE_SET_VERSION = "v10";
49
+ COMPATIBLE_TEMPLATE_SET_VERSIONS = ["v5", "v6", "v7", "v8", "v9", TEMPLATE_SET_VERSION];
50
+ LEGACY_TEMPLATE_SET_VERSIONS = ["v1", "v2", "v3", "v4"];
51
+ templateVersions = [...LEGACY_TEMPLATE_SET_VERSIONS, ...COMPATIBLE_TEMPLATE_SET_VERSIONS];
49
52
  }
50
53
  });
51
54
 
52
55
  // cadre-build-telemetry:defaults
53
- var DEFAULT_DSN, TELEMETRY_AVAILABLE;
56
+ var DEFAULT_DSN, TELEMETRY_AVAILABLE, DEBUG_IMAGE;
54
57
  var init_defaults = __esm({
55
58
  "cadre-build-telemetry:defaults"() {
56
59
  DEFAULT_DSN = "https://c7549a6dbb434b68729da9a75be19898@o4512395646468096.ingest.de.sentry.io/4512395656233040";
57
60
  TELEMETRY_AVAILABLE = true;
61
+ DEBUG_IMAGE = { "type": "sourcemap", "code_file": "app:///cadre-cli.mjs", "debug_id": "d404b933-0e96-47a1-91b5-7f6169038686" };
58
62
  }
59
63
  });
60
64
 
@@ -11548,7 +11552,8 @@ function createSentryExporter(config) {
11548
11552
  transaction: record.name,
11549
11553
  tags: { ...attributes, error_code: error2.code },
11550
11554
  fingerprint: [record.name, error2.code],
11551
- exception: { values: [{ type: error2.code, value: error2.message, ...error2.frames.length ? { stacktrace: { frames: error2.frames } } : {} }] }
11555
+ ...DEBUG_IMAGE && error2.frames.some((frame) => frame.filename === DEBUG_IMAGE?.code_file) ? { debug_meta: { images: [DEBUG_IMAGE] } } : {},
11556
+ exception: { values: [{ type: error2.code, value: error2.message, ...error2.frames.length ? { stacktrace: { frames: error2.frames.map((frame) => ({ ...frame, abs_path: frame.filename })) } } : {} }] }
11552
11557
  });
11553
11558
  const labels = { ...attributes };
11554
11559
  delete labels.installation_id;
@@ -11604,6 +11609,7 @@ var init_sentry = __esm({
11604
11609
  init_esm4();
11605
11610
  init_version();
11606
11611
  init_config();
11612
+ init_defaults();
11607
11613
  init_privacy();
11608
11614
  eventId = () => randomBytes(16).toString("hex");
11609
11615
  release = `cadre-ai@${CADRE_RUNTIME_VERSION}`;
@@ -12069,11 +12075,13 @@ var TEMPLATE_IDS = [
12069
12075
  "styleguide/maven",
12070
12076
  "styleguide/python",
12071
12077
  "styleguide/react",
12078
+ "styleguide/rust",
12072
12079
  "styleguide/swift",
12073
12080
  "styleguide/swiftui",
12074
12081
  "styleguide/typescript",
12075
12082
  "track/bug",
12076
12083
  "track/dependency-context",
12084
+ "track/design",
12077
12085
  "track/execution",
12078
12086
  "track/learning",
12079
12087
  "track/plan",
@@ -12177,11 +12185,14 @@ var CADRE_WORKFLOWS = [
12177
12185
  "revert",
12178
12186
  "status",
12179
12187
  "wisp",
12188
+ "start",
12180
12189
  "quick"
12181
12190
  ];
12182
12191
  var ZED_COMPATIBILITY = `## Zed compatibility
12183
12192
 
12184
- Zed Agent consumes Cadre templates through tools rather than MCP resource discovery. Whenever this workflow calls \`template_get_many\`, include \`contentMode: "text"\`. Use known template IDs and descriptor tools such as \`styleguide_resolve\`; do not attempt to list or read MCP resources directly. When recommending another Cadre workflow, use its Zed command \`/cadre-<workflow>\` and never a dollar-prefixed or colon command. For MCP \`nextStep\` with plugin \`cadre\`, resolve skill \`review\` or \`implement\` to the installed \`cadre-review\` or \`cadre-implement\` skill and execute it in the same task; printing a command is not invocation.`;
12193
+ Zed Agent consumes Cadre templates through tools rather than MCP resource discovery. Whenever this workflow calls \`template_get_many\`, include \`contentMode: "text"\`. Use known template IDs and descriptor tools such as \`styleguide_resolve\`; do not attempt to list or read MCP resources directly. When recommending another Cadre workflow, use its Zed command \`/cadre-<workflow>\` and never a dollar-prefixed or colon command. For MCP \`nextStep\` with plugin \`cadre\`, resolve skill \`review\` or \`implement\` to the installed \`cadre-review\` or \`cadre-implement\` skill and execute it in the same task; printing a command is not invocation.
12194
+
12195
+ Cadre candidate staging is Git-ignored and may be absent from Zed's file index. After \`candidate_stage_prepare\`, use the terminal to inspect and author the exact expected files beneath the returned \`stagePath\`; do not depend on indexed file tools for this directory. Read retained files before editing, verify the returned directory exists, and reject symlinked staging paths. Use a quoted heredoc or a structured file-writing script so candidate text is never interpreted as shell commands. If an indexed file tool cannot find the stage, switch to the terminal instead of repeating create/list/edit calls. Do not change ignore rules, create a second candidate directory, or write canonical artifacts to bypass staging. Validate through \`candidate_inspect\` or the workflow's prepare operation, then obtain the required combined approval before promotion. This fallback does not authorize editing approved recovery journals or canonical state.`;
12185
12196
  function pathExists(path) {
12186
12197
  try {
12187
12198
  lstatSync3(path);
@@ -14462,16 +14473,21 @@ var CODEX_APPROVAL = 'default_tools_approval_mode = "approve"';
14462
14473
  var CLAUDE_APPROVAL = "mcp__cadre__*";
14463
14474
  var CLAUDE_SERVER_APPROVAL = "cadre";
14464
14475
  var ZED_MCP_PERMISSION_KEYS = CADRE_MCP_TOOL_NAMES.map((name) => `mcp:cadre:${name}`);
14465
- var OBSOLETE_ZED_ARCHIVE_PERMISSION = "mcp:cadre:archive_batch_candidate";
14466
- function removeObsoleteZedApproval(text, tools) {
14467
- const rule = tools[OBSOLETE_ZED_ARCHIVE_PERMISSION];
14468
- if (!isRecord(rule) || rule.default !== "allow" || Object.keys(rule).length !== 1) return text;
14469
- return applyEdits(text, modify(
14470
- text,
14471
- ["agent", "tool_permissions", "tools", OBSOLETE_ZED_ARCHIVE_PERMISSION],
14472
- void 0,
14473
- { formattingOptions: { insertSpaces: true, tabSize: 2, eol: "\n" } }
14474
- ));
14476
+ var RETIRED_ZED_PERMISSIONS = [
14477
+ "mcp:cadre:archive_batch_candidate",
14478
+ "mcp:cadre:archive_batch_record",
14479
+ "mcp:cadre:setup_record_commit",
14480
+ "mcp:cadre:setup_record_git_initialized"
14481
+ ];
14482
+ function removeObsoleteZedApprovals(text, tools) {
14483
+ const formattingOptions = { insertSpaces: true, tabSize: 2, eol: "\n" };
14484
+ for (const key of RETIRED_ZED_PERMISSIONS) {
14485
+ const rule = tools[key];
14486
+ if (isRecord(rule) && rule.default === "allow" && Object.keys(rule).length === 1) {
14487
+ text = applyEdits(text, modify(text, ["agent", "tool_permissions", "tools", key], void 0, { formattingOptions }));
14488
+ }
14489
+ }
14490
+ return text;
14475
14491
  }
14476
14492
  function isRecord(value) {
14477
14493
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -14698,7 +14714,7 @@ function configureZedCadre(settingsPath, nodePath, mcpPath, autoApproveMcp, tele
14698
14714
  { formattingOptions }
14699
14715
  ));
14700
14716
  }
14701
- const withoutObsolete = removeObsoleteZedApproval(proposed, tools);
14717
+ const withoutObsolete = removeObsoleteZedApprovals(proposed, tools);
14702
14718
  let permissionsChanged = withoutObsolete !== proposed;
14703
14719
  proposed = withoutObsolete;
14704
14720
  if (autoApproveMcp) {
@@ -14757,7 +14773,7 @@ function removeZedCadreServer(settingsPath, mcpPath) {
14757
14773
  ));
14758
14774
  const agent = assertRecordField(root, "agent", settingsPath);
14759
14775
  const permissions = assertRecordField(agent, "tool_permissions", settingsPath);
14760
- proposed = removeObsoleteZedApproval(proposed, assertRecordField(permissions, "tools", settingsPath));
14776
+ proposed = removeObsoleteZedApprovals(proposed, assertRecordField(permissions, "tools", settingsPath));
14761
14777
  if (proposed !== existing) atomicWrite(settingsPath, proposed.endsWith("\n") ? proposed : `${proposed}
14762
14778
  `);
14763
14779
  return { changed: proposed !== existing, retainedConflict: false };
@@ -15220,3 +15236,4 @@ stopTelemetry();
15220
15236
  export {
15221
15237
  runCli
15222
15238
  };
15239
+ //# debugId=d404b933-0e96-47a1-91b5-7f6169038686