open-wiki-spec 0.1.0
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 +294 -0
- package/bin/open-wiki-spec.js +2 -0
- package/dist/cli/commands/apply.d.ts +3 -0
- package/dist/cli/commands/apply.d.ts.map +1 -0
- package/dist/cli/commands/apply.js +60 -0
- package/dist/cli/commands/apply.js.map +1 -0
- package/dist/cli/commands/archive.d.ts +20 -0
- package/dist/cli/commands/archive.d.ts.map +1 -0
- package/dist/cli/commands/archive.js +87 -0
- package/dist/cli/commands/archive.js.map +1 -0
- package/dist/cli/commands/continue.d.ts +6 -0
- package/dist/cli/commands/continue.d.ts.map +1 -0
- package/dist/cli/commands/continue.js +35 -0
- package/dist/cli/commands/continue.js.map +1 -0
- package/dist/cli/commands/formatters.d.ts +9 -0
- package/dist/cli/commands/formatters.d.ts.map +1 -0
- package/dist/cli/commands/formatters.js +55 -0
- package/dist/cli/commands/formatters.js.map +1 -0
- package/dist/cli/commands/init.d.ts +6 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +36 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/list.d.ts +28 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +85 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/migrate.d.ts +6 -0
- package/dist/cli/commands/migrate.d.ts.map +1 -0
- package/dist/cli/commands/migrate.js +103 -0
- package/dist/cli/commands/migrate.js.map +1 -0
- package/dist/cli/commands/propose.d.ts +3 -0
- package/dist/cli/commands/propose.d.ts.map +1 -0
- package/dist/cli/commands/propose.js +64 -0
- package/dist/cli/commands/propose.js.map +1 -0
- package/dist/cli/commands/query.d.ts +3 -0
- package/dist/cli/commands/query.d.ts.map +1 -0
- package/dist/cli/commands/query.js +62 -0
- package/dist/cli/commands/query.js.map +1 -0
- package/dist/cli/commands/status.d.ts +30 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +144 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/verify.d.ts +3 -0
- package/dist/cli/commands/verify.d.ts.map +1 -0
- package/dist/cli/commands/verify.js +38 -0
- package/dist/cli/commands/verify.js.map +1 -0
- package/dist/cli/index.d.ts +6 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +40 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init/init-engine.d.ts +6 -0
- package/dist/cli/init/init-engine.d.ts.map +1 -0
- package/dist/cli/init/init-engine.js +107 -0
- package/dist/cli/init/init-engine.js.map +1 -0
- package/dist/cli/init/meta-files.d.ts +9 -0
- package/dist/cli/init/meta-files.d.ts.map +1 -0
- package/dist/cli/init/meta-files.js +156 -0
- package/dist/cli/init/meta-files.js.map +1 -0
- package/dist/cli/init/skill-generator.d.ts +11 -0
- package/dist/cli/init/skill-generator.d.ts.map +1 -0
- package/dist/cli/init/skill-generator.js +753 -0
- package/dist/cli/init/skill-generator.js.map +1 -0
- package/dist/cli/init/types.d.ts +27 -0
- package/dist/cli/init/types.d.ts.map +1 -0
- package/dist/cli/init/types.js +5 -0
- package/dist/cli/init/types.js.map +1 -0
- package/dist/cli/vault-discovery.d.ts +9 -0
- package/dist/cli/vault-discovery.d.ts.map +1 -0
- package/dist/cli/vault-discovery.js +31 -0
- package/dist/cli/vault-discovery.js.map +1 -0
- package/dist/core/config/index.d.ts +2 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/core/config/index.js +3 -0
- package/dist/core/config/index.js.map +1 -0
- package/dist/core/index/build.d.ts +10 -0
- package/dist/core/index/build.d.ts.map +1 -0
- package/dist/core/index/build.js +190 -0
- package/dist/core/index/build.js.map +1 -0
- package/dist/core/index/index.d.ts +7 -0
- package/dist/core/index/index.d.ts.map +1 -0
- package/dist/core/index/index.js +7 -0
- package/dist/core/index/index.js.map +1 -0
- package/dist/core/index/resolve.d.ts +41 -0
- package/dist/core/index/resolve.d.ts.map +1 -0
- package/dist/core/index/resolve.js +63 -0
- package/dist/core/index/resolve.js.map +1 -0
- package/dist/core/index/reverse.d.ts +7 -0
- package/dist/core/index/reverse.d.ts.map +1 -0
- package/dist/core/index/reverse.js +24 -0
- package/dist/core/index/reverse.js.map +1 -0
- package/dist/core/index/scan.d.ts +16 -0
- package/dist/core/index/scan.d.ts.map +1 -0
- package/dist/core/index/scan.js +19 -0
- package/dist/core/index/scan.js.map +1 -0
- package/dist/core/index/schema-version.d.ts +5 -0
- package/dist/core/index/schema-version.d.ts.map +1 -0
- package/dist/core/index/schema-version.js +19 -0
- package/dist/core/index/schema-version.js.map +1 -0
- package/dist/core/index/validate.d.ts +14 -0
- package/dist/core/index/validate.d.ts.map +1 -0
- package/dist/core/index/validate.js +77 -0
- package/dist/core/index/validate.js.map +1 -0
- package/dist/core/migrate/change-converter.d.ts +18 -0
- package/dist/core/migrate/change-converter.d.ts.map +1 -0
- package/dist/core/migrate/change-converter.js +475 -0
- package/dist/core/migrate/change-converter.js.map +1 -0
- package/dist/core/migrate/index.d.ts +8 -0
- package/dist/core/migrate/index.d.ts.map +1 -0
- package/dist/core/migrate/index.js +7 -0
- package/dist/core/migrate/index.js.map +1 -0
- package/dist/core/migrate/migrate.d.ts +15 -0
- package/dist/core/migrate/migrate.d.ts.map +1 -0
- package/dist/core/migrate/migrate.js +149 -0
- package/dist/core/migrate/migrate.js.map +1 -0
- package/dist/core/migrate/scanner.d.ts +10 -0
- package/dist/core/migrate/scanner.d.ts.map +1 -0
- package/dist/core/migrate/scanner.js +188 -0
- package/dist/core/migrate/scanner.js.map +1 -0
- package/dist/core/migrate/source-converter.d.ts +6 -0
- package/dist/core/migrate/source-converter.d.ts.map +1 -0
- package/dist/core/migrate/source-converter.js +63 -0
- package/dist/core/migrate/source-converter.js.map +1 -0
- package/dist/core/migrate/spec-converter.d.ts +16 -0
- package/dist/core/migrate/spec-converter.d.ts.map +1 -0
- package/dist/core/migrate/spec-converter.js +157 -0
- package/dist/core/migrate/spec-converter.js.map +1 -0
- package/dist/core/migrate/system-inferrer.d.ts +23 -0
- package/dist/core/migrate/system-inferrer.d.ts.map +1 -0
- package/dist/core/migrate/system-inferrer.js +118 -0
- package/dist/core/migrate/system-inferrer.js.map +1 -0
- package/dist/core/migrate/types.d.ts +125 -0
- package/dist/core/migrate/types.d.ts.map +1 -0
- package/dist/core/migrate/types.js +5 -0
- package/dist/core/migrate/types.js.map +1 -0
- package/dist/core/parser/delta-summary-parser.d.ts +10 -0
- package/dist/core/parser/delta-summary-parser.d.ts.map +1 -0
- package/dist/core/parser/delta-summary-parser.js +101 -0
- package/dist/core/parser/delta-summary-parser.js.map +1 -0
- package/dist/core/parser/frontmatter-parser.d.ts +21 -0
- package/dist/core/parser/frontmatter-parser.d.ts.map +1 -0
- package/dist/core/parser/frontmatter-parser.js +87 -0
- package/dist/core/parser/frontmatter-parser.js.map +1 -0
- package/dist/core/parser/index.d.ts +9 -0
- package/dist/core/parser/index.d.ts.map +1 -0
- package/dist/core/parser/index.js +8 -0
- package/dist/core/parser/index.js.map +1 -0
- package/dist/core/parser/note-parser.d.ts +9 -0
- package/dist/core/parser/note-parser.d.ts.map +1 -0
- package/dist/core/parser/note-parser.js +106 -0
- package/dist/core/parser/note-parser.js.map +1 -0
- package/dist/core/parser/requirement-parser.d.ts +13 -0
- package/dist/core/parser/requirement-parser.d.ts.map +1 -0
- package/dist/core/parser/requirement-parser.js +127 -0
- package/dist/core/parser/requirement-parser.js.map +1 -0
- package/dist/core/parser/section-parser.d.ts +15 -0
- package/dist/core/parser/section-parser.d.ts.map +1 -0
- package/dist/core/parser/section-parser.js +90 -0
- package/dist/core/parser/section-parser.js.map +1 -0
- package/dist/core/parser/task-parser.d.ts +9 -0
- package/dist/core/parser/task-parser.d.ts.map +1 -0
- package/dist/core/parser/task-parser.js +35 -0
- package/dist/core/parser/task-parser.js.map +1 -0
- package/dist/core/parser/types.d.ts +94 -0
- package/dist/core/parser/types.d.ts.map +1 -0
- package/dist/core/parser/types.js +2 -0
- package/dist/core/parser/types.js.map +1 -0
- package/dist/core/parser/wikilink-parser.d.ts +19 -0
- package/dist/core/parser/wikilink-parser.d.ts.map +1 -0
- package/dist/core/parser/wikilink-parser.js +74 -0
- package/dist/core/parser/wikilink-parser.js.map +1 -0
- package/dist/core/retrieval/classify.d.ts +11 -0
- package/dist/core/retrieval/classify.d.ts.map +1 -0
- package/dist/core/retrieval/classify.js +92 -0
- package/dist/core/retrieval/classify.js.map +1 -0
- package/dist/core/retrieval/constants.d.ts +49 -0
- package/dist/core/retrieval/constants.d.ts.map +1 -0
- package/dist/core/retrieval/constants.js +29 -0
- package/dist/core/retrieval/constants.js.map +1 -0
- package/dist/core/retrieval/graph-expand.d.ts +7 -0
- package/dist/core/retrieval/graph-expand.d.ts.map +1 -0
- package/dist/core/retrieval/graph-expand.js +20 -0
- package/dist/core/retrieval/graph-expand.js.map +1 -0
- package/dist/core/retrieval/helpers.d.ts +15 -0
- package/dist/core/retrieval/helpers.d.ts.map +1 -0
- package/dist/core/retrieval/helpers.js +36 -0
- package/dist/core/retrieval/helpers.js.map +1 -0
- package/dist/core/retrieval/index.d.ts +11 -0
- package/dist/core/retrieval/index.d.ts.map +1 -0
- package/dist/core/retrieval/index.js +9 -0
- package/dist/core/retrieval/index.js.map +1 -0
- package/dist/core/retrieval/lexical.d.ts +8 -0
- package/dist/core/retrieval/lexical.d.ts.map +1 -0
- package/dist/core/retrieval/lexical.js +107 -0
- package/dist/core/retrieval/lexical.js.map +1 -0
- package/dist/core/retrieval/retrieve.d.ts +16 -0
- package/dist/core/retrieval/retrieve.d.ts.map +1 -0
- package/dist/core/retrieval/retrieve.js +58 -0
- package/dist/core/retrieval/retrieve.js.map +1 -0
- package/dist/core/retrieval/scoring.d.ts +14 -0
- package/dist/core/retrieval/scoring.d.ts.map +1 -0
- package/dist/core/retrieval/scoring.js +169 -0
- package/dist/core/retrieval/scoring.js.map +1 -0
- package/dist/core/retrieval/warnings.d.ts +16 -0
- package/dist/core/retrieval/warnings.d.ts.map +1 -0
- package/dist/core/retrieval/warnings.js +73 -0
- package/dist/core/retrieval/warnings.js.map +1 -0
- package/dist/core/schema/base.schema.d.ts +31 -0
- package/dist/core/schema/base.schema.d.ts.map +1 -0
- package/dist/core/schema/base.schema.js +32 -0
- package/dist/core/schema/base.schema.js.map +1 -0
- package/dist/core/schema/change.schema.d.ts +96 -0
- package/dist/core/schema/change.schema.d.ts.map +1 -0
- package/dist/core/schema/change.schema.js +64 -0
- package/dist/core/schema/change.schema.js.map +1 -0
- package/dist/core/schema/decision.schema.d.ts +33 -0
- package/dist/core/schema/decision.schema.d.ts.map +1 -0
- package/dist/core/schema/decision.schema.js +19 -0
- package/dist/core/schema/decision.schema.js.map +1 -0
- package/dist/core/schema/delta-summary.d.ts +57 -0
- package/dist/core/schema/delta-summary.d.ts.map +1 -0
- package/dist/core/schema/delta-summary.js +38 -0
- package/dist/core/schema/delta-summary.js.map +1 -0
- package/dist/core/schema/feature.schema.d.ts +40 -0
- package/dist/core/schema/feature.schema.d.ts.map +1 -0
- package/dist/core/schema/feature.schema.js +25 -0
- package/dist/core/schema/feature.schema.js.map +1 -0
- package/dist/core/schema/frontmatter.d.ts +207 -0
- package/dist/core/schema/frontmatter.d.ts.map +1 -0
- package/dist/core/schema/frontmatter.js +23 -0
- package/dist/core/schema/frontmatter.js.map +1 -0
- package/dist/core/schema/index.d.ts +235 -0
- package/dist/core/schema/index.d.ts.map +1 -0
- package/dist/core/schema/index.js +52 -0
- package/dist/core/schema/index.js.map +1 -0
- package/dist/core/schema/query.schema.d.ts +39 -0
- package/dist/core/schema/query.schema.d.ts.map +1 -0
- package/dist/core/schema/query.schema.js +20 -0
- package/dist/core/schema/query.schema.js.map +1 -0
- package/dist/core/schema/requirement.d.ts +69 -0
- package/dist/core/schema/requirement.d.ts.map +1 -0
- package/dist/core/schema/requirement.js +35 -0
- package/dist/core/schema/requirement.js.map +1 -0
- package/dist/core/schema/source.schema.d.ts +33 -0
- package/dist/core/schema/source.schema.d.ts.map +1 -0
- package/dist/core/schema/source.schema.js +24 -0
- package/dist/core/schema/source.schema.js.map +1 -0
- package/dist/core/schema/system.schema.d.ts +27 -0
- package/dist/core/schema/system.schema.d.ts.map +1 -0
- package/dist/core/schema/system.schema.js +17 -0
- package/dist/core/schema/system.schema.js.map +1 -0
- package/dist/core/schema/templates.d.ts +14 -0
- package/dist/core/schema/templates.d.ts.map +1 -0
- package/dist/core/schema/templates.js +220 -0
- package/dist/core/schema/templates.js.map +1 -0
- package/dist/core/schema/validation-constants.d.ts +5 -0
- package/dist/core/schema/validation-constants.d.ts.map +1 -0
- package/dist/core/schema/validation-constants.js +5 -0
- package/dist/core/schema/validation-constants.js.map +1 -0
- package/dist/core/sequencing/analyze.d.ts +13 -0
- package/dist/core/sequencing/analyze.d.ts.map +1 -0
- package/dist/core/sequencing/analyze.js +107 -0
- package/dist/core/sequencing/analyze.js.map +1 -0
- package/dist/core/sequencing/index.d.ts +8 -0
- package/dist/core/sequencing/index.d.ts.map +1 -0
- package/dist/core/sequencing/index.js +8 -0
- package/dist/core/sequencing/index.js.map +1 -0
- package/dist/core/sequencing/ordering.d.ts +11 -0
- package/dist/core/sequencing/ordering.d.ts.map +1 -0
- package/dist/core/sequencing/ordering.js +148 -0
- package/dist/core/sequencing/ordering.js.map +1 -0
- package/dist/core/sequencing/out-of-order-detector.d.ts +9 -0
- package/dist/core/sequencing/out-of-order-detector.d.ts.map +1 -0
- package/dist/core/sequencing/out-of-order-detector.js +42 -0
- package/dist/core/sequencing/out-of-order-detector.js.map +1 -0
- package/dist/core/sequencing/priority-queue.d.ts +18 -0
- package/dist/core/sequencing/priority-queue.d.ts.map +1 -0
- package/dist/core/sequencing/priority-queue.js +31 -0
- package/dist/core/sequencing/priority-queue.js.map +1 -0
- package/dist/core/sequencing/requirement-conflict-detector.d.ts +9 -0
- package/dist/core/sequencing/requirement-conflict-detector.d.ts.map +1 -0
- package/dist/core/sequencing/requirement-conflict-detector.js +90 -0
- package/dist/core/sequencing/requirement-conflict-detector.js.map +1 -0
- package/dist/core/sequencing/stale-detector.d.ts +9 -0
- package/dist/core/sequencing/stale-detector.d.ts.map +1 -0
- package/dist/core/sequencing/stale-detector.js +49 -0
- package/dist/core/sequencing/stale-detector.js.map +1 -0
- package/dist/core/sequencing/touches-analyzer.d.ts +8 -0
- package/dist/core/sequencing/touches-analyzer.d.ts.map +1 -0
- package/dist/core/sequencing/touches-analyzer.js +91 -0
- package/dist/core/sequencing/touches-analyzer.js.map +1 -0
- package/dist/core/vault/index.d.ts +2 -0
- package/dist/core/vault/index.d.ts.map +1 -0
- package/dist/core/vault/index.js +3 -0
- package/dist/core/vault/index.js.map +1 -0
- package/dist/core/workflow/apply/apply.d.ts +17 -0
- package/dist/core/workflow/apply/apply.d.ts.map +1 -0
- package/dist/core/workflow/apply/apply.js +302 -0
- package/dist/core/workflow/apply/apply.js.map +1 -0
- package/dist/core/workflow/apply/delta-parser.d.ts +11 -0
- package/dist/core/workflow/apply/delta-parser.d.ts.map +1 -0
- package/dist/core/workflow/apply/delta-parser.js +164 -0
- package/dist/core/workflow/apply/delta-parser.js.map +1 -0
- package/dist/core/workflow/apply/feature-updater.d.ts +12 -0
- package/dist/core/workflow/apply/feature-updater.d.ts.map +1 -0
- package/dist/core/workflow/apply/feature-updater.js +75 -0
- package/dist/core/workflow/apply/feature-updater.js.map +1 -0
- package/dist/core/workflow/apply/index.d.ts +7 -0
- package/dist/core/workflow/apply/index.d.ts.map +1 -0
- package/dist/core/workflow/apply/index.js +6 -0
- package/dist/core/workflow/apply/index.js.map +1 -0
- package/dist/core/workflow/apply/stale-checker.d.ts +17 -0
- package/dist/core/workflow/apply/stale-checker.d.ts.map +1 -0
- package/dist/core/workflow/apply/stale-checker.js +99 -0
- package/dist/core/workflow/apply/stale-checker.js.map +1 -0
- package/dist/core/workflow/apply/types.d.ts +112 -0
- package/dist/core/workflow/apply/types.d.ts.map +1 -0
- package/dist/core/workflow/apply/types.js +2 -0
- package/dist/core/workflow/apply/types.js.map +1 -0
- package/dist/core/workflow/apply/verify-apply.d.ts +16 -0
- package/dist/core/workflow/apply/verify-apply.d.ts.map +1 -0
- package/dist/core/workflow/apply/verify-apply.js +81 -0
- package/dist/core/workflow/apply/verify-apply.js.map +1 -0
- package/dist/core/workflow/continue/continue.d.ts +17 -0
- package/dist/core/workflow/continue/continue.d.ts.map +1 -0
- package/dist/core/workflow/continue/continue.js +213 -0
- package/dist/core/workflow/continue/continue.js.map +1 -0
- package/dist/core/workflow/continue/decision-promoter.d.ts +20 -0
- package/dist/core/workflow/continue/decision-promoter.d.ts.map +1 -0
- package/dist/core/workflow/continue/decision-promoter.js +36 -0
- package/dist/core/workflow/continue/decision-promoter.js.map +1 -0
- package/dist/core/workflow/continue/index.d.ts +6 -0
- package/dist/core/workflow/continue/index.d.ts.map +1 -0
- package/dist/core/workflow/continue/index.js +5 -0
- package/dist/core/workflow/continue/index.js.map +1 -0
- package/dist/core/workflow/continue/next-action.d.ts +13 -0
- package/dist/core/workflow/continue/next-action.d.ts.map +1 -0
- package/dist/core/workflow/continue/next-action.js +129 -0
- package/dist/core/workflow/continue/next-action.js.map +1 -0
- package/dist/core/workflow/continue/section-checker.d.ts +18 -0
- package/dist/core/workflow/continue/section-checker.d.ts.map +1 -0
- package/dist/core/workflow/continue/section-checker.js +114 -0
- package/dist/core/workflow/continue/section-checker.js.map +1 -0
- package/dist/core/workflow/continue/types.d.ts +113 -0
- package/dist/core/workflow/continue/types.d.ts.map +1 -0
- package/dist/core/workflow/continue/types.js +2 -0
- package/dist/core/workflow/continue/types.js.map +1 -0
- package/dist/core/workflow/index.d.ts +11 -0
- package/dist/core/workflow/index.d.ts.map +1 -0
- package/dist/core/workflow/index.js +12 -0
- package/dist/core/workflow/index.js.map +1 -0
- package/dist/core/workflow/propose/index.d.ts +6 -0
- package/dist/core/workflow/propose/index.d.ts.map +1 -0
- package/dist/core/workflow/propose/index.js +5 -0
- package/dist/core/workflow/propose/index.js.map +1 -0
- package/dist/core/workflow/propose/note-creator.d.ts +35 -0
- package/dist/core/workflow/propose/note-creator.d.ts.map +1 -0
- package/dist/core/workflow/propose/note-creator.js +178 -0
- package/dist/core/workflow/propose/note-creator.js.map +1 -0
- package/dist/core/workflow/propose/prerequisites.d.ts +17 -0
- package/dist/core/workflow/propose/prerequisites.d.ts.map +1 -0
- package/dist/core/workflow/propose/prerequisites.js +78 -0
- package/dist/core/workflow/propose/prerequisites.js.map +1 -0
- package/dist/core/workflow/propose/propose.d.ts +13 -0
- package/dist/core/workflow/propose/propose.d.ts.map +1 -0
- package/dist/core/workflow/propose/propose.js +204 -0
- package/dist/core/workflow/propose/propose.js.map +1 -0
- package/dist/core/workflow/propose/query-normalizer.d.ts +7 -0
- package/dist/core/workflow/propose/query-normalizer.d.ts.map +1 -0
- package/dist/core/workflow/propose/query-normalizer.js +77 -0
- package/dist/core/workflow/propose/query-normalizer.js.map +1 -0
- package/dist/core/workflow/propose/types.d.ts +71 -0
- package/dist/core/workflow/propose/types.d.ts.map +1 -0
- package/dist/core/workflow/propose/types.js +2 -0
- package/dist/core/workflow/propose/types.js.map +1 -0
- package/dist/core/workflow/query/index.d.ts +6 -0
- package/dist/core/workflow/query/index.d.ts.map +1 -0
- package/dist/core/workflow/query/index.js +5 -0
- package/dist/core/workflow/query/index.js.map +1 -0
- package/dist/core/workflow/query/noteworthiness.d.ts +14 -0
- package/dist/core/workflow/query/noteworthiness.d.ts.map +1 -0
- package/dist/core/workflow/query/noteworthiness.js +48 -0
- package/dist/core/workflow/query/noteworthiness.js.map +1 -0
- package/dist/core/workflow/query/query-note-creator.d.ts +13 -0
- package/dist/core/workflow/query/query-note-creator.d.ts.map +1 -0
- package/dist/core/workflow/query/query-note-creator.js +168 -0
- package/dist/core/workflow/query/query-note-creator.js.map +1 -0
- package/dist/core/workflow/query/query-search.d.ts +19 -0
- package/dist/core/workflow/query/query-search.d.ts.map +1 -0
- package/dist/core/workflow/query/query-search.js +252 -0
- package/dist/core/workflow/query/query-search.js.map +1 -0
- package/dist/core/workflow/query/query.d.ts +18 -0
- package/dist/core/workflow/query/query.d.ts.map +1 -0
- package/dist/core/workflow/query/query.js +29 -0
- package/dist/core/workflow/query/query.js.map +1 -0
- package/dist/core/workflow/query/types.d.ts +67 -0
- package/dist/core/workflow/query/types.d.ts.map +1 -0
- package/dist/core/workflow/query/types.js +2 -0
- package/dist/core/workflow/query/types.js.map +1 -0
- package/dist/core/workflow/verify/coherence.d.ts +30 -0
- package/dist/core/workflow/verify/coherence.d.ts.map +1 -0
- package/dist/core/workflow/verify/coherence.js +206 -0
- package/dist/core/workflow/verify/coherence.js.map +1 -0
- package/dist/core/workflow/verify/completeness.d.ts +24 -0
- package/dist/core/workflow/verify/completeness.d.ts.map +1 -0
- package/dist/core/workflow/verify/completeness.js +172 -0
- package/dist/core/workflow/verify/completeness.js.map +1 -0
- package/dist/core/workflow/verify/correctness.d.ts +38 -0
- package/dist/core/workflow/verify/correctness.d.ts.map +1 -0
- package/dist/core/workflow/verify/correctness.js +352 -0
- package/dist/core/workflow/verify/correctness.js.map +1 -0
- package/dist/core/workflow/verify/index.d.ts +7 -0
- package/dist/core/workflow/verify/index.d.ts.map +1 -0
- package/dist/core/workflow/verify/index.js +6 -0
- package/dist/core/workflow/verify/index.js.map +1 -0
- package/dist/core/workflow/verify/vault-integrity.d.ts +45 -0
- package/dist/core/workflow/verify/vault-integrity.d.ts.map +1 -0
- package/dist/core/workflow/verify/vault-integrity.js +141 -0
- package/dist/core/workflow/verify/vault-integrity.js.map +1 -0
- package/dist/core/workflow/verify/verify.d.ts +23 -0
- package/dist/core/workflow/verify/verify.d.ts.map +1 -0
- package/dist/core/workflow/verify/verify.js +122 -0
- package/dist/core/workflow/verify/verify.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/types/delta.d.ts +17 -0
- package/dist/types/delta.d.ts.map +1 -0
- package/dist/types/delta.js +2 -0
- package/dist/types/delta.js.map +1 -0
- package/dist/types/frontmatter.d.ts +51 -0
- package/dist/types/frontmatter.d.ts.map +1 -0
- package/dist/types/frontmatter.js +2 -0
- package/dist/types/frontmatter.js.map +1 -0
- package/dist/types/index-record.d.ts +46 -0
- package/dist/types/index-record.d.ts.map +1 -0
- package/dist/types/index-record.js +2 -0
- package/dist/types/index-record.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/next-action.d.ts +10 -0
- package/dist/types/next-action.d.ts.map +1 -0
- package/dist/types/next-action.js +2 -0
- package/dist/types/next-action.js.map +1 -0
- package/dist/types/notes.d.ts +9 -0
- package/dist/types/notes.d.ts.map +1 -0
- package/dist/types/notes.js +2 -0
- package/dist/types/notes.js.map +1 -0
- package/dist/types/requirement.d.ts +19 -0
- package/dist/types/requirement.d.ts.map +1 -0
- package/dist/types/requirement.js +2 -0
- package/dist/types/requirement.js.map +1 -0
- package/dist/types/retrieval.d.ts +32 -0
- package/dist/types/retrieval.d.ts.map +1 -0
- package/dist/types/retrieval.js +2 -0
- package/dist/types/retrieval.js.map +1 -0
- package/dist/types/sequencing.d.ts +83 -0
- package/dist/types/sequencing.d.ts.map +1 -0
- package/dist/types/sequencing.js +2 -0
- package/dist/types/sequencing.js.map +1 -0
- package/dist/types/task.d.ts +7 -0
- package/dist/types/task.d.ts.map +1 -0
- package/dist/types/task.js +2 -0
- package/dist/types/task.js.map +1 -0
- package/dist/types/verify.d.ts +23 -0
- package/dist/types/verify.d.ts.map +1 -0
- package/dist/types/verify.js +2 -0
- package/dist/types/verify.js.map +1 -0
- package/dist/utils/hash.d.ts +6 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +9 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/id-generator.d.ts +17 -0
- package/dist/utils/id-generator.d.ts.map +1 -0
- package/dist/utils/id-generator.js +24 -0
- package/dist/utils/id-generator.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/normalize.d.ts +11 -0
- package/dist/utils/normalize.d.ts.map +1 -0
- package/dist/utils/normalize.js +15 -0
- package/dist/utils/normalize.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detect duplicate ids among raw records.
|
|
3
|
+
*/
|
|
4
|
+
export function detectDuplicateIds(records) {
|
|
5
|
+
const idToPaths = new Map();
|
|
6
|
+
for (const record of records) {
|
|
7
|
+
const paths = idToPaths.get(record.id) ?? [];
|
|
8
|
+
paths.push(record.path);
|
|
9
|
+
idToPaths.set(record.id, paths);
|
|
10
|
+
}
|
|
11
|
+
const duplicates = new Map();
|
|
12
|
+
for (const [id, paths] of idToPaths) {
|
|
13
|
+
if (paths.length > 1) {
|
|
14
|
+
duplicates.set(id, paths);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return duplicates;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Build canonical IndexWarning[] from all detected issues.
|
|
21
|
+
*/
|
|
22
|
+
export function buildWarnings(duplicateIds, linkErrors, missingIds, invalidFrontmatterPaths, schemaVersion) {
|
|
23
|
+
const warnings = [];
|
|
24
|
+
// Invalid frontmatter
|
|
25
|
+
for (const path of invalidFrontmatterPaths) {
|
|
26
|
+
warnings.push({
|
|
27
|
+
type: 'invalid_frontmatter',
|
|
28
|
+
note_path: path,
|
|
29
|
+
message: 'File has frontmatter delimiters but YAML could not be parsed',
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
// Duplicate IDs
|
|
33
|
+
for (const [id, paths] of duplicateIds) {
|
|
34
|
+
for (const path of paths) {
|
|
35
|
+
warnings.push({
|
|
36
|
+
type: 'duplicate_id',
|
|
37
|
+
note_path: path,
|
|
38
|
+
message: `Duplicate id "${id}" also found in: ${paths.filter(p => p !== path).join(', ')}`,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Unresolved wikilinks
|
|
43
|
+
for (const error of linkErrors) {
|
|
44
|
+
if (error.error === 'no_match') {
|
|
45
|
+
warnings.push({
|
|
46
|
+
type: 'unresolved_wikilink',
|
|
47
|
+
note_path: error.source_path,
|
|
48
|
+
message: `Unresolved wikilink "${error.raw_link}"`,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
else if (error.error === 'ambiguous_alias') {
|
|
52
|
+
warnings.push({
|
|
53
|
+
type: 'ambiguous_alias',
|
|
54
|
+
note_path: error.source_path,
|
|
55
|
+
message: `Ambiguous alias "${error.raw_link}", candidates: ${error.candidates?.join(', ')}`,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// Missing IDs
|
|
60
|
+
for (const path of missingIds) {
|
|
61
|
+
warnings.push({
|
|
62
|
+
type: 'missing_id',
|
|
63
|
+
note_path: path,
|
|
64
|
+
message: 'Typed note has no id field',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
// Schema mismatch
|
|
68
|
+
if (schemaVersion === 'unknown') {
|
|
69
|
+
warnings.push({
|
|
70
|
+
type: 'schema_mismatch',
|
|
71
|
+
note_path: 'wiki/00-meta/schema.md',
|
|
72
|
+
message: 'No schema.md found or schema_version is missing',
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return warnings;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/core/index/validate.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAuC;IAEvC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAoB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
+
* Convert a single OpenSpec change into a Change note.
|
|
4
|
+
* Optionally produces a Decision note if design.md has significant content.
|
|
5
|
+
*/
|
|
6
|
+
export declare function convertChange(change: ScannedChange, featureRefs: Map<string, string>, systemRefMap: Map<string, string>): {
|
|
7
|
+
changeNote: ConversionResult;
|
|
8
|
+
decisionNote: ConversionResult | null;
|
|
9
|
+
warnings: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Convert all changes into Change notes (and optional Decision notes).
|
|
13
|
+
*/
|
|
14
|
+
export declare function convertAllChanges(changes: ScannedChange[], featureRefs: Map<string, string>, systemRefMap: Map<string, string>): {
|
|
15
|
+
results: ConversionResult[];
|
|
16
|
+
warnings: string[];
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=change-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-converter.d.ts","sourceRoot":"","sources":["../../../src/core/migrate/change-converter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAQlE;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC;IAAE,UAAU,EAAE,gBAAgB,CAAC;IAAC,YAAY,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CA0E7F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,aAAa,EAAE,EACxB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC;IAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAgBrD"}
|
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts OpenSpec changes into open-wiki-spec Change notes and Decision notes.
|
|
3
|
+
*/
|
|
4
|
+
import * as path from 'node:path';
|
|
5
|
+
const WHY_SECTION_RE = /^##\s+Why$/m;
|
|
6
|
+
const WHAT_CHANGES_RE = /^##\s+What\s+Changes$/m;
|
|
7
|
+
const IMPACT_RE = /^##\s+Impact$/m;
|
|
8
|
+
const CAPABILITIES_RE = /^##\s+Capabilities$/m;
|
|
9
|
+
const TASK_LINE_RE = /^-\s+\[([xX ])\]\s+(.+)$/;
|
|
10
|
+
/**
|
|
11
|
+
* Convert a single OpenSpec change into a Change note.
|
|
12
|
+
* Optionally produces a Decision note if design.md has significant content.
|
|
13
|
+
*/
|
|
14
|
+
export function convertChange(change, featureRefs, systemRefMap) {
|
|
15
|
+
const warnings = [];
|
|
16
|
+
const id = change.name;
|
|
17
|
+
const title = formatChangeTitle(change.name);
|
|
18
|
+
// Extract proposal sections
|
|
19
|
+
const why = extractSection(change.proposal ?? '', WHY_SECTION_RE) || '<!-- Why not specified in original proposal -->';
|
|
20
|
+
const whatChanges = extractSection(change.proposal ?? '', WHAT_CHANGES_RE);
|
|
21
|
+
const impactText = extractSection(change.proposal ?? '', IMPACT_RE);
|
|
22
|
+
const nonGoals = extractSection(change.proposal ?? '', /^##\s+Non-?goals$/im);
|
|
23
|
+
// Determine status
|
|
24
|
+
const status = change.archived ? 'applied' : 'proposed';
|
|
25
|
+
// Determine created_at
|
|
26
|
+
const createdAt = resolveCreatedAt(change);
|
|
27
|
+
// Parse capabilities from proposal for feature linking
|
|
28
|
+
const capabilities = parseCapabilities(change.proposal ?? '');
|
|
29
|
+
// Build feature reference
|
|
30
|
+
const featureRef = resolveFeatureRef(change, featureRefs, capabilities, warnings);
|
|
31
|
+
// Build delta summary from delta specs
|
|
32
|
+
const deltaSummary = buildDeltaSummary(change, featureRefs);
|
|
33
|
+
// Extract tasks from tasks.md
|
|
34
|
+
const tasksBlock = buildTasksBlock(change.tasks);
|
|
35
|
+
// Build design approach from design.md
|
|
36
|
+
const designApproach = change.design
|
|
37
|
+
? extractDesignSummary(change.design)
|
|
38
|
+
: '<!-- No design document in original change -->';
|
|
39
|
+
// Build touches refs (from delta specs, metadata, and capabilities)
|
|
40
|
+
const touchesRefs = buildTouchesRefs(change, featureRefs, capabilities);
|
|
41
|
+
// Build depends_on
|
|
42
|
+
const dependsOn = change.metadata?.dependsOn?.map(d => `"[[${d}]]"`) ?? [];
|
|
43
|
+
// Build system refs
|
|
44
|
+
const systemRefs = inferSystemRefsFromChange(change, featureRefs, systemRefMap);
|
|
45
|
+
const changeContent = buildChangeNote({
|
|
46
|
+
id,
|
|
47
|
+
title,
|
|
48
|
+
status,
|
|
49
|
+
createdAt,
|
|
50
|
+
featureRef,
|
|
51
|
+
dependsOn,
|
|
52
|
+
touchesRefs,
|
|
53
|
+
systemRefs,
|
|
54
|
+
why,
|
|
55
|
+
deltaSummary,
|
|
56
|
+
proposedUpdate: buildProposedUpdate(whatChanges, nonGoals),
|
|
57
|
+
designApproach,
|
|
58
|
+
impactText: impactText || '<!-- Impact not specified -->',
|
|
59
|
+
tasksBlock,
|
|
60
|
+
});
|
|
61
|
+
const targetDir = change.archived ? path.join('wiki', '99-archive') : path.join('wiki', '04-changes');
|
|
62
|
+
const changeNote = {
|
|
63
|
+
targetPath: path.join(targetDir, `${id}.md`),
|
|
64
|
+
content: changeContent,
|
|
65
|
+
sourceDescription: `openspec/changes/${change.archived ? 'archive/' : ''}${change.name}/`,
|
|
66
|
+
};
|
|
67
|
+
// Build decision note if design.md is substantial
|
|
68
|
+
let decisionNote = null;
|
|
69
|
+
if (change.design && isSubstantialDesign(change.design)) {
|
|
70
|
+
decisionNote = buildDecisionNote(change);
|
|
71
|
+
}
|
|
72
|
+
return { changeNote, decisionNote, warnings };
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Convert all changes into Change notes (and optional Decision notes).
|
|
76
|
+
*/
|
|
77
|
+
export function convertAllChanges(changes, featureRefs, systemRefMap) {
|
|
78
|
+
const results = [];
|
|
79
|
+
const warnings = [];
|
|
80
|
+
for (const change of changes) {
|
|
81
|
+
try {
|
|
82
|
+
const { changeNote, decisionNote, warnings: cw } = convertChange(change, featureRefs, systemRefMap);
|
|
83
|
+
results.push(changeNote);
|
|
84
|
+
if (decisionNote)
|
|
85
|
+
results.push(decisionNote);
|
|
86
|
+
warnings.push(...cw);
|
|
87
|
+
}
|
|
88
|
+
catch (err) {
|
|
89
|
+
warnings.push(`Failed to convert change ${change.name}: ${err.message}`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return { results, warnings };
|
|
93
|
+
}
|
|
94
|
+
function buildChangeNote(opts) {
|
|
95
|
+
const dependsOnYaml = opts.dependsOn.length > 0
|
|
96
|
+
? opts.dependsOn.map(d => ` - ${d}`).join('\n')
|
|
97
|
+
: '';
|
|
98
|
+
const touchesYaml = opts.touchesRefs.length > 0
|
|
99
|
+
? opts.touchesRefs.map(t => ` - ${t}`).join('\n')
|
|
100
|
+
: '';
|
|
101
|
+
const systemsYaml = opts.systemRefs.length > 0
|
|
102
|
+
? opts.systemRefs.map(s => ` - ${s}`).join('\n')
|
|
103
|
+
: ' - "[[default-system]]"';
|
|
104
|
+
return `---
|
|
105
|
+
type: change
|
|
106
|
+
id: ${opts.id}
|
|
107
|
+
status: ${opts.status}
|
|
108
|
+
created_at: "${opts.createdAt}"
|
|
109
|
+
feature: "${opts.featureRef}"
|
|
110
|
+
depends_on:
|
|
111
|
+
${dependsOnYaml || ' []'}
|
|
112
|
+
touches:
|
|
113
|
+
${touchesYaml || ' []'}
|
|
114
|
+
systems:
|
|
115
|
+
${systemsYaml}
|
|
116
|
+
sources: []
|
|
117
|
+
decisions: []
|
|
118
|
+
tags:
|
|
119
|
+
- change
|
|
120
|
+
- migrated
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
# Change: ${opts.title}
|
|
124
|
+
|
|
125
|
+
## Why
|
|
126
|
+
|
|
127
|
+
${opts.why}
|
|
128
|
+
|
|
129
|
+
## Delta Summary
|
|
130
|
+
${opts.deltaSummary || '<!-- No delta specs found in original change -->'}
|
|
131
|
+
|
|
132
|
+
## Proposed Update
|
|
133
|
+
|
|
134
|
+
${opts.proposedUpdate}
|
|
135
|
+
|
|
136
|
+
## Design Approach
|
|
137
|
+
|
|
138
|
+
${opts.designApproach}
|
|
139
|
+
|
|
140
|
+
## Impact
|
|
141
|
+
|
|
142
|
+
${opts.impactText}
|
|
143
|
+
|
|
144
|
+
## Tasks
|
|
145
|
+
${opts.tasksBlock || '- [ ] Review migrated change'}
|
|
146
|
+
|
|
147
|
+
## Validation
|
|
148
|
+
|
|
149
|
+
<!-- Validation criteria not specified in original change -->
|
|
150
|
+
|
|
151
|
+
## Status Notes
|
|
152
|
+
|
|
153
|
+
<!-- Migrated from OpenSpec -->
|
|
154
|
+
`;
|
|
155
|
+
}
|
|
156
|
+
function buildDecisionNote(change) {
|
|
157
|
+
const id = `decision-${change.name}`;
|
|
158
|
+
const title = formatChangeTitle(change.name);
|
|
159
|
+
const context = extractSection(change.design ?? '', /^##\s+Context$/m) || '<!-- Context from design.md -->';
|
|
160
|
+
const decisions = extractSection(change.design ?? '', /^##\s+Decisions?$/m) || change.design || '';
|
|
161
|
+
const goals = extractSection(change.design ?? '', /^##\s+Goals/m);
|
|
162
|
+
const changeTitle = `Change: ${title}`;
|
|
163
|
+
const content = `---
|
|
164
|
+
type: decision
|
|
165
|
+
id: ${id}
|
|
166
|
+
status: active
|
|
167
|
+
features: []
|
|
168
|
+
changes:
|
|
169
|
+
- "[[${changeTitle}]]"
|
|
170
|
+
tags:
|
|
171
|
+
- decision
|
|
172
|
+
- migrated
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
# Decision: ${title}
|
|
176
|
+
|
|
177
|
+
## Context
|
|
178
|
+
|
|
179
|
+
${context}
|
|
180
|
+
|
|
181
|
+
## Options Considered
|
|
182
|
+
|
|
183
|
+
${goals ? goals : '<!-- Options not explicitly documented -->'}
|
|
184
|
+
|
|
185
|
+
## Decision
|
|
186
|
+
|
|
187
|
+
${decisions}
|
|
188
|
+
|
|
189
|
+
## Consequences
|
|
190
|
+
|
|
191
|
+
<!-- Consequences not explicitly documented in original design -->
|
|
192
|
+
|
|
193
|
+
## Related Notes
|
|
194
|
+
`;
|
|
195
|
+
return {
|
|
196
|
+
targetPath: path.join('wiki', '05-decisions', `${id}.md`),
|
|
197
|
+
content,
|
|
198
|
+
sourceDescription: `openspec/changes/${change.archived ? 'archive/' : ''}${change.name}/design.md`,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function buildProposedUpdate(whatChanges, nonGoals) {
|
|
202
|
+
const parts = [];
|
|
203
|
+
if (whatChanges)
|
|
204
|
+
parts.push(whatChanges);
|
|
205
|
+
if (nonGoals)
|
|
206
|
+
parts.push(`### Non-goals\n\n${nonGoals}`);
|
|
207
|
+
return parts.join('\n\n') || '<!-- See delta summary for details -->';
|
|
208
|
+
}
|
|
209
|
+
function extractSection(content, sectionRe) {
|
|
210
|
+
const match = content.match(sectionRe);
|
|
211
|
+
if (!match)
|
|
212
|
+
return '';
|
|
213
|
+
const startIdx = match.index + match[0].length;
|
|
214
|
+
const remaining = content.slice(startIdx);
|
|
215
|
+
const nextH2 = remaining.match(/\n## /);
|
|
216
|
+
const sectionContent = nextH2 ? remaining.slice(0, nextH2.index) : remaining;
|
|
217
|
+
return sectionContent.trim();
|
|
218
|
+
}
|
|
219
|
+
function resolveCreatedAt(change) {
|
|
220
|
+
// Try metadata first
|
|
221
|
+
if (change.metadata?.created) {
|
|
222
|
+
return change.metadata.created;
|
|
223
|
+
}
|
|
224
|
+
// Try archived date prefix (e.g., "2025-01-11-add-update-command")
|
|
225
|
+
if (change.archived) {
|
|
226
|
+
const dateMatch = change.name.match(/^(\d{4}-\d{2}-\d{2})-/);
|
|
227
|
+
if (dateMatch)
|
|
228
|
+
return dateMatch[1];
|
|
229
|
+
}
|
|
230
|
+
// Default to today
|
|
231
|
+
return new Date().toISOString().slice(0, 10);
|
|
232
|
+
}
|
|
233
|
+
function resolveFeatureRef(change, featureRefs, capabilities, warnings) {
|
|
234
|
+
// Try to match from delta specs first (most precise)
|
|
235
|
+
if (change.deltaSpecs.length > 0) {
|
|
236
|
+
const firstCapability = change.deltaSpecs[0].capability;
|
|
237
|
+
const ref = featureRefs.get(firstCapability);
|
|
238
|
+
if (ref)
|
|
239
|
+
return ref;
|
|
240
|
+
}
|
|
241
|
+
// Try modified capabilities from proposal (indicates the primary feature being changed)
|
|
242
|
+
for (const cap of capabilities.modifiedCapabilities) {
|
|
243
|
+
const ref = featureRefs.get(cap);
|
|
244
|
+
if (ref)
|
|
245
|
+
return ref;
|
|
246
|
+
}
|
|
247
|
+
// Try new capabilities from proposal
|
|
248
|
+
for (const cap of capabilities.newCapabilities) {
|
|
249
|
+
const ref = featureRefs.get(cap);
|
|
250
|
+
if (ref)
|
|
251
|
+
return ref;
|
|
252
|
+
}
|
|
253
|
+
// Try to match from touches metadata
|
|
254
|
+
if (change.metadata?.touches && change.metadata.touches.length > 0) {
|
|
255
|
+
const firstTouch = change.metadata.touches[0];
|
|
256
|
+
const ref = featureRefs.get(firstTouch);
|
|
257
|
+
if (ref)
|
|
258
|
+
return ref;
|
|
259
|
+
}
|
|
260
|
+
// Try to infer from change name
|
|
261
|
+
for (const [capability, ref] of featureRefs) {
|
|
262
|
+
if (change.name.includes(capability)) {
|
|
263
|
+
return ref;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
warnings.push(`Could not resolve feature reference for change ${change.name}, using placeholder`);
|
|
267
|
+
return '[[unknown-feature]]';
|
|
268
|
+
}
|
|
269
|
+
function buildDeltaSummary(change, featureRefs) {
|
|
270
|
+
if (change.deltaSpecs.length === 0)
|
|
271
|
+
return '';
|
|
272
|
+
const lines = [];
|
|
273
|
+
for (const delta of change.deltaSpecs) {
|
|
274
|
+
const ref = featureRefs.get(delta.capability) ?? `[[${delta.capability}]]`;
|
|
275
|
+
const deltaEntries = parseDeltaSpecContent(delta.content, ref);
|
|
276
|
+
if (deltaEntries.length > 0) {
|
|
277
|
+
lines.push(...deltaEntries);
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
// Fallback: generic entry if no structured content found
|
|
281
|
+
lines.push(`- MODIFIED section "Migrated Content" in ${ref} [base: n/a]`);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return lines.join('\n');
|
|
285
|
+
}
|
|
286
|
+
const DELTA_SECTION_HEADING_RE = /^##\s+(ADDED|MODIFIED|REMOVED)\s+Requirements$/gm;
|
|
287
|
+
const DELTA_REQ_HEADING_RE = /^###\s+Requirement:\s*(.+)$/;
|
|
288
|
+
/**
|
|
289
|
+
* Parse a delta spec file's content to extract structured delta summary entries.
|
|
290
|
+
* Real delta specs use headings like:
|
|
291
|
+
* ## ADDED Requirements
|
|
292
|
+
* ### Requirement: Some Name
|
|
293
|
+
* ## MODIFIED Requirements
|
|
294
|
+
* ### Requirement: Other Name
|
|
295
|
+
*/
|
|
296
|
+
function parseDeltaSpecContent(content, featureRef) {
|
|
297
|
+
const entries = [];
|
|
298
|
+
const lines = content.split('\n');
|
|
299
|
+
let currentOp = null;
|
|
300
|
+
for (const line of lines) {
|
|
301
|
+
// Check for delta operation heading
|
|
302
|
+
const opMatch = line.match(/^##\s+(ADDED|MODIFIED|REMOVED)\s+Requirements$/);
|
|
303
|
+
if (opMatch) {
|
|
304
|
+
currentOp = opMatch[1];
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
// Check for requirement heading under a delta op
|
|
308
|
+
if (currentOp) {
|
|
309
|
+
const reqMatch = line.match(DELTA_REQ_HEADING_RE);
|
|
310
|
+
if (reqMatch) {
|
|
311
|
+
const reqName = reqMatch[1].trim();
|
|
312
|
+
const preposition = currentOp === 'ADDED' ? 'to' : currentOp === 'REMOVED' ? 'from' : 'in';
|
|
313
|
+
const baseFP = currentOp === 'ADDED' ? ' [base: n/a]' : ' [base: migrated]';
|
|
314
|
+
entries.push(`- ${currentOp} requirement "${reqName}" ${preposition} ${featureRef}${baseFP}`);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
// Reset op if we hit a non-delta H2
|
|
318
|
+
if (line.match(/^##\s+/) && !line.match(/^##\s+(ADDED|MODIFIED|REMOVED)\s+Requirements$/)) {
|
|
319
|
+
currentOp = null;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return entries;
|
|
323
|
+
}
|
|
324
|
+
function buildTasksBlock(tasksContent) {
|
|
325
|
+
if (!tasksContent)
|
|
326
|
+
return '';
|
|
327
|
+
const lines = tasksContent.split('\n');
|
|
328
|
+
const tasks = [];
|
|
329
|
+
for (const line of lines) {
|
|
330
|
+
const match = line.match(TASK_LINE_RE);
|
|
331
|
+
if (match) {
|
|
332
|
+
const done = match[1] !== ' ';
|
|
333
|
+
const text = match[2].trim();
|
|
334
|
+
tasks.push(`- [${done ? 'x' : ' '}] ${text}`);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return tasks.join('\n') || '- [ ] Review migrated change';
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Parse the ## Capabilities section from a proposal to extract capability names.
|
|
341
|
+
* Real format:
|
|
342
|
+
* ## Capabilities
|
|
343
|
+
* ### New Capabilities
|
|
344
|
+
* - `capability-name`: description
|
|
345
|
+
* ### Modified Capabilities
|
|
346
|
+
* - `capability-name`: description
|
|
347
|
+
*/
|
|
348
|
+
function parseCapabilities(proposal) {
|
|
349
|
+
const result = { newCapabilities: [], modifiedCapabilities: [] };
|
|
350
|
+
const capSection = extractSection(proposal, CAPABILITIES_RE);
|
|
351
|
+
if (!capSection)
|
|
352
|
+
return result;
|
|
353
|
+
const lines = capSection.split('\n');
|
|
354
|
+
let currentSubsection = null;
|
|
355
|
+
for (const line of lines) {
|
|
356
|
+
if (line.match(/^###\s+New\s+Capabilities/i)) {
|
|
357
|
+
currentSubsection = 'new';
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
if (line.match(/^###\s+Modified\s+Capabilities/i)) {
|
|
361
|
+
currentSubsection = 'modified';
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
if (currentSubsection && line.startsWith('- ')) {
|
|
365
|
+
// Extract capability name from "- `name`: description" or "- name: description"
|
|
366
|
+
const backtickMatch = line.match(/^-\s+`([^`]+)`/);
|
|
367
|
+
const plainMatch = line.match(/^-\s+(\S+?):/);
|
|
368
|
+
const capName = backtickMatch?.[1] ?? plainMatch?.[1];
|
|
369
|
+
if (capName && capName !== '_(none)_') {
|
|
370
|
+
if (currentSubsection === 'new') {
|
|
371
|
+
result.newCapabilities.push(capName);
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
result.modifiedCapabilities.push(capName);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return result;
|
|
380
|
+
}
|
|
381
|
+
function buildTouchesRefs(change, featureRefs, capabilities) {
|
|
382
|
+
const refs = [];
|
|
383
|
+
const seen = new Set();
|
|
384
|
+
// From delta specs
|
|
385
|
+
for (const delta of change.deltaSpecs) {
|
|
386
|
+
const ref = featureRefs.get(delta.capability);
|
|
387
|
+
if (ref && !seen.has(ref)) {
|
|
388
|
+
refs.push(`"${ref}"`);
|
|
389
|
+
seen.add(ref);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
// From capabilities section (new + modified)
|
|
393
|
+
for (const cap of [...capabilities.newCapabilities, ...capabilities.modifiedCapabilities]) {
|
|
394
|
+
const ref = featureRefs.get(cap);
|
|
395
|
+
if (ref && !seen.has(ref)) {
|
|
396
|
+
refs.push(`"${ref}"`);
|
|
397
|
+
seen.add(ref);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
// From metadata touches
|
|
401
|
+
if (change.metadata?.touches) {
|
|
402
|
+
for (const touch of change.metadata.touches) {
|
|
403
|
+
const ref = featureRefs.get(touch) ?? `"[[${touch}]]"`;
|
|
404
|
+
if (!seen.has(ref)) {
|
|
405
|
+
refs.push(ref.startsWith('"') ? ref : `"${ref}"`);
|
|
406
|
+
seen.add(ref);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return refs;
|
|
411
|
+
}
|
|
412
|
+
function inferSystemRefsFromChange(change, featureRefs, systemRefMap) {
|
|
413
|
+
const refs = [];
|
|
414
|
+
const seen = new Set();
|
|
415
|
+
// From delta specs — most precise
|
|
416
|
+
for (const delta of change.deltaSpecs) {
|
|
417
|
+
const ref = systemRefMap.get(delta.capability);
|
|
418
|
+
if (ref && !seen.has(ref)) {
|
|
419
|
+
refs.push(`"${ref}"`);
|
|
420
|
+
seen.add(ref);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
// From metadata touches
|
|
424
|
+
if (change.metadata?.touches) {
|
|
425
|
+
for (const touch of change.metadata.touches) {
|
|
426
|
+
const ref = systemRefMap.get(touch);
|
|
427
|
+
if (ref && !seen.has(ref)) {
|
|
428
|
+
refs.push(`"${ref}"`);
|
|
429
|
+
seen.add(ref);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
// From metadata provides (new capabilities)
|
|
434
|
+
if (change.metadata?.provides) {
|
|
435
|
+
for (const cap of change.metadata.provides) {
|
|
436
|
+
const ref = systemRefMap.get(cap);
|
|
437
|
+
if (ref && !seen.has(ref)) {
|
|
438
|
+
refs.push(`"${ref}"`);
|
|
439
|
+
seen.add(ref);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return refs;
|
|
444
|
+
}
|
|
445
|
+
function extractDesignSummary(design) {
|
|
446
|
+
// Extract the main content, trying Context or Decisions sections first
|
|
447
|
+
const context = extractSection(design, /^##\s+Context$/m);
|
|
448
|
+
const decisions = extractSection(design, /^##\s+Decisions?$/m);
|
|
449
|
+
const goals = extractSection(design, /^##\s+Goals/m);
|
|
450
|
+
const parts = [];
|
|
451
|
+
if (context)
|
|
452
|
+
parts.push(context);
|
|
453
|
+
if (goals)
|
|
454
|
+
parts.push(goals);
|
|
455
|
+
if (decisions)
|
|
456
|
+
parts.push(decisions);
|
|
457
|
+
if (parts.length > 0)
|
|
458
|
+
return parts.join('\n\n');
|
|
459
|
+
// Fallback: return the whole design content without H1
|
|
460
|
+
return design.replace(/^#\s+.+\n*/m, '').trim() || '<!-- Design content could not be extracted -->';
|
|
461
|
+
}
|
|
462
|
+
function isSubstantialDesign(design) {
|
|
463
|
+
// Consider a design substantial if it has more than 200 chars of actual content
|
|
464
|
+
const stripped = design.replace(/^#.*$/gm, '').replace(/<!--.*?-->/gs, '').trim();
|
|
465
|
+
return stripped.length > 200;
|
|
466
|
+
}
|
|
467
|
+
function formatChangeTitle(name) {
|
|
468
|
+
// Remove date prefix for archived changes
|
|
469
|
+
const withoutDate = name.replace(/^\d{4}-\d{2}-\d{2}-/, '');
|
|
470
|
+
return withoutDate
|
|
471
|
+
.split('-')
|
|
472
|
+
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
473
|
+
.join(' ');
|
|
474
|
+
}
|
|
475
|
+
//# sourceMappingURL=change-converter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-converter.js","sourceRoot":"","sources":["../../../src/core/migrate/change-converter.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,MAAM,SAAS,GAAG,gBAAgB,CAAC;AACnC,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAC/C,MAAM,YAAY,GAAG,0BAA0B,CAAC;AAEhD;;;GAGG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAqB,EACrB,WAAgC,EAChC,YAAiC;I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QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAClF,OAAO,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC;AAC/B,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY;IACrC,0CAA0C;IAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IAC5D,OAAO,WAAW;SACf,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACzD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { scanOpenSpec, findOpenSpecDir } from './scanner.js';
|
|
2
|
+
export { convertSpec, convertAllSpecs } from './spec-converter.js';
|
|
3
|
+
export { convertChange, convertAllChanges } from './change-converter.js';
|
|
4
|
+
export { convertConfigToSource } from './source-converter.js';
|
|
5
|
+
export { inferSystems, convertSystems, buildSystemRefMap, buildFeatureRefMap } from './system-inferrer.js';
|
|
6
|
+
export { planMigration, executeMigration, migrate } from './migrate.js';
|
|
7
|
+
export type { MigrateOptions, MigrationPlan, MigrationResult, MigrationStep, ConversionResult, ScanResult, ScannedSpec, ScannedChange, OpenSpecConfig, OpenSpecChangeMetadata, } from './types.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/migrate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACxE,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { scanOpenSpec, findOpenSpecDir } from './scanner.js';
|
|
2
|
+
export { convertSpec, convertAllSpecs } from './spec-converter.js';
|
|
3
|
+
export { convertChange, convertAllChanges } from './change-converter.js';
|
|
4
|
+
export { convertConfigToSource } from './source-converter.js';
|
|
5
|
+
export { inferSystems, convertSystems, buildSystemRefMap, buildFeatureRefMap } from './system-inferrer.js';
|
|
6
|
+
export { planMigration, executeMigration, migrate } from './migrate.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/migrate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MigrateOptions, MigrationPlan, MigrationResult } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Plan a migration from OpenSpec to open-wiki-spec.
|
|
4
|
+
* Does not write any files - just produces a plan.
|
|
5
|
+
*/
|
|
6
|
+
export declare function planMigration(options: MigrateOptions): MigrationPlan;
|
|
7
|
+
/**
|
|
8
|
+
* Execute a migration plan: init vault structure and write all files.
|
|
9
|
+
*/
|
|
10
|
+
export declare function executeMigration(plan: MigrationPlan, dryRun?: boolean): Promise<MigrationResult>;
|
|
11
|
+
/**
|
|
12
|
+
* Run the full migration: plan and execute.
|
|
13
|
+
*/
|
|
14
|
+
export declare function migrate(options: MigrateOptions): Promise<MigrationResult>;
|
|
15
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/core/migrate/migrate.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,eAAe,EAGhB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CAuGpE;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,aAAa,EACnB,MAAM,GAAE,OAAe,GACtB,OAAO,CAAC,eAAe,CAAC,CA4C1B;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAG/E"}
|