@deftai/directive 0.122.0 → 0.124.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.
|
@@ -127,6 +127,16 @@ export function run(argv) {
|
|
|
127
127
|
pathFilter: args.pathFilter.length > 0 ? args.pathFilter : null,
|
|
128
128
|
useDiffPaths: args.useDiffPaths,
|
|
129
129
|
});
|
|
130
|
+
// Exit 3 = authorized coverage N/A (#5421); keep machine-readable artifact on stdout for --json.
|
|
131
|
+
if (result.exitCode === 3) {
|
|
132
|
+
if (args.json && result.applicability) {
|
|
133
|
+
process.stdout.write(`${JSON.stringify(result.applicability, null, 2)}\n`);
|
|
134
|
+
}
|
|
135
|
+
else if (!args.quiet) {
|
|
136
|
+
process.stderr.write(`${result.message}\n`);
|
|
137
|
+
}
|
|
138
|
+
return result.exitCode;
|
|
139
|
+
}
|
|
130
140
|
if (result.exitCode === 2 || result.report === null) {
|
|
131
141
|
process.stderr.write(`${result.message}\n`);
|
|
132
142
|
return result.exitCode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export declare const DESIGN_CRITIQUE_SPEND_RESOLVE_HELP = "design-critique:spend-resolve \u2014 record spend-recommend then resolve (#5466)\n\nUsage:\n deft design-critique:spend-resolve --utterance <text> --recommend N=1|N\u22653 [--project-root PATH] [--session-id ID] [--json]\n deft design-critique:spend-resolve --open-gate [--utterance <text>] [--project-root PATH] [--session-id ID]\n deft design-critique:spend-resolve --clear [--project-root PATH] [--session-id ID]\n deft design-critique:spend-resolve --utterance <text> --unclosable-recommend [--project-root PATH] [--session-id ID]\n\nOptions:\n --utterance TEXT Operator chat utterance (required except --open-gate/--clear)\n --recommend N=1|N\u22653 Closed Dual-stop recommendation (required on bare arc)\n --unclosable-recommend Parent-declared unclosable recommend; permit lawful ask\n --open-gate Open deny-default session-scoped arc-spend-state at arc start\n --clear Clear session arc-spend-state when the arc ends or is abandoned\n --session-id ID Session that owns arc-spend-state (default: DEFT_SESSION_ID / env)\n --project-root PATH Project root for arc-spend-state scratch (default: cwd)\n --json Emit structured result\n\nExit codes:\n 0 Resolved / gate opened / cleared\n 1 Refused (missing/invalid recommend, ambiguous, or unclosable ask path)\n 2 Config / usage error\n";
|
|
3
|
+
export interface DesignCritiqueSpendResolveArgs {
|
|
4
|
+
utterance: string | null;
|
|
5
|
+
recommend: string | null;
|
|
6
|
+
projectRoot: string;
|
|
7
|
+
sessionId: string | null;
|
|
8
|
+
emitJson: boolean;
|
|
9
|
+
help: boolean;
|
|
10
|
+
openGate: boolean;
|
|
11
|
+
clear: boolean;
|
|
12
|
+
unclosableRecommend: boolean;
|
|
13
|
+
error?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function parseDesignCritiqueSpendResolveArgs(argv: readonly string[]): DesignCritiqueSpendResolveArgs;
|
|
16
|
+
export declare function run(argv: readonly string[]): number;
|
|
17
|
+
export declare function main(argv: readonly string[]): number;
|
|
18
|
+
//# sourceMappingURL=design-critique-spend-resolve.d.ts.map
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* design-critique:spend-resolve — callable spend front door (#5466 Prefer-A).
|
|
4
|
+
* Records closed spend-recommend: + resolved spend:/spend-ask: via
|
|
5
|
+
* parseOperatorSpend / evaluateSpendRecord. Bare arc requires --recommend;
|
|
6
|
+
* never asks; never defaults N=1. Does not copy run-posture missing-token
|
|
7
|
+
* auto-resolve onto spend.
|
|
8
|
+
*/
|
|
9
|
+
import { resolve } from "node:path";
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
11
|
+
import { clearArcSpendState, openArcSpendGate, resolveDesignCritiqueSpend, } from "@deftai/directive-core/dist/design-critique/spend.js";
|
|
12
|
+
export const DESIGN_CRITIQUE_SPEND_RESOLVE_HELP = `design-critique:spend-resolve — record spend-recommend then resolve (#5466)
|
|
13
|
+
|
|
14
|
+
Usage:
|
|
15
|
+
deft design-critique:spend-resolve --utterance <text> --recommend N=1|N≥3 [--project-root PATH] [--session-id ID] [--json]
|
|
16
|
+
deft design-critique:spend-resolve --open-gate [--utterance <text>] [--project-root PATH] [--session-id ID]
|
|
17
|
+
deft design-critique:spend-resolve --clear [--project-root PATH] [--session-id ID]
|
|
18
|
+
deft design-critique:spend-resolve --utterance <text> --unclosable-recommend [--project-root PATH] [--session-id ID]
|
|
19
|
+
|
|
20
|
+
Options:
|
|
21
|
+
--utterance TEXT Operator chat utterance (required except --open-gate/--clear)
|
|
22
|
+
--recommend N=1|N≥3 Closed Dual-stop recommendation (required on bare arc)
|
|
23
|
+
--unclosable-recommend Parent-declared unclosable recommend; permit lawful ask
|
|
24
|
+
--open-gate Open deny-default session-scoped arc-spend-state at arc start
|
|
25
|
+
--clear Clear session arc-spend-state when the arc ends or is abandoned
|
|
26
|
+
--session-id ID Session that owns arc-spend-state (default: DEFT_SESSION_ID / env)
|
|
27
|
+
--project-root PATH Project root for arc-spend-state scratch (default: cwd)
|
|
28
|
+
--json Emit structured result
|
|
29
|
+
|
|
30
|
+
Exit codes:
|
|
31
|
+
0 Resolved / gate opened / cleared
|
|
32
|
+
1 Refused (missing/invalid recommend, ambiguous, or unclosable ask path)
|
|
33
|
+
2 Config / usage error
|
|
34
|
+
`;
|
|
35
|
+
export function parseDesignCritiqueSpendResolveArgs(argv) {
|
|
36
|
+
const acc = {
|
|
37
|
+
utterance: null,
|
|
38
|
+
recommend: null,
|
|
39
|
+
projectRoot: ".",
|
|
40
|
+
sessionId: null,
|
|
41
|
+
emitJson: false,
|
|
42
|
+
help: false,
|
|
43
|
+
openGate: false,
|
|
44
|
+
clear: false,
|
|
45
|
+
unclosableRecommend: false,
|
|
46
|
+
};
|
|
47
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
48
|
+
const arg = argv[i];
|
|
49
|
+
// Accept a lone go-task / deft separator so documented `-- --utterance` forms work.
|
|
50
|
+
if (arg === "--") {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (arg === "--help" || arg === "-h") {
|
|
54
|
+
return { ...acc, help: true };
|
|
55
|
+
}
|
|
56
|
+
if (arg === "--json") {
|
|
57
|
+
acc.emitJson = true;
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (arg === "--open-gate") {
|
|
61
|
+
acc.openGate = true;
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if (arg === "--clear") {
|
|
65
|
+
acc.clear = true;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (arg === "--unclosable-recommend") {
|
|
69
|
+
acc.unclosableRecommend = true;
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (arg === "--utterance") {
|
|
73
|
+
const value = argv[i + 1];
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return { ...acc, error: "argument --utterance: expected one argument" };
|
|
76
|
+
}
|
|
77
|
+
acc.utterance = value;
|
|
78
|
+
i += 1;
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if (arg?.startsWith("--utterance=")) {
|
|
82
|
+
acc.utterance = arg.slice("--utterance=".length);
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if (arg === "--recommend") {
|
|
86
|
+
const value = argv[i + 1];
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return { ...acc, error: "argument --recommend: expected one argument" };
|
|
89
|
+
}
|
|
90
|
+
acc.recommend = value;
|
|
91
|
+
i += 1;
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if (arg?.startsWith("--recommend=")) {
|
|
95
|
+
acc.recommend = arg.slice("--recommend=".length);
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if (arg === "--session-id") {
|
|
99
|
+
const value = argv[i + 1];
|
|
100
|
+
if (value === undefined || value.startsWith("--")) {
|
|
101
|
+
return { ...acc, error: "argument --session-id: expected one argument" };
|
|
102
|
+
}
|
|
103
|
+
acc.sessionId = value;
|
|
104
|
+
i += 1;
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
if (arg?.startsWith("--session-id=")) {
|
|
108
|
+
acc.sessionId = arg.slice("--session-id=".length);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (arg === "--project-root") {
|
|
112
|
+
const value = argv[i + 1];
|
|
113
|
+
if (value === undefined) {
|
|
114
|
+
return { ...acc, error: "argument --project-root: expected one argument" };
|
|
115
|
+
}
|
|
116
|
+
acc.projectRoot = value;
|
|
117
|
+
i += 1;
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
if (arg?.startsWith("--project-root=")) {
|
|
121
|
+
acc.projectRoot = arg.slice("--project-root=".length);
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
return { ...acc, error: `unknown argument: ${arg}` };
|
|
125
|
+
}
|
|
126
|
+
return acc;
|
|
127
|
+
}
|
|
128
|
+
export function run(argv) {
|
|
129
|
+
const args = parseDesignCritiqueSpendResolveArgs(argv);
|
|
130
|
+
if (args.help) {
|
|
131
|
+
process.stdout.write(`${DESIGN_CRITIQUE_SPEND_RESOLVE_HELP}\n`);
|
|
132
|
+
return 0;
|
|
133
|
+
}
|
|
134
|
+
if (args.error !== undefined) {
|
|
135
|
+
process.stderr.write(`design-critique:spend-resolve: ${args.error}\n`);
|
|
136
|
+
return 2;
|
|
137
|
+
}
|
|
138
|
+
const projectRoot = resolve(args.projectRoot);
|
|
139
|
+
const sessionId = args.sessionId;
|
|
140
|
+
if (args.clear) {
|
|
141
|
+
const removed = clearArcSpendState(projectRoot, { sessionId });
|
|
142
|
+
if (args.emitJson) {
|
|
143
|
+
process.stdout.write(`${JSON.stringify({ ok: true, cleared: removed }, null, 2)}\n`);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
process.stdout.write(removed
|
|
147
|
+
? "design-critique:spend-resolve: cleared arc-spend-state\n"
|
|
148
|
+
: "design-critique:spend-resolve: no arc-spend-state to clear\n");
|
|
149
|
+
}
|
|
150
|
+
return 0;
|
|
151
|
+
}
|
|
152
|
+
if (args.openGate) {
|
|
153
|
+
const state = openArcSpendGate(projectRoot, { utterance: args.utterance, sessionId });
|
|
154
|
+
if (args.emitJson) {
|
|
155
|
+
process.stdout.write(`${JSON.stringify({ ok: true, opened: true, state }, null, 2)}\n`);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
process.stdout.write("design-critique:spend-resolve: opened arc spend gate (ask denied until --recommend or lawful ask)\n");
|
|
159
|
+
}
|
|
160
|
+
return 0;
|
|
161
|
+
}
|
|
162
|
+
if (args.utterance === null || args.utterance.trim().length === 0) {
|
|
163
|
+
process.stderr.write("design-critique:spend-resolve: --utterance is required\n" +
|
|
164
|
+
"Remediation: deft design-critique:spend-resolve --utterance <text> --recommend N=1|N≥3\n");
|
|
165
|
+
return 2;
|
|
166
|
+
}
|
|
167
|
+
const result = resolveDesignCritiqueSpend({
|
|
168
|
+
utterance: args.utterance,
|
|
169
|
+
recommendRaw: args.recommend,
|
|
170
|
+
unclosableRecommend: args.unclosableRecommend,
|
|
171
|
+
projectRoot,
|
|
172
|
+
sessionId,
|
|
173
|
+
});
|
|
174
|
+
if (args.emitJson) {
|
|
175
|
+
process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
176
|
+
}
|
|
177
|
+
else if (result.ok) {
|
|
178
|
+
process.stdout.write(`${result.lines.join("\n")}\n`);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
process.stderr.write(`${result.message}\n`);
|
|
182
|
+
}
|
|
183
|
+
return result.ok ? 0 : 1;
|
|
184
|
+
}
|
|
185
|
+
export function main(argv) {
|
|
186
|
+
return run(argv);
|
|
187
|
+
}
|
|
188
|
+
if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
|
|
189
|
+
process.exit(run(process.argv.slice(2)));
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=design-critique-spend-resolve.js.map
|
package/dist/dispatch.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export interface DispatchIo {
|
|
|
10
10
|
writeErr: (text: string) => void;
|
|
11
11
|
}
|
|
12
12
|
/** CLI modules in packages/cli/src (excluding parity harnesses and bin/index). */
|
|
13
|
-
export declare const CLI_MODULE_VERBS: readonly ["agents-refresh", "cache", "check", "capacity-backfill", "capacity-show", "codebase-default-extractor", "codebase-map", "codebase-map-fresh", "codebase-projection-registry", "codebase-provider", "doctor", "ownership-doctor", "ownership-fix", "verify-ownership", "install-upgrade", "install-uninstall", "migrate-preflight", "migrate-xbrief", "migrate-category-b", "framework-check-updates", "hook-dispatch", "umbrella-current-shape", "changelog-check", "change-init", "commit-lint", "coverage-hotspots", "policy", "authz", "escalation-cli", "pr-closing-keywords", "pr-merge-readiness", "pr-monitor", "pr-protected-issues", "pr-wait-mergeable", "pr-watch", "pr-finish-loop", "directive-finish-loop", "pre-pr-run", "preflight-cache", "preflight-gh", "probe-session", "release", "release-e2e", "release-publish", "release-rollback", "release-wait-npm", "scope-lifecycle", "scope-record-approved-scope", "scope-record-observable-scope", "scope-record-intent-constraint", "scm-sync-default", "lifecycle-event", "lifecycle-stats", "session-start", "session-ready", "occupancy-steal", "occupancy-release", "occupancy-heartbeat", "occupancy-grant", "plan-sequence", "slice", "subagent-monitor", "toolchain-check", "triage-actions", "triage-bootstrap", "triage-bulk", "triage-classify", "triage-strip-withdrawn", "triage-evaluate", "triage-help", "triage-queue", "triage-reconcile", "triage-refresh", "triage-scope", "triage-scope-drift", "triage-smoketest", "triage-subscribe", "triage-summary", "triage-welcome", "ts-check-lane", "vbrief-activate", "vbrief-build", "vbrief-preflight", "vbrief-reconcile", "vbrief-validate", "vbrief-validation", "xbrief-create", "xbrief-verify", "xbrief-adopt-stored-plan-id", "verify-branch", "verify-encoding", "verify-forward-coverage", "verify-test-boundary", "verify-class-checks", "verify-presentation-coverage", "verify-scope-provenance", "verify-consumer-check-contract", "verify-hooks-installed", "verify-investigation", "verify-judgment-gates", "verify-no-task-runtime", "validate-links", "validate-strategy-output", "verify-biome-config", "verify-bridge-drift", "verify-capacity", "verify-contained-writes", "verify-telemetry-coverage", "verify-content-manifest", "verify-deposit-closure", "verify-consumer-hard-stops", "verify-closing-keywords", "verify-skill-external-fetch-gate", "verify-semantic-single-source", "verify-contract-drift", "verify-cursor-tier1", "verify-openclaw-tier1", "verify-go-freeze", "verify-scm-boundary", "verify-session-ritual", "verify-plan-sequence", "verify-stubs", "verify-xbrief-drift", "verify-spec-prd-fresh", "verify-spec-drift", "rule-ownership-lint", "verify-story-ready", "verify-review-monitor", "verify-cohort-review-monitors", "verify-l4-owner", "verify-subagent-alive", "verify-subagent-steer", "subagent-pre-cancel", "subagent-steer-write", "review-monitor-register", "review-monitor-release", "verify-tools", "verify-wip-cap", "verify-orphan-active", "verify-pr-closeout-attestable", "verify-lifecycle-visible", "verify-completed-tracked", "verify-completed-write-guard", "verify-literal-ac", "verify-ac", "verify-agents-md-budget", "verify-consumer-header-placeholder", "verify-agents-md-advisory", "verify-persisted-planning-narratives", "verify-eval-health-relocation", "verify-eval-triggers-relocation", "verify-evaluator-surface", "verify-observable-scope", "verify-operator-scope-limit", "verify-presentation-ceiling", "verify-intent-constraint", "verify-durable-effect-acquisition", "verify-consumer-test-lane", "eval-health", "eval-run", "eval-report", "eval-triggers"];
|
|
13
|
+
export declare const CLI_MODULE_VERBS: readonly ["agents-refresh", "cache", "check", "capacity-backfill", "capacity-show", "codebase-default-extractor", "codebase-map", "codebase-map-fresh", "codebase-projection-registry", "codebase-provider", "doctor", "ownership-doctor", "ownership-fix", "verify-ownership", "install-upgrade", "install-uninstall", "migrate-preflight", "migrate-xbrief", "migrate-category-b", "framework-check-updates", "hook-dispatch", "umbrella-current-shape", "changelog-check", "change-init", "commit-lint", "coverage-hotspots", "policy", "authz", "escalation-cli", "pr-closing-keywords", "pr-merge-readiness", "pr-monitor", "pr-protected-issues", "pr-wait-mergeable", "pr-watch", "pr-finish-loop", "directive-finish-loop", "pre-pr-run", "preflight-cache", "preflight-gh", "probe-session", "release", "release-e2e", "release-publish", "release-rollback", "release-wait-npm", "scope-lifecycle", "scope-record-approved-scope", "scope-record-observable-scope", "scope-record-intent-constraint", "scm-sync-default", "lifecycle-event", "lifecycle-stats", "session-start", "session-ready", "occupancy-steal", "occupancy-release", "occupancy-heartbeat", "occupancy-grant", "plan-sequence", "slice", "subagent-monitor", "toolchain-check", "triage-actions", "triage-bootstrap", "triage-bulk", "triage-classify", "triage-strip-withdrawn", "triage-evaluate", "triage-help", "triage-queue", "triage-reconcile", "triage-refresh", "triage-scope", "triage-scope-drift", "triage-smoketest", "triage-subscribe", "triage-summary", "triage-welcome", "ts-check-lane", "vbrief-activate", "vbrief-build", "vbrief-preflight", "vbrief-reconcile", "vbrief-validate", "vbrief-validation", "xbrief-create", "xbrief-verify", "xbrief-adopt-stored-plan-id", "verify-branch", "verify-encoding", "verify-forward-coverage", "verify-test-boundary", "verify-class-checks", "verify-presentation-coverage", "verify-scope-provenance", "verify-consumer-check-contract", "verify-hooks-installed", "verify-investigation", "verify-judgment-gates", "verify-no-task-runtime", "validate-links", "validate-strategy-output", "verify-biome-config", "verify-bridge-drift", "verify-capacity", "verify-contained-writes", "verify-telemetry-coverage", "verify-content-manifest", "verify-deposit-closure", "verify-consumer-hard-stops", "verify-closing-keywords", "verify-skill-external-fetch-gate", "verify-semantic-single-source", "verify-contract-drift", "verify-cursor-tier1", "verify-openclaw-tier1", "verify-go-freeze", "verify-scm-boundary", "verify-session-ritual", "verify-plan-sequence", "verify-stubs", "verify-xbrief-drift", "verify-spec-prd-fresh", "verify-spec-drift", "rule-ownership-lint", "verify-story-ready", "verify-review-monitor", "verify-cohort-review-monitors", "verify-l4-owner", "verify-subagent-alive", "verify-subagent-steer", "subagent-pre-cancel", "subagent-steer-write", "design-critique-spend-resolve", "review-monitor-register", "review-monitor-release", "verify-tools", "verify-wip-cap", "verify-orphan-active", "verify-pr-closeout-attestable", "verify-lifecycle-visible", "verify-completed-tracked", "verify-completed-write-guard", "verify-literal-ac", "verify-ac", "verify-agents-md-budget", "verify-consumer-header-placeholder", "verify-agents-md-advisory", "verify-persisted-planning-narratives", "verify-eval-health-relocation", "verify-eval-triggers-relocation", "verify-evaluator-surface", "verify-observable-scope", "verify-operator-scope-limit", "verify-presentation-ceiling", "verify-intent-constraint", "verify-durable-effect-acquisition", "verify-consumer-test-lane", "eval-health", "eval-run", "eval-report", "eval-triggers"];
|
|
14
14
|
/** Core-only CLI entrypoints without a packages/cli wrapper. */
|
|
15
|
-
export declare const CORE_MODULE_VERBS: readonly ["scm", "scm-readiness", "github-auth-modes", "github-body", "issue-emit", "issue-ingest", "issue-sync-from-xbrief", "reconcile-issues", "swarm-launch", "swarm-complete-cohort", "swarm-finalize-cohort", "swarm-finalize-owed", "swarm-pre-dispatch", "swarm-readiness", "swarm-routing-verify", "swarm-routing-set", "swarm-verify-review-clean", "swarm-worktrees", "framework-commands", "pack-render", "packs-slice", "prd-render", "export-spec", "project-render", "project-write-narratives", "roadmap-render", "rule-map", "spec-render", "spec-reconstruct", "spec-validate", "code-structure-validate", "pack-migrate-skills", "pack-migrate-rules", "pack-migrate-strategies", "pack-migrate-patterns", "pack-migrate-swarm-spec", "policy-set", "setup-ghx", "scope-undo", "scope-demote", "scope-decompose", "changelog-resolve-unreleased", "architecture-preflight-sor", "feedback-file", "value-readback", "product-signal", "freshness-report", "decision-write", "decision-list", "docs-impact", "migrate-clause-ids"];
|
|
15
|
+
export declare const CORE_MODULE_VERBS: readonly ["scm", "scm-readiness", "github-auth-modes", "github-body", "issue-emit", "issue-ingest", "issue-sync-from-xbrief", "reconcile-issues", "swarm-launch", "swarm-complete-cohort", "swarm-finalize-cohort", "swarm-finalize-owed", "swarm-pre-dispatch", "swarm-readiness", "swarm-routing-verify", "swarm-routing-set", "swarm-verify-review-clean", "swarm-worktrees", "framework-commands", "pack-render", "packs-slice", "prd-render", "export-spec", "project-render", "project-write-narratives", "roadmap-render", "rule-map", "spec-render", "spec-reconstruct", "spec-validate", "code-structure-validate", "pack-migrate-skills", "pack-migrate-rules", "pack-migrate-strategies", "pack-migrate-patterns", "pack-migrate-swarm-spec", "policy-set", "setup-ghx", "scope-undo", "scope-demote", "scope-decompose", "changelog-resolve-unreleased", "architecture-preflight-sor", "feedback-file", "value-readback", "product-signal", "freshness-report", "decision-write", "decision-list", "docs-impact", "migrate-clause-ids", "migrate-confidence"];
|
|
16
16
|
/** Colon aliases for triage-actions (mirrors cli-router SUBCOMMAND_ROUTES). */
|
|
17
17
|
export declare const TRIAGE_ACTION_ALIAS_SUBCOMMANDS: Readonly<Record<string, string>>;
|
|
18
18
|
/** Colon aliases for policy subcommands (mirrors cli-router SUBCOMMAND_ROUTES). */
|
package/dist/dispatch.js
CHANGED
|
@@ -161,6 +161,7 @@ export const CLI_MODULE_VERBS = [
|
|
|
161
161
|
"verify-subagent-steer",
|
|
162
162
|
"subagent-pre-cancel",
|
|
163
163
|
"subagent-steer-write",
|
|
164
|
+
"design-critique-spend-resolve",
|
|
164
165
|
"review-monitor-register",
|
|
165
166
|
"review-monitor-release",
|
|
166
167
|
"verify-tools",
|
|
@@ -243,6 +244,7 @@ export const CORE_MODULE_VERBS = [
|
|
|
243
244
|
"decision-list",
|
|
244
245
|
"docs-impact",
|
|
245
246
|
"migrate-clause-ids",
|
|
247
|
+
"migrate-confidence",
|
|
246
248
|
];
|
|
247
249
|
/** Colon aliases for triage-actions (mirrors cli-router SUBCOMMAND_ROUTES). */
|
|
248
250
|
export const TRIAGE_ACTION_ALIAS_SUBCOMMANDS = {
|
|
@@ -377,6 +379,7 @@ export const VERB_ALIASES = {
|
|
|
377
379
|
"verify:subagent-steer": "verify-subagent-steer",
|
|
378
380
|
"subagent:pre-cancel": "subagent-pre-cancel",
|
|
379
381
|
"subagent:steer": "subagent-steer-write",
|
|
382
|
+
"design-critique:spend-resolve": "design-critique-spend-resolve",
|
|
380
383
|
"agent:monitor": "subagent-monitor",
|
|
381
384
|
"review-monitor:register": "review-monitor-register",
|
|
382
385
|
"review-monitor:release": "review-monitor-release",
|
|
@@ -431,6 +434,7 @@ export const VERB_ALIASES = {
|
|
|
431
434
|
"migrate:xbrief": "migrate-xbrief",
|
|
432
435
|
"migrate:category-b": "migrate-category-b",
|
|
433
436
|
"migrate:clause-ids": "migrate-clause-ids",
|
|
437
|
+
"migrate:confidence": "migrate-confidence",
|
|
434
438
|
"framework:check-updates": "framework-check-updates",
|
|
435
439
|
"umbrella:current-shape": "umbrella-current-shape",
|
|
436
440
|
"issue:sync-from-xbrief": "issue-sync-from-xbrief",
|
|
@@ -2656,6 +2660,10 @@ async function loadCoreModuleHandler(verb, io) {
|
|
|
2656
2660
|
const { mainEntry } = await import("@deftai/directive-core/dist/xbrief-migrate/clause-ids.js");
|
|
2657
2661
|
return (argv) => mainEntry(argv);
|
|
2658
2662
|
}
|
|
2663
|
+
case "migrate-confidence": {
|
|
2664
|
+
const { mainEntry } = await import("@deftai/directive-core/dist/xbrief-migrate/confidence.js");
|
|
2665
|
+
return (argv) => mainEntry(argv);
|
|
2666
|
+
}
|
|
2659
2667
|
default:
|
|
2660
2668
|
throw new Error(`unknown core verb: ${verb}`);
|
|
2661
2669
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftai/directive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.124.0",
|
|
4
4
|
"description": "Directive CLI — npm install path for the Deft Directive framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://deftai.github.io/directive/",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"provenance": true
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@deftai/directive-core": "^0.
|
|
39
|
-
"@deftai/directive-content": "^0.
|
|
38
|
+
"@deftai/directive-core": "^0.124.0",
|
|
39
|
+
"@deftai/directive-content": "^0.124.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsc -b",
|