sdtk-code-kit 0.3.0 → 0.3.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 +204 -204
- package/assets/manifest/toolkit-bundle.manifest.json +147 -147
- package/assets/manifest/toolkit-bundle.sha256.txt +5 -5
- package/bin/sdtk-code.js +14 -14
- package/package.json +44 -44
- package/src/commands/agent-team.js +425 -174
- package/src/commands/build.js +53 -53
- package/src/commands/doctor.js +51 -51
- package/src/commands/generate.js +11 -11
- package/src/commands/guardrails.js +215 -215
- package/src/commands/help.js +264 -257
- package/src/commands/init.js +98 -98
- package/src/commands/plan.js +53 -53
- package/src/commands/readiness.js +77 -77
- package/src/commands/resume.js +61 -61
- package/src/commands/runtime.js +224 -224
- package/src/commands/ship.js +59 -59
- package/src/commands/sleep.js +132 -132
- package/src/commands/start.js +89 -89
- package/src/commands/status.js +77 -77
- package/src/commands/update.js +11 -11
- package/src/commands/verify.js +71 -71
- package/src/index.js +112 -112
- package/src/lib/agent-team-author.js +521 -0
- package/src/lib/agent-team-evidence.js +302 -0
- package/src/lib/agent-team-execute.js +892 -0
- package/src/lib/agent-team-export.js +411 -409
- package/src/lib/agent-team-plan.js +514 -514
- package/src/lib/agent-team-readiness.js +161 -0
- package/src/lib/agent-team-report.js +165 -0
- package/src/lib/args.js +107 -107
- package/src/lib/errors.js +41 -41
- package/src/lib/model-provider.js +219 -0
- package/src/lib/powershell.js +65 -65
- package/src/lib/project-target-guard.js +53 -53
- package/src/lib/scope.js +72 -72
- package/src/lib/ship-readiness.js +281 -281
- package/src/lib/sleep-plan.js +175 -175
- package/src/lib/sleep-report.js +229 -229
- package/src/lib/toolkit-payload.js +72 -72
- package/src/lib/trust-events.js +252 -185
- package/src/lib/trust-file-scope.js +154 -154
- package/src/lib/trust-policy.js +212 -212
- package/src/lib/trust-redact.js +58 -35
- package/src/lib/trust-trace.js +179 -179
- package/src/lib/update.js +344 -344
- package/src/lib/workflow-artifact.js +503 -503
- package/src/lib/workflow-build.js +127 -127
- package/src/lib/workflow-doctor.js +83 -83
- package/src/lib/workflow-handoff.js +1029 -1029
- package/src/lib/workflow-intake.js +101 -101
- package/src/lib/workflow-plan.js +193 -193
- package/src/lib/workflow-review-packet.js +650 -650
- package/src/lib/workflow-ship.js +213 -213
- package/src/lib/workflow-state.js +438 -438
- package/src/lib/workflow-verify.js +393 -393
package/src/commands/help.js
CHANGED
|
@@ -1,257 +1,264 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function cmdHelp() {
|
|
4
|
-
const text = [
|
|
5
|
-
"SDTK-CODE CLI -- coding process discipline toolkit",
|
|
6
|
-
"",
|
|
7
|
-
"Usage:",
|
|
8
|
-
" sdtk-code <command> [options]",
|
|
9
|
-
"",
|
|
10
|
-
"Commands:",
|
|
11
|
-
" start Create or refresh CODE_WORKFLOW from formal handoff or compatibility inputs",
|
|
12
|
-
" plan Refine downstream execution slices inside the approved handoff scope",
|
|
13
|
-
" build Record build progress and route the next coding engine step",
|
|
14
|
-
" verify Record summarized evidence, write REVIEW_PACKET, and update ordered review gates",
|
|
15
|
-
" ship Record final ship or finish decision and emit OPS_HANDOFF on formal closeout",
|
|
16
|
-
" status Inspect current workflow lifecycle state and next legal action",
|
|
17
|
-
" doctor Diagnose missing or contradictory workflow state (diagnostic only)",
|
|
18
|
-
" resume Continue only when resume is machine-safe; otherwise fail closed",
|
|
19
|
-
" update Refresh the npm package and optionally re-apply managed project/runtime assets",
|
|
20
|
-
" init Initialize SDTK-CODE workspace",
|
|
21
|
-
" runtime Manage runtime asset installation (install, uninstall, status)",
|
|
22
|
-
" agent-team
|
|
23
|
-
"",
|
|
24
|
-
"Workflow status:",
|
|
25
|
-
" Implemented now: start, plan, build, verify, ship, status, doctor, resume",
|
|
26
|
-
"",
|
|
27
|
-
"Package status:",
|
|
28
|
-
" Public package: sdtk-code-kit",
|
|
29
|
-
" Check latest published version: npm view sdtk-code-kit version",
|
|
30
|
-
" Canonical command: sdtk-code",
|
|
31
|
-
" Real workflow execution still expects upstream SDTK-SPEC artifacts",
|
|
32
|
-
" Current public workflow surface is live on npm",
|
|
33
|
-
" CI/tag-publish parity remains follow-up hardening, not a blocker for the current public package line",
|
|
34
|
-
" Payload stays intentionally narrow and ships runtime assets plus CODE_WORKFLOW_TEMPLATE.md",
|
|
35
|
-
"",
|
|
36
|
-
"Start options:",
|
|
37
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
38
|
-
" --lane <feature|bugfix> Explicit workflow lane (required)",
|
|
39
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
40
|
-
" --force Reinitialize an existing workflow artifact",
|
|
41
|
-
"",
|
|
42
|
-
"Start intake truth:",
|
|
43
|
-
" Prefers docs/dev/CODE_HANDOFF_[FEATURE_KEY].json when present",
|
|
44
|
-
" Falls back to FEATURE_IMPL_PLAN + sdtk-spec.config.json only when the formal handoff file is missing",
|
|
45
|
-
" Feature lane expects formal handoff by default; bugfix may use compatibility fallback when missing",
|
|
46
|
-
" Invalid or blocked formal handoff stops start and writes a blocked workflow artifact",
|
|
47
|
-
" FEATURE_IMPL_PLAN remains the upstream /dev implementation-readiness plan; CODE plan only refines execution slices after intake",
|
|
48
|
-
"",
|
|
49
|
-
"Plan options:",
|
|
50
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
51
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
52
|
-
" --in-scope <text> Record an in-scope item (repeatable)",
|
|
53
|
-
" --out-scope <text> Record an out-of-scope item (repeatable)",
|
|
54
|
-
" --slice <text> Record a planning slice (repeatable; explicit refinement path for feature lane)",
|
|
55
|
-
" --use-seeded-candidates Confirm the seeded feature-lane slice set from the formal handoff",
|
|
56
|
-
" --assumption <text> Record a planning assumption (repeatable)",
|
|
57
|
-
" --risk <text> Record a planning risk (repeatable)",
|
|
58
|
-
" --note <text> Record an additional planning note (repeatable)",
|
|
59
|
-
"",
|
|
60
|
-
"Build options:",
|
|
61
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
62
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
63
|
-
" --active-slice <text> Record an active build slice (repeatable)",
|
|
64
|
-
" --note <text> Record a build note (repeatable)",
|
|
65
|
-
" --debug-note <text> Record a reactive debug note (repeatable)",
|
|
66
|
-
" --parallel-reason <text> Explicit justification for code-parallel in feature lane",
|
|
67
|
-
" --complete Mark the current build pass complete and route to verify",
|
|
68
|
-
" --blocked Mark the current build pass blocked and keep routing on build",
|
|
69
|
-
"",
|
|
70
|
-
"Verify options:",
|
|
71
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
72
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
73
|
-
" --evidence <text> Summarized evidence entry in the form",
|
|
74
|
-
" \"check|summary|pass|docs/dev/evidence/FEATURE_KEY/file.txt\"",
|
|
75
|
-
" (repeatable; at least one required)",
|
|
76
|
-
" --batch-summary <text> High-level batch summary for REVIEW_PACKET generation",
|
|
77
|
-
" --changed-file <text> Changed-file entry in the form",
|
|
78
|
-
" \"repo/path|rationale\" (repeatable)",
|
|
79
|
-
" --exclude-file <text> Exclusion entry in the form",
|
|
80
|
-
" \"repo/path|reason\" (repeatable)",
|
|
81
|
-
" --truth-sync-target <text> Truth-sync entry in the form",
|
|
82
|
-
" \"path-or-surface|touched|rationale\"",
|
|
83
|
-
" (status must be touched or untouched; repeatable)",
|
|
84
|
-
" --commit-include <path> Repo-relative file to include in the proposed commit boundary",
|
|
85
|
-
" (repeatable)",
|
|
86
|
-
" --commit-exclude <path> Repo-relative file to exclude from the proposed commit boundary",
|
|
87
|
-
" (repeatable)",
|
|
88
|
-
" --caveat <text> Caveat entry in the form",
|
|
89
|
-
" \"ID|statement|impact|owner\" (repeatable)",
|
|
90
|
-
" --reviewer-guidance <text> Additional reviewer guidance line for REVIEW_PACKET",
|
|
91
|
-
" (repeatable)",
|
|
92
|
-
" --spec-status <pending|pass|partial|fail>",
|
|
93
|
-
" Current spec/compliance review gate status",
|
|
94
|
-
" --spec-note <text> Record a spec/compliance review note (repeatable)",
|
|
95
|
-
" --quality-status <pending|pass|partial|fail>",
|
|
96
|
-
" Current quality review gate status",
|
|
97
|
-
" --quality-note <text> Record a quality review note (repeatable)",
|
|
98
|
-
" --debug-note <text> Record reactive debug follow-up from verification (repeatable)",
|
|
99
|
-
" --complete Mark verify complete and route to ship",
|
|
100
|
-
" --blocked Keep verify blocked and route back to verification work",
|
|
101
|
-
"",
|
|
102
|
-
"Ship options:",
|
|
103
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
104
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
105
|
-
" --decision <ship|finish> Final decision to record (required)",
|
|
106
|
-
" --preflight <text> Preflight entry in the form",
|
|
107
|
-
" \"check|summary|pass|docs/dev/evidence/FEATURE_KEY/file.txt\"",
|
|
108
|
-
" (repeatable; at least one required)",
|
|
109
|
-
" --follow-up <text> Record a deferred follow-up item (repeatable)",
|
|
110
|
-
" --note <text> Record a ship/finalization note (repeatable)",
|
|
111
|
-
" --debug-note <text> Record reactive debug follow-up from preflight (repeatable)",
|
|
112
|
-
" --blocked Keep ship blocked and route back to code-debug/code-ship",
|
|
113
|
-
"",
|
|
114
|
-
"Ship closeout truth:",
|
|
115
|
-
" Completed closeout backed by docs/dev/CODE_HANDOFF_[FEATURE_KEY].json writes docs/dev/OPS_HANDOFF_[FEATURE_KEY].json",
|
|
116
|
-
" Compatibility fallback workflows do not emit a fake OPS handoff without the current formal CODE_HANDOFF",
|
|
117
|
-
"",
|
|
118
|
-
"Status options:",
|
|
119
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
120
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
121
|
-
"",
|
|
122
|
-
"Doctor options:",
|
|
123
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
124
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
125
|
-
" Doctor is diagnostic-only in BK-047-lite and does not auto-repair workflow files.",
|
|
126
|
-
"",
|
|
127
|
-
"Resume options:",
|
|
128
|
-
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
129
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
130
|
-
" Resume auto-dispatch is currently bounded to machine-safe build transitions only.",
|
|
131
|
-
" Resume fails closed for plan, verify, and ship because explicit operator inputs are required.",
|
|
132
|
-
"",
|
|
133
|
-
"Init options:",
|
|
134
|
-
" --runtime <codex|claude> Runtime adapter (default: codex)",
|
|
135
|
-
" --runtime-scope <project|user> Install scope (default: project for claude, user for codex)",
|
|
136
|
-
" --project-path <path> Target project directory (default: cwd)",
|
|
137
|
-
" --force Overwrite existing files",
|
|
138
|
-
" --skip-runtime-assets Skip runtime skill installation",
|
|
139
|
-
" --skip-skills Deprecated alias for --skip-runtime-assets",
|
|
140
|
-
" --verbose Show detailed PowerShell script output",
|
|
141
|
-
"",
|
|
142
|
-
"Runtime subcommands:",
|
|
143
|
-
" sdtk-code runtime install --runtime <codex|claude> [--scope <project|user>]",
|
|
144
|
-
" sdtk-code runtime uninstall --runtime <codex|claude> [--scope <project|user>] [--all]",
|
|
145
|
-
" sdtk-code runtime status --runtime <codex|claude> [--project-path <path>]",
|
|
146
|
-
"",
|
|
147
|
-
"Update options:",
|
|
148
|
-
" --version <latest|x.y.z> Target published npm package version (default: latest)",
|
|
149
|
-
" --runtime <codex|claude> Optional runtime refresh target after npm update",
|
|
150
|
-
" --scope <project|user> Runtime asset scope when --runtime is provided",
|
|
151
|
-
" --project-path <path> Target project directory for managed file refresh (default: cwd)",
|
|
152
|
-
" --check-only Print the planned npm/init/runtime refresh steps without making changes",
|
|
153
|
-
" --skip-project-files Skip sdtk-code init --force during update",
|
|
154
|
-
" --skip-runtime-assets Skip sdtk-code runtime install --force during update",
|
|
155
|
-
" --verbose Show detailed command output",
|
|
156
|
-
" Maintainer-root guard: init/update refuse the SDTK maintainer monorepo root as a managed project target.",
|
|
157
|
-
" Use a consumer project path, or use --skip-project-files when update should avoid project-file refresh.",
|
|
158
|
-
"",
|
|
159
|
-
"Agent-team subcommands
|
|
160
|
-
" sdtk-code agent-team plan
|
|
161
|
-
" sdtk-code agent-team preview
|
|
162
|
-
" sdtk-code agent-team export
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"",
|
|
171
|
-
"
|
|
172
|
-
" --
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
"",
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"",
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"",
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"",
|
|
196
|
-
"
|
|
197
|
-
" -
|
|
198
|
-
"
|
|
199
|
-
"",
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"",
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
" sdtk-code
|
|
216
|
-
" sdtk-code
|
|
217
|
-
" sdtk-code
|
|
218
|
-
" sdtk-code
|
|
219
|
-
" sdtk-code
|
|
220
|
-
" sdtk-code
|
|
221
|
-
" sdtk-code
|
|
222
|
-
" sdtk-code
|
|
223
|
-
" sdtk-code
|
|
224
|
-
" sdtk-code
|
|
225
|
-
" sdtk-code
|
|
226
|
-
" sdtk-code
|
|
227
|
-
" sdtk-code
|
|
228
|
-
" sdtk-code
|
|
229
|
-
" sdtk-code
|
|
230
|
-
" sdtk-code
|
|
231
|
-
" sdtk-code
|
|
232
|
-
" sdtk-code
|
|
233
|
-
" sdtk-code
|
|
234
|
-
"
|
|
235
|
-
"",
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
"
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function cmdHelp() {
|
|
4
|
+
const text = [
|
|
5
|
+
"SDTK-CODE CLI -- coding process discipline toolkit",
|
|
6
|
+
"",
|
|
7
|
+
"Usage:",
|
|
8
|
+
" sdtk-code <command> [options]",
|
|
9
|
+
"",
|
|
10
|
+
"Commands:",
|
|
11
|
+
" start Create or refresh CODE_WORKFLOW from formal handoff or compatibility inputs",
|
|
12
|
+
" plan Refine downstream execution slices inside the approved handoff scope",
|
|
13
|
+
" build Record build progress and route the next coding engine step",
|
|
14
|
+
" verify Record summarized evidence, write REVIEW_PACKET, and update ordered review gates",
|
|
15
|
+
" ship Record final ship or finish decision and emit OPS_HANDOFF on formal closeout",
|
|
16
|
+
" status Inspect current workflow lifecycle state and next legal action",
|
|
17
|
+
" doctor Diagnose missing or contradictory workflow state (diagnostic only)",
|
|
18
|
+
" resume Continue only when resume is machine-safe; otherwise fail closed",
|
|
19
|
+
" update Refresh the npm package and optionally re-apply managed project/runtime assets",
|
|
20
|
+
" init Initialize SDTK-CODE workspace",
|
|
21
|
+
" runtime Manage runtime asset installation (install, uninstall, status)",
|
|
22
|
+
" agent-team Plan/preview/export/evidence plus bounded docs/governance Markdown execute/author",
|
|
23
|
+
"",
|
|
24
|
+
"Workflow status:",
|
|
25
|
+
" Implemented now: start, plan, build, verify, ship, status, doctor, resume",
|
|
26
|
+
"",
|
|
27
|
+
"Package status:",
|
|
28
|
+
" Public package: sdtk-code-kit",
|
|
29
|
+
" Check latest published version: npm view sdtk-code-kit version",
|
|
30
|
+
" Canonical command: sdtk-code",
|
|
31
|
+
" Real workflow execution still expects upstream SDTK-SPEC artifacts",
|
|
32
|
+
" Current public workflow surface is live on npm",
|
|
33
|
+
" CI/tag-publish parity remains follow-up hardening, not a blocker for the current public package line",
|
|
34
|
+
" Payload stays intentionally narrow and ships runtime assets plus CODE_WORKFLOW_TEMPLATE.md",
|
|
35
|
+
"",
|
|
36
|
+
"Start options:",
|
|
37
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
38
|
+
" --lane <feature|bugfix> Explicit workflow lane (required)",
|
|
39
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
40
|
+
" --force Reinitialize an existing workflow artifact",
|
|
41
|
+
"",
|
|
42
|
+
"Start intake truth:",
|
|
43
|
+
" Prefers docs/dev/CODE_HANDOFF_[FEATURE_KEY].json when present",
|
|
44
|
+
" Falls back to FEATURE_IMPL_PLAN + sdtk-spec.config.json only when the formal handoff file is missing",
|
|
45
|
+
" Feature lane expects formal handoff by default; bugfix may use compatibility fallback when missing",
|
|
46
|
+
" Invalid or blocked formal handoff stops start and writes a blocked workflow artifact",
|
|
47
|
+
" FEATURE_IMPL_PLAN remains the upstream /dev implementation-readiness plan; CODE plan only refines execution slices after intake",
|
|
48
|
+
"",
|
|
49
|
+
"Plan options:",
|
|
50
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
51
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
52
|
+
" --in-scope <text> Record an in-scope item (repeatable)",
|
|
53
|
+
" --out-scope <text> Record an out-of-scope item (repeatable)",
|
|
54
|
+
" --slice <text> Record a planning slice (repeatable; explicit refinement path for feature lane)",
|
|
55
|
+
" --use-seeded-candidates Confirm the seeded feature-lane slice set from the formal handoff",
|
|
56
|
+
" --assumption <text> Record a planning assumption (repeatable)",
|
|
57
|
+
" --risk <text> Record a planning risk (repeatable)",
|
|
58
|
+
" --note <text> Record an additional planning note (repeatable)",
|
|
59
|
+
"",
|
|
60
|
+
"Build options:",
|
|
61
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
62
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
63
|
+
" --active-slice <text> Record an active build slice (repeatable)",
|
|
64
|
+
" --note <text> Record a build note (repeatable)",
|
|
65
|
+
" --debug-note <text> Record a reactive debug note (repeatable)",
|
|
66
|
+
" --parallel-reason <text> Explicit justification for code-parallel in feature lane",
|
|
67
|
+
" --complete Mark the current build pass complete and route to verify",
|
|
68
|
+
" --blocked Mark the current build pass blocked and keep routing on build",
|
|
69
|
+
"",
|
|
70
|
+
"Verify options:",
|
|
71
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
72
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
73
|
+
" --evidence <text> Summarized evidence entry in the form",
|
|
74
|
+
" \"check|summary|pass|docs/dev/evidence/FEATURE_KEY/file.txt\"",
|
|
75
|
+
" (repeatable; at least one required)",
|
|
76
|
+
" --batch-summary <text> High-level batch summary for REVIEW_PACKET generation",
|
|
77
|
+
" --changed-file <text> Changed-file entry in the form",
|
|
78
|
+
" \"repo/path|rationale\" (repeatable)",
|
|
79
|
+
" --exclude-file <text> Exclusion entry in the form",
|
|
80
|
+
" \"repo/path|reason\" (repeatable)",
|
|
81
|
+
" --truth-sync-target <text> Truth-sync entry in the form",
|
|
82
|
+
" \"path-or-surface|touched|rationale\"",
|
|
83
|
+
" (status must be touched or untouched; repeatable)",
|
|
84
|
+
" --commit-include <path> Repo-relative file to include in the proposed commit boundary",
|
|
85
|
+
" (repeatable)",
|
|
86
|
+
" --commit-exclude <path> Repo-relative file to exclude from the proposed commit boundary",
|
|
87
|
+
" (repeatable)",
|
|
88
|
+
" --caveat <text> Caveat entry in the form",
|
|
89
|
+
" \"ID|statement|impact|owner\" (repeatable)",
|
|
90
|
+
" --reviewer-guidance <text> Additional reviewer guidance line for REVIEW_PACKET",
|
|
91
|
+
" (repeatable)",
|
|
92
|
+
" --spec-status <pending|pass|partial|fail>",
|
|
93
|
+
" Current spec/compliance review gate status",
|
|
94
|
+
" --spec-note <text> Record a spec/compliance review note (repeatable)",
|
|
95
|
+
" --quality-status <pending|pass|partial|fail>",
|
|
96
|
+
" Current quality review gate status",
|
|
97
|
+
" --quality-note <text> Record a quality review note (repeatable)",
|
|
98
|
+
" --debug-note <text> Record reactive debug follow-up from verification (repeatable)",
|
|
99
|
+
" --complete Mark verify complete and route to ship",
|
|
100
|
+
" --blocked Keep verify blocked and route back to verification work",
|
|
101
|
+
"",
|
|
102
|
+
"Ship options:",
|
|
103
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
104
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
105
|
+
" --decision <ship|finish> Final decision to record (required)",
|
|
106
|
+
" --preflight <text> Preflight entry in the form",
|
|
107
|
+
" \"check|summary|pass|docs/dev/evidence/FEATURE_KEY/file.txt\"",
|
|
108
|
+
" (repeatable; at least one required)",
|
|
109
|
+
" --follow-up <text> Record a deferred follow-up item (repeatable)",
|
|
110
|
+
" --note <text> Record a ship/finalization note (repeatable)",
|
|
111
|
+
" --debug-note <text> Record reactive debug follow-up from preflight (repeatable)",
|
|
112
|
+
" --blocked Keep ship blocked and route back to code-debug/code-ship",
|
|
113
|
+
"",
|
|
114
|
+
"Ship closeout truth:",
|
|
115
|
+
" Completed closeout backed by docs/dev/CODE_HANDOFF_[FEATURE_KEY].json writes docs/dev/OPS_HANDOFF_[FEATURE_KEY].json",
|
|
116
|
+
" Compatibility fallback workflows do not emit a fake OPS handoff without the current formal CODE_HANDOFF",
|
|
117
|
+
"",
|
|
118
|
+
"Status options:",
|
|
119
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
120
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
121
|
+
"",
|
|
122
|
+
"Doctor options:",
|
|
123
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
124
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
125
|
+
" Doctor is diagnostic-only in BK-047-lite and does not auto-repair workflow files.",
|
|
126
|
+
"",
|
|
127
|
+
"Resume options:",
|
|
128
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
129
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
130
|
+
" Resume auto-dispatch is currently bounded to machine-safe build transitions only.",
|
|
131
|
+
" Resume fails closed for plan, verify, and ship because explicit operator inputs are required.",
|
|
132
|
+
"",
|
|
133
|
+
"Init options:",
|
|
134
|
+
" --runtime <codex|claude> Runtime adapter (default: codex)",
|
|
135
|
+
" --runtime-scope <project|user> Install scope (default: project for claude, user for codex)",
|
|
136
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
137
|
+
" --force Overwrite existing files",
|
|
138
|
+
" --skip-runtime-assets Skip runtime skill installation",
|
|
139
|
+
" --skip-skills Deprecated alias for --skip-runtime-assets",
|
|
140
|
+
" --verbose Show detailed PowerShell script output",
|
|
141
|
+
"",
|
|
142
|
+
"Runtime subcommands:",
|
|
143
|
+
" sdtk-code runtime install --runtime <codex|claude> [--scope <project|user>]",
|
|
144
|
+
" sdtk-code runtime uninstall --runtime <codex|claude> [--scope <project|user>] [--all]",
|
|
145
|
+
" sdtk-code runtime status --runtime <codex|claude> [--project-path <path>]",
|
|
146
|
+
"",
|
|
147
|
+
"Update options:",
|
|
148
|
+
" --version <latest|x.y.z> Target published npm package version (default: latest)",
|
|
149
|
+
" --runtime <codex|claude> Optional runtime refresh target after npm update",
|
|
150
|
+
" --scope <project|user> Runtime asset scope when --runtime is provided",
|
|
151
|
+
" --project-path <path> Target project directory for managed file refresh (default: cwd)",
|
|
152
|
+
" --check-only Print the planned npm/init/runtime refresh steps without making changes",
|
|
153
|
+
" --skip-project-files Skip sdtk-code init --force during update",
|
|
154
|
+
" --skip-runtime-assets Skip sdtk-code runtime install --force during update",
|
|
155
|
+
" --verbose Show detailed command output",
|
|
156
|
+
" Maintainer-root guard: init/update refuse the SDTK maintainer monorepo root as a managed project target.",
|
|
157
|
+
" Use a consumer project path, or use --skip-project-files when update should avoid project-file refresh.",
|
|
158
|
+
"",
|
|
159
|
+
"Agent-team subcommands:",
|
|
160
|
+
" sdtk-code agent-team plan --feature-key <KEY> [--project-path <path>]",
|
|
161
|
+
" sdtk-code agent-team preview --feature-key <KEY> [--project-path <path>]",
|
|
162
|
+
" sdtk-code agent-team export --feature-key <KEY> --runtime <codex|claude> [--project-path <path>]",
|
|
163
|
+
" sdtk-code agent-team evidence submit --feature-key <KEY> --role <pm|dev|qa> --evidence-file <path> [--project-path <path>]",
|
|
164
|
+
" sdtk-code agent-team readiness --feature-key <KEY> [--project-path <path>]",
|
|
165
|
+
" sdtk-code agent-team report --feature-key <KEY> [--project-path <path>]",
|
|
166
|
+
" sdtk-code agent-team execute --feature-key <KEY> --patch-file <path> [--dry-run|--execute] [--project-path <path>]",
|
|
167
|
+
" sdtk-code agent-team author --feature-key <KEY> [--dry-run|--execute] [--project-path <path>]",
|
|
168
|
+
" evidence submit validates and stores agent-submitted evidence under .sdtk/agent-team/evidence/<KEY>/",
|
|
169
|
+
" readiness scores all roles and declares READY_TO_SLEEP or NOT_READY",
|
|
170
|
+
" report writes morning_report.md from evidence + readiness",
|
|
171
|
+
" execute is docs/governance Markdown Flow B: dry-run default; --execute requires exact TTY confirmation",
|
|
172
|
+
" author is attended D-2b: dry-run makes no model call; --execute makes one model call then uses the same bounded harness; no auto-merge",
|
|
173
|
+
" READY_TO_SLEEP indicates evidence is present and well-formed — it does NOT verify",
|
|
174
|
+
" implementation correctness. Human review required before acting on this verdict.",
|
|
175
|
+
" run is not available in this phase; execute never spawns LLM agents and never auto-merges.",
|
|
176
|
+
" No .codex/agents or .claude files are written.",
|
|
177
|
+
"",
|
|
178
|
+
"Runtime options:",
|
|
179
|
+
" --runtime <codex|claude> Target runtime (required)",
|
|
180
|
+
" --scope <project|user> Install scope (default: project for claude, user for codex)",
|
|
181
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
182
|
+
" --force Overwrite existing managed skills",
|
|
183
|
+
" --all Explicit alias for uninstalling all managed skills",
|
|
184
|
+
" --verbose Show detailed script output",
|
|
185
|
+
"",
|
|
186
|
+
"Scope behavior:",
|
|
187
|
+
" claude/project -> <project>/.claude/skills",
|
|
188
|
+
" claude/user -> ~/.claude/skills",
|
|
189
|
+
" codex/project -> <project>/.codex/skills",
|
|
190
|
+
" codex/user -> $CODEX_HOME/skills or ~/.codex/skills",
|
|
191
|
+
" Note: Codex project scope is supported only via the explicit local CODEX_HOME=<project>/.codex contract.",
|
|
192
|
+
" Note: This CLI does not claim native .codex/skills auto-discovery.",
|
|
193
|
+
"",
|
|
194
|
+
"Uninstall behavior:",
|
|
195
|
+
" runtime uninstall removes only SDTK-CODE-managed skill folders for the selected runtime/scope.",
|
|
196
|
+
" It does not delete parent runtime roots such as .claude/, .claude/skills/, $CODEX_HOME/, or $CODEX_HOME/skills/.",
|
|
197
|
+
" npm uninstall -g sdtk-code-kit removes the CLI package only. Runtime assets remain until runtime uninstall or manual cleanup.",
|
|
198
|
+
"",
|
|
199
|
+
"Skill naming:",
|
|
200
|
+
" Claude installs: code-*",
|
|
201
|
+
" Codex installs: sdtk-code-*",
|
|
202
|
+
"",
|
|
203
|
+
"Global options:",
|
|
204
|
+
" -h, --help Show this help",
|
|
205
|
+
" -v, --version Show version",
|
|
206
|
+
"",
|
|
207
|
+
"Exit codes:",
|
|
208
|
+
" 0 Success",
|
|
209
|
+
" 1 Validation or user error",
|
|
210
|
+
" 2 Dependency error",
|
|
211
|
+
" 3 Integrity error",
|
|
212
|
+
" 4 Unexpected internal error",
|
|
213
|
+
"",
|
|
214
|
+
"Examples:",
|
|
215
|
+
" sdtk-code start --feature-key ORDER_MGMT --lane feature --project-path ./my-project",
|
|
216
|
+
" sdtk-code start --feature-key LOGIN_FIX --lane bugfix --project-path ./my-project",
|
|
217
|
+
" sdtk-code plan --feature-key ORDER_MGMT --use-seeded-candidates",
|
|
218
|
+
" sdtk-code plan --feature-key ORDER_MGMT --slice \"API contract updates\" --slice \"UI register flow\"",
|
|
219
|
+
" sdtk-code plan --feature-key LOGIN_FIX --note \"Bugfix planning override\"",
|
|
220
|
+
" sdtk-code build --feature-key ORDER_MGMT --active-slice \"API contract updates\" --parallel-reason \"Backend and UI are isolated\"",
|
|
221
|
+
" sdtk-code build --feature-key LOGIN_FIX --debug-note \"Failure reproduced in session timeout flow\" --complete",
|
|
222
|
+
" sdtk-code verify --feature-key ORDER_MGMT --evidence \"pytest -q|Regression suite passed|pass|docs/dev/evidence/ORDER_MGMT/pytest.txt\" --spec-status pass --quality-status partial",
|
|
223
|
+
" sdtk-code verify --feature-key LOGIN_FIX --evidence \"npm test|Bugfix regression passes|pass|docs/dev/evidence/LOGIN_FIX/regression.txt\" --spec-status pass --quality-status pass --complete",
|
|
224
|
+
" sdtk-code ship --feature-key ORDER_MGMT --decision ship --preflight \"npm pack --dry-run|Package smoke passed|pass|docs/dev/evidence/ORDER_MGMT/pack.txt\" --preflight \"release checklist|Operator handoff reviewed|pass|docs/dev/evidence/ORDER_MGMT/release-checklist.txt\" --follow-up \"Monitor first-release support tickets\"",
|
|
225
|
+
" sdtk-code ship --feature-key LOGIN_FIX --decision finish --preflight \"git diff --check|No whitespace issues remain|pass|docs/dev/evidence/LOGIN_FIX/diff-check.txt\"",
|
|
226
|
+
" sdtk-code status --feature-key ORDER_MGMT --project-path ./my-project",
|
|
227
|
+
" sdtk-code doctor --feature-key ORDER_MGMT --project-path ./my-project",
|
|
228
|
+
" sdtk-code resume --feature-key ORDER_MGMT --project-path ./my-project",
|
|
229
|
+
" sdtk-code init",
|
|
230
|
+
" sdtk-code init --runtime codex --runtime-scope project --project-path ./my-project",
|
|
231
|
+
" sdtk-code init --runtime claude --project-path ./my-project",
|
|
232
|
+
" sdtk-code update --check-only",
|
|
233
|
+
" sdtk-code update --runtime claude --project-path ./my-project",
|
|
234
|
+
" sdtk-code update --version 1.2.3 --runtime codex --scope user --skip-project-files",
|
|
235
|
+
" sdtk-code init --runtime claude --runtime-scope user",
|
|
236
|
+
" sdtk-code runtime install --runtime claude --scope project --project-path ./my-project",
|
|
237
|
+
" sdtk-code runtime install --runtime codex --scope user",
|
|
238
|
+
" sdtk-code runtime install --runtime codex --scope project --project-path ./my-project",
|
|
239
|
+
" sdtk-code runtime status --runtime claude --project-path ./my-project",
|
|
240
|
+
" sdtk-code runtime uninstall --runtime codex --all",
|
|
241
|
+
" npm uninstall -g sdtk-code-kit",
|
|
242
|
+
"",
|
|
243
|
+
"Next steps after init:",
|
|
244
|
+
" 1. Review and customize sdtk-spec.config.json for your project.",
|
|
245
|
+
" 2. Create or refresh CODE_WORKFLOW with sdtk-code start once the upstream SDTK-SPEC handoff exists.",
|
|
246
|
+
" Preferred input: CODE_HANDOFF_[FEATURE_KEY].json; compatibility fallback is bounded to missing-handoff cases.",
|
|
247
|
+
" 3. For feature work, either confirm seeded handoff slices with --use-seeded-candidates or refine them with explicit --slice entries.",
|
|
248
|
+
" 4. Record build progress with sdtk-code build while execution is in motion.",
|
|
249
|
+
" 5. Use sdtk-code status for a fast lifecycle snapshot before resuming interrupted work.",
|
|
250
|
+
" 6. Use sdtk-code doctor when state looks contradictory or blocks unexpectedly (diagnostic only).",
|
|
251
|
+
" 7. Use sdtk-code resume only when a machine-safe resume path is available.",
|
|
252
|
+
" 8. Capture summarized evidence and review gates with sdtk-code verify before closure.",
|
|
253
|
+
" Verify also emits docs/dev/REVIEW_PACKET_[FEATURE_KEY].md for downstream QA/controller review.",
|
|
254
|
+
" 9. Record final ship or finish decision with sdtk-code ship; completed formal closeout writes OPS_HANDOFF for DEV-Run intake.",
|
|
255
|
+
" 10. Use raw code-* skills directly when you intentionally choose expert mode.",
|
|
256
|
+
];
|
|
257
|
+
|
|
258
|
+
console.log(text.join("\n"));
|
|
259
|
+
return 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
module.exports = {
|
|
263
|
+
cmdHelp,
|
|
264
|
+
};
|