kibi-cli 2.0.0 → 2.2.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/dist/cli-protocol.d.ts.map +1 -1
- package/dist/cli-protocol.js +3 -2
- package/dist/cli-register-proof.d.ts.map +1 -1
- package/dist/cli-register-proof.js +25 -1
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +6 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/commands/aggregated-checks.d.ts +7 -0
- package/dist/commands/aggregated-checks.d.ts.map +1 -1
- package/dist/commands/aggregated-checks.js +25 -1
- package/dist/commands/check-generated.d.ts +7 -0
- package/dist/commands/check-generated.d.ts.map +1 -0
- package/dist/commands/check-generated.js +192 -0
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +24 -15
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +227 -25
- package/dist/commands/engine.d.ts.map +1 -1
- package/dist/commands/engine.js +3 -1
- package/dist/commands/github-init.d.ts +1 -1
- package/dist/commands/github-init.d.ts.map +1 -1
- package/dist/commands/github-init.js +1 -1
- package/dist/commands/init-helpers.d.ts +17 -2
- package/dist/commands/init-helpers.d.ts.map +1 -1
- package/dist/commands/init-helpers.js +136 -30
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +110 -15
- package/dist/commands/proof-explain.d.ts +10 -0
- package/dist/commands/proof-explain.d.ts.map +1 -0
- package/dist/commands/proof-explain.js +45 -0
- package/dist/commands/proof-impact.d.ts +7 -0
- package/dist/commands/proof-impact.d.ts.map +1 -0
- package/dist/commands/proof-impact.js +39 -0
- package/dist/commands/proof-migrate-legacy.js +1 -1
- package/dist/commands/proof-prune.js +1 -1
- package/dist/commands/prove.d.ts.map +1 -1
- package/dist/commands/prove.js +14 -22
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +17 -2
- package/dist/commands/sync/cache.d.ts +20 -1
- package/dist/commands/sync/cache.d.ts.map +1 -1
- package/dist/commands/sync/cache.js +51 -2
- package/dist/commands/sync/discovery.d.ts.map +1 -1
- package/dist/commands/sync/discovery.js +1 -1
- package/dist/commands/sync/manifest.d.ts +1 -0
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +18 -16
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +14 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +11 -3
- package/dist/engine.d.ts +29 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +259 -89
- package/dist/env/bootstrap.d.ts +84 -0
- package/dist/env/bootstrap.d.ts.map +1 -0
- package/dist/env/bootstrap.js +310 -0
- package/dist/extractors/manifest.d.ts.map +1 -1
- package/dist/extractors/manifest.js +67 -29
- package/dist/extractors/markdown.d.ts +4 -0
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +33 -3
- package/dist/extractors/relationships.d.ts.map +1 -1
- package/dist/extractors/relationships.js +1 -0
- package/dist/extractors/symbols-coordinator.d.ts +8 -0
- package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
- package/dist/extractors/symbols-coordinator.js +40 -0
- package/dist/extractors/symbols-ts.d.ts +8 -19
- package/dist/extractors/symbols-ts.d.ts.map +1 -1
- package/dist/extractors/symbols-ts.js +33 -503
- package/dist/intent-search.d.ts.map +1 -1
- package/dist/intent-search.js +68 -30
- package/dist/operations/bootstrap/generate.d.ts.map +1 -1
- package/dist/operations/bootstrap/generate.js +4 -3
- package/dist/operations/modeling/model-requirement.d.ts +1 -1
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
- package/dist/operations/modeling/model-requirement.js +179 -9
- package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-applyplan.js +14 -2
- package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-loader.js +24 -0
- package/dist/operations/modeling/predicate-types.d.ts +4 -0
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-vocabulary.d.ts +54 -0
- package/dist/operations/modeling/predicate-vocabulary.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-vocabulary.js +169 -0
- package/dist/operations/modeling/requirement-types.d.ts +5 -0
- package/dist/operations/modeling/requirement-types.d.ts.map +1 -1
- package/dist/operations/modeling/suggest-predicates.d.ts +1 -1
- package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
- package/dist/operations/modeling/suggest-predicates.js +30 -3
- package/dist/operations/modeling/vocabulary-alignment.d.ts +60 -0
- package/dist/operations/modeling/vocabulary-alignment.d.ts.map +1 -0
- package/dist/operations/modeling/vocabulary-alignment.js +178 -0
- package/dist/operations/mutation/contradictions.d.ts +3 -0
- package/dist/operations/mutation/contradictions.d.ts.map +1 -1
- package/dist/operations/mutation/contradictions.js +29 -0
- package/dist/operations/mutation/delete.d.ts.map +1 -1
- package/dist/operations/mutation/delete.js +33 -1
- package/dist/operations/mutation/predicate-vocabulary-guard.d.ts +8 -0
- package/dist/operations/mutation/predicate-vocabulary-guard.d.ts.map +1 -0
- package/dist/operations/mutation/predicate-vocabulary-guard.js +64 -0
- package/dist/operations/mutation/relationships.d.ts +1 -1
- package/dist/operations/mutation/relationships.d.ts.map +1 -1
- package/dist/operations/mutation/relationships.js +1 -0
- package/dist/operations/mutation/saga.d.ts +5 -0
- package/dist/operations/mutation/saga.d.ts.map +1 -1
- package/dist/operations/mutation/saga.js +10 -0
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +2 -0
- package/dist/operations/mutation/source-authoring.d.ts +6 -0
- package/dist/operations/mutation/source-authoring.d.ts.map +1 -1
- package/dist/operations/mutation/source-authoring.js +65 -26
- package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
- package/dist/operations/mutation/strict-fact.js +5 -0
- package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-granularity.js +9 -87
- package/dist/operations/mutation/types.d.ts +17 -0
- package/dist/operations/mutation/types.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.d.ts +6 -0
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +72 -4
- package/dist/operations/mutation/validate-upsert.d.ts.map +1 -1
- package/dist/operations/mutation/validate-upsert.js +24 -1
- package/dist/operations/mutation/validation.d.ts.map +1 -1
- package/dist/operations/mutation/validation.js +16 -3
- package/dist/operations/planning/apply-plan.d.ts.map +1 -1
- package/dist/operations/planning/apply-plan.js +61 -17
- package/dist/operations/planning/compile-intent.d.ts +49 -0
- package/dist/operations/planning/compile-intent.d.ts.map +1 -1
- package/dist/operations/planning/compile-intent.js +66 -4
- package/dist/operations/proof/baseline-diff.d.ts +41 -0
- package/dist/operations/proof/baseline-diff.d.ts.map +1 -0
- package/dist/operations/proof/baseline-diff.js +153 -0
- package/dist/operations/proof/code-scope.d.ts +17 -0
- package/dist/operations/proof/code-scope.d.ts.map +1 -0
- package/dist/operations/proof/code-scope.js +60 -0
- package/dist/operations/proof/explain.d.ts +75 -0
- package/dist/operations/proof/explain.d.ts.map +1 -0
- package/dist/operations/proof/explain.js +294 -0
- package/dist/operations/proof/impact.d.ts +45 -0
- package/dist/operations/proof/impact.d.ts.map +1 -0
- package/dist/operations/proof/impact.js +118 -0
- package/dist/operations/proof/ingest-proof.d.ts +4 -2
- package/dist/operations/proof/ingest-proof.d.ts.map +1 -1
- package/dist/operations/proof/ingest-proof.js +251 -77
- package/dist/operations/proof/migrate-legacy-receipts.d.ts.map +1 -1
- package/dist/operations/proof/migrate-legacy-receipts.js +28 -22
- package/dist/operations/proof/prune-receipts.d.ts.map +1 -1
- package/dist/operations/proof/prune-receipts.js +8 -6
- package/dist/operations/proof/receipt-document.js +2 -2
- package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analysis-receipt.js +3 -9
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.js +18 -67
- package/dist/operations/semantic-advisor/plugin-orchestration.d.ts +63 -0
- package/dist/operations/semantic-advisor/plugin-orchestration.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/plugin-orchestration.js +489 -0
- package/dist/operations/semantic-advisor/predicate-rules-core.d.ts +15 -2
- package/dist/operations/semantic-advisor/predicate-rules-core.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/predicate-rules-core.js +7 -140
- package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts +11 -12
- package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/predicate-rules-launcher.js +6 -94
- package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts +16 -0
- package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/predicate-rules-policy.js +7 -150
- package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts +9 -0
- package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/predicate-rules-product-tail.js +7 -102
- package/dist/operations/semantic-advisor/predicate-rules-product.d.ts +13 -0
- package/dist/operations/semantic-advisor/predicate-rules-product.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/predicate-rules-product.js +7 -133
- package/dist/operations/semantic-advisor/types.d.ts +1 -0
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/plugins/compose-ontology-packs.d.ts +51 -0
- package/dist/plugins/compose-ontology-packs.d.ts.map +1 -0
- package/dist/plugins/compose-ontology-packs.js +257 -0
- package/dist/plugins/compose-semantic-classifier.d.ts +47 -0
- package/dist/plugins/compose-semantic-classifier.d.ts.map +1 -0
- package/dist/plugins/compose-semantic-classifier.js +216 -0
- package/dist/plugins/compose-vocabulary-alignment.d.ts +23 -0
- package/dist/plugins/compose-vocabulary-alignment.d.ts.map +1 -0
- package/dist/plugins/compose-vocabulary-alignment.js +141 -0
- package/dist/plugins/external-allowlist.d.ts +17 -0
- package/dist/plugins/external-allowlist.d.ts.map +1 -0
- package/dist/plugins/external-allowlist.js +29 -0
- package/dist/plugins/index.d.ts +11 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +37 -0
- package/dist/plugins/load-plugin.d.ts +19 -0
- package/dist/plugins/load-plugin.d.ts.map +1 -0
- package/dist/plugins/load-plugin.js +59 -0
- package/dist/plugins/project-config.d.ts +28 -0
- package/dist/plugins/project-config.d.ts.map +1 -0
- package/dist/plugins/project-config.js +90 -0
- package/dist/plugins/registry.d.ts +94 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +359 -0
- package/dist/plugins/resolve-package.d.ts +47 -0
- package/dist/plugins/resolve-package.d.ts.map +1 -0
- package/dist/plugins/resolve-package.js +262 -0
- package/dist/plugins/source-analysis-service.d.ts +44 -0
- package/dist/plugins/source-analysis-service.d.ts.map +1 -0
- package/dist/plugins/source-analysis-service.js +232 -0
- package/dist/prolog/codec.d.ts.map +1 -1
- package/dist/prolog/codec.js +2 -0
- package/dist/prolog/janitor.d.ts.map +1 -1
- package/dist/prolog/janitor.js +1 -1
- package/dist/prolog/store-lock.d.ts +1 -1
- package/dist/prolog/store-lock.d.ts.map +1 -1
- package/dist/prolog.d.ts +36 -0
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +78 -9
- package/dist/proof/inspect.js +1 -1
- package/dist/proof/producers/playwright-case-id.js +2 -2
- package/dist/proof/producers/playwright-reporter.js +4 -4
- package/dist/public/diagnostic-usage.d.ts.map +1 -1
- package/dist/public/diagnostic-usage.js +7 -25
- package/dist/public/extractors/symbols-coordinator.d.ts +1 -1
- package/dist/public/extractors/symbols-coordinator.d.ts.map +1 -1
- package/dist/public/extractors/symbols-coordinator.js +1 -1
- package/dist/public/impact/analyzer.d.ts +1 -1
- package/dist/public/impact/analyzer.d.ts.map +1 -1
- package/dist/public/impact/analyzer.js +6 -4
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +4 -12
- package/dist/public/operations/catalog.d.ts +39 -7
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +11 -3
- package/dist/public/operations/check-helpers.d.ts +7 -1
- package/dist/public/operations/check-helpers.d.ts.map +1 -1
- package/dist/public/operations/check-helpers.js +22 -2
- package/dist/public/operations/contracts.d.ts.map +1 -1
- package/dist/public/operations/contracts.js +51 -12
- package/dist/public/operations/discovery-entities.d.ts +53 -1
- package/dist/public/operations/discovery-entities.d.ts.map +1 -1
- package/dist/public/operations/discovery-entities.js +219 -12
- package/dist/public/operations/discovery-executors.d.ts +1 -0
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +93 -59
- package/dist/public/operations/migration-plan.d.ts +2 -0
- package/dist/public/operations/migration-plan.d.ts.map +1 -1
- package/dist/public/operations/migration-plan.js +50 -0
- package/dist/public/operations/predicate-schema-conformance.d.ts +41 -0
- package/dist/public/operations/predicate-schema-conformance.d.ts.map +1 -0
- package/dist/public/operations/predicate-schema-conformance.js +242 -0
- package/dist/public/operations/prolog-json.d.ts +1 -1
- package/dist/public/operations/prolog-json.d.ts.map +1 -1
- package/dist/public/operations/prolog-json.js +16 -10
- package/dist/public/operations/result-envelope.d.ts +34 -1
- package/dist/public/operations/result-envelope.d.ts.map +1 -1
- package/dist/public/operations/result-envelope.js +78 -2
- package/dist/public/operations/runtime-types.d.ts +17 -2
- package/dist/public/operations/runtime-types.d.ts.map +1 -1
- package/dist/public/operations/specs/check-rules.generated.d.ts +1 -1
- package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -1
- package/dist/public/operations/specs/check-rules.generated.js +9 -1
- package/dist/public/operations/specs/check.d.ts +1 -1
- package/dist/public/operations/specs/discovery.d.ts +10 -1
- package/dist/public/operations/specs/discovery.d.ts.map +1 -1
- package/dist/public/operations/specs/discovery.js +10 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts +27 -4
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +21 -3
- package/dist/public/operations/specs/proof.js +1 -1
- package/dist/public/operations/specs/reporting.d.ts +9 -0
- package/dist/public/operations/specs/reporting.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.js +48 -17
- package/dist/public/operations/specs/semantic.d.ts +1 -1
- package/dist/public/operations/specs/semantic.d.ts.map +1 -1
- package/dist/public/operations/specs/semantic.js +54 -4
- package/dist/public/operations/specs/upsert.d.ts +28 -5
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/operations/specs/upsert.js +1 -1
- package/dist/public/operations/symbol-repair-plan.d.ts.map +1 -1
- package/dist/public/operations/symbol-repair-plan.js +11 -4
- package/dist/public/operations/types.d.ts +5 -0
- package/dist/public/operations/types.d.ts.map +1 -1
- package/dist/public/proof-protocol.js +4 -4
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +22 -0
- package/dist/public/schemas/relationship.d.ts.map +1 -1
- package/dist/public/schemas/relationship.js +1 -0
- package/dist/public/skills/kibi-usage/SKILL.md +10 -3
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +4 -0
- package/dist/public/skills/kibi-usage/resources/proof.md +45 -0
- package/dist/public/skills/kibi-usage/resources/relationship-directions.md +35 -17
- package/dist/public/skills/kibi-usage/resources/source-authoring.md +36 -0
- package/dist/public/skills/kibi-usage/resources/workflows.md +52 -1
- package/dist/public/symbol-granularity.d.ts +1 -1
- package/dist/public/symbol-granularity.d.ts.map +1 -1
- package/dist/public/symbol-granularity.generated.d.ts.map +1 -1
- package/dist/public/symbol-granularity.generated.js +38 -5
- package/dist/public/telemetry-acceptance.d.ts.map +1 -1
- package/dist/public/telemetry-acceptance.js +21 -5
- package/dist/relationships/shards.d.ts +6 -0
- package/dist/relationships/shards.d.ts.map +1 -1
- package/dist/relationships/shards.js +26 -19
- package/dist/report/html-report.css +1239 -281
- package/dist/runtime/cli-runtime.d.ts.map +1 -1
- package/dist/runtime/cli-runtime.js +18 -0
- package/dist/schemas/entity.schema.json +32 -0
- package/dist/traceability/staged-diagnostics.d.ts +1 -1
- package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
- package/dist/traceability/staged-entity-id-style.d.ts +12 -0
- package/dist/traceability/staged-entity-id-style.d.ts.map +1 -0
- package/dist/traceability/staged-entity-id-style.js +68 -0
- package/dist/traceability/symbol-extract.d.ts +24 -7
- package/dist/traceability/symbol-extract.d.ts.map +1 -1
- package/dist/traceability/symbol-extract.js +64 -208
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +8 -0
- package/dist/traceability/validate.js +1 -1
- package/dist/types/entities.d.ts +2 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/types/relationships.d.ts +1 -1
- package/dist/types/relationships.d.ts.map +1 -1
- package/dist/utils/entity-id-style.d.ts +27 -0
- package/dist/utils/entity-id-style.d.ts.map +1 -0
- package/dist/utils/entity-id-style.js +81 -0
- package/dist/utils/git-repository-context.d.ts +50 -0
- package/dist/utils/git-repository-context.d.ts.map +1 -0
- package/dist/utils/git-repository-context.js +259 -0
- package/dist/utils/rule-registry.d.ts +5 -0
- package/dist/utils/rule-registry.d.ts.map +1 -1
- package/dist/utils/rule-registry.generated.d.ts +42 -0
- package/dist/utils/rule-registry.generated.d.ts.map +1 -1
- package/dist/utils/rule-registry.generated.js +50 -0
- package/dist/utils/strict-modeling.d.ts +7 -0
- package/dist/utils/strict-modeling.d.ts.map +1 -1
- package/dist/utils/strict-modeling.js +11 -0
- package/package.json +14 -11
- package/schema/entities.pl +60 -1
- package/schema/relationships.pl +17 -4
- package/schema/validation.pl +118 -20
- package/src/public/diagnostic-usage.ts +16 -24
- package/src/public/extractors/symbols-coordinator.ts +1 -0
- package/src/public/impact/analyzer.ts +15 -12
- package/src/public/impact/full-kb-quality.ts +4 -16
- package/src/public/operations/check-executor.ts +13 -2
- package/src/public/operations/check-helpers.ts +29 -3
- package/src/public/operations/contracts.ts +59 -12
- package/src/public/operations/discovery-entities.ts +327 -12
- package/src/public/operations/discovery-executors.ts +110 -61
- package/src/public/operations/migration-plan.ts +57 -0
- package/src/public/operations/predicate-schema-conformance.ts +362 -0
- package/src/public/operations/prolog-json.ts +22 -8
- package/src/public/operations/result-envelope.ts +114 -2
- package/src/public/operations/runtime-types.ts +22 -3
- package/src/public/operations/specs/check-rules.generated.ts +9 -1
- package/src/public/operations/specs/discovery.ts +11 -1
- package/src/public/operations/specs/mutation-schemas.ts +23 -3
- package/src/public/operations/specs/proof.ts +1 -1
- package/src/public/operations/specs/reporting.ts +71 -24
- package/src/public/operations/specs/semantic.ts +79 -17
- package/src/public/operations/specs/upsert.ts +1 -1
- package/src/public/operations/symbol-repair-plan.ts +16 -7
- package/src/public/operations/types.ts +5 -0
- package/src/public/proof-fingerprint.ts +1 -1
- package/src/public/proof-protocol-types.d.ts +1 -1
- package/src/public/proof-protocol.ts +4 -4
- package/src/public/schemas/entity.ts +22 -0
- package/src/public/schemas/relationship.ts +1 -0
- package/src/public/skills/kibi-usage/SKILL.md +10 -3
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +4 -0
- package/src/public/skills/kibi-usage/resources/proof.md +45 -0
- package/src/public/skills/kibi-usage/resources/relationship-directions.md +35 -17
- package/src/public/skills/kibi-usage/resources/source-authoring.md +36 -0
- package/src/public/skills/kibi-usage/resources/workflows.md +52 -1
- package/src/public/symbol-granularity.generated.ts +45 -12
- package/src/public/symbol-granularity.ts +3 -3
- package/src/public/telemetry-acceptance.ts +37 -6
- package/src/schemas/entity.schema.json +32 -0
- package/src/schemas/relationship.schema.json +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/cli-runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/cli-runtime.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAKV,gBAAgB,EAEhB,cAAc,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAC;AAErC,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,qBAAqB,GAChC,MAAM,CAOR;AAkFD,wBAAgB,gBAAgB,CAC9B,OAAO,GAAE,cAAmB,GAC3B,gBAAgB,CAwHlB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { retryAttachAfterBreakingStaleLock } from "../prolog/store-lock.js";
|
|
3
3
|
import { EngineClient } from "../engine.js";
|
|
4
|
+
import { CapabilityRegistryCache, ensureCapabilityRegistry, } from "../plugins/registry.js";
|
|
4
5
|
import { nodeFilesystem, nodeGit, nodeNetwork, } from "../public/operations/node-ports.js";
|
|
5
6
|
import { resolveBranchAttachment, } from "../utils/branch-resolver.js";
|
|
6
7
|
export function attachmentFailureMessage(attachment) {
|
|
@@ -57,9 +58,18 @@ function enginePort(port, signal) {
|
|
|
57
58
|
execute: (command, commandSignal) => execute.call(port, command, commandSignal ?? signal),
|
|
58
59
|
};
|
|
59
60
|
}
|
|
61
|
+
function resolvePluginsOption(plugins) {
|
|
62
|
+
if (plugins === undefined)
|
|
63
|
+
return undefined;
|
|
64
|
+
if (typeof plugins === "function")
|
|
65
|
+
return plugins;
|
|
66
|
+
return async () => plugins;
|
|
67
|
+
}
|
|
60
68
|
// implements REQ-kibi-operation-interface-parity
|
|
61
69
|
export function createCliRuntime(options = {}) {
|
|
62
70
|
const ownedPrologs = new WeakMap();
|
|
71
|
+
// Per-runtime cache — not a process-global singleton.
|
|
72
|
+
const pluginCache = new CapabilityRegistryCache();
|
|
63
73
|
return {
|
|
64
74
|
open: async (spec, invocationOptions = {}) => {
|
|
65
75
|
const merged = {
|
|
@@ -70,6 +80,12 @@ export function createCliRuntime(options = {}) {
|
|
|
70
80
|
const signal = merged.signal ?? new AbortController().signal;
|
|
71
81
|
const clock = merged.clock ?? (() => new Date());
|
|
72
82
|
const git = merged.git ?? nodeGit;
|
|
83
|
+
const injectedPlugins = resolvePluginsOption(merged.plugins);
|
|
84
|
+
const ensurePlugins = async () => {
|
|
85
|
+
if (injectedPlugins)
|
|
86
|
+
return injectedPlugins();
|
|
87
|
+
return ensureCapabilityRegistry(root, { cache: pluginCache });
|
|
88
|
+
};
|
|
73
89
|
const contextBase = {
|
|
74
90
|
workspaceRoot: root,
|
|
75
91
|
signal,
|
|
@@ -77,6 +93,8 @@ export function createCliRuntime(options = {}) {
|
|
|
77
93
|
fs: merged.fs ?? nodeFilesystem,
|
|
78
94
|
git,
|
|
79
95
|
net: merged.net ?? nodeNetwork,
|
|
96
|
+
ensurePlugins,
|
|
97
|
+
...(merged.plugins !== undefined ? { plugins: merged.plugins } : {}),
|
|
80
98
|
};
|
|
81
99
|
if (!spec.requiresProlog) {
|
|
82
100
|
// Read-only operations such as status may choose to use an explicitly
|
|
@@ -1173,6 +1173,28 @@
|
|
|
1173
1173
|
"type": "string"
|
|
1174
1174
|
}
|
|
1175
1175
|
},
|
|
1176
|
+
"argument_constants": {
|
|
1177
|
+
"type": "object",
|
|
1178
|
+
"additionalProperties": {
|
|
1179
|
+
"type": "array",
|
|
1180
|
+
"minItems": 1,
|
|
1181
|
+
"uniqueItems": true,
|
|
1182
|
+
"items": {
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
"minLength": 1
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
"argument_aliases": {
|
|
1189
|
+
"type": "object",
|
|
1190
|
+
"additionalProperties": {
|
|
1191
|
+
"type": "object",
|
|
1192
|
+
"additionalProperties": {
|
|
1193
|
+
"type": "string",
|
|
1194
|
+
"minLength": 1
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1176
1198
|
"rule_ir": {
|
|
1177
1199
|
"$ref": "#/$defs/logicRule"
|
|
1178
1200
|
},
|
|
@@ -1373,6 +1395,16 @@
|
|
|
1373
1395
|
"predicate_args"
|
|
1374
1396
|
]
|
|
1375
1397
|
},
|
|
1398
|
+
{
|
|
1399
|
+
"required": [
|
|
1400
|
+
"argument_constants"
|
|
1401
|
+
]
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"required": [
|
|
1405
|
+
"argument_aliases"
|
|
1406
|
+
]
|
|
1407
|
+
},
|
|
1376
1408
|
{
|
|
1377
1409
|
"required": [
|
|
1378
1410
|
"rule_ir"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { QualityDiagnostic } from "../public/impact/types.js";
|
|
2
2
|
import { type KibiImpactEvidence } from "./evidence-model.js";
|
|
3
|
-
export type KibiImpactDiagnosticId = "kibi_impact_evidence_missing" | "symbols_manifest_stale" | "symbol_granularity_violation" | "symbol_semantic_review_needed" | "multi_requirement_symbol_review" | "duplicate_symbol_coordinate_review" | "component_mixed_purpose_review" | "broad_requirement_review" | "requirement_status_review" | "strict_fact_modeling_review" | "logical_coverage_review" | "kibi_impact_override_missing_rationale";
|
|
3
|
+
export type KibiImpactDiagnosticId = "kibi_impact_evidence_missing" | "symbols_manifest_stale" | "symbol_granularity_violation" | "symbol_semantic_review_needed" | "multi_requirement_symbol_review" | "duplicate_symbol_coordinate_review" | "component_mixed_purpose_review" | "broad_requirement_review" | "requirement_status_review" | "strict_fact_modeling_review" | "logical_coverage_review" | "kibi_impact_override_missing_rationale" | "entity_id_style_review";
|
|
4
4
|
export interface KibiImpactDiagnostic extends QualityDiagnostic {
|
|
5
5
|
/** Stable staged-enforcement diagnostic identifier. */
|
|
6
6
|
id: KibiImpactDiagnosticId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staged-diagnostics.d.ts","sourceRoot":"","sources":["../../src/traceability/staged-diagnostics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAGL,KAAK,kBAAkB,EAKxB,MAAM,qBAAqB,CAAC;AAQ7B,MAAM,MAAM,sBAAsB,GAC9B,8BAA8B,GAC9B,wBAAwB,GACxB,8BAA8B,GAC9B,+BAA+B,GAC/B,iCAAiC,GACjC,oCAAoC,GACpC,gCAAgC,GAChC,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,yBAAyB,GACzB,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"staged-diagnostics.d.ts","sourceRoot":"","sources":["../../src/traceability/staged-diagnostics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAGL,KAAK,kBAAkB,EAKxB,MAAM,qBAAqB,CAAC;AAQ7B,MAAM,MAAM,sBAAsB,GAC9B,8BAA8B,GAC9B,wBAAwB,GACxB,8BAA8B,GAC9B,+BAA+B,GAC/B,iCAAiC,GACjC,oCAAoC,GACpC,gCAAgC,GAChC,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,yBAAyB,GACzB,wCAAwC,GACxC,wBAAwB,CAAC;AAE7B,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,uDAAuD;IACvD,EAAE,EAAE,sBAAsB,CAAC;IAC3B,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACxC,iEAAiE;IACjE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,gDAAgD;IAChD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAwID,wBAAgB,wCAAwC,CACtD,QAAQ,EAAE,kBAAkB,GAC3B,oBAAoB,CAoBtB;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,kBAAkB,EAC5B,mBAAmB,GAAE,MAAmC,GACvD,oBAAoB,EAAE,CAiDxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StagedFile } from "./git-staged.js";
|
|
2
|
+
import type { KibiImpactDiagnostic } from "./staged-diagnostics.js";
|
|
3
|
+
/**
|
|
4
|
+
* Naming-style review for entity Markdown that this commit introduces.
|
|
5
|
+
*
|
|
6
|
+
* Only added or renamed files are evaluated: a staged edit to a committed
|
|
7
|
+
* legacy entity such as `REQ-003.md` is never reported, so the legacy numbered
|
|
8
|
+
* lanes stay grandfathered without a cutoff date or history lookup. The
|
|
9
|
+
* diagnostics are advisory and never block a commit.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createStagedEntityIdStyleDiagnostics(stagedFiles: readonly StagedFile[]): KibiImpactDiagnostic[];
|
|
12
|
+
//# sourceMappingURL=staged-entity-id-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staged-entity-id-style.d.ts","sourceRoot":"","sources":["../../src/traceability/staged-entity-id-style.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;;;;GAOG;AAEH,wBAAgB,oCAAoC,CAClD,WAAW,EAAE,SAAS,UAAU,EAAE,GACjC,oBAAoB,EAAE,CAuBxB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
+
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU Affero General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { extractFromMarkdownString } from "../extractors/markdown.js";
|
|
19
|
+
import { entityIdStyleIssues } from "../utils/entity-id-style.js";
|
|
20
|
+
import { isEntityLanePath } from "../utils/kb-paths.js";
|
|
21
|
+
/**
|
|
22
|
+
* Naming-style review for entity Markdown that this commit introduces.
|
|
23
|
+
*
|
|
24
|
+
* Only added or renamed files are evaluated: a staged edit to a committed
|
|
25
|
+
* legacy entity such as `REQ-003.md` is never reported, so the legacy numbered
|
|
26
|
+
* lanes stay grandfathered without a cutoff date or history lookup. The
|
|
27
|
+
* diagnostics are advisory and never block a commit.
|
|
28
|
+
*/
|
|
29
|
+
// implements REQ-kibi-entity-id-style
|
|
30
|
+
export function createStagedEntityIdStyleDiagnostics(stagedFiles) {
|
|
31
|
+
const diagnostics = [];
|
|
32
|
+
for (const file of stagedFiles) {
|
|
33
|
+
if (file.status !== "A" && file.status !== "R")
|
|
34
|
+
continue;
|
|
35
|
+
if (!file.path.endsWith(".md") || !isEntityLanePath(file.path))
|
|
36
|
+
continue;
|
|
37
|
+
const id = readEntityId(file);
|
|
38
|
+
if (id === undefined)
|
|
39
|
+
continue;
|
|
40
|
+
for (const issue of entityIdStyleIssues({ id, sourcePath: file.path })) {
|
|
41
|
+
diagnostics.push({
|
|
42
|
+
id: "entity_id_style_review",
|
|
43
|
+
severity: "warning",
|
|
44
|
+
blocking: false,
|
|
45
|
+
category: "naming",
|
|
46
|
+
entityId: id,
|
|
47
|
+
source: file.path,
|
|
48
|
+
files: [file.path],
|
|
49
|
+
docs: ["docs/entity-schema.md"],
|
|
50
|
+
message: issue.message,
|
|
51
|
+
suggestion: issue.suggestion,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return diagnostics;
|
|
56
|
+
}
|
|
57
|
+
function readEntityId(file) {
|
|
58
|
+
if (file.content === undefined)
|
|
59
|
+
return undefined;
|
|
60
|
+
try {
|
|
61
|
+
const id = extractFromMarkdownString(file.content, file.path).entity.id;
|
|
62
|
+
return typeof id === "string" && id.trim() !== "" ? id.trim() : undefined;
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
// Frontmatter errors are reported by staged Markdown validation.
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SourceAnalysisResult as SdkSourceAnalysisResult } from "kibi-plugin-sdk";
|
|
2
|
+
import { isPrivateClassMember } from "../extractors/symbols-ts.js";
|
|
2
3
|
import { type SymbolKind, type SymbolRole } from "../public/symbol-granularity.js";
|
|
3
4
|
import type { HunkRange, StagedFile } from "./git-staged.js";
|
|
5
|
+
type SourceAnalysisResult = SdkSourceAnalysisResult & {
|
|
6
|
+
providerId?: string | null;
|
|
7
|
+
};
|
|
4
8
|
type TraceabilityRelationship = {
|
|
5
9
|
type: string;
|
|
6
10
|
to: string;
|
|
@@ -25,10 +29,23 @@ export interface ManifestLookupEntry {
|
|
|
25
29
|
}
|
|
26
30
|
export type ManifestLookup = Map<string, ManifestLookupEntry>;
|
|
27
31
|
export declare function createManifestLookupSentinelKey(manifestPath: string): string;
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
export type ExtractSymbolsOptions = Readonly<{
|
|
33
|
+
/**
|
|
34
|
+
* Host-owned analysis. Prefer SourceAnalysisService / capability registry.
|
|
35
|
+
* When omitted, falls back to the builtin ts-morph provider for parity.
|
|
36
|
+
*/
|
|
37
|
+
analyzeText?: (filePath: string, content: string) => SourceAnalysisResult | null | Promise<SourceAnalysisResult | null>;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function extractSymbolsFromStagedFile(stagedFile: StagedFile, manifestLookup?: ManifestLookup, options?: ExtractSymbolsOptions): ExtractedSymbol[];
|
|
40
|
+
/**
|
|
41
|
+
* Async staged symbol extraction. Defaults to deterministic builtin analysis.
|
|
42
|
+
* Pass an explicit `registry` only from allowlisted async surfaces that compose
|
|
43
|
+
* replace/augment/shadow (e.g. symbol repair). Maintenance paths (`check`,
|
|
44
|
+
* impact, sync, status, proof) must omit `registry` so external extractors
|
|
45
|
+
* never participate.
|
|
46
|
+
*/
|
|
47
|
+
export declare function extractSymbolsFromStagedFileAsync(stagedFile: StagedFile, manifestLookup: ManifestLookup | undefined, options: ExtractSymbolsOptions & Readonly<{
|
|
48
|
+
registry?: import("../plugins/registry.js").CapabilityRegistry;
|
|
49
|
+
}>): Promise<ExtractedSymbol[]>;
|
|
50
|
+
export { isPrivateClassMember };
|
|
34
51
|
//# sourceMappingURL=symbol-extract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol-extract.d.ts","sourceRoot":"","sources":["../../src/traceability/symbol-extract.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"symbol-extract.d.ts","sourceRoot":"","sources":["../../src/traceability/symbol-extract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,IAAI,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAEvF,OAAO,EAEL,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EAEhB,MAAM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B,OAAO,CAAC,EAAE,qBAAqB,GAC9B,eAAe,EAAE,CAkCnB;AAED;;;;;;GAMG;AAEH,wBAAsB,iCAAiC,CACrD,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,OAAO,EAAE,qBAAqB,GAC5B,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,OAAO,wBAAwB,EAAE,kBAAkB,CAAC;CAChE,CAAC,GACH,OAAO,CAAC,eAAe,EAAE,CAAC,CA8B5B;AAwCD,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { Project, Scope, ScriptKind } from "ts-morph";
|
|
3
2
|
import { readManifestWithCoordinateOverlay } from "../extractors/manifest.js";
|
|
3
|
+
import { createTsMorphSourceAnalysisProvider, isPrivateClassMember, } from "../extractors/symbols-ts.js";
|
|
4
4
|
import { inferSymbolRole, } from "../public/symbol-granularity.js";
|
|
5
5
|
const TRACEABILITY_RELATIONSHIP_TYPES = new Set([
|
|
6
6
|
"implements",
|
|
@@ -122,24 +122,13 @@ function buildSymbolResult(stagedFile, name, kind, span, inlineReqLinks, manifes
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
// Simple in-memory cache keyed by blob sha with 30s TTL
|
|
125
|
-
const
|
|
125
|
+
const analysisCache = new Map();
|
|
126
126
|
const CACHE_TTL_MS = 30 * 1000;
|
|
127
|
-
const project = new Project({ skipAddingFilesFromTsConfig: true });
|
|
128
127
|
function computeContentSha(content) {
|
|
129
128
|
const h = createHash("sha256");
|
|
130
129
|
h.update(content);
|
|
131
130
|
return h.digest("hex");
|
|
132
131
|
}
|
|
133
|
-
function chooseScriptKind(path) {
|
|
134
|
-
const lower = path.toLowerCase();
|
|
135
|
-
if (lower.endsWith(".tsx"))
|
|
136
|
-
return ScriptKind.TSX;
|
|
137
|
-
if (lower.endsWith(".ts") || lower.endsWith(".mts") || lower.endsWith(".cts"))
|
|
138
|
-
return ScriptKind.TS;
|
|
139
|
-
if (lower.endsWith(".jsx"))
|
|
140
|
-
return ScriptKind.JSX;
|
|
141
|
-
return ScriptKind.JS;
|
|
142
|
-
}
|
|
143
132
|
function parseReqDirectives(text) {
|
|
144
133
|
// look for lines containing implements REQ-123 or implements: REQ-1, REQ-2
|
|
145
134
|
// Stop at end-of-line and only accept IDs starting with an uppercase letter
|
|
@@ -167,210 +156,92 @@ function parseReqDirectives(text) {
|
|
|
167
156
|
function rangesIntersect(aStart, aEnd, bStart, bEnd) {
|
|
168
157
|
return aStart <= bEnd && bStart <= aEnd;
|
|
169
158
|
}
|
|
159
|
+
function analyzeWithBuiltinFallback(filePath, content) {
|
|
160
|
+
const provider = createTsMorphSourceAnalysisProvider();
|
|
161
|
+
if (!provider.supportsFile(filePath))
|
|
162
|
+
return null;
|
|
163
|
+
return provider.analyzeText(filePath, content);
|
|
164
|
+
}
|
|
170
165
|
export function extractSymbolsFromStagedFile(
|
|
171
166
|
// implements REQ-008
|
|
172
|
-
stagedFile, manifestLookup) {
|
|
167
|
+
stagedFile, manifestLookup, options) {
|
|
173
168
|
const content = stagedFile.content ?? "";
|
|
174
|
-
const sha = computeContentSha(`${content}|${stagedFile.path}`);
|
|
169
|
+
const sha = computeContentSha(`${content}|${stagedFile.path}|${options?.analyzeText ? "custom" : "builtin"}`);
|
|
175
170
|
// TTL cache lookup
|
|
176
171
|
const now = Date.now();
|
|
177
|
-
let cached =
|
|
172
|
+
let cached = analysisCache.get(sha);
|
|
178
173
|
if (!cached || now - cached.ts > CACHE_TTL_MS) {
|
|
179
|
-
// create or recreate SourceFile in project (in-memory)
|
|
180
174
|
try {
|
|
181
|
-
const
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
cached = {
|
|
187
|
-
|
|
175
|
+
const analyze = options?.analyzeText ?? analyzeWithBuiltinFallback;
|
|
176
|
+
const raw = analyze(stagedFile.path, content);
|
|
177
|
+
if (raw instanceof Promise) {
|
|
178
|
+
throw new Error("extractSymbolsFromStagedFile received async analyzeText; use extractSymbolsFromStagedFileAsync");
|
|
179
|
+
}
|
|
180
|
+
cached = { result: raw, ts: now };
|
|
181
|
+
analysisCache.set(sha, cached);
|
|
188
182
|
}
|
|
189
|
-
catch (
|
|
183
|
+
catch (error) {
|
|
184
|
+
if (error instanceof Error &&
|
|
185
|
+
error.message.includes("extractSymbolsFromStagedFileAsync")) {
|
|
186
|
+
throw error;
|
|
187
|
+
}
|
|
190
188
|
// on parse error, cache null to avoid retry storms briefly
|
|
191
|
-
cached = {
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
const sf = cached.tsf;
|
|
196
|
-
if (!sf)
|
|
197
|
-
return [];
|
|
198
|
-
const results = [];
|
|
199
|
-
// helpers to compute line spans
|
|
200
|
-
const getSpan = (startPos, endPos) => {
|
|
201
|
-
const start = sf.getLineAndColumnAtPos(startPos);
|
|
202
|
-
const end = sf.getLineAndColumnAtPos(endPos);
|
|
203
|
-
return { startLine: start.line, endLine: end.line };
|
|
204
|
-
};
|
|
205
|
-
// Functions
|
|
206
|
-
for (const fn of sf.getFunctions()) {
|
|
207
|
-
if (!fn.isExported())
|
|
208
|
-
continue;
|
|
209
|
-
try {
|
|
210
|
-
const name = fn.getName() ?? "<anonymous>";
|
|
211
|
-
const nameNode = fn.getNameNode();
|
|
212
|
-
const start = nameNode ? nameNode.getStart() : fn.getStart();
|
|
213
|
-
const end = fn.getEnd();
|
|
214
|
-
const span = getSpan(start, end);
|
|
215
|
-
const reqLinks = parseReqDirectives(`${fn.getFullText()}\n${fn
|
|
216
|
-
.getJsDocs()
|
|
217
|
-
.map((d) => d.getFullText())
|
|
218
|
-
.join("\n")}`);
|
|
219
|
-
results.push(buildSymbolResult(stagedFile, name, "function", span, reqLinks, manifestLookup));
|
|
220
|
-
}
|
|
221
|
-
catch {
|
|
222
|
-
void stagedFile.path;
|
|
189
|
+
cached = { result: null, ts: now };
|
|
190
|
+
analysisCache.set(sha, cached);
|
|
223
191
|
}
|
|
224
192
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
193
|
+
return symbolsFromAnalysis(stagedFile, cached.result, manifestLookup);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Async staged symbol extraction. Defaults to deterministic builtin analysis.
|
|
197
|
+
* Pass an explicit `registry` only from allowlisted async surfaces that compose
|
|
198
|
+
* replace/augment/shadow (e.g. symbol repair). Maintenance paths (`check`,
|
|
199
|
+
* impact, sync, status, proof) must omit `registry` so external extractors
|
|
200
|
+
* never participate.
|
|
201
|
+
*/
|
|
202
|
+
// implements REQ-capability-plugin-activation-disclosure-v1
|
|
203
|
+
export async function extractSymbolsFromStagedFileAsync(stagedFile, manifestLookup, options) {
|
|
204
|
+
const content = stagedFile.content ?? "";
|
|
205
|
+
const sha = computeContentSha(`${content}|${stagedFile.path}|async|${options.registry ? "registry" : "custom"}`);
|
|
206
|
+
const now = Date.now();
|
|
207
|
+
let cached = analysisCache.get(sha);
|
|
208
|
+
if (!cached || now - cached.ts > CACHE_TTL_MS) {
|
|
229
209
|
try {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
const span = getSpan(start, end);
|
|
234
|
-
const reqLinks = parseReqDirectives(getJsDocText(cls.getJsDocs()));
|
|
235
|
-
results.push(buildSymbolResult(stagedFile, name, "class", span, reqLinks, manifestLookup));
|
|
236
|
-
}
|
|
237
|
-
catch {
|
|
238
|
-
void stagedFile.path;
|
|
239
|
-
}
|
|
240
|
-
for (const method of typeof cls.getMethods === "function"
|
|
241
|
-
? cls.getMethods()
|
|
242
|
-
: []) {
|
|
243
|
-
try {
|
|
244
|
-
if (isPrivateClassMember(method))
|
|
245
|
-
continue;
|
|
246
|
-
const name = formatMethodSymbolName(cls.getName(), method.getName());
|
|
247
|
-
const start = method.getNameNode()?.getStart() ?? method.getStart();
|
|
248
|
-
const end = method.getEnd();
|
|
249
|
-
const span = getSpan(start, end);
|
|
250
|
-
const reqLinks = parseReqDirectives(`${method.getFullText()}\n${method
|
|
251
|
-
.getJsDocs()
|
|
252
|
-
.map((d) => d.getFullText())
|
|
253
|
-
.join("\n")}`);
|
|
254
|
-
results.push(buildSymbolResult(stagedFile, name, "method", span, reqLinks, manifestLookup));
|
|
255
|
-
}
|
|
256
|
-
catch {
|
|
257
|
-
void stagedFile.path;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
for (const property of typeof cls.getProperties === "function"
|
|
261
|
-
? cls.getProperties()
|
|
262
|
-
: []) {
|
|
263
|
-
try {
|
|
264
|
-
if (isPrivateClassMember(property))
|
|
265
|
-
continue;
|
|
266
|
-
const name = formatMethodSymbolName(cls.getName(), property.getName());
|
|
267
|
-
const start = property.getNameNode()?.getStart() ?? property.getStart();
|
|
268
|
-
const end = property.getEnd();
|
|
269
|
-
const span = getSpan(start, end);
|
|
270
|
-
const reqLinks = parseReqDirectives(`${property.getFullText()}\n${property
|
|
271
|
-
.getJsDocs()
|
|
272
|
-
.map((d) => d.getFullText())
|
|
273
|
-
.join("\n")}`);
|
|
274
|
-
results.push(buildSymbolResult(stagedFile, name, "property", span, reqLinks, manifestLookup));
|
|
275
|
-
}
|
|
276
|
-
catch {
|
|
277
|
-
void stagedFile.path;
|
|
210
|
+
let analysis = null;
|
|
211
|
+
if (options.analyzeText) {
|
|
212
|
+
analysis = await options.analyzeText(stagedFile.path, content);
|
|
278
213
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
...(typeof cls.getSetAccessors === "function"
|
|
285
|
-
? cls.getSetAccessors()
|
|
286
|
-
: []),
|
|
287
|
-
]) {
|
|
288
|
-
try {
|
|
289
|
-
if (isPrivateClassMember(accessor))
|
|
290
|
-
continue;
|
|
291
|
-
const name = formatMethodSymbolName(cls.getName(), accessor.getName());
|
|
292
|
-
const start = accessor.getNameNode()?.getStart() ?? accessor.getStart();
|
|
293
|
-
const end = accessor.getEnd();
|
|
294
|
-
const span = getSpan(start, end);
|
|
295
|
-
const reqLinks = parseReqDirectives(`${accessor.getFullText()}\n${accessor
|
|
296
|
-
.getJsDocs()
|
|
297
|
-
.map((d) => d.getFullText())
|
|
298
|
-
.join("\n")}`);
|
|
299
|
-
results.push(buildSymbolResult(stagedFile, name, "accessor", span, reqLinks, manifestLookup));
|
|
214
|
+
else if (options.registry) {
|
|
215
|
+
const { createSourceAnalysisService } = await import("../plugins/source-analysis-service.js");
|
|
216
|
+
analysis = await createSourceAnalysisService({
|
|
217
|
+
registry: options.registry,
|
|
218
|
+
}).analyzeText(stagedFile.path, content);
|
|
300
219
|
}
|
|
301
|
-
|
|
302
|
-
|
|
220
|
+
else {
|
|
221
|
+
analysis = analyzeWithBuiltinFallback(stagedFile.path, content);
|
|
303
222
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
// Enums
|
|
307
|
-
for (const en of sf.getEnums()) {
|
|
308
|
-
if (!en.isExported())
|
|
309
|
-
continue;
|
|
310
|
-
try {
|
|
311
|
-
const name = en.getName() ?? "<anonymous>";
|
|
312
|
-
const start = en.getNameNode()?.getStart() ?? en.getStart();
|
|
313
|
-
const end = en.getEnd();
|
|
314
|
-
const span = getSpan(start, end);
|
|
315
|
-
const reqLinks = parseReqDirectives(en.getText());
|
|
316
|
-
results.push(buildSymbolResult(stagedFile, name, "enum", span, reqLinks, manifestLookup));
|
|
317
|
-
}
|
|
318
|
-
catch {
|
|
319
|
-
void stagedFile.path;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
for (const iface of typeof sf.getInterfaces === "function"
|
|
323
|
-
? sf.getInterfaces()
|
|
324
|
-
: []) {
|
|
325
|
-
if (!iface.isExported())
|
|
326
|
-
continue;
|
|
327
|
-
try {
|
|
328
|
-
const name = iface.getName();
|
|
329
|
-
const start = iface.getNameNode().getStart();
|
|
330
|
-
const end = iface.getEnd();
|
|
331
|
-
const span = getSpan(start, end);
|
|
332
|
-
const reqLinks = parseReqDirectives(iface.getText());
|
|
333
|
-
results.push(buildSymbolResult(stagedFile, name, "interface", span, reqLinks, manifestLookup));
|
|
223
|
+
cached = { result: analysis, ts: now };
|
|
224
|
+
analysisCache.set(sha, cached);
|
|
334
225
|
}
|
|
335
226
|
catch {
|
|
336
|
-
|
|
227
|
+
cached = { result: null, ts: now };
|
|
228
|
+
analysisCache.set(sha, cached);
|
|
337
229
|
}
|
|
338
230
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
231
|
+
return symbolsFromAnalysis(stagedFile, cached.result, manifestLookup);
|
|
232
|
+
}
|
|
233
|
+
function symbolsFromAnalysis(stagedFile, analysis, manifestLookup) {
|
|
234
|
+
if (!analysis)
|
|
235
|
+
return [];
|
|
236
|
+
const results = [];
|
|
237
|
+
for (const symbol of analysis.symbols) {
|
|
344
238
|
try {
|
|
345
|
-
|
|
346
|
-
const start = alias.getNameNode().getStart();
|
|
347
|
-
const end = alias.getEnd();
|
|
348
|
-
const span = getSpan(start, end);
|
|
349
|
-
const reqLinks = parseReqDirectives(alias.getText());
|
|
350
|
-
results.push(buildSymbolResult(stagedFile, name, "type", span, reqLinks, manifestLookup));
|
|
239
|
+
results.push(buildSymbolResult(stagedFile, symbol.name, symbol.kind, { startLine: symbol.startLine, endLine: symbol.endLine }, parseReqDirectives(symbol.directiveText ?? ""), manifestLookup));
|
|
351
240
|
}
|
|
352
241
|
catch {
|
|
353
242
|
void stagedFile.path;
|
|
354
243
|
}
|
|
355
244
|
}
|
|
356
|
-
// Variable statements (exported)
|
|
357
|
-
for (const vs of sf.getVariableStatements()) {
|
|
358
|
-
if (!vs.isExported())
|
|
359
|
-
continue;
|
|
360
|
-
for (const decl of vs.getDeclarations()) {
|
|
361
|
-
try {
|
|
362
|
-
const name = decl.getName();
|
|
363
|
-
const start = decl.getNameNode()?.getStart() ?? decl.getStart();
|
|
364
|
-
const end = decl.getEnd();
|
|
365
|
-
const span = getSpan(start, end);
|
|
366
|
-
const reqLinks = parseReqDirectives(decl.getText());
|
|
367
|
-
results.push(buildSymbolResult(stagedFile, name, "variable", span, reqLinks, manifestLookup));
|
|
368
|
-
}
|
|
369
|
-
catch {
|
|
370
|
-
void stagedFile.path;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
245
|
// Filter to only include symbols that intersect with at least one hunk
|
|
375
246
|
// (unless it's a new file or rename, in which case we include all)
|
|
376
247
|
const shouldFilterByHunks = stagedFile.status === "M" && stagedFile.hunkRanges.length > 0;
|
|
@@ -379,22 +250,7 @@ stagedFile, manifestLookup) {
|
|
|
379
250
|
}
|
|
380
251
|
return results;
|
|
381
252
|
}
|
|
382
|
-
export
|
|
383
|
-
const name = typeof member.getName === "function" ? member.getName() : "";
|
|
384
|
-
if (name.startsWith("#")) {
|
|
385
|
-
return true;
|
|
386
|
-
}
|
|
387
|
-
if (typeof member.getScope === "function") {
|
|
388
|
-
return member.getScope() === Scope.Private;
|
|
389
|
-
}
|
|
390
|
-
return false;
|
|
391
|
-
}
|
|
392
|
-
function formatMethodSymbolName(className, methodName) {
|
|
393
|
-
return className ? `${className}.${methodName}` : methodName;
|
|
394
|
-
}
|
|
395
|
-
function getJsDocText(jsDocs) {
|
|
396
|
-
return jsDocs.map((d) => d.getFullText()).join("\n");
|
|
397
|
-
}
|
|
253
|
+
export { isPrivateClassMember };
|
|
398
254
|
function intersectingHunks(startLine, endLine, hunks) {
|
|
399
255
|
const out = [];
|
|
400
256
|
for (const h of hunks) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temp-kb.d.ts","sourceRoot":"","sources":["../../src/traceability/temp-kb.ts"],"names":[],"mappings":"AAMA,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,OAAO,CAET;AACD,OAAO,KAAK,EAGV,gBAAgB,EACjB,MAAM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AC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAgB/D;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,gBAAgB,EAAE,GAC1B,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CA6C7E;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,MAAM,CAkBrE;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BlE"}
|
|
@@ -107,6 +107,14 @@ function serializeTypedFactFields(entity) {
|
|
|
107
107
|
if (ruleIr !== undefined && ruleIr !== null) {
|
|
108
108
|
fields.push(`rule_ir=${toPrologString(JSON.stringify(ruleIr))}`);
|
|
109
109
|
}
|
|
110
|
+
// Predicate-schema vocabularies are objects; like rule_ir they travel as
|
|
111
|
+
// JSON strings and are decoded again at the public boundary.
|
|
112
|
+
for (const field of ["argument_constants", "argument_aliases"]) {
|
|
113
|
+
const value = getEntityField(entity, field);
|
|
114
|
+
if (value !== undefined && value !== null) {
|
|
115
|
+
fields.push(`${field}=${toPrologString(JSON.stringify(value))}`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
110
118
|
for (const field of FACT_ATOM_FIELDS) {
|
|
111
119
|
const value = getEntityField(entity, field);
|
|
112
120
|
if (value !== undefined && value !== null) {
|
|
@@ -153,7 +153,7 @@ export function formatViolations(violations) {
|
|
|
153
153
|
const loc = `${v.file}:${v.line}`;
|
|
154
154
|
const name = `${v.name}()`;
|
|
155
155
|
// Suggest adding requirement links with role-specific guidance
|
|
156
|
-
const suggestion = "Add ownership: implements: REQ
|
|
156
|
+
const suggestion = "Add ownership: implements: REQ-<area>-<behavior> (production code), use covered_by for production coverage, or executable_for for executable test code";
|
|
157
157
|
lines.push(`${loc} ${name} -> ${suggestion}`);
|
|
158
158
|
}
|
|
159
159
|
return lines.join("\n");
|
package/dist/types/entities.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export interface FactFields {
|
|
|
39
39
|
argument_names?: string[];
|
|
40
40
|
argument_types?: string[];
|
|
41
41
|
argument_descriptions?: string[];
|
|
42
|
+
argument_constants?: Record<string, string[]>;
|
|
43
|
+
argument_aliases?: Record<string, Record<string, string>>;
|
|
42
44
|
aliases?: string[];
|
|
43
45
|
examples?: string[];
|
|
44
46
|
predicate_args?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EACN,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,MAAM,GACN,kBAAkB,GAClB,WAAW,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAA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