sdtk-spec-kit 0.4.6 → 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,12 +1,12 @@
1
1
  {
2
- "version": "0.4.4",
3
- "sourceCommit": "unknown",
4
- "fileCount": 97,
2
+ "version": "0.4.8",
3
+ "sourceCommit": "f42cb6f6420371df8305f965b404d173ddb7bb78",
4
+ "fileCount": 98,
5
5
  "files": [
6
- {
7
- "path": "toolkit/AGENTS.md",
8
- "sha256": "336ba97d6702fdf32ffe33f2af3161c118a3b58bf0cee6a5f8859262d4ef12b0",
9
- "size": 14830
6
+ {
7
+ "path": "toolkit/AGENTS.md",
8
+ "sha256": "336ba97d6702fdf32ffe33f2af3161c118a3b58bf0cee6a5f8859262d4ef12b0",
9
+ "size": 14830
10
10
  },
11
11
  {
12
12
  "path": "toolkit/install.ps1",
@@ -18,15 +18,15 @@
18
18
  "sha256": "74c20ab8c3f514c5c6fa8f9e09114e22458e5c2540a83ff1771f9258b6a71a37",
19
19
  "size": 3535
20
20
  },
21
- {
22
- "path": "toolkit/runtimes/claude/CLAUDE_TEMPLATE.md",
23
- "sha256": "6c1aa50cae9752c982c2ad2086d2b8c592a3aaab346323253f8e0b2598b73d03",
24
- "size": 4686
21
+ {
22
+ "path": "toolkit/runtimes/claude/CLAUDE_TEMPLATE.md",
23
+ "sha256": "6c1aa50cae9752c982c2ad2086d2b8c592a3aaab346323253f8e0b2598b73d03",
24
+ "size": 4686
25
25
  },
26
- {
27
- "path": "toolkit/runtimes/codex/CODEX_TEMPLATE.md",
28
- "sha256": "d77de12c4fbce75526614994a5a9ee640581392616811cbf4f430e6094c5b392",
29
- "size": 3477
26
+ {
27
+ "path": "toolkit/runtimes/codex/CODEX_TEMPLATE.md",
28
+ "sha256": "d77de12c4fbce75526614994a5a9ee640581392616811cbf4f430e6094c5b392",
29
+ "size": 3477
30
30
  },
31
31
  {
32
32
  "path": "toolkit/scripts/agents/run-claude-task.ps1",
@@ -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",
@@ -55,8 +55,8 @@
55
55
  },
56
56
  {
57
57
  "path": "toolkit/scripts/install-claude-skills.ps1",
58
- "sha256": "1bac6da7f9487c2a112171d9dced50b487e4ed148c5471efc8e3b25bfda68142",
59
- "size": 6253
58
+ "sha256": "ec9bacff547379b04b745371efaab0e4befbed8e38ffc83fcedb763c48bc3f5e",
59
+ "size": 6333
60
60
  },
61
61
  {
62
62
  "path": "toolkit/scripts/install-codex-skills.ps1",
@@ -73,10 +73,10 @@
73
73
  "sha256": "e1fc41f583208c477865d58ed8f548ffe2eba0bb69f06b9318afcf9a88aca971",
74
74
  "size": 4538
75
75
  },
76
- {
77
- "path": "toolkit/SDTK_TOOLKIT.md",
78
- "sha256": "6da7504b1912e05c32110fe5718954c113dd0bbbfa5cb630d18846ae04655bf8",
79
- "size": 9484
76
+ {
77
+ "path": "toolkit/SDTK_TOOLKIT.md",
78
+ "sha256": "6da7504b1912e05c32110fe5718954c113dd0bbbfa5cb630d18846ae04655bf8",
79
+ "size": 9484
80
80
  },
81
81
  {
82
82
  "path": "toolkit/sdtk-spec.config.json",
@@ -88,15 +88,15 @@
88
88
  "sha256": "e6d29627c079dd8929626bceed4bb77eee08963ed6e972ea6afae2f4038c236e",
89
89
  "size": 1545
90
90
  },
91
- {
92
- "path": "toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md",
93
- "sha256": "e757102c21d527ce0f041dd917032363f6759525a772d4a37d1dbf4bee85c10d",
94
- "size": 2582
91
+ {
92
+ "path": "toolkit/session/SDTK_ACTIVE_BOOTSTRAP.md",
93
+ "sha256": "e757102c21d527ce0f041dd917032363f6759525a772d4a37d1dbf4bee85c10d",
94
+ "size": 2582
95
95
  },
96
- {
97
- "path": "toolkit/session/SDTK_AGENT_WORKING_RULES.md",
98
- "sha256": "e7c53dda29fed75233f320e36004dce4a955a0356f34d69c358b58c3100d79fc",
99
- "size": 2186
96
+ {
97
+ "path": "toolkit/session/SDTK_AGENT_WORKING_RULES.md",
98
+ "sha256": "e7c53dda29fed75233f320e36004dce4a955a0356f34d69c358b58c3100d79fc",
99
+ "size": 2186
100
100
  },
101
101
  {
102
102
  "path": "toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py",
@@ -183,6 +183,11 @@
183
183
  "sha256": "9e41a944a73c6960c8aa24d8930e64c1ed699ed8b410a587b042186e2d450e6e",
184
184
  "size": 6461
185
185
  },
186
+ {
187
+ "path": "toolkit/skills/sdtk-screen-design-spec/references/commerce-profile-screens.md",
188
+ "sha256": "0702605f4c3a42cd06eb35ef61ca4b64f928c6b89dfb1204bcc978fb3ce033f9",
189
+ "size": 5762
190
+ },
186
191
  {
187
192
  "path": "toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md",
188
193
  "sha256": "9ef61485c011dd69a6efcd9a5b708bd7acd850dd1c905d3dc162c9b5c19d1e94",
@@ -210,8 +215,8 @@
210
215
  },
211
216
  {
212
217
  "path": "toolkit/skills/sdtk-screen-design-spec/SKILL.md",
213
- "sha256": "77b74f09934ab6b44fb5943b0ce51e027a84d718ec550019f3bd63b26e5c7369",
214
- "size": 7602
218
+ "sha256": "e9a7fc9468a73be6f45b1699bbc4034c8a7fb13101ed1543ab9887a50f203921",
219
+ "size": 8216
215
220
  },
216
221
  {
217
222
  "path": "toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py",
@@ -489,4 +494,4 @@
489
494
  "size": 3443
490
495
  }
491
496
  ]
492
- }
497
+ }
@@ -4,11 +4,11 @@
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
- 1bac6da7f9487c2a112171d9dced50b487e4ed148c5471efc8e3b25bfda68142 toolkit/scripts/install-claude-skills.ps1
11
+ ec9bacff547379b04b745371efaab0e4befbed8e38ffc83fcedb763c48bc3f5e toolkit/scripts/install-claude-skills.ps1
12
12
  941ffa9933b8ab34819d3cfb8babb45a83d9b2ae76f34c423dc2117251dbd87c toolkit/scripts/install-codex-skills.ps1
13
13
  809ffc1f96528ac1cd453214cd1c2d231ca0753f0d3c19b4a20f11835a64a152 toolkit/scripts/uninstall-claude-skills.ps1
14
14
  e1fc41f583208c477865d58ed8f548ffe2eba0bb69f06b9318afcf9a88aca971 toolkit/scripts/uninstall-codex-skills.ps1
@@ -34,12 +34,13 @@ f7107fdc3b181379fa8ea1d67edc6e5aac8cb575fcae5bd0bca1003daf5bea35 toolkit/skills
34
34
  6a4ee5d6e19025dfd30a1a090468198720345e749378956284d85ac9aa73e40d toolkit/skills/sdtk-orchestrator/SKILL.md
35
35
  90d3c9d8bb2bb3b28e81bc10c6b1799236250dfcb2ebed43eb161c78ff00a084 toolkit/skills/sdtk-pm/SKILL.md
36
36
  9e41a944a73c6960c8aa24d8930e64c1ed699ed8b410a587b042186e2d450e6e toolkit/skills/sdtk-qa/SKILL.md
37
+ 0702605f4c3a42cd06eb35ef61ca4b64f928c6b89dfb1204bcc978fb3ce033f9 toolkit/skills/sdtk-screen-design-spec/references/commerce-profile-screens.md
37
38
  9ef61485c011dd69a6efcd9a5b708bd7acd850dd1c905d3dc162c9b5c19d1e94 toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md
38
39
  04f5e38d04d6ba69429504cee13ef095ba8234c60a0e2e446bf396d68429f37b toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md
39
40
  920b203c82ce549e49f1beaa182d26a277883a0bf4e015147265489a246f092c toolkit/skills/sdtk-screen-design-spec/references/numbering-rules.md
40
41
  b54b14cc75c02c3fe9f89547b3f09baf1d7d036ef5f3d9f40487516e22351c45 toolkit/skills/sdtk-screen-design-spec/scripts/renumber_flow_action_spec_global.py
41
42
  8567db6e007df8927edf748fb4175618a8712c4c5b48b9c890c22dddb983b369 toolkit/skills/sdtk-screen-design-spec/scripts/validate_flow_action_spec_numbering.py
42
- 77b74f09934ab6b44fb5943b0ce51e027a84d718ec550019f3bd63b26e5c7369 toolkit/skills/sdtk-screen-design-spec/SKILL.md
43
+ e9a7fc9468a73be6f45b1699bbc4034c8a7fb13101ed1543ab9887a50f203921 toolkit/skills/sdtk-screen-design-spec/SKILL.md
43
44
  b9f512159d7a6dc98e55587d2d8e739ebe15330dfcb54488447ba75bfbb3d0f3 toolkit/skills/sdtk-test-case-spec/scripts/validate_test_case_spec.py
44
45
  00581e372b6a639afbf7d333c0c404d6f1b363ad1089d6ca3805258da4faea58 toolkit/skills/sdtk-test-case-spec/SKILL.md
45
46
  d28e9b020ad7beebc08e17b48134208ea0814e737e1d78104ee65dca6e084b84 toolkit/skills/skills.catalog.yaml
@@ -94,4 +95,4 @@ b67ae168d02764bf189306d58a7971d93a8a9538bcbec0ea8b5ff5ccc891e481 toolkit/templa
94
95
  c05cbd1815650a544dd6b3fe98cfaa900caab2f7ab989eba498120b11e47ae39 toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md
95
96
  205dafaed01e5841d3c6870a093d08ba4ce58a9bbfc716a506f0951149e2dcf9 toolkit/templates/QUALITY_CHECKLIST.md
96
97
  99d6ef1bccec4162b9c8cd75e20378338f3485d2bbeed996eee9bcddf22dc8a7 toolkit/templates/README.md
97
- b756c866fe7e76d1f4003871d80abe491d0283e0c95205121e6f91fbd8b02471 toolkit/templates/SHARED_PLANNING.md
98
+ b756c866fe7e76d1f4003871d80abe491d0283e0c95205121e6f91fbd8b02471 toolkit/templates/SHARED_PLANNING.md
@@ -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
@@ -56,7 +56,8 @@ function Get-ClaudeManagedReferenceSources {
56
56
  'templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md',
57
57
  'skills/sdtk-screen-design-spec/references/numbering-rules.md',
58
58
  'skills/sdtk-screen-design-spec/references/figma-mcp.md',
59
- 'skills/sdtk-screen-design-spec/references/excel-image-export.md'
59
+ 'skills/sdtk-screen-design-spec/references/excel-image-export.md',
60
+ 'skills/sdtk-screen-design-spec/references/commerce-profile-screens.md'
60
61
  ) }
61
62
  'test-case-spec' { return @(
62
63
  'templates/docs/qa/TEST_CASE_CREATION_RULES.md'
@@ -166,7 +167,7 @@ foreach ($skillName in @('arch', 'api-doc', 'api-design-spec', 'screen-design-sp
166
167
 
167
168
  # Strict count assertions
168
169
  $expectedSkills = 14
169
- $expectedManagedRefs = 11
170
+ $expectedManagedRefs = 12
170
171
  if ($skillCount -ne $expectedSkills) {
171
172
  throw "Claude install failed. Expected $expectedSkills skills but installed $skillCount."
172
173
  }
@@ -38,7 +38,7 @@ description: Create/update screen flow-action specifications from requirement so
38
38
  - Escalate to `@arch` if API assignment for a screen is architecturally ambiguous.
39
39
 
40
40
  ## Core Process
41
- 1. Read requirement sources and identify in-scope screens, dialogs, and transitions.
41
+ 1. Read requirement sources and identify in-scope screens, dialogs, and transitions. If feature is commerce-domain (feature key matches `cart|checkout|order|account|commerce|ecommerce|ec|shop|store|catalog|b2b-commerce|b2c|retail` OR user explicitly declares commerce intent), consult `references/commerce-profile-screens.md` as a CHECKLIST for canonical sections per screen type. Sections not applicable to the feature may be omitted with a justification note.
42
42
  2. Read and apply rules from `toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md`.
43
43
  3. Determine design source mode per screen:
44
44
  - If Figma URL or screenshot exists: use `source-backed`.
@@ -65,6 +65,7 @@ description: Create/update screen flow-action specifications from requirement so
65
65
  - Every UI-scope screen declares a Design Source Type (`source-backed` or `generated-draft`).
66
66
  - Every generated-draft screen with an embedded wireframe image includes a wireframe-marker mapping table to the global action-table `No`.
67
67
  - Run `validate_flow_action_spec_numbering.py` before finalizing.
68
+ - For commerce-domain features: every declared screen aligns with the canonical sections in `references/commerce-profile-screens.md`; any deliberate omission documented inline (e.g. "address-book omitted — single-address B2B model").
68
69
 
69
70
  ## Order-Critical Hard Gate
70
71
  Do not finalize any screen section before applying `toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md`. The rules define mandatory section structure; skipping them produces incomplete specs that will fail ARCH/DEV review.
@@ -0,0 +1,183 @@
1
+ # Commerce Profile Screen Reference
2
+
3
+ ## Purpose
4
+
5
+ Canonical sections + interactive density guidance for commerce-domain screens. Consult this reference when generating SCREEN_DESIGN_SPEC for commerce features so the SPEC output is structurally rich enough for downstream design and render flows.
6
+
7
+ This reference describes PATTERNS, not VALUES. No brand colors, copy, screen ids, route paths, or project-specific examples appear here.
8
+
9
+ ## Detection rule
10
+
11
+ Consult this reference when:
12
+ - Feature key matches keywords: `cart`, `checkout`, `order`, `account`, `commerce`, `ecommerce`, `ec`, `shop`, `store`, `catalog`, `b2b-commerce`, `b2c`, `retail`.
13
+ - OR user explicitly declares commerce intent in the requirement.
14
+
15
+ Out of commerce domain → reference does NOT apply.
16
+
17
+ ## Canonical screen types
18
+
19
+ ### 1. Home (commerce homepage)
20
+
21
+ Canonical sections:
22
+ - header (site nav, search-bar, cart/account utility)
23
+ - hero (primary value prop)
24
+ - category-grid (4+ entries — drives category nav interactive count)
25
+ - featured-products (4+ product cards)
26
+ - secondary CTA or domain-specific entry (e.g. configurator entry for B2B)
27
+ - footer (links to contact, privacy, terms)
28
+
29
+ Interactive density:
30
+ - header nav (5–8 links)
31
+ - category-grid (4+ anchors)
32
+ - featured-products (4+ anchors)
33
+
34
+ ### 2. Category (catalog listing)
35
+
36
+ Canonical sections:
37
+ - header + breadcrumb
38
+ - filter-sidebar (multi-select, price range, brand)
39
+ - sort-bar
40
+ - product-grid (12+ cards in real layout; SPEC declares 4+ sample cards)
41
+ - pagination
42
+
43
+ Interactive density:
44
+ - filter checkboxes (5+)
45
+ - product cards (4+ anchors)
46
+ - pagination (3+ links)
47
+
48
+ ### 3. Product Detail (PDP)
49
+
50
+ Canonical sections:
51
+ - header + breadcrumb
52
+ - image-gallery (4+ thumbnail anchors + main image)
53
+ - product title + price
54
+ - spec table (technical specs)
55
+ - add-to-cart + quantity selector
56
+ - tab section (description, reviews, shipping, returns)
57
+ - related-products grid (4+ cards)
58
+
59
+ Interactive density:
60
+ - image-gallery (4+ anchors)
61
+ - tab buttons (3–4)
62
+ - related-products (4+ anchors)
63
+ - spec-download or compare anchors (1–2)
64
+
65
+ ### 4. Search (results)
66
+
67
+ Canonical sections:
68
+ - header (with prominent search-bar)
69
+ - filter-panel
70
+ - sort-bar
71
+ - results-grid (dense)
72
+ - no-results state (alternative)
73
+ - pagination
74
+
75
+ Interactive density: matches category screen.
76
+
77
+ ### 5. Cart
78
+
79
+ Canonical sections:
80
+ - header
81
+ - cart-items-table (multiple rows; each row has qty selector + remove anchor)
82
+ - promo / coupon section (input + apply button) — distinguishes commerce cart from a generic list
83
+ - cart-summary (subtotal, tax, total)
84
+ - recommended-products (4+ cards)
85
+ - checkout CTA + continue-shopping link
86
+
87
+ Interactive density:
88
+ - per-row qty + remove (2 actions × N rows)
89
+ - promo input + apply
90
+ - recommended cards (4+ anchors)
91
+
92
+ ### 6. Checkout
93
+
94
+ Canonical sections:
95
+ - header (minimal — focus on checkout flow)
96
+ - progress stepper (3–5 steps)
97
+ - shipping-address form (with postcode lookup + address autocomplete) — dense form
98
+ - billing-address form (with same-as-shipping option)
99
+ - payment-method (multiple options: card, bank transfer, COD for B2B)
100
+ - order-review (items list, totals)
101
+ - place-order CTA
102
+
103
+ Interactive density:
104
+ - form fields (15–25 inputs / selects across address + payment)
105
+ - step navigation links
106
+ - multiple payment radio options
107
+ - item review (3–5 line items)
108
+
109
+ ### 7. Order History
110
+
111
+ Canonical sections:
112
+ - header + sidebar-account-nav
113
+ - filter bar (date range, status)
114
+ - order-list with per-row actions: detail link, reorder link, invoice download, tracking link
115
+ - pagination
116
+
117
+ Interactive density:
118
+ - filter inputs (3–5)
119
+ - order rows × per-row 3–4 actions (12–20 anchors total)
120
+ - pagination links
121
+
122
+ ### 8. Order Detail
123
+
124
+ Canonical sections:
125
+ - header + sidebar-account-nav
126
+ - order-meta-header (order id, date, status)
127
+ - order-items (multiple rows)
128
+ - order-totals
129
+ - shipping-info
130
+ - payment-info
131
+ - actions (reorder, support-contact, invoice-download, return-request)
132
+
133
+ Interactive density:
134
+ - action set (4–5 anchors)
135
+ - item rows with detail links (3+ rows)
136
+
137
+ ### 9. Account Info (profile + address book)
138
+
139
+ Canonical sections:
140
+ - header + sidebar-account-nav
141
+ - profile form (name, email — display + edit)
142
+ - email change form (inline or modal)
143
+ - password change form (inline or modal)
144
+ - address-book section (multi-address list; each address with edit + delete + set-default anchors)
145
+ - preferences (notifications, language)
146
+
147
+ Interactive density:
148
+ - form fields (5–10)
149
+ - address-book entries (3+ addresses × 3 actions each = 9+ anchors)
150
+ - preference toggles
151
+
152
+ ### 10. Mode-B Configurator (B2B industrial-commerce; OPTIONAL — applies only when feature scope includes a configurator)
153
+
154
+ Canonical sections:
155
+ - header
156
+ - wizard steps
157
+ - configuration form (multi-field input)
158
+ - preview panel
159
+ - BOM (bill of materials) table
160
+ - exclude / recalculate actions
161
+ - save / order CTAs
162
+
163
+ Interactive density:
164
+ - form fields (10–20)
165
+ - preview interactions
166
+ - BOM rows with toggles (5+ rows × 2–3 actions)
167
+ - action buttons (3–4)
168
+
169
+ ## Common variants (B2B vs B2C)
170
+
171
+ - B2B carts often include quote-request and order-by-PO-number sections.
172
+ - B2B account pages typically include team-management (additional users) and purchasing-roles.
173
+ - B2C product pages prioritise reviews and social-proof; B2B prioritises spec tables and technical-data.
174
+ - B2B checkout typically supports purchase-order payment; B2C is card-first.
175
+
176
+ These variants are guidance — match feature requirements.
177
+
178
+ ## Boundary
179
+
180
+ - This reference describes PATTERNS, not VALUES.
181
+ - It contains no brand names, brand colors, hex codes, exact copy, screen ids, route paths, product SKUs, or any project-specific examples.
182
+ - It contains no references to any specific reference layout, sample export, or customer artefact.
183
+ - Patterns above are derived from general commerce-domain conventions only.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdtk-spec-kit",
3
- "version": "0.4.6",
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: "",