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.
package/package.json
CHANGED
|
@@ -55,7 +55,14 @@ function entitlementStatus() {
|
|
|
55
55
|
lines.push(`Plan: ${manifest.plan}`);
|
|
56
56
|
}
|
|
57
57
|
if (manifest.products && manifest.products.spec) {
|
|
58
|
-
|
|
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";
|