kibi-cli 0.12.8 → 0.16.1
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/bin/kibi +3 -1
- package/dist/cli-command.d.ts +5 -0
- package/dist/cli-command.d.ts.map +1 -0
- package/dist/cli-command.js +9 -0
- package/dist/cli-errors.d.ts +13 -0
- package/dist/cli-errors.d.ts.map +1 -0
- package/dist/cli-errors.js +26 -0
- package/dist/cli-input.d.ts +6 -0
- package/dist/cli-input.d.ts.map +1 -0
- package/dist/cli-input.js +54 -0
- package/dist/cli-json-command.d.ts +14 -0
- package/dist/cli-json-command.d.ts.map +1 -0
- package/dist/cli-json-command.js +96 -0
- package/dist/cli-protocol.d.ts +12 -0
- package/dist/cli-protocol.d.ts.map +1 -0
- package/dist/cli-protocol.js +37 -0
- package/dist/cli-register-foundation.d.ts +3 -0
- package/dist/cli-register-foundation.d.ts.map +1 -0
- package/dist/cli-register-foundation.js +90 -0
- package/dist/cli-register-maintenance.d.ts +3 -0
- package/dist/cli-register-maintenance.d.ts.map +1 -0
- package/dist/cli-register-maintenance.js +36 -0
- package/dist/cli-register-reporting.d.ts +3 -0
- package/dist/cli-register-reporting.d.ts.map +1 -0
- package/dist/cli-register-reporting.js +101 -0
- package/dist/cli-register-skills.d.ts +3 -0
- package/dist/cli-register-skills.d.ts.map +1 -0
- package/dist/cli-register-skills.js +71 -0
- package/dist/cli-validate.d.ts +18 -0
- package/dist/cli-validate.d.ts.map +1 -0
- package/dist/cli-validate.js +45 -0
- package/dist/cli.d.ts +4 -4
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +48 -210
- package/dist/commands/aggregated-checks.d.ts +1 -1
- package/dist/commands/aggregated-checks.d.ts.map +1 -1
- package/dist/commands/aggregated-checks.js +28 -34
- package/dist/commands/check.d.ts +2 -1
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +145 -152
- package/dist/commands/coverage.d.ts.map +1 -1
- package/dist/commands/coverage.js +12 -17
- package/dist/commands/discovery-shared.d.ts +3 -1
- package/dist/commands/discovery-shared.d.ts.map +1 -1
- package/dist/commands/discovery-shared.js +8 -209
- package/dist/commands/discovery-table.d.ts +3 -0
- package/dist/commands/discovery-table.d.ts.map +1 -0
- package/dist/commands/discovery-table.js +204 -0
- package/dist/commands/gaps.d.ts.map +1 -1
- package/dist/commands/gaps.js +15 -19
- package/dist/commands/graph.d.ts.map +1 -1
- package/dist/commands/graph.js +15 -21
- package/dist/commands/query.d.ts +7 -7
- package/dist/commands/query.d.ts.map +1 -1
- package/dist/commands/query.js +98 -204
- package/dist/commands/search.d.ts +4 -4
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +14 -27
- package/dist/commands/status.d.ts +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +6 -7
- package/dist/commands/sync/discovery.d.ts.map +1 -1
- package/dist/commands/sync/discovery.js +8 -1
- package/dist/commands/sync/extraction.d.ts +6 -1
- package/dist/commands/sync/extraction.d.ts.map +1 -1
- package/dist/commands/sync/extraction.js +7 -3
- package/dist/commands/sync/manifest.d.ts +1 -1
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +9 -17
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +51 -2
- package/dist/extractors/manifest.d.ts.map +1 -1
- package/dist/extractors/manifest.js +18 -0
- package/dist/extractors/markdown.d.ts +20 -2
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +38 -1
- package/dist/extractors/symbols-coordinator.d.ts +1 -1
- package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
- package/dist/extractors/symbols-ts.d.ts.map +1 -1
- package/dist/extractors/symbols-ts.js +73 -1
- package/dist/operations/autopilot/activation.d.ts +4 -0
- package/dist/operations/autopilot/activation.d.ts.map +1 -0
- package/dist/operations/autopilot/activation.js +130 -0
- package/dist/operations/autopilot/candidate-helpers.d.ts +13 -0
- package/dist/operations/autopilot/candidate-helpers.d.ts.map +1 -0
- package/dist/operations/autopilot/candidate-helpers.js +55 -0
- package/dist/operations/autopilot/candidates.d.ts +4 -0
- package/dist/operations/autopilot/candidates.d.ts.map +1 -0
- package/dist/operations/autopilot/candidates.js +114 -0
- package/dist/operations/autopilot/discovery-evidence.d.ts +10 -0
- package/dist/operations/autopilot/discovery-evidence.d.ts.map +1 -0
- package/dist/operations/autopilot/discovery-evidence.js +158 -0
- package/dist/operations/autopilot/discovery.d.ts +4 -0
- package/dist/operations/autopilot/discovery.d.ts.map +1 -0
- package/dist/operations/autopilot/discovery.js +100 -0
- package/dist/operations/autopilot/generate.d.ts +8 -0
- package/dist/operations/autopilot/generate.d.ts.map +1 -0
- package/dist/operations/autopilot/generate.js +112 -0
- package/dist/operations/autopilot/guidance-actions.d.ts +3 -0
- package/dist/operations/autopilot/guidance-actions.d.ts.map +1 -0
- package/dist/operations/autopilot/guidance-actions.js +79 -0
- package/dist/operations/autopilot/guidance.d.ts +14 -0
- package/dist/operations/autopilot/guidance.d.ts.map +1 -0
- package/dist/operations/autopilot/guidance.js +124 -0
- package/dist/operations/autopilot/markdown-candidates.d.ts +7 -0
- package/dist/operations/autopilot/markdown-candidates.d.ts.map +1 -0
- package/dist/operations/autopilot/markdown-candidates.js +134 -0
- package/dist/operations/autopilot/presentation.d.ts +13 -0
- package/dist/operations/autopilot/presentation.d.ts.map +1 -0
- package/dist/operations/autopilot/presentation.js +91 -0
- package/dist/operations/autopilot/requirement-claims.d.ts +3 -0
- package/dist/operations/autopilot/requirement-claims.d.ts.map +1 -0
- package/dist/operations/autopilot/requirement-claims.js +48 -0
- package/dist/operations/autopilot/types.d.ts +117 -0
- package/dist/operations/autopilot/types.d.ts.map +1 -0
- package/dist/operations/autopilot/types.js +8 -0
- package/dist/operations/modeling/model-requirement.d.ts +10 -0
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -0
- package/dist/operations/modeling/model-requirement.js +108 -0
- package/dist/operations/modeling/predicate-applyplan.d.ts +6 -0
- package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-applyplan.js +104 -0
- package/dist/operations/modeling/predicate-catalog-1.d.ts +3 -0
- package/dist/operations/modeling/predicate-catalog-1.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-catalog-1.js +200 -0
- package/dist/operations/modeling/predicate-catalog-2.d.ts +3 -0
- package/dist/operations/modeling/predicate-catalog-2.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-catalog-2.js +197 -0
- package/dist/operations/modeling/predicate-catalog-3.d.ts +3 -0
- package/dist/operations/modeling/predicate-catalog-3.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-catalog-3.js +193 -0
- package/dist/operations/modeling/predicate-catalog-4.d.ts +3 -0
- package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-catalog-4.js +149 -0
- package/dist/operations/modeling/predicate-catalog.d.ts +5 -0
- package/dist/operations/modeling/predicate-catalog.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-catalog.js +29 -0
- package/dist/operations/modeling/predicate-inference-1.d.ts +16 -0
- package/dist/operations/modeling/predicate-inference-1.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-inference-1.js +161 -0
- package/dist/operations/modeling/predicate-inference-2.d.ts +19 -0
- package/dist/operations/modeling/predicate-inference-2.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-inference-2.js +169 -0
- package/dist/operations/modeling/predicate-inference-3.d.ts +15 -0
- package/dist/operations/modeling/predicate-inference-3.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-inference-3.js +163 -0
- package/dist/operations/modeling/predicate-inference.d.ts +5 -0
- package/dist/operations/modeling/predicate-inference.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-inference.js +148 -0
- package/dist/operations/modeling/predicate-loader.d.ts +10 -0
- package/dist/operations/modeling/predicate-loader.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-loader.js +88 -0
- package/dist/operations/modeling/predicate-ranker.d.ts +3 -0
- package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-ranker.js +24 -0
- package/dist/operations/modeling/predicate-score-1.d.ts +3 -0
- package/dist/operations/modeling/predicate-score-1.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-score-1.js +121 -0
- package/dist/operations/modeling/predicate-score-2.d.ts +3 -0
- package/dist/operations/modeling/predicate-score-2.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-score-2.js +122 -0
- package/dist/operations/modeling/predicate-score-3.d.ts +3 -0
- package/dist/operations/modeling/predicate-score-3.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-score-3.js +54 -0
- package/dist/operations/modeling/predicate-types.d.ts +61 -0
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-types.js +1 -0
- package/dist/operations/modeling/predicate-usage-hints-1.d.ts +3 -0
- package/dist/operations/modeling/predicate-usage-hints-1.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-usage-hints-1.js +211 -0
- package/dist/operations/modeling/predicate-usage-hints-2.d.ts +3 -0
- package/dist/operations/modeling/predicate-usage-hints-2.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-usage-hints-2.js +209 -0
- package/dist/operations/modeling/predicate-usage-hints-3.d.ts +3 -0
- package/dist/operations/modeling/predicate-usage-hints-3.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-usage-hints-3.js +45 -0
- package/dist/operations/modeling/predicate-utils.d.ts +23 -0
- package/dist/operations/modeling/predicate-utils.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-utils.js +187 -0
- package/dist/operations/modeling/requirement-applyplan.d.ts +4 -0
- package/dist/operations/modeling/requirement-applyplan.d.ts.map +1 -0
- package/dist/operations/modeling/requirement-applyplan.js +44 -0
- package/dist/operations/modeling/requirement-heuristics.d.ts +4 -0
- package/dist/operations/modeling/requirement-heuristics.d.ts.map +1 -0
- package/dist/operations/modeling/requirement-heuristics.js +114 -0
- package/dist/operations/modeling/requirement-modeler.d.ts +8 -0
- package/dist/operations/modeling/requirement-modeler.d.ts.map +1 -0
- package/dist/operations/modeling/requirement-modeler.js +70 -0
- package/dist/operations/modeling/requirement-types.d.ts +49 -0
- package/dist/operations/modeling/requirement-types.d.ts.map +1 -0
- package/dist/operations/modeling/requirement-types.js +1 -0
- package/dist/operations/modeling/requirement-utils.d.ts +10 -0
- package/dist/operations/modeling/requirement-utils.d.ts.map +1 -0
- package/dist/operations/modeling/requirement-utils.js +65 -0
- package/dist/operations/modeling/suggest-predicates.d.ts +6 -0
- package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -0
- package/dist/operations/modeling/suggest-predicates.js +64 -0
- package/dist/operations/mutation/audit.d.ts +6 -0
- package/dist/operations/mutation/audit.d.ts.map +1 -0
- package/dist/operations/mutation/audit.js +22 -0
- package/dist/operations/mutation/contradictions.d.ts +10 -0
- package/dist/operations/mutation/contradictions.d.ts.map +1 -0
- package/dist/operations/mutation/contradictions.js +40 -0
- package/dist/operations/mutation/delete.d.ts +5 -0
- package/dist/operations/mutation/delete.d.ts.map +1 -0
- package/dist/operations/mutation/delete.js +67 -0
- package/dist/operations/mutation/relationships.d.ts +17 -0
- package/dist/operations/mutation/relationships.d.ts.map +1 -0
- package/dist/operations/mutation/relationships.js +134 -0
- package/dist/operations/mutation/save.d.ts +4 -0
- package/dist/operations/mutation/save.d.ts.map +1 -0
- package/dist/operations/mutation/save.js +14 -0
- package/dist/operations/mutation/serialization.d.ts +5 -0
- package/dist/operations/mutation/serialization.d.ts.map +1 -0
- package/dist/operations/mutation/serialization.js +85 -0
- package/dist/operations/mutation/strict-fact.d.ts +4 -0
- package/dist/operations/mutation/strict-fact.d.ts.map +1 -0
- package/dist/operations/mutation/strict-fact.js +67 -0
- package/dist/operations/mutation/symbol-granularity.d.ts +4 -0
- package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -0
- package/dist/operations/mutation/symbol-granularity.js +109 -0
- package/dist/operations/mutation/symbol-refresh.d.ts +10 -0
- package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -0
- package/dist/operations/mutation/symbol-refresh.js +105 -0
- package/dist/operations/mutation/types.d.ts +43 -0
- package/dist/operations/mutation/types.d.ts.map +1 -0
- package/dist/operations/mutation/types.js +1 -0
- package/dist/operations/mutation/upsert.d.ts +5 -0
- package/dist/operations/mutation/upsert.d.ts.map +1 -0
- package/dist/operations/mutation/upsert.js +103 -0
- package/dist/operations/mutation/validate-upsert.d.ts +5 -0
- package/dist/operations/mutation/validate-upsert.d.ts.map +1 -0
- package/dist/operations/mutation/validate-upsert.js +50 -0
- package/dist/operations/mutation/validation.d.ts +5 -0
- package/dist/operations/mutation/validation.d.ts.map +1 -0
- package/dist/operations/mutation/validation.js +107 -0
- package/dist/operations/mutation/warnings.d.ts +4 -0
- package/dist/operations/mutation/warnings.d.ts.map +1 -0
- package/dist/operations/mutation/warnings.js +17 -0
- package/dist/operations/semantic-advisor/analysis-receipt.d.ts +5 -0
- package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/analysis-receipt.js +112 -0
- package/dist/operations/semantic-advisor/analyze-prose.d.ts +5 -0
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/analyze-prose.js +271 -0
- package/dist/operations/semantic-advisor/clauses.d.ts +10 -0
- package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/clauses.js +43 -0
- package/dist/operations/semantic-advisor/observation-plan.d.ts +3 -0
- package/dist/operations/semantic-advisor/observation-plan.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/observation-plan.js +19 -0
- package/dist/operations/semantic-advisor/predicate-rule.d.ts +14 -0
- package/dist/operations/semantic-advisor/predicate-rule.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/predicate-rule.js +22 -0
- package/dist/operations/semantic-advisor/predicate-rules-core.d.ts +79 -0
- package/dist/operations/semantic-advisor/predicate-rules-core.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/predicate-rules-core.js +140 -0
- package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts +83 -0
- package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/predicate-rules-policy.js +150 -0
- package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts +48 -0
- package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/predicate-rules-product-tail.js +102 -0
- package/dist/operations/semantic-advisor/predicate-rules-product.d.ts +71 -0
- package/dist/operations/semantic-advisor/predicate-rules-product.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/predicate-rules-product.js +133 -0
- package/dist/operations/semantic-advisor/prose-coverage-evaluator.d.ts +29 -0
- package/dist/operations/semantic-advisor/prose-coverage-evaluator.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/prose-coverage-evaluator.js +54 -0
- package/dist/operations/semantic-advisor/shared.d.ts +18 -0
- package/dist/operations/semantic-advisor/shared.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/shared.js +209 -0
- package/dist/operations/semantic-advisor/strict-count-rules.d.ts +4 -0
- package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/strict-count-rules.js +62 -0
- package/dist/operations/semantic-advisor/strict-rules.d.ts +4 -0
- package/dist/operations/semantic-advisor/strict-rules.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/strict-rules.js +106 -0
- package/dist/operations/semantic-advisor/types.d.ts +135 -0
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/types.js +1 -0
- package/dist/prolog/codec.d.ts.map +1 -1
- package/dist/prolog/codec.js +9 -2
- package/dist/prolog.d.ts +5 -0
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +82 -30
- package/dist/public/impact/analyzer.d.ts +3 -0
- package/dist/public/impact/analyzer.d.ts.map +1 -0
- package/dist/public/impact/analyzer.js +54 -0
- package/dist/public/impact/coverage-depth-quality.d.ts +4 -0
- package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -0
- package/dist/public/impact/coverage-depth-quality.js +179 -0
- package/dist/public/impact/diagnostics.d.ts +7 -0
- package/dist/public/impact/diagnostics.d.ts.map +1 -0
- package/dist/public/impact/diagnostics.js +126 -0
- package/dist/public/impact/diff-meaning.d.ts +2 -0
- package/dist/public/impact/diff-meaning.d.ts.map +1 -0
- package/dist/public/impact/diff-meaning.js +101 -0
- package/dist/public/impact/full-kb-quality.d.ts +10 -0
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -0
- package/dist/public/impact/full-kb-quality.js +191 -0
- package/dist/public/impact/manifest.d.ts +5 -0
- package/dist/public/impact/manifest.d.ts.map +1 -0
- package/dist/public/impact/manifest.js +43 -0
- package/dist/public/impact/requirement-quality.d.ts +4 -0
- package/dist/public/impact/requirement-quality.d.ts.map +1 -0
- package/dist/public/impact/requirement-quality.js +199 -0
- package/dist/public/impact/source-changes.d.ts +5 -0
- package/dist/public/impact/source-changes.d.ts.map +1 -0
- package/dist/public/impact/source-changes.js +129 -0
- package/dist/public/impact/summaries.d.ts +6 -0
- package/dist/public/impact/summaries.d.ts.map +1 -0
- package/dist/public/impact/summaries.js +68 -0
- package/dist/public/impact/symbol-quality-model.d.ts +21 -0
- package/dist/public/impact/symbol-quality-model.d.ts.map +1 -0
- package/dist/public/impact/symbol-quality-model.js +116 -0
- package/dist/public/impact/symbol-quality.d.ts +4 -0
- package/dist/public/impact/symbol-quality.d.ts.map +1 -0
- package/dist/public/impact/symbol-quality.js +159 -0
- package/dist/public/impact/types.d.ts +79 -0
- package/dist/public/impact/types.d.ts.map +1 -0
- package/dist/public/impact/types.js +1 -0
- package/dist/public/impact-diagnostics.d.ts +7 -0
- package/dist/public/impact-diagnostics.d.ts.map +1 -0
- package/dist/public/impact-diagnostics.js +5 -0
- package/dist/public/operations/catalog.d.ts +907 -0
- package/dist/public/operations/catalog.d.ts.map +1 -0
- package/dist/public/operations/catalog.js +42 -0
- package/dist/public/operations/check-executor.d.ts +21 -0
- package/dist/public/operations/check-executor.d.ts.map +1 -0
- package/dist/public/operations/check-executor.js +111 -0
- package/dist/public/operations/check-format-shared.d.ts +36 -0
- package/dist/public/operations/check-format-shared.d.ts.map +1 -0
- package/dist/public/operations/check-format-shared.js +107 -0
- package/dist/public/operations/check-helpers.d.ts +10 -0
- package/dist/public/operations/check-helpers.d.ts.map +1 -0
- package/dist/public/operations/check-helpers.js +107 -0
- package/dist/public/operations/discovery-entities.d.ts +14 -0
- package/dist/public/operations/discovery-entities.d.ts.map +1 -0
- package/dist/public/operations/discovery-entities.js +91 -0
- package/dist/public/operations/discovery-executors.d.ts +39 -0
- package/dist/public/operations/discovery-executors.d.ts.map +1 -0
- package/dist/public/operations/discovery-executors.js +101 -0
- package/dist/public/operations/index.d.ts +20 -0
- package/dist/public/operations/index.d.ts.map +1 -0
- package/dist/public/operations/index.js +18 -0
- package/dist/public/operations/node-ports.d.ts +15 -0
- package/dist/public/operations/node-ports.d.ts.map +1 -0
- package/dist/public/operations/node-ports.js +57 -0
- package/dist/public/operations/prolog-json.d.ts +5 -0
- package/dist/public/operations/prolog-json.d.ts.map +1 -0
- package/dist/public/operations/prolog-json.js +44 -0
- package/dist/public/operations/runtime-types.d.ts +69 -0
- package/dist/public/operations/runtime-types.d.ts.map +1 -0
- package/dist/public/operations/runtime-types.js +17 -0
- package/dist/public/operations/specs/autopilot.d.ts +82 -0
- package/dist/public/operations/specs/autopilot.d.ts.map +1 -0
- package/dist/public/operations/specs/autopilot.js +72 -0
- package/dist/public/operations/specs/check.d.ts +51 -0
- package/dist/public/operations/specs/check.d.ts.map +1 -0
- package/dist/public/operations/specs/check.js +62 -0
- package/dist/public/operations/specs/discovery.d.ts +94 -0
- package/dist/public/operations/specs/discovery.d.ts.map +1 -0
- package/dist/public/operations/specs/discovery.js +98 -0
- package/dist/public/operations/specs/modeling.d.ts +126 -0
- package/dist/public/operations/specs/modeling.d.ts.map +1 -0
- package/dist/public/operations/specs/modeling.js +117 -0
- package/dist/public/operations/specs/mutation-schemas.d.ts +233 -0
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -0
- package/dist/public/operations/specs/mutation-schemas.js +267 -0
- package/dist/public/operations/specs/mutation.d.ts +56 -0
- package/dist/public/operations/specs/mutation.d.ts.map +1 -0
- package/dist/public/operations/specs/mutation.js +44 -0
- package/dist/public/operations/specs/reporting.d.ts +185 -0
- package/dist/public/operations/specs/reporting.d.ts.map +1 -0
- package/dist/public/operations/specs/reporting.js +158 -0
- package/dist/public/operations/specs/semantic.d.ts +53 -0
- package/dist/public/operations/specs/semantic.d.ts.map +1 -0
- package/dist/public/operations/specs/semantic.js +105 -0
- package/dist/public/operations/specs/skills.d.ts +70 -0
- package/dist/public/operations/specs/skills.d.ts.map +1 -0
- package/dist/public/operations/specs/skills.js +107 -0
- package/dist/public/operations/specs/sparql.d.ts +39 -0
- package/dist/public/operations/specs/sparql.d.ts.map +1 -0
- package/dist/public/operations/specs/sparql.js +121 -0
- package/dist/public/operations/specs/upsert.d.ts +256 -0
- package/dist/public/operations/specs/upsert.d.ts.map +1 -0
- package/dist/public/operations/specs/upsert.js +27 -0
- package/dist/public/operations/types.d.ts +24 -0
- package/dist/public/operations/types.d.ts.map +1 -0
- package/dist/public/operations/types.js +1 -0
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +48 -0
- package/dist/public/skill-system/errors.d.ts +19 -0
- package/dist/public/skill-system/errors.d.ts.map +1 -0
- package/dist/public/skill-system/errors.js +36 -0
- package/dist/public/skill-system/loader.d.ts +9 -0
- package/dist/public/skill-system/loader.d.ts.map +1 -0
- package/dist/public/skill-system/loader.js +76 -0
- package/dist/public/skill-system/paths.d.ts +6 -0
- package/dist/public/skill-system/paths.d.ts.map +1 -0
- package/dist/public/skill-system/paths.js +25 -0
- package/dist/public/skill-system/types.d.ts +15 -0
- package/dist/public/skill-system/types.d.ts.map +1 -0
- package/dist/public/skill-system/types.js +1 -0
- package/dist/public/skill-system/validation.d.ts +10 -0
- package/dist/public/skill-system/validation.d.ts.map +1 -0
- package/dist/public/skill-system/validation.js +119 -0
- package/dist/public/skills/init-kibi/SKILL.md +62 -0
- package/dist/public/skills/kibi-freshness/SKILL.md +44 -0
- package/dist/public/skills/kibi-traceability/SKILL.md +54 -0
- package/dist/public/skills/kibi-usage/SKILL.md +123 -95
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +107 -5
- package/dist/public/skills/kibi-usage/resources/operation-access.md +44 -0
- package/dist/public/skills/kibi-usage/resources/relationship-directions.md +30 -0
- package/dist/public/skills/kibi-usage/resources/workflows.md +40 -3
- package/dist/public/skills.d.ts +4 -41
- package/dist/public/skills.d.ts.map +1 -1
- package/dist/public/skills.js +3 -270
- package/dist/public/symbol-granularity.d.ts +1 -1
- package/dist/public/symbol-granularity.d.ts.map +1 -1
- package/dist/public/symbol-granularity.js +2 -0
- package/dist/runtime/cli-runtime.d.ts +3 -0
- package/dist/runtime/cli-runtime.d.ts.map +1 -0
- package/dist/runtime/cli-runtime.js +96 -0
- package/dist/schemas/entity.schema.json +23 -0
- package/dist/traceability/evidence-model.d.ts +1 -1
- package/dist/traceability/evidence-model.d.ts.map +1 -1
- package/dist/traceability/evidence-model.js +1 -1
- package/dist/traceability/staged-diagnostics.d.ts +6 -6
- package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
- package/dist/traceability/staged-diagnostics.js +12 -6
- package/dist/traceability/staged-impact-contract.js +1 -1
- package/dist/traceability/staged-symbols-manifest.d.ts +1 -0
- package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
- package/dist/traceability/staged-symbols-manifest.js +60 -27
- package/dist/traceability/symbol-extract.d.ts.map +1 -1
- package/dist/traceability/symbol-extract.js +58 -1
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +34 -1
- package/dist/types/entities.d.ts +8 -1
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/prolog-query-plan-safety.d.ts +8 -0
- package/dist/utils/prolog-query-plan-safety.d.ts.map +1 -0
- package/dist/utils/prolog-query-plan-safety.js +47 -0
- package/dist/utils/rule-registry.d.ts.map +1 -1
- package/dist/utils/rule-registry.js +18 -0
- package/package.json +60 -2
- package/schema/entities.pl +4 -0
- package/src/public/impact/analyzer.ts +90 -0
- package/src/public/impact/coverage-depth-quality.ts +268 -0
- package/src/public/impact/diagnostics.ts +199 -0
- package/src/public/impact/diff-meaning.ts +121 -0
- package/src/public/impact/full-kb-quality.ts +230 -0
- package/src/public/impact/manifest.ts +57 -0
- package/src/public/impact/requirement-quality.ts +262 -0
- package/src/public/impact/source-changes.ts +180 -0
- package/src/public/impact/summaries.ts +100 -0
- package/src/public/impact/symbol-quality-model.ts +171 -0
- package/src/public/impact/symbol-quality.ts +207 -0
- package/src/public/impact/types.ts +99 -0
- package/src/public/impact-diagnostics.ts +22 -0
- package/src/public/operations/catalog.ts +60 -0
- package/src/public/operations/check-executor.ts +185 -0
- package/src/public/operations/check-format-shared.ts +178 -0
- package/src/public/operations/check-helpers.ts +141 -0
- package/src/public/operations/discovery-entities.ts +122 -0
- package/src/public/operations/discovery-executors.ts +176 -0
- package/src/public/operations/index.ts +19 -0
- package/src/public/operations/node-ports.ts +78 -0
- package/src/public/operations/prolog-json.ts +71 -0
- package/src/public/operations/runtime-types.ts +106 -0
- package/src/public/operations/specs/autopilot.ts +98 -0
- package/src/public/operations/specs/check.ts +72 -0
- package/src/public/operations/specs/discovery.ts +126 -0
- package/src/public/operations/specs/modeling.ts +154 -0
- package/src/public/operations/specs/mutation-schemas.ts +296 -0
- package/src/public/operations/specs/mutation.ts +58 -0
- package/src/public/operations/specs/reporting.ts +249 -0
- package/src/public/operations/specs/semantic.ts +135 -0
- package/src/public/operations/specs/skills.ts +142 -0
- package/src/public/operations/specs/sparql.ts +149 -0
- package/src/public/operations/specs/upsert.ts +40 -0
- package/src/public/operations/types.ts +57 -0
- package/src/public/schemas/entity.ts +50 -0
- package/src/public/skill-system/errors.ts +38 -0
- package/src/public/skill-system/loader.ts +108 -0
- package/src/public/skill-system/paths.ts +27 -0
- package/src/public/skill-system/types.ts +14 -0
- package/src/public/skill-system/validation.ts +175 -0
- package/src/public/skills/init-kibi/SKILL.md +62 -0
- package/src/public/skills/kibi-freshness/SKILL.md +44 -0
- package/src/public/skills/kibi-traceability/SKILL.md +54 -0
- package/src/public/skills/kibi-usage/SKILL.md +123 -95
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +107 -5
- package/src/public/skills/kibi-usage/resources/operation-access.md +44 -0
- package/src/public/skills/kibi-usage/resources/relationship-directions.md +30 -0
- package/src/public/skills/kibi-usage/resources/workflows.md +40 -3
- package/src/public/skills.ts +18 -427
- package/src/public/symbol-granularity.ts +4 -0
- package/src/schemas/entity.schema.json +23 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { buildActions } from "./guidance-actions.js";
|
|
3
|
+
function relative(root, target) {
|
|
4
|
+
const value = path.relative(root, target);
|
|
5
|
+
return value.startsWith("..") || path.isAbsolute(value)
|
|
6
|
+
? target.split(path.sep).join("/")
|
|
7
|
+
: value.split(path.sep).join("/");
|
|
8
|
+
}
|
|
9
|
+
function summary(values, limit = 3) {
|
|
10
|
+
if (values.length === 0)
|
|
11
|
+
return "workspace evidence";
|
|
12
|
+
return values.length <= limit
|
|
13
|
+
? values.join(", ")
|
|
14
|
+
: `${values.slice(0, limit).join(", ")} +${values.length - limit} more`;
|
|
15
|
+
}
|
|
16
|
+
function counts(candidates) {
|
|
17
|
+
const result = {};
|
|
18
|
+
for (const candidate of candidates)
|
|
19
|
+
result[candidate.entityType] = (result[candidate.entityType] ?? 0) + 1;
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
function prompt(root, activation, declared, candidates, signals, warnings) {
|
|
23
|
+
const bullets = [];
|
|
24
|
+
bullets.push(activation.applyBlocked
|
|
25
|
+
? `- Apply blocked: ${activation.reason}`
|
|
26
|
+
: `- Mode: ${activation.activationMode} (${activation.activationState}).`);
|
|
27
|
+
if (declared.projectSummary)
|
|
28
|
+
bullets.push(`- Summary: ${declared.projectSummary}`);
|
|
29
|
+
if (declared.sourceOfTruthPaths.length > 0)
|
|
30
|
+
bullets.push(`- Source of truth: ${summary(declared.sourceOfTruthPaths)}.`);
|
|
31
|
+
if (candidates.length > 0) {
|
|
32
|
+
const formatted = Object.entries(counts(candidates))
|
|
33
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
34
|
+
.map(([type, count]) => `${type} ${count}`)
|
|
35
|
+
.join(", ");
|
|
36
|
+
bullets.push(`- Safe candidates: ${candidates.length} (${formatted}).`);
|
|
37
|
+
}
|
|
38
|
+
if (signals.length > 0) {
|
|
39
|
+
const kinds = [
|
|
40
|
+
...new Set(signals.map((signal) => signal.kind.toUpperCase())),
|
|
41
|
+
].join("/");
|
|
42
|
+
const paths = [
|
|
43
|
+
...new Set(signals.map((signal) => relative(root, signal.sourcePath))),
|
|
44
|
+
];
|
|
45
|
+
bullets.push(`- Author ${kinds} manually from ${summary(paths)}; keep them out of speculative candidate output.`);
|
|
46
|
+
}
|
|
47
|
+
else if (declared.verificationAnchors.length > 0)
|
|
48
|
+
bullets.push(`- Verify after kb_check with ${summary(declared.verificationAnchors, 2)}.`);
|
|
49
|
+
if (activation.activationMode === "attached_thin_handoff" ||
|
|
50
|
+
activation.activationMode === "attached_seeded_handoff")
|
|
51
|
+
bullets.push("- Handoff: use kb_search, kb_query, or gap/coverage tools to work with existing KB.");
|
|
52
|
+
if (warnings.length > 0)
|
|
53
|
+
bullets.push(`- Scan diagnostics: ${warnings.length} warning(s) during evidence collection.`);
|
|
54
|
+
const words = bullets.slice(0, 5).join("\n").split(/\s+/).filter(Boolean);
|
|
55
|
+
const selected = words.slice(0, 120);
|
|
56
|
+
if (words.length > 120 && selected.length > 0)
|
|
57
|
+
selected[selected.length - 1] = `${selected[selected.length - 1]}…`;
|
|
58
|
+
return selected.join(" ").replaceAll(" - ", "\n- ");
|
|
59
|
+
}
|
|
60
|
+
function confidence(activation, declared, candidates, signals, promptBlock) {
|
|
61
|
+
const reasons = [];
|
|
62
|
+
let score = candidates.length > 0 ? 0.68 : 0.44;
|
|
63
|
+
if (activation.applyBlocked) {
|
|
64
|
+
score -= 0.24;
|
|
65
|
+
reasons.push("Current workspace posture blocks direct application.");
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
score += 0.12;
|
|
69
|
+
reasons.push("Workspace posture allows read-only bootstrap synthesis.");
|
|
70
|
+
}
|
|
71
|
+
score += {
|
|
72
|
+
cold_start_bootstrap: 0.1,
|
|
73
|
+
repair_bootstrap: -0.05,
|
|
74
|
+
attached_thin_handoff: -0.12,
|
|
75
|
+
attached_seeded_handoff: -0.18,
|
|
76
|
+
vendored_blocked: -0.25,
|
|
77
|
+
}[activation.activationMode];
|
|
78
|
+
reasons.push(`${activation.activationMode} determined the bootstrap posture.`);
|
|
79
|
+
if (declared.projectSummary ||
|
|
80
|
+
declared.sourceOfTruthPaths.length +
|
|
81
|
+
declared.sourceOfTruthNotes.length +
|
|
82
|
+
declared.priorityRoots.length +
|
|
83
|
+
declared.verificationAnchors.length >
|
|
84
|
+
0) {
|
|
85
|
+
score += 0.08;
|
|
86
|
+
reasons.push("Declared bootstrap context grounds the output.");
|
|
87
|
+
}
|
|
88
|
+
else
|
|
89
|
+
reasons.push("No declared bootstrap context was supplied.");
|
|
90
|
+
if (signals.length > 0) {
|
|
91
|
+
score += 0.04;
|
|
92
|
+
reasons.push("Source-only evidence was routed into authoring guidance.");
|
|
93
|
+
}
|
|
94
|
+
if (candidates.length === 0) {
|
|
95
|
+
score -= 0.08;
|
|
96
|
+
reasons.push("No safe candidates were synthesized from current evidence.");
|
|
97
|
+
}
|
|
98
|
+
else
|
|
99
|
+
reasons.push(`${candidates.length} safe candidate(s) are ready for review.`);
|
|
100
|
+
if (!promptBlock) {
|
|
101
|
+
score -= 0.05;
|
|
102
|
+
reasons.push("Prompt block could not be assembled within the handoff budget.");
|
|
103
|
+
}
|
|
104
|
+
const rounded = Math.round(Math.max(0, Math.min(1, score)) * 100) / 100;
|
|
105
|
+
const level = rounded > 0.7 ? "high" : rounded >= 0.4 ? "medium" : "low";
|
|
106
|
+
const policy = level === "high"
|
|
107
|
+
? "full_actions"
|
|
108
|
+
: level === "medium"
|
|
109
|
+
? "review_required"
|
|
110
|
+
: "handoff_only";
|
|
111
|
+
if (level !== "high")
|
|
112
|
+
reasons.push(level === "medium"
|
|
113
|
+
? "Medium confidence: review recommended before applying."
|
|
114
|
+
: "Low confidence: handoff-only output with diagnostic guidance.");
|
|
115
|
+
return { score: rounded, level, reasons, policy };
|
|
116
|
+
}
|
|
117
|
+
export function buildGuidance(input) {
|
|
118
|
+
const promptBlock = prompt(input.root, input.activation, input.declared, input.candidates, input.signals, input.warnings);
|
|
119
|
+
return {
|
|
120
|
+
promptBlock,
|
|
121
|
+
confidence: confidence(input.activation, input.declared, input.candidates, input.signals, promptBlock),
|
|
122
|
+
actions: buildActions(input.root, input.activation, input.declared, input.candidates, input.signals),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AutopilotEvidence, Candidate, SourceOnlySignal } from "./types.js";
|
|
2
|
+
export type CandidateBuildResult = {
|
|
3
|
+
readonly candidates: readonly Candidate[];
|
|
4
|
+
readonly sourceOnlySignals: readonly SourceOnlySignal[];
|
|
5
|
+
};
|
|
6
|
+
export declare function markdownCandidates(item: AutopilotEvidence, existingIds: ReadonlySet<string>, minConfidence: number): CandidateBuildResult;
|
|
7
|
+
//# sourceMappingURL=markdown-candidates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-candidates.d.ts","sourceRoot":"","sources":["../../../src/operations/autopilot/markdown-candidates.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,iBAAiB,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACzD,CAAC;AA0HF,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,iBAAiB,EACvB,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,EAChC,aAAa,EAAE,MAAM,GACpB,oBAAoB,CAoDtB"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { buildStrictWriteSet } from "../../utils/strict-modeling.js";
|
|
3
|
+
import { confidenceBand, slug, strictPlan, upsert, } from "./candidate-helpers.js";
|
|
4
|
+
import { claimFor } from "./requirement-claims.js";
|
|
5
|
+
function headingSignals(heading, sourcePath, textRef, minConfidence) {
|
|
6
|
+
const result = [];
|
|
7
|
+
for (const [kind, pattern, confidence] of [
|
|
8
|
+
["req", /\brequirements?\b/i, 0.84],
|
|
9
|
+
["scenario", /\bscenarios?\b/i, 0.83],
|
|
10
|
+
["test", /\b(tests?|verification)\b/i, 0.82],
|
|
11
|
+
]) {
|
|
12
|
+
if (pattern.test(heading) && confidence >= minConfidence) {
|
|
13
|
+
result.push({
|
|
14
|
+
kind,
|
|
15
|
+
title: `Author ${kind} from ${heading}`,
|
|
16
|
+
sourcePath,
|
|
17
|
+
confidence,
|
|
18
|
+
evidence: [`generic_heading:${textRef}`],
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
function genericHeadingCandidate(item, heading, line, existingIds, minConfidence) {
|
|
25
|
+
const relativePath = item.relativePath ?? item.label;
|
|
26
|
+
const type = /\badr\b|architectur.*decision/i.test(heading)
|
|
27
|
+
? "adr"
|
|
28
|
+
: /\b(observations?|facts?|notes?)\b/i.test(heading)
|
|
29
|
+
? "fact"
|
|
30
|
+
: null;
|
|
31
|
+
const confidence = type === "adr" ? 0.9 : type === "fact" ? 0.8 : 0;
|
|
32
|
+
if (!type || confidence < minConfidence)
|
|
33
|
+
return null;
|
|
34
|
+
const id = `${type === "adr" ? "ADR" : "FACT"}-GEN-${slug(heading, 60) || slug(path.basename(relativePath))}`.toUpperCase();
|
|
35
|
+
if (existingIds.has(id))
|
|
36
|
+
return null;
|
|
37
|
+
const entity = {
|
|
38
|
+
type,
|
|
39
|
+
id,
|
|
40
|
+
title: heading,
|
|
41
|
+
status: type === "adr" ? "proposed" : "active",
|
|
42
|
+
...(type === "fact" ? { fact_kind: "observation" } : {}),
|
|
43
|
+
source: `autopilot:generic:${relativePath}`,
|
|
44
|
+
text_ref: `${relativePath}#L${line}`,
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
candidateId: `gen:${relativePath}:${type}:${slug(heading)}`,
|
|
48
|
+
entityType: type,
|
|
49
|
+
title: heading,
|
|
50
|
+
sourceKind: "generic_markdown",
|
|
51
|
+
sourcePath: item.absolutePath ?? relativePath,
|
|
52
|
+
confidence,
|
|
53
|
+
confidenceBand: confidenceBand(confidence),
|
|
54
|
+
evidence: [`generic_heading:${relativePath}#L${line}`],
|
|
55
|
+
relationships: [],
|
|
56
|
+
applyPlan: [upsert(entity)],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function requirementCandidate(item, statement, line, heading, headingLine, existingIds, minConfidence) {
|
|
60
|
+
const relativePath = item.relativePath ?? item.label;
|
|
61
|
+
const base = /\bshall\b/i.test(statement)
|
|
62
|
+
? 0.86
|
|
63
|
+
: /\bmust\b/i.test(statement)
|
|
64
|
+
? 0.84
|
|
65
|
+
: 0.78;
|
|
66
|
+
const confidence = Math.min(0.95, base +
|
|
67
|
+
(heading &&
|
|
68
|
+
/requirements?|constraints?|polic(?:y|ies)|rules?/i.test(heading)
|
|
69
|
+
? 0.08
|
|
70
|
+
: 0));
|
|
71
|
+
if (confidence < minConfidence)
|
|
72
|
+
return null;
|
|
73
|
+
const claim = claimFor(statement, relativePath, confidence, `${relativePath}#L${line}`);
|
|
74
|
+
if (!claim)
|
|
75
|
+
return null;
|
|
76
|
+
const writeSet = buildStrictWriteSet({ claim, statement });
|
|
77
|
+
if (!writeSet.isStrict || existingIds.has(writeSet.req.id))
|
|
78
|
+
return null;
|
|
79
|
+
return {
|
|
80
|
+
candidateId: `norm:${writeSet.req.id.toLowerCase()}`,
|
|
81
|
+
entityType: "req",
|
|
82
|
+
title: statement,
|
|
83
|
+
sourceKind: "generic_markdown",
|
|
84
|
+
sourcePath: item.absolutePath ?? relativePath,
|
|
85
|
+
confidence,
|
|
86
|
+
confidenceBand: confidenceBand(confidence),
|
|
87
|
+
evidence: [
|
|
88
|
+
`normative_statement:${relativePath}#L${line}`,
|
|
89
|
+
...(heading ? [`generic_heading:${relativePath}#L${headingLine}`] : []),
|
|
90
|
+
],
|
|
91
|
+
relationships: writeSet.relationships.map(({ type, from, to }) => ({
|
|
92
|
+
type,
|
|
93
|
+
from,
|
|
94
|
+
to,
|
|
95
|
+
})),
|
|
96
|
+
applyPlan: strictPlan(writeSet),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export function markdownCandidates(item, existingIds, minConfidence) {
|
|
100
|
+
const candidates = [];
|
|
101
|
+
const sourceOnlySignals = [];
|
|
102
|
+
const relativePath = item.relativePath ?? item.label;
|
|
103
|
+
let heading;
|
|
104
|
+
let headingLine = 0;
|
|
105
|
+
let fenced = false;
|
|
106
|
+
for (const [index, line] of (item.content ?? "").split(/\r?\n/).entries()) {
|
|
107
|
+
if (/^\s*(```|~~~)/.test(line)) {
|
|
108
|
+
fenced = !fenced;
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (fenced)
|
|
112
|
+
continue;
|
|
113
|
+
const match = line.match(/^\s*#+\s*(.+)$/);
|
|
114
|
+
if (match?.[1]) {
|
|
115
|
+
heading = match[1].trim();
|
|
116
|
+
headingLine = index + 1;
|
|
117
|
+
const candidate = genericHeadingCandidate(item, heading, headingLine, existingIds, minConfidence);
|
|
118
|
+
if (candidate)
|
|
119
|
+
candidates.push(candidate);
|
|
120
|
+
sourceOnlySignals.push(...headingSignals(heading, item.absolutePath ?? relativePath, `${relativePath}#L${headingLine}`, minConfidence));
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
const statement = line
|
|
124
|
+
.replace(/^\s*[-*+]\s+/, "")
|
|
125
|
+
.replace(/^\s*\d+[.)]\s+/, "")
|
|
126
|
+
.trim();
|
|
127
|
+
if (!statement || !/\b(must|shall|should)\b/i.test(statement))
|
|
128
|
+
continue;
|
|
129
|
+
const candidate = requirementCandidate(item, statement, index + 1, heading, headingLine, existingIds, minConfidence);
|
|
130
|
+
if (candidate)
|
|
131
|
+
candidates.push(candidate);
|
|
132
|
+
}
|
|
133
|
+
return { candidates, sourceOnlySignals };
|
|
134
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ActivationPolicy, AutopilotBootstrapContext, AutopilotDeclaredContext, AutopilotGenerateResult, Candidate, DiscoverySummary, SourceOnlySignal } from "./types.js";
|
|
2
|
+
export declare function normalizeBootstrapContext(input?: AutopilotBootstrapContext): AutopilotDeclaredContext;
|
|
3
|
+
export declare function presentAutopilot(input: {
|
|
4
|
+
readonly root: string;
|
|
5
|
+
readonly activation: ActivationPolicy;
|
|
6
|
+
readonly discoverySummary: DiscoverySummary;
|
|
7
|
+
readonly migrationWarning: string | null;
|
|
8
|
+
readonly bootstrapContext?: AutopilotBootstrapContext;
|
|
9
|
+
readonly candidates: readonly Candidate[];
|
|
10
|
+
readonly sourceOnlySignals: readonly SourceOnlySignal[];
|
|
11
|
+
readonly suppressedCandidates: readonly Readonly<Record<string, unknown>>[];
|
|
12
|
+
}): AutopilotGenerateResult;
|
|
13
|
+
//# sourceMappingURL=presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../src/operations/autopilot/presentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAQpB,wBAAgB,yBAAyB,CACvC,KAAK,CAAC,EAAE,yBAAyB,GAChC,wBAAwB,CAS1B;AAgBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IACtD,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,iBAAiB,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACxD,QAAQ,CAAC,oBAAoB,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC7E,GAAG,uBAAuB,CAoE1B"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { buildGuidance } from "./guidance.js";
|
|
2
|
+
function strings(values) {
|
|
3
|
+
return [
|
|
4
|
+
...new Set((values ?? []).map((value) => value.trim()).filter(Boolean)),
|
|
5
|
+
];
|
|
6
|
+
}
|
|
7
|
+
export function normalizeBootstrapContext(input) {
|
|
8
|
+
const projectSummary = input?.projectSummary?.trim();
|
|
9
|
+
return {
|
|
10
|
+
...(projectSummary ? { projectSummary } : {}),
|
|
11
|
+
sourceOfTruthPaths: strings(input?.sourceOfTruthPaths),
|
|
12
|
+
sourceOfTruthNotes: strings(input?.sourceOfTruthNotes),
|
|
13
|
+
priorityRoots: strings(input?.priorityRoots),
|
|
14
|
+
verificationAnchors: strings(input?.verificationAnchors),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function payoff(candidates) {
|
|
18
|
+
const projectedIfAllApplied = {};
|
|
19
|
+
for (const candidate of candidates)
|
|
20
|
+
projectedIfAllApplied[candidate.entityType] =
|
|
21
|
+
(projectedIfAllApplied[candidate.entityType] ?? 0) + 1;
|
|
22
|
+
return {
|
|
23
|
+
current: {},
|
|
24
|
+
projectedIfAllApplied,
|
|
25
|
+
delta: { ...projectedIfAllApplied },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function presentAutopilot(input) {
|
|
29
|
+
const declaredContext = normalizeBootstrapContext(input.bootstrapContext);
|
|
30
|
+
const guidance = buildGuidance({
|
|
31
|
+
root: input.root,
|
|
32
|
+
activation: input.activation,
|
|
33
|
+
declared: declaredContext,
|
|
34
|
+
candidates: input.candidates,
|
|
35
|
+
signals: input.sourceOnlySignals,
|
|
36
|
+
warnings: input.discoverySummary.scanWarnings,
|
|
37
|
+
});
|
|
38
|
+
const confidenceLevel = String(guidance.confidence.level);
|
|
39
|
+
const applyBlocked = input.activation.applyBlocked ||
|
|
40
|
+
confidenceLevel === "medium" ||
|
|
41
|
+
confidenceLevel === "low";
|
|
42
|
+
const blockedFallback = input.activation.activationMode === "vendored_blocked"
|
|
43
|
+
? `Autopilot bootstrap blocked: ${input.activation.reason}`
|
|
44
|
+
: input.activation.activationMode === "attached_thin_handoff" ||
|
|
45
|
+
input.activation.activationMode === "attached_seeded_handoff"
|
|
46
|
+
? `Autopilot handoff: ${input.activation.reason}`
|
|
47
|
+
: "Bootstrap output found no safe candidates; follow the recommended actions to continue.";
|
|
48
|
+
const baseTldr = input.candidates.length + input.sourceOnlySignals.length > 0
|
|
49
|
+
? `Bootstrap output is ready with ${input.candidates.length} safe candidate(s) and ${input.sourceOnlySignals.length} source-only authoring follow-up(s).`
|
|
50
|
+
: (input.activation.handoffMessage ?? blockedFallback);
|
|
51
|
+
const tldr = confidenceLevel === "low" && !input.activation.applyBlocked
|
|
52
|
+
? `Low-confidence bootstrap (${String(guidance.confidence.score)}): review diagnostics before proceeding. ${baseTldr}`
|
|
53
|
+
: baseTldr;
|
|
54
|
+
const applyPlan = input.candidates.flatMap((candidate) => [
|
|
55
|
+
...candidate.applyPlan,
|
|
56
|
+
]);
|
|
57
|
+
const payoffSummary = payoff(input.candidates);
|
|
58
|
+
const structuredContent = {
|
|
59
|
+
activationState: input.activation.activationState,
|
|
60
|
+
activationMode: input.activation.activationMode,
|
|
61
|
+
bootstrapMode: input.activation.activationMode,
|
|
62
|
+
activationReason: input.activation.reason,
|
|
63
|
+
applyBlocked,
|
|
64
|
+
migrationWarning: input.migrationWarning,
|
|
65
|
+
...(input.activation.handoffMessage
|
|
66
|
+
? { handoffMessage: input.activation.handoffMessage }
|
|
67
|
+
: {}),
|
|
68
|
+
confidence: guidance.confidence,
|
|
69
|
+
tldr,
|
|
70
|
+
promptBlock: guidance.promptBlock,
|
|
71
|
+
recommendedActions: guidance.actions,
|
|
72
|
+
declaredContext,
|
|
73
|
+
discoverySummary: input.discoverySummary,
|
|
74
|
+
candidates: input.candidates,
|
|
75
|
+
applyPlan,
|
|
76
|
+
suppressedCandidates: input.suppressedCandidates,
|
|
77
|
+
payoffSummary,
|
|
78
|
+
};
|
|
79
|
+
const text = applyPlan.length > 0
|
|
80
|
+
? `${tldr} Review structuredContent.applyPlan for exact sequential kb_upsert payloads before requesting approval.`
|
|
81
|
+
: tldr;
|
|
82
|
+
return {
|
|
83
|
+
content: [{ type: "text", text }],
|
|
84
|
+
structuredContent,
|
|
85
|
+
migrationWarning: input.migrationWarning,
|
|
86
|
+
candidates: input.candidates,
|
|
87
|
+
applyPlan,
|
|
88
|
+
suppressedCandidates: input.suppressedCandidates,
|
|
89
|
+
payoffSummary,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requirement-claims.d.ts","sourceRoot":"","sources":["../../../src/operations/autopilot/requirement-claims.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,wBAAgB,QAAQ,CACtB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,aAAa,GAAG,IAAI,CAsDtB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export function claimFor(statement, source, confidence, provenance) {
|
|
2
|
+
const normalized = statement.replace(/^\s*(?:[-*+]|\d+[.)])\s+/, "").trim();
|
|
3
|
+
const retention = normalized.match(/^(?<subject>.+?)\s+(?:must|shall|should)\s+be\s+retained\s+for\s+(?<value>\d+)\s+(?<unit>day|days|month|months|year|years)\.?$/i);
|
|
4
|
+
if (retention?.groups?.subject &&
|
|
5
|
+
retention.groups.value &&
|
|
6
|
+
retention.groups.unit) {
|
|
7
|
+
const unit = retention.groups.unit.toLowerCase().startsWith("day")
|
|
8
|
+
? "Days"
|
|
9
|
+
: retention.groups.unit.toLowerCase().startsWith("month")
|
|
10
|
+
? "Months"
|
|
11
|
+
: "Years";
|
|
12
|
+
return {
|
|
13
|
+
source,
|
|
14
|
+
subjectKey: retention.groups.subject
|
|
15
|
+
.replace(/^(the|a|an)\s+/i, "")
|
|
16
|
+
.trim(),
|
|
17
|
+
propertyKey: `Retention ${unit}`,
|
|
18
|
+
operator: "eq",
|
|
19
|
+
value: Number(retention.groups.value),
|
|
20
|
+
confidence,
|
|
21
|
+
provenance,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const state = normalized.match(/^(?<subject>.+?)\s+(?:must|shall|should)\s+be\s+(?<value>enabled|disabled)\.?$/i);
|
|
25
|
+
if (state?.groups?.subject && state.groups.value) {
|
|
26
|
+
return {
|
|
27
|
+
source,
|
|
28
|
+
subjectKey: state.groups.subject.trim(),
|
|
29
|
+
propertyKey: "enabled",
|
|
30
|
+
operator: "bool",
|
|
31
|
+
value: state.groups.value.toLowerCase() === "enabled",
|
|
32
|
+
confidence,
|
|
33
|
+
provenance,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const polarity = normalized.match(/^(?<subject>.+?)\s+(?:must|shall|should)\s+(?<negative>not\s+)?(?<predicate>.+?)\.?$/i);
|
|
37
|
+
if (!polarity?.groups?.subject || !polarity.groups.predicate)
|
|
38
|
+
return null;
|
|
39
|
+
return {
|
|
40
|
+
source,
|
|
41
|
+
subjectKey: polarity.groups.subject.trim(),
|
|
42
|
+
propertyKey: polarity.groups.predicate.trim(),
|
|
43
|
+
operator: "polarity",
|
|
44
|
+
value: polarity.groups.negative ? "forbid" : "require",
|
|
45
|
+
confidence,
|
|
46
|
+
provenance,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { OperationResult } from "../../public/operations/types.js";
|
|
2
|
+
export type AutopilotBootstrapContext = {
|
|
3
|
+
readonly projectSummary?: string;
|
|
4
|
+
readonly sourceOfTruthPaths?: readonly string[];
|
|
5
|
+
readonly sourceOfTruthNotes?: readonly string[];
|
|
6
|
+
readonly priorityRoots?: readonly string[];
|
|
7
|
+
readonly verificationAnchors?: readonly string[];
|
|
8
|
+
};
|
|
9
|
+
export type AutopilotGenerateArgs = {
|
|
10
|
+
readonly includeGenericMarkdown?: boolean;
|
|
11
|
+
readonly minConfidence?: number;
|
|
12
|
+
readonly maxCandidates?: number;
|
|
13
|
+
readonly entityTypes?: readonly ("req" | "scenario" | "test" | "adr" | "fact" | "symbol")[];
|
|
14
|
+
readonly bootstrapContext?: AutopilotBootstrapContext;
|
|
15
|
+
};
|
|
16
|
+
export type AutopilotConfidence = {
|
|
17
|
+
readonly score: number;
|
|
18
|
+
readonly level: "high" | "medium" | "low";
|
|
19
|
+
readonly reasons: readonly string[];
|
|
20
|
+
readonly policy: "full_actions" | "review_required" | "handoff_only";
|
|
21
|
+
};
|
|
22
|
+
export type AutopilotRecommendedAction = {
|
|
23
|
+
readonly order: number;
|
|
24
|
+
readonly kind: "query" | "upsert" | "check" | "handoff";
|
|
25
|
+
readonly description: string;
|
|
26
|
+
readonly candidateIds?: readonly string[];
|
|
27
|
+
};
|
|
28
|
+
export type AutopilotDeclaredContext = {
|
|
29
|
+
readonly projectSummary?: string;
|
|
30
|
+
readonly sourceOfTruthPaths: readonly string[];
|
|
31
|
+
readonly sourceOfTruthNotes: readonly string[];
|
|
32
|
+
readonly priorityRoots: readonly string[];
|
|
33
|
+
readonly verificationAnchors: readonly string[];
|
|
34
|
+
};
|
|
35
|
+
export type ActivationState = "root_uninitialized" | "root_partial" | "vendored_only" | "root_active_thin" | "root_active_seeded";
|
|
36
|
+
export type ActivationMode = "cold_start_bootstrap" | "repair_bootstrap" | "attached_thin_handoff" | "attached_seeded_handoff" | "vendored_blocked";
|
|
37
|
+
export declare const AUTOPILOT_PROVIDER_ORDER: readonly ["typed_kibi_docs", "generic_repo_docs", "repo_metadata", "repo_layout", "test_topology", "source_symbols"];
|
|
38
|
+
export type EvidenceProviderName = (typeof AUTOPILOT_PROVIDER_ORDER)[number];
|
|
39
|
+
export type EvidenceKind = "typed_markdown" | "symbol_manifest" | "generic_markdown" | "repo_metadata" | "repo_layout" | "test_topology" | "source_symbols";
|
|
40
|
+
export type ActivationPolicy = {
|
|
41
|
+
readonly activationState: ActivationState;
|
|
42
|
+
readonly activationMode: ActivationMode;
|
|
43
|
+
readonly applyBlocked: boolean;
|
|
44
|
+
readonly allowCandidateGeneration: boolean;
|
|
45
|
+
readonly reason: string;
|
|
46
|
+
readonly handoffMessage?: string;
|
|
47
|
+
};
|
|
48
|
+
export type AutopilotEvidence = {
|
|
49
|
+
readonly provider: EvidenceProviderName;
|
|
50
|
+
readonly kind: EvidenceKind;
|
|
51
|
+
readonly label: string;
|
|
52
|
+
readonly relativePath?: string;
|
|
53
|
+
readonly absolutePath?: string;
|
|
54
|
+
readonly content?: string;
|
|
55
|
+
readonly data: Readonly<Record<string, unknown>>;
|
|
56
|
+
};
|
|
57
|
+
export type DiscoverySummary = {
|
|
58
|
+
readonly activationState: ActivationState;
|
|
59
|
+
readonly activationMode: ActivationMode;
|
|
60
|
+
readonly applyBlocked: boolean;
|
|
61
|
+
readonly reason: string;
|
|
62
|
+
readonly handoffMessage?: string;
|
|
63
|
+
readonly vendored?: readonly string[];
|
|
64
|
+
readonly providersRun: readonly EvidenceProviderName[];
|
|
65
|
+
readonly providerCounts: Readonly<Record<string, number>>;
|
|
66
|
+
readonly detectedLanguages: readonly string[];
|
|
67
|
+
readonly detectedTestFrameworks: readonly string[];
|
|
68
|
+
readonly excludedRoots: readonly string[];
|
|
69
|
+
readonly truncated: boolean;
|
|
70
|
+
readonly scanWarnings: readonly string[];
|
|
71
|
+
};
|
|
72
|
+
export type DiscoveryResult = {
|
|
73
|
+
readonly activation: ActivationPolicy;
|
|
74
|
+
readonly evidence: readonly AutopilotEvidence[];
|
|
75
|
+
readonly ignoredSources: readonly string[];
|
|
76
|
+
readonly summary: DiscoverySummary;
|
|
77
|
+
readonly migrationWarning: string | null;
|
|
78
|
+
};
|
|
79
|
+
export type Candidate = {
|
|
80
|
+
readonly candidateId: string;
|
|
81
|
+
readonly entityType: string;
|
|
82
|
+
readonly title: string;
|
|
83
|
+
readonly sourceKind: string;
|
|
84
|
+
readonly sourcePath: string;
|
|
85
|
+
readonly confidence: number;
|
|
86
|
+
readonly confidenceBand: string;
|
|
87
|
+
readonly evidence: readonly string[];
|
|
88
|
+
readonly relationships: readonly {
|
|
89
|
+
readonly type: string;
|
|
90
|
+
readonly from: string;
|
|
91
|
+
readonly to: string;
|
|
92
|
+
}[];
|
|
93
|
+
readonly applyPlan: readonly Readonly<Record<string, unknown>>[];
|
|
94
|
+
};
|
|
95
|
+
export type SourceOnlySignal = {
|
|
96
|
+
readonly kind: "req" | "scenario" | "test";
|
|
97
|
+
readonly title: string;
|
|
98
|
+
readonly sourcePath: string;
|
|
99
|
+
readonly confidence: number;
|
|
100
|
+
readonly evidence: readonly string[];
|
|
101
|
+
};
|
|
102
|
+
export type AutopilotStructuredContent = Readonly<Record<string, unknown>> & {
|
|
103
|
+
readonly tldr: string;
|
|
104
|
+
readonly activationReason: string;
|
|
105
|
+
readonly candidates: readonly Readonly<Record<string, unknown>>[];
|
|
106
|
+
readonly applyPlan: readonly Readonly<Record<string, unknown>>[];
|
|
107
|
+
readonly suppressedCandidates: readonly Readonly<Record<string, unknown>>[];
|
|
108
|
+
};
|
|
109
|
+
export type AutopilotGenerateResult = OperationResult<AutopilotStructuredContent> & {
|
|
110
|
+
readonly structuredContent: AutopilotStructuredContent;
|
|
111
|
+
readonly migrationWarning: string | null;
|
|
112
|
+
readonly candidates: readonly Readonly<Record<string, unknown>>[];
|
|
113
|
+
readonly applyPlan: readonly Readonly<Record<string, unknown>>[];
|
|
114
|
+
readonly suppressedCandidates: readonly Readonly<Record<string, unknown>>[];
|
|
115
|
+
readonly payoffSummary: Readonly<Record<string, unknown>>;
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/operations/autopilot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,m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MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IACjE,QAAQ,CAAC,oBAAoB,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CAC7E,CAAC;AAEF,MAAM,MAAM,uBAAuB,GACjC,eAAe,CAAC,0BAA0B,CAAC,GAAG;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IACvD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IAClE,QAAQ,CAAC,SAAS,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IACjE,QAAQ,CAAC,oBAAoB,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IAC5E,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC3D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OperationContext } from "../../public/operations/runtime-types.js";
|
|
2
|
+
import { strictWriteSetToApplyPlan, writeSetPrimaryEntityId } from "./requirement-applyplan.js";
|
|
3
|
+
import { estimateNormativeSignalConfidence, extractRequirementClaim } from "./requirement-modeler.js";
|
|
4
|
+
import type { ModelRequirementArgs, ModelRequirementResult } from "./requirement-types.js";
|
|
5
|
+
export type { ModelRequirementArgs, ModelRequirementResult, } from "./requirement-types.js";
|
|
6
|
+
export { estimateNormativeSignalConfidence, extractRequirementClaim, strictWriteSetToApplyPlan, writeSetPrimaryEntityId, };
|
|
7
|
+
export declare function getWorkspaceMigrationWarning(workspaceRoot: string): Promise<string | null>;
|
|
8
|
+
export declare function handleKbModelRequirement(_prolog: unknown, args: ModelRequirementArgs, workspaceRoot: string): Promise<ModelRequirementResult>;
|
|
9
|
+
export declare function executeModelRequirement(args: ModelRequirementArgs, context: OperationContext): Promise<ModelRequirementResult>;
|
|
10
|
+
//# sourceMappingURL=model-requirement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-requirement.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/model-requirement.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAGjF,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,iCAAiC,EACjC,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EACV,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iCAAiC,EACjC,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,GACxB,CAAC;AAEF,wBAAsB,4BAA4B,CAChD,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgBxB;AAED,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,oBAAoB,EAC1B,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,sBAAsB,CAAC,CAmFjC;AAED,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,sBAAsB,CAAC,CAEjC"}
|