sdtk-spec-kit 0.4.7 → 0.4.8

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 CHANGED
@@ -1,10 +1,13 @@
1
1
  # sdtk-spec-kit
2
2
 
3
- `sdtk-spec-kit` is the canonical shipped technical interface for `SDTK-SPEC`.
4
-
5
- It exposes the `sdtk-spec` CLI as the primary upstream command surface.
6
-
7
- Wraps the `SDTK-SPEC` PowerShell toolkit for portable, reproducible feature documentation scaffolding.
3
+ `sdtk-spec-kit` is the canonical shipped technical interface for `SDTK-SPEC`.
4
+
5
+ It exposes the `sdtk-spec` CLI as the primary upstream command surface.
6
+
7
+ Package version in this source snapshot: `0.4.7`
8
+ Full usage guide: `products/sdtk-spec/governance/SDTK_SPEC_USAGE_GUIDE.md`
9
+
10
+ Wraps the `SDTK-SPEC` PowerShell toolkit for portable, reproducible feature documentation scaffolding.
8
11
 
9
12
  Canonical install/runtime source in the source repo: `governance/ai/cli/SDTK_RUNTIME_AND_FEATURE_STATUS.md`
10
13
 
@@ -181,9 +184,19 @@ Generate feature documentation from templates. Produces 17 files matching the `S
181
184
  sdtk-spec generate --feature-key <UPPER_SNAKE_CASE> --feature-name "<text>" [--project-path <path>] [--force] [--validate-only]
182
185
  ```
183
186
 
184
- 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.
185
-
186
- ### `sdtk-spec atlas`
187
+ 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.
188
+
189
+ ### `sdtk-spec analyze`
190
+
191
+ Preserve a customer requirement source, bootstrap the standard 17-file scaffold, and create an agent task packet for PM/BA/ARCH/DEV/QA analysis.
192
+
193
+ ```bash
194
+ sdtk-spec analyze --source <requirements.md> --feature-key <UPPER_SNAKE_CASE> --feature-name "<text>" [--project-path <path>] [--force] [--json]
195
+ ```
196
+
197
+ `analyze` is source intake and workflow bootstrap. It records source hash traceability and likely mojibake/encoding risk, but it does not fully understand arbitrary requirements by itself. PM/BA/ARCH agents complete source-backed analysis inside the generated artifacts.
198
+
199
+ ### `sdtk-spec atlas`
187
200
 
188
201
  Build and browse a local document graph for your project.
189
202
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.7",
2
+ "version": "0.4.8",
3
3
  "sourceCommit": "f42cb6f6420371df8305f965b404d173ddb7bb78",
4
4
  "fileCount": 98,
5
5
  "files": [
@@ -35,13 +35,13 @@
35
35
  },
36
36
  {
37
37
  "path": "toolkit/scripts/agents/run-codex-task.ps1",
38
- "sha256": "5f1599999d88c0dd2c7e4a5cd5bef6b5a18118d233537be5eabc8bb386a06d96",
39
- "size": 29676
38
+ "sha256": "3b01d3f2c4d8bc5b0b7202b99ea1d659ce24d3a4dbd0512da9b2e95fc1b913b2",
39
+ "size": 29673
40
40
  },
41
41
  {
42
42
  "path": "toolkit/scripts/agents/validate-mailbox-formal-artifact.py",
43
- "sha256": "40d0ffc646d6f4e85034adb9c7cc5090abb31fe59d3c3a27441fb72be55a342d",
44
- "size": 2973
43
+ "sha256": "26891fce6cb98901d8d2c7f9453736e45834eec4eae674169da42358e5258920",
44
+ "size": 2970
45
45
  },
