sdd-cli 0.1.14 → 0.1.16
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 -0
- package/dist/cli.js +7 -0
- package/dist/commands/quickstart.d.ts +1 -0
- package/dist/commands/quickstart.js +30 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -112,6 +112,10 @@ Then:
|
|
|
112
112
|
```
|
|
113
113
|
sdd-cli hello
|
|
114
114
|
```
|
|
115
|
+
Or run a zero-friction demo:
|
|
116
|
+
```
|
|
117
|
+
sdd-cli quickstart --example saas
|
|
118
|
+
```
|
|
115
119
|
|
|
116
120
|
Package name on npm is `sdd-cli` (CLI commands remain `sdd-cli` and `sdd`).
|
|
117
121
|
|
|
@@ -149,6 +153,7 @@ Use `--questions` when you want the manual question-by-question flow.
|
|
|
149
153
|
|
|
150
154
|
### Core
|
|
151
155
|
- `sdd-cli hello` -- interactive session, project picker, full guided flow
|
|
156
|
+
- `sdd-cli quickstart` -- one-command demo flow with built-in examples
|
|
152
157
|
- `sdd-cli init` -- create SDD workspace and config
|
|
153
158
|
- `sdd-cli list` -- list flows, router flows, templates, prompt packs, and projects
|
|
154
159
|
- `sdd-cli doctor` -- validate completeness and consistency
|
|
@@ -215,6 +220,11 @@ sdd-cli hello "I want a simple booking system for appointments"
|
|
|
215
220
|
- Preview autopilot steps without writing files:
|
|
216
221
|
`sdd-cli --dry-run hello "<your intent>"`
|
|
217
222
|
|
|
223
|
+
## Execution tracking
|
|
224
|
+
|
|
225
|
+
- Adoption execution tracker: `AGENTS.md`
|
|
226
|
+
- 90-day roadmap: `docs/ADOPTION_ROADMAP_90D.md`
|
|
227
|
+
|
|
218
228
|
## Where files are stored (clean repos)
|
|
219
229
|
|
|
220
230
|
By default, the tool writes to a dedicated workspace, not into your repo:
|
package/dist/cli.js
CHANGED
|
@@ -44,6 +44,7 @@ const hello_1 = require("./commands/hello");
|
|
|
44
44
|
const init_1 = require("./commands/init");
|
|
45
45
|
const route_1 = require("./commands/route");
|
|
46
46
|
const doctor_1 = require("./commands/doctor");
|
|
47
|
+
const quickstart_1 = require("./commands/quickstart");
|
|
47
48
|
const paths_1 = require("./paths");
|
|
48
49
|
const flags_1 = require("./context/flags");
|
|
49
50
|
const prompt_1 = require("./ui/prompt");
|
|
@@ -97,6 +98,12 @@ program
|
|
|
97
98
|
.command("init")
|
|
98
99
|
.description("Initialize workspace and config")
|
|
99
100
|
.action(() => (0, init_1.runInit)());
|
|
101
|
+
program
|
|
102
|
+
.command("quickstart")
|
|
103
|
+
.description("Run a zero-friction autopilot demo flow")
|
|
104
|
+
.option("--example <name>", "Example prompt: saas|bugfix|api|ecommerce|mobile")
|
|
105
|
+
.option("--list-examples", "List available example prompts")
|
|
106
|
+
.action((options) => (0, quickstart_1.runQuickstart)(options.example, options.listExamples));
|
|
100
107
|
program
|
|
101
108
|
.command("list")
|
|
102
109
|
.description("List flows, templates, and projects")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function runQuickstart(example?: string, listExamples?: boolean): Promise<void>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runQuickstart = runQuickstart;
|
|
4
|
+
const flags_1 = require("../context/flags");
|
|
5
|
+
const hello_1 = require("./hello");
|
|
6
|
+
const QUICKSTART_EXAMPLES = {
|
|
7
|
+
saas: "Build a SaaS onboarding workflow for first-time users",
|
|
8
|
+
bugfix: "Fix a high-priority login failure with reproducible steps and tests",
|
|
9
|
+
api: "Design a REST API for order management with validation and error handling",
|
|
10
|
+
ecommerce: "Create an ecommerce checkout flow with payments and order confirmation",
|
|
11
|
+
mobile: "Plan a mobile app feature for push notifications and user preferences"
|
|
12
|
+
};
|
|
13
|
+
function normalizeExample(example) {
|
|
14
|
+
const value = (example || "saas").trim().toLowerCase();
|
|
15
|
+
return QUICKSTART_EXAMPLES[value] ? value : "saas";
|
|
16
|
+
}
|
|
17
|
+
async function runQuickstart(example, listExamples) {
|
|
18
|
+
if (listExamples) {
|
|
19
|
+
console.log("Quickstart examples:");
|
|
20
|
+
Object.entries(QUICKSTART_EXAMPLES).forEach(([key, prompt]) => {
|
|
21
|
+
console.log(`- ${key}: ${prompt}`);
|
|
22
|
+
});
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const selected = normalizeExample(example);
|
|
26
|
+
const seed = QUICKSTART_EXAMPLES[selected];
|
|
27
|
+
console.log(`Running quickstart example: ${selected}`);
|
|
28
|
+
(0, flags_1.setFlags)({ nonInteractive: true });
|
|
29
|
+
await (0, hello_1.runHello)(seed, false);
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdd-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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"
|