cadre-ai 2.0.0 → 2.1.0

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.
package/README.md CHANGED
@@ -72,6 +72,7 @@ maintain Cadre state by hand.
72
72
  - `cadre/styleguides/*.json` plus generated `cadre/code_styleguides/*.md`
73
73
  - optional `cadre/repos.json` for polyrepo topology
74
74
  - optional `cadre/lsp.json` for LSP recommendations
75
+ - repository-authored `cadre/skills/<skill-id>/skill.json` rule manifests with optional `SKILL.md` human projections
75
76
 
76
77
  Setup also initializes native Cadre state, can configure shared-sync merge
77
78
  attributes, and can scaffold hosted CI checks when requested.
@@ -83,6 +84,12 @@ so ownership, leases, review state, blockers, and available work are visible to
83
84
  everyone. Product code publication still happens through ship/land workflows;
84
85
  shared sync is for the Cadre control plane.
85
86
 
87
+ Project skills are local to the active repository. Maintainers add them through
88
+ normal reviewed Git changes; Cadre selects them by workflow and optional
89
+ polyrepo `repos` targeting, returns bounded instructions in workflow packets,
90
+ and exposes references lazily through MCP resources. Project skills never fall
91
+ back to a global catalog and never execute scripts automatically.
92
+
86
93
  Compact MCP resources provide bounded views for larger teams:
87
94
 
88
95
  - team board and next actions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cadre-ai",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "MCP-first Cadre workflows for context-driven development.",
5
5
  "author": {
6
6
  "name": "Vishal Kumar",
@@ -53,7 +53,7 @@
53
53
  "check:runtime": "pnpm build:runtime",
54
54
  "check:generated": "bash scripts/generate-skills.sh --check",
55
55
  "check:test": "pnpm test",
56
- "test": "node --test scripts/source-architecture.test.js scripts/cadre-core.test.js scripts/cadre-cli.test.js scripts/mcp/cadre-server.test.js scripts/protocol-packet-only.test.js && node scripts/cadre-team-scale-sim.js",
56
+ "test": "node --test scripts/source-architecture.test.js scripts/cadre-core.test.js scripts/cadre-skill.test.js scripts/cadre-cli.test.js scripts/mcp/cadre-server.test.js scripts/protocol-packet-only.test.js scripts/token-efficiency.test.js && node scripts/cadre-team-scale-sim.js",
57
57
  "typecheck": "tsc --noEmit"
58
58
  },
59
59
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // AUTO-GENERATED by pnpm build from src/*.ts -- do not edit by hand.
3
3
  // Edit TypeScript sources under src/ instead.
4
- const __CADRE_SKILL_SHIM__ = "---\nname: cadre\ndescription: |\n Context-driven development methodology for organized, spec-first coding. Use when:\n - Project has a `cadre/` directory\n - User mentions specs, plans, tracks, or context-driven development\n - Files like `cadre/tracks.json`, `cadre/product.json`, or `cadre/workflow.json` exist\n - User asks about project status, implementation progress, or track management\n - User wants to organize development work with TDD practices\n - User asks for a `cadre-*` workflow (setup, newtrack, implement, debug, status, revert, validate, flag, revise, review, ship, land, archive, release, handoff, refresh, formula, artifacts)\n - User mentions documentation is outdated or wants to sync context with codebase changes\n - Project is a polyrepo control repo (`cadre/repos.json` with mode \"polyrepo\") spanning git-submodule product repos\n\n Interoperable across Claude Code, OpenAI Codex, Copilot, and Antigravity.\n Uses native Cadre state for persistent task memory across sessions.\n---\n\n# Cadre Skill Shim\n\nCadre MCP is required for every Cadre workflow. Before acting, verify the MCP\nruntime with `cadre_project` using `{\"action\":\"ping\"}`. If Cadre MCP tools or\nresources are unavailable, halt and ask the user to install, enable, or restart\nthe Cadre plugin.\n\nLoad `cadre://skill-contract` for the authoritative `cadre.skill.v1` contract.\nUse `cadre://workflow-protocols` to discover workflow protocol resources, then\nload `cadre://workflow-protocol?workflow=<name>` for the active workflow.\nReferences and template inventory are also MCP-served through Cadre resources.\n\nFor staged approvals, stay on Cadre's packet-led review path: use the returned\n`approval.current_stage` and current review output first. Target mode may have\n`manifest_path:null`, `mutates_worktree:true`, and `files[].target_path` /\n`review_path`; bundle mode uses the manifest and temp review paths. Ask for\nexplicit user approval before sending approval fields. Avoid extra inspection\nunless packet evidence cannot answer the current stage question.\n";
4
+ const __CADRE_SKILL_SHIM__ = "---\nname: cadre\ndescription: Packet-led context-driven development for Cadre projects and workflows.\n---\n\n# Cadre\n\nCall `cadre_workflow` directly with the current root candidate, workflow name,\nand structured `input`. The call itself verifies Cadre and resolves the root.\nFollow the returned `decision`, load only returned resource URIs, and execute at\nmost the single returned `next` call.\n\nUse `cadre_action` only for a namespaced action returned by a packet and\n`cadre_read` only for a relevant resource. Cadre owns control-plane, approval,\nprovider, worker, merge, and generated-projection state. Never recreate that\nstate with shell commands or treat Markdown projections as canonical.\n\nSend `approval` only after explicit user approval of the current stage. If a\npacket is blocked, report its error or requested narrowing; do not truncate or\ninvent required project-skill rules.\n";
5
5
  "use strict";
6
6
  var __create = Object.create;
7
7
  var __defProp = Object.defineProperty;
@@ -144,18 +144,9 @@ function uninstallCommands(target, paths, scope) {
144
144
 
145
145
  // src/cli/client-approvals.ts
146
146
  var CADRE_MCP_TOOLS = [
147
- "cadre_resource",
148
147
  "cadre_workflow",
149
- "cadre_project",
150
- "cadre_status",
151
- "cadre_track",
152
- "cadre_parallel",
153
- "cadre_mutate",
154
- "cadre_complete_task",
155
- "cadre_job",
156
- "cadre_review",
157
- "cadre_intel",
158
- "cadre_artifact"
148
+ "cadre_action",
149
+ "cadre_read"
159
150
  ];
160
151
  var CLAUDE_CADRE_ALLOW_RULES = [
161
152
  "mcp__plugin_cadre_cadre__*",
@@ -400,7 +391,7 @@ function pingMcp(runtime) {
400
391
  jsonrpc: "2.0",
401
392
  id: 1,
402
393
  method: "tools/call",
403
- params: { name: "cadre_project", arguments: { action: "ping" } }
394
+ params: { name: "cadre_action", arguments: { action: "project.ping" } }
404
395
  };
405
396
  const result = (0, import_node_child_process2.spawnSync)(runtime.nodePath, [runtime.mcpServer], {
406
397
  cwd: runtime.runtimeRoot,