kibi-cli 0.19.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-operation-loader.d.ts.map +1 -1
- package/dist/cli-operation-loader.js +53 -20
- package/dist/cli-operation-metadata.d.ts +20 -8
- package/dist/cli-operation-metadata.d.ts.map +1 -1
- package/dist/cli-operation-metadata.js +23 -8
- package/dist/cli-protocol.d.ts.map +1 -1
- package/dist/cli-protocol.js +38 -8
- package/dist/cli-register-foundation.d.ts.map +1 -1
- package/dist/cli-register-foundation.js +14 -2
- package/dist/cli-register-maintenance.d.ts.map +1 -1
- package/dist/cli-register-maintenance.js +26 -4
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +10 -0
- package/dist/cli-register-verification.d.ts +3 -0
- package/dist/cli-register-verification.d.ts.map +1 -0
- package/dist/cli-register-verification.js +16 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/commands/aggregated-checks.d.ts +1 -2
- package/dist/commands/aggregated-checks.d.ts.map +1 -1
- package/dist/commands/aggregated-checks.js +14 -9
- package/dist/commands/branch.d.ts +36 -0
- package/dist/commands/branch.d.ts.map +1 -1
- package/dist/commands/branch.js +371 -40
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +20 -67
- package/dist/commands/discovery-shared.d.ts.map +1 -1
- package/dist/commands/discovery-shared.js +10 -19
- package/dist/commands/doctor.d.ts +4 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +259 -24
- package/dist/commands/engine.d.ts.map +1 -1
- package/dist/commands/engine.js +10 -7
- package/dist/commands/gc.d.ts +5 -2
- package/dist/commands/gc.d.ts.map +1 -1
- package/dist/commands/gc.js +140 -71
- package/dist/commands/github-init.d.ts +56 -0
- package/dist/commands/github-init.d.ts.map +1 -0
- package/dist/commands/github-init.js +310 -0
- package/dist/commands/init-helpers.d.ts +1 -1
- package/dist/commands/init-helpers.d.ts.map +1 -1
- package/dist/commands/init-helpers.js +73 -25
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +79 -24
- package/dist/commands/legacy-storage-migration.d.ts +54 -0
- package/dist/commands/legacy-storage-migration.d.ts.map +1 -0
- package/dist/commands/legacy-storage-migration.js +277 -0
- package/dist/commands/migrate.d.ts +7 -0
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +244 -91
- package/dist/commands/report.d.ts +24 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/report.js +191 -0
- package/dist/commands/sync/cache.d.ts +16 -3
- package/dist/commands/sync/cache.d.ts.map +1 -1
- package/dist/commands/sync/cache.js +111 -4
- package/dist/commands/sync/discovery.d.ts +23 -2
- package/dist/commands/sync/discovery.d.ts.map +1 -1
- package/dist/commands/sync/discovery.js +196 -15
- package/dist/commands/sync/extraction.d.ts +8 -1
- package/dist/commands/sync/extraction.d.ts.map +1 -1
- package/dist/commands/sync/extraction.js +38 -4
- package/dist/commands/sync/manifest.d.ts +8 -5
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +142 -39
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +3 -0
- package/dist/commands/sync.d.ts +6 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +304 -79
- package/dist/commands/verify.d.ts +10 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +126 -0
- package/dist/diagnostics.d.ts +1 -1
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/engine.d.ts +96 -3
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +392 -23
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +5 -6
- package/dist/extractors/manifest.d.ts +8 -1
- package/dist/extractors/manifest.d.ts.map +1 -1
- package/dist/extractors/manifest.js +51 -9
- package/dist/extractors/markdown.d.ts +2 -1
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +21 -3
- package/dist/extractors/playwright-cases.d.ts +24 -0
- package/dist/extractors/playwright-cases.d.ts.map +1 -0
- package/dist/extractors/playwright-cases.js +126 -0
- package/dist/extractors/relationships.d.ts.map +1 -1
- package/dist/extractors/relationships.js +1 -0
- package/dist/extractors/symbol-coordinates.d.ts +81 -3
- package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
- package/dist/extractors/symbol-coordinates.js +389 -51
- package/dist/extractors/symbols-coordinator.js +11 -1
- package/dist/intent-search.d.ts +60 -0
- package/dist/intent-search.d.ts.map +1 -0
- package/dist/intent-search.js +433 -0
- package/dist/operations/bootstrap/activation.d.ts.map +1 -0
- package/dist/operations/{autopilot → bootstrap}/activation.js +48 -31
- package/dist/operations/{autopilot → bootstrap}/candidate-helpers.d.ts.map +1 -1
- package/dist/operations/bootstrap/candidates.d.ts +4 -0
- package/dist/operations/{autopilot → bootstrap}/candidates.d.ts.map +1 -1
- package/dist/operations/{autopilot → bootstrap}/candidates.js +22 -8
- package/dist/operations/{autopilot → bootstrap}/discovery-evidence.d.ts +2 -2
- package/dist/operations/{autopilot → bootstrap}/discovery-evidence.d.ts.map +1 -1
- package/dist/operations/{autopilot → bootstrap}/discovery-evidence.js +46 -6
- package/dist/operations/{autopilot → bootstrap}/discovery.d.ts +1 -1
- package/dist/operations/bootstrap/discovery.d.ts.map +1 -0
- package/dist/operations/{autopilot → bootstrap}/discovery.js +21 -14
- package/dist/operations/bootstrap/generate.d.ts +8 -0
- package/dist/operations/bootstrap/generate.d.ts.map +1 -0
- package/dist/operations/bootstrap/generate.js +204 -0
- package/dist/operations/{autopilot → bootstrap}/guidance-actions.d.ts +2 -2
- package/dist/operations/{autopilot → bootstrap}/guidance-actions.d.ts.map +1 -1
- package/dist/operations/{autopilot → bootstrap}/guidance-actions.js +4 -4
- package/dist/operations/{autopilot → bootstrap}/guidance.d.ts +2 -2
- package/dist/operations/{autopilot → bootstrap}/guidance.d.ts.map +1 -1
- package/dist/operations/{autopilot → bootstrap}/guidance.js +2 -0
- package/dist/operations/{autopilot → bootstrap}/markdown-candidates.d.ts +2 -2
- package/dist/operations/{autopilot → bootstrap}/markdown-candidates.d.ts.map +1 -1
- package/dist/operations/{autopilot → bootstrap}/markdown-candidates.js +4 -3
- package/dist/operations/bootstrap/presentation.d.ts +15 -0
- package/dist/operations/bootstrap/presentation.d.ts.map +1 -0
- package/dist/operations/bootstrap/presentation.js +177 -0
- package/dist/operations/{autopilot → bootstrap}/requirement-claims.d.ts.map +1 -1
- package/dist/operations/{autopilot → bootstrap}/types.d.ts +63 -21
- package/dist/operations/bootstrap/types.d.ts.map +1 -0
- package/dist/operations/bootstrap/types.js +25 -0
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
- package/dist/operations/modeling/model-requirement.js +4 -17
- package/dist/operations/modeling/predicate-applicability.d.ts +16 -0
- package/dist/operations/modeling/predicate-applicability.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-applicability.js +276 -0
- package/dist/operations/modeling/predicate-applyplan.d.ts +13 -2
- package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-applyplan.js +100 -3
- package/dist/operations/modeling/predicate-bindings.d.ts +6 -0
- package/dist/operations/modeling/predicate-bindings.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-bindings.js +122 -0
- package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-catalog-4.js +155 -0
- package/dist/operations/modeling/predicate-inference-1.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-inference-1.js +8 -0
- package/dist/operations/modeling/predicate-inference-launcher.d.ts +10 -0
- package/dist/operations/modeling/predicate-inference-launcher.d.ts.map +1 -0
- package/dist/operations/modeling/predicate-inference-launcher.js +13 -0
- package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-inference.js +4 -0
- package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-loader.js +7 -0
- package/dist/operations/modeling/predicate-ranker.d.ts +8 -1
- package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-ranker.js +156 -24
- package/dist/operations/modeling/predicate-score-3.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-score-3.js +6 -0
- package/dist/operations/modeling/predicate-types.d.ts +34 -0
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-usage-hints-3.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-usage-hints-3.js +40 -0
- package/dist/operations/modeling/predicate-utils.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-utils.js +2 -0
- 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 +170 -32
- package/dist/operations/mutation/delete.d.ts.map +1 -1
- package/dist/operations/mutation/delete.js +415 -19
- package/dist/operations/mutation/entity-projection.d.ts +11 -0
- package/dist/operations/mutation/entity-projection.d.ts.map +1 -0
- package/dist/operations/mutation/entity-projection.js +14 -0
- package/dist/operations/mutation/relationships.d.ts +10 -0
- package/dist/operations/mutation/relationships.d.ts.map +1 -1
- package/dist/operations/mutation/relationships.js +71 -1
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +1 -0
- package/dist/operations/mutation/source-authoring.d.ts +61 -0
- package/dist/operations/mutation/source-authoring.d.ts.map +1 -0
- package/dist/operations/mutation/source-authoring.js +543 -0
- package/dist/operations/mutation/symbol-compiler-lock.d.ts +51 -0
- package/dist/operations/mutation/symbol-compiler-lock.d.ts.map +1 -0
- package/dist/operations/mutation/symbol-compiler-lock.js +274 -0
- package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-granularity.js +34 -3
- package/dist/operations/mutation/symbol-refresh.d.ts +18 -1
- package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-refresh.js +225 -63
- package/dist/operations/mutation/types.d.ts +57 -1
- package/dist/operations/mutation/types.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +363 -24
- package/dist/operations/mutation/validation.d.ts.map +1 -1
- package/dist/operations/mutation/validation.js +1 -0
- package/dist/operations/planning/apply-plan.d.ts +117 -0
- package/dist/operations/planning/apply-plan.d.ts.map +1 -0
- package/dist/operations/planning/apply-plan.js +1437 -0
- package/dist/operations/planning/compile-intent.d.ts +106 -0
- package/dist/operations/planning/compile-intent.d.ts.map +1 -0
- package/dist/operations/planning/compile-intent.js +562 -0
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.js +6 -2
- package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/clauses.js +15 -2
- package/dist/operations/semantic-advisor/ingestion-boundary.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/ingestion-boundary.js +7 -3
- package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts +51 -0
- package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/predicate-rules-launcher.js +96 -0
- package/dist/operations/semantic-advisor/types.d.ts +13 -5
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/operations/verification/ingest-verification.d.ts +29 -0
- package/dist/operations/verification/ingest-verification.d.ts.map +1 -0
- package/dist/operations/verification/ingest-verification.js +192 -0
- package/dist/prolog/codec.d.ts.map +1 -1
- package/dist/prolog/codec.js +2 -1
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +27 -8
- package/dist/public/branch-resolver.d.ts +1 -0
- package/dist/public/branch-resolver.d.ts.map +1 -1
- package/dist/public/branch-resolver.js +1 -0
- package/dist/public/check-types.d.ts +2 -2
- package/dist/public/check-types.d.ts.map +1 -1
- package/dist/public/check-types.js +16 -16
- package/dist/public/diagnostic-usage.d.ts.map +1 -1
- package/dist/public/diagnostic-usage.js +69 -1
- package/dist/public/distribution-parity.d.ts +1 -1
- package/dist/public/distribution-parity.d.ts.map +1 -1
- package/dist/public/distribution-parity.js +1 -0
- package/dist/public/ignore-policy.d.ts.map +1 -1
- package/dist/public/ignore-policy.js +16 -4
- package/dist/public/impact/coverage-depth-quality.d.ts +6 -1
- package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
- package/dist/public/impact/coverage-depth-quality.js +21 -3
- package/dist/public/impact/full-kb-quality.d.ts +4 -2
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +61 -1
- package/dist/public/impact/manifest.d.ts.map +1 -1
- package/dist/public/impact/manifest.js +2 -5
- package/dist/public/operational-artifacts.d.ts.map +1 -1
- package/dist/public/operational-artifacts.js +7 -1
- package/dist/public/operations/catalog.d.ts +682 -67
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/catalog.js +126 -4
- package/dist/public/operations/check-executor.d.ts +2 -2
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +72 -13
- package/dist/public/operations/check-format-shared.d.ts +3 -0
- package/dist/public/operations/check-format-shared.d.ts.map +1 -1
- package/dist/public/operations/check-format-shared.js +3 -0
- package/dist/public/operations/check-helpers.d.ts +27 -2
- package/dist/public/operations/check-helpers.d.ts.map +1 -1
- package/dist/public/operations/check-helpers.js +62 -26
- package/dist/public/operations/contracts.d.ts +11 -0
- package/dist/public/operations/contracts.d.ts.map +1 -0
- package/dist/public/operations/contracts.js +325 -0
- package/dist/public/operations/discovery-executors.d.ts +37 -1
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +206 -6
- package/dist/public/operations/index.d.ts +9 -4
- package/dist/public/operations/index.d.ts.map +1 -1
- package/dist/public/operations/index.js +8 -3
- package/dist/public/operations/migration-plan.d.ts +101 -0
- package/dist/public/operations/migration-plan.d.ts.map +1 -0
- package/dist/public/operations/migration-plan.js +537 -0
- package/dist/public/operations/node-ports.d.ts.map +1 -1
- package/dist/public/operations/node-ports.js +68 -8
- package/dist/public/operations/prolog-json.d.ts +14 -0
- package/dist/public/operations/prolog-json.d.ts.map +1 -1
- package/dist/public/operations/prolog-json.js +44 -5
- package/dist/public/operations/repair-plan.d.ts.map +1 -1
- package/dist/public/operations/repair-plan.js +1 -0
- package/dist/public/operations/result-envelope.d.ts +13 -0
- package/dist/public/operations/result-envelope.d.ts.map +1 -0
- package/dist/public/operations/result-envelope.js +104 -0
- package/dist/public/operations/runtime-types.d.ts +97 -7
- package/dist/public/operations/runtime-types.d.ts.map +1 -1
- package/dist/public/operations/source-relationship-parity.d.ts +13 -0
- package/dist/public/operations/source-relationship-parity.d.ts.map +1 -0
- package/dist/public/operations/source-relationship-parity.js +162 -0
- package/dist/public/operations/specs/{autopilot.d.ts → bootstrap.d.ts} +9 -9
- package/dist/public/operations/specs/bootstrap.d.ts.map +1 -0
- package/dist/public/operations/specs/{autopilot.js → bootstrap.js} +8 -7
- package/dist/public/operations/specs/check.d.ts +4 -4
- package/dist/public/operations/specs/check.d.ts.map +1 -1
- package/dist/public/operations/specs/check.js +4 -3
- package/dist/public/operations/specs/discovery.d.ts +87 -3
- package/dist/public/operations/specs/discovery.d.ts.map +1 -1
- package/dist/public/operations/specs/discovery.js +53 -3
- package/dist/public/operations/specs/modeling.d.ts +3 -3
- package/dist/public/operations/specs/modeling.js +3 -3
- package/dist/public/operations/specs/mutation-schemas.d.ts +190 -47
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +3 -1
- package/dist/public/operations/specs/mutation.d.ts +42 -2
- package/dist/public/operations/specs/mutation.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation.js +26 -2
- package/dist/public/operations/specs/planning.d.ts +270 -0
- package/dist/public/operations/specs/planning.d.ts.map +1 -0
- package/dist/public/operations/specs/planning.js +191 -0
- package/dist/public/operations/specs/reporting.d.ts +4 -1
- package/dist/public/operations/specs/reporting.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.js +46 -1
- package/dist/public/operations/specs/upsert.d.ts +204 -47
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/operations/specs/upsert.js +9 -0
- package/dist/public/operations/specs/verification.d.ts +78 -0
- package/dist/public/operations/specs/verification.d.ts.map +1 -0
- package/dist/public/operations/specs/verification.js +62 -0
- package/dist/public/operations/symbol-repair-plan.d.ts +11 -0
- package/dist/public/operations/symbol-repair-plan.d.ts.map +1 -0
- package/dist/public/operations/symbol-repair-plan.js +123 -0
- package/dist/public/operations/types.d.ts +52 -1
- package/dist/public/operations/types.d.ts.map +1 -1
- package/dist/public/playwright-case-id.d.ts +8 -0
- package/dist/public/playwright-case-id.d.ts.map +1 -0
- package/dist/public/playwright-case-id.js +25 -0
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +4 -2
- package/dist/public/skills/kibi-bootstrap/SKILL.md +58 -0
- package/dist/public/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
- package/dist/public/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
- package/dist/public/skills/kibi-bootstrap/resources/operation-access.md +5 -0
- package/dist/public/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
- package/dist/public/skills/kibi-freshness/SKILL.md +39 -9
- package/dist/public/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
- package/dist/public/skills/kibi-freshness/resources/operation-access.md +6 -0
- package/dist/public/skills/kibi-freshness/resources/source-authoring.md +7 -0
- package/dist/public/skills/kibi-traceability/SKILL.md +47 -47
- package/dist/public/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
- package/dist/public/skills/kibi-traceability/resources/operation-access.md +5 -0
- package/dist/public/skills/kibi-traceability/resources/source-authoring.md +6 -0
- package/dist/public/skills/kibi-traceability/resources/traceability.md +8 -0
- package/dist/public/skills/kibi-usage/SKILL.md +115 -239
- package/dist/public/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
- package/dist/public/skills/kibi-usage/resources/kb-improvement.md +38 -0
- package/dist/public/skills/kibi-usage/resources/operation-access.md +36 -38
- package/dist/public/skills/kibi-usage/resources/relationship-directions.md +3 -3
- package/dist/public/skills/kibi-usage/resources/source-authoring.md +31 -0
- package/dist/public/skills/kibi-usage/resources/workflows.md +56 -3
- package/dist/public/symbol-granularity.d.ts +1 -1
- package/dist/public/symbol-granularity.d.ts.map +1 -1
- package/dist/public/symbol-granularity.js +1 -0
- package/dist/public/telemetry-acceptance.d.ts +7 -0
- package/dist/public/telemetry-acceptance.d.ts.map +1 -1
- package/dist/public/telemetry-acceptance.js +8 -1
- package/dist/public/telemetry-remediation.js +1 -1
- package/dist/public/verification-receipt.d.ts +206 -39
- package/dist/public/verification-receipt.d.ts.map +1 -1
- package/dist/public/verification-receipt.js +171 -4
- package/dist/relationships/shards.d.ts +16 -0
- package/dist/relationships/shards.d.ts.map +1 -1
- package/dist/relationships/shards.js +87 -2
- package/dist/report/brand.d.ts +19 -0
- package/dist/report/brand.d.ts.map +1 -0
- package/dist/report/brand.js +112 -0
- package/dist/report/html-report.d.ts +19 -0
- package/dist/report/html-report.d.ts.map +1 -0
- package/dist/report/html-report.js +963 -0
- package/dist/report/relative-time.d.ts +4 -0
- package/dist/report/relative-time.d.ts.map +1 -0
- package/dist/report/relative-time.js +46 -0
- package/dist/report/report-view.d.ts +17 -0
- package/dist/report/report-view.d.ts.map +1 -0
- package/dist/report/report-view.js +33 -0
- package/dist/report/repository.d.ts +35 -0
- package/dist/report/repository.d.ts.map +1 -0
- package/dist/report/repository.js +151 -0
- package/dist/runtime/cli-runtime.d.ts.map +1 -1
- package/dist/runtime/cli-runtime.js +82 -22
- package/dist/schemas/entity.schema.json +1148 -273
- package/dist/traceability/evidence-model.d.ts +2 -2
- package/dist/traceability/evidence-model.d.ts.map +1 -1
- package/dist/traceability/evidence-model.js +2 -2
- package/dist/traceability/git-staged.d.ts.map +1 -1
- package/dist/traceability/git-staged.js +15 -40
- package/dist/traceability/markdown-validate.d.ts.map +1 -1
- package/dist/traceability/markdown-validate.js +12 -7
- package/dist/traceability/staged-impact-contract.d.ts +3 -3
- package/dist/traceability/staged-impact-contract.d.ts.map +1 -1
- package/dist/traceability/staged-impact-contract.js +10 -38
- package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
- package/dist/traceability/staged-symbols-manifest.js +8 -3
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +3 -0
- package/dist/types/entities.d.ts +3 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/branch-resolver.d.ts +24 -10
- package/dist/utils/branch-resolver.d.ts.map +1 -1
- package/dist/utils/branch-resolver.js +121 -38
- package/dist/utils/branch-store-locator.d.ts +23 -0
- package/dist/utils/branch-store-locator.d.ts.map +1 -0
- package/dist/utils/branch-store-locator.js +90 -0
- package/dist/utils/branch-store.d.ts +15 -0
- package/dist/utils/branch-store.d.ts.map +1 -0
- package/dist/utils/branch-store.js +130 -0
- package/dist/utils/config.d.ts +39 -37
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +107 -119
- package/dist/utils/kb-manifest.d.ts +35 -0
- package/dist/utils/kb-manifest.d.ts.map +1 -0
- package/dist/utils/kb-manifest.js +154 -0
- package/dist/utils/kb-paths.d.ts +54 -0
- package/dist/utils/kb-paths.d.ts.map +1 -0
- package/dist/utils/kb-paths.js +125 -0
- package/dist/utils/manifest-paths.d.ts +4 -4
- package/dist/utils/manifest-paths.d.ts.map +1 -1
- package/dist/utils/manifest-paths.js +8 -56
- package/dist/utils/rule-registry.d.ts +48 -20
- package/dist/utils/rule-registry.d.ts.map +1 -1
- package/dist/utils/rule-registry.js +82 -77
- package/dist/utils/schema-version.d.ts +5 -5
- package/dist/utils/schema-version.d.ts.map +1 -1
- package/dist/utils/schema-version.js +26 -6
- package/dist/utils/strict-modeling.d.ts +0 -4
- package/dist/utils/strict-modeling.d.ts.map +1 -1
- package/dist/utils/strict-modeling.js +7 -8
- package/dist/verification/playwright-reporter.d.ts +21 -0
- package/dist/verification/playwright-reporter.d.ts.map +1 -0
- package/dist/verification/playwright-reporter.js +114 -0
- package/package.json +46 -7
- package/schema/config.json +2 -2
- package/schema/manifest.json +26 -0
- package/src/public/branch-resolver.ts +1 -0
- package/src/public/check-types.ts +22 -19
- package/src/public/diagnostic-usage.ts +79 -1
- package/src/public/distribution-parity.ts +1 -0
- package/src/public/ignore-policy.ts +16 -10
- package/src/public/impact/coverage-depth-quality.ts +36 -0
- package/src/public/impact/full-kb-quality.ts +118 -5
- package/src/public/impact/manifest.ts +2 -4
- package/src/public/operational-artifacts.ts +9 -1
- package/src/public/operations/catalog.ts +146 -9
- package/src/public/operations/check-executor.ts +102 -15
- package/src/public/operations/check-format-shared.ts +6 -0
- package/src/public/operations/check-helpers.ts +74 -35
- package/src/public/operations/contracts.ts +366 -0
- package/src/public/operations/discovery-executors.ts +299 -12
- package/src/public/operations/index.ts +9 -4
- package/src/public/operations/migration-plan.ts +740 -0
- package/src/public/operations/node-ports.ts +84 -10
- package/src/public/operations/prolog-json.ts +60 -5
- package/src/public/operations/repair-plan.ts +1 -0
- package/src/public/operations/result-envelope.ts +136 -0
- package/src/public/operations/runtime-types.ts +91 -5
- package/src/public/operations/source-relationship-parity.ts +226 -0
- package/src/public/operations/specs/{autopilot.ts → bootstrap.ts} +17 -16
- package/src/public/operations/specs/check.ts +4 -3
- package/src/public/operations/specs/discovery.ts +57 -3
- package/src/public/operations/specs/modeling.ts +3 -3
- package/src/public/operations/specs/mutation-schemas.ts +6 -1
- package/src/public/operations/specs/mutation.ts +27 -2
- package/src/public/operations/specs/planning.ts +234 -0
- package/src/public/operations/specs/reporting.ts +55 -1
- package/src/public/operations/specs/upsert.ts +10 -0
- package/src/public/operations/specs/verification.ts +78 -0
- package/src/public/operations/symbol-repair-plan.ts +164 -0
- package/src/public/operations/types.ts +62 -1
- package/src/public/playwright-case-id.ts +35 -0
- package/src/public/schemas/entity.ts +7 -2
- package/src/public/skills/kibi-bootstrap/SKILL.md +58 -0
- package/src/public/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
- package/src/public/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
- package/src/public/skills/kibi-bootstrap/resources/operation-access.md +5 -0
- package/src/public/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
- package/src/public/skills/kibi-freshness/SKILL.md +39 -9
- package/src/public/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
- package/src/public/skills/kibi-freshness/resources/operation-access.md +6 -0
- package/src/public/skills/kibi-freshness/resources/source-authoring.md +7 -0
- package/src/public/skills/kibi-traceability/SKILL.md +47 -47
- package/src/public/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
- package/src/public/skills/kibi-traceability/resources/operation-access.md +5 -0
- package/src/public/skills/kibi-traceability/resources/source-authoring.md +6 -0
- package/src/public/skills/kibi-traceability/resources/traceability.md +8 -0
- package/src/public/skills/kibi-usage/SKILL.md +115 -239
- package/src/public/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
- package/src/public/skills/kibi-usage/resources/kb-improvement.md +38 -0
- package/src/public/skills/kibi-usage/resources/operation-access.md +36 -38
- package/src/public/skills/kibi-usage/resources/relationship-directions.md +3 -3
- package/src/public/skills/kibi-usage/resources/source-authoring.md +31 -0
- package/src/public/skills/kibi-usage/resources/workflows.md +56 -3
- package/src/public/symbol-granularity.ts +1 -0
- package/src/public/telemetry-acceptance.ts +16 -1
- package/src/public/telemetry-remediation.ts +1 -1
- package/src/public/verification-receipt.ts +248 -6
- package/src/schemas/entity.schema.json +1148 -273
- package/templates/github/kibi-badge.yml +86 -0
- package/templates/github/kibi-report.yml +84 -0
- package/dist/operations/autopilot/activation.d.ts.map +0 -1
- package/dist/operations/autopilot/candidates.d.ts +0 -4
- package/dist/operations/autopilot/discovery.d.ts.map +0 -1
- package/dist/operations/autopilot/generate.d.ts +0 -8
- package/dist/operations/autopilot/generate.d.ts.map +0 -1
- package/dist/operations/autopilot/generate.js +0 -112
- package/dist/operations/autopilot/presentation.d.ts +0 -13
- package/dist/operations/autopilot/presentation.d.ts.map +0 -1
- package/dist/operations/autopilot/presentation.js +0 -91
- package/dist/operations/autopilot/types.d.ts.map +0 -1
- package/dist/operations/autopilot/types.js +0 -8
- package/dist/public/operations/specs/autopilot.d.ts.map +0 -1
- package/dist/public/skills/init-kibi/SKILL.md +0 -62
- package/src/public/skills/init-kibi/SKILL.md +0 -62
- /package/dist/operations/{autopilot → bootstrap}/activation.d.ts +0 -0
- /package/dist/operations/{autopilot → bootstrap}/candidate-helpers.d.ts +0 -0
- /package/dist/operations/{autopilot → bootstrap}/candidate-helpers.js +0 -0
- /package/dist/operations/{autopilot → bootstrap}/requirement-claims.d.ts +0 -0
- /package/dist/operations/{autopilot → bootstrap}/requirement-claims.js +0 -0
|
@@ -2,7 +2,7 @@ import { executeCheck } from "../check-executor.js";
|
|
|
2
2
|
export declare const checkSpec: {
|
|
3
3
|
readonly name: "kb_check";
|
|
4
4
|
readonly cliName: "check";
|
|
5
|
-
readonly description: "Run KB validation rules and return violations
|
|
5
|
+
readonly description: "Run KB validation rules and return violations, quality diagnostics, and typed kibi.migration-plan.v2 actions. Use before or after mutations and after source edits; checks remain read-only and never infer or apply actions from prose suggestions.";
|
|
6
6
|
readonly businessInputSchema: {
|
|
7
7
|
readonly type: "object";
|
|
8
8
|
readonly properties: {
|
|
@@ -10,9 +10,9 @@ export declare const checkSpec: {
|
|
|
10
10
|
readonly type: "array";
|
|
11
11
|
readonly items: {
|
|
12
12
|
readonly type: "string";
|
|
13
|
-
readonly enum: readonly ["must-priority-coverage", "symbol-coverage", "symbol-traceability", "no-dangling-refs", "no-cycles", "required-fields", "deprecated-adr-no-successor", "domain-contradictions", "strict-fact-shape", "strict-req-fact-pairing", "predicate-verifiability", "logic-coverage", "rule-safety", "rule-verifiability", "semantic-completeness", "query-plan-safety"];
|
|
13
|
+
readonly enum: readonly ["must-priority-coverage", "symbol-coverage", "symbol-traceability", "no-dangling-refs", "source-relationship-parity", "no-cycles", "required-fields", "deprecated-adr-no-successor", "domain-contradictions", "strict-fact-shape", "strict-req-fact-pairing", "predicate-verifiability", "logic-coverage", "rule-safety", "rule-verifiability", "semantic-completeness", "query-plan-safety"];
|
|
14
14
|
};
|
|
15
|
-
readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs
|
|
15
|
+
readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.";
|
|
16
16
|
};
|
|
17
17
|
readonly sourceFiles: {
|
|
18
18
|
readonly type: "array";
|
|
@@ -40,7 +40,7 @@ export declare const checkSpec: {
|
|
|
40
40
|
};
|
|
41
41
|
readonly workspaceRoot: {
|
|
42
42
|
readonly type: "string";
|
|
43
|
-
readonly description: "Optional workspace root for impact diagnostics
|
|
43
|
+
readonly description: "Optional workspace root for impact diagnostics. Defaults to the MCP server workspace.";
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEY,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { executeCheck } from "../check-executor.js";
|
|
|
2
2
|
export const checkSpec = {
|
|
3
3
|
name: "kb_check",
|
|
4
4
|
cliName: "check",
|
|
5
|
-
description: "Run KB validation rules and return violations
|
|
5
|
+
description: "Run KB validation rules and return violations, quality diagnostics, and typed kibi.migration-plan.v2 actions. Use before or after mutations and after source edits; checks remain read-only and never infer or apply actions from prose suggestions.",
|
|
6
6
|
businessInputSchema: {
|
|
7
7
|
type: "object",
|
|
8
8
|
properties: {
|
|
@@ -15,6 +15,7 @@ export const checkSpec = {
|
|
|
15
15
|
"symbol-coverage",
|
|
16
16
|
"symbol-traceability",
|
|
17
17
|
"no-dangling-refs",
|
|
18
|
+
"source-relationship-parity",
|
|
18
19
|
"no-cycles",
|
|
19
20
|
"required-fields",
|
|
20
21
|
"deprecated-adr-no-successor",
|
|
@@ -29,7 +30,7 @@ export const checkSpec = {
|
|
|
29
30
|
"query-plan-safety",
|
|
30
31
|
],
|
|
31
32
|
},
|
|
32
|
-
description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs
|
|
33
|
+
description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.",
|
|
33
34
|
},
|
|
34
35
|
sourceFiles: {
|
|
35
36
|
type: "array",
|
|
@@ -55,7 +56,7 @@ export const checkSpec = {
|
|
|
55
56
|
},
|
|
56
57
|
workspaceRoot: {
|
|
57
58
|
type: "string",
|
|
58
|
-
description: "Optional workspace root for impact diagnostics
|
|
59
|
+
description: "Optional workspace root for impact diagnostics. Defaults to the MCP server workspace.",
|
|
59
60
|
},
|
|
60
61
|
},
|
|
61
62
|
},
|
|
@@ -45,7 +45,7 @@ export declare const querySpec: {
|
|
|
45
45
|
export declare const searchSpec: {
|
|
46
46
|
readonly name: "kb_search";
|
|
47
47
|
readonly cliName: "search";
|
|
48
|
-
readonly description: "Search KB entities for discovery using
|
|
48
|
+
readonly description: "Search KB entities for discovery using legacy lexical ranking or deterministic intent-v1 ranking. Intent mode accepts host-agent semantic facets and source locations, returns evidence and abstains below its confidence threshold. Use for exploratory lookup before exact follow-up with kb_query. No mutation side effects.";
|
|
49
49
|
readonly businessInputSchema: {
|
|
50
50
|
readonly type: "object";
|
|
51
51
|
readonly required: readonly ["query"];
|
|
@@ -73,6 +73,90 @@ export declare const searchSpec: {
|
|
|
73
73
|
readonly default: 0;
|
|
74
74
|
readonly description: "Optional zero-based pagination offset. Default: 0.";
|
|
75
75
|
};
|
|
76
|
+
readonly rankingMode: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly enum: readonly ["legacy", "intent-v1"];
|
|
79
|
+
readonly default: "legacy";
|
|
80
|
+
readonly description: "Optional deterministic ranking mode. Omit for backward-compatible lexical search; use intent-v1 for semantic facets, source-aware evidence, graph boosts, and abstention.";
|
|
81
|
+
};
|
|
82
|
+
readonly semanticFacets: {
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
readonly properties: {
|
|
86
|
+
readonly actors: {
|
|
87
|
+
readonly type: "array";
|
|
88
|
+
readonly items: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
};
|
|
91
|
+
readonly maxItems: 20;
|
|
92
|
+
};
|
|
93
|
+
readonly actions: {
|
|
94
|
+
readonly type: "array";
|
|
95
|
+
readonly items: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
readonly maxItems: 20;
|
|
99
|
+
};
|
|
100
|
+
readonly objects: {
|
|
101
|
+
readonly type: "array";
|
|
102
|
+
readonly items: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
};
|
|
105
|
+
readonly maxItems: 20;
|
|
106
|
+
};
|
|
107
|
+
readonly constraints: {
|
|
108
|
+
readonly type: "array";
|
|
109
|
+
readonly items: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
};
|
|
112
|
+
readonly maxItems: 20;
|
|
113
|
+
};
|
|
114
|
+
readonly aliases: {
|
|
115
|
+
readonly type: "array";
|
|
116
|
+
readonly items: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
};
|
|
119
|
+
readonly maxItems: 20;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
readonly description: "Optional host-agent semantic interpretation. Kibi uses these strings as deterministic aliases/facets; it does not call a model itself.";
|
|
123
|
+
};
|
|
124
|
+
readonly sourceLocations: {
|
|
125
|
+
readonly type: "array";
|
|
126
|
+
readonly maxItems: 20;
|
|
127
|
+
readonly items: {
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly required: readonly ["path"];
|
|
130
|
+
readonly additionalProperties: false;
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly path: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly minLength: 1;
|
|
135
|
+
readonly description: "Workspace-relative source path.";
|
|
136
|
+
};
|
|
137
|
+
readonly line: {
|
|
138
|
+
readonly type: "integer";
|
|
139
|
+
readonly minimum: 1;
|
|
140
|
+
};
|
|
141
|
+
readonly column: {
|
|
142
|
+
readonly type: "integer";
|
|
143
|
+
readonly minimum: 1;
|
|
144
|
+
};
|
|
145
|
+
readonly symbol: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly minLength: 1;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly description: "Optional changed-code locations. Results are matched to source-linked symbols/entities and include source evidence.";
|
|
152
|
+
};
|
|
153
|
+
readonly minScore: {
|
|
154
|
+
readonly type: "number";
|
|
155
|
+
readonly minimum: 0;
|
|
156
|
+
readonly maximum: 1;
|
|
157
|
+
readonly default: 0.18;
|
|
158
|
+
readonly description: "Intent-v1 acceptance threshold between 0 and 1. Low-confidence queries abstain instead of returning misleading matches.";
|
|
159
|
+
};
|
|
76
160
|
};
|
|
77
161
|
};
|
|
78
162
|
readonly requiresProlog: true;
|
|
@@ -82,12 +166,12 @@ export declare const searchSpec: {
|
|
|
82
166
|
export declare const statusSpec: {
|
|
83
167
|
readonly name: "kb_status";
|
|
84
168
|
readonly cliName: "status";
|
|
85
|
-
readonly description: "Report current branch, KB snapshot
|
|
169
|
+
readonly description: "Report current branch, KB snapshot, freshness metadata, schema status, and a typed kibi.migration-plan.v2 action graph. Read-only status inspection with no mutation side effects; damaged stores are diagnosed without starting the engine.";
|
|
86
170
|
readonly businessInputSchema: {
|
|
87
171
|
readonly type: "object";
|
|
88
172
|
readonly properties: {};
|
|
89
173
|
};
|
|
90
|
-
readonly requiresProlog:
|
|
174
|
+
readonly requiresProlog: false;
|
|
91
175
|
readonly effects: readonly ["kb-read", "workspace-read"];
|
|
92
176
|
readonly execute: typeof executeStatus;
|
|
93
177
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,aAAa,EACd,MAAM,2BAA2B,CAAC;AAsBnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CsC,CAAC;AAE7D,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,aAAa,EACd,MAAM,2BAA2B,CAAC;AAsBnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CsC,CAAC;AAE7D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FuC,CAAC;AAE/D,eAAO,MAAM,UAAU;;;;;;;;;;;CAUuC,CAAC"}
|
|
@@ -53,7 +53,7 @@ export const querySpec = {
|
|
|
53
53
|
export const searchSpec = {
|
|
54
54
|
name: "kb_search",
|
|
55
55
|
cliName: "search",
|
|
56
|
-
description: "Search KB entities for discovery using
|
|
56
|
+
description: "Search KB entities for discovery using legacy lexical ranking or deterministic intent-v1 ranking. Intent mode accepts host-agent semantic facets and source locations, returns evidence and abstains below its confidence threshold. Use for exploratory lookup before exact follow-up with kb_query. No mutation side effects.",
|
|
57
57
|
businessInputSchema: {
|
|
58
58
|
type: "object",
|
|
59
59
|
required: ["query"],
|
|
@@ -81,6 +81,55 @@ export const searchSpec = {
|
|
|
81
81
|
default: 0,
|
|
82
82
|
description: "Optional zero-based pagination offset. Default: 0.",
|
|
83
83
|
},
|
|
84
|
+
rankingMode: {
|
|
85
|
+
type: "string",
|
|
86
|
+
enum: ["legacy", "intent-v1"],
|
|
87
|
+
default: "legacy",
|
|
88
|
+
description: "Optional deterministic ranking mode. Omit for backward-compatible lexical search; use intent-v1 for semantic facets, source-aware evidence, graph boosts, and abstention.",
|
|
89
|
+
},
|
|
90
|
+
semanticFacets: {
|
|
91
|
+
type: "object",
|
|
92
|
+
additionalProperties: false,
|
|
93
|
+
properties: {
|
|
94
|
+
actors: { type: "array", items: { type: "string" }, maxItems: 20 },
|
|
95
|
+
actions: { type: "array", items: { type: "string" }, maxItems: 20 },
|
|
96
|
+
objects: { type: "array", items: { type: "string" }, maxItems: 20 },
|
|
97
|
+
constraints: {
|
|
98
|
+
type: "array",
|
|
99
|
+
items: { type: "string" },
|
|
100
|
+
maxItems: 20,
|
|
101
|
+
},
|
|
102
|
+
aliases: { type: "array", items: { type: "string" }, maxItems: 20 },
|
|
103
|
+
},
|
|
104
|
+
description: "Optional host-agent semantic interpretation. Kibi uses these strings as deterministic aliases/facets; it does not call a model itself.",
|
|
105
|
+
},
|
|
106
|
+
sourceLocations: {
|
|
107
|
+
type: "array",
|
|
108
|
+
maxItems: 20,
|
|
109
|
+
items: {
|
|
110
|
+
type: "object",
|
|
111
|
+
required: ["path"],
|
|
112
|
+
additionalProperties: false,
|
|
113
|
+
properties: {
|
|
114
|
+
path: {
|
|
115
|
+
type: "string",
|
|
116
|
+
minLength: 1,
|
|
117
|
+
description: "Workspace-relative source path.",
|
|
118
|
+
},
|
|
119
|
+
line: { type: "integer", minimum: 1 },
|
|
120
|
+
column: { type: "integer", minimum: 1 },
|
|
121
|
+
symbol: { type: "string", minLength: 1 },
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
description: "Optional changed-code locations. Results are matched to source-linked symbols/entities and include source evidence.",
|
|
125
|
+
},
|
|
126
|
+
minScore: {
|
|
127
|
+
type: "number",
|
|
128
|
+
minimum: 0,
|
|
129
|
+
maximum: 1,
|
|
130
|
+
default: 0.18,
|
|
131
|
+
description: "Intent-v1 acceptance threshold between 0 and 1. Low-confidence queries abstain instead of returning misleading matches.",
|
|
132
|
+
},
|
|
84
133
|
},
|
|
85
134
|
},
|
|
86
135
|
requiresProlog: true,
|
|
@@ -90,9 +139,10 @@ export const searchSpec = {
|
|
|
90
139
|
export const statusSpec = {
|
|
91
140
|
name: "kb_status",
|
|
92
141
|
cliName: "status",
|
|
93
|
-
description: "Report current branch, KB snapshot
|
|
142
|
+
description: "Report current branch, KB snapshot, freshness metadata, schema status, and a typed kibi.migration-plan.v2 action graph. Read-only status inspection with no mutation side effects; damaged stores are diagnosed without starting the engine.",
|
|
94
143
|
businessInputSchema: { type: "object", properties: {} },
|
|
95
|
-
|
|
144
|
+
// Status must remain available when the branch store cannot be attached.
|
|
145
|
+
requiresProlog: false,
|
|
96
146
|
effects: ["kb-read", "workspace-read"],
|
|
97
147
|
execute: executeStatus,
|
|
98
148
|
};
|
|
@@ -14,7 +14,7 @@ export declare const modelRequirementSpec: {
|
|
|
14
14
|
};
|
|
15
15
|
readonly source: {
|
|
16
16
|
readonly type: "string";
|
|
17
|
-
readonly description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: '
|
|
17
|
+
readonly description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: '.kb/requirements/customer-retention.md'.";
|
|
18
18
|
};
|
|
19
19
|
readonly sourceFiles: {
|
|
20
20
|
readonly type: "array";
|
|
@@ -48,7 +48,7 @@ export declare const modelRequirementSpec: {
|
|
|
48
48
|
};
|
|
49
49
|
readonly provenance: {
|
|
50
50
|
readonly type: "string";
|
|
51
|
-
readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: '
|
|
51
|
+
readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: '.kb/requirements/customer-retention.md#L1'.";
|
|
52
52
|
};
|
|
53
53
|
readonly existingLogicClaims: {
|
|
54
54
|
readonly type: "array";
|
|
@@ -84,7 +84,7 @@ export declare const modelRequirementSpec: {
|
|
|
84
84
|
export declare const suggestPredicatesSpec: {
|
|
85
85
|
readonly name: "kb_suggest_predicates";
|
|
86
86
|
readonly cliName: "suggest-predicates";
|
|
87
|
-
readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns
|
|
87
|
+
readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Retrieval/ranking is followed by a semantic applicability gate and conservative binding review; complete-looking generic placeholders never trigger application. Read-only guidance returns additive candidate diagnostics, an applicable predicate-fact plan only for a semantically eligible candidate with reviewed bindings, or an explicit ontology-gap observation plus a deterministic review-only predicate schema draft when no schema fits.";
|
|
88
88
|
readonly businessInputSchema: {
|
|
89
89
|
readonly type: "object";
|
|
90
90
|
readonly required: readonly ["text"];
|
|
@@ -14,7 +14,7 @@ export const modelRequirementSpec = {
|
|
|
14
14
|
},
|
|
15
15
|
source: {
|
|
16
16
|
type: "string",
|
|
17
|
-
description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: '
|
|
17
|
+
description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: '.kb/requirements/customer-retention.md'.",
|
|
18
18
|
},
|
|
19
19
|
sourceFiles: {
|
|
20
20
|
type: "array",
|
|
@@ -46,7 +46,7 @@ export const modelRequirementSpec = {
|
|
|
46
46
|
},
|
|
47
47
|
provenance: {
|
|
48
48
|
type: "string",
|
|
49
|
-
description: "Optional extracted text reference. Falls back to source when omitted. Example: '
|
|
49
|
+
description: "Optional extracted text reference. Falls back to source when omitted. Example: '.kb/requirements/customer-retention.md#L1'.",
|
|
50
50
|
},
|
|
51
51
|
existingLogicClaims: {
|
|
52
52
|
type: "array",
|
|
@@ -79,7 +79,7 @@ export const modelRequirementSpec = {
|
|
|
79
79
|
export const suggestPredicatesSpec = {
|
|
80
80
|
name: "kb_suggest_predicates",
|
|
81
81
|
cliName: "suggest-predicates",
|
|
82
|
-
description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns
|
|
82
|
+
description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Retrieval/ranking is followed by a semantic applicability gate and conservative binding review; complete-looking generic placeholders never trigger application. Read-only guidance returns additive candidate diagnostics, an applicable predicate-fact plan only for a semantically eligible candidate with reviewed bindings, or an explicit ontology-gap observation plus a deterministic review-only predicate schema draft when no schema fits.",
|
|
83
83
|
businessInputSchema: {
|
|
84
84
|
type: "object",
|
|
85
85
|
required: ["text"],
|
|
@@ -89,7 +89,7 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
89
89
|
};
|
|
90
90
|
readonly granularity_reason: {
|
|
91
91
|
readonly type: "string";
|
|
92
|
-
readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link"];
|
|
92
|
+
readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link", "test-suite"];
|
|
93
93
|
readonly description: "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist.";
|
|
94
94
|
};
|
|
95
95
|
readonly symbol_role: {
|
|
@@ -107,63 +107,206 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
107
107
|
readonly enum: readonly ["internal", "consumer"];
|
|
108
108
|
readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
|
|
109
109
|
};
|
|
110
|
-
readonly
|
|
111
|
-
readonly type: "
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
readonly
|
|
126
|
-
readonly type: "string";
|
|
127
|
-
readonly minLength: 1;
|
|
128
|
-
};
|
|
129
|
-
readonly runner: {
|
|
110
|
+
readonly verification_contract: {
|
|
111
|
+
readonly type: "object";
|
|
112
|
+
readonly required: readonly ["version", "runner", "command_argv", "required_case_symbols", "required_projects", "success_policy"];
|
|
113
|
+
readonly properties: {
|
|
114
|
+
readonly version: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly const: "kibi.verification-contract.v1";
|
|
117
|
+
};
|
|
118
|
+
readonly runner: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
readonly minLength: 1;
|
|
121
|
+
};
|
|
122
|
+
readonly command_argv: {
|
|
123
|
+
readonly type: "array";
|
|
124
|
+
readonly minItems: 1;
|
|
125
|
+
readonly items: {
|
|
130
126
|
readonly type: "string";
|
|
131
127
|
readonly minLength: 1;
|
|
132
128
|
};
|
|
133
|
-
|
|
129
|
+
};
|
|
130
|
+
readonly required_case_symbols: {
|
|
131
|
+
readonly type: "array";
|
|
132
|
+
readonly items: {
|
|
134
133
|
readonly type: "string";
|
|
135
134
|
readonly minLength: 1;
|
|
136
135
|
};
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
readonly
|
|
142
|
-
readonly type: "string";
|
|
143
|
-
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped"];
|
|
144
|
-
};
|
|
145
|
-
readonly code_snapshot: {
|
|
146
|
-
readonly type: "string";
|
|
147
|
-
readonly pattern: "^[a-f0-9]{64}$";
|
|
148
|
-
};
|
|
149
|
-
readonly environment_hash: {
|
|
150
|
-
readonly type: "string";
|
|
151
|
-
readonly pattern: "^[a-f0-9]{64}$";
|
|
152
|
-
};
|
|
153
|
-
readonly started_at: {
|
|
136
|
+
readonly uniqueItems: true;
|
|
137
|
+
};
|
|
138
|
+
readonly required_projects: {
|
|
139
|
+
readonly type: "array";
|
|
140
|
+
readonly items: {
|
|
154
141
|
readonly type: "string";
|
|
155
142
|
readonly minLength: 1;
|
|
156
143
|
};
|
|
157
|
-
readonly
|
|
158
|
-
|
|
159
|
-
|
|
144
|
+
readonly uniqueItems: true;
|
|
145
|
+
};
|
|
146
|
+
readonly success_policy: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
readonly const: "all_required_cases_first_attempt";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly additionalProperties: false;
|
|
152
|
+
};
|
|
153
|
+
readonly verification_receipts: {
|
|
154
|
+
readonly type: "array";
|
|
155
|
+
readonly maxItems: 50;
|
|
156
|
+
readonly items: {
|
|
157
|
+
readonly oneOf: readonly [{
|
|
158
|
+
readonly type: "object";
|
|
159
|
+
readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest"];
|
|
160
|
+
readonly properties: {
|
|
161
|
+
readonly version: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly const: "kibi.verification-receipt.v1";
|
|
164
|
+
};
|
|
165
|
+
readonly receipt_id: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
|
|
168
|
+
};
|
|
169
|
+
readonly test_id: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly minLength: 1;
|
|
172
|
+
};
|
|
173
|
+
readonly runner: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly minLength: 1;
|
|
176
|
+
};
|
|
177
|
+
readonly command: {
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
readonly minLength: 1;
|
|
180
|
+
};
|
|
181
|
+
readonly scope: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly enum: readonly ["unit", "integration", "end_to_end"];
|
|
184
|
+
};
|
|
185
|
+
readonly outcome: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
|
|
188
|
+
};
|
|
189
|
+
readonly code_snapshot: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
192
|
+
};
|
|
193
|
+
readonly environment_hash: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
196
|
+
};
|
|
197
|
+
readonly started_at: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
readonly minLength: 1;
|
|
200
|
+
};
|
|
201
|
+
readonly finished_at: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly minLength: 1;
|
|
204
|
+
};
|
|
205
|
+
readonly artifact_digest: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
208
|
+
};
|
|
160
209
|
};
|
|
161
|
-
readonly
|
|
162
|
-
|
|
163
|
-
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
}, {
|
|
212
|
+
readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest", "command_argv", "contract_hash", "case_results"];
|
|
213
|
+
readonly properties: {
|
|
214
|
+
readonly version: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly const: "kibi.verification-receipt.v2";
|
|
217
|
+
};
|
|
218
|
+
readonly command_argv: {
|
|
219
|
+
readonly type: "array";
|
|
220
|
+
readonly minItems: 1;
|
|
221
|
+
readonly items: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly minLength: 1;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly contract_hash: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
229
|
+
};
|
|
230
|
+
readonly case_results: {
|
|
231
|
+
readonly type: "array";
|
|
232
|
+
readonly minItems: 1;
|
|
233
|
+
readonly maxItems: 1000;
|
|
234
|
+
readonly items: {
|
|
235
|
+
readonly type: "object";
|
|
236
|
+
readonly required: readonly ["symbol_id", "project", "outcome", "retries", "duration_ms"];
|
|
237
|
+
readonly properties: {
|
|
238
|
+
readonly symbol_id: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly minLength: 1;
|
|
241
|
+
};
|
|
242
|
+
readonly project: {
|
|
243
|
+
readonly type: "string";
|
|
244
|
+
readonly minLength: 1;
|
|
245
|
+
};
|
|
246
|
+
readonly outcome: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted"];
|
|
249
|
+
};
|
|
250
|
+
readonly retries: {
|
|
251
|
+
readonly type: "integer";
|
|
252
|
+
readonly minimum: 0;
|
|
253
|
+
};
|
|
254
|
+
readonly duration_ms: {
|
|
255
|
+
readonly type: "integer";
|
|
256
|
+
readonly minimum: 0;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly additionalProperties: false;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly receipt_id: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
|
|
265
|
+
};
|
|
266
|
+
readonly test_id: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly minLength: 1;
|
|
269
|
+
};
|
|
270
|
+
readonly runner: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly minLength: 1;
|
|
273
|
+
};
|
|
274
|
+
readonly command: {
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
readonly minLength: 1;
|
|
277
|
+
};
|
|
278
|
+
readonly scope: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly enum: readonly ["unit", "integration", "end_to_end"];
|
|
281
|
+
};
|
|
282
|
+
readonly outcome: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
|
|
285
|
+
};
|
|
286
|
+
readonly code_snapshot: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
289
|
+
};
|
|
290
|
+
readonly environment_hash: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
293
|
+
};
|
|
294
|
+
readonly started_at: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly minLength: 1;
|
|
297
|
+
};
|
|
298
|
+
readonly finished_at: {
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
readonly minLength: 1;
|
|
301
|
+
};
|
|
302
|
+
readonly artifact_digest: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
305
|
+
};
|
|
164
306
|
};
|
|
165
|
-
|
|
166
|
-
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly additionalProperties: false;
|
|
309
|
+
}];
|
|
167
310
|
};
|
|
168
311
|
readonly description: "Append-only test execution evidence. Proof accepts only the newest valid passed receipt bound to the current code snapshot and within the seven-day freshness window.";
|
|
169
312
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-schemas.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/mutation-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutation-schemas.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/mutation-schemas.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,gFASf,CAAC;AAYX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiT3B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;CA2CvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERIFICATION_RECEIPT_SCHEMA } from "../../verification-receipt.js";
|
|
1
|
+
import { VERIFICATION_CONTRACT_SCHEMA, VERIFICATION_RECEIPT_SCHEMA, } from "../../verification-receipt.js";
|
|
2
2
|
export const ENTITY_TYPES = [
|
|
3
3
|
"req",
|
|
4
4
|
"scenario",
|
|
@@ -103,6 +103,7 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
103
103
|
"module-level-behavior",
|
|
104
104
|
"extractor-miss",
|
|
105
105
|
"legacy-link",
|
|
106
|
+
"test-suite",
|
|
106
107
|
],
|
|
107
108
|
description: "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist.",
|
|
108
109
|
},
|
|
@@ -128,6 +129,7 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
128
129
|
enum: ["internal", "consumer"],
|
|
129
130
|
description: "Optional typed verification perspective for test entities. Example: 'consumer'.",
|
|
130
131
|
},
|
|
132
|
+
verification_contract: VERIFICATION_CONTRACT_SCHEMA,
|
|
131
133
|
verification_receipts: {
|
|
132
134
|
type: "array",
|
|
133
135
|
maxItems: 50,
|