specdx 0.3.0-alpha.1 → 0.3.0-alpha.2
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/.claude-plugin/plugin.json +1 -1
- package/dist/{changelog-NPN34DIO.js → changelog-URU2TFNM.js} +2 -2
- package/dist/{chunk-6DTOYCZ6.js → chunk-ATLVRGHI.js} +3 -1
- package/dist/{chunk-6DTOYCZ6.js.map → chunk-ATLVRGHI.js.map} +1 -1
- package/dist/{chunk-AO3ZQKLJ.js → chunk-LU6M5O63.js} +3 -3
- package/dist/{chunk-AO3ZQKLJ.js.map → chunk-LU6M5O63.js.map} +1 -1
- package/dist/{diff-GWJONALU.js → diff-55PTEVB3.js} +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{lint-CHWVBUV5.js → lint-U7VLGS75.js} +2 -2
- package/dist/main.js +5 -4
- package/dist/main.js.map +1 -1
- package/dist/ready-3OIF4QHM.js +159 -0
- package/dist/ready-3OIF4QHM.js.map +1 -0
- package/dist/skills/specdx-author-spec/step-01-frontmatter.md +66 -0
- package/dist/skills/specdx-author-spec/step-02-sections.md +70 -0
- package/dist/skills/specdx-author-spec/step-03-finalize.md +48 -0
- package/dist/skills/specdx-author-spec.md +13 -113
- package/dist/{status-VMALGNS5.js → status-LYZUO6AJ.js} +3 -3
- package/package.json +1 -1
- /package/dist/{changelog-NPN34DIO.js.map → changelog-URU2TFNM.js.map} +0 -0
- /package/dist/{diff-GWJONALU.js.map → diff-55PTEVB3.js.map} +0 -0
- /package/dist/{lint-CHWVBUV5.js.map → lint-U7VLGS75.js.map} +0 -0
- /package/dist/{status-VMALGNS5.js.map → status-LYZUO6AJ.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DEFAULT_DIFF_CONFIG,
|
|
3
3
|
DiffError,
|
|
4
4
|
diffBetweenRefs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LU6M5O63.js";
|
|
6
6
|
import {
|
|
7
7
|
loadConfig
|
|
8
8
|
} from "./chunk-276J7LR6.js";
|
|
@@ -97,4 +97,4 @@ export {
|
|
|
97
97
|
diff_default as default,
|
|
98
98
|
runDiff
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=diff-
|
|
100
|
+
//# sourceMappingURL=diff-55PTEVB3.js.map
|
package/dist/index.js
CHANGED
|
@@ -864,6 +864,8 @@ function getPreset(name) {
|
|
|
864
864
|
return allBuiltinRules;
|
|
865
865
|
case "strict":
|
|
866
866
|
return allBuiltinRules.map((rule) => ({ ...rule, severity: "error" }));
|
|
867
|
+
default:
|
|
868
|
+
throw new Error(`Unknown preset: "${name}". Use "minimal", "recommended", or "strict", or resolve external presets via resolvePreset() from @specdx/core.`);
|
|
867
869
|
}
|
|
868
870
|
}
|
|
869
871
|
|
|
@@ -2514,7 +2516,7 @@ function diffSections(before, after) {
|
|
|
2514
2516
|
for (const section of after) {
|
|
2515
2517
|
afterMap.set(section.heading, section);
|
|
2516
2518
|
}
|
|
2517
|
-
for (const [heading
|
|
2519
|
+
for (const [heading] of beforeMap) {
|
|
2518
2520
|
if (!afterMap.has(heading)) {
|
|
2519
2521
|
changes.push({ heading, type: "removed" });
|
|
2520
2522
|
}
|
|
@@ -2594,7 +2596,7 @@ function analyzeImpact(changedSpecId, diff2, graph, allSpecs, thresholdDays = 14
|
|
|
2594
2596
|
const spec = specById.get(specId);
|
|
2595
2597
|
const lastUpdated = spec?.frontmatter.updated ?? spec?.frontmatter.created ?? null;
|
|
2596
2598
|
const filePath = spec?.filePath ?? `specs/${specId}.md`;
|
|
2597
|
-
let staleness
|
|
2599
|
+
let staleness;
|
|
2598
2600
|
if (lastUpdated) {
|
|
2599
2601
|
const daysSinceUpdate = daysBetween(lastUpdated);
|
|
2600
2602
|
staleness = clamp(0, 1, daysSinceUpdate / thresholdDays * 0.5 + structuralSectionsChanged / totalSections * 0.3 + 1 / distance * 0.2);
|