cool-workflow 0.2.2 → 0.2.4
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/apps/architecture-review/app.json +1 -1
- package/apps/architecture-review-fast/app.json +1 -1
- package/apps/end-to-end-golden-path/app.json +1 -1
- package/apps/pr-review-fix-ci/app.json +1 -1
- package/apps/release-cut/app.json +1 -1
- package/apps/research-synthesis/app.json +1 -1
- package/dist/cli/dispatch.js +13 -6
- package/dist/cli/entry.js +41 -1
- package/dist/cli/io.js +12 -22
- package/dist/cli/parseargv.js +1 -0
- package/dist/core/capability-data.js +3 -2
- package/dist/core/format/completion.js +68 -0
- package/dist/core/format/help.js +31 -6
- package/dist/core/format/safe-json.js +73 -0
- package/dist/core/format/state-explosion-text.js +1 -1
- package/dist/core/multi-agent/candidate-scoring.js +5 -1
- package/dist/core/multi-agent/collaboration.js +3 -3
- package/dist/core/multi-agent/coordinator.js +5 -5
- package/dist/core/multi-agent/runtime.js +4 -4
- package/dist/core/multi-agent/topology.js +3 -3
- package/dist/core/pipeline/dispatch.js +18 -4
- package/dist/core/pipeline/drive-decide.js +2 -1
- package/dist/core/state/migrations.js +16 -1
- package/dist/core/state/state-explosion/digest.js +13 -13
- package/dist/core/state/state-explosion/graph.js +17 -11
- package/dist/core/state/state-explosion/report.js +6 -6
- package/dist/core/util/cli-args.js +33 -0
- package/dist/core/util/numeric-flag.js +40 -0
- package/dist/core/version.js +1 -1
- package/dist/mcp/server.js +99 -11
- package/dist/shell/audit-cli.js +57 -25
- package/dist/shell/coordinator-io.js +73 -13
- package/dist/shell/dispatch.js +1 -1
- package/dist/shell/doctor.js +80 -1
- package/dist/shell/drive.js +251 -49
- package/dist/shell/eval-text.js +2 -2
- package/dist/shell/evidence-reasoning.js +4 -4
- package/dist/shell/execution-backend/agent.js +30 -2
- package/dist/shell/execution-backend/container.js +4 -1
- package/dist/shell/execution-backend/local.js +19 -11
- package/dist/shell/feedback-cli.js +6 -6
- package/dist/shell/fs-atomic.js +218 -29
- package/dist/shell/man-cli.js +6 -0
- package/dist/shell/metrics-cli.js +2 -1
- package/dist/shell/multi-agent-cli.js +367 -323
- package/dist/shell/multi-agent-host.js +9 -9
- package/dist/shell/multi-agent-operator-ux.js +80 -38
- package/dist/shell/node-store.js +10 -4
- package/dist/shell/observability.js +1 -1
- package/dist/shell/operator-ux-text.js +22 -22
- package/dist/shell/operator-ux.js +15 -14
- package/dist/shell/orchestrator.js +49 -38
- package/dist/shell/pipeline-cli.js +107 -42
- package/dist/shell/reclamation-io.js +88 -10
- package/dist/shell/registry-cli.js +23 -17
- package/dist/shell/remote-source.js +13 -8
- package/dist/shell/report-cli.js +45 -0
- package/dist/shell/report.js +2 -1
- package/dist/shell/run-registry-io.js +78 -19
- package/dist/shell/run-store.js +74 -2
- package/dist/shell/scheduling-io.js +12 -13
- package/dist/shell/state-cli.js +2 -7
- package/dist/shell/state-explosion-cli.js +17 -9
- package/dist/shell/topology-io.js +36 -5
- package/dist/shell/trust-audit.js +224 -22
- package/dist/shell/trust-policy-io.js +1 -1
- package/dist/shell/worker-cli.js +35 -31
- package/dist/shell/workflow-app-loader.js +67 -1
- package/dist/wiring/capability-table/basics.js +33 -8
- package/dist/wiring/capability-table/exec-backend.js +28 -19
- package/dist/wiring/capability-table/multi-agent.js +187 -180
- package/dist/wiring/capability-table/parity.js +1 -0
- package/dist/wiring/capability-table/pipeline.js +64 -52
- package/dist/wiring/capability-table/registry-core.js +30 -11
- package/dist/wiring/capability-table/reporting.js +147 -106
- package/dist/wiring/capability-table/scheduling-registry.js +201 -167
- package/dist/wiring/capability-table/state.js +59 -51
- package/dist/wiring/capability-table/trust-ledger.js +52 -28
- package/dist/wiring/capability-table/workflow-apps.js +85 -70
- package/docs/agent-delegation-drive.7.md +4 -0
- package/docs/candidate-scoring.7.md +1 -1
- package/docs/canonical-workflow-apps.7.md +7 -7
- package/docs/cli-mcp-parity.7.md +26 -16
- package/docs/contract-migration-tooling.7.md +4 -0
- package/docs/control-plane-scheduling.7.md +4 -0
- package/docs/coordinator-blackboard.7.md +17 -17
- package/docs/dogfood-one-real-repo.7.md +11 -11
- package/docs/durable-state-and-locking.7.md +4 -0
- package/docs/end-to-end-golden-path.7.md +14 -14
- package/docs/evidence-adoption-reasoning-chain.7.md +4 -0
- package/docs/execution-backends.7.md +4 -0
- package/docs/getting-started.md +37 -37
- package/docs/multi-agent-cli-mcp-surface.7.md +21 -17
- package/docs/multi-agent-eval-replay-harness.7.md +17 -13
- package/docs/multi-agent-operator-ux.7.md +23 -19
- package/docs/multi-agent-runtime-core.7.md +22 -22
- package/docs/multi-agent-topologies.7.md +6 -6
- package/docs/multi-agent-trust-policy-audit.7.md +11 -11
- package/docs/node-snapshot-diff-replay.7.md +4 -0
- package/docs/observability-cost-accounting.7.md +4 -0
- package/docs/operator-ux.7.md +34 -34
- package/docs/pipeline-runner.7.md +4 -4
- package/docs/project-index.md +31 -4
- package/docs/real-execution-backends.7.md +4 -0
- package/docs/release-and-migration.7.md +5 -1
- package/docs/release-tooling.7.md +22 -0
- package/docs/routines.md +4 -4
- package/docs/run-registry-control-plane.7.md +23 -19
- package/docs/run-retention-reclamation.7.md +24 -3
- package/docs/scheduled-tasks.md +14 -14
- package/docs/security-trust-hardening.7.md +15 -15
- package/docs/state-explosion-management.7.md +14 -10
- package/docs/team-collaboration.7.md +4 -0
- package/docs/trust-audit-anchor.7.md +4 -0
- package/docs/unix-principles.md +3 -1
- package/docs/verifier-gated-commit.7.md +1 -1
- package/docs/web-desktop-workbench.7.md +4 -0
- package/docs/workflow-app-framework.7.md +13 -13
- package/manifest/plugin.manifest.json +1 -1
- package/package.json +3 -2
- package/scripts/agents/claude-p-agent.js +2 -2
- package/scripts/block-unapproved-tag.sh +42 -6
- package/scripts/bump-version.js +27 -10
- package/scripts/canonical-apps.js +4 -4
- package/scripts/children/batch-delegate-child.js +52 -2
- package/scripts/dogfood-release.js +1 -1
- package/scripts/fake-date-for-reproduction.js +44 -0
- package/scripts/golden-path.js +4 -4
- package/scripts/purity-baseline.json +0 -27
- package/scripts/release-flow.js +194 -13
- package/scripts/release-oneclick.js +407 -0
- package/scripts/verdict-keygen.js +83 -0
- package/scripts/verify-bump-reproduction.sh +148 -0
- package/scripts/verify-verdict-signature.js +61 -0
- package/scripts/version-sync-check.js +39 -22
- package/skills/cool-workflow/SKILL.md +9 -9
- package/skills/cool-workflow/references/commands.md +89 -88
- package/ui/workbench/app.css +37 -1
- package/ui/workbench/app.js +124 -6
|
@@ -17,9 +17,16 @@ const registry_core_1 = require("./registry-core");
|
|
|
17
17
|
// as milestones 3/4 did for their own rows.
|
|
18
18
|
// ---------------------------------------------------------------------
|
|
19
19
|
const exec_backend_cli_1 = require("../../shell/exec-backend-cli");
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const cli_args_1 = require("../../core/util/cli-args");
|
|
21
|
+
// This slice is required unconditionally at startup for every command;
|
|
22
|
+
// load doctor/app-run-cli lazily so only doctor/fix/sandbox.choose/
|
|
23
|
+
// sandbox.resolve/app.run handlers pay their require cost.
|
|
24
|
+
function loadDoctor() {
|
|
25
|
+
return require("../../shell/doctor");
|
|
26
|
+
}
|
|
27
|
+
function loadAppRunCli() {
|
|
28
|
+
return require("../../shell/app-run-cli");
|
|
29
|
+
}
|
|
23
30
|
(0, registry_core_1.attachCliBinding)("sandbox.list", {
|
|
24
31
|
path: ["sandbox", "list"],
|
|
25
32
|
jsonMode: "default",
|
|
@@ -29,24 +36,24 @@ registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.list").mcp.handler = (args)
|
|
|
29
36
|
// GAP #24: cw_sandbox_choose / cw_sandbox_resolve + cw_app_run were declared
|
|
30
37
|
// MCP-only rows with the notYetImplemented placeholder handler. Wire them to
|
|
31
38
|
// the ported shell bodies (both are MCP-only in the old build — no CLI path).
|
|
32
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.choose").mcp.handler = (args) => (
|
|
33
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.resolve").mcp.handler = (args) => (
|
|
34
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("app.run").mcp.handler = (args) => (
|
|
39
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.choose").mcp.handler = (args) => loadAppRunCli().sandboxChooseCli(args);
|
|
40
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.resolve").mcp.handler = (args) => loadAppRunCli().sandboxChooseCli(args);
|
|
41
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("app.run").mcp.handler = (args) => loadAppRunCli().appRunCli(args);
|
|
35
42
|
(0, registry_core_1.attachCliBinding)("sandbox.show", {
|
|
36
43
|
path: ["sandbox", "show"],
|
|
37
44
|
jsonMode: "default",
|
|
38
|
-
handler: (args) => ({ json: (0, exec_backend_cli_1.showSandboxProfileCli)((0,
|
|
45
|
+
handler: (args) => ({ json: (0, exec_backend_cli_1.showSandboxProfileCli)((0, cli_args_1.required)(args.positionals[0], "profile id"), args.options) }),
|
|
39
46
|
});
|
|
40
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.show").mcp.handler = (args) => (0, exec_backend_cli_1.showSandboxProfileCli)((0,
|
|
47
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.show").mcp.handler = (args) => (0, exec_backend_cli_1.showSandboxProfileCli)((0, cli_args_1.required)((0, cli_args_1.optionalArg)(args.profileId), "profile id"), args);
|
|
41
48
|
(0, registry_core_1.attachCliBinding)("sandbox.validate", {
|
|
42
49
|
path: ["sandbox", "validate"],
|
|
43
50
|
jsonMode: "default",
|
|
44
51
|
handler: (args) => {
|
|
45
|
-
const result = (0, exec_backend_cli_1.validateSandboxProfileCli)((0,
|
|
52
|
+
const result = (0, exec_backend_cli_1.validateSandboxProfileCli)((0, cli_args_1.required)(args.positionals[0], "profile file"), args.options);
|
|
46
53
|
return { json: result, exitCode: result.valid ? undefined : 1 };
|
|
47
54
|
},
|
|
48
55
|
});
|
|
49
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.validate").mcp.handler = (args) => (0, exec_backend_cli_1.validateSandboxProfileCli)((0,
|
|
56
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.validate").mcp.handler = (args) => (0, exec_backend_cli_1.validateSandboxProfileCli)((0, cli_args_1.required)((0, cli_args_1.optionalArg)(args.profileFile), "profile file"), args);
|
|
50
57
|
// PARITY: `sandbox.choose`/`sandbox.resolve` are BOTH-surface capabilities
|
|
51
58
|
// per SPEC/mcp.md (old build cli.path ["sandbox","choose"]/["sandbox",
|
|
52
59
|
// "resolve"]) — they were left MCP-only at GAP #24 (see the comment
|
|
@@ -57,12 +64,12 @@ registry_core_1.REGISTRY_BY_CAPABILITY.get("sandbox.validate").mcp.handler = (ar
|
|
|
57
64
|
(0, registry_core_1.attachCliBinding)("sandbox.choose", {
|
|
58
65
|
path: ["sandbox", "choose"],
|
|
59
66
|
jsonMode: "default",
|
|
60
|
-
handler: (args) => ({ json: (
|
|
67
|
+
handler: (args) => ({ json: loadAppRunCli().sandboxChooseCli(args.options) }),
|
|
61
68
|
});
|
|
62
69
|
(0, registry_core_1.attachCliBinding)("sandbox.resolve", {
|
|
63
70
|
path: ["sandbox", "resolve"],
|
|
64
71
|
jsonMode: "default",
|
|
65
|
-
handler: (args) => ({ json: (
|
|
72
|
+
handler: (args) => ({ json: loadAppRunCli().sandboxChooseCli(args.options) }),
|
|
66
73
|
});
|
|
67
74
|
(0, registry_core_1.attachCliBinding)("backend.list", {
|
|
68
75
|
path: ["backend", "list"],
|
|
@@ -73,15 +80,15 @@ registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.list").mcp.handler = () => (
|
|
|
73
80
|
(0, registry_core_1.attachCliBinding)("backend.show", {
|
|
74
81
|
path: ["backend", "show"],
|
|
75
82
|
jsonMode: "default",
|
|
76
|
-
handler: (args) => ({ json: (0, exec_backend_cli_1.showBackendCli)((0,
|
|
83
|
+
handler: (args) => ({ json: (0, exec_backend_cli_1.showBackendCli)((0, cli_args_1.required)(args.positionals[0], "backend id")) }),
|
|
77
84
|
});
|
|
78
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.show").mcp.handler = (args) => (0, exec_backend_cli_1.showBackendCli)((0,
|
|
85
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.show").mcp.handler = (args) => (0, exec_backend_cli_1.showBackendCli)((0, cli_args_1.required)((0, cli_args_1.optionalArg)(args.backendId), "backend id"));
|
|
79
86
|
(0, registry_core_1.attachCliBinding)("backend.probe", {
|
|
80
87
|
path: ["backend", "probe"],
|
|
81
88
|
jsonMode: "default",
|
|
82
89
|
handler: (args) => ({ json: (0, exec_backend_cli_1.probeBackendCli)(args.positionals[0], args.options) }),
|
|
83
90
|
});
|
|
84
|
-
registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.probe").mcp.handler = (args) => (0, exec_backend_cli_1.probeBackendCli)((0,
|
|
91
|
+
registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.probe").mcp.handler = (args) => (0, exec_backend_cli_1.probeBackendCli)((0, cli_args_1.optionalArg)(args.backendId), args);
|
|
85
92
|
// `backend agent config [show]` = read-only; `backend agent config set
|
|
86
93
|
// ...` = mutating. CLI path is ["backend", "agent"] (2 tokens, matching
|
|
87
94
|
// dispatchTable's supported path lengths); the remaining positionals
|
|
@@ -134,7 +141,8 @@ registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.agent.config.set").reason =
|
|
|
134
141
|
path: ["doctor"],
|
|
135
142
|
jsonMode: "flag",
|
|
136
143
|
handler: (args) => {
|
|
137
|
-
const
|
|
144
|
+
const doctor = loadDoctor();
|
|
145
|
+
const report = doctor.runDoctor(args.options, process.env, String(args.options.cwd || process.cwd()));
|
|
138
146
|
// Byte-exact port of src/cli/command-surface.ts:170-176: both text
|
|
139
147
|
// branches are written as `${formatX(report)}\n` UNCONDITIONALLY —
|
|
140
148
|
// formatDoctorFixes already ends in its own "\n" (its last joined
|
|
@@ -143,7 +151,7 @@ registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.agent.config.set").reason =
|
|
|
143
151
|
// renderer only appends "\n" when the text does NOT already end in
|
|
144
152
|
// one, so a bare `formatDoctorFixes(report)` here would silently
|
|
145
153
|
// drop the old build's trailing blank line.
|
|
146
|
-
const text = (0,
|
|
154
|
+
const text = (0, cli_args_1.wantsJson)(args.options) ? undefined : args.options.fix ? `${doctor.formatDoctorFixes(report)}\n` : doctor.formatDoctorReport(report);
|
|
147
155
|
return { json: report, text, exitCode: report.ok ? undefined : 1 };
|
|
148
156
|
},
|
|
149
157
|
}, "Environment diagnostics are inherently local to the CLI host — Node version, $PATH, $CW_HOME/cwd writability. An MCP client diagnosing the server process's environment is not meaningful; agents already receive the same readiness facts in their typed results (e.g. status: blocked, agentConfigured). Inspired by `brew doctor`.");
|
|
@@ -151,12 +159,13 @@ registry_core_1.REGISTRY_BY_CAPABILITY.get("backend.agent.config.set").reason =
|
|
|
151
159
|
path: ["fix"],
|
|
152
160
|
jsonMode: "human",
|
|
153
161
|
handler: (args) => {
|
|
154
|
-
const
|
|
162
|
+
const doctor = loadDoctor();
|
|
163
|
+
const report = doctor.runDoctor(args.options, process.env, String(args.options.cwd || process.cwd()));
|
|
155
164
|
// See the "doctor" handler's comment above: formatDoctorFixes
|
|
156
165
|
// already ends in "\n", so one more explicit "\n" here reproduces
|
|
157
166
|
// src/cli/command-surface.ts:126-130's unconditional
|
|
158
167
|
// `${formatDoctorFixes(report)}\n` write.
|
|
159
|
-
return { text: `${
|
|
168
|
+
return { text: `${doctor.formatDoctorFixes(report)}\n`, exitCode: report.ok ? undefined : 1 };
|
|
160
169
|
},
|
|
161
170
|
}, "Environment fix commands are local diagnostics, same reasoning as doctor.");
|
|
162
171
|
// ---------------------------------------------------------------------
|