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 +7 -0
- package/package.json +2 -2
- package/scripts/cadre-cli.js +4 -13
- package/scripts/cadre-core.js +2401 -1259
- package/scripts/cadre-job-runner.js +10 -0
- package/scripts/mcp/cadre-server.js +2813 -1922
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.
|
|
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": {
|
package/scripts/cadre-cli.js
CHANGED
|
@@ -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:
|
|
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
|
-
"
|
|
150
|
-
"
|
|
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: "
|
|
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,
|