sdtk-spec-kit 0.4.9 → 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.9",
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.9",
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";
@@ -31,11 +31,18 @@ function resolvePublicKey() {
31
31
  return process.env.SDTK_ENTITLEMENT_PUBLIC_KEY;
32
32
  }
33
33
 
34
- // Try bundled default
34
+ // Try bundled default.
35
+ // __dirname is <pkg>/src/lib and the key ships at <pkg>/assets/keys, so we
36
+ // must go up TWO levels (src/lib -> src -> <pkg>) before descending into
37
+ // assets/keys. A single ".." here was a latent bug that resolved to the
38
+ // non-existent <pkg>/src/assets/keys and returned null ("Trust root not
39
+ // configured"); it went unnoticed while manifests were signed with a
40
+ // placeholder that never reached signature verification.
35
41
  try {
36
42
  const bundledKeyPath = path.join(
37
43
  __dirname,
38
44
  "..",
45
+ "..",
39
46
  "assets",
40
47
  "keys",
41
48
  "spec-entitlement-public.pem"