sdtk-spec-kit 0.4.10 → 0.4.11

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.10",
2
+ "version": "0.4.11",
3
3
  "sourceCommit": "f42cb6f6420371df8305f965b404d173ddb7bb78",
4
4
  "fileCount": 98,
5
5
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdtk-spec-kit",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
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"
@@ -55,7 +55,14 @@ function entitlementStatus() {
55
55
  lines.push(`Plan: ${manifest.plan}`);
56
56
  }
57
57
  if (manifest.products && manifest.products.spec) {
58
- lines.push(`SPEC tier: ${manifest.products.spec}`);
58
+ // manifest.products.spec is an object ({ capabilities: [...] }), not a
59
+ // scalar tier string — print its capability count instead of letting it
60
+ // stringify to "[object Object]".
61
+ const specCaps = Array.isArray(manifest.products.spec.capabilities)
62
+ ? manifest.products.spec.capabilities
63
+ : [];
64
+ const specWord = specCaps.length === 1 ? "capability" : "capabilities";
65
+ lines.push(`SPEC product: ${specCaps.length} ${specWord}`);
59
66
  }
60
67
  const caps = Array.isArray(manifest.capabilities) ? manifest.capabilities : [];
61
68
  const capWord = caps.length === 1 ? "capability" : "capabilities";