sdtk-spec-kit 0.3.16 → 0.3.18
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 +131 -2
- package/assets/atlas/build_atlas.py +865 -0
- package/assets/atlas/doc_atlas_viewer_template.html +3706 -0
- package/assets/atlas/vendor/mermaid.min.js +2029 -0
- package/assets/manifest/toolkit-bundle.manifest.json +6 -6
- package/assets/manifest/toolkit-bundle.sha256.txt +2 -2
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +14 -0
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/commands/atlas.js +379 -0
- package/src/commands/entitlement.js +163 -0
- package/src/commands/help.js +140 -6
- package/src/commands/project.js +51 -0
- package/src/index.js +10 -1
- package/src/lib/atlas-ask.js +170 -0
- package/src/lib/atlas-config.js +200 -0
- package/src/lib/atlas-runner.js +355 -0
- package/src/lib/browser-open.js +39 -0
- package/src/lib/capabilities.js +98 -0
- package/src/lib/entitlements.js +203 -0
- package/src/lib/github-access.js +75 -0
- package/src/lib/legacy-auth-migration.js +56 -0
- package/src/lib/premium-loader.js +126 -0
- package/src/lib/premium-packs.js +333 -0
- package/src/lib/premium-sync.js +235 -0
- package/src/lib/project-audit.js +332 -0
- package/src/lib/project-config.js +108 -0
- package/src/lib/project-ingest.js +450 -0
- package/src/lib/project-refresh.js +666 -0
- package/src/lib/project-target-guard.js +28 -2
- package/src/lib/state.js +37 -46
- package/src/lib/suite-state.js +65 -0
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Important truth:
|
|
|
49
49
|
- `update --check-only` is non-destructive and prints the planned commands only
|
|
50
50
|
- `--skip-project-files` suppresses `sdtk-spec init --force`
|
|
51
51
|
- `--skip-runtime-assets` suppresses runtime refresh
|
|
52
|
-
- there is no umbrella
|
|
52
|
+
- there is no umbrella suite-wide update command
|
|
53
53
|
|
|
54
54
|
## Quick Start
|
|
55
55
|
|
|
@@ -63,6 +63,14 @@ sdtk-spec auth --verify
|
|
|
63
63
|
|
|
64
64
|
# 3. Generate feature documentation (17-file scaffold)
|
|
65
65
|
sdtk-spec generate --feature-key USER_PROFILE --feature-name "User Profile"
|
|
66
|
+
|
|
67
|
+
# 4. Optional: build the free local Atlas graph
|
|
68
|
+
sdtk-spec atlas init --project-path .
|
|
69
|
+
|
|
70
|
+
# 5. Optional Pro flow: sync entitlement, then ingest/audit an existing project
|
|
71
|
+
sdtk-spec entitlement sync
|
|
72
|
+
sdtk-spec project ingest --project-path .
|
|
73
|
+
sdtk-spec project audit --project-path . --json
|
|
66
74
|
# Codex runtime remains available:
|
|
67
75
|
# sdtk-spec init --runtime codex
|
|
68
76
|
|
|
@@ -118,6 +126,20 @@ $env:SDTK_ENTITLEMENT_REPO="owner/repo"
|
|
|
118
126
|
sdtk-spec auth --verify
|
|
119
127
|
```
|
|
120
128
|
|
|
129
|
+
### `sdtk-spec entitlement`
|
|
130
|
+
|
|
131
|
+
Inspect local entitlement state and install verified premium packs.
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
sdtk-spec entitlement status
|
|
135
|
+
sdtk-spec entitlement sync
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Important:
|
|
139
|
+
- `entitlement status` is local-only and does not hit the network.
|
|
140
|
+
- `entitlement sync` fetches and verifies a signed entitlement manifest, then installs required SPEC premium packs.
|
|
141
|
+
- Premium commands such as `atlas ask`, `project ingest`, `project audit`, and `project refresh` fail closed when entitlement or pack integrity is missing.
|
|
142
|
+
|
|
121
143
|
### `sdtk-spec generate`
|
|
122
144
|
|
|
123
145
|
Generate feature documentation from templates. Produces 17 files matching the `SDTK-SPEC` toolkit contract.
|
|
@@ -128,6 +150,109 @@ sdtk-spec generate --feature-key <UPPER_SNAKE_CASE> --feature-name "<text>" [--p
|
|
|
128
150
|
|
|
129
151
|
Output files include: project initiation, BA spec, flow-action spec, PRD, backlog, architecture design, database spec, API specs (OpenAPI + endpoints + design detail + flow list), UI design layout, implementation plan, test cases, and QA release report.
|
|
130
152
|
|
|
153
|
+
### `sdtk-spec atlas`
|
|
154
|
+
|
|
155
|
+
Build and browse a local document graph for your project.
|
|
156
|
+
|
|
157
|
+
Atlas is a free local feature. No authentication or entitlement is required.
|
|
158
|
+
|
|
159
|
+
#### Subcommands
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
sdtk-spec atlas init # Initialize Atlas config and run first build (opens viewer)
|
|
163
|
+
sdtk-spec atlas build # Rebuild the local document graph from project markdown
|
|
164
|
+
sdtk-spec atlas open # Open the last successful atlas build in a local browser
|
|
165
|
+
sdtk-spec atlas watch # Watch for markdown changes and rebuild automatically
|
|
166
|
+
sdtk-spec atlas status # Show initialization state and last build summary
|
|
167
|
+
sdtk-spec atlas ask # Ask grounded questions over local Atlas docs (Pro)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
#### First-run flow
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
cd <project>
|
|
174
|
+
sdtk-spec atlas init
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
This creates `.sdtk/atlas/config.json`, scans local markdown, builds the document graph and static viewer, and opens the viewer in your browser by default.
|
|
178
|
+
|
|
179
|
+
#### Common flows
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Initialize with a custom project path, skip opening viewer
|
|
183
|
+
sdtk-spec atlas init --project-path ./my-project --no-open
|
|
184
|
+
|
|
185
|
+
# Rebuild after doc changes
|
|
186
|
+
sdtk-spec atlas build --project-path ./my-project
|
|
187
|
+
|
|
188
|
+
# Open the viewer manually
|
|
189
|
+
sdtk-spec atlas open --project-path ./my-project
|
|
190
|
+
|
|
191
|
+
# Watch for changes and rebuild continuously
|
|
192
|
+
sdtk-spec atlas watch --project-path ./my-project
|
|
193
|
+
|
|
194
|
+
# Check Atlas initialization state and last build summary
|
|
195
|
+
sdtk-spec atlas status --project-path ./my-project
|
|
196
|
+
|
|
197
|
+
# Ask grounded questions over the local Atlas graph (Pro)
|
|
198
|
+
sdtk-spec atlas ask --project-path ./my-project --question "How do I install this toolkit?"
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
#### Options (init)
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
sdtk-spec atlas init [--project-path <path>] [--output-dir <path>] [--scan-root <path>] [--force] [--no-build] [--no-open] [--verbose]
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
#### Options (ask)
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
sdtk-spec atlas ask --question "<text>" [--project-path <path>] [--output-dir <path>] [--source <path-or-id>] [--max-docs <n>] [--json] [--verbose]
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
#### Key facts
|
|
214
|
+
|
|
215
|
+
- Generated artifacts are written to `<project>/.sdtk/atlas/` (project-local, not global).
|
|
216
|
+
- The viewer server binds to `127.0.0.1` by default (loopback only).
|
|
217
|
+
- Python 3.8+ must be available in `PATH` for `atlas init`, `build`, and `watch`.
|
|
218
|
+
- Free Atlas scans local markdown files only and does not upload document content to external services.
|
|
219
|
+
- `atlas ask` is a Pro capability and requires `sdtk-spec entitlement sync` plus a valid cached premium pack.
|
|
220
|
+
- `sdtk-spec auth` and `sdtk-spec entitlement` are separate capability-management surfaces; they are not required for free Atlas commands.
|
|
221
|
+
|
|
222
|
+
### `sdtk-spec project`
|
|
223
|
+
|
|
224
|
+
Run premium project intelligence workflows against an existing consumer repository.
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
sdtk-spec project ingest # Build deterministic project foundation + staged docs baseline (Pro)
|
|
228
|
+
sdtk-spec project audit # Read-only readiness / risk / gap audit (Pro)
|
|
229
|
+
sdtk-spec project refresh # Incrementally refresh managed .sdtk/project/ artifacts (Pro)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Examples:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
# First premium ingest against a consumer repo
|
|
236
|
+
sdtk-spec project ingest --project-path ./my-project
|
|
237
|
+
|
|
238
|
+
# Read-only audit using cached foundation when available
|
|
239
|
+
sdtk-spec project audit --project-path ./my-project --json
|
|
240
|
+
|
|
241
|
+
# Incrementally refresh foundation, evidence packs, and staged docs baseline
|
|
242
|
+
sdtk-spec project refresh --project-path ./my-project
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Key facts:
|
|
246
|
+
|
|
247
|
+
- `project ingest`, `project audit`, and `project refresh` are Pro features.
|
|
248
|
+
- All three commands require a valid Pro entitlement and a cached premium pack installed through `sdtk-spec entitlement sync`.
|
|
249
|
+
- All artifacts stay project-local under `<project>/.sdtk/project/`.
|
|
250
|
+
- `project ingest` writes reusable foundation artifacts such as census, source inventory, profile, module graph, runtime markers, evidence packs, and a staged docs baseline.
|
|
251
|
+
- `project audit` is read-only. It does not mutate live `/docs/`, write new staged docs, or refresh ingest artifacts in place.
|
|
252
|
+
- `project refresh` is incremental and requires an existing managed ingest baseline.
|
|
253
|
+
- None of the project commands modify live `/docs/`; draft outputs remain under `.sdtk/project/`.
|
|
254
|
+
- Maintainer-root guardrails block using the SDTK maintainer monorepo root as a premium project target.
|
|
255
|
+
|
|
131
256
|
### `sdtk-spec runtime`
|
|
132
257
|
|
|
133
258
|
Manage runtime skill assets independently of `sdtk-spec init`.
|
|
@@ -187,6 +312,7 @@ sdtk-spec --version
|
|
|
187
312
|
|
|
188
313
|
- Node.js >= 18.13.0
|
|
189
314
|
- PowerShell (Windows PowerShell 5.1+ or PowerShell Core)
|
|
315
|
+
- Python 3.8+ in `PATH` (required for `sdtk-spec atlas init`, `build`, and `watch`)
|
|
190
316
|
|
|
191
317
|
## Troubleshooting
|
|
192
318
|
|
|
@@ -203,6 +329,10 @@ sdtk-spec --version
|
|
|
203
329
|
**Payload hash mismatch**
|
|
204
330
|
- The bundled toolkit payload may be corrupted. Reinstall the package.
|
|
205
331
|
|
|
332
|
+
**Atlas build fails or Python not found**
|
|
333
|
+
- Install Python 3.8+ from python.org and ensure `python --version` works from the same shell.
|
|
334
|
+
- Confirm Python is available in `PATH`, then rerun `sdtk-spec atlas build` or `sdtk-spec atlas init`.
|
|
335
|
+
|
|
206
336
|
## Development
|
|
207
337
|
|
|
208
338
|
```bash
|
|
@@ -217,4 +347,3 @@ npm run pack:smoke
|
|
|
217
347
|
```
|
|
218
348
|
|
|
219
349
|
Run `tests/skill_triggering/` to validate skill routing behavior.
|
|
220
|
-
|