46
46
  {
47
47
  "path": "toolkit/scripts/generate-code-handoff.ps1",
@@ -4,8 +4,8 @@
4
4
  6c1aa50cae9752c982c2ad2086d2b8c592a3aaab346323253f8e0b2598b73d03 toolkit/runtimes/claude/CLAUDE_TEMPLATE.md
5
5
  d77de12c4fbce75526614994a5a9ee640581392616811cbf4f430e6094c5b392 toolkit/runtimes/codex/CODEX_TEMPLATE.md
6
6
  898f9062a3a4b9bc28c6ac2ab5525d1bd722fbc16510202f9a1297e8c37130a0 toolkit/scripts/agents/run-claude-task.ps1
7
- 5f1599999d88c0dd2c7e4a5cd5bef6b5a18118d233537be5eabc8bb386a06d96 toolkit/scripts/agents/run-codex-task.ps1
8
- 40d0ffc646d6f4e85034adb9c7cc5090abb31fe59d3c3a27441fb72be55a342d toolkit/scripts/agents/validate-mailbox-formal-artifact.py
7
+ 3b01d3f2c4d8bc5b0b7202b99ea1d659ce24d3a4dbd0512da9b2e95fc1b913b2 toolkit/scripts/agents/run-codex-task.ps1
8
+ 26891fce6cb98901d8d2c7f9453736e45834eec4eae674169da42358e5258920 toolkit/scripts/agents/validate-mailbox-formal-artifact.py
9
9
  48bc3d8b1942e1e3499d8933a97e1c8f9bcb201e7c4d801afa3f04159113bdee toolkit/scripts/generate-code-handoff.ps1
10
10
  3f281d25793ada92fe310409c9e87f105be43f16a56f21313aef73cb8505406d toolkit/scripts/init-feature.ps1
11
11
  ec9bacff547379b04b745371efaab0e4befbed8e38ffc83fcedb763c48bc3f5e toolkit/scripts/install-claude-skills.ps1
@@ -1,4 +1,4 @@
1
- param(
1
+ param(
2
2
  [Parameter(Mandatory = $true)] [string] $RepoRoot,
3
3
  [Parameter(Mandatory = $true)] [string] $TaskFile,
4
4
  [Parameter(Mandatory = $true)] [string] $ReportFile,
@@ -1,4 +1,4 @@
1
- from __future__ import annotations
1
+ from __future__ import annotations
2
2
 
3
3
  import argparse
4
4
  import re
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdtk-spec-kit",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
5
  "bin": {
6
6
  "sdtk-spec": "bin/sdtk.js"
@@ -12,7 +12,11 @@ const { ValidationError, CliError } = require("../lib/errors");
12
12
  function parseActivateArgs(args) {
13
13
  let licenseKey = null;
14
14
  let json = false;
15
- let activationUrl = null;
15
+ // Use `undefined` so the downstream default-parameter pattern in
16
+ // license-activation.js#activateWithLicense() kicks in when the user did
17
+ // not pass --activation-url. `null` would skip the default and propagate
18
+ // to fetch() as "Failed to parse URL from null".
19
+ let activationUrl;
16
20
 
17
21
  for (let i = 0; i < args.length; i++) {
18
22
  const arg = args[i];
@@ -277,8 +277,19 @@ function rollbackPartialState() {
277
277
  */
278
278
  async function activateWithLicense({
279
279
  licenseKey,
280
- activationUrl = process.env.SDTK_ACTIVATION_URL || "https://sdtk.dev/api/activate",
280
+ activationUrl,
281
281
  } = {}) {
282
+ // Coalesce instead of using default-parameter syntax: ES6 default params
283
+ // are skipped only when the value is `undefined`, NOT `null`. If a caller
284
+ // forwards an explicit `null` (which is what the argv parser did before
285
+ // 0.4.8), the default would be bypassed and fetch() would throw
286
+ // "Failed to parse URL from null". This pattern guards both null and
287
+ // undefined identically.
288
+ if (!activationUrl) {
289
+ activationUrl =
290
+ process.env.SDTK_ACTIVATION_URL || "https://sdtk.dev/api/activate";
291
+ }
292
+
282
293
  const result = {
283
294
  success: false,
284
295
  message: "",