cadre-ai 1.0.0 → 1.1.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.
- package/README.md +10 -14
- package/package.json +2 -3
- package/scripts/cadre-cli.js +9 -13
- package/scripts/cadre-core.js +1718 -1567
- package/scripts/cadre-job-runner.js +383 -319
- package/scripts/cadre-lsp-daemon.js +0 -1
- package/scripts/cadre-lsp-review.js +0 -1
- package/scripts/cadre-lsp-setup.js +0 -1
- package/scripts/mcp/cadre-server.js +2033 -1883
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
**Measure twice, code once.**
|
|
6
6
|
|
|
7
7
|
Cadre is a context-driven development harness for AI coding agents. It combines
|
|
8
|
-
spec-first tracks,
|
|
8
|
+
spec-first tracks, native durable task memory, review gates, team boards,
|
|
9
9
|
parallel worker orchestration, and mono/polyrepo delivery into one packet-owned
|
|
10
10
|
workflow.
|
|
11
11
|
|
|
@@ -15,8 +15,8 @@ Public docs: [https://cadre-docs.pages.dev/](https://cadre-docs.pages.dev/)
|
|
|
15
15
|
|
|
16
16
|
- **Structured work:** setup, new track, implementation, review, ship/land,
|
|
17
17
|
archive, release, handoff, refresh, revise, validate, flag, and formula flows.
|
|
18
|
-
- **Persistent memory:**
|
|
19
|
-
and resume evidence
|
|
18
|
+
- **Persistent memory:** Cadre stores task graph state, dependencies, notes,
|
|
19
|
+
handoffs, events, and resume evidence through native packet-owned files.
|
|
20
20
|
- **Team safety:** ownership, advisory leases, collision scans, review queues,
|
|
21
21
|
shared sync, and compact MCP dashboard resources.
|
|
22
22
|
- **Polyglot intelligence:** repo maps, dependency graphs, test impact,
|
|
@@ -27,13 +27,6 @@ Public docs: [https://cadre-docs.pages.dev/](https://cadre-docs.pages.dev/)
|
|
|
27
27
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
30
|
-
Install Beads first; setup requires the `bd` CLI to be available.
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm install -g @beads/bd
|
|
34
|
-
bd --version
|
|
35
|
-
```
|
|
36
|
-
|
|
37
30
|
Install Cadre from npm and let the CLI wire detected clients:
|
|
38
31
|
|
|
39
32
|
```bash
|
|
@@ -56,7 +49,7 @@ cadre-ship
|
|
|
56
49
|
```
|
|
57
50
|
|
|
58
51
|
Cadre workflows are packet-owned. The agent verifies Cadre MCP, passes a
|
|
59
|
-
per-call `root`, and lets the runtime perform state reads/writes,
|
|
52
|
+
per-call `root`, and lets the runtime perform state reads/writes, formula work,
|
|
60
53
|
parallel worker state, provider evidence write-back, and shared sync. Do not
|
|
61
54
|
maintain Cadre state by hand.
|
|
62
55
|
|
|
@@ -71,13 +64,16 @@ maintain Cadre state by hand.
|
|
|
71
64
|
- `cadre/tracks.json` as the generated track index
|
|
72
65
|
- `cadre/patterns.jsonl` plus generated `cadre/patterns.md`
|
|
73
66
|
- `cadre/config.json`
|
|
74
|
-
- `cadre/
|
|
67
|
+
- `cadre/events.jsonl`
|
|
68
|
+
- `cadre/messages/outbox.jsonl` and `cadre/messages/inbox.jsonl`
|
|
69
|
+
- `cadre/formulas/*.json` when formulas are added
|
|
70
|
+
- git-ignored `cadre/local/wisps/*.json` for local ephemeral formula runs
|
|
75
71
|
- `cadre/styleguides/*.json` plus generated `cadre/code_styleguides/*.md`
|
|
76
72
|
- optional `cadre/repos.json` for polyrepo topology
|
|
77
73
|
- optional `cadre/lsp.json` for LSP recommendations
|
|
78
74
|
|
|
79
|
-
Setup also initializes
|
|
80
|
-
can scaffold hosted CI checks when requested.
|
|
75
|
+
Setup also initializes native Cadre state, can configure shared-sync merge
|
|
76
|
+
attributes, and can scaffold hosted CI checks when requested.
|
|
81
77
|
|
|
82
78
|
## Team And Repo Modes
|
|
83
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cadre-ai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "MCP-first Cadre workflows for context-driven development.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vishal Kumar",
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
"context-driven-development",
|
|
20
20
|
"mcp",
|
|
21
21
|
"codex",
|
|
22
|
-
"claude"
|
|
23
|
-
"beads"
|
|
22
|
+
"claude"
|
|
24
23
|
],
|
|
25
24
|
"type": "commonjs",
|
|
26
25
|
"packageManager": "pnpm@11.4.0",
|
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: |\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, 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 and OpenAI Codex.\n
|
|
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, 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 and OpenAI Codex.\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";
|
|
5
5
|
"use strict";
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -33,6 +33,7 @@ var import_node_path = __toESM(require("node:path"));
|
|
|
33
33
|
var import_node_child_process = require("node:child_process");
|
|
34
34
|
var PACKAGE_PLUGIN_NAME = "cadre";
|
|
35
35
|
var PACKAGE_DISPLAY_NAME = "Cadre";
|
|
36
|
+
var MARKETPLACE_PLUGIN_SOURCE = "./plugins/cadre";
|
|
36
37
|
function usage() {
|
|
37
38
|
return [
|
|
38
39
|
"Cadre CLI",
|
|
@@ -89,11 +90,7 @@ function runtimePaths() {
|
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
92
|
function commandExists(command) {
|
|
92
|
-
const result =
|
|
93
|
-
encoding: "utf8",
|
|
94
|
-
shell: process.platform !== "win32",
|
|
95
|
-
stdio: "ignore"
|
|
96
|
-
});
|
|
93
|
+
const result = process.platform === "win32" ? (0, import_node_child_process.spawnSync)("where", [command], { stdio: "ignore" }) : (0, import_node_child_process.spawnSync)("which", [command], { stdio: "ignore" });
|
|
97
94
|
return result.status === 0;
|
|
98
95
|
}
|
|
99
96
|
function selectedTargets(options) {
|
|
@@ -102,10 +99,9 @@ function selectedTargets(options) {
|
|
|
102
99
|
return ["codex", "claude"].filter((target) => commandExists(target));
|
|
103
100
|
}
|
|
104
101
|
function targetPaths(home, target) {
|
|
105
|
-
const pluginRoot = import_node_path.default.join(home, "plugins", target, PACKAGE_PLUGIN_NAME);
|
|
106
102
|
const marketplaceRoot = import_node_path.default.join(home, "marketplaces", target);
|
|
107
103
|
return {
|
|
108
|
-
pluginRoot,
|
|
104
|
+
pluginRoot: import_node_path.default.join(marketplaceRoot, "plugins", PACKAGE_PLUGIN_NAME),
|
|
109
105
|
marketplaceRoot,
|
|
110
106
|
marketplaceFile: target === "codex" ? import_node_path.default.join(marketplaceRoot, ".agents", "plugins", "marketplace.json") : import_node_path.default.join(marketplaceRoot, ".claude-plugin", "marketplace.json")
|
|
111
107
|
};
|
|
@@ -140,7 +136,7 @@ function pluginManifest(target, runtime) {
|
|
|
140
136
|
homepage: metadata.homepage,
|
|
141
137
|
repository: metadata.repository,
|
|
142
138
|
license: metadata.license,
|
|
143
|
-
keywords: ["cadre", "context-driven-development", "skills", "
|
|
139
|
+
keywords: ["cadre", "context-driven-development", "skills", "mcp"],
|
|
144
140
|
skills: "./skills/"
|
|
145
141
|
};
|
|
146
142
|
if (target === "claude") {
|
|
@@ -172,7 +168,7 @@ function mcpConfig(runtime) {
|
|
|
172
168
|
}
|
|
173
169
|
};
|
|
174
170
|
}
|
|
175
|
-
function marketplace(target,
|
|
171
|
+
function marketplace(target, runtime) {
|
|
176
172
|
const metadata = readPackageMetadata(runtime.runtimeRoot);
|
|
177
173
|
if (target === "codex") {
|
|
178
174
|
return {
|
|
@@ -180,7 +176,7 @@ function marketplace(target, pluginRoot, runtime) {
|
|
|
180
176
|
interface: { displayName: PACKAGE_DISPLAY_NAME },
|
|
181
177
|
plugins: [{
|
|
182
178
|
name: PACKAGE_PLUGIN_NAME,
|
|
183
|
-
source: { source: "local", path:
|
|
179
|
+
source: { source: "local", path: MARKETPLACE_PLUGIN_SOURCE },
|
|
184
180
|
policy: { installation: "AVAILABLE", authentication: "ON_INSTALL" },
|
|
185
181
|
category: "Productivity"
|
|
186
182
|
}]
|
|
@@ -192,7 +188,7 @@ function marketplace(target, pluginRoot, runtime) {
|
|
|
192
188
|
description: "Cadre MCP-first workflows for Claude Code.",
|
|
193
189
|
plugins: [{
|
|
194
190
|
name: PACKAGE_PLUGIN_NAME,
|
|
195
|
-
source:
|
|
191
|
+
source: MARKETPLACE_PLUGIN_SOURCE,
|
|
196
192
|
description: metadata.description,
|
|
197
193
|
version: metadata.version,
|
|
198
194
|
author: { name: "Vishal Kumar" },
|
|
@@ -221,7 +217,7 @@ function writeThinPlugin(target, paths, runtime, skillShim) {
|
|
|
221
217
|
writeJson(import_node_path.default.join(paths.pluginRoot, ".claude-plugin", "plugin.json"), pluginManifest(target, runtime));
|
|
222
218
|
writeJson(import_node_path.default.join(paths.pluginRoot, "mcp-config.json"), mcpConfig(runtime));
|
|
223
219
|
}
|
|
224
|
-
writeJson(paths.marketplaceFile, marketplace(target,
|
|
220
|
+
writeJson(paths.marketplaceFile, marketplace(target, runtime));
|
|
225
221
|
}
|
|
226
222
|
function installCommands(target, paths, scope) {
|
|
227
223
|
if (target === "codex") {
|