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,5 +1,160 @@
|
|
|
1
1
|
// implements REQ-mcp-suggest-predicates
|
|
2
2
|
export const PREDICATE_CATALOG_4 = [
|
|
3
|
+
{
|
|
4
|
+
id: "FACT-SCHEMA-DEPENDENCY-RESOLUTION-POLICY",
|
|
5
|
+
predicate_name: "dependency_resolution_policy",
|
|
6
|
+
title: "Dependency resolution policy",
|
|
7
|
+
description: "Defines where a component may resolve a dependency and how it may acquire it.",
|
|
8
|
+
argument_names: [
|
|
9
|
+
"component",
|
|
10
|
+
"dependency",
|
|
11
|
+
"allowed_scope",
|
|
12
|
+
"acquisition_policy",
|
|
13
|
+
],
|
|
14
|
+
argument_types: ["component", "dependency", "scope", "policy"],
|
|
15
|
+
argument_descriptions: [
|
|
16
|
+
"Component performing resolution.",
|
|
17
|
+
"Dependency to resolve.",
|
|
18
|
+
"Permitted resolution scope.",
|
|
19
|
+
"Allowed acquisition behavior.",
|
|
20
|
+
],
|
|
21
|
+
keywords: [
|
|
22
|
+
"dependency",
|
|
23
|
+
"resolve",
|
|
24
|
+
"resolution",
|
|
25
|
+
"local",
|
|
26
|
+
"workspace",
|
|
27
|
+
"download",
|
|
28
|
+
"acquire",
|
|
29
|
+
],
|
|
30
|
+
aliases: ["dependency lookup policy", "dependency acquisition policy"],
|
|
31
|
+
examples: [
|
|
32
|
+
"dependency_resolution_policy(plugin_launcher, mcp_server, consumer_local, no_download)",
|
|
33
|
+
],
|
|
34
|
+
tags: ["dependency", "resolution", "policy"],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "FACT-SCHEMA-ORDERED-RESOLUTION-STRATEGY",
|
|
38
|
+
predicate_name: "ordered_resolution_strategy",
|
|
39
|
+
title: "Ordered resolution strategy",
|
|
40
|
+
description: "Defines ordered sources for resolving a dependency and the condition for fallback.",
|
|
41
|
+
argument_names: ["resolver", "ordered_sources", "fallback_condition"],
|
|
42
|
+
argument_types: ["component", "source_list", "condition"],
|
|
43
|
+
argument_descriptions: [
|
|
44
|
+
"Resolver applying the strategy.",
|
|
45
|
+
"Sources tried in order.",
|
|
46
|
+
"Condition permitting fallback.",
|
|
47
|
+
],
|
|
48
|
+
keywords: [
|
|
49
|
+
"ordered",
|
|
50
|
+
"first",
|
|
51
|
+
"then",
|
|
52
|
+
"fallback",
|
|
53
|
+
"candidate",
|
|
54
|
+
"workspace",
|
|
55
|
+
"cwd",
|
|
56
|
+
],
|
|
57
|
+
aliases: ["ordered lookup", "resolution fallback order"],
|
|
58
|
+
examples: [
|
|
59
|
+
"ordered_resolution_strategy(launcher, workspace_node_modules|root_node_modules, missing_candidate)",
|
|
60
|
+
],
|
|
61
|
+
tags: ["resolution", "ordering", "fallback"],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "FACT-SCHEMA-RESOLUTION-FAILURE-POLICY",
|
|
65
|
+
predicate_name: "resolution_failure_policy",
|
|
66
|
+
title: "Resolution failure policy",
|
|
67
|
+
description: "Defines the required outcome when dependency resolution encounters invalid or ambiguous inputs.",
|
|
68
|
+
argument_names: ["resolver", "invalid_condition", "required_outcome"],
|
|
69
|
+
argument_types: ["component", "condition", "outcome"],
|
|
70
|
+
argument_descriptions: [
|
|
71
|
+
"Resolver enforcing the policy.",
|
|
72
|
+
"Invalid or ambiguous condition.",
|
|
73
|
+
"Required failure outcome.",
|
|
74
|
+
],
|
|
75
|
+
keywords: [
|
|
76
|
+
"invalid",
|
|
77
|
+
"ambiguous",
|
|
78
|
+
"reject",
|
|
79
|
+
"resolution",
|
|
80
|
+
"error",
|
|
81
|
+
"fail clearly",
|
|
82
|
+
],
|
|
83
|
+
aliases: ["invalid resolution handling", "resolution rejection policy"],
|
|
84
|
+
examples: [
|
|
85
|
+
"resolution_failure_policy(launcher, invalid_placeholder, clear_error)",
|
|
86
|
+
],
|
|
87
|
+
tags: ["resolution", "failure", "validation"],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "FACT-SCHEMA-PROCESS-DELEGATION-CONTRACT",
|
|
91
|
+
predicate_name: "process_delegation_contract",
|
|
92
|
+
title: "Process delegation contract",
|
|
93
|
+
description: "Defines executable, working-directory, environment, stdio, and termination behavior for a delegated child process.",
|
|
94
|
+
argument_names: [
|
|
95
|
+
"launcher",
|
|
96
|
+
"executable_policy",
|
|
97
|
+
"cwd_policy",
|
|
98
|
+
"environment_policy",
|
|
99
|
+
"stdio_policy",
|
|
100
|
+
"termination_policy",
|
|
101
|
+
],
|
|
102
|
+
argument_types: [
|
|
103
|
+
"component",
|
|
104
|
+
"policy",
|
|
105
|
+
"policy",
|
|
106
|
+
"policy",
|
|
107
|
+
"policy",
|
|
108
|
+
"policy",
|
|
109
|
+
],
|
|
110
|
+
argument_descriptions: [
|
|
111
|
+
"Launcher delegating the process.",
|
|
112
|
+
"Executable selection policy.",
|
|
113
|
+
"Working-directory policy.",
|
|
114
|
+
"Environment policy.",
|
|
115
|
+
"Standard I/O policy.",
|
|
116
|
+
"Termination and exit propagation policy.",
|
|
117
|
+
],
|
|
118
|
+
keywords: [
|
|
119
|
+
"child process",
|
|
120
|
+
"spawn",
|
|
121
|
+
"executable",
|
|
122
|
+
"cwd",
|
|
123
|
+
"environment",
|
|
124
|
+
"stdio",
|
|
125
|
+
"terminate",
|
|
126
|
+
],
|
|
127
|
+
aliases: ["child process contract", "process launch contract"],
|
|
128
|
+
examples: [
|
|
129
|
+
"process_delegation_contract(launcher, resolved_executable, consumer_cwd, inherited_env, piped_stdio, propagate_exit)",
|
|
130
|
+
],
|
|
131
|
+
tags: ["process", "execution", "contract"],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "FACT-SCHEMA-FAILURE-BEHAVIOR",
|
|
135
|
+
predicate_name: "failure_behavior",
|
|
136
|
+
title: "Failure behavior",
|
|
137
|
+
description: "Defines the required outcome when a component encounters a named failure condition.",
|
|
138
|
+
argument_names: ["component", "failure_condition", "required_outcome"],
|
|
139
|
+
argument_types: ["component", "condition", "outcome"],
|
|
140
|
+
argument_descriptions: [
|
|
141
|
+
"Component experiencing failure.",
|
|
142
|
+
"Failure condition.",
|
|
143
|
+
"Required observable outcome.",
|
|
144
|
+
],
|
|
145
|
+
keywords: [
|
|
146
|
+
"missing dependency",
|
|
147
|
+
"failure",
|
|
148
|
+
"error",
|
|
149
|
+
"must report",
|
|
150
|
+
"required outcome",
|
|
151
|
+
],
|
|
152
|
+
aliases: ["failure handling", "error behavior"],
|
|
153
|
+
examples: [
|
|
154
|
+
"failure_behavior(plugin_launcher, missing_dependency, actionable_error)",
|
|
155
|
+
],
|
|
156
|
+
tags: ["failure", "error", "behavior"],
|
|
157
|
+
},
|
|
3
158
|
{
|
|
4
159
|
id: "FACT-SCHEMA-FEATURE-GATE",
|
|
5
160
|
predicate_name: "feature_gate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate-inference-1.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-inference-1.ts"],"names":[],"mappings":"AAQA,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAsB9D;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAkBtE;AAGD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"predicate-inference-1.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-inference-1.ts"],"names":[],"mappings":"AAQA,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAsB9D;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAkBtE;AAGD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,EAAE,CAuBV;AAGD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ/D;AAGD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAS9D;AAGD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ7D;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAS3D;AAGD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAU9D;AAGD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAY/D;AAGD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CASjE;AAGD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAmB/D;AAGD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAQjE;AAGD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ9D;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAS3D;AAGD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAU7D"}
|
|
@@ -38,6 +38,14 @@ export function inferGuardArgs(text, subject) {
|
|
|
38
38
|
// implements REQ-mcp-suggest-predicates
|
|
39
39
|
export function inferExceptionRuleArgs(text, subject) {
|
|
40
40
|
const exception = text.match(/^(?:the\s+)?(?<subject>[a-z][a-z\s_-]*?)\s+(?:must|shall|should)\s+(?<behavior>.+?)\s+unless\s+(?:the\s+)?(?<exception>.+?)\.?$/i);
|
|
41
|
+
const broadException = text.match(/^(?:the\s+)?(?<subject>.+?)\s+(?:is|are|remains?|constitutes?)\s+(?:the\s+)?(?:only\s+)?exception(?:\s+to\s+(?<behavior>.+?))?\.?$/i);
|
|
42
|
+
if (broadException?.groups?.subject) {
|
|
43
|
+
return [
|
|
44
|
+
normalizeSubjectKey(broadException.groups.subject),
|
|
45
|
+
normalizePredicateToken(broadException.groups.behavior ?? "normal_behavior"),
|
|
46
|
+
"exception",
|
|
47
|
+
];
|
|
48
|
+
}
|
|
41
49
|
return [
|
|
42
50
|
exception?.groups?.subject
|
|
43
51
|
? normalizeSubjectKey(exception.groups.subject)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infer launcher arguments only for the exact reviewed semantic-rule corpus.
|
|
3
|
+
*
|
|
4
|
+
* General launcher prose may still retrieve a schema, but it must request
|
|
5
|
+
* reviewed argument bindings instead of manufacturing a ground predicate from
|
|
6
|
+
* lexical guesses. Keeping this boundary here makes every launcher schema
|
|
7
|
+
* share the semantic advisor's canonical argument values.
|
|
8
|
+
*/
|
|
9
|
+
export declare function inferLauncherArgs(predicateName: string, text: string, _subject: string): string[] | null;
|
|
10
|
+
//# sourceMappingURL=predicate-inference-launcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predicate-inference-launcher.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-inference-launcher.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,EAAE,GAAG,IAAI,CAGjB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { exactLauncherPredicateArgs } from "../semantic-advisor/predicate-rules-launcher.js";
|
|
2
|
+
/**
|
|
3
|
+
* Infer launcher arguments only for the exact reviewed semantic-rule corpus.
|
|
4
|
+
*
|
|
5
|
+
* General launcher prose may still retrieve a schema, but it must request
|
|
6
|
+
* reviewed argument bindings instead of manufacturing a ground predicate from
|
|
7
|
+
* lexical guesses. Keeping this boundary here makes every launcher schema
|
|
8
|
+
* share the semantic advisor's canonical argument values.
|
|
9
|
+
*/
|
|
10
|
+
export function inferLauncherArgs(predicateName, text, _subject) {
|
|
11
|
+
const args = exactLauncherPredicateArgs(predicateName, text);
|
|
12
|
+
return args === null ? null : [...args];
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate-inference.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-inference.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"predicate-inference.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-inference.ts"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EASL,YAAY,EAIb,MAAM,sBAAsB,CAAC;AAG9B,wBAAgB,SAAS,CACvB,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,EAAE,CAmJV;AAGD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { inferAuditEventRuleArgs, inferAvailabilitySlaArgs, inferConsentRuleArgs, inferDataResidencyRuleArgs, inferDependencyRuleArgs, inferEscalationRuleArgs, inferExceptionRuleArgs, inferGuardArgs, inferIdempotencyRuleArgs, inferLifecycleRuleArgs, inferMutualExclusionArgs, inferNotificationRouteArgs, inferOwnershipRuleArgs, inferPermissionRuleArgs, inferRetryPolicyArgs, } from "./predicate-inference-1.js";
|
|
2
2
|
import { inferAbsenceRequirementArgs, inferAbstractionBoundaryRuleArgs, inferBatchOperationRuleArgs, inferBuildConstraintArgs, inferCodingStandardRuleArgs, inferConflictResolutionRuleArgs, inferConsistencyRuleArgs, inferEnvironmentSafetyRuleArgs, inferFallbackRuleArgs, inferMigrationBoundaryRuleArgs, inferOfflineBehaviorRuleArgs, inferOrderedStrategyRuleArgs, inferPlatformConsistencyRuleArgs, inferPreservationRuleArgs, inferRefreshPolicyRuleArgs, inferReleaseGateRuleArgs, inferSchemaInvariantRuleArgs, inferSecurityConfigurationRuleArgs, } from "./predicate-inference-2.js";
|
|
3
3
|
import { inferConditionalBehaviorArgs, inferDefaultValueArgs, inferDocumentationStandardRuleArgs, inferEnforcementLocationRuleArgs, inferRateLimitArgs, inferReconciliationRuleArgs, inferScopedAuthorizationRuleArgs, inferStateMembershipArgs, inferStateTransitionArgs, inferTemporalOrderArgs, inferThrottlePolicyRuleArgs, inferUniquenessArgs, inferVisualLayoutRuleArgs, inferWarmupPolicyRuleArgs, } from "./predicate-inference-3.js";
|
|
4
|
+
import { inferLauncherArgs } from "./predicate-inference-launcher.js";
|
|
4
5
|
import { inferDuration, inferDurationUnit, inferEvent, inferGate, inferNumber, inferOperator, inferResource, inferScope, inferSubject, inferTrigger, inferUnit, slug, } from "./predicate-utils.js";
|
|
5
6
|
// implements REQ-mcp-suggest-predicates
|
|
6
7
|
export function inferArgs(schema, text, subject) {
|
|
7
8
|
const lower = text.toLowerCase();
|
|
9
|
+
const launcherArgs = inferLauncherArgs(schema.predicate_name, text, subject);
|
|
10
|
+
if (launcherArgs !== null)
|
|
11
|
+
return launcherArgs;
|
|
8
12
|
switch (schema.predicate_name) {
|
|
9
13
|
case "state":
|
|
10
14
|
return [subject, lower.includes("idle") ? "idle" : "active"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate-loader.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAK3E,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAI9B,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CACxE,wBAAwB,EACxB,UAAU,CACX,GAAG;IACF,WAAW,EAAE,mBAAmB,CAAC;CAClC,
|
|
1
|
+
{"version":3,"file":"predicate-loader.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAK3E,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAI9B,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,CACxE,wBAAwB,EACxB,UAAU,CACX,GAAG;IACF,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAsBA;AAGD,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,UAAU,GAAG,IAAI,EACzB,sBAAsB,EAAE,OAAO,EAC/B,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAwBrC;AAGD,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,wBAAwB,EAAE,CAqC5B;AAGD,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,mBAAmB,GAAG,SAAS,CAOjC;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAQpD"}
|
|
@@ -10,6 +10,9 @@ export function schemaForCandidate(schema) {
|
|
|
10
10
|
description: schema.description,
|
|
11
11
|
argument_names: schema.argument_names,
|
|
12
12
|
argument_types: schema.argument_types,
|
|
13
|
+
...(schema.argument_descriptions
|
|
14
|
+
? { argument_descriptions: schema.argument_descriptions }
|
|
15
|
+
: {}),
|
|
13
16
|
...(schema.aliases ? { aliases: schema.aliases } : {}),
|
|
14
17
|
...(schema.paraphrase_templates
|
|
15
18
|
? { paraphrase_templates: schema.paraphrase_templates }
|
|
@@ -52,6 +55,7 @@ export function predicateSchemaFromEntity(entity) {
|
|
|
52
55
|
if (!predicateName)
|
|
53
56
|
return [];
|
|
54
57
|
const usageHints = usageHintsFromEntity(entity);
|
|
58
|
+
const argumentDescriptions = stringArray(entity.argument_descriptions);
|
|
55
59
|
return [
|
|
56
60
|
{
|
|
57
61
|
id: String(entity.id ?? hashId("FACT-SCHEMA", [predicateName])),
|
|
@@ -61,6 +65,9 @@ export function predicateSchemaFromEntity(entity) {
|
|
|
61
65
|
`Project-local ${predicateName} predicate schema.`),
|
|
62
66
|
argument_names: stringArray(entity.argument_names),
|
|
63
67
|
argument_types: stringArray(entity.argument_types),
|
|
68
|
+
...(argumentDescriptions.length > 0
|
|
69
|
+
? { argument_descriptions: argumentDescriptions }
|
|
70
|
+
: {}),
|
|
64
71
|
keywords: [
|
|
65
72
|
predicateName,
|
|
66
73
|
...stringArray(entity.aliases),
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import type { PredicateSchemaCandidate } from "./predicate-types.js";
|
|
1
|
+
import type { PredicateSchemaCandidate, PredicateScoreComponents } from "./predicate-types.js";
|
|
2
|
+
export interface RankedPredicateSchema {
|
|
3
|
+
schema: PredicateSchemaCandidate;
|
|
4
|
+
score: number;
|
|
5
|
+
components: PredicateScoreComponents;
|
|
6
|
+
}
|
|
7
|
+
export declare function usageHintsForSchema(schema: PredicateSchemaCandidate): import("./predicate-types.js").PredicateUsageHints | undefined;
|
|
8
|
+
export declare function rankSchema(schema: PredicateSchemaCandidate, text: string): RankedPredicateSchema;
|
|
2
9
|
export declare function scoreSchema(schema: PredicateSchemaCandidate, text: string): number;
|
|
3
10
|
//# sourceMappingURL=predicate-ranker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate-ranker.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-ranker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"predicate-ranker.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-ranker.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAsJ9B,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,wBAAwB,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,wBAAwB,kEAEnE;AAKD,wBAAgB,UAAU,CACxB,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,MAAM,GACX,qBAAqB,CA4EvB;AAID,wBAAgB,WAAW,CACzB,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,CAER"}
|
|
@@ -1,7 +1,73 @@
|
|
|
1
|
+
import { USAGE_HINTS_BY_PREDICATE } from "./predicate-catalog.js";
|
|
1
2
|
import { scoreExactPredicates1 } from "./predicate-score-1.js";
|
|
2
3
|
import { scoreExactPredicates2 } from "./predicate-score-2.js";
|
|
3
4
|
import { scoreExactPredicates3 } from "./predicate-score-3.js";
|
|
4
5
|
import { matchesKeyword } from "./predicate-utils.js";
|
|
6
|
+
const STOPWORDS = new Set([
|
|
7
|
+
"a",
|
|
8
|
+
"an",
|
|
9
|
+
"and",
|
|
10
|
+
"are",
|
|
11
|
+
"as",
|
|
12
|
+
"at",
|
|
13
|
+
"be",
|
|
14
|
+
"because",
|
|
15
|
+
"by",
|
|
16
|
+
"can",
|
|
17
|
+
"for",
|
|
18
|
+
"from",
|
|
19
|
+
"has",
|
|
20
|
+
"have",
|
|
21
|
+
"if",
|
|
22
|
+
"in",
|
|
23
|
+
"is",
|
|
24
|
+
"it",
|
|
25
|
+
"may",
|
|
26
|
+
"must",
|
|
27
|
+
"of",
|
|
28
|
+
"on",
|
|
29
|
+
"or",
|
|
30
|
+
"should",
|
|
31
|
+
"shall",
|
|
32
|
+
"the",
|
|
33
|
+
"their",
|
|
34
|
+
"then",
|
|
35
|
+
"this",
|
|
36
|
+
"to",
|
|
37
|
+
"when",
|
|
38
|
+
"where",
|
|
39
|
+
"with",
|
|
40
|
+
]);
|
|
41
|
+
// These words occur in many unrelated requirements. They remain available as
|
|
42
|
+
// evidence when a schema explicitly names them, but otherwise contribute less
|
|
43
|
+
// than domain aliases and usage guidance.
|
|
44
|
+
const BROAD_TERMS = new Set([
|
|
45
|
+
"change",
|
|
46
|
+
"changes",
|
|
47
|
+
"component",
|
|
48
|
+
"data",
|
|
49
|
+
"published",
|
|
50
|
+
"project",
|
|
51
|
+
"state",
|
|
52
|
+
"system",
|
|
53
|
+
"value",
|
|
54
|
+
]);
|
|
55
|
+
const NORMATIVE_CUES = new Set([
|
|
56
|
+
"allowed",
|
|
57
|
+
"can",
|
|
58
|
+
"cannot",
|
|
59
|
+
"denied",
|
|
60
|
+
"forbidden",
|
|
61
|
+
"may",
|
|
62
|
+
"only",
|
|
63
|
+
"prohibited",
|
|
64
|
+
"required",
|
|
65
|
+
]);
|
|
66
|
+
const EXACT_SCORERS = [
|
|
67
|
+
scoreExactPredicates1,
|
|
68
|
+
scoreExactPredicates2,
|
|
69
|
+
scoreExactPredicates3,
|
|
70
|
+
];
|
|
5
71
|
function tokens(value) {
|
|
6
72
|
return value.toLowerCase().match(/[a-z0-9]+/g) ?? [];
|
|
7
73
|
}
|
|
@@ -16,26 +82,58 @@ function stem(value) {
|
|
|
16
82
|
return value.slice(0, -1);
|
|
17
83
|
return value;
|
|
18
84
|
}
|
|
85
|
+
function meaningfulTokens(value) {
|
|
86
|
+
return tokens(value).filter((token) => !STOPWORDS.has(token));
|
|
87
|
+
}
|
|
19
88
|
function overlap(left, right) {
|
|
20
|
-
const target = new Set(right.map(stem));
|
|
21
|
-
const matches = new Set(left
|
|
89
|
+
const target = new Set(right.map(stem).filter((token) => !STOPWORDS.has(token)));
|
|
90
|
+
const matches = new Set(left
|
|
91
|
+
.map(stem)
|
|
92
|
+
.filter((token) => !STOPWORDS.has(token) && target.has(token)));
|
|
22
93
|
return target.size === 0 ? 0 : matches.size / target.size;
|
|
23
94
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
];
|
|
29
|
-
// implements REQ-mcp-suggest-predicates
|
|
30
|
-
export function scoreSchema(schema, text) {
|
|
95
|
+
function roundScore(value) {
|
|
96
|
+
return Math.round(Math.max(0, Math.min(0.98, value)) * 100) / 100;
|
|
97
|
+
}
|
|
98
|
+
function exactScore(schema, text) {
|
|
31
99
|
for (const scorer of EXACT_SCORERS) {
|
|
32
100
|
const score = scorer(schema, text);
|
|
33
101
|
if (score !== null)
|
|
34
102
|
return score;
|
|
35
103
|
}
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
function meaningfulKeywordHits(schema, text) {
|
|
36
107
|
const lower = text.toLowerCase();
|
|
37
|
-
|
|
38
|
-
|
|
108
|
+
return schema.keywords.filter((keyword) => {
|
|
109
|
+
const keywordTokens = tokens(keyword).filter((token) => !STOPWORDS.has(token) || NORMATIVE_CUES.has(token));
|
|
110
|
+
return (keywordTokens.length > 0 &&
|
|
111
|
+
matchesKeyword(text, lower, keyword) &&
|
|
112
|
+
keywordTokens.some((token) => !BROAD_TERMS.has(token) || NORMATIVE_CUES.has(token)));
|
|
113
|
+
}).length;
|
|
114
|
+
}
|
|
115
|
+
function specificityBonus(schema) {
|
|
116
|
+
const signature = [
|
|
117
|
+
schema.predicate_name,
|
|
118
|
+
...(schema.aliases ?? []),
|
|
119
|
+
...(schema.paraphrase_templates ?? []),
|
|
120
|
+
].join(" ");
|
|
121
|
+
const domainTokens = meaningfulTokens(signature).filter((token) => !BROAD_TERMS.has(token));
|
|
122
|
+
// A project-local bridge with a broad signature remains discoverable but
|
|
123
|
+
// loses a small deterministic tie-break to a narrower reusable schema.
|
|
124
|
+
const bridgePenalty = schema.predicate_name === "plugin_launcher_contract" ? 0.04 : 0;
|
|
125
|
+
return roundScore(Math.min(0.1, domainTokens.length * 0.006) - bridgePenalty);
|
|
126
|
+
}
|
|
127
|
+
export function usageHintsForSchema(schema) {
|
|
128
|
+
return schema.usage_hints ?? USAGE_HINTS_BY_PREDICATE[schema.predicate_name];
|
|
129
|
+
}
|
|
130
|
+
// Retrieval/ranking is intentionally independent of semantic eligibility.
|
|
131
|
+
// Callers must run evaluateSemanticApplicability before treating this score as
|
|
132
|
+
// a recommendation.
|
|
133
|
+
export function rankSchema(schema, text) {
|
|
134
|
+
const exact = exactScore(schema, text);
|
|
135
|
+
const keywordHits = meaningfulKeywordHits(schema, text);
|
|
136
|
+
const textTokens = meaningfulTokens(text);
|
|
39
137
|
const descriptors = [
|
|
40
138
|
schema.predicate_name,
|
|
41
139
|
schema.title,
|
|
@@ -45,18 +143,52 @@ export function scoreSchema(schema, text) {
|
|
|
45
143
|
...schema.examples,
|
|
46
144
|
];
|
|
47
145
|
const descriptorOverlap = Math.max(...descriptors.map((descriptor) => overlap(textTokens, tokens(descriptor))), 0);
|
|
48
|
-
const
|
|
49
|
-
const
|
|
146
|
+
const usageHints = usageHintsForSchema(schema);
|
|
147
|
+
const usageMatch = Math.max(...(usageHints?.use_when ?? []).map((descriptor) => overlap(textTokens, tokens(descriptor))), 0);
|
|
148
|
+
const negativeEvidence = Math.max(...(usageHints?.do_not_use_when ?? []).map((descriptor) => overlap(textTokens, tokens(descriptor))), 0);
|
|
149
|
+
const broadTokenPenalty = Math.min(0.18, meaningfulTokens(text).filter((token) => BROAD_TERMS.has(token) && !schema.keywords.includes(token)).length * 0.025);
|
|
50
150
|
const morphologyHits = schema.keywords.filter((keyword) => textTokens.map(stem).includes(stem(keyword.toLowerCase()))).length;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
151
|
+
const specificity = specificityBonus(schema);
|
|
152
|
+
let total;
|
|
153
|
+
if (exact !== null) {
|
|
154
|
+
// Exact structural matches retain the established deterministic score.
|
|
155
|
+
total = exact;
|
|
156
|
+
}
|
|
157
|
+
else if (keywordHits === 0 &&
|
|
158
|
+
morphologyHits === 0 &&
|
|
159
|
+
descriptorOverlap < 0.25 &&
|
|
160
|
+
usageMatch < 0.25) {
|
|
161
|
+
total = 0;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
const normalized = keywordHits / Math.max(3, schema.keywords.length / 2);
|
|
165
|
+
total =
|
|
166
|
+
0.18 +
|
|
167
|
+
normalized * 0.34 +
|
|
168
|
+
keywordHits * 0.045 +
|
|
169
|
+
morphologyHits * 0.035 +
|
|
170
|
+
descriptorOverlap * 0.27 +
|
|
171
|
+
usageMatch * 0.16 -
|
|
172
|
+
negativeEvidence * 0.24 -
|
|
173
|
+
broadTokenPenalty +
|
|
174
|
+
specificity;
|
|
175
|
+
}
|
|
176
|
+
if (schema.predicate_name === "plugin_launcher_contract")
|
|
177
|
+
total -= 0.06;
|
|
178
|
+
const components = {
|
|
179
|
+
exact_pattern: roundScore(exact ?? 0),
|
|
180
|
+
keyword_hits: keywordHits,
|
|
181
|
+
descriptor_overlap: roundScore(descriptorOverlap),
|
|
182
|
+
usage_match: roundScore(usageMatch),
|
|
183
|
+
negative_evidence: roundScore(negativeEvidence),
|
|
184
|
+
broad_token_penalty: roundScore(broadTokenPenalty),
|
|
185
|
+
specificity_bonus: specificity,
|
|
186
|
+
total: roundScore(total),
|
|
187
|
+
};
|
|
188
|
+
return { schema, score: components.total, components };
|
|
189
|
+
}
|
|
190
|
+
// Backward-compatible numeric API used by migration planning and downstream
|
|
191
|
+
// integrations. New callers should use rankSchema for diagnostics.
|
|
192
|
+
export function scoreSchema(schema, text) {
|
|
193
|
+
return rankSchema(schema, text).score;
|
|
62
194
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate-score-3.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-score-3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAGrE,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"predicate-score-3.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-score-3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAGrE,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,IAAI,CAwFf"}
|
|
@@ -50,5 +50,11 @@ export function scoreExactPredicates3(schema, text) {
|
|
|
50
50
|
}
|
|
51
51
|
return 0;
|
|
52
52
|
}
|
|
53
|
+
if (schema.predicate_name === "permission_rule") {
|
|
54
|
+
if (/^(?:only\s+)?[a-z][a-z\s_-]*\s+(?:may|can|is\s+allowed\s+to|must\s+not|cannot|can't|is\s+forbidden\s+to)\s+.+?\.?$/i.test(text)) {
|
|
55
|
+
return 0.98;
|
|
56
|
+
}
|
|
57
|
+
return 0;
|
|
58
|
+
}
|
|
53
59
|
return null;
|
|
54
60
|
}
|
|
@@ -10,6 +10,8 @@ export interface PredicateSchemaCandidate {
|
|
|
10
10
|
description: string;
|
|
11
11
|
argument_names: string[];
|
|
12
12
|
argument_types: string[];
|
|
13
|
+
/** Optional human-readable descriptions aligned with argument_names. */
|
|
14
|
+
argument_descriptions?: string[];
|
|
13
15
|
keywords: string[];
|
|
14
16
|
/** Human-language aliases and controlled paraphrase templates used for deterministic retrieval. */
|
|
15
17
|
aliases?: string[];
|
|
@@ -43,12 +45,43 @@ export interface PredicateSuggestion {
|
|
|
43
45
|
polarity: PredicatePolarity;
|
|
44
46
|
binding_status: "complete" | "incomplete";
|
|
45
47
|
unbound_arguments: string[];
|
|
48
|
+
/** Conservative aggregate: the least-reviewable provenance across bindings. */
|
|
49
|
+
binding_provenance: BindingProvenance;
|
|
50
|
+
/** Per-argument provenance retained for review and deterministic diagnostics. */
|
|
51
|
+
binding_provenance_by_argument: Record<string, BindingProvenance>;
|
|
52
|
+
eligibility: "eligible" | "rejected";
|
|
53
|
+
rejection_reasons: string[];
|
|
54
|
+
applicability_score: number;
|
|
55
|
+
score_components: PredicateScoreComponents;
|
|
46
56
|
score: number;
|
|
47
57
|
rationale: string;
|
|
48
58
|
schema: Omit<PredicateSchemaCandidate, "keywords"> & {
|
|
49
59
|
usage_hints: PredicateUsageHints;
|
|
50
60
|
};
|
|
51
61
|
}
|
|
62
|
+
export type BindingProvenance = "explicit" | "extracted" | "inferred" | "placeholder";
|
|
63
|
+
export interface PredicateScoreComponents {
|
|
64
|
+
exact_pattern: number;
|
|
65
|
+
keyword_hits: number;
|
|
66
|
+
descriptor_overlap: number;
|
|
67
|
+
usage_match: number;
|
|
68
|
+
negative_evidence: number;
|
|
69
|
+
broad_token_penalty: number;
|
|
70
|
+
specificity_bonus: number;
|
|
71
|
+
total: number;
|
|
72
|
+
}
|
|
73
|
+
export interface RecommendedPredicateSchema {
|
|
74
|
+
predicate_name: string;
|
|
75
|
+
title: string;
|
|
76
|
+
description: string;
|
|
77
|
+
argument_names: string[];
|
|
78
|
+
argument_types: string[];
|
|
79
|
+
argument_descriptions?: string[];
|
|
80
|
+
candidate_bindings: Record<string, string>;
|
|
81
|
+
unresolved_bindings: string[];
|
|
82
|
+
rationale: string;
|
|
83
|
+
reuse_scope: string;
|
|
84
|
+
}
|
|
52
85
|
export interface SuggestPredicatesResult {
|
|
53
86
|
content: Array<{
|
|
54
87
|
type: "text";
|
|
@@ -63,6 +96,7 @@ export interface SuggestPredicatesResult {
|
|
|
63
96
|
subject: string;
|
|
64
97
|
candidates: PredicateSuggestion[];
|
|
65
98
|
recommendedAction: "apply_requires_predicate" | "provide_argument_bindings" | "resolve_schema_reference" | "record_ontology_gap";
|
|
99
|
+
recommendedPredicateSchema: RecommendedPredicateSchema | null;
|
|
66
100
|
applyPlan: Array<Record<string, unknown>>;
|
|
67
101
|
relationshipPlan: Record<string, unknown> | null;
|
|
68
102
|
warnings: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate-types.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAGlD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAGD,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mGAAmG;IACnG,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ources":["../../../src/operations/modeling/predicate-usage-hints-3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"predicate-usage-hints-3.d.ts","sourceRoot":"","sources":["../../../src/operations/modeling/predicate-usage-hints-3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAmFvE,CAAC"}
|
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
// implements REQ-mcp-suggest-predicates
|
|
2
2
|
export const PREDICATE_USAGE_HINTS_3 = {
|
|
3
|
+
dependency_resolution_policy: {
|
|
4
|
+
use_when: [
|
|
5
|
+
"Use when a component's permitted dependency scope and acquisition/download policy are normative.",
|
|
6
|
+
],
|
|
7
|
+
do_not_use_when: [
|
|
8
|
+
"Do not use for ordering among multiple candidates, invalid-input outcomes, or child-process execution details.",
|
|
9
|
+
],
|
|
10
|
+
},
|
|
11
|
+
ordered_resolution_strategy: {
|
|
12
|
+
use_when: [
|
|
13
|
+
"Use when resolution must try named sources in a defined order with a conditional fallback.",
|
|
14
|
+
],
|
|
15
|
+
do_not_use_when: [
|
|
16
|
+
"Do not use for a general dependency scope policy, invalid resolution errors, or process launch behavior.",
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
resolution_failure_policy: {
|
|
20
|
+
use_when: [
|
|
21
|
+
"Use when invalid placeholders, ambiguous roots, or other resolution inputs require a specific rejection outcome.",
|
|
22
|
+
],
|
|
23
|
+
do_not_use_when: [
|
|
24
|
+
"Do not use for ordinary missing-dependency reporting or successful lookup ordering.",
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
process_delegation_contract: {
|
|
28
|
+
use_when: [
|
|
29
|
+
"Use when a launcher delegates to a child process and specifies executable, cwd, environment, stdio, or termination behavior.",
|
|
30
|
+
],
|
|
31
|
+
do_not_use_when: [
|
|
32
|
+
"Do not use for dependency lookup, package-manager exceptions, or generic failure reporting.",
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
failure_behavior: {
|
|
36
|
+
use_when: [
|
|
37
|
+
"Use when a component must define the observable outcome of a named failure such as a missing dependency.",
|
|
38
|
+
],
|
|
39
|
+
do_not_use_when: [
|
|
40
|
+
"Do not use for resolution ordering, invalid-input policy details, or exception clauses that exempt a normal rule.",
|
|
41
|
+
],
|
|
42
|
+
},
|
|
3
43
|
uniqueness_constraint: {
|
|
4
44
|
use_when: ["Use for at-most-one or unique-per-scope constraints."],
|
|
5
45
|
do_not_use_when: [
|