sdd-cli 0.1.13 → 0.1.15
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 +2 -0
- package/dist/cli.js +2 -0
- package/dist/commands/hello.js +10 -0
- package/dist/context/flags.d.ts +1 -0
- package/dist/context/flags.js +4 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -212,6 +212,8 @@ sdd-cli hello "I want a simple booking system for appointments"
|
|
|
212
212
|
`sdd-cli --project <project-name> --from-step test hello "resume"`
|
|
213
213
|
- Script-safe full default run:
|
|
214
214
|
`sdd-cli --non-interactive hello "<your intent>"`
|
|
215
|
+
- Preview autopilot steps without writing files:
|
|
216
|
+
`sdd-cli --dry-run hello "<your intent>"`
|
|
215
217
|
|
|
216
218
|
## Where files are stored (clean repos)
|
|
217
219
|
|
package/dist/cli.js
CHANGED
|
@@ -66,6 +66,7 @@ program
|
|
|
66
66
|
.option("--improve", "Trigger self-audit and regenerate")
|
|
67
67
|
.option("--parallel", "Generate in parallel when supported")
|
|
68
68
|
.option("--non-interactive", "Run with defaults and without prompt confirmations")
|
|
69
|
+
.option("--dry-run", "Preview autopilot steps without writing artifacts")
|
|
69
70
|
.option("--from-step <step>", "Resume or start autopilot from step: create|plan|start|test|finish")
|
|
70
71
|
.option("--project <name>", "Select or name the project")
|
|
71
72
|
.option("--output <path>", "Override workspace output root");
|
|
@@ -76,6 +77,7 @@ program.hook("preAction", (thisCommand, actionCommand) => {
|
|
|
76
77
|
improve: Boolean(opts.improve),
|
|
77
78
|
parallel: Boolean(opts.parallel),
|
|
78
79
|
nonInteractive: Boolean(opts.nonInteractive),
|
|
80
|
+
dryRun: Boolean(opts.dryRun),
|
|
79
81
|
fromStep: typeof opts.fromStep === "string" ? opts.fromStep : undefined,
|
|
80
82
|
project: typeof opts.project === "string" ? opts.project : undefined,
|
|
81
83
|
output: typeof opts.output === "string" ? opts.output : undefined
|
package/dist/commands/hello.js
CHANGED
|
@@ -106,6 +106,7 @@ async function runHello(input, runQuestions) {
|
|
|
106
106
|
const hasDirectIntent = input.trim().length > 0;
|
|
107
107
|
const shouldRunQuestions = runQuestions === true;
|
|
108
108
|
const autoGuidedMode = !shouldRunQuestions && (runtimeFlags.nonInteractive || hasDirectIntent);
|
|
109
|
+
const dryRun = runtimeFlags.dryRun;
|
|
109
110
|
console.log("Hello from sdd-cli.");
|
|
110
111
|
console.log(`Workspace: ${workspace.root}`);
|
|
111
112
|
if (autoGuidedMode) {
|
|
@@ -274,6 +275,15 @@ async function runHello(input, runQuestions) {
|
|
|
274
275
|
printWhy(`Resuming autopilot from step: ${fromStep}`);
|
|
275
276
|
}
|
|
276
277
|
const stepIndex = autopilot_checkpoint_1.AUTOPILOT_STEPS.indexOf(startStep);
|
|
278
|
+
if (dryRun) {
|
|
279
|
+
printWhy("Dry run active: previewing autopilot plan without writing files.");
|
|
280
|
+
for (let i = stepIndex; i < autopilot_checkpoint_1.AUTOPILOT_STEPS.length; i += 1) {
|
|
281
|
+
const step = autopilot_checkpoint_1.AUTOPILOT_STEPS[i];
|
|
282
|
+
console.log(`Would run step: ${step}`);
|
|
283
|
+
}
|
|
284
|
+
console.log(`To execute for real: sdd-cli --project "${activeProject}" hello "${text}"`);
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
277
287
|
for (let i = stepIndex; i < autopilot_checkpoint_1.AUTOPILOT_STEPS.length; i += 1) {
|
|
278
288
|
const step = autopilot_checkpoint_1.AUTOPILOT_STEPS[i];
|
|
279
289
|
if (step === "create") {
|
package/dist/context/flags.d.ts
CHANGED
package/dist/context/flags.js
CHANGED
|
@@ -7,6 +7,7 @@ const flags = {
|
|
|
7
7
|
improve: false,
|
|
8
8
|
parallel: false,
|
|
9
9
|
nonInteractive: false,
|
|
10
|
+
dryRun: false,
|
|
10
11
|
fromStep: undefined,
|
|
11
12
|
project: undefined,
|
|
12
13
|
output: undefined
|
|
@@ -24,6 +25,9 @@ function setFlags(next) {
|
|
|
24
25
|
if ("nonInteractive" in next) {
|
|
25
26
|
flags.nonInteractive = Boolean(next.nonInteractive);
|
|
26
27
|
}
|
|
28
|
+
if ("dryRun" in next) {
|
|
29
|
+
flags.dryRun = Boolean(next.dryRun);
|
|
30
|
+
}
|
|
27
31
|
if ("fromStep" in next) {
|
|
28
32
|
flags.fromStep = typeof next.fromStep === "string" ? next.fromStep : undefined;
|
|
29
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdd-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "SDD-first, AI-native CLI for end-to-end delivery.",
|
|
5
5
|
"homepage": "https://github.com/jdsalasca/sdd-tool#readme",
|
|
6
6
|
"repository": {
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"build": "tsc -p tsconfig.json",
|
|
28
28
|
"start": "node dist/cli.js",
|
|
29
29
|
"dev": "ts-node src/cli.ts",
|
|
30
|
+
"check:docs": "node scripts/check-docs-flags.js",
|
|
31
|
+
"smoke:autopilot": "node scripts/autopilot-smoke.js",
|
|
30
32
|
"preinstall": "node scripts/preinstall.js",
|
|
31
33
|
"pretest": "npm run build",
|
|
32
34
|
"test": "node --test tests/*.test.js"
|