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
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { VERIFICATION_RECEIPT_MAX_AGE_SECONDS } from "../../verification-receipt.js";
|
|
2
|
+
import { executeStatus } from "../discovery-executors.js";
|
|
2
3
|
import { buildLegacyMigrationPlanFromContext, } from "../legacy-migration-plan.js";
|
|
4
|
+
import { buildActionsFromCoverage, buildMigrationPlan, mergeMigrationPlans, } from "../migration-plan.js";
|
|
3
5
|
import { runOperationJsonQuery, toPrologAtom, toPrologList, } from "../prolog-json.js";
|
|
4
6
|
import { buildRepairPlan } from "../repair-plan.js";
|
|
7
|
+
import { buildSymbolRepairPlan } from "../symbol-repair-plan.js";
|
|
5
8
|
import { readWorkspaceSnapshot } from "../workspace-snapshot.js";
|
|
6
9
|
const ENTITY_TYPES = [
|
|
7
10
|
"req",
|
|
@@ -79,13 +82,55 @@ export async function executeCoverage(input, context) {
|
|
|
79
82
|
const checkedAt = context.clock().toISOString();
|
|
80
83
|
const payload = await runOperationJsonQuery(requireProlog(context), "discovery.pl", `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, ${input.includeTransitive ?? true}, ${input.limit ?? 100}, ${input.offset ?? 0}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${VERIFICATION_RECEIPT_MAX_AGE_SECONDS}, JsonString)`, "Coverage execution");
|
|
81
84
|
const repairPlan = buildRepairPlan(payload, input, codeSnapshot);
|
|
85
|
+
const symbolRepairPlan = input.by === "symbol"
|
|
86
|
+
? await buildSymbolRepairPlan(payload.rows, context)
|
|
87
|
+
: undefined;
|
|
82
88
|
const legacyMigrationPlan = input.includeMigrationPreview === true && repairPlan !== undefined
|
|
83
89
|
? await buildLegacyMigrationPlanFromContext(repairPlan, input, codeSnapshot, context)
|
|
84
90
|
: undefined;
|
|
91
|
+
// Coverage can still report its complete Prolog-backed domain in a
|
|
92
|
+
// synthetic or non-Git workspace where branch status cannot be resolved.
|
|
93
|
+
// Preserve the coverage plan and let status expose its own branch action
|
|
94
|
+
// when an attachment is available.
|
|
95
|
+
let statusPlan;
|
|
96
|
+
try {
|
|
97
|
+
const statusResult = await executeStatus({}, context);
|
|
98
|
+
statusPlan = statusResult.structuredContent?.migrationPlan;
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
102
|
+
if (!message.includes("Failed to resolve active branch"))
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
const coveragePlan = buildMigrationPlan({
|
|
106
|
+
expected: {
|
|
107
|
+
branch: context.branchAttachment?.gitBranch ?? null,
|
|
108
|
+
kbBranch: context.branchAttachment?.kbBranch ?? null,
|
|
109
|
+
...(typeof payload.meta?.snapshotId === "string"
|
|
110
|
+
? { kbSnapshotId: payload.meta.snapshotId }
|
|
111
|
+
: {}),
|
|
112
|
+
workspaceSnapshot: codeSnapshot,
|
|
113
|
+
},
|
|
114
|
+
evaluatedDomains: ["semantic", "verification", "symbol"],
|
|
115
|
+
incompleteDomains: payload.meta?.scopeComplete === false ? ["coverage"] : [],
|
|
116
|
+
actions: buildActionsFromCoverage({
|
|
117
|
+
...(repairPlan !== undefined
|
|
118
|
+
? {
|
|
119
|
+
repairPlan: repairPlan,
|
|
120
|
+
}
|
|
121
|
+
: {}),
|
|
122
|
+
...(symbolRepairPlan !== undefined ? { symbolRepairPlan } : {}),
|
|
123
|
+
}),
|
|
124
|
+
});
|
|
125
|
+
const migrationPlan = statusPlan
|
|
126
|
+
? mergeMigrationPlans([statusPlan, coveragePlan])
|
|
127
|
+
: coveragePlan;
|
|
85
128
|
const enrichedPayload = {
|
|
86
129
|
...payload,
|
|
87
130
|
...(repairPlan !== undefined ? { repairPlan } : {}),
|
|
88
131
|
...(legacyMigrationPlan !== undefined ? { legacyMigrationPlan } : {}),
|
|
132
|
+
...(symbolRepairPlan !== undefined ? { symbolRepairPlan } : {}),
|
|
133
|
+
migrationPlan,
|
|
89
134
|
meta: {
|
|
90
135
|
...(payload.meta ?? {}),
|
|
91
136
|
verificationReceiptMaxAgeSeconds: VERIFICATION_RECEIPT_MAX_AGE_SECONDS,
|
|
@@ -121,7 +166,7 @@ export async function executeCoverage(input, context) {
|
|
|
121
166
|
export const coverageSpec = {
|
|
122
167
|
name: "kb_coverage",
|
|
123
168
|
cliName: "coverage",
|
|
124
|
-
description: "Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types.
|
|
169
|
+
description: "Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types. Reports include the compatible repair plan plus typed kibi.migration-plan.v2 actions; semantic and E2E actions remain review/execution work. Paginated plans identify incomplete scope and no mutation occurs.",
|
|
125
170
|
businessInputSchema: {
|
|
126
171
|
type: "object",
|
|
127
172
|
properties: {
|
|
@@ -106,7 +106,7 @@ export declare const upsertSpec: {
|
|
|
106
106
|
};
|
|
107
107
|
readonly granularity_reason: {
|
|
108
108
|
readonly type: "string";
|
|
109
|
-
readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link"];
|
|
109
|
+
readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link", "test-suite"];
|
|
110
110
|
readonly description: "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist.";
|
|
111
111
|
};
|
|
112
112
|
readonly symbol_role: {
|
|
@@ -124,63 +124,206 @@ export declare const upsertSpec: {
|
|
|
124
124
|
readonly enum: readonly ["internal", "consumer"];
|
|
125
125
|
readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
|
|
126
126
|
};
|
|
127
|
-
readonly
|
|
128
|
-
readonly type: "
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
readonly
|
|
143
|
-
readonly type: "string";
|
|
144
|
-
readonly minLength: 1;
|
|
145
|
-
};
|
|
146
|
-
readonly runner: {
|
|
127
|
+
readonly verification_contract: {
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly required: readonly ["version", "runner", "command_argv", "required_case_symbols", "required_projects", "success_policy"];
|
|
130
|
+
readonly properties: {
|
|
131
|
+
readonly version: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
readonly const: "kibi.verification-contract.v1";
|
|
134
|
+
};
|
|
135
|
+
readonly runner: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
readonly minLength: 1;
|
|
138
|
+
};
|
|
139
|
+
readonly command_argv: {
|
|
140
|
+
readonly type: "array";
|
|
141
|
+
readonly minItems: 1;
|
|
142
|
+
readonly items: {
|
|
147
143
|
readonly type: "string";
|
|
148
144
|
readonly minLength: 1;
|
|
149
145
|
};
|
|
150
|
-
|
|
146
|
+
};
|
|
147
|
+
readonly required_case_symbols: {
|
|
148
|
+
readonly type: "array";
|
|
149
|
+
readonly items: {
|
|
151
150
|
readonly type: "string";
|
|
152
151
|
readonly minLength: 1;
|
|
153
152
|
};
|
|
154
|
-
readonly
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
readonly
|
|
159
|
-
readonly type: "string";
|
|
160
|
-
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped"];
|
|
161
|
-
};
|
|
162
|
-
readonly code_snapshot: {
|
|
163
|
-
readonly type: "string";
|
|
164
|
-
readonly pattern: "^[a-f0-9]{64}$";
|
|
165
|
-
};
|
|
166
|
-
readonly environment_hash: {
|
|
167
|
-
readonly type: "string";
|
|
168
|
-
readonly pattern: "^[a-f0-9]{64}$";
|
|
169
|
-
};
|
|
170
|
-
readonly started_at: {
|
|
153
|
+
readonly uniqueItems: true;
|
|
154
|
+
};
|
|
155
|
+
readonly required_projects: {
|
|
156
|
+
readonly type: "array";
|
|
157
|
+
readonly items: {
|
|
171
158
|
readonly type: "string";
|
|
172
159
|
readonly minLength: 1;
|
|
173
160
|
};
|
|
174
|
-
readonly
|
|
175
|
-
|
|
176
|
-
|
|
161
|
+
readonly uniqueItems: true;
|
|
162
|
+
};
|
|
163
|
+
readonly success_policy: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly const: "all_required_cases_first_attempt";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly additionalProperties: false;
|
|
169
|
+
};
|
|
170
|
+
readonly verification_receipts: {
|
|
171
|
+
readonly type: "array";
|
|
172
|
+
readonly maxItems: 50;
|
|
173
|
+
readonly items: {
|
|
174
|
+
readonly oneOf: readonly [{
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest"];
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly version: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly const: "kibi.verification-receipt.v1";
|
|
181
|
+
};
|
|
182
|
+
readonly receipt_id: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
|
|
185
|
+
};
|
|
186
|
+
readonly test_id: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly minLength: 1;
|
|
189
|
+
};
|
|
190
|
+
readonly runner: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly minLength: 1;
|
|
193
|
+
};
|
|
194
|
+
readonly command: {
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
readonly minLength: 1;
|
|
197
|
+
};
|
|
198
|
+
readonly scope: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
readonly enum: readonly ["unit", "integration", "end_to_end"];
|
|
201
|
+
};
|
|
202
|
+
readonly outcome: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
|
|
205
|
+
};
|
|
206
|
+
readonly code_snapshot: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
209
|
+
};
|
|
210
|
+
readonly environment_hash: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
213
|
+
};
|
|
214
|
+
readonly started_at: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly minLength: 1;
|
|
217
|
+
};
|
|
218
|
+
readonly finished_at: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly minLength: 1;
|
|
221
|
+
};
|
|
222
|
+
readonly artifact_digest: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
225
|
+
};
|
|
177
226
|
};
|
|
178
|
-
readonly
|
|
179
|
-
|
|
180
|
-
|
|
227
|
+
readonly additionalProperties: false;
|
|
228
|
+
}, {
|
|
229
|
+
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"];
|
|
230
|
+
readonly properties: {
|
|
231
|
+
readonly version: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly const: "kibi.verification-receipt.v2";
|
|
234
|
+
};
|
|
235
|
+
readonly command_argv: {
|
|
236
|
+
readonly type: "array";
|
|
237
|
+
readonly minItems: 1;
|
|
238
|
+
readonly items: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly minLength: 1;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly contract_hash: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
246
|
+
};
|
|
247
|
+
readonly case_results: {
|
|
248
|
+
readonly type: "array";
|
|
249
|
+
readonly minItems: 1;
|
|
250
|
+
readonly maxItems: 1000;
|
|
251
|
+
readonly items: {
|
|
252
|
+
readonly type: "object";
|
|
253
|
+
readonly required: readonly ["symbol_id", "project", "outcome", "retries", "duration_ms"];
|
|
254
|
+
readonly properties: {
|
|
255
|
+
readonly symbol_id: {
|
|
256
|
+
readonly type: "string";
|
|
257
|
+
readonly minLength: 1;
|
|
258
|
+
};
|
|
259
|
+
readonly project: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly minLength: 1;
|
|
262
|
+
};
|
|
263
|
+
readonly outcome: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted"];
|
|
266
|
+
};
|
|
267
|
+
readonly retries: {
|
|
268
|
+
readonly type: "integer";
|
|
269
|
+
readonly minimum: 0;
|
|
270
|
+
};
|
|
271
|
+
readonly duration_ms: {
|
|
272
|
+
readonly type: "integer";
|
|
273
|
+
readonly minimum: 0;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
readonly additionalProperties: false;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly receipt_id: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
|
|
282
|
+
};
|
|
283
|
+
readonly test_id: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly minLength: 1;
|
|
286
|
+
};
|
|
287
|
+
readonly runner: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly minLength: 1;
|
|
290
|
+
};
|
|
291
|
+
readonly command: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly minLength: 1;
|
|
294
|
+
};
|
|
295
|
+
readonly scope: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly enum: readonly ["unit", "integration", "end_to_end"];
|
|
298
|
+
};
|
|
299
|
+
readonly outcome: {
|
|
300
|
+
readonly type: "string";
|
|
301
|
+
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
|
|
302
|
+
};
|
|
303
|
+
readonly code_snapshot: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
306
|
+
};
|
|
307
|
+
readonly environment_hash: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
310
|
+
};
|
|
311
|
+
readonly started_at: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
readonly minLength: 1;
|
|
314
|
+
};
|
|
315
|
+
readonly finished_at: {
|
|
316
|
+
readonly type: "string";
|
|
317
|
+
readonly minLength: 1;
|
|
318
|
+
};
|
|
319
|
+
readonly artifact_digest: {
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
322
|
+
};
|
|
181
323
|
};
|
|
182
|
-
|
|
183
|
-
|
|
324
|
+
readonly type: "object";
|
|
325
|
+
readonly additionalProperties: false;
|
|
326
|
+
}];
|
|
184
327
|
};
|
|
185
328
|
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.";
|
|
186
329
|
};
|
|
@@ -377,6 +520,20 @@ export declare const upsertSpec: {
|
|
|
377
520
|
};
|
|
378
521
|
};
|
|
379
522
|
};
|
|
523
|
+
readonly document: {
|
|
524
|
+
readonly type: "object";
|
|
525
|
+
readonly additionalProperties: false;
|
|
526
|
+
readonly description: "Optional source-first document write. Paths are workspace-relative; omit body when updating to preserve the existing body bytes.";
|
|
527
|
+
readonly properties: {
|
|
528
|
+
readonly path: {
|
|
529
|
+
readonly type: "string";
|
|
530
|
+
readonly minLength: 1;
|
|
531
|
+
};
|
|
532
|
+
readonly body: {
|
|
533
|
+
readonly type: "string";
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
380
537
|
};
|
|
381
538
|
};
|
|
382
539
|
readonly requiresProlog: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/upsert.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAQvE,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"upsert.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/upsert.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAQvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCuC,CAAC"}
|
|
@@ -19,6 +19,15 @@ export const upsertSpec = {
|
|
|
19
19
|
},
|
|
20
20
|
properties: ENTITY_PROPERTIES_SCHEMA,
|
|
21
21
|
relationships: RELATIONSHIPS_SCHEMA,
|
|
22
|
+
document: {
|
|
23
|
+
type: "object",
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
description: "Optional source-first document write. Paths are workspace-relative; omit body when updating to preserve the existing body bytes.",
|
|
26
|
+
properties: {
|
|
27
|
+
path: { type: "string", minLength: 1 },
|
|
28
|
+
body: { type: "string" },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
22
31
|
},
|
|
23
32
|
},
|
|
24
33
|
requiresProlog: true,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { executeIngestVerification } from "../../../operations/verification/ingest-verification.js";
|
|
2
|
+
export type { IngestVerificationArgs, IngestVerificationResult, } from "../../../operations/verification/ingest-verification.js";
|
|
3
|
+
export { executeIngestVerification } from "../../../operations/verification/ingest-verification.js";
|
|
4
|
+
export declare const ingestVerificationSpec: {
|
|
5
|
+
readonly name: "kb_ingest_verification";
|
|
6
|
+
readonly cliName: "ingest-verification";
|
|
7
|
+
readonly description: "Ingest a reporter-produced kibi.playwright-run.v1 artifact for a contracted test. Revalidates the live workspace snapshot, runner/command contract, required case/project coverage, and append-only receipt history before deriving and appending a kibi.verification-receipt.v2. It never accepts a caller-authored receipt or trusted outcome.";
|
|
8
|
+
readonly businessInputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly required: readonly ["testId", "snapshot", "artifact"];
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly testId: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly minLength: 1;
|
|
15
|
+
readonly description: "Existing test entity with verification_contract.v1.";
|
|
16
|
+
};
|
|
17
|
+
readonly snapshot: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
20
|
+
readonly description: "Workspace verification snapshot captured immediately before the run.";
|
|
21
|
+
};
|
|
22
|
+
readonly artifact: {
|
|
23
|
+
readonly type: "object";
|
|
24
|
+
readonly required: readonly ["version", "runner", "command_argv", "code_snapshot", "environment_hash", "started_at", "finished_at", "process_exit_code", "cases"];
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly version: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly const: "kibi.playwright-run.v1";
|
|
29
|
+
};
|
|
30
|
+
readonly runner: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly minLength: 1;
|
|
33
|
+
};
|
|
34
|
+
readonly command_argv: {
|
|
35
|
+
readonly type: "array";
|
|
36
|
+
readonly minItems: 1;
|
|
37
|
+
readonly items: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
readonly minLength: 1;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly code_snapshot: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
45
|
+
};
|
|
46
|
+
readonly environment_hash: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
49
|
+
};
|
|
50
|
+
readonly started_at: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly minLength: 1;
|
|
53
|
+
};
|
|
54
|
+
readonly finished_at: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly minLength: 1;
|
|
57
|
+
};
|
|
58
|
+
readonly process_exit_code: {
|
|
59
|
+
readonly type: "integer";
|
|
60
|
+
};
|
|
61
|
+
readonly cases: {
|
|
62
|
+
readonly type: "array";
|
|
63
|
+
readonly minItems: 1;
|
|
64
|
+
readonly maxItems: 1000;
|
|
65
|
+
readonly items: {
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly additionalProperties: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly requiresProlog: true;
|
|
75
|
+
readonly effects: readonly ["kb-read", "kb-write", "workspace-read"];
|
|
76
|
+
readonly execute: typeof executeIngestVerification;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=verification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/verification.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EAC1B,MAAM,yDAAyD,CAAC;AAGjE,YAAY,EACV,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAGpG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DlC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { executeIngestVerification, } from "../../../operations/verification/ingest-verification.js";
|
|
2
|
+
export { executeIngestVerification } from "../../../operations/verification/ingest-verification.js";
|
|
3
|
+
// implements REQ-kibi-verification-evidence-contract
|
|
4
|
+
export const ingestVerificationSpec = {
|
|
5
|
+
name: "kb_ingest_verification",
|
|
6
|
+
cliName: "ingest-verification",
|
|
7
|
+
description: "Ingest a reporter-produced kibi.playwright-run.v1 artifact for a contracted test. Revalidates the live workspace snapshot, runner/command contract, required case/project coverage, and append-only receipt history before deriving and appending a kibi.verification-receipt.v2. It never accepts a caller-authored receipt or trusted outcome.",
|
|
8
|
+
businessInputSchema: {
|
|
9
|
+
type: "object",
|
|
10
|
+
required: ["testId", "snapshot", "artifact"],
|
|
11
|
+
properties: {
|
|
12
|
+
testId: {
|
|
13
|
+
type: "string",
|
|
14
|
+
minLength: 1,
|
|
15
|
+
description: "Existing test entity with verification_contract.v1.",
|
|
16
|
+
},
|
|
17
|
+
snapshot: {
|
|
18
|
+
type: "string",
|
|
19
|
+
pattern: "^[a-f0-9]{64}$",
|
|
20
|
+
description: "Workspace verification snapshot captured immediately before the run.",
|
|
21
|
+
},
|
|
22
|
+
artifact: {
|
|
23
|
+
type: "object",
|
|
24
|
+
required: [
|
|
25
|
+
"version",
|
|
26
|
+
"runner",
|
|
27
|
+
"command_argv",
|
|
28
|
+
"code_snapshot",
|
|
29
|
+
"environment_hash",
|
|
30
|
+
"started_at",
|
|
31
|
+
"finished_at",
|
|
32
|
+
"process_exit_code",
|
|
33
|
+
"cases",
|
|
34
|
+
],
|
|
35
|
+
properties: {
|
|
36
|
+
version: { type: "string", const: "kibi.playwright-run.v1" },
|
|
37
|
+
runner: { type: "string", minLength: 1 },
|
|
38
|
+
command_argv: {
|
|
39
|
+
type: "array",
|
|
40
|
+
minItems: 1,
|
|
41
|
+
items: { type: "string", minLength: 1 },
|
|
42
|
+
},
|
|
43
|
+
code_snapshot: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
44
|
+
environment_hash: { type: "string", pattern: "^[a-f0-9]{64}$" },
|
|
45
|
+
started_at: { type: "string", minLength: 1 },
|
|
46
|
+
finished_at: { type: "string", minLength: 1 },
|
|
47
|
+
process_exit_code: { type: "integer" },
|
|
48
|
+
cases: {
|
|
49
|
+
type: "array",
|
|
50
|
+
minItems: 1,
|
|
51
|
+
maxItems: 1000,
|
|
52
|
+
items: { type: "object" },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
additionalProperties: true,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
requiresProlog: true,
|
|
60
|
+
effects: ["kb-read", "kb-write", "workspace-read"],
|
|
61
|
+
execute: executeIngestVerification,
|
|
62
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OperationContext } from "./runtime-types.js";
|
|
2
|
+
export declare const SYMBOL_REPAIR_PLAN_VERSION: "kibi.symbol-repair-plan.v1";
|
|
3
|
+
export type SymbolRepairPlan = Readonly<{
|
|
4
|
+
version: typeof SYMBOL_REPAIR_PLAN_VERSION;
|
|
5
|
+
readOnly: true;
|
|
6
|
+
autoApplicable: false;
|
|
7
|
+
repairs: readonly Readonly<Record<string, unknown>>[];
|
|
8
|
+
}>;
|
|
9
|
+
/** Build review-only, evidence-backed symbol recovery suggestions. */
|
|
10
|
+
export declare function buildSymbolRepairPlan(rows: readonly Readonly<Record<string, unknown>>[], context: OperationContext): Promise<SymbolRepairPlan | undefined>;
|
|
11
|
+
//# sourceMappingURL=symbol-repair-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol-repair-plan.d.ts","sourceRoot":"","sources":["../../../src/public/operations/symbol-repair-plan.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAO,MAAM,0BAA0B,EAAG,4BAAqC,CAAC;AAEhF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,OAAO,0BAA0B,CAAC;IAC3C,QAAQ,EAAE,IAAI,CAAC;IACf,cAAc,EAAE,KAAK,CAAC;IACtB,OAAO,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;CACvD,CAAC,CAAC;AA0DH,sEAAsE;AACtE,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,EAClD,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAwFvC"}
|