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,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if Design Approach content should be promoted to a Decision note.
|
|
3
|
+
* Implements the duplication prevention rule from overview.md section 14.2.
|
|
4
|
+
*
|
|
5
|
+
* Any ONE criterion is sufficient to suggest promotion.
|
|
6
|
+
*/
|
|
7
|
+
export function checkDecisionPromotion(changeRecord, analysis) {
|
|
8
|
+
const designSection = analysis.sections.get('Design Approach');
|
|
9
|
+
if (!designSection || designSection.isEmpty)
|
|
10
|
+
return null;
|
|
11
|
+
const content = designSection.content;
|
|
12
|
+
const reasons = {
|
|
13
|
+
affectsMultiple: (changeRecord.touches?.length ?? 0) > 1 ||
|
|
14
|
+
countWikilinkPrefix(content, 'Feature:') > 1 ||
|
|
15
|
+
countWikilinkPrefix(content, 'System:') > 1,
|
|
16
|
+
hardToReverse: /\b(migration|irreversible|cannot revert|breaking change|data loss|schema change|backward compatibility)\b/i.test(content),
|
|
17
|
+
needsConsensus: /\b(adr|team decision|consensus|architectural decision|tech lead|design review)\b/i.test(content),
|
|
18
|
+
durableRationale: /\b(chose|decided|rationale|trade-?off|alternative considered|versus|vs\.?|long-term|future-proof)\b/i.test(content),
|
|
19
|
+
alreadyLinked: countWikilinkPrefix(content, 'Decision:') > 0,
|
|
20
|
+
};
|
|
21
|
+
// Already linked to a Decision: no promotion needed
|
|
22
|
+
if (reasons.alreadyLinked)
|
|
23
|
+
return null;
|
|
24
|
+
if (reasons.affectsMultiple ||
|
|
25
|
+
reasons.hardToReverse ||
|
|
26
|
+
reasons.needsConsensus ||
|
|
27
|
+
reasons.durableRationale) {
|
|
28
|
+
return { content, reasons };
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
function countWikilinkPrefix(content, prefix) {
|
|
33
|
+
const regex = new RegExp(`\\[\\[${prefix.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`, 'g');
|
|
34
|
+
return (content.match(regex) ?? []).length;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=decision-promoter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decision-promoter.js","sourceRoot":"","sources":["../../../../src/core/workflow/continue/decision-promoter.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,YAAyB,EACzB,QAAyB;IAEzB,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC/D,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAEzD,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC;IAEtC,MAAM,OAAO,GAAG;QACd,eAAe,EACb,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;YACvC,mBAAmB,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC;YAC5C,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC;QAE7C,aAAa,EACX,4GAA4G,CAAC,IAAI,CAAC,OAAO,CAAC;QAE5H,cAAc,EACZ,mFAAmF,CAAC,IAAI,CAAC,OAAO,CAAC;QAEnG,gBAAgB,EACd,sGAAsG,CAAC,IAAI,CAAC,OAAO,CAAC;QAEtH,aAAa,EAAE,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC;KAC7D,CAAC;IAEF,oDAAoD;IACpD,IAAI,OAAO,CAAC,aAAa;QAAE,OAAO,IAAI,CAAC;IAEvC,IACE,OAAO,CAAC,eAAe;QACvB,OAAO,CAAC,aAAa;QACrB,OAAO,CAAC,cAAc;QACtB,OAAO,CAAC,gBAAgB,EACxB,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC9B,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAe,EAAE,MAAc;IAC1D,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,SAAS,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACxF,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { continueChange } from './continue.js';
|
|
2
|
+
export { analyzeChangeSections, checkPlannedPrerequisites, buildSectionTarget } from './section-checker.js';
|
|
3
|
+
export { nextAction, toPublicNextAction } from './next-action.js';
|
|
4
|
+
export { checkDecisionPromotion } from './decision-promoter.js';
|
|
5
|
+
export type { SectionAnalysis, SectionStatus, SectionTarget, TaskTarget, InternalNextAction, GatheredContext, ChangeContext, LinkedNoteContext, ContinueResult, ChangeSelectionCandidate, ContinueDeps, } from './types.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/continue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,YAAY,GACb,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { continueChange } from './continue.js';
|
|
2
|
+
export { analyzeChangeSections, checkPlannedPrerequisites, buildSectionTarget } from './section-checker.js';
|
|
3
|
+
export { nextAction, toPublicNextAction } from './next-action.js';
|
|
4
|
+
export { checkDecisionPromotion } from './decision-promoter.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/workflow/continue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IndexRecord, VaultIndex } from '../../../types/index-record.js';
|
|
2
|
+
import type { NextAction as PublicNextAction } from '../../../types/next-action.js';
|
|
3
|
+
import type { InternalNextAction, SectionAnalysis, GatheredContext, ContinueDeps } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Compute the deterministic next action for a Change.
|
|
6
|
+
* Implements the exact pseudocode from overview.md section 15.
|
|
7
|
+
*/
|
|
8
|
+
export declare function nextAction(changeRecord: IndexRecord, analysis: SectionAnalysis, index: VaultIndex, context: GatheredContext, deps: ContinueDeps): InternalNextAction;
|
|
9
|
+
/**
|
|
10
|
+
* Convert internal rich NextAction to the public flat NextAction.
|
|
11
|
+
*/
|
|
12
|
+
export declare function toPublicNextAction(internal: InternalNextAction): PublicNextAction;
|
|
13
|
+
//# sourceMappingURL=next-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-action.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/continue/next-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGrG;;;GAGG;AACH,wBAAgB,UAAU,CACxB,YAAY,EAAE,WAAW,EACzB,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,YAAY,GACjB,kBAAkB,CA8DpB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,gBAAgB,CAiBjF"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { checkPlannedPrerequisites, buildSectionTarget } from './section-checker.js';
|
|
2
|
+
/**
|
|
3
|
+
* Compute the deterministic next action for a Change.
|
|
4
|
+
* Implements the exact pseudocode from overview.md section 15.
|
|
5
|
+
*/
|
|
6
|
+
export function nextAction(changeRecord, analysis, index, context, deps) {
|
|
7
|
+
const status = changeRecord.status;
|
|
8
|
+
if (status === 'proposed') {
|
|
9
|
+
const { missingHard, softWarnings } = checkPlannedPrerequisites(analysis);
|
|
10
|
+
context.softWarnings.push(...softWarnings);
|
|
11
|
+
if (missingHard.length > 0) {
|
|
12
|
+
const target = buildSectionTarget(missingHard[0]);
|
|
13
|
+
return { action: 'fill_section', target, context };
|
|
14
|
+
}
|
|
15
|
+
return { action: 'transition', to: 'planned', context };
|
|
16
|
+
}
|
|
17
|
+
if (status === 'planned') {
|
|
18
|
+
const unresolvedDeps = checkDependsOn(changeRecord, index, deps);
|
|
19
|
+
if (unresolvedDeps.length > 0) {
|
|
20
|
+
return {
|
|
21
|
+
action: 'blocked',
|
|
22
|
+
reason: 'Depends on unresolved changes',
|
|
23
|
+
unresolvedTargets: unresolvedDeps.map((d) => d.target),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const firstUnchecked = getFirstUncheckedTaskIndex(analysis);
|
|
27
|
+
if (firstUnchecked === null) {
|
|
28
|
+
// Edge case: all tasks already checked at planned stage
|
|
29
|
+
context.softWarnings.push("All tasks are already checked at 'planned' status. " +
|
|
30
|
+
"This is unusual — tasks are normally completed during 'in_progress'. " +
|
|
31
|
+
"Transitioning to 'in_progress'; run continue again to proceed to apply.");
|
|
32
|
+
return { action: 'transition', to: 'in_progress', context };
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
action: 'start_implementation',
|
|
36
|
+
target: { index: firstUnchecked, description: getTaskDescription(analysis, firstUnchecked) },
|
|
37
|
+
context,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
if (status === 'in_progress') {
|
|
41
|
+
const firstUnchecked = getFirstUncheckedTaskIndex(analysis);
|
|
42
|
+
if (firstUnchecked !== null) {
|
|
43
|
+
return {
|
|
44
|
+
action: 'continue_task',
|
|
45
|
+
target: { index: firstUnchecked, description: getTaskDescription(analysis, firstUnchecked) },
|
|
46
|
+
context,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
// All tasks complete. Per unified ownership rules, only apply(09)
|
|
50
|
+
// may execute the in_progress -> applied transition.
|
|
51
|
+
return { action: 'ready_to_apply', context };
|
|
52
|
+
}
|
|
53
|
+
if (status === 'applied') {
|
|
54
|
+
return { action: 'verify_then_archive', context };
|
|
55
|
+
}
|
|
56
|
+
throw new Error(`Invalid Change status: "${status}"`);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Convert internal rich NextAction to the public flat NextAction.
|
|
60
|
+
*/
|
|
61
|
+
export function toPublicNextAction(internal) {
|
|
62
|
+
switch (internal.action) {
|
|
63
|
+
case 'fill_section':
|
|
64
|
+
return { action: 'fill_section', target: internal.target.sectionName };
|
|
65
|
+
case 'transition':
|
|
66
|
+
return { action: 'transition', to: internal.to };
|
|
67
|
+
case 'blocked':
|
|
68
|
+
return { action: 'blocked', reason: internal.reason, blockers: internal.unresolvedTargets };
|
|
69
|
+
case 'start_implementation':
|
|
70
|
+
return { action: 'start_implementation', target: internal.target.description };
|
|
71
|
+
case 'continue_task':
|
|
72
|
+
return { action: 'continue_task', target: internal.target.description };
|
|
73
|
+
case 'ready_to_apply':
|
|
74
|
+
return { action: 'ready_to_apply' };
|
|
75
|
+
case 'verify_then_archive':
|
|
76
|
+
return { action: 'verify_then_archive' };
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check depends_on resolution by delegating to the sequencing engine.
|
|
81
|
+
* Per ownership rules: continue(08) must call sequencing-engine, not reimplement.
|
|
82
|
+
*/
|
|
83
|
+
function checkDependsOn(changeRecord, index, deps) {
|
|
84
|
+
const dependsOn = changeRecord.depends_on ?? [];
|
|
85
|
+
if (dependsOn.length === 0)
|
|
86
|
+
return [];
|
|
87
|
+
const sequencingResult = deps.analyzeSequencing(index.records);
|
|
88
|
+
const perChange = sequencingResult.ordering.find((o) => o.id === changeRecord.id);
|
|
89
|
+
const unresolved = [];
|
|
90
|
+
if (perChange && perChange.blocked_by.length > 0) {
|
|
91
|
+
for (const depId of perChange.blocked_by) {
|
|
92
|
+
const depRecord = index.records.get(depId);
|
|
93
|
+
unresolved.push({
|
|
94
|
+
target: depId,
|
|
95
|
+
reason: depRecord
|
|
96
|
+
? `status is '${depRecord.status}', needs 'applied'`
|
|
97
|
+
: 'depends_on target not found in vault',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
for (const ooe of sequencingResult.out_of_order_errors) {
|
|
102
|
+
if (ooe.change_id === changeRecord.id) {
|
|
103
|
+
unresolved.push({
|
|
104
|
+
target: ooe.dependency_id,
|
|
105
|
+
reason: ooe.message,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
for (const cycle of sequencingResult.cycles) {
|
|
110
|
+
if (cycle.cycle.includes(changeRecord.id)) {
|
|
111
|
+
unresolved.push({
|
|
112
|
+
target: cycle.cycle.join(' -> '),
|
|
113
|
+
reason: cycle.message,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return unresolved;
|
|
118
|
+
}
|
|
119
|
+
function getFirstUncheckedTaskIndex(analysis) {
|
|
120
|
+
if (analysis.totalTasks === 0)
|
|
121
|
+
return null;
|
|
122
|
+
const idx = analysis.taskItems.findIndex((t) => !t.done);
|
|
123
|
+
return idx === -1 ? null : idx;
|
|
124
|
+
}
|
|
125
|
+
function getTaskDescription(analysis, index) {
|
|
126
|
+
const item = analysis.taskItems[index];
|
|
127
|
+
return item ? item.text : `Task ${index + 1} of ${analysis.totalTasks}`;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=next-action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-action.js","sourceRoot":"","sources":["../../../../src/core/workflow/continue/next-action.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErF;;;GAGG;AACH,MAAM,UAAU,UAAU,CACxB,YAAyB,EACzB,QAAyB,EACzB,KAAiB,EACjB,OAAwB,EACxB,IAAkB;IAElB,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;IAEnC,IAAI,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1B,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QAC1E,OAAO,CAAC,YAA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Analyze a Change note's sections for completeness.
|
|
5
|
+
*/
|
|
6
|
+
export declare function analyzeChangeSections(parsed: ParseResult): SectionAnalysis;
|
|
7
|
+
/**
|
|
8
|
+
* Check hard prerequisites for proposed -> planned transition.
|
|
9
|
+
*/
|
|
10
|
+
export declare function checkPlannedPrerequisites(analysis: SectionAnalysis): {
|
|
11
|
+
missingHard: string[];
|
|
12
|
+
softWarnings: string[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Build section guidance for the agent.
|
|
16
|
+
*/
|
|
17
|
+
export declare function buildSectionTarget(sectionName: string): SectionTarget;
|
|
18
|
+
//# sourceMappingURL=section-checker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-checker.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/continue/section-checker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAW,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAiB,aAAa,EAAE,MAAM,YAAY,CAAC;AAOhF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,WAAW,GAAG,eAAe,CAiC1E;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,eAAe,GACxB;IAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAuBnD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CAkCrE"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
const KNOWN_SECTIONS = [
|
|
2
|
+
'Why', 'Delta Summary', 'Proposed Update',
|
|
3
|
+
'Design Approach', 'Impact', 'Tasks', 'Validation', 'Status Notes',
|
|
4
|
+
];
|
|
5
|
+
/**
|
|
6
|
+
* Analyze a Change note's sections for completeness.
|
|
7
|
+
*/
|
|
8
|
+
export function analyzeChangeSections(parsed) {
|
|
9
|
+
const sections = new Map();
|
|
10
|
+
for (const name of KNOWN_SECTIONS) {
|
|
11
|
+
const section = findSectionByTitle(parsed.sections, name);
|
|
12
|
+
if (section) {
|
|
13
|
+
const isEmpty = isEffectivelyEmpty(section.content);
|
|
14
|
+
sections.set(name, {
|
|
15
|
+
exists: true,
|
|
16
|
+
isEmpty,
|
|
17
|
+
content: section.content,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
sections.set(name, {
|
|
22
|
+
exists: false,
|
|
23
|
+
isEmpty: true,
|
|
24
|
+
content: '',
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const totalTasks = parsed.tasks.length;
|
|
29
|
+
const completedTasks = parsed.tasks.filter((t) => t.done).length;
|
|
30
|
+
const deltaSummaryCount = parsed.deltaSummary.length;
|
|
31
|
+
const taskItems = parsed.tasks.map((t) => ({ text: t.text, done: t.done }));
|
|
32
|
+
return {
|
|
33
|
+
sections,
|
|
34
|
+
totalTasks,
|
|
35
|
+
completedTasks,
|
|
36
|
+
deltaSummaryCount,
|
|
37
|
+
taskItems,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check hard prerequisites for proposed -> planned transition.
|
|
42
|
+
*/
|
|
43
|
+
export function checkPlannedPrerequisites(analysis) {
|
|
44
|
+
const missingHard = [];
|
|
45
|
+
const whySection = analysis.sections.get('Why');
|
|
46
|
+
if (!whySection || whySection.isEmpty)
|
|
47
|
+
missingHard.push('Why');
|
|
48
|
+
if (analysis.deltaSummaryCount === 0)
|
|
49
|
+
missingHard.push('Delta Summary');
|
|
50
|
+
if (analysis.totalTasks === 0)
|
|
51
|
+
missingHard.push('Tasks');
|
|
52
|
+
const validationSection = analysis.sections.get('Validation');
|
|
53
|
+
if (!validationSection || validationSection.isEmpty)
|
|
54
|
+
missingHard.push('Validation');
|
|
55
|
+
const softWarnings = [];
|
|
56
|
+
const designSection = analysis.sections.get('Design Approach');
|
|
57
|
+
const designIsPresent = designSection && (!designSection.isEmpty || designSection.content.trim() === 'N/A');
|
|
58
|
+
if (!designIsPresent) {
|
|
59
|
+
softWarnings.push('Design Approach is empty. Consider adding implementation approach or marking N/A.');
|
|
60
|
+
}
|
|
61
|
+
return { missingHard, softWarnings };
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Build section guidance for the agent.
|
|
65
|
+
*/
|
|
66
|
+
export function buildSectionTarget(sectionName) {
|
|
67
|
+
const guidance = {
|
|
68
|
+
'Why': {
|
|
69
|
+
sectionName: 'Why',
|
|
70
|
+
guidance: 'Explain why this change is needed. Reference the user request, related Feature gaps, or evidence from Source notes. 1-3 paragraphs.',
|
|
71
|
+
templateHint: '## Why\n\n<Explain the motivation and business/technical need>',
|
|
72
|
+
},
|
|
73
|
+
'Delta Summary': {
|
|
74
|
+
sectionName: 'Delta Summary',
|
|
75
|
+
guidance: 'List each planned modification using the canonical format: ADDED/MODIFIED/REMOVED/RENAMED requirement "<name>" to/in/from [[Feature]]. Include [base: <content_hash>] for MODIFIED/REMOVED/RENAMED.',
|
|
76
|
+
templateHint: '## Delta Summary\n- ADDED requirement "<name>" to [[Feature: ...]]\n- MODIFIED section "Current Behavior" in [[Feature: ...]]: <what changes>',
|
|
77
|
+
},
|
|
78
|
+
'Tasks': {
|
|
79
|
+
sectionName: 'Tasks',
|
|
80
|
+
guidance: 'Break down implementation into concrete checklist items. Each task should be independently completable and verifiable.',
|
|
81
|
+
templateHint: '## Tasks\n- [ ] <first task>\n- [ ] <second task>',
|
|
82
|
+
},
|
|
83
|
+
'Validation': {
|
|
84
|
+
sectionName: 'Validation',
|
|
85
|
+
guidance: 'Describe how to verify this change is correct. Include test approach, manual verification steps, and acceptance criteria.',
|
|
86
|
+
templateHint: '## Validation\n\n<Describe verification approach>',
|
|
87
|
+
},
|
|
88
|
+
'Design Approach': {
|
|
89
|
+
sectionName: 'Design Approach',
|
|
90
|
+
guidance: 'Describe the technical approach for this change. If a major technical choice is involved, create a Decision note and link to it.',
|
|
91
|
+
templateHint: '## Design Approach\n\n<Describe implementation approach>',
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
return guidance[sectionName] ?? {
|
|
95
|
+
sectionName,
|
|
96
|
+
guidance: `Fill the "${sectionName}" section with relevant content.`,
|
|
97
|
+
templateHint: `## ${sectionName}\n\n<Content>`,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function findSectionByTitle(sections, title) {
|
|
101
|
+
for (const section of sections) {
|
|
102
|
+
if (section.title === title)
|
|
103
|
+
return section;
|
|
104
|
+
const child = findSectionByTitle(section.children, title);
|
|
105
|
+
if (child)
|
|
106
|
+
return child;
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
function isEffectivelyEmpty(content) {
|
|
111
|
+
const stripped = content.replace(/^\s+|\s+$/g, '');
|
|
112
|
+
return stripped === '';
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=section-checker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-checker.js","sourceRoot":"","sources":["../../../../src/core/workflow/continue/section-checker.ts"],"names":[],"mappings":"AAGA,MAAM,cAAc,GAAG;IACrB,KAAK,EAAE,eAAe,EAAE,iBAAiB;IACzC,iBAAiB,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc;CACnE,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAyB,CAAC;IAElD,KAAK,MAAM,IAAI,IAAI,cAAc,EAAE,CAAC;QAClC,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1D,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpD,QAAQ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AY,EAAE,0DAA0D;SACzE;KACF,CAAC;IAEF,OAAO,QAAQ,CAAC,WAAW,CAAC,IAAI;QAC9B,WAAW;QACX,QAAQ,EAAE,aAAa,WAAW,kCAAkC;QACpE,YAAY,EAAE,MAAM,WAAW,eAAe;KAC/C,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,QAAmB,EAAE,KAAa;IAC5D,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK;YAAE,OAAO,OAAO,CAAC;QAC5C,MAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAe;IACzC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACnD,OAAO,QAAQ,KAAK,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { ChangeStatus } from '../../../types/notes.js';
|
|
2
|
+
import type { NextAction as PublicNextAction } from '../../../types/next-action.js';
|
|
3
|
+
import type { IndexRecord } from '../../../types/index-record.js';
|
|
4
|
+
import type { SequencingResult } from '../../../types/sequencing.js';
|
|
5
|
+
import type { ParseResult } from '../../parser/types.js';
|
|
6
|
+
export interface SectionStatus {
|
|
7
|
+
exists: boolean;
|
|
8
|
+
isEmpty: boolean;
|
|
9
|
+
content: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SectionAnalysis {
|
|
12
|
+
sections: Map<string, SectionStatus>;
|
|
13
|
+
totalTasks: number;
|
|
14
|
+
completedTasks: number;
|
|
15
|
+
deltaSummaryCount: number;
|
|
16
|
+
/** Raw task items from the parser, preserving text and done status */
|
|
17
|
+
taskItems: Array<{
|
|
18
|
+
text: string;
|
|
19
|
+
done: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
export interface PlannedPrerequisites {
|
|
23
|
+
whyPresent: boolean;
|
|
24
|
+
deltaSummaryPresent: boolean;
|
|
25
|
+
tasksPresent: boolean;
|
|
26
|
+
validationPresent: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface SoftPrerequisites {
|
|
29
|
+
designApproachPresent: boolean;
|
|
30
|
+
decisionLinkPresent: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface SectionTarget {
|
|
33
|
+
sectionName: string;
|
|
34
|
+
guidance: string;
|
|
35
|
+
templateHint: string;
|
|
36
|
+
}
|
|
37
|
+
export interface TaskTarget {
|
|
38
|
+
index: number;
|
|
39
|
+
description: string;
|
|
40
|
+
}
|
|
41
|
+
export type InternalNextAction = {
|
|
42
|
+
action: 'fill_section';
|
|
43
|
+
target: SectionTarget;
|
|
44
|
+
context: GatheredContext;
|
|
45
|
+
} | {
|
|
46
|
+
action: 'transition';
|
|
47
|
+
to: ChangeStatus;
|
|
48
|
+
context: GatheredContext;
|
|
49
|
+
} | {
|
|
50
|
+
action: 'blocked';
|
|
51
|
+
reason: string;
|
|
52
|
+
unresolvedTargets: string[];
|
|
53
|
+
} | {
|
|
54
|
+
action: 'start_implementation';
|
|
55
|
+
target: TaskTarget;
|
|
56
|
+
context: GatheredContext;
|
|
57
|
+
} | {
|
|
58
|
+
action: 'continue_task';
|
|
59
|
+
target: TaskTarget;
|
|
60
|
+
context: GatheredContext;
|
|
61
|
+
} | {
|
|
62
|
+
action: 'ready_to_apply';
|
|
63
|
+
context: GatheredContext;
|
|
64
|
+
} | {
|
|
65
|
+
action: 'verify_then_archive';
|
|
66
|
+
context: GatheredContext;
|
|
67
|
+
};
|
|
68
|
+
export interface ChangeContext {
|
|
69
|
+
id: string;
|
|
70
|
+
title: string;
|
|
71
|
+
status: string;
|
|
72
|
+
sections: SectionAnalysis;
|
|
73
|
+
dependsOn: string[];
|
|
74
|
+
touches: string[];
|
|
75
|
+
frontmatter: Record<string, unknown>;
|
|
76
|
+
}
|
|
77
|
+
export interface LinkedNoteContext {
|
|
78
|
+
id: string;
|
|
79
|
+
title: string;
|
|
80
|
+
type: string;
|
|
81
|
+
relevantSections: Map<string, string>;
|
|
82
|
+
}
|
|
83
|
+
export interface GatheredContext {
|
|
84
|
+
change: ChangeContext;
|
|
85
|
+
features: LinkedNoteContext[];
|
|
86
|
+
decisions: LinkedNoteContext[];
|
|
87
|
+
systems: LinkedNoteContext[];
|
|
88
|
+
sources: LinkedNoteContext[];
|
|
89
|
+
softWarnings: string[];
|
|
90
|
+
}
|
|
91
|
+
export interface ContinueResult {
|
|
92
|
+
changeName: string;
|
|
93
|
+
changeId: string;
|
|
94
|
+
currentStatus: string;
|
|
95
|
+
nextAction: PublicNextAction;
|
|
96
|
+
context: GatheredContext;
|
|
97
|
+
summary: string;
|
|
98
|
+
}
|
|
99
|
+
export interface ChangeSelectionCandidate {
|
|
100
|
+
id: string;
|
|
101
|
+
title: string;
|
|
102
|
+
status: string;
|
|
103
|
+
feature: string | null;
|
|
104
|
+
lastModified: string;
|
|
105
|
+
progressSummary: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ContinueDeps {
|
|
108
|
+
analyzeSequencing: (records: Map<string, IndexRecord>) => SequencingResult;
|
|
109
|
+
parseNote: (filePath: string) => ParseResult;
|
|
110
|
+
writeFile: (filePath: string, content: string) => void;
|
|
111
|
+
readFile: (filePath: string) => string;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/continue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAA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AAE,CAAC;CACxB;AAID,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB;AAID,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,gBAAgB,CAAC;IAC3E,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,WAAW,CAAC;IAC7C,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/core/workflow/continue/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { propose, normalizeQuery, checkPlannedPrerequisites as checkProposePrerequisites } from './propose/index.js';
|
|
2
|
+
export type { ProposeResult, ProposeOptions, ProposeDeps, QueryObject, ClassificationResult, PreflightResult } from './propose/index.js';
|
|
3
|
+
export { continueChange, analyzeChangeSections, nextAction, toPublicNextAction, checkDecisionPromotion } from './continue/index.js';
|
|
4
|
+
export type { ContinueResult, ContinueDeps, SectionAnalysis, GatheredContext, InternalNextAction } from './continue/index.js';
|
|
5
|
+
export { applyChange, archiveChange, parseDeltaSummary, validateDeltaConflicts, detectStale, applyDeltaToFeature, verifyApply } from './apply/index.js';
|
|
6
|
+
export type { ApplyResult, ApplyOptions, ApplyDeps, DeltaEntry, DeltaPlan, StaleReport, FeatureApplyResult, PendingAgentOp, ArchiveResult } from './apply/index.js';
|
|
7
|
+
export { verify } from './verify/index.js';
|
|
8
|
+
export type { VerifyOptions } from './verify/index.js';
|
|
9
|
+
export { queryWorkflow, querySearch, constructQueryContext, assessNoteworthiness, createQueryNote } from './query/index.js';
|
|
10
|
+
export type { QueryRequest, QueryWorkflowResult, QuerySearchResult, NoteworthinessAssessment, QueryNoteInput } from './query/index.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/workflow/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,yBAAyB,IAAI,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACrH,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGzI,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,UAAU,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACpI,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9H,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxJ,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGpK,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC5H,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Workflow operations - plans 07-11
|
|
2
|
+
// Propose workflow (plan 07)
|
|
3
|
+
export { propose, normalizeQuery, checkPlannedPrerequisites as checkProposePrerequisites } from './propose/index.js';
|
|
4
|
+
// Continue workflow (plan 08)
|
|
5
|
+
export { continueChange, analyzeChangeSections, nextAction, toPublicNextAction, checkDecisionPromotion } from './continue/index.js';
|
|
6
|
+
// Apply workflow (plan 09)
|
|
7
|
+
export { applyChange, archiveChange, parseDeltaSummary, validateDeltaConflicts, detectStale, applyDeltaToFeature, verifyApply } from './apply/index.js';
|
|
8
|
+
// Verify workflow (plan 10)
|
|
9
|
+
export { verify } from './verify/index.js';
|
|
10
|
+
// Query workflow (plan 11)
|
|
11
|
+
export { queryWorkflow, querySearch, constructQueryContext, assessNoteworthiness, createQueryNote } from './query/index.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/workflow/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAEpC,6BAA6B;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,yBAAyB,IAAI,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGrH,8BAA8B;AAC9B,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,UAAU,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGpI,2BAA2B;AAC3B,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGxJ,4BAA4B;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,2BAA2B;AAC3B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { propose } from './propose.js';
|
|
2
|
+
export { normalizeQuery } from './query-normalizer.js';
|
|
3
|
+
export { checkPlannedPrerequisites } from './prerequisites.js';
|
|
4
|
+
export { createFeatureNote, createChangeNote, computeDependsOn, computeTouches } from './note-creator.js';
|
|
5
|
+
export type { QueryObject, LocalIntent, ClassificationResult, PreflightResult, PlannedPrerequisites, ProposeResult, ProposeAction, ProposeDeps, ProposeOptions, } from './types.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/propose/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC1G,YAAY,EACV,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,GACf,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { propose } from './propose.js';
|
|
2
|
+
export { normalizeQuery } from './query-normalizer.js';
|
|
3
|
+
export { checkPlannedPrerequisites } from './prerequisites.js';
|
|
4
|
+
export { createFeatureNote, createChangeNote, computeDependsOn, computeTouches } from './note-creator.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/workflow/propose/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { QueryObject, ProposeDeps } from './types.js';
|
|
2
|
+
import type { VaultIndex } from '../../../types/index-record.js';
|
|
3
|
+
import type { SequencingResult } from '../../../types/sequencing.js';
|
|
4
|
+
/**
|
|
5
|
+
* Create a Feature note with stub sections.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createFeatureNote(vaultRoot: string, query: QueryObject, index: VaultIndex, deps: Pick<ProposeDeps, 'writeFile'>): {
|
|
8
|
+
id: string;
|
|
9
|
+
path: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Create a Change note linked to a Feature with stub sections.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createChangeNote(vaultRoot: string, feature: {
|
|
15
|
+
id: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
}, query: QueryObject, sequencingFull: SequencingResult, index: VaultIndex, deps: Pick<ProposeDeps, 'writeFile'>): {
|
|
18
|
+
id: string;
|
|
19
|
+
path: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Compute depends_on from sequencing analysis.
|
|
23
|
+
* Depends on the earlier change in any pairwise severity or requirement conflict
|
|
24
|
+
* that touches the same Feature.
|
|
25
|
+
*/
|
|
26
|
+
export declare function computeDependsOn(feature: {
|
|
27
|
+
id: string;
|
|
28
|
+
}, sequencingFull: SequencingResult): string[];
|
|
29
|
+
/**
|
|
30
|
+
* Compute touches from target Feature + query system_terms + Feature's systems.
|
|
31
|
+
*/
|
|
32
|
+
export declare function computeTouches(feature: {
|
|
33
|
+
id: string;
|
|
34
|
+
}, query: QueryObject, index: VaultIndex): string[];
|
|
35
|
+
//# sourceMappingURL=note-creator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note-creator.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/propose/note-creator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GACnC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CA8C9B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACvC,KAAK,EAAE,WAAW,EAClB,cAAc,EAAE,gBAAgB,EAChC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GACnC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAuD9B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACvB,cAAc,EAAE,gBAAgB,GAC/B,MAAM,EAAE,CA0BV;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACvB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,UAAU,GAChB,MAAM,EAAE,CAoBV"}
|