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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predicate-vocabulary-guard.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/predicate-vocabulary-guard.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAY3E;;;;GAIG;AAEH,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,OAAO,CAAC,IAAI,CAAC,CA+Cf"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { parseEntityFromList, parseListOfLists, toPrologAtom, } from "../../prolog/codec.js";
|
|
19
|
+
import { predicateArgumentConformance, predicateVocabularyFromEntity, } from "../modeling/predicate-vocabulary.js";
|
|
20
|
+
function text(value) {
|
|
21
|
+
return typeof value === "string" && value.trim() !== ""
|
|
22
|
+
? value.trim()
|
|
23
|
+
: undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Reject a predicate fact whose arguments fall outside the constants its
|
|
27
|
+
* project-local schema declares. An alias is rejected too, with the declared
|
|
28
|
+
* constant to use instead, so new facts never need migrating.
|
|
29
|
+
*/
|
|
30
|
+
// implements REQ-kibi-predicate-argument-constants
|
|
31
|
+
export async function assertPredicateArgumentVocabulary(prolog, entity) {
|
|
32
|
+
if (entity.type !== "fact" || entity.fact_kind !== "predicate")
|
|
33
|
+
return;
|
|
34
|
+
const name = text(entity.predicate_name);
|
|
35
|
+
const args = Array.isArray(entity.predicate_args)
|
|
36
|
+
? entity.predicate_args.filter((value) => typeof value === "string")
|
|
37
|
+
: [];
|
|
38
|
+
if (name === undefined || args.length === 0)
|
|
39
|
+
return;
|
|
40
|
+
const namespace = text(entity.predicate_namespace) ?? "default";
|
|
41
|
+
const result = await prolog.query(`findall([Id,'fact',Props], (kb:predicate_schema(Id, Namespace, Name, Arity, _Names, _Types), Name == ${toPrologAtom(name)}, Namespace == ${toPrologAtom(namespace)}, Arity =:= ${args.length}, kb_entity(Id, 'fact', Props)), Results)`);
|
|
42
|
+
if (!result.success) {
|
|
43
|
+
throw new Error(`Predicate schema lookup failed: ${result.error ?? "unknown error"}`);
|
|
44
|
+
}
|
|
45
|
+
const schemas = result.bindings.Results
|
|
46
|
+
? parseListOfLists(result.bindings.Results).map(parseEntityFromList)
|
|
47
|
+
: [];
|
|
48
|
+
const problems = [];
|
|
49
|
+
for (const schema of schemas) {
|
|
50
|
+
const argumentNames = Array.isArray(schema.argument_names)
|
|
51
|
+
? schema.argument_names.map(String)
|
|
52
|
+
: [];
|
|
53
|
+
const conformance = predicateArgumentConformance(argumentNames, args, predicateVocabularyFromEntity(schema));
|
|
54
|
+
for (const rewrite of conformance.rewrites) {
|
|
55
|
+
problems.push(`argument ${rewrite.argumentName} uses alias ${rewrite.from}; use the declared constant ${rewrite.to} (${String(schema.id)})`);
|
|
56
|
+
}
|
|
57
|
+
for (const value of conformance.undeclared) {
|
|
58
|
+
problems.push(`argument ${value.argumentName} value ${value.value} is not declared by ${String(schema.id)}; allowed: ${value.allowed.join(", ")}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (problems.length > 0) {
|
|
62
|
+
throw new Error(`Entity validation failed: ${problems.join("; ")}. Use a declared constant, or extend the schema's argument_constants when the value is genuinely new.`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PrologPort } from "../../public/operations/runtime-types.js";
|
|
2
2
|
import type { RelationshipInput } from "./types.js";
|
|
3
|
-
export declare const RELATIONSHIP_TYPES: readonly ["depends_on", "specified_by", "verified_by", "validates", "implements", "covered_by", "executable_for", "constrained_by", "constrains", "requires_property", "requires_predicate", "requires_rule", "guards", "publishes", "consumes", "supersedes", "relates_to"];
|
|
3
|
+
export declare const RELATIONSHIP_TYPES: readonly ["depends_on", "specified_by", "verified_by", "validates", "implements", "covered_by", "executable_for", "constrained_by", "constrains", "requires_property", "requires_predicate", "requires_rule", "guards", "publishes", "consumes", "supersedes", "restates", "relates_to"];
|
|
4
4
|
export type RelationshipType = (typeof RELATIONSHIP_TYPES)[number];
|
|
5
5
|
export declare function wrongKindRelationshipError(type: string, target: string, wrongKind: string): Error;
|
|
6
6
|
export declare function dependentRelationshipsGoal(entityId: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/relationships.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/relationships.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MA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C3B,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,IAAI,GAAE,IAAI,CACR,qBAAqB,EACrB,YAAY,CACqB,GAClC,iBAAiB,CAenB;AAGD,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,aAAa,EAAE,SAAS,iBAAiB,EAAE,EAC3C,aAAa,EAAE,MAAM,EACrB,IAAI,GAAE,qBAAuD,GAC5D,OAAO,CAAC,IAAI,CAAC,CAyCf;AAED,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,iBAAiB,GAC9B,MAAM,CAIR;AAuBD,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,aAAa,EAAE,SAAS,iBAAiB,EAAE,GAC1C,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,SAAS,iBAAiB,EAAE,GAC1C,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAevC"}
|
|
@@ -28,6 +28,11 @@ export type SagaRollbackFailure = Readonly<{
|
|
|
28
28
|
step: string;
|
|
29
29
|
error: unknown;
|
|
30
30
|
}>;
|
|
31
|
+
/** A mutation failed before commit and at least one compensation also failed. */
|
|
32
|
+
export declare class MutationRollbackFailureError extends AggregateError {
|
|
33
|
+
readonly rollbackFailures: readonly SagaRollbackFailure[];
|
|
34
|
+
constructor(errors: readonly unknown[], message: string, rollbackFailures: readonly SagaRollbackFailure[]);
|
|
35
|
+
}
|
|
31
36
|
export declare class MutationSaga {
|
|
32
37
|
private readonly steps;
|
|
33
38
|
private rollbackCompleted;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saga.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/saga.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;GASG;AAGH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC,CAAC;AAGH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"saga.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/saga.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;GASG;AAGH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC,CAAC;AAGH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAEH,iFAAiF;AAEjF,qBAAa,4BAA6B,SAAQ,cAAc;IAI5D,QAAQ,CAAC,gBAAgB,EAAE,SAAS,mBAAmB,EAAE;gBAFzD,MAAM,EAAE,SAAS,OAAO,EAAE,EAC1B,OAAO,EAAE,MAAM,EACN,gBAAgB,EAAE,SAAS,mBAAmB,EAAE;CAK5D;AAGD,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,WAAW,CAAuB;IAE1C,2EAA2E;IAE3E,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIzB;;;;OAIG;IAEH,aAAa,IAAI,IAAI;IAKrB,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;OAIG;IAEG,QAAQ,IAAI,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC;CAkB1D"}
|
|
@@ -15,6 +15,16 @@
|
|
|
15
15
|
You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
+
/** A mutation failed before commit and at least one compensation also failed. */
|
|
19
|
+
// implements REQ-014
|
|
20
|
+
export class MutationRollbackFailureError extends AggregateError {
|
|
21
|
+
rollbackFailures;
|
|
22
|
+
constructor(errors, message, rollbackFailures) {
|
|
23
|
+
super(errors, message);
|
|
24
|
+
this.rollbackFailures = rollbackFailures;
|
|
25
|
+
this.name = "MutationRollbackFailureError";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
// implements REQ-014
|
|
19
29
|
export class MutationSaga {
|
|
20
30
|
steps = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/serialization.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/serialization.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAsDpD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,MAAM,CAMR;AAGD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAOxE;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAkBtD"}
|
|
@@ -27,6 +27,8 @@ function serializeValue(key, value) {
|
|
|
27
27
|
return `'${value.replaceAll("'", "''")}'`;
|
|
28
28
|
}
|
|
29
29
|
if (key === "rule_ir" ||
|
|
30
|
+
key === "argument_constants" ||
|
|
31
|
+
key === "argument_aliases" ||
|
|
30
32
|
key === "semantic_inventory" ||
|
|
31
33
|
key === "proof_contract" ||
|
|
32
34
|
key === "proof_bindings" ||
|
|
@@ -8,6 +8,12 @@ export type SourceWriteReceipt = Readonly<{
|
|
|
8
8
|
created: boolean;
|
|
9
9
|
}>;
|
|
10
10
|
export declare function writePendingSourceReceipt(workspaceRoot: string, relativePath: string, afterHash: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Retire the pending receipt of a source that a committed plan deleted. A
|
|
13
|
+
* receipt binds untracked input to exact bytes, so one left behind for a
|
|
14
|
+
* removed file makes every later sync fail on a missing pending source.
|
|
15
|
+
*/
|
|
16
|
+
export declare function retirePendingSourceReceipt(workspaceRoot: string, relativePath: string): void;
|
|
11
17
|
export declare function resolveContainedSourcePath(workspaceRoot: string, relative: string): string;
|
|
12
18
|
export declare function normalizeAuthoredSourcePath(workspaceRoot: string, source: string): string;
|
|
13
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-authoring.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/source-authoring.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAKjF,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,YAAY,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAmBH,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAChB,IAAI,CAiBN;
|
|
1
|
+
{"version":3,"file":"source-authoring.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/source-authoring.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAKjF,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,YAAY,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAmBH,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAChB,IAAI,CAiBN;AAED;;;;GAIG;AAEH,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,GACnB,IAAI,CAMN;AAgBD,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,MAAM,CAwCR;AAED,wBAAgB,2BAA2B,CACzC,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,GACb,MAAM,CAWR;AAsBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,MAAM,EACrB,IAAI,E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CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC5C,OAAO,CAAC,EAAE,gBAAgB,EAC1B,sBAAsB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC;IACT,OAAO,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,GAAG,IAAI,CAAC,CAoHR;AAED,uEAAuE;AACvE,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC3C,MAAM,CAOR"}
|
|
@@ -22,6 +22,26 @@ export function writePendingSourceReceipt(workspaceRoot, relativePath, afterHash
|
|
|
22
22
|
createdAt: new Date().toISOString(),
|
|
23
23
|
}, null, 2)}\n`, { mode: 0o600 });
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Retire the pending receipt of a source that a committed plan deleted. A
|
|
27
|
+
* receipt binds untracked input to exact bytes, so one left behind for a
|
|
28
|
+
* removed file makes every later sync fail on a missing pending source.
|
|
29
|
+
*/
|
|
30
|
+
// implements REQ-core-atomic-upsert-persistence, REQ-kibi-operation-interface-parity
|
|
31
|
+
export function retirePendingSourceReceipt(workspaceRoot, relativePath) {
|
|
32
|
+
try {
|
|
33
|
+
fs.unlinkSync(pendingReceiptPath(workspaceRoot, relativePath));
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
if (error.code !== "ENOENT")
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Authored YAML round-trips keep long scalars on one line, matching sync and
|
|
42
|
+
* coordinate refresh output, so editing one entry never refolds the others.
|
|
43
|
+
*/
|
|
44
|
+
const AUTHORED_YAML_OPTIONS = { lineWidth: 0 };
|
|
25
45
|
function authoredPath(value) {
|
|
26
46
|
if (typeof value !== "string" || !value.trim())
|
|
27
47
|
return undefined;
|
|
@@ -245,6 +265,15 @@ function mergeManifestRelationships(existing, incoming, entityId) {
|
|
|
245
265
|
}
|
|
246
266
|
return [...merged.values()].sort((left, right) => `${left.type}\u0000${left.target}`.localeCompare(`${right.type}\u0000${right.target}`));
|
|
247
267
|
}
|
|
268
|
+
/** Indexes of every manifest entry whose `id` equals `id`, in file order. */
|
|
269
|
+
function symbolManifestIndexes(items, id) {
|
|
270
|
+
return items.flatMap((item, index) => item &&
|
|
271
|
+
typeof item === "object" &&
|
|
272
|
+
"get" in item &&
|
|
273
|
+
String(item.get("id")) === id
|
|
274
|
+
? [index]
|
|
275
|
+
: []);
|
|
276
|
+
}
|
|
248
277
|
function renderSymbolManifest(entity, relationships, existingContent) {
|
|
249
278
|
if (existingContent === undefined) {
|
|
250
279
|
const doc = parseDocument(stringify({
|
|
@@ -252,7 +281,7 @@ function renderSymbolManifest(entity, relationships, existingContent) {
|
|
|
252
281
|
symbolManifestRecord(entity, mergeManifestRelationships([], relationships, String(entity.id))),
|
|
253
282
|
],
|
|
254
283
|
}));
|
|
255
|
-
return doc.toString();
|
|
284
|
+
return doc.toString(AUTHORED_YAML_OPTIONS);
|
|
256
285
|
}
|
|
257
286
|
const doc = parseDocument(existingContent);
|
|
258
287
|
const symbols = doc.get("symbols", true);
|
|
@@ -261,31 +290,42 @@ function renderSymbolManifest(entity, relationships, existingContent) {
|
|
|
261
290
|
}
|
|
262
291
|
const items = symbols.items;
|
|
263
292
|
const id = String(entity.id);
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
const
|
|
293
|
+
// A rebase that unions both sides of the manifest can leave the same id
|
|
294
|
+
// twice with different ownership. Fold every copy into the first one so an
|
|
295
|
+
// upsert repairs the duplicate instead of updating one copy and leaving the
|
|
296
|
+
// other to shadow it.
|
|
297
|
+
const matches = symbolManifestIndexes(items, id);
|
|
298
|
+
const index = matches[0] ?? -1;
|
|
299
|
+
const existingRelationships = matches.flatMap((match) => manifestRelationships(items[match]));
|
|
270
300
|
let next = symbolManifestRecord(entity, mergeManifestRelationships(existingRelationships, relationships, id));
|
|
271
301
|
if (index >= 0) {
|
|
272
302
|
// Partial symbol payloads (for example a relationship-only upsert) must
|
|
273
303
|
// never erase authored provenance from the manifest. Preserve fields the
|
|
274
|
-
// payload omits, with incoming values winning on explicit conflicts
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
304
|
+
// payload omits, with incoming values winning on explicit conflicts; the
|
|
305
|
+
// first copy wins over later duplicates.
|
|
306
|
+
let preserved = {};
|
|
307
|
+
for (const match of [...matches].reverse()) {
|
|
308
|
+
const item = items[match];
|
|
309
|
+
const previous = typeof item?.toJSON === "function" ? item.toJSON() : null;
|
|
310
|
+
if (typeof previous === "object" &&
|
|
311
|
+
previous !== null &&
|
|
312
|
+
!Array.isArray(previous)) {
|
|
313
|
+
preserved = {
|
|
314
|
+
...preserved,
|
|
315
|
+
...symbolManifestRecord(previous, []),
|
|
316
|
+
};
|
|
317
|
+
}
|
|
282
318
|
}
|
|
319
|
+
next = { ...preserved, ...next };
|
|
283
320
|
doc.setIn(["symbols", index], next);
|
|
321
|
+
for (const duplicate of matches.slice(1).reverse()) {
|
|
322
|
+
doc.deleteIn(["symbols", duplicate]);
|
|
323
|
+
}
|
|
284
324
|
}
|
|
285
325
|
else {
|
|
286
326
|
doc.addIn(["symbols"], next);
|
|
287
327
|
}
|
|
288
|
-
return doc.toString();
|
|
328
|
+
return doc.toString(AUTHORED_YAML_OPTIONS);
|
|
289
329
|
}
|
|
290
330
|
export function renderSourceDeletion(sourcePathValue, entityId, entityType, existingContent) {
|
|
291
331
|
const extension = path.extname(sourcePathValue).toLowerCase();
|
|
@@ -306,16 +346,15 @@ export function renderSourceDeletion(sourcePathValue, entityId, entityType, exis
|
|
|
306
346
|
throw new OperationError("SOURCE_FORMAT_INVALID", "Symbol manifest must contain a symbols array");
|
|
307
347
|
}
|
|
308
348
|
const items = symbols.items;
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
return false;
|
|
312
|
-
return (String(item.get("id")) === entityId);
|
|
313
|
-
});
|
|
314
|
-
if (index < 0) {
|
|
349
|
+
const matches = symbolManifestIndexes(items, entityId);
|
|
350
|
+
if (matches.length === 0) {
|
|
315
351
|
throw new OperationError("SOURCE_ENTITY_MISMATCH", `Symbol manifest ${sourcePathValue} does not contain ${entityId}`);
|
|
316
352
|
}
|
|
317
|
-
|
|
318
|
-
|
|
353
|
+
// Delete every copy, last first so earlier indexes stay valid.
|
|
354
|
+
for (const match of [...matches].reverse()) {
|
|
355
|
+
doc.deleteIn(["symbols", match]);
|
|
356
|
+
}
|
|
357
|
+
return { mode: "write", body: doc.toString(AUTHORED_YAML_OPTIONS) };
|
|
319
358
|
}
|
|
320
359
|
throw new OperationError("SOURCE_FORMAT_UNSUPPORTED", `Unsupported authored source format: ${extension || "unknown"}`);
|
|
321
360
|
}
|
|
@@ -381,7 +420,7 @@ export function renderMarkdownRelationshipDeletion(sourcePathValue, existingCont
|
|
|
381
420
|
return { body: existingContent, removed: false };
|
|
382
421
|
const body = existingContent.slice(marker + "\n---".length);
|
|
383
422
|
return {
|
|
384
|
-
body: `---\n${frontmatter.toString()}---${body.startsWith("\n") ? "" : "\n"}${body}`,
|
|
423
|
+
body: `---\n${frontmatter.toString(AUTHORED_YAML_OPTIONS)}---${body.startsWith("\n") ? "" : "\n"}${body}`,
|
|
385
424
|
removed: true,
|
|
386
425
|
};
|
|
387
426
|
}
|
|
@@ -437,7 +476,7 @@ export function renderYamlRelationshipDeletion(sourcePathValue, existingContent,
|
|
|
437
476
|
}
|
|
438
477
|
}
|
|
439
478
|
return removed
|
|
440
|
-
? { body: doc.toString(), removed: true }
|
|
479
|
+
? { body: doc.toString(AUTHORED_YAML_OPTIONS), removed: true }
|
|
441
480
|
: { body: existingContent, removed: false };
|
|
442
481
|
}
|
|
443
482
|
function renderSourceDocument(input, entity, existingContent, relativePath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strict-fact.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/strict-fact.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strict-fact.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/strict-fact.ts"],"names":[],"mappings":"AAWA,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAarD;AAGD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,MAAM,EAAE,CA+EV;AAED,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,OAAO,EACtB,aAAa,EAAE,OAAO,GACrB,IAAI,CAUN;AAGD,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,IAAI,CAmDN"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { validateLogicIr } from "../../logic/ir.js";
|
|
2
|
+
import { predicateVocabularyErrors } from "../modeling/predicate-vocabulary.js";
|
|
2
3
|
const PROPERTY_VALUE_FIELDS = [
|
|
3
4
|
"value_string",
|
|
4
5
|
"value_int",
|
|
@@ -106,6 +107,10 @@ export function validateFactModelingShape(entity) {
|
|
|
106
107
|
if (hints.length > 0) {
|
|
107
108
|
throw new Error(`Entity validation failed: ${hints.join("; ")}`);
|
|
108
109
|
}
|
|
110
|
+
const vocabularyErrors = predicateVocabularyErrors(entity);
|
|
111
|
+
if (vocabularyErrors.length > 0) {
|
|
112
|
+
throw new Error(`Entity validation failed: ${vocabularyErrors.join("; ")}`);
|
|
113
|
+
}
|
|
109
114
|
if (entity.type === "fact" && entity.fact_kind === "rule") {
|
|
110
115
|
const validation = validateLogicIr(entity.rule_ir);
|
|
111
116
|
if (!validation.valid || !validation.semanticKey) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol-granularity.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/symbol-granularity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAWjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"symbol-granularity.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/symbol-granularity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAWjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA2BpD,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,aAAa,EAAE,SAAS,iBAAiB,EAAE,EAC3C,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
|
@@ -1,96 +1,18 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import {
|
|
2
|
+
import { collectGranularityCandidates } from "kibi-plugin-builtin";
|
|
3
3
|
import { ALLOWED_GRANULARITY_REASONS_PROSE, getBehavioralSymbolNames, getNonBehavioralSymbolNames, inferSymbolRole, isAllowedGranularityReason, isTraceabilityRelationshipType, } from "../../public/symbol-granularity.js";
|
|
4
|
-
function scriptKind(filePath) {
|
|
5
|
-
const extension = path.extname(filePath).toLowerCase();
|
|
6
|
-
if (extension === ".tsx")
|
|
7
|
-
return ScriptKind.TSX;
|
|
8
|
-
if ([".ts", ".mts", ".cts"].includes(extension))
|
|
9
|
-
return ScriptKind.TS;
|
|
10
|
-
if (extension === ".jsx")
|
|
11
|
-
return ScriptKind.JSX;
|
|
12
|
-
return ScriptKind.JS;
|
|
13
|
-
}
|
|
14
4
|
function candidate(name, kind) {
|
|
15
5
|
return { name, kind, role: inferSymbolRole(kind) };
|
|
16
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Granularity candidates must include bare unique method names (parity with
|
|
9
|
+
* the pre-plugin `collectGranularityCandidates` behavior). The extractor
|
|
10
|
+
* symbol list alone is too narrow and rejects previously-valid upserts.
|
|
11
|
+
*/
|
|
17
12
|
function candidates(filePath, content) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
overwrite: true,
|
|
22
|
-
scriptKind: scriptKind(filePath),
|
|
23
|
-
});
|
|
24
|
-
const found = [];
|
|
25
|
-
const methodCounts = new Map();
|
|
26
|
-
const bareMethods = new Map();
|
|
27
|
-
for (const fn of source.getFunctions()) {
|
|
28
|
-
const name = fn.getName();
|
|
29
|
-
if (fn.isExported() && name)
|
|
30
|
-
found.push(candidate(name, "function"));
|
|
31
|
-
}
|
|
32
|
-
for (const cls of source.getClasses()) {
|
|
33
|
-
if (!cls.isExported())
|
|
34
|
-
continue;
|
|
35
|
-
const className = cls.getName();
|
|
36
|
-
if (className)
|
|
37
|
-
found.push(candidate(className, "class"));
|
|
38
|
-
for (const method of cls.getMethods()) {
|
|
39
|
-
if (isPrivateClassMember(method))
|
|
40
|
-
continue;
|
|
41
|
-
const name = method.getName();
|
|
42
|
-
if (className)
|
|
43
|
-
found.push(candidate(`${className}.${name}`, "method"));
|
|
44
|
-
bareMethods.set(name, candidate(name, "method"));
|
|
45
|
-
methodCounts.set(name, (methodCounts.get(name) ?? 0) + 1);
|
|
46
|
-
}
|
|
47
|
-
for (const property of cls.getProperties()) {
|
|
48
|
-
if (isPrivateClassMember(property))
|
|
49
|
-
continue;
|
|
50
|
-
const name = property.getName();
|
|
51
|
-
if (className)
|
|
52
|
-
found.push(candidate(`${className}.${name}`, "property"));
|
|
53
|
-
}
|
|
54
|
-
for (const accessor of [
|
|
55
|
-
...cls.getGetAccessors(),
|
|
56
|
-
...cls.getSetAccessors(),
|
|
57
|
-
]) {
|
|
58
|
-
if (isPrivateClassMember(accessor))
|
|
59
|
-
continue;
|
|
60
|
-
const name = accessor.getName();
|
|
61
|
-
if (className)
|
|
62
|
-
found.push(candidate(`${className}.${name}`, "accessor"));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
for (const [name, count] of methodCounts) {
|
|
66
|
-
const method = bareMethods.get(name);
|
|
67
|
-
if (count === 1 && method)
|
|
68
|
-
found.push(method);
|
|
69
|
-
}
|
|
70
|
-
for (const item of source.getInterfaces()) {
|
|
71
|
-
if (item.isExported())
|
|
72
|
-
found.push(candidate(item.getName(), "interface"));
|
|
73
|
-
}
|
|
74
|
-
for (const item of source.getTypeAliases()) {
|
|
75
|
-
if (item.isExported())
|
|
76
|
-
found.push(candidate(item.getName(), "type"));
|
|
77
|
-
}
|
|
78
|
-
for (const item of source.getEnums()) {
|
|
79
|
-
if (item.isExported())
|
|
80
|
-
found.push(candidate(item.getName(), "enum"));
|
|
81
|
-
}
|
|
82
|
-
for (const statement of source.getVariableStatements()) {
|
|
83
|
-
if (!statement.isExported())
|
|
84
|
-
continue;
|
|
85
|
-
for (const declaration of statement.getDeclarations()) {
|
|
86
|
-
found.push(candidate(declaration.getName(), "variable"));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return found.sort((left, right) => left.name.localeCompare(right.name));
|
|
90
|
-
}
|
|
91
|
-
function isPrivateClassMember(member) {
|
|
92
|
-
return (member.hasModifier(SyntaxKind.PrivateKeyword) ||
|
|
93
|
-
member.getName().startsWith("#"));
|
|
13
|
+
return collectGranularityCandidates(filePath, content)
|
|
14
|
+
.map((item) => candidate(item.name, item.kind))
|
|
15
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
94
16
|
}
|
|
95
17
|
function summarized(names) {
|
|
96
18
|
const shown = names.slice(0, 10);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SemanticAdvisorReceipt } from "../semantic-advisor/types.js";
|
|
2
|
+
import type { SagaRollbackFailure } from "./saga.js";
|
|
2
3
|
export type RelationshipInput = Readonly<Record<string, unknown>>;
|
|
3
4
|
export type UpsertInput = {
|
|
4
5
|
readonly type: string;
|
|
@@ -48,6 +49,20 @@ export type UpsertPayload = {
|
|
|
48
49
|
readonly checked_req_id: string;
|
|
49
50
|
readonly strict_readiness: string;
|
|
50
51
|
};
|
|
52
|
+
readonly deferredCommit?: DeferredUpsertCommit;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Internal lifecycle for source writes prepared ahead of a batched Prolog
|
|
56
|
+
* commit. Finalization crosses the compiled commit boundary and permanently
|
|
57
|
+
* disables source rollback for that mutation.
|
|
58
|
+
*/
|
|
59
|
+
export type DeferredUpsertCommit = {
|
|
60
|
+
readonly entity: Readonly<Record<string, unknown>>;
|
|
61
|
+
readonly relationships: readonly RelationshipInput[];
|
|
62
|
+
readonly skipContradictionCheck: boolean;
|
|
63
|
+
readonly state: "prepared" | "rolling_back" | "rolled_back" | "committed";
|
|
64
|
+
readonly finalize: () => void;
|
|
65
|
+
readonly rollback: () => Promise<readonly SagaRollbackFailure[]>;
|
|
51
66
|
};
|
|
52
67
|
export type ValidateUpsertPayload = {
|
|
53
68
|
readonly valid: boolean;
|
|
@@ -74,6 +89,8 @@ export type DeletePayload = {
|
|
|
74
89
|
readonly error_codes?: readonly Readonly<Record<string, unknown>>[];
|
|
75
90
|
readonly relationship_results?: readonly Record<string, unknown>[];
|
|
76
91
|
readonly sync_required?: boolean;
|
|
92
|
+
/** Declared effects this call did not perform, such as a plan-only result. */
|
|
93
|
+
readonly skippedEffects?: readonly string[];
|
|
77
94
|
readonly sourceWrites?: readonly {
|
|
78
95
|
readonly path: string;
|
|
79
96
|
readonly mode?: "write" | "delete";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGrD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAGlE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACvD,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,iDAAiD;QACjD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,yEAAyE;QACzE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,QAAQ,CAAC,aAAa,EAAE,SAAS,iBAAiB,EAAE,CAAC;CACtD,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;I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AAG,IAAI,CAAC,CAAC,CAAC;QAC/D,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS;YAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;YACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;YAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;YACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;YAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;SACxB,EAAE,CAAC;QACJ,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;KACxC,CAAC;CACH,CAAC"}
|
|
@@ -18,6 +18,12 @@ export type UpsertExecutionOptions = Readonly<{
|
|
|
18
18
|
* entries. Everything else keeps the append-only invariant fail-closed.
|
|
19
19
|
*/
|
|
20
20
|
readonly allowReceiptsPrune?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Prepare source and validation, then return the commit payload without
|
|
23
|
+
* talking to Prolog. Proof ingest batches those payloads into one
|
|
24
|
+
* transaction.
|
|
25
|
+
*/
|
|
26
|
+
readonly deferCompiledCommit?: boolean;
|
|
21
27
|
}>;
|
|
22
28
|
export declare function executeUpsert(input: UpsertInput, context: OperationContext, options?: UpsertExecutionOptions): Promise<OperationResult<UpsertPayload>>;
|
|
23
29
|
//# sourceMappingURL=upsert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/upsert.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"upsert.d.ts","sourceRoot":"","sources":["../../../src/operations/mutation/upsert.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM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