@productbrain/cli 0.1.0-beta.5 → 0.1.0-beta.5060
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/README.md +100 -30
- package/dist/__tests__/adapters.test.d.ts +2 -0
- package/dist/__tests__/adapters.test.d.ts.map +1 -0
- package/dist/__tests__/adapters.test.js +470 -0
- package/dist/__tests__/adapters.test.js.map +1 -0
- package/dist/__tests__/adminConfig.test.d.ts +18 -0
- package/dist/__tests__/adminConfig.test.d.ts.map +1 -0
- package/dist/__tests__/adminConfig.test.js +221 -0
- package/dist/__tests__/adminConfig.test.js.map +1 -0
- package/dist/__tests__/audit.test.d.ts +2 -0
- package/dist/__tests__/audit.test.d.ts.map +1 -0
- package/dist/__tests__/audit.test.js +415 -0
- package/dist/__tests__/audit.test.js.map +1 -0
- package/dist/__tests__/authority-domains-queue.test.d.ts +2 -0
- package/dist/__tests__/authority-domains-queue.test.d.ts.map +1 -0
- package/dist/__tests__/authority-domains-queue.test.js +169 -0
- package/dist/__tests__/authority-domains-queue.test.js.map +1 -0
- package/dist/__tests__/authority-domains.test.d.ts +2 -0
- package/dist/__tests__/authority-domains.test.d.ts.map +1 -0
- package/dist/__tests__/authority-domains.test.js +48 -0
- package/dist/__tests__/authority-domains.test.js.map +1 -0
- package/dist/__tests__/batch-transformations.test.d.ts +2 -0
- package/dist/__tests__/batch-transformations.test.d.ts.map +1 -0
- package/dist/__tests__/batch-transformations.test.js +263 -0
- package/dist/__tests__/batch-transformations.test.js.map +1 -0
- package/dist/__tests__/canonicalRefs.vocab.test.d.ts +2 -0
- package/dist/__tests__/canonicalRefs.vocab.test.d.ts.map +1 -0
- package/dist/__tests__/canonicalRefs.vocab.test.js +251 -0
- package/dist/__tests__/canonicalRefs.vocab.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-coaching.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-coaching.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-coaching.test.js +89 -0
- package/dist/__tests__/capture-receipt-coaching.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-domain.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-domain.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-domain.test.js +29 -0
- package/dist/__tests__/capture-receipt-domain.test.js.map +1 -0
- package/dist/__tests__/capture.test.d.ts +2 -0
- package/dist/__tests__/capture.test.d.ts.map +1 -0
- package/dist/__tests__/capture.test.js +1198 -0
- package/dist/__tests__/capture.test.js.map +1 -0
- package/dist/__tests__/coaching-mirror-drift.test.d.ts +2 -0
- package/dist/__tests__/coaching-mirror-drift.test.d.ts.map +1 -0
- package/dist/__tests__/coaching-mirror-drift.test.js +47 -0
- package/dist/__tests__/coaching-mirror-drift.test.js.map +1 -0
- package/dist/__tests__/codex-prep-parity.test.d.ts +2 -0
- package/dist/__tests__/codex-prep-parity.test.d.ts.map +1 -0
- package/dist/__tests__/codex-prep-parity.test.js +107 -0
- package/dist/__tests__/codex-prep-parity.test.js.map +1 -0
- package/dist/__tests__/collection-registry-seed-drift.test.d.ts +2 -0
- package/dist/__tests__/collection-registry-seed-drift.test.d.ts.map +1 -0
- package/dist/__tests__/collection-registry-seed-drift.test.js +68 -0
- package/dist/__tests__/collection-registry-seed-drift.test.js.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts +2 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.js +93 -0
- package/dist/__tests__/config-prod-fallthrough.test.js.map +1 -0
- package/dist/__tests__/config.test.d.ts +8 -0
- package/dist/__tests__/config.test.d.ts.map +1 -0
- package/dist/__tests__/config.test.js +993 -0
- package/dist/__tests__/config.test.js.map +1 -0
- package/dist/__tests__/constants.test.d.ts +2 -0
- package/dist/__tests__/constants.test.d.ts.map +1 -0
- package/dist/__tests__/constants.test.js +146 -0
- package/dist/__tests__/constants.test.js.map +1 -0
- package/dist/__tests__/constellation.test.d.ts +2 -0
- package/dist/__tests__/constellation.test.d.ts.map +1 -0
- package/dist/__tests__/constellation.test.js +254 -0
- package/dist/__tests__/constellation.test.js.map +1 -0
- package/dist/__tests__/context-strategy.test.d.ts +2 -0
- package/dist/__tests__/context-strategy.test.d.ts.map +1 -0
- package/dist/__tests__/context-strategy.test.js +79 -0
- package/dist/__tests__/context-strategy.test.js.map +1 -0
- package/dist/__tests__/conversation.test.d.ts +2 -0
- package/dist/__tests__/conversation.test.d.ts.map +1 -0
- package/dist/__tests__/conversation.test.js +113 -0
- package/dist/__tests__/conversation.test.js.map +1 -0
- package/dist/__tests__/entry-formatter.test.d.ts +2 -0
- package/dist/__tests__/entry-formatter.test.d.ts.map +1 -0
- package/dist/__tests__/entry-formatter.test.js +82 -0
- package/dist/__tests__/entry-formatter.test.js.map +1 -0
- package/dist/__tests__/entryArchive.test.d.ts +2 -0
- package/dist/__tests__/entryArchive.test.d.ts.map +1 -0
- package/dist/__tests__/entryArchive.test.js +35 -0
- package/dist/__tests__/entryArchive.test.js.map +1 -0
- package/dist/__tests__/envelope-contract.test.d.ts +15 -0
- package/dist/__tests__/envelope-contract.test.d.ts.map +1 -0
- package/dist/__tests__/envelope-contract.test.js +154 -0
- package/dist/__tests__/envelope-contract.test.js.map +1 -0
- package/dist/__tests__/errors.test.d.ts +2 -0
- package/dist/__tests__/errors.test.d.ts.map +1 -0
- package/dist/__tests__/errors.test.js +143 -0
- package/dist/__tests__/errors.test.js.map +1 -0
- package/dist/__tests__/experiment.test.d.ts +6 -0
- package/dist/__tests__/experiment.test.d.ts.map +1 -0
- package/dist/__tests__/experiment.test.js +69 -0
- package/dist/__tests__/experiment.test.js.map +1 -0
- package/dist/__tests__/fields.test.d.ts +2 -0
- package/dist/__tests__/fields.test.d.ts.map +1 -0
- package/dist/__tests__/fields.test.js +238 -0
- package/dist/__tests__/fields.test.js.map +1 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.d.ts +2 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.d.ts.map +1 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.js +70 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.js.map +1 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.d.ts +2 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.d.ts.map +1 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.js +121 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.js.map +1 -0
- package/dist/__tests__/glossary.test.d.ts +2 -0
- package/dist/__tests__/glossary.test.d.ts.map +1 -0
- package/dist/__tests__/glossary.test.js +32 -0
- package/dist/__tests__/glossary.test.js.map +1 -0
- package/dist/__tests__/handshake-augment.test.d.ts +2 -0
- package/dist/__tests__/handshake-augment.test.d.ts.map +1 -0
- package/dist/__tests__/handshake-augment.test.js +424 -0
- package/dist/__tests__/handshake-augment.test.js.map +1 -0
- package/dist/__tests__/handshake-dormancy.test.d.ts +2 -0
- package/dist/__tests__/handshake-dormancy.test.d.ts.map +1 -0
- package/dist/__tests__/handshake-dormancy.test.js +207 -0
- package/dist/__tests__/handshake-dormancy.test.js.map +1 -0
- package/dist/__tests__/handshake-formatter.test.d.ts +2 -0
- package/dist/__tests__/handshake-formatter.test.d.ts.map +1 -0
- package/dist/__tests__/handshake-formatter.test.js +67 -0
- package/dist/__tests__/handshake-formatter.test.js.map +1 -0
- package/dist/__tests__/handshake-preview.test.d.ts +2 -0
- package/dist/__tests__/handshake-preview.test.d.ts.map +1 -0
- package/dist/__tests__/handshake-preview.test.js +950 -0
- package/dist/__tests__/handshake-preview.test.js.map +1 -0
- package/dist/__tests__/handshake.e2e.test.d.ts +2 -0
- package/dist/__tests__/handshake.e2e.test.d.ts.map +1 -0
- package/dist/__tests__/handshake.e2e.test.js +1255 -0
- package/dist/__tests__/handshake.e2e.test.js.map +1 -0
- package/dist/__tests__/handshake.test.d.ts +2 -0
- package/dist/__tests__/handshake.test.d.ts.map +1 -0
- package/dist/__tests__/handshake.test.js +981 -0
- package/dist/__tests__/handshake.test.js.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts +2 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js +41 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js.map +1 -0
- package/dist/__tests__/hook-intents.test.d.ts +2 -0
- package/dist/__tests__/hook-intents.test.d.ts.map +1 -0
- package/dist/__tests__/hook-intents.test.js +184 -0
- package/dist/__tests__/hook-intents.test.js.map +1 -0
- package/dist/__tests__/ingest.test.js +119 -12
- package/dist/__tests__/ingest.test.js.map +1 -1
- package/dist/__tests__/init.test.d.ts +7 -0
- package/dist/__tests__/init.test.d.ts.map +1 -0
- package/dist/__tests__/init.test.js +183 -0
- package/dist/__tests__/init.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js +46 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js +108 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js.map +1 -0
- package/dist/__tests__/login.test.d.ts +2 -0
- package/dist/__tests__/login.test.d.ts.map +1 -0
- package/dist/__tests__/login.test.js +167 -0
- package/dist/__tests__/login.test.js.map +1 -0
- package/dist/__tests__/manifest.test.d.ts +6 -0
- package/dist/__tests__/manifest.test.d.ts.map +1 -0
- package/dist/__tests__/manifest.test.js +255 -0
- package/dist/__tests__/manifest.test.js.map +1 -0
- package/dist/__tests__/method-publish-coherency.test.d.ts +9 -0
- package/dist/__tests__/method-publish-coherency.test.d.ts.map +1 -0
- package/dist/__tests__/method-publish-coherency.test.js +71 -0
- package/dist/__tests__/method-publish-coherency.test.js.map +1 -0
- package/dist/__tests__/method-registry.integration.test.d.ts +6 -0
- package/dist/__tests__/method-registry.integration.test.d.ts.map +1 -0
- package/dist/__tests__/method-registry.integration.test.js +17 -0
- package/dist/__tests__/method-registry.integration.test.js.map +1 -0
- package/dist/__tests__/method-registry.test.d.ts +12 -0
- package/dist/__tests__/method-registry.test.d.ts.map +1 -0
- package/dist/__tests__/method-registry.test.js +86 -0
- package/dist/__tests__/method-registry.test.js.map +1 -0
- package/dist/__tests__/missingPin.test.d.ts +11 -0
- package/dist/__tests__/missingPin.test.d.ts.map +1 -0
- package/dist/__tests__/missingPin.test.js +233 -0
- package/dist/__tests__/missingPin.test.js.map +1 -0
- package/dist/__tests__/notice-marker.test.d.ts +2 -0
- package/dist/__tests__/notice-marker.test.d.ts.map +1 -0
- package/dist/__tests__/notice-marker.test.js +176 -0
- package/dist/__tests__/notice-marker.test.js.map +1 -0
- package/dist/__tests__/onboarding-path-b.test.d.ts +2 -0
- package/dist/__tests__/onboarding-path-b.test.d.ts.map +1 -0
- package/dist/__tests__/onboarding-path-b.test.js +46 -0
- package/dist/__tests__/onboarding-path-b.test.js.map +1 -0
- package/dist/__tests__/onboarding.test.d.ts +6 -0
- package/dist/__tests__/onboarding.test.d.ts.map +1 -0
- package/dist/__tests__/onboarding.test.js +347 -0
- package/dist/__tests__/onboarding.test.js.map +1 -0
- package/dist/__tests__/orient.test.d.ts +2 -0
- package/dist/__tests__/orient.test.d.ts.map +1 -0
- package/dist/__tests__/orient.test.js +633 -0
- package/dist/__tests__/orient.test.js.map +1 -0
- package/dist/__tests__/perimeter.test.d.ts +2 -0
- package/dist/__tests__/perimeter.test.d.ts.map +1 -0
- package/dist/__tests__/perimeter.test.js +165 -0
- package/dist/__tests__/perimeter.test.js.map +1 -0
- package/dist/__tests__/personal-layer.test.d.ts +11 -0
- package/dist/__tests__/personal-layer.test.d.ts.map +1 -0
- package/dist/__tests__/personal-layer.test.js +268 -0
- package/dist/__tests__/personal-layer.test.js.map +1 -0
- package/dist/__tests__/preview-key-refresh.test.d.ts +2 -0
- package/dist/__tests__/preview-key-refresh.test.d.ts.map +1 -0
- package/dist/__tests__/preview-key-refresh.test.js +126 -0
- package/dist/__tests__/preview-key-refresh.test.js.map +1 -0
- package/dist/__tests__/profiles.test.d.ts +2 -0
- package/dist/__tests__/profiles.test.d.ts.map +1 -0
- package/dist/__tests__/profiles.test.js +449 -0
- package/dist/__tests__/profiles.test.js.map +1 -0
- package/dist/__tests__/promote-batch.test.d.ts +2 -0
- package/dist/__tests__/promote-batch.test.d.ts.map +1 -0
- package/dist/__tests__/promote-batch.test.js +185 -0
- package/dist/__tests__/promote-batch.test.js.map +1 -0
- package/dist/__tests__/promote.test.d.ts +2 -0
- package/dist/__tests__/promote.test.d.ts.map +1 -0
- package/dist/__tests__/promote.test.js +430 -0
- package/dist/__tests__/promote.test.js.map +1 -0
- package/dist/__tests__/prompts.test.d.ts +6 -0
- package/dist/__tests__/prompts.test.d.ts.map +1 -0
- package/dist/__tests__/prompts.test.js +146 -0
- package/dist/__tests__/prompts.test.js.map +1 -0
- package/dist/__tests__/proof-run.test.d.ts +2 -0
- package/dist/__tests__/proof-run.test.d.ts.map +1 -0
- package/dist/__tests__/proof-run.test.js +255 -0
- package/dist/__tests__/proof-run.test.js.map +1 -0
- package/dist/__tests__/proposals.test.d.ts +2 -0
- package/dist/__tests__/proposals.test.d.ts.map +1 -0
- package/dist/__tests__/proposals.test.js +167 -0
- package/dist/__tests__/proposals.test.js.map +1 -0
- package/dist/__tests__/rate-limit-resilience.test.d.ts +7 -0
- package/dist/__tests__/rate-limit-resilience.test.d.ts.map +1 -0
- package/dist/__tests__/rate-limit-resilience.test.js +209 -0
- package/dist/__tests__/rate-limit-resilience.test.js.map +1 -0
- package/dist/__tests__/relate.test.d.ts +2 -0
- package/dist/__tests__/relate.test.d.ts.map +1 -0
- package/dist/__tests__/relate.test.js +235 -0
- package/dist/__tests__/relate.test.js.map +1 -0
- package/dist/__tests__/repo-detect.test.d.ts +2 -0
- package/dist/__tests__/repo-detect.test.d.ts.map +1 -0
- package/dist/__tests__/repo-detect.test.js +215 -0
- package/dist/__tests__/repo-detect.test.js.map +1 -0
- package/dist/__tests__/reportedProfile.test.d.ts +2 -0
- package/dist/__tests__/reportedProfile.test.d.ts.map +1 -0
- package/dist/__tests__/reportedProfile.test.js +104 -0
- package/dist/__tests__/reportedProfile.test.js.map +1 -0
- package/dist/__tests__/restore.test.d.ts +2 -0
- package/dist/__tests__/restore.test.d.ts.map +1 -0
- package/dist/__tests__/restore.test.js +85 -0
- package/dist/__tests__/restore.test.js.map +1 -0
- package/dist/__tests__/route-latency-budget.test.d.ts +2 -0
- package/dist/__tests__/route-latency-budget.test.d.ts.map +1 -0
- package/dist/__tests__/route-latency-budget.test.js +103 -0
- package/dist/__tests__/route-latency-budget.test.js.map +1 -0
- package/dist/__tests__/runner.test.d.ts +2 -0
- package/dist/__tests__/runner.test.d.ts.map +1 -0
- package/dist/__tests__/runner.test.js +219 -0
- package/dist/__tests__/runner.test.js.map +1 -0
- package/dist/__tests__/session-close-loop.test.d.ts +2 -0
- package/dist/__tests__/session-close-loop.test.d.ts.map +1 -0
- package/dist/__tests__/session-close-loop.test.js +231 -0
- package/dist/__tests__/session-close-loop.test.js.map +1 -0
- package/dist/__tests__/session-label.test.d.ts +2 -0
- package/dist/__tests__/session-label.test.d.ts.map +1 -0
- package/dist/__tests__/session-label.test.js +46 -0
- package/dist/__tests__/session-label.test.js.map +1 -0
- package/dist/__tests__/session-list-show.test.d.ts +2 -0
- package/dist/__tests__/session-list-show.test.d.ts.map +1 -0
- package/dist/__tests__/session-list-show.test.js +174 -0
- package/dist/__tests__/session-list-show.test.js.map +1 -0
- package/dist/__tests__/session-reset.test.d.ts +2 -0
- package/dist/__tests__/session-reset.test.d.ts.map +1 -0
- package/dist/__tests__/session-reset.test.js +138 -0
- package/dist/__tests__/session-reset.test.js.map +1 -0
- package/dist/__tests__/session-resume-backstop.test.d.ts +2 -0
- package/dist/__tests__/session-resume-backstop.test.d.ts.map +1 -0
- package/dist/__tests__/session-resume-backstop.test.js +99 -0
- package/dist/__tests__/session-resume-backstop.test.js.map +1 -0
- package/dist/__tests__/session-start-key-refresh.test.d.ts +2 -0
- package/dist/__tests__/session-start-key-refresh.test.d.ts.map +1 -0
- package/dist/__tests__/session-start-key-refresh.test.js +183 -0
- package/dist/__tests__/session-start-key-refresh.test.js.map +1 -0
- package/dist/__tests__/session-state-machine.test.d.ts +2 -0
- package/dist/__tests__/session-state-machine.test.d.ts.map +1 -0
- package/dist/__tests__/session-state-machine.test.js +379 -0
- package/dist/__tests__/session-state-machine.test.js.map +1 -0
- package/dist/__tests__/session-switch.test.d.ts +2 -0
- package/dist/__tests__/session-switch.test.d.ts.map +1 -0
- package/dist/__tests__/session-switch.test.js +160 -0
- package/dist/__tests__/session-switch.test.js.map +1 -0
- package/dist/__tests__/session-touch.test.d.ts +2 -0
- package/dist/__tests__/session-touch.test.d.ts.map +1 -0
- package/dist/__tests__/session-touch.test.js +139 -0
- package/dist/__tests__/session-touch.test.js.map +1 -0
- package/dist/__tests__/session.test.d.ts +2 -0
- package/dist/__tests__/session.test.d.ts.map +1 -0
- package/dist/__tests__/session.test.js +46 -0
- package/dist/__tests__/session.test.js.map +1 -0
- package/dist/__tests__/setup-ingest.test.d.ts +2 -0
- package/dist/__tests__/setup-ingest.test.d.ts.map +1 -0
- package/dist/__tests__/setup-ingest.test.js +71 -0
- package/dist/__tests__/setup-ingest.test.js.map +1 -0
- package/dist/__tests__/setup-resolver.test.d.ts +14 -0
- package/dist/__tests__/setup-resolver.test.d.ts.map +1 -0
- package/dist/__tests__/setup-resolver.test.js +228 -0
- package/dist/__tests__/setup-resolver.test.js.map +1 -0
- package/dist/__tests__/setupShFallbackWarning.test.d.ts +2 -0
- package/dist/__tests__/setupShFallbackWarning.test.d.ts.map +1 -0
- package/dist/__tests__/setupShFallbackWarning.test.js +15 -0
- package/dist/__tests__/setupShFallbackWarning.test.js.map +1 -0
- package/dist/__tests__/skill-vocabulary.test.d.ts +21 -0
- package/dist/__tests__/skill-vocabulary.test.d.ts.map +1 -0
- package/dist/__tests__/skill-vocabulary.test.js +192 -0
- package/dist/__tests__/skill-vocabulary.test.js.map +1 -0
- package/dist/__tests__/spinner-labels.test.d.ts +2 -0
- package/dist/__tests__/spinner-labels.test.d.ts.map +1 -0
- package/dist/__tests__/spinner-labels.test.js +23 -0
- package/dist/__tests__/spinner-labels.test.js.map +1 -0
- package/dist/__tests__/state.test.d.ts +6 -0
- package/dist/__tests__/state.test.d.ts.map +1 -0
- package/dist/__tests__/state.test.js +117 -0
- package/dist/__tests__/state.test.js.map +1 -0
- package/dist/__tests__/strip.test.d.ts +2 -0
- package/dist/__tests__/strip.test.d.ts.map +1 -0
- package/dist/__tests__/strip.test.js +164 -0
- package/dist/__tests__/strip.test.js.map +1 -0
- package/dist/__tests__/surface-profiles.test.d.ts +2 -0
- package/dist/__tests__/surface-profiles.test.d.ts.map +1 -0
- package/dist/__tests__/surface-profiles.test.js +233 -0
- package/dist/__tests__/surface-profiles.test.js.map +1 -0
- package/dist/__tests__/surfaces.test.d.ts +2 -0
- package/dist/__tests__/surfaces.test.d.ts.map +1 -0
- package/dist/__tests__/surfaces.test.js +46 -0
- package/dist/__tests__/surfaces.test.js.map +1 -0
- package/dist/__tests__/update-check.test.d.ts +2 -0
- package/dist/__tests__/update-check.test.d.ts.map +1 -0
- package/dist/__tests__/update-check.test.js +215 -0
- package/dist/__tests__/update-check.test.js.map +1 -0
- package/dist/__tests__/update.test.d.ts +2 -0
- package/dist/__tests__/update.test.d.ts.map +1 -0
- package/dist/__tests__/update.test.js +469 -0
- package/dist/__tests__/update.test.js.map +1 -0
- package/dist/__tests__/upgrade-runner.test.d.ts +2 -0
- package/dist/__tests__/upgrade-runner.test.d.ts.map +1 -0
- package/dist/__tests__/upgrade-runner.test.js +54 -0
- package/dist/__tests__/upgrade-runner.test.js.map +1 -0
- package/dist/__tests__/upgrade.test.d.ts +2 -0
- package/dist/__tests__/upgrade.test.d.ts.map +1 -0
- package/dist/__tests__/upgrade.test.js +56 -0
- package/dist/__tests__/upgrade.test.js.map +1 -0
- package/dist/__tests__/verify-formatter.test.d.ts +2 -0
- package/dist/__tests__/verify-formatter.test.d.ts.map +1 -0
- package/dist/__tests__/verify-formatter.test.js +85 -0
- package/dist/__tests__/verify-formatter.test.js.map +1 -0
- package/dist/__tests__/vocabulary-leak.test.d.ts +39 -0
- package/dist/__tests__/vocabulary-leak.test.d.ts.map +1 -0
- package/dist/__tests__/vocabulary-leak.test.js +539 -0
- package/dist/__tests__/vocabulary-leak.test.js.map +1 -0
- package/dist/__tests__/workspace.test.d.ts +2 -0
- package/dist/__tests__/workspace.test.d.ts.map +1 -0
- package/dist/__tests__/workspace.test.js +328 -0
- package/dist/__tests__/workspace.test.js.map +1 -0
- package/dist/__tests__/workspaceNotice.test.d.ts +2 -0
- package/dist/__tests__/workspaceNotice.test.d.ts.map +1 -0
- package/dist/__tests__/workspaceNotice.test.js +369 -0
- package/dist/__tests__/workspaceNotice.test.js.map +1 -0
- package/dist/commands/__tests__/connect-handoff.test.d.ts +11 -0
- package/dist/commands/__tests__/connect-handoff.test.d.ts.map +1 -0
- package/dist/commands/__tests__/connect-handoff.test.js +111 -0
- package/dist/commands/__tests__/connect-handoff.test.js.map +1 -0
- package/dist/commands/__tests__/quality.test.d.ts +2 -0
- package/dist/commands/__tests__/quality.test.d.ts.map +1 -0
- package/dist/commands/__tests__/quality.test.js +156 -0
- package/dist/commands/__tests__/quality.test.js.map +1 -0
- package/dist/commands/__tests__/rework.test.d.ts +2 -0
- package/dist/commands/__tests__/rework.test.d.ts.map +1 -0
- package/dist/commands/__tests__/rework.test.js +149 -0
- package/dist/commands/__tests__/rework.test.js.map +1 -0
- package/dist/commands/__tests__/setup-detect-surfaces.test.d.ts +15 -0
- package/dist/commands/__tests__/setup-detect-surfaces.test.d.ts.map +1 -0
- package/dist/commands/__tests__/setup-detect-surfaces.test.js +149 -0
- package/dist/commands/__tests__/setup-detect-surfaces.test.js.map +1 -0
- package/dist/commands/__tests__/setup-state.test.d.ts +2 -0
- package/dist/commands/__tests__/setup-state.test.d.ts.map +1 -0
- package/dist/commands/__tests__/setup-state.test.js +194 -0
- package/dist/commands/__tests__/setup-state.test.js.map +1 -0
- package/dist/commands/accept-policy.d.ts +10 -0
- package/dist/commands/accept-policy.d.ts.map +1 -0
- package/dist/commands/accept-policy.js +107 -0
- package/dist/commands/accept-policy.js.map +1 -0
- package/dist/commands/accept.d.ts +18 -0
- package/dist/commands/accept.d.ts.map +1 -0
- package/dist/commands/accept.js +76 -0
- package/dist/commands/accept.js.map +1 -0
- package/dist/commands/admin/cockpit.d.ts +91 -0
- package/dist/commands/admin/cockpit.d.ts.map +1 -0
- package/dist/commands/admin/cockpit.js +617 -0
- package/dist/commands/admin/cockpit.js.map +1 -0
- package/dist/commands/admin/index.d.ts +70 -0
- package/dist/commands/admin/index.d.ts.map +1 -0
- package/dist/commands/admin/index.js +365 -0
- package/dist/commands/admin/index.js.map +1 -0
- package/dist/commands/admin/index.test.d.ts +2 -0
- package/dist/commands/admin/index.test.d.ts.map +1 -0
- package/dist/commands/admin/index.test.js +68 -0
- package/dist/commands/admin/index.test.js.map +1 -0
- package/dist/commands/admin/inspect.d.ts +30 -0
- package/dist/commands/admin/inspect.d.ts.map +1 -0
- package/dist/commands/admin/inspect.js +555 -0
- package/dist/commands/admin/inspect.js.map +1 -0
- package/dist/commands/admin/inspect.test.d.ts +7 -0
- package/dist/commands/admin/inspect.test.d.ts.map +1 -0
- package/dist/commands/admin/inspect.test.js +90 -0
- package/dist/commands/admin/inspect.test.js.map +1 -0
- package/dist/commands/admin/manage.d.ts +8 -0
- package/dist/commands/admin/manage.d.ts.map +1 -0
- package/dist/commands/admin/manage.js +260 -0
- package/dist/commands/admin/manage.js.map +1 -0
- package/dist/commands/admin/manage.test.d.ts +16 -0
- package/dist/commands/admin/manage.test.d.ts.map +1 -0
- package/dist/commands/admin/manage.test.js +159 -0
- package/dist/commands/admin/manage.test.js.map +1 -0
- package/dist/commands/admin/probe.d.ts +48 -0
- package/dist/commands/admin/probe.d.ts.map +1 -0
- package/dist/commands/admin/probe.js +191 -0
- package/dist/commands/admin/probe.js.map +1 -0
- package/dist/commands/admin/probe.test.d.ts +2 -0
- package/dist/commands/admin/probe.test.d.ts.map +1 -0
- package/dist/commands/admin/probe.test.js +146 -0
- package/dist/commands/admin/probe.test.js.map +1 -0
- package/dist/commands/admin/run.d.ts +43 -0
- package/dist/commands/admin/run.d.ts.map +1 -0
- package/dist/commands/admin/run.js +78 -0
- package/dist/commands/admin/run.js.map +1 -0
- package/dist/commands/admin/run.test.d.ts +18 -0
- package/dist/commands/admin/run.test.d.ts.map +1 -0
- package/dist/commands/admin/run.test.js +168 -0
- package/dist/commands/admin/run.test.js.map +1 -0
- package/dist/commands/admin/seed.d.ts +75 -0
- package/dist/commands/admin/seed.d.ts.map +1 -0
- package/dist/commands/admin/seed.js +947 -0
- package/dist/commands/admin/seed.js.map +1 -0
- package/dist/commands/admin/seed.test.d.ts +11 -0
- package/dist/commands/admin/seed.test.d.ts.map +1 -0
- package/dist/commands/admin/seed.test.js +147 -0
- package/dist/commands/admin/seed.test.js.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts +14 -0
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.generated.js +153 -0
- package/dist/commands/admin/seedRegistryEntries.generated.js.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.test.d.ts +13 -0
- package/dist/commands/admin/seedRegistryEntries.test.d.ts.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.test.js +91 -0
- package/dist/commands/admin/seedRegistryEntries.test.js.map +1 -0
- package/dist/commands/audit.d.ts +25 -0
- package/dist/commands/audit.d.ts.map +1 -0
- package/dist/commands/audit.js +223 -0
- package/dist/commands/audit.js.map +1 -0
- package/dist/commands/authority-domains.d.ts +157 -0
- package/dist/commands/authority-domains.d.ts.map +1 -0
- package/dist/commands/authority-domains.js +387 -0
- package/dist/commands/authority-domains.js.map +1 -0
- package/dist/commands/brand-pack.d.ts +2 -0
- package/dist/commands/brand-pack.d.ts.map +1 -0
- package/dist/commands/brand-pack.js +25 -0
- package/dist/commands/brand-pack.js.map +1 -0
- package/dist/commands/brief.d.ts +28 -0
- package/dist/commands/brief.d.ts.map +1 -0
- package/dist/commands/brief.js +79 -0
- package/dist/commands/brief.js.map +1 -0
- package/dist/commands/capture.d.ts +38 -0
- package/dist/commands/capture.d.ts.map +1 -0
- package/dist/commands/capture.js +402 -0
- package/dist/commands/capture.js.map +1 -0
- package/dist/commands/chain-walk.d.ts +14 -0
- package/dist/commands/chain-walk.d.ts.map +1 -0
- package/dist/commands/chain-walk.js +38 -0
- package/dist/commands/chain-walk.js.map +1 -0
- package/dist/commands/changes.d.ts +11 -0
- package/dist/commands/changes.d.ts.map +1 -0
- package/dist/commands/changes.js +46 -0
- package/dist/commands/changes.js.map +1 -0
- package/dist/commands/codex-prep.d.ts +23 -0
- package/dist/commands/codex-prep.d.ts.map +1 -0
- package/dist/commands/codex-prep.js +56 -0
- package/dist/commands/codex-prep.js.map +1 -0
- package/dist/commands/collections.d.ts +22 -0
- package/dist/commands/collections.d.ts.map +1 -0
- package/dist/commands/collections.js +77 -0
- package/dist/commands/collections.js.map +1 -0
- package/dist/commands/conflicts.d.ts +40 -0
- package/dist/commands/conflicts.d.ts.map +1 -0
- package/dist/commands/conflicts.js +267 -0
- package/dist/commands/conflicts.js.map +1 -0
- package/dist/commands/conflicts.test.d.ts +2 -0
- package/dist/commands/conflicts.test.d.ts.map +1 -0
- package/dist/commands/conflicts.test.js +219 -0
- package/dist/commands/conflicts.test.js.map +1 -0
- package/dist/commands/connect-config.test.d.ts +2 -0
- package/dist/commands/connect-config.test.d.ts.map +1 -0
- package/dist/commands/connect-config.test.js +44 -0
- package/dist/commands/connect-config.test.js.map +1 -0
- package/dist/commands/connect-context.d.ts +45 -0
- package/dist/commands/connect-context.d.ts.map +1 -0
- package/dist/commands/connect-context.js +83 -0
- package/dist/commands/connect-context.js.map +1 -0
- package/dist/commands/connect-context.test.d.ts +2 -0
- package/dist/commands/connect-context.test.d.ts.map +1 -0
- package/dist/commands/connect-context.test.js +158 -0
- package/dist/commands/connect-context.test.js.map +1 -0
- package/dist/commands/connect-handoff.d.ts +51 -0
- package/dist/commands/connect-handoff.d.ts.map +1 -0
- package/dist/commands/connect-handoff.js +70 -0
- package/dist/commands/connect-handoff.js.map +1 -0
- package/dist/commands/connect-integration.test.d.ts +7 -0
- package/dist/commands/connect-integration.test.d.ts.map +1 -0
- package/dist/commands/connect-integration.test.js +223 -0
- package/dist/commands/connect-integration.test.js.map +1 -0
- package/dist/commands/connect-legacy-migration.test.d.ts +2 -0
- package/dist/commands/connect-legacy-migration.test.d.ts.map +1 -0
- package/dist/commands/connect-legacy-migration.test.js +109 -0
- package/dist/commands/connect-legacy-migration.test.js.map +1 -0
- package/dist/commands/connect-screens.d.ts +33 -0
- package/dist/commands/connect-screens.d.ts.map +1 -0
- package/dist/commands/connect-screens.js +124 -0
- package/dist/commands/connect-screens.js.map +1 -0
- package/dist/commands/connect.d.ts +42 -0
- package/dist/commands/connect.d.ts.map +1 -0
- package/dist/commands/connect.js +416 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/connect.test.d.ts +6 -0
- package/dist/commands/connect.test.d.ts.map +1 -0
- package/dist/commands/connect.test.js +571 -0
- package/dist/commands/connect.test.js.map +1 -0
- package/dist/commands/constellation.d.ts +11 -0
- package/dist/commands/constellation.d.ts.map +1 -0
- package/dist/commands/constellation.js +33 -0
- package/dist/commands/constellation.js.map +1 -0
- package/dist/commands/context.d.ts +2 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +21 -10
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/cross-cut.d.ts +11 -0
- package/dist/commands/cross-cut.d.ts.map +1 -0
- package/dist/commands/cross-cut.js +23 -0
- package/dist/commands/cross-cut.js.map +1 -0
- package/dist/commands/direction.d.ts +10 -0
- package/dist/commands/direction.d.ts.map +1 -0
- package/dist/commands/direction.js +79 -0
- package/dist/commands/direction.js.map +1 -0
- package/dist/commands/doctor.d.ts +18 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +367 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/doctor.test.d.ts +8 -0
- package/dist/commands/doctor.test.d.ts.map +1 -0
- package/dist/commands/doctor.test.js +657 -0
- package/dist/commands/doctor.test.js.map +1 -0
- package/dist/commands/entryArchive.d.ts +8 -0
- package/dist/commands/entryArchive.d.ts.map +1 -0
- package/dist/commands/entryArchive.js +37 -0
- package/dist/commands/entryArchive.js.map +1 -0
- package/dist/commands/feedback.d.ts +36 -0
- package/dist/commands/feedback.d.ts.map +1 -0
- package/dist/commands/feedback.js +193 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/feedback.test.d.ts +2 -0
- package/dist/commands/feedback.test.d.ts.map +1 -0
- package/dist/commands/feedback.test.js +125 -0
- package/dist/commands/feedback.test.js.map +1 -0
- package/dist/commands/fields.d.ts +9 -0
- package/dist/commands/fields.d.ts.map +1 -0
- package/dist/commands/fields.js +30 -0
- package/dist/commands/fields.js.map +1 -0
- package/dist/commands/files.d.ts +26 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +160 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/files.test.d.ts +2 -0
- package/dist/commands/files.test.d.ts.map +1 -0
- package/dist/commands/files.test.js +278 -0
- package/dist/commands/files.test.js.map +1 -0
- package/dist/commands/get.d.ts +8 -1
- package/dist/commands/get.d.ts.map +1 -1
- package/dist/commands/get.js +61 -8
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/handshake.d.ts +249 -0
- package/dist/commands/handshake.d.ts.map +1 -0
- package/dist/commands/handshake.js +2661 -0
- package/dist/commands/handshake.js.map +1 -0
- package/dist/commands/ingest.d.ts +8 -2
- package/dist/commands/ingest.d.ts.map +1 -1
- package/dist/commands/ingest.js +160 -28
- package/dist/commands/ingest.js.map +1 -1
- package/dist/commands/init.d.ts +14 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +120 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +101 -38
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/method.d.ts +99 -0
- package/dist/commands/method.d.ts.map +1 -0
- package/dist/commands/method.js +804 -0
- package/dist/commands/method.js.map +1 -0
- package/dist/commands/migrate-setup.d.ts +18 -0
- package/dist/commands/migrate-setup.d.ts.map +1 -0
- package/dist/commands/migrate-setup.js +148 -0
- package/dist/commands/migrate-setup.js.map +1 -0
- package/dist/commands/organisation.d.ts +41 -0
- package/dist/commands/organisation.d.ts.map +1 -0
- package/dist/commands/organisation.js +353 -0
- package/dist/commands/organisation.js.map +1 -0
- package/dist/commands/organisation.test.d.ts +2 -0
- package/dist/commands/organisation.test.d.ts.map +1 -0
- package/dist/commands/organisation.test.js +233 -0
- package/dist/commands/organisation.test.js.map +1 -0
- package/dist/commands/organisationHierarchy.d.ts +8 -0
- package/dist/commands/organisationHierarchy.d.ts.map +1 -0
- package/dist/commands/organisationHierarchy.js +67 -0
- package/dist/commands/organisationHierarchy.js.map +1 -0
- package/dist/commands/organisationHierarchy.test.d.ts +2 -0
- package/dist/commands/organisationHierarchy.test.d.ts.map +1 -0
- package/dist/commands/organisationHierarchy.test.js +55 -0
- package/dist/commands/organisationHierarchy.test.js.map +1 -0
- package/dist/commands/organisationWrite.d.ts +18 -0
- package/dist/commands/organisationWrite.d.ts.map +1 -0
- package/dist/commands/organisationWrite.js +50 -0
- package/dist/commands/organisationWrite.js.map +1 -0
- package/dist/commands/orient.d.ts +235 -3
- package/dist/commands/orient.d.ts.map +1 -1
- package/dist/commands/orient.js +242 -10
- package/dist/commands/orient.js.map +1 -1
- package/dist/commands/profile.d.ts +34 -0
- package/dist/commands/profile.d.ts.map +1 -0
- package/dist/commands/profile.js +178 -0
- package/dist/commands/profile.js.map +1 -0
- package/dist/commands/promote.d.ts +23 -0
- package/dist/commands/promote.d.ts.map +1 -0
- package/dist/commands/promote.js +276 -0
- package/dist/commands/promote.js.map +1 -0
- package/dist/commands/proof-run.d.ts +51 -0
- package/dist/commands/proof-run.d.ts.map +1 -0
- package/dist/commands/proof-run.js +209 -0
- package/dist/commands/proof-run.js.map +1 -0
- package/dist/commands/proposals.d.ts +9 -0
- package/dist/commands/proposals.d.ts.map +1 -0
- package/dist/commands/proposals.js +24 -0
- package/dist/commands/proposals.js.map +1 -0
- package/dist/commands/quality.d.ts +16 -0
- package/dist/commands/quality.d.ts.map +1 -0
- package/dist/commands/quality.js +29 -0
- package/dist/commands/quality.js.map +1 -0
- package/dist/commands/questions.d.ts +33 -0
- package/dist/commands/questions.d.ts.map +1 -0
- package/dist/commands/questions.js +300 -0
- package/dist/commands/questions.js.map +1 -0
- package/dist/commands/questions.test.d.ts +2 -0
- package/dist/commands/questions.test.d.ts.map +1 -0
- package/dist/commands/questions.test.js +175 -0
- package/dist/commands/questions.test.js.map +1 -0
- package/dist/commands/reject.d.ts +14 -0
- package/dist/commands/reject.d.ts.map +1 -0
- package/dist/commands/reject.js +44 -0
- package/dist/commands/reject.js.map +1 -0
- package/dist/commands/relate.d.ts +17 -0
- package/dist/commands/relate.d.ts.map +1 -0
- package/dist/commands/relate.js +159 -0
- package/dist/commands/relate.js.map +1 -0
- package/dist/commands/restore.d.ts +2 -0
- package/dist/commands/restore.d.ts.map +1 -0
- package/dist/commands/restore.js +83 -0
- package/dist/commands/restore.js.map +1 -0
- package/dist/commands/rework.d.ts +24 -0
- package/dist/commands/rework.d.ts.map +1 -0
- package/dist/commands/rework.js +97 -0
- package/dist/commands/rework.js.map +1 -0
- package/dist/commands/scoreboard.d.ts +28 -0
- package/dist/commands/scoreboard.d.ts.map +1 -0
- package/dist/commands/scoreboard.js +40 -0
- package/dist/commands/scoreboard.js.map +1 -0
- package/dist/commands/search.d.ts +1 -0
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +6 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/session.d.ts +72 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +579 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/setup-audit.d.ts +59 -0
- package/dist/commands/setup-audit.d.ts.map +1 -0
- package/dist/commands/setup-audit.js +250 -0
- package/dist/commands/setup-audit.js.map +1 -0
- package/dist/commands/setup-detect-surfaces.d.ts +38 -0
- package/dist/commands/setup-detect-surfaces.d.ts.map +1 -0
- package/dist/commands/setup-detect-surfaces.js +76 -0
- package/dist/commands/setup-detect-surfaces.js.map +1 -0
- package/dist/commands/setup-ingest.d.ts +17 -0
- package/dist/commands/setup-ingest.d.ts.map +1 -0
- package/dist/commands/setup-ingest.js +174 -0
- package/dist/commands/setup-ingest.js.map +1 -0
- package/dist/commands/setup-resolver.d.ts +58 -0
- package/dist/commands/setup-resolver.d.ts.map +1 -0
- package/dist/commands/setup-resolver.js +150 -0
- package/dist/commands/setup-resolver.js.map +1 -0
- package/dist/commands/setup-state.d.ts +42 -0
- package/dist/commands/setup-state.d.ts.map +1 -0
- package/dist/commands/setup-state.js +93 -0
- package/dist/commands/setup-state.js.map +1 -0
- package/dist/commands/setup.d.ts +23 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +69 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/shape.d.ts +16 -0
- package/dist/commands/shape.d.ts.map +1 -0
- package/dist/commands/shape.js +149 -0
- package/dist/commands/shape.js.map +1 -0
- package/dist/commands/shape.test.d.ts +2 -0
- package/dist/commands/shape.test.d.ts.map +1 -0
- package/dist/commands/shape.test.js +148 -0
- package/dist/commands/shape.test.js.map +1 -0
- package/dist/commands/status.d.ts +7 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +102 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/status.test.d.ts +2 -0
- package/dist/commands/status.test.d.ts.map +1 -0
- package/dist/commands/status.test.js +75 -0
- package/dist/commands/status.test.js.map +1 -0
- package/dist/commands/update.d.ts +37 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +235 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/upgrade.d.ts +5 -0
- package/dist/commands/upgrade.d.ts.map +1 -0
- package/dist/commands/upgrade.js +110 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/commands/usage.d.ts +40 -0
- package/dist/commands/usage.d.ts.map +1 -0
- package/dist/commands/usage.js +214 -0
- package/dist/commands/usage.js.map +1 -0
- package/dist/commands/verify.d.ts +13 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +55 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/commands/welcome.d.ts +21 -0
- package/dist/commands/welcome.d.ts.map +1 -0
- package/dist/commands/welcome.js +53 -0
- package/dist/commands/welcome.js.map +1 -0
- package/dist/commands/whoami.d.ts +13 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +79 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/commands/whoami.test.d.ts +2 -0
- package/dist/commands/whoami.test.d.ts.map +1 -0
- package/dist/commands/whoami.test.js +72 -0
- package/dist/commands/whoami.test.js.map +1 -0
- package/dist/commands/workspace.d.ts +115 -0
- package/dist/commands/workspace.d.ts.map +1 -0
- package/dist/commands/workspace.js +263 -0
- package/dist/commands/workspace.js.map +1 -0
- package/dist/formatters/__tests__/orient-possibleConflict.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-possibleConflict.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-possibleConflict.test.js +68 -0
- package/dist/formatters/__tests__/orient-possibleConflict.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts +7 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.js +548 -0
- package/dist/formatters/__tests__/orient-provenance.test.js.map +1 -0
- package/dist/formatters/__tests__/session-list-show.test.d.ts +2 -0
- package/dist/formatters/__tests__/session-list-show.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/session-list-show.test.js +159 -0
- package/dist/formatters/__tests__/session-list-show.test.js.map +1 -0
- package/dist/formatters/__tests__/session.test.d.ts +2 -0
- package/dist/formatters/__tests__/session.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/session.test.js +206 -0
- package/dist/formatters/__tests__/session.test.js.map +1 -0
- package/dist/formatters/audit.d.ts +52 -0
- package/dist/formatters/audit.d.ts.map +1 -0
- package/dist/formatters/audit.js +81 -0
- package/dist/formatters/audit.js.map +1 -0
- package/dist/formatters/brief.d.ts +113 -0
- package/dist/formatters/brief.d.ts.map +1 -0
- package/dist/formatters/brief.js +179 -0
- package/dist/formatters/brief.js.map +1 -0
- package/dist/formatters/capture.d.ts +56 -0
- package/dist/formatters/capture.d.ts.map +1 -0
- package/dist/formatters/capture.js +88 -0
- package/dist/formatters/capture.js.map +1 -0
- package/dist/formatters/chain-walk.d.ts +33 -0
- package/dist/formatters/chain-walk.d.ts.map +1 -0
- package/dist/formatters/chain-walk.js +54 -0
- package/dist/formatters/chain-walk.js.map +1 -0
- package/dist/formatters/changes.d.ts +25 -0
- package/dist/formatters/changes.d.ts.map +1 -0
- package/dist/formatters/changes.js +60 -0
- package/dist/formatters/changes.js.map +1 -0
- package/dist/formatters/coaching.d.ts +55 -0
- package/dist/formatters/coaching.d.ts.map +1 -0
- package/dist/formatters/coaching.js +46 -0
- package/dist/formatters/coaching.js.map +1 -0
- package/dist/formatters/collections.d.ts +40 -0
- package/dist/formatters/collections.d.ts.map +1 -0
- package/dist/formatters/collections.js +93 -0
- package/dist/formatters/collections.js.map +1 -0
- package/dist/formatters/conflicts.d.ts +69 -0
- package/dist/formatters/conflicts.d.ts.map +1 -0
- package/dist/formatters/conflicts.js +87 -0
- package/dist/formatters/conflicts.js.map +1 -0
- package/dist/formatters/conflicts.test.d.ts +2 -0
- package/dist/formatters/conflicts.test.d.ts.map +1 -0
- package/dist/formatters/conflicts.test.js +136 -0
- package/dist/formatters/conflicts.test.js.map +1 -0
- package/dist/formatters/constellation.d.ts +34 -0
- package/dist/formatters/constellation.d.ts.map +1 -0
- package/dist/formatters/constellation.js +38 -0
- package/dist/formatters/constellation.js.map +1 -0
- package/dist/formatters/context.d.ts +1 -1
- package/dist/formatters/context.d.ts.map +1 -1
- package/dist/formatters/context.js.map +1 -1
- package/dist/formatters/cross-cut.d.ts +21 -0
- package/dist/formatters/cross-cut.d.ts.map +1 -0
- package/dist/formatters/cross-cut.js +32 -0
- package/dist/formatters/cross-cut.js.map +1 -0
- package/dist/formatters/direction.d.ts +48 -0
- package/dist/formatters/direction.d.ts.map +1 -0
- package/dist/formatters/direction.js +75 -0
- package/dist/formatters/direction.js.map +1 -0
- package/dist/formatters/direction.test.d.ts +2 -0
- package/dist/formatters/direction.test.d.ts.map +1 -0
- package/dist/formatters/direction.test.js +70 -0
- package/dist/formatters/direction.test.js.map +1 -0
- package/dist/formatters/entry.d.ts +55 -4
- package/dist/formatters/entry.d.ts.map +1 -1
- package/dist/formatters/entry.js +91 -12
- package/dist/formatters/entry.js.map +1 -1
- package/dist/formatters/feedback.d.ts +56 -0
- package/dist/formatters/feedback.d.ts.map +1 -0
- package/dist/formatters/feedback.js +89 -0
- package/dist/formatters/feedback.js.map +1 -0
- package/dist/formatters/feedback.test.d.ts +2 -0
- package/dist/formatters/feedback.test.d.ts.map +1 -0
- package/dist/formatters/feedback.test.js +112 -0
- package/dist/formatters/feedback.test.js.map +1 -0
- package/dist/formatters/fields.d.ts +32 -0
- package/dist/formatters/fields.d.ts.map +1 -0
- package/dist/formatters/fields.js +49 -0
- package/dist/formatters/fields.js.map +1 -0
- package/dist/formatters/handshake.d.ts +63 -0
- package/dist/formatters/handshake.d.ts.map +1 -0
- package/dist/formatters/handshake.js +199 -0
- package/dist/formatters/handshake.js.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts +2 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js +22 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js.map +1 -0
- package/dist/formatters/orient.d.ts +349 -9
- package/dist/formatters/orient.d.ts.map +1 -1
- package/dist/formatters/orient.js +393 -45
- package/dist/formatters/orient.js.map +1 -1
- package/dist/formatters/orient.rcrtMiss.test.d.ts +2 -0
- package/dist/formatters/orient.rcrtMiss.test.d.ts.map +1 -0
- package/dist/formatters/orient.rcrtMiss.test.js +146 -0
- package/dist/formatters/orient.rcrtMiss.test.js.map +1 -0
- package/dist/formatters/orient.rituals.test.d.ts +2 -0
- package/dist/formatters/orient.rituals.test.d.ts.map +1 -0
- package/dist/formatters/orient.rituals.test.js +70 -0
- package/dist/formatters/orient.rituals.test.js.map +1 -0
- package/dist/formatters/orient.shapeAdvisorySummary.test.d.ts +2 -0
- package/dist/formatters/orient.shapeAdvisorySummary.test.d.ts.map +1 -0
- package/dist/formatters/orient.shapeAdvisorySummary.test.js +62 -0
- package/dist/formatters/orient.shapeAdvisorySummary.test.js.map +1 -0
- package/dist/formatters/orientDegradation.d.ts +21 -0
- package/dist/formatters/orientDegradation.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.js +33 -0
- package/dist/formatters/orientDegradation.js.map +1 -0
- package/dist/formatters/orientDirection.d.ts +77 -0
- package/dist/formatters/orientDirection.d.ts.map +1 -0
- package/dist/formatters/orientDirection.js +94 -0
- package/dist/formatters/orientDirection.js.map +1 -0
- package/dist/formatters/orientDirection.test.d.ts +2 -0
- package/dist/formatters/orientDirection.test.d.ts.map +1 -0
- package/dist/formatters/orientDirection.test.js +193 -0
- package/dist/formatters/orientDirection.test.js.map +1 -0
- package/dist/formatters/orientRetrievalMiss.d.ts +30 -0
- package/dist/formatters/orientRetrievalMiss.d.ts.map +1 -0
- package/dist/formatters/orientRetrievalMiss.js +24 -0
- package/dist/formatters/orientRetrievalMiss.js.map +1 -0
- package/dist/formatters/promote.d.ts +79 -0
- package/dist/formatters/promote.d.ts.map +1 -0
- package/dist/formatters/promote.js +79 -0
- package/dist/formatters/promote.js.map +1 -0
- package/dist/formatters/proposals.d.ts +45 -0
- package/dist/formatters/proposals.d.ts.map +1 -0
- package/dist/formatters/proposals.js +62 -0
- package/dist/formatters/proposals.js.map +1 -0
- package/dist/formatters/questions.d.ts +100 -0
- package/dist/formatters/questions.d.ts.map +1 -0
- package/dist/formatters/questions.js +146 -0
- package/dist/formatters/questions.js.map +1 -0
- package/dist/formatters/questions.test.d.ts +2 -0
- package/dist/formatters/questions.test.d.ts.map +1 -0
- package/dist/formatters/questions.test.js +184 -0
- package/dist/formatters/questions.test.js.map +1 -0
- package/dist/formatters/relate.d.ts +27 -0
- package/dist/formatters/relate.d.ts.map +1 -0
- package/dist/formatters/relate.js +25 -0
- package/dist/formatters/relate.js.map +1 -0
- package/dist/formatters/relate.test.d.ts +2 -0
- package/dist/formatters/relate.test.d.ts.map +1 -0
- package/dist/formatters/relate.test.js +81 -0
- package/dist/formatters/relate.test.js.map +1 -0
- package/dist/formatters/scoreboard.d.ts +11 -0
- package/dist/formatters/scoreboard.d.ts.map +1 -0
- package/dist/formatters/scoreboard.js +164 -0
- package/dist/formatters/scoreboard.js.map +1 -0
- package/dist/formatters/scoreboard.test.d.ts +2 -0
- package/dist/formatters/scoreboard.test.d.ts.map +1 -0
- package/dist/formatters/scoreboard.test.js +303 -0
- package/dist/formatters/scoreboard.test.js.map +1 -0
- package/dist/formatters/search.d.ts +0 -4
- package/dist/formatters/search.d.ts.map +1 -1
- package/dist/formatters/search.js +20 -1
- package/dist/formatters/search.js.map +1 -1
- package/dist/formatters/search.test.d.ts +2 -0
- package/dist/formatters/search.test.d.ts.map +1 -0
- package/dist/formatters/search.test.js +46 -0
- package/dist/formatters/search.test.js.map +1 -0
- package/dist/formatters/session-feedback.test.d.ts +2 -0
- package/dist/formatters/session-feedback.test.d.ts.map +1 -0
- package/dist/formatters/session-feedback.test.js +61 -0
- package/dist/formatters/session-feedback.test.js.map +1 -0
- package/dist/formatters/session.d.ts +129 -0
- package/dist/formatters/session.d.ts.map +1 -0
- package/dist/formatters/session.js +356 -0
- package/dist/formatters/session.js.map +1 -0
- package/dist/formatters/shape.d.ts +54 -0
- package/dist/formatters/shape.d.ts.map +1 -0
- package/dist/formatters/shape.js +97 -0
- package/dist/formatters/shape.js.map +1 -0
- package/dist/formatters/shape.test.d.ts +2 -0
- package/dist/formatters/shape.test.d.ts.map +1 -0
- package/dist/formatters/shape.test.js +80 -0
- package/dist/formatters/shape.test.js.map +1 -0
- package/dist/formatters/spineCheck.d.ts +76 -0
- package/dist/formatters/spineCheck.d.ts.map +1 -0
- package/dist/formatters/spineCheck.js +111 -0
- package/dist/formatters/spineCheck.js.map +1 -0
- package/dist/formatters/update.d.ts +20 -0
- package/dist/formatters/update.d.ts.map +1 -0
- package/dist/formatters/update.js +49 -0
- package/dist/formatters/update.js.map +1 -0
- package/dist/formatters/verify.d.ts +19 -0
- package/dist/formatters/verify.d.ts.map +1 -0
- package/dist/formatters/verify.js +29 -0
- package/dist/formatters/verify.js.map +1 -0
- package/dist/generated/healthGapKinds.generated.d.ts +12 -0
- package/dist/generated/healthGapKinds.generated.d.ts.map +1 -0
- package/dist/generated/healthGapKinds.generated.js +24 -0
- package/dist/generated/healthGapKinds.generated.js.map +1 -0
- package/dist/generated/relationTypes.generated.d.ts +12 -0
- package/dist/generated/relationTypes.generated.d.ts.map +1 -0
- package/dist/generated/relationTypes.generated.js +11 -0
- package/dist/generated/relationTypes.generated.js.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts +55 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.js +348 -0
- package/dist/generated/routeLatencyBudget.generated.js.map +1 -0
- package/dist/generated/sourceSurfaces.generated.d.ts +12 -0
- package/dist/generated/sourceSurfaces.generated.d.ts.map +1 -0
- package/dist/generated/sourceSurfaces.generated.js +11 -0
- package/dist/generated/sourceSurfaces.generated.js.map +1 -0
- package/dist/generators/adapters.d.ts +77 -0
- package/dist/generators/adapters.d.ts.map +1 -0
- package/dist/generators/adapters.js +350 -0
- package/dist/generators/adapters.js.map +1 -0
- package/dist/generators/adapters.test.d.ts +2 -0
- package/dist/generators/adapters.test.d.ts.map +1 -0
- package/dist/generators/adapters.test.js +27 -0
- package/dist/generators/adapters.test.js.map +1 -0
- package/dist/generators/archetypes.d.ts +52 -0
- package/dist/generators/archetypes.d.ts.map +1 -0
- package/dist/generators/archetypes.js +190 -0
- package/dist/generators/archetypes.js.map +1 -0
- package/dist/generators/archetypes.test.d.ts +2 -0
- package/dist/generators/archetypes.test.d.ts.map +1 -0
- package/dist/generators/archetypes.test.js +272 -0
- package/dist/generators/archetypes.test.js.map +1 -0
- package/dist/generators/boundary-manifest.d.ts +29 -0
- package/dist/generators/boundary-manifest.d.ts.map +1 -0
- package/dist/generators/boundary-manifest.js +183 -0
- package/dist/generators/boundary-manifest.js.map +1 -0
- package/dist/generators/boundary-manifest.real-file.test.d.ts +2 -0
- package/dist/generators/boundary-manifest.real-file.test.d.ts.map +1 -0
- package/dist/generators/boundary-manifest.real-file.test.js +70 -0
- package/dist/generators/boundary-manifest.real-file.test.js.map +1 -0
- package/dist/generators/boundary-manifest.test.d.ts +2 -0
- package/dist/generators/boundary-manifest.test.d.ts.map +1 -0
- package/dist/generators/boundary-manifest.test.js +91 -0
- package/dist/generators/boundary-manifest.test.js.map +1 -0
- package/dist/generators/briefing-md.d.ts +8 -0
- package/dist/generators/briefing-md.d.ts.map +1 -0
- package/dist/generators/briefing-md.js +51 -0
- package/dist/generators/briefing-md.js.map +1 -0
- package/dist/generators/chain-classifier-kernel-client-drift.test.d.ts +2 -0
- package/dist/generators/chain-classifier-kernel-client-drift.test.d.ts.map +1 -0
- package/dist/generators/chain-classifier-kernel-client-drift.test.js +41 -0
- package/dist/generators/chain-classifier-kernel-client-drift.test.js.map +1 -0
- package/dist/generators/chain-classifier.d.ts +102 -0
- package/dist/generators/chain-classifier.d.ts.map +1 -0
- package/dist/generators/chain-classifier.js +52 -0
- package/dist/generators/chain-classifier.js.map +1 -0
- package/dist/generators/chain-rules.d.ts +42 -0
- package/dist/generators/chain-rules.d.ts.map +1 -0
- package/dist/generators/chain-rules.js +256 -0
- package/dist/generators/chain-rules.js.map +1 -0
- package/dist/generators/chain-rules.test.d.ts +2 -0
- package/dist/generators/chain-rules.test.d.ts.map +1 -0
- package/dist/generators/chain-rules.test.js +448 -0
- package/dist/generators/chain-rules.test.js.map +1 -0
- package/dist/generators/context-md.d.ts +8 -0
- package/dist/generators/context-md.d.ts.map +1 -0
- package/dist/generators/context-md.js +134 -0
- package/dist/generators/context-md.js.map +1 -0
- package/dist/generators/handshake-diff.d.ts +67 -0
- package/dist/generators/handshake-diff.d.ts.map +1 -0
- package/dist/generators/handshake-diff.js +183 -0
- package/dist/generators/handshake-diff.js.map +1 -0
- package/dist/generators/handshake-diff.test.d.ts +2 -0
- package/dist/generators/handshake-diff.test.d.ts.map +1 -0
- package/dist/generators/handshake-diff.test.js +264 -0
- package/dist/generators/handshake-diff.test.js.map +1 -0
- package/dist/generators/manifest.d.ts +115 -0
- package/dist/generators/manifest.d.ts.map +1 -0
- package/dist/generators/manifest.js +277 -0
- package/dist/generators/manifest.js.map +1 -0
- package/dist/generators/portable-knowledge.d.ts +165 -0
- package/dist/generators/portable-knowledge.d.ts.map +1 -0
- package/dist/generators/portable-knowledge.js +599 -0
- package/dist/generators/portable-knowledge.js.map +1 -0
- package/dist/generators/portable-knowledge.test.d.ts +2 -0
- package/dist/generators/portable-knowledge.test.d.ts.map +1 -0
- package/dist/generators/portable-knowledge.test.js +970 -0
- package/dist/generators/portable-knowledge.test.js.map +1 -0
- package/dist/generators/region-projections.d.ts +18 -0
- package/dist/generators/region-projections.d.ts.map +1 -0
- package/dist/generators/region-projections.js +49 -0
- package/dist/generators/region-projections.js.map +1 -0
- package/dist/generators/region-projections.test.d.ts +2 -0
- package/dist/generators/region-projections.test.d.ts.map +1 -0
- package/dist/generators/region-projections.test.js +63 -0
- package/dist/generators/region-projections.test.js.map +1 -0
- package/dist/generators/region.d.ts +24 -0
- package/dist/generators/region.d.ts.map +1 -0
- package/dist/generators/region.js +87 -0
- package/dist/generators/region.js.map +1 -0
- package/dist/generators/region.test.d.ts +2 -0
- package/dist/generators/region.test.d.ts.map +1 -0
- package/dist/generators/region.test.js +126 -0
- package/dist/generators/region.test.js.map +1 -0
- package/dist/generators/surface-profiles.d.ts +48 -0
- package/dist/generators/surface-profiles.d.ts.map +1 -0
- package/dist/generators/surface-profiles.js +98 -0
- package/dist/generators/surface-profiles.js.map +1 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +874 -39
- package/dist/index.js.map +1 -1
- package/dist/lib/__tests__/legalRelationTypes.test.d.ts +2 -0
- package/dist/lib/__tests__/legalRelationTypes.test.d.ts.map +1 -0
- package/dist/lib/__tests__/legalRelationTypes.test.js +98 -0
- package/dist/lib/__tests__/legalRelationTypes.test.js.map +1 -0
- package/dist/lib/__tests__/parseFields.test.d.ts +2 -0
- package/dist/lib/__tests__/parseFields.test.d.ts.map +1 -0
- package/dist/lib/__tests__/parseFields.test.js +40 -0
- package/dist/lib/__tests__/parseFields.test.js.map +1 -0
- package/dist/lib/activation.d.ts +28 -0
- package/dist/lib/activation.d.ts.map +1 -0
- package/dist/lib/activation.js +61 -0
- package/dist/lib/activation.js.map +1 -0
- package/dist/lib/activation.test.d.ts +6 -0
- package/dist/lib/activation.test.d.ts.map +1 -0
- package/dist/lib/activation.test.js +121 -0
- package/dist/lib/activation.test.js.map +1 -0
- package/dist/lib/adminConfig.d.ts +48 -0
- package/dist/lib/adminConfig.d.ts.map +1 -0
- package/dist/lib/adminConfig.js +130 -0
- package/dist/lib/adminConfig.js.map +1 -0
- package/dist/lib/canonicalRefs.d.ts +160 -0
- package/dist/lib/canonicalRefs.d.ts.map +1 -0
- package/dist/lib/canonicalRefs.js +169 -0
- package/dist/lib/canonicalRefs.js.map +1 -0
- package/dist/lib/captureGrounding.d.ts +53 -0
- package/dist/lib/captureGrounding.d.ts.map +1 -0
- package/dist/lib/captureGrounding.js +108 -0
- package/dist/lib/captureGrounding.js.map +1 -0
- package/dist/lib/client.d.ts +86 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +413 -13
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/collectionRegistry.d.ts +61 -0
- package/dist/lib/collectionRegistry.d.ts.map +1 -0
- package/dist/lib/collectionRegistry.js +128 -0
- package/dist/lib/collectionRegistry.js.map +1 -0
- package/dist/lib/commanderOptions.d.ts +8 -0
- package/dist/lib/commanderOptions.d.ts.map +1 -0
- package/dist/lib/commanderOptions.js +10 -0
- package/dist/lib/commanderOptions.js.map +1 -0
- package/dist/lib/compose-wrapup-view.d.ts +48 -0
- package/dist/lib/compose-wrapup-view.d.ts.map +1 -0
- package/dist/lib/compose-wrapup-view.js +37 -0
- package/dist/lib/compose-wrapup-view.js.map +1 -0
- package/dist/lib/config.d.ts +132 -4
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +421 -42
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/configResult.d.ts +80 -0
- package/dist/lib/configResult.d.ts.map +1 -0
- package/dist/lib/configResult.js +176 -0
- package/dist/lib/configResult.js.map +1 -0
- package/dist/lib/connectKeyLabel.d.ts +9 -0
- package/dist/lib/connectKeyLabel.d.ts.map +1 -0
- package/dist/lib/connectKeyLabel.js +12 -0
- package/dist/lib/connectKeyLabel.js.map +1 -0
- package/dist/lib/constants.d.ts +46 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +83 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/conversation-engine.d.ts +45 -0
- package/dist/lib/conversation-engine.d.ts.map +1 -0
- package/dist/lib/conversation-engine.js +112 -0
- package/dist/lib/conversation-engine.js.map +1 -0
- package/dist/lib/conversation-phases.d.ts +59 -0
- package/dist/lib/conversation-phases.d.ts.map +1 -0
- package/dist/lib/conversation-phases.js +11 -0
- package/dist/lib/conversation-phases.js.map +1 -0
- package/dist/lib/conversation-signals.d.ts +30 -0
- package/dist/lib/conversation-signals.d.ts.map +1 -0
- package/dist/lib/conversation-signals.js +64 -0
- package/dist/lib/conversation-signals.js.map +1 -0
- package/dist/lib/conversation.d.ts +36 -0
- package/dist/lib/conversation.d.ts.map +1 -0
- package/dist/lib/conversation.js +66 -0
- package/dist/lib/conversation.js.map +1 -0
- package/dist/lib/createEntryResult.d.ts +34 -0
- package/dist/lib/createEntryResult.d.ts.map +1 -0
- package/dist/lib/createEntryResult.js +12 -0
- package/dist/lib/createEntryResult.js.map +1 -0
- package/dist/lib/deployment.d.ts +23 -0
- package/dist/lib/deployment.d.ts.map +1 -0
- package/dist/lib/deployment.js +78 -0
- package/dist/lib/deployment.js.map +1 -0
- package/dist/lib/deployment.test.d.ts +5 -0
- package/dist/lib/deployment.test.d.ts.map +1 -0
- package/dist/lib/deployment.test.js +54 -0
- package/dist/lib/deployment.test.js.map +1 -0
- package/dist/lib/errors.d.ts +125 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +134 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/experiment.d.ts +18 -0
- package/dist/lib/experiment.d.ts.map +1 -0
- package/dist/lib/experiment.js +28 -0
- package/dist/lib/experiment.js.map +1 -0
- package/dist/lib/format.d.ts +10 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +27 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/frontmatter.d.ts +55 -0
- package/dist/lib/frontmatter.d.ts.map +1 -0
- package/dist/lib/frontmatter.js +92 -0
- package/dist/lib/frontmatter.js.map +1 -0
- package/dist/lib/frontmatter.test.d.ts +15 -0
- package/dist/lib/frontmatter.test.d.ts.map +1 -0
- package/dist/lib/frontmatter.test.js +98 -0
- package/dist/lib/frontmatter.test.js.map +1 -0
- package/dist/lib/gatewayTimeout.d.ts +88 -0
- package/dist/lib/gatewayTimeout.d.ts.map +1 -0
- package/dist/lib/gatewayTimeout.js +118 -0
- package/dist/lib/gatewayTimeout.js.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts +2 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js +73 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js.map +1 -0
- package/dist/lib/glossary.d.ts +19 -0
- package/dist/lib/glossary.d.ts.map +1 -0
- package/dist/lib/glossary.js +53 -0
- package/dist/lib/glossary.js.map +1 -0
- package/dist/lib/hook-intents.d.ts +51 -0
- package/dist/lib/hook-intents.d.ts.map +1 -0
- package/dist/lib/hook-intents.js +85 -0
- package/dist/lib/hook-intents.js.map +1 -0
- package/dist/lib/inferSourceDate.d.ts +12 -0
- package/dist/lib/inferSourceDate.d.ts.map +1 -0
- package/dist/lib/inferSourceDate.js +44 -0
- package/dist/lib/inferSourceDate.js.map +1 -0
- package/dist/lib/kernelEnvelope.d.ts +31 -0
- package/dist/lib/kernelEnvelope.d.ts.map +1 -0
- package/dist/lib/kernelEnvelope.js +52 -0
- package/dist/lib/kernelEnvelope.js.map +1 -0
- package/dist/lib/legalRelationTypes.d.ts +25 -0
- package/dist/lib/legalRelationTypes.d.ts.map +1 -0
- package/dist/lib/legalRelationTypes.js +94 -0
- package/dist/lib/legalRelationTypes.js.map +1 -0
- package/dist/lib/localBinding.d.ts +61 -0
- package/dist/lib/localBinding.d.ts.map +1 -0
- package/dist/lib/localBinding.js +155 -0
- package/dist/lib/localBinding.js.map +1 -0
- package/dist/lib/method-registry.d.ts +37 -0
- package/dist/lib/method-registry.d.ts.map +1 -0
- package/dist/lib/method-registry.js +41 -0
- package/dist/lib/method-registry.js.map +1 -0
- package/dist/lib/normalizeMaterializedFilename.d.ts +28 -0
- package/dist/lib/normalizeMaterializedFilename.d.ts.map +1 -0
- package/dist/lib/normalizeMaterializedFilename.js +56 -0
- package/dist/lib/normalizeMaterializedFilename.js.map +1 -0
- package/dist/lib/normalizeMaterializedFilename.test.d.ts +16 -0
- package/dist/lib/normalizeMaterializedFilename.test.d.ts.map +1 -0
- package/dist/lib/normalizeMaterializedFilename.test.js +90 -0
- package/dist/lib/normalizeMaterializedFilename.test.js.map +1 -0
- package/dist/lib/notice-marker.d.ts +3 -0
- package/dist/lib/notice-marker.d.ts.map +1 -0
- package/dist/lib/notice-marker.js +223 -0
- package/dist/lib/notice-marker.js.map +1 -0
- package/dist/lib/onboarding-path-b.d.ts +10 -0
- package/dist/lib/onboarding-path-b.d.ts.map +1 -0
- package/dist/lib/onboarding-path-b.js +243 -0
- package/dist/lib/onboarding-path-b.js.map +1 -0
- package/dist/lib/onboarding-shared.d.ts +81 -0
- package/dist/lib/onboarding-shared.d.ts.map +1 -0
- package/dist/lib/onboarding-shared.js +175 -0
- package/dist/lib/onboarding-shared.js.map +1 -0
- package/dist/lib/onboarding-topics.d.ts +27 -0
- package/dist/lib/onboarding-topics.d.ts.map +1 -0
- package/dist/lib/onboarding-topics.js +57 -0
- package/dist/lib/onboarding-topics.js.map +1 -0
- package/dist/lib/onboarding.d.ts +17 -0
- package/dist/lib/onboarding.d.ts.map +1 -0
- package/dist/lib/onboarding.js +358 -0
- package/dist/lib/onboarding.js.map +1 -0
- package/dist/lib/parseFields.d.ts +19 -0
- package/dist/lib/parseFields.d.ts.map +1 -0
- package/dist/lib/parseFields.js +49 -0
- package/dist/lib/parseFields.js.map +1 -0
- package/dist/lib/previewBanner.d.ts +9 -0
- package/dist/lib/previewBanner.d.ts.map +1 -0
- package/dist/lib/previewBanner.js +37 -0
- package/dist/lib/previewBanner.js.map +1 -0
- package/dist/lib/productbrain-files.d.ts +94 -0
- package/dist/lib/productbrain-files.d.ts.map +1 -0
- package/dist/lib/productbrain-files.js +214 -0
- package/dist/lib/productbrain-files.js.map +1 -0
- package/dist/lib/productbrain-files.test.d.ts +2 -0
- package/dist/lib/productbrain-files.test.d.ts.map +1 -0
- package/dist/lib/productbrain-files.test.js +293 -0
- package/dist/lib/productbrain-files.test.js.map +1 -0
- package/dist/lib/profiles.d.ts +87 -0
- package/dist/lib/profiles.d.ts.map +1 -0
- package/dist/lib/profiles.js +239 -0
- package/dist/lib/profiles.js.map +1 -0
- package/dist/lib/projectConfig.d.ts +81 -0
- package/dist/lib/projectConfig.d.ts.map +1 -0
- package/dist/lib/projectConfig.js +157 -0
- package/dist/lib/projectConfig.js.map +1 -0
- package/dist/lib/prompts.d.ts +65 -0
- package/dist/lib/prompts.d.ts.map +1 -0
- package/dist/lib/prompts.js +132 -0
- package/dist/lib/prompts.js.map +1 -0
- package/dist/lib/rate-limit.d.ts +38 -0
- package/dist/lib/rate-limit.d.ts.map +1 -0
- package/dist/lib/rate-limit.js +83 -0
- package/dist/lib/rate-limit.js.map +1 -0
- package/dist/lib/repo-detect.d.ts +33 -0
- package/dist/lib/repo-detect.d.ts.map +1 -0
- package/dist/lib/repo-detect.js +83 -0
- package/dist/lib/repo-detect.js.map +1 -0
- package/dist/lib/reportedProfile.d.ts +17 -0
- package/dist/lib/reportedProfile.d.ts.map +1 -0
- package/dist/lib/reportedProfile.js +24 -0
- package/dist/lib/reportedProfile.js.map +1 -0
- package/dist/lib/runner.d.ts +41 -0
- package/dist/lib/runner.d.ts.map +1 -0
- package/dist/lib/runner.js +102 -0
- package/dist/lib/runner.js.map +1 -0
- package/dist/lib/session.d.ts +98 -0
- package/dist/lib/session.d.ts.map +1 -0
- package/dist/lib/session.js +306 -0
- package/dist/lib/session.js.map +1 -0
- package/dist/lib/sessionNotices.d.ts +57 -0
- package/dist/lib/sessionNotices.d.ts.map +1 -0
- package/dist/lib/sessionNotices.js +128 -0
- package/dist/lib/sessionNotices.js.map +1 -0
- package/dist/lib/sessionNotices.test.d.ts +2 -0
- package/dist/lib/sessionNotices.test.d.ts.map +1 -0
- package/dist/lib/sessionNotices.test.js +48 -0
- package/dist/lib/sessionNotices.test.js.map +1 -0
- package/dist/lib/spinner.d.ts +27 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/dist/lib/spinner.js +76 -0
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/spinner.test.d.ts +2 -0
- package/dist/lib/spinner.test.d.ts.map +1 -0
- package/dist/lib/spinner.test.js +39 -0
- package/dist/lib/spinner.test.js.map +1 -0
- package/dist/lib/startup-resolution-signals.d.ts +34 -0
- package/dist/lib/startup-resolution-signals.d.ts.map +1 -0
- package/dist/lib/startup-resolution-signals.js +116 -0
- package/dist/lib/startup-resolution-signals.js.map +1 -0
- package/dist/lib/startup-resolution-signals.test.d.ts +2 -0
- package/dist/lib/startup-resolution-signals.test.d.ts.map +1 -0
- package/dist/lib/startup-resolution-signals.test.js +113 -0
- package/dist/lib/startup-resolution-signals.test.js.map +1 -0
- package/dist/lib/startup-signals.d.ts +12 -0
- package/dist/lib/startup-signals.d.ts.map +1 -0
- package/dist/lib/startup-signals.js +172 -0
- package/dist/lib/startup-signals.js.map +1 -0
- package/dist/lib/startup-signals.test.d.ts +2 -0
- package/dist/lib/startup-signals.test.d.ts.map +1 -0
- package/dist/lib/startup-signals.test.js +165 -0
- package/dist/lib/startup-signals.test.js.map +1 -0
- package/dist/lib/state.d.ts +58 -0
- package/dist/lib/state.d.ts.map +1 -0
- package/dist/lib/state.js +95 -0
- package/dist/lib/state.js.map +1 -0
- package/dist/lib/strip.d.ts +20 -0
- package/dist/lib/strip.d.ts.map +1 -0
- package/dist/lib/strip.js +63 -0
- package/dist/lib/strip.js.map +1 -0
- package/dist/lib/style.d.ts +96 -0
- package/dist/lib/style.d.ts.map +1 -0
- package/dist/lib/style.js +174 -0
- package/dist/lib/style.js.map +1 -0
- package/dist/lib/style.test.d.ts +7 -0
- package/dist/lib/style.test.d.ts.map +1 -0
- package/dist/lib/style.test.js +263 -0
- package/dist/lib/style.test.js.map +1 -0
- package/dist/lib/telemetry.d.ts +15 -0
- package/dist/lib/telemetry.d.ts.map +1 -0
- package/dist/lib/telemetry.js +47 -0
- package/dist/lib/telemetry.js.map +1 -0
- package/dist/lib/tokenConstants.d.ts +19 -0
- package/dist/lib/tokenConstants.d.ts.map +1 -0
- package/dist/lib/tokenConstants.js +19 -0
- package/dist/lib/tokenConstants.js.map +1 -0
- package/dist/lib/update-check.d.ts +56 -0
- package/dist/lib/update-check.d.ts.map +1 -0
- package/dist/lib/update-check.js +296 -0
- package/dist/lib/update-check.js.map +1 -0
- package/dist/lib/upgrade-runner.d.ts +22 -0
- package/dist/lib/upgrade-runner.d.ts.map +1 -0
- package/dist/lib/upgrade-runner.js +110 -0
- package/dist/lib/upgrade-runner.js.map +1 -0
- package/dist/lib/wizard-surfaces.d.ts +47 -0
- package/dist/lib/wizard-surfaces.d.ts.map +1 -0
- package/dist/lib/wizard-surfaces.js +176 -0
- package/dist/lib/wizard-surfaces.js.map +1 -0
- package/dist/lib/wizard-surfaces.test.d.ts +2 -0
- package/dist/lib/wizard-surfaces.test.d.ts.map +1 -0
- package/dist/lib/wizard-surfaces.test.js +127 -0
- package/dist/lib/wizard-surfaces.test.js.map +1 -0
- package/dist/lib/wizard-trust.d.ts +31 -0
- package/dist/lib/wizard-trust.d.ts.map +1 -0
- package/dist/lib/wizard-trust.js +66 -0
- package/dist/lib/wizard-trust.js.map +1 -0
- package/dist/lib/wizard-trust.test.d.ts +2 -0
- package/dist/lib/wizard-trust.test.d.ts.map +1 -0
- package/dist/lib/wizard-trust.test.js +32 -0
- package/dist/lib/wizard-trust.test.js.map +1 -0
- package/dist/lib/workspace-probe.d.ts +19 -0
- package/dist/lib/workspace-probe.d.ts.map +1 -0
- package/dist/lib/workspace-probe.js +27 -0
- package/dist/lib/workspace-probe.js.map +1 -0
- package/dist/lib/workspaceNotice.d.ts +76 -0
- package/dist/lib/workspaceNotice.d.ts.map +1 -0
- package/dist/lib/workspaceNotice.js +95 -0
- package/dist/lib/workspaceNotice.js.map +1 -0
- package/dist/lib/workspaceVocabCache.d.ts +60 -0
- package/dist/lib/workspaceVocabCache.d.ts.map +1 -0
- package/dist/lib/workspaceVocabCache.js +98 -0
- package/dist/lib/workspaceVocabCache.js.map +1 -0
- package/dist/registerEntryCommands.d.ts +17 -0
- package/dist/registerEntryCommands.d.ts.map +1 -0
- package/dist/registerEntryCommands.js +83 -0
- package/dist/registerEntryCommands.js.map +1 -0
- package/dist/registerProposalCommands.d.ts +13 -0
- package/dist/registerProposalCommands.d.ts.map +1 -0
- package/dist/registerProposalCommands.js +76 -0
- package/dist/registerProposalCommands.js.map +1 -0
- package/dist/scoreboard/diagnose.d.ts +226 -0
- package/dist/scoreboard/diagnose.d.ts.map +1 -0
- package/dist/scoreboard/diagnose.js +344 -0
- package/dist/scoreboard/diagnose.js.map +1 -0
- package/dist/scoreboard/diagnose.test.d.ts +15 -0
- package/dist/scoreboard/diagnose.test.d.ts.map +1 -0
- package/dist/scoreboard/diagnose.test.js +355 -0
- package/dist/scoreboard/diagnose.test.js.map +1 -0
- package/dist/scoreboard/floors.d.ts +47 -0
- package/dist/scoreboard/floors.d.ts.map +1 -0
- package/dist/scoreboard/floors.js +33 -0
- package/dist/scoreboard/floors.js.map +1 -0
- package/dist/scoreboard/localDrift.d.ts +23 -0
- package/dist/scoreboard/localDrift.d.ts.map +1 -0
- package/dist/scoreboard/localDrift.js +111 -0
- package/dist/scoreboard/localDrift.js.map +1 -0
- package/dist/scoreboard/localDrift.test.d.ts +9 -0
- package/dist/scoreboard/localDrift.test.d.ts.map +1 -0
- package/dist/scoreboard/localDrift.test.js +82 -0
- package/dist/scoreboard/localDrift.test.js.map +1 -0
- package/dist/setup/__tests__/coach-traces.test.d.ts +2 -0
- package/dist/setup/__tests__/coach-traces.test.d.ts.map +1 -0
- package/dist/setup/__tests__/coach-traces.test.js +189 -0
- package/dist/setup/__tests__/coach-traces.test.js.map +1 -0
- package/dist/setup/__tests__/setup-commands.test.d.ts +2 -0
- package/dist/setup/__tests__/setup-commands.test.d.ts.map +1 -0
- package/dist/setup/__tests__/setup-commands.test.js +177 -0
- package/dist/setup/__tests__/setup-commands.test.js.map +1 -0
- package/dist/setup/__tests__/state-machine.test.d.ts +2 -0
- package/dist/setup/__tests__/state-machine.test.d.ts.map +1 -0
- package/dist/setup/__tests__/state-machine.test.js +341 -0
- package/dist/setup/__tests__/state-machine.test.js.map +1 -0
- package/dist/setup/detect-surfaces.d.ts +21 -0
- package/dist/setup/detect-surfaces.d.ts.map +1 -0
- package/dist/setup/detect-surfaces.js +39 -0
- package/dist/setup/detect-surfaces.js.map +1 -0
- package/dist/setup/manifest-writer.d.ts +17 -0
- package/dist/setup/manifest-writer.d.ts.map +1 -0
- package/dist/setup/manifest-writer.js +153 -0
- package/dist/setup/manifest-writer.js.map +1 -0
- package/dist/setup/perimeter.d.ts +72 -0
- package/dist/setup/perimeter.d.ts.map +1 -0
- package/dist/setup/perimeter.js +128 -0
- package/dist/setup/perimeter.js.map +1 -0
- package/dist/setup/state-machine.d.ts +67 -0
- package/dist/setup/state-machine.d.ts.map +1 -0
- package/dist/setup/state-machine.js +124 -0
- package/dist/setup/state-machine.js.map +1 -0
- package/dist/surfaces/__tests__/adapter.test.d.ts +2 -0
- package/dist/surfaces/__tests__/adapter.test.d.ts.map +1 -0
- package/dist/surfaces/__tests__/adapter.test.js +90 -0
- package/dist/surfaces/__tests__/adapter.test.js.map +1 -0
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.d.ts +2 -0
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.d.ts.map +1 -0
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.js +132 -0
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.js.map +1 -0
- package/dist/surfaces/__tests__/telemetry.test.d.ts +2 -0
- package/dist/surfaces/__tests__/telemetry.test.d.ts.map +1 -0
- package/dist/surfaces/__tests__/telemetry.test.js +55 -0
- package/dist/surfaces/__tests__/telemetry.test.js.map +1 -0
- package/dist/surfaces/adapter.d.ts +70 -0
- package/dist/surfaces/adapter.d.ts.map +1 -0
- package/dist/surfaces/adapter.js +2 -0
- package/dist/surfaces/adapter.js.map +1 -0
- package/dist/surfaces/adapters/claude.d.ts +3 -0
- package/dist/surfaces/adapters/claude.d.ts.map +1 -0
- package/dist/surfaces/adapters/claude.js +67 -0
- package/dist/surfaces/adapters/claude.js.map +1 -0
- package/dist/surfaces/adapters/codex.d.ts +3 -0
- package/dist/surfaces/adapters/codex.d.ts.map +1 -0
- package/dist/surfaces/adapters/codex.js +61 -0
- package/dist/surfaces/adapters/codex.js.map +1 -0
- package/dist/surfaces/adapters/copilot.d.ts +3 -0
- package/dist/surfaces/adapters/copilot.d.ts.map +1 -0
- package/dist/surfaces/adapters/copilot.js +59 -0
- package/dist/surfaces/adapters/copilot.js.map +1 -0
- package/dist/surfaces/adapters/cursor.d.ts +3 -0
- package/dist/surfaces/adapters/cursor.d.ts.map +1 -0
- package/dist/surfaces/adapters/cursor.js +78 -0
- package/dist/surfaces/adapters/cursor.js.map +1 -0
- package/dist/surfaces/registry.d.ts +76 -0
- package/dist/surfaces/registry.d.ts.map +1 -0
- package/dist/surfaces/registry.js +117 -0
- package/dist/surfaces/registry.js.map +1 -0
- package/dist/surfaces/telemetry.d.ts +17 -0
- package/dist/surfaces/telemetry.d.ts.map +1 -0
- package/dist/surfaces/telemetry.js +31 -0
- package/dist/surfaces/telemetry.js.map +1 -0
- package/package.json +18 -5
- package/templates/archetypes/boundary.md +23 -0
- package/templates/archetypes/constraint.md +23 -0
- package/templates/archetypes/convention.md +23 -0
- package/templates/archetypes/policy.md +23 -0
- package/templates/archetypes/quality-gate.md +23 -0
- package/templates/archetypes/workflow.md +23 -0
- package/templates/general/code-integrity.md +11 -0
- package/templates/general/getting-started.md +12 -0
- package/templates/method-registry.json +16 -0
- package/templates/node-ts/code-integrity.md +13 -0
- package/templates/node-ts/testing.md +12 -0
- package/templates/python/code-integrity.md +13 -0
- package/templates/python/testing.md +12 -0
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* portable-knowledge — unit tests.
|
|
3
|
+
* BET-169: transport-aware skill dispatch, target filtering, and transport section stripping.
|
|
4
|
+
*/
|
|
5
|
+
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
6
|
+
import { join } from 'path';
|
|
7
|
+
// vi.mock calls are hoisted — use vi.hoisted() for constants referenced inside factories.
|
|
8
|
+
const { vfs } = vi.hoisted(() => ({
|
|
9
|
+
vfs: {},
|
|
10
|
+
}));
|
|
11
|
+
vi.mock('fs', () => ({
|
|
12
|
+
mkdirSync: vi.fn(),
|
|
13
|
+
writeFileSync: vi.fn((path, content) => {
|
|
14
|
+
vfs[path] = content;
|
|
15
|
+
}),
|
|
16
|
+
existsSync: vi.fn((path) => {
|
|
17
|
+
// Check if the path itself or any child key exists (for directory checks)
|
|
18
|
+
if (path in vfs)
|
|
19
|
+
return true;
|
|
20
|
+
// For directory checks: return true if any key starts with path + '/'
|
|
21
|
+
return Object.keys(vfs).some((k) => k.startsWith(path + '/'));
|
|
22
|
+
}),
|
|
23
|
+
readFileSync: vi.fn((path, _enc) => {
|
|
24
|
+
if (path in vfs)
|
|
25
|
+
return vfs[path];
|
|
26
|
+
throw Object.assign(new Error(`ENOENT: no such file '${path}'`), { code: 'ENOENT' });
|
|
27
|
+
}),
|
|
28
|
+
readdirSync: vi.fn((dir) => {
|
|
29
|
+
const prefix = dir.endsWith('/') ? dir : dir + '/';
|
|
30
|
+
const files = new Set();
|
|
31
|
+
for (const key of Object.keys(vfs)) {
|
|
32
|
+
if (key.startsWith(prefix)) {
|
|
33
|
+
const rest = key.slice(prefix.length);
|
|
34
|
+
const parts = rest.split('/');
|
|
35
|
+
if (parts.length === 1)
|
|
36
|
+
files.add(parts[0]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return [...files];
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
import { readCanonicalSkills, readCanonicalRules, shouldEmitToTarget, stripTransportSections, filterByLevel, evaluateConditions, generateCursorSkill, generateCursorRule, generateClaudeRule, generateCodexSkill, generateCodexSkillIndex, generateClaudeSkillRouter, } from './portable-knowledge.js';
|
|
43
|
+
import { generateCopilotInstructionFiles, MARKER } from './adapters.js';
|
|
44
|
+
const PB_DIR = '/tmp/pb-test/.productbrain';
|
|
45
|
+
describe('readCanonicalSkills', () => {
|
|
46
|
+
beforeEach(() => {
|
|
47
|
+
Object.keys(vfs).forEach((k) => delete vfs[k]);
|
|
48
|
+
});
|
|
49
|
+
it('parses targets from frontmatter', () => {
|
|
50
|
+
vfs[join(PB_DIR, 'skills', 'test-skill.md')] = `---
|
|
51
|
+
name: test-skill
|
|
52
|
+
description: A test skill
|
|
53
|
+
triggers:
|
|
54
|
+
- test
|
|
55
|
+
targets:
|
|
56
|
+
- claude
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
# Test Skill Body
|
|
60
|
+
`;
|
|
61
|
+
const skills = readCanonicalSkills(PB_DIR);
|
|
62
|
+
expect(skills).toHaveLength(1);
|
|
63
|
+
expect(skills[0].targets).toEqual(['claude']);
|
|
64
|
+
});
|
|
65
|
+
it('returns undefined targets when not specified in frontmatter', () => {
|
|
66
|
+
vfs[join(PB_DIR, 'skills', 'universal-skill.md')] = `---
|
|
67
|
+
name: universal-skill
|
|
68
|
+
description: A universal skill
|
|
69
|
+
triggers:
|
|
70
|
+
- universal
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
# Universal Skill Body
|
|
74
|
+
`;
|
|
75
|
+
const skills = readCanonicalSkills(PB_DIR);
|
|
76
|
+
expect(skills).toHaveLength(1);
|
|
77
|
+
expect(skills[0].targets).toBeUndefined();
|
|
78
|
+
});
|
|
79
|
+
it('parses multiple targets', () => {
|
|
80
|
+
vfs[join(PB_DIR, 'skills', 'multi-target.md')] = `---
|
|
81
|
+
name: multi-target
|
|
82
|
+
description: Multi-target skill
|
|
83
|
+
triggers:
|
|
84
|
+
- multi
|
|
85
|
+
targets:
|
|
86
|
+
- claude
|
|
87
|
+
- cursor
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
# Multi-Target Body
|
|
91
|
+
`;
|
|
92
|
+
const skills = readCanonicalSkills(PB_DIR);
|
|
93
|
+
expect(skills).toHaveLength(1);
|
|
94
|
+
expect(skills[0].targets).toEqual(['claude', 'cursor']);
|
|
95
|
+
});
|
|
96
|
+
it('parses level from frontmatter', () => {
|
|
97
|
+
vfs[join(PB_DIR, 'skills', 'leveled-skill.md')] = `---
|
|
98
|
+
name: leveled-skill
|
|
99
|
+
description: A leveled skill
|
|
100
|
+
level: core
|
|
101
|
+
triggers:
|
|
102
|
+
- leveled
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
# Leveled Skill Body
|
|
106
|
+
`;
|
|
107
|
+
const skills = readCanonicalSkills(PB_DIR);
|
|
108
|
+
expect(skills).toHaveLength(1);
|
|
109
|
+
expect(skills[0].level).toBe('core');
|
|
110
|
+
});
|
|
111
|
+
it('returns undefined level when not specified in frontmatter', () => {
|
|
112
|
+
vfs[join(PB_DIR, 'skills', 'no-level-skill.md')] = `---
|
|
113
|
+
name: no-level-skill
|
|
114
|
+
description: A skill without level
|
|
115
|
+
triggers:
|
|
116
|
+
- nolevel
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
# No Level Skill Body
|
|
120
|
+
`;
|
|
121
|
+
const skills = readCanonicalSkills(PB_DIR);
|
|
122
|
+
expect(skills).toHaveLength(1);
|
|
123
|
+
expect(skills[0].level).toBeUndefined();
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
describe('shouldEmitToTarget', () => {
|
|
127
|
+
it('returns true when targets is undefined (emit to all)', () => {
|
|
128
|
+
const skill = {
|
|
129
|
+
name: 'test',
|
|
130
|
+
description: '',
|
|
131
|
+
triggers: [],
|
|
132
|
+
body: '',
|
|
133
|
+
sourcePath: '',
|
|
134
|
+
};
|
|
135
|
+
expect(shouldEmitToTarget(skill, 'claude')).toBe(true);
|
|
136
|
+
expect(shouldEmitToTarget(skill, 'cursor')).toBe(true);
|
|
137
|
+
expect(shouldEmitToTarget(skill, 'copilot')).toBe(true);
|
|
138
|
+
expect(shouldEmitToTarget(skill, 'codex')).toBe(true);
|
|
139
|
+
});
|
|
140
|
+
it('returns true when target is in the list', () => {
|
|
141
|
+
const skill = {
|
|
142
|
+
name: 'test',
|
|
143
|
+
description: '',
|
|
144
|
+
triggers: [],
|
|
145
|
+
body: '',
|
|
146
|
+
sourcePath: '',
|
|
147
|
+
targets: ['claude'],
|
|
148
|
+
};
|
|
149
|
+
expect(shouldEmitToTarget(skill, 'claude')).toBe(true);
|
|
150
|
+
});
|
|
151
|
+
it('returns false when target is not in the list', () => {
|
|
152
|
+
const skill = {
|
|
153
|
+
name: 'test',
|
|
154
|
+
description: '',
|
|
155
|
+
triggers: [],
|
|
156
|
+
body: '',
|
|
157
|
+
sourcePath: '',
|
|
158
|
+
targets: ['claude'],
|
|
159
|
+
};
|
|
160
|
+
expect(shouldEmitToTarget(skill, 'cursor')).toBe(false);
|
|
161
|
+
expect(shouldEmitToTarget(skill, 'copilot')).toBe(false);
|
|
162
|
+
});
|
|
163
|
+
it('works for CanonicalRule as well', () => {
|
|
164
|
+
const rule = {
|
|
165
|
+
name: 'test-rule',
|
|
166
|
+
description: '',
|
|
167
|
+
autoApply: true,
|
|
168
|
+
body: '',
|
|
169
|
+
sourcePath: '',
|
|
170
|
+
targets: ['cursor'],
|
|
171
|
+
};
|
|
172
|
+
expect(shouldEmitToTarget(rule, 'cursor')).toBe(true);
|
|
173
|
+
expect(shouldEmitToTarget(rule, 'claude')).toBe(false);
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
describe('stripTransportSections', () => {
|
|
177
|
+
it('keeps content for the matching target and removes delimiters', () => {
|
|
178
|
+
const body = `Universal content above.
|
|
179
|
+
|
|
180
|
+
<!-- transport:claude -->
|
|
181
|
+
Claude-specific instructions here.
|
|
182
|
+
<!-- /transport -->
|
|
183
|
+
|
|
184
|
+
Universal content below.`;
|
|
185
|
+
const result = stripTransportSections(body, 'claude');
|
|
186
|
+
expect(result).toContain('Claude-specific instructions here.');
|
|
187
|
+
expect(result).toContain('Universal content above.');
|
|
188
|
+
expect(result).toContain('Universal content below.');
|
|
189
|
+
expect(result).not.toContain('<!-- transport:claude -->');
|
|
190
|
+
expect(result).not.toContain('<!-- /transport -->');
|
|
191
|
+
});
|
|
192
|
+
it('removes blocks for other targets entirely', () => {
|
|
193
|
+
const body = `Universal content.
|
|
194
|
+
|
|
195
|
+
<!-- transport:cursor -->
|
|
196
|
+
Cursor-only instructions.
|
|
197
|
+
<!-- /transport -->
|
|
198
|
+
|
|
199
|
+
More universal.`;
|
|
200
|
+
const result = stripTransportSections(body, 'claude');
|
|
201
|
+
expect(result).toContain('Universal content.');
|
|
202
|
+
expect(result).toContain('More universal.');
|
|
203
|
+
expect(result).not.toContain('Cursor-only instructions.');
|
|
204
|
+
expect(result).not.toContain('<!-- transport:cursor -->');
|
|
205
|
+
});
|
|
206
|
+
it('handles multiple transport blocks for different targets', () => {
|
|
207
|
+
const body = `# Heading
|
|
208
|
+
|
|
209
|
+
<!-- transport:claude -->
|
|
210
|
+
Claude dispatch: use Agent tool.
|
|
211
|
+
<!-- /transport -->
|
|
212
|
+
|
|
213
|
+
<!-- transport:cursor -->
|
|
214
|
+
Cursor dispatch: use fresh conversation.
|
|
215
|
+
<!-- /transport -->
|
|
216
|
+
|
|
217
|
+
## Footer`;
|
|
218
|
+
const claudeResult = stripTransportSections(body, 'claude');
|
|
219
|
+
expect(claudeResult).toContain('Claude dispatch: use Agent tool.');
|
|
220
|
+
expect(claudeResult).not.toContain('Cursor dispatch: use fresh conversation.');
|
|
221
|
+
expect(claudeResult).toContain('# Heading');
|
|
222
|
+
expect(claudeResult).toContain('## Footer');
|
|
223
|
+
const cursorResult = stripTransportSections(body, 'cursor');
|
|
224
|
+
expect(cursorResult).toContain('Cursor dispatch: use fresh conversation.');
|
|
225
|
+
expect(cursorResult).not.toContain('Claude dispatch: use Agent tool.');
|
|
226
|
+
expect(cursorResult).toContain('# Heading');
|
|
227
|
+
expect(cursorResult).toContain('## Footer');
|
|
228
|
+
});
|
|
229
|
+
it('keeps universal content untouched when no transport blocks exist', () => {
|
|
230
|
+
const body = `# Just a normal skill
|
|
231
|
+
|
|
232
|
+
No transport sections here.
|
|
233
|
+
|
|
234
|
+
## Section 2
|
|
235
|
+
|
|
236
|
+
More content.`;
|
|
237
|
+
const result = stripTransportSections(body, 'claude');
|
|
238
|
+
expect(result).toBe(body);
|
|
239
|
+
});
|
|
240
|
+
it('handles markdown and code blocks inside transport sections', () => {
|
|
241
|
+
const body = `Universal.
|
|
242
|
+
|
|
243
|
+
<!-- transport:claude -->
|
|
244
|
+
**Bold text** and \`inline code\`.
|
|
245
|
+
|
|
246
|
+
\`\`\`bash
|
|
247
|
+
git diff main..HEAD
|
|
248
|
+
\`\`\`
|
|
249
|
+
|
|
250
|
+
- List item 1
|
|
251
|
+
- List item 2
|
|
252
|
+
<!-- /transport -->
|
|
253
|
+
|
|
254
|
+
End.`;
|
|
255
|
+
const result = stripTransportSections(body, 'claude');
|
|
256
|
+
expect(result).toContain('**Bold text** and `inline code`.');
|
|
257
|
+
expect(result).toContain('git diff main..HEAD');
|
|
258
|
+
expect(result).toContain('- List item 1');
|
|
259
|
+
expect(result).toContain('End.');
|
|
260
|
+
});
|
|
261
|
+
it('handles transport sections with no trailing newline after closing tag', () => {
|
|
262
|
+
const body = `Before.
|
|
263
|
+
<!-- transport:claude -->
|
|
264
|
+
Content.
|
|
265
|
+
<!-- /transport -->After.`;
|
|
266
|
+
const result = stripTransportSections(body, 'claude');
|
|
267
|
+
expect(result).toContain('Content.');
|
|
268
|
+
expect(result).toContain('After.');
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
describe('generateCursorSkill (transport stripping)', () => {
|
|
272
|
+
it('strips non-cursor transport sections from generated output', () => {
|
|
273
|
+
const skill = {
|
|
274
|
+
name: 'test-skill',
|
|
275
|
+
description: 'Test skill',
|
|
276
|
+
triggers: ['test'],
|
|
277
|
+
body: `# Heading
|
|
278
|
+
|
|
279
|
+
<!-- transport:claude -->
|
|
280
|
+
Claude-only content.
|
|
281
|
+
<!-- /transport -->
|
|
282
|
+
|
|
283
|
+
<!-- transport:cursor -->
|
|
284
|
+
Cursor-only content.
|
|
285
|
+
<!-- /transport -->
|
|
286
|
+
|
|
287
|
+
Universal content.`,
|
|
288
|
+
sourcePath: '/tmp/.productbrain/skills/test-skill.md',
|
|
289
|
+
};
|
|
290
|
+
const output = generateCursorSkill(skill);
|
|
291
|
+
expect(output).toContain('Cursor-only content.');
|
|
292
|
+
expect(output).not.toContain('Claude-only content.');
|
|
293
|
+
expect(output).toContain('Universal content.');
|
|
294
|
+
expect(output).not.toContain('<!-- transport:');
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
describe('generateCodexSkill / generateCodexSkillIndex', () => {
|
|
298
|
+
it('strips non-codex transport sections from generated Codex skill output', () => {
|
|
299
|
+
const skill = {
|
|
300
|
+
name: 'test-skill',
|
|
301
|
+
description: 'Test skill',
|
|
302
|
+
triggers: ['test'],
|
|
303
|
+
body: `# Heading
|
|
304
|
+
|
|
305
|
+
<!-- transport:claude -->
|
|
306
|
+
Claude-only content.
|
|
307
|
+
<!-- /transport -->
|
|
308
|
+
|
|
309
|
+
<!-- transport:codex -->
|
|
310
|
+
Codex-only content.
|
|
311
|
+
<!-- /transport -->
|
|
312
|
+
|
|
313
|
+
Universal content.`,
|
|
314
|
+
sourcePath: '/tmp/.productbrain/skills/test-skill.md',
|
|
315
|
+
};
|
|
316
|
+
const output = generateCodexSkill(skill);
|
|
317
|
+
expect(output).toContain('Codex-only content.');
|
|
318
|
+
expect(output).not.toContain('Claude-only content.');
|
|
319
|
+
expect(output).toContain('Universal content.');
|
|
320
|
+
});
|
|
321
|
+
it('generates a Codex skill index with links to projected skills', () => {
|
|
322
|
+
const skills = [
|
|
323
|
+
{
|
|
324
|
+
name: 'preflight',
|
|
325
|
+
description: 'Ground the task before changing code.',
|
|
326
|
+
triggers: ['preflight', 'system check'],
|
|
327
|
+
body: '# Preflight',
|
|
328
|
+
sourcePath: '/tmp/.productbrain/skills/preflight.md',
|
|
329
|
+
},
|
|
330
|
+
];
|
|
331
|
+
const output = generateCodexSkillIndex(skills);
|
|
332
|
+
expect(output).toContain('Product Brain Skills for Codex');
|
|
333
|
+
expect(output).toContain('## preflight');
|
|
334
|
+
expect(output).toContain('`preflight`');
|
|
335
|
+
expect(output).toContain('Read: `.codex/skills/preflight.md`');
|
|
336
|
+
});
|
|
337
|
+
it('hides learnings and template files from the Codex skill index', () => {
|
|
338
|
+
const skills = [
|
|
339
|
+
{
|
|
340
|
+
name: 'preflight',
|
|
341
|
+
description: 'Ground the task before changing code.',
|
|
342
|
+
triggers: ['preflight'],
|
|
343
|
+
body: '# Preflight',
|
|
344
|
+
sourcePath: '/tmp/.productbrain/skills/preflight.md',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: 'retro-learnings',
|
|
348
|
+
description: 'Internal learnings companion.',
|
|
349
|
+
triggers: [],
|
|
350
|
+
body: '# Retro Learnings',
|
|
351
|
+
sourcePath: '/tmp/.productbrain/skills/retro-learnings.md',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
name: 'LEARNINGS-TEMPLATE',
|
|
355
|
+
description: 'Template',
|
|
356
|
+
triggers: [],
|
|
357
|
+
body: '# Template',
|
|
358
|
+
sourcePath: '/tmp/.productbrain/skills/LEARNINGS-TEMPLATE.md',
|
|
359
|
+
},
|
|
360
|
+
];
|
|
361
|
+
const output = generateCodexSkillIndex(skills);
|
|
362
|
+
expect(output).toContain('## preflight');
|
|
363
|
+
expect(output).not.toContain('## retro-learnings');
|
|
364
|
+
expect(output).not.toContain('## LEARNINGS-TEMPLATE');
|
|
365
|
+
expect(output).toContain('hidden from this index');
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
describe('generateClaudeSkillRouter (target filtering)', () => {
|
|
369
|
+
it('includes only skills with matching or no targets', () => {
|
|
370
|
+
const claudeOnly = {
|
|
371
|
+
name: 'claude-skill',
|
|
372
|
+
description: 'Claude only',
|
|
373
|
+
triggers: ['test-claude'],
|
|
374
|
+
body: '# Claude',
|
|
375
|
+
sourcePath: '/tmp/skills/claude-skill.md',
|
|
376
|
+
targets: ['claude'],
|
|
377
|
+
};
|
|
378
|
+
const cursorOnly = {
|
|
379
|
+
name: 'cursor-skill',
|
|
380
|
+
description: 'Cursor only',
|
|
381
|
+
triggers: ['test-cursor'],
|
|
382
|
+
body: '# Cursor',
|
|
383
|
+
sourcePath: '/tmp/skills/cursor-skill.md',
|
|
384
|
+
targets: ['cursor'],
|
|
385
|
+
};
|
|
386
|
+
const universal = {
|
|
387
|
+
name: 'universal-skill',
|
|
388
|
+
description: 'Universal',
|
|
389
|
+
triggers: ['test-universal'],
|
|
390
|
+
body: '# Universal',
|
|
391
|
+
sourcePath: '/tmp/skills/universal-skill.md',
|
|
392
|
+
};
|
|
393
|
+
// Filter skills for Claude (as handshake.ts would do)
|
|
394
|
+
const claudeSkills = [claudeOnly, cursorOnly, universal].filter((s) => shouldEmitToTarget(s, 'claude'));
|
|
395
|
+
const router = generateClaudeSkillRouter(claudeSkills);
|
|
396
|
+
expect(router).toContain('claude-skill');
|
|
397
|
+
expect(router).toContain('universal-skill');
|
|
398
|
+
expect(router).not.toContain('cursor-skill');
|
|
399
|
+
});
|
|
400
|
+
it('skill with targets: [claude] does not appear in Cursor output', () => {
|
|
401
|
+
const claudeOnly = {
|
|
402
|
+
name: 'claude-exclusive',
|
|
403
|
+
description: 'Claude exclusive skill',
|
|
404
|
+
triggers: ['claude-trigger'],
|
|
405
|
+
body: '# Claude Exclusive',
|
|
406
|
+
sourcePath: '/tmp/skills/claude-exclusive.md',
|
|
407
|
+
targets: ['claude'],
|
|
408
|
+
};
|
|
409
|
+
// Filter for Cursor (as handshake.ts would do)
|
|
410
|
+
const cursorSkills = [claudeOnly].filter((s) => shouldEmitToTarget(s, 'cursor'));
|
|
411
|
+
expect(cursorSkills).toHaveLength(0);
|
|
412
|
+
});
|
|
413
|
+
it('skill with no targets appears in both Claude and Cursor output', () => {
|
|
414
|
+
const universal = {
|
|
415
|
+
name: 'universal',
|
|
416
|
+
description: 'Universal skill',
|
|
417
|
+
triggers: ['uni'],
|
|
418
|
+
body: '# Universal',
|
|
419
|
+
sourcePath: '/tmp/skills/universal.md',
|
|
420
|
+
};
|
|
421
|
+
const claudeSkills = [universal].filter((s) => shouldEmitToTarget(s, 'claude'));
|
|
422
|
+
const cursorSkills = [universal].filter((s) => shouldEmitToTarget(s, 'cursor'));
|
|
423
|
+
expect(claudeSkills).toHaveLength(1);
|
|
424
|
+
expect(cursorSkills).toHaveLength(1);
|
|
425
|
+
const router = generateClaudeSkillRouter(claudeSkills);
|
|
426
|
+
expect(router).toContain('universal');
|
|
427
|
+
const cursorOutput = generateCursorSkill(cursorSkills[0]);
|
|
428
|
+
expect(cursorOutput).toContain('universal');
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
describe('generateCursorRule (scope propagation)', () => {
|
|
432
|
+
const baseRule = {
|
|
433
|
+
name: 'test-rule',
|
|
434
|
+
description: 'A test rule',
|
|
435
|
+
autoApply: true,
|
|
436
|
+
body: '# Rule body content',
|
|
437
|
+
sourcePath: '/tmp/.productbrain/rules/test-rule.md',
|
|
438
|
+
};
|
|
439
|
+
it('emits empty globs and alwaysApply: true when scope is empty string', () => {
|
|
440
|
+
const rule = { ...baseRule, scope: '' };
|
|
441
|
+
const output = generateCursorRule(rule);
|
|
442
|
+
expect(output).toContain('globs: ');
|
|
443
|
+
expect(output).toContain('alwaysApply: true');
|
|
444
|
+
expect(output).toContain('# Rule body content');
|
|
445
|
+
});
|
|
446
|
+
it('emits empty globs and alwaysApply: true when scope is undefined', () => {
|
|
447
|
+
const rule = { ...baseRule };
|
|
448
|
+
const output = generateCursorRule(rule);
|
|
449
|
+
expect(output).toContain('globs: ');
|
|
450
|
+
expect(output).toContain('alwaysApply: true');
|
|
451
|
+
});
|
|
452
|
+
it('emits glob pattern and alwaysApply: false when scope is set', () => {
|
|
453
|
+
const rule = { ...baseRule, scope: 'convex/**/*.ts' };
|
|
454
|
+
const output = generateCursorRule(rule);
|
|
455
|
+
expect(output).toContain('globs: convex/**/*.ts');
|
|
456
|
+
expect(output).toContain('alwaysApply: false');
|
|
457
|
+
});
|
|
458
|
+
it('respects autoApply: false with empty scope', () => {
|
|
459
|
+
const rule = { ...baseRule, autoApply: false, scope: '' };
|
|
460
|
+
const output = generateCursorRule(rule);
|
|
461
|
+
expect(output).toContain('alwaysApply: false');
|
|
462
|
+
});
|
|
463
|
+
it('replaces .productbrain paths with .cursor paths in body', () => {
|
|
464
|
+
const rule = {
|
|
465
|
+
...baseRule,
|
|
466
|
+
body: 'Read `.productbrain/rules/foo.md` and `.productbrain/skills/bar.md`.',
|
|
467
|
+
};
|
|
468
|
+
const output = generateCursorRule(rule);
|
|
469
|
+
expect(output).toContain('.cursor/rules/foo.mdc');
|
|
470
|
+
expect(output).toContain('.cursor/skills/bar/SKILL.md');
|
|
471
|
+
expect(output).not.toContain('.productbrain/rules/foo.md');
|
|
472
|
+
});
|
|
473
|
+
it('includes source marker comment', () => {
|
|
474
|
+
const output = generateCursorRule(baseRule);
|
|
475
|
+
expect(output).toContain('source: .productbrain/rules/test-rule.md');
|
|
476
|
+
});
|
|
477
|
+
});
|
|
478
|
+
describe('generateClaudeRule (scope propagation)', () => {
|
|
479
|
+
const baseRule = {
|
|
480
|
+
name: 'test-rule',
|
|
481
|
+
description: 'A test rule',
|
|
482
|
+
autoApply: true,
|
|
483
|
+
body: '# Rule body content',
|
|
484
|
+
sourcePath: '/tmp/.productbrain/rules/test-rule.md',
|
|
485
|
+
};
|
|
486
|
+
it('omits paths when scope is empty string', () => {
|
|
487
|
+
const rule = { ...baseRule, scope: '' };
|
|
488
|
+
const output = generateClaudeRule(rule);
|
|
489
|
+
expect(output).not.toContain('paths:');
|
|
490
|
+
expect(output).toContain('description: "A test rule"');
|
|
491
|
+
expect(output).toContain('# Rule body content');
|
|
492
|
+
});
|
|
493
|
+
it('omits paths when scope is undefined', () => {
|
|
494
|
+
const rule = { ...baseRule };
|
|
495
|
+
const output = generateClaudeRule(rule);
|
|
496
|
+
expect(output).not.toContain('paths:');
|
|
497
|
+
});
|
|
498
|
+
it('emits paths array when scope is set', () => {
|
|
499
|
+
const rule = { ...baseRule, scope: 'convex/**/*.ts' };
|
|
500
|
+
const output = generateClaudeRule(rule);
|
|
501
|
+
expect(output).toContain('paths:');
|
|
502
|
+
expect(output).toContain(' - "convex/**/*.ts"');
|
|
503
|
+
});
|
|
504
|
+
it('escapes quotes in description', () => {
|
|
505
|
+
const rule = { ...baseRule, description: 'Rule with "quotes" inside' };
|
|
506
|
+
const output = generateClaudeRule(rule);
|
|
507
|
+
expect(output).toContain('description: "Rule with \\"quotes\\" inside"');
|
|
508
|
+
});
|
|
509
|
+
it('replaces .productbrain paths with .claude paths in body', () => {
|
|
510
|
+
const rule = {
|
|
511
|
+
...baseRule,
|
|
512
|
+
body: 'Read `.productbrain/rules/foo.md` for details.',
|
|
513
|
+
};
|
|
514
|
+
const output = generateClaudeRule(rule);
|
|
515
|
+
expect(output).toContain('.claude/rules/foo.md');
|
|
516
|
+
expect(output).not.toContain('.productbrain/rules/foo.md');
|
|
517
|
+
});
|
|
518
|
+
it('includes source marker comment', () => {
|
|
519
|
+
const output = generateClaudeRule(baseRule);
|
|
520
|
+
expect(output).toContain('source: .productbrain/rules/test-rule.md');
|
|
521
|
+
});
|
|
522
|
+
});
|
|
523
|
+
describe('generateCodexSkillIndex (empty primary skills)', () => {
|
|
524
|
+
it('shows empty message when all skills are learnings/templates', () => {
|
|
525
|
+
const skills = [
|
|
526
|
+
{
|
|
527
|
+
name: 'retro-learnings',
|
|
528
|
+
description: 'Internal learnings companion.',
|
|
529
|
+
triggers: [],
|
|
530
|
+
body: '# Retro Learnings',
|
|
531
|
+
sourcePath: '/tmp/.productbrain/skills/retro-learnings.md',
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
name: 'LEARNINGS-TEMPLATE',
|
|
535
|
+
description: 'Template',
|
|
536
|
+
triggers: [],
|
|
537
|
+
body: '# Template',
|
|
538
|
+
sourcePath: '/tmp/.productbrain/skills/LEARNINGS-TEMPLATE.md',
|
|
539
|
+
},
|
|
540
|
+
];
|
|
541
|
+
const output = generateCodexSkillIndex(skills);
|
|
542
|
+
expect(output).toContain('No Product Brain skills are currently projected');
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
describe('filterByLevel', () => {
|
|
546
|
+
const items = [
|
|
547
|
+
{ name: 'core-item', level: 'core' },
|
|
548
|
+
{ name: 'intermediate-item', level: 'intermediate' },
|
|
549
|
+
{ name: 'expert-item', level: 'expert' },
|
|
550
|
+
{ name: 'no-level-item' },
|
|
551
|
+
];
|
|
552
|
+
it('filterByLevel("beginner") returns only level:core items + items with no level', () => {
|
|
553
|
+
const result = filterByLevel(items, 'beginner');
|
|
554
|
+
const names = result.map((i) => i.name);
|
|
555
|
+
expect(names).toContain('core-item');
|
|
556
|
+
expect(names).toContain('no-level-item');
|
|
557
|
+
expect(names).not.toContain('intermediate-item');
|
|
558
|
+
expect(names).not.toContain('expert-item');
|
|
559
|
+
expect(result).toHaveLength(2);
|
|
560
|
+
});
|
|
561
|
+
it('filterByLevel("intermediate") returns core + intermediate + no level', () => {
|
|
562
|
+
const result = filterByLevel(items, 'intermediate');
|
|
563
|
+
const names = result.map((i) => i.name);
|
|
564
|
+
expect(names).toContain('core-item');
|
|
565
|
+
expect(names).toContain('intermediate-item');
|
|
566
|
+
expect(names).toContain('no-level-item');
|
|
567
|
+
expect(names).not.toContain('expert-item');
|
|
568
|
+
expect(result).toHaveLength(3);
|
|
569
|
+
});
|
|
570
|
+
it('filterByLevel("expert") returns all items', () => {
|
|
571
|
+
const result = filterByLevel(items, 'expert');
|
|
572
|
+
expect(result).toHaveLength(4);
|
|
573
|
+
});
|
|
574
|
+
it('filterByLevel(undefined) returns all items (backward compat)', () => {
|
|
575
|
+
const result = filterByLevel(items, undefined);
|
|
576
|
+
expect(result).toHaveLength(4);
|
|
577
|
+
});
|
|
578
|
+
it('filterByLevel(null-ish) returns all items (backward compat)', () => {
|
|
579
|
+
const result = filterByLevel(items);
|
|
580
|
+
expect(result).toHaveLength(4);
|
|
581
|
+
});
|
|
582
|
+
it('unknown level throws an error', () => {
|
|
583
|
+
expect(() => filterByLevel(items, 'unknown')).toThrow('Unknown level "unknown"');
|
|
584
|
+
});
|
|
585
|
+
});
|
|
586
|
+
describe('filterByLevel — stage-gating (DEC-443)', () => {
|
|
587
|
+
const items = [
|
|
588
|
+
{ name: 'core-item', level: 'core' },
|
|
589
|
+
{ name: 'intermediate-item', level: 'intermediate' },
|
|
590
|
+
{ name: 'expert-item', level: 'expert' },
|
|
591
|
+
{ name: 'no-level-item' },
|
|
592
|
+
];
|
|
593
|
+
it('stage=blank caps at core even if requestedLevel=expert', () => {
|
|
594
|
+
const result = filterByLevel(items, 'expert', 'blank');
|
|
595
|
+
const names = result.map((i) => i.name);
|
|
596
|
+
expect(names).toContain('core-item');
|
|
597
|
+
expect(names).toContain('no-level-item');
|
|
598
|
+
expect(names).not.toContain('intermediate-item');
|
|
599
|
+
expect(names).not.toContain('expert-item');
|
|
600
|
+
expect(result).toHaveLength(2);
|
|
601
|
+
});
|
|
602
|
+
it('stage=seed caps at intermediate (core + intermediate + no-level)', () => {
|
|
603
|
+
const result = filterByLevel(items, 'expert', 'seed');
|
|
604
|
+
const names = result.map((i) => i.name);
|
|
605
|
+
expect(names).toContain('core-item');
|
|
606
|
+
expect(names).toContain('intermediate-item');
|
|
607
|
+
expect(names).toContain('no-level-item');
|
|
608
|
+
expect(names).not.toContain('expert-item');
|
|
609
|
+
expect(result).toHaveLength(3);
|
|
610
|
+
});
|
|
611
|
+
it('stage=grounded applies no cap — all items returned', () => {
|
|
612
|
+
const result = filterByLevel(items, 'expert', 'grounded');
|
|
613
|
+
expect(result).toHaveLength(4);
|
|
614
|
+
});
|
|
615
|
+
it('stage=connected applies no cap — all items returned', () => {
|
|
616
|
+
const result = filterByLevel(items, 'expert', 'connected');
|
|
617
|
+
expect(result).toHaveLength(4);
|
|
618
|
+
});
|
|
619
|
+
it('stage=undefined (no profile) — no cap, backward compat', () => {
|
|
620
|
+
const result = filterByLevel(items, 'expert', undefined);
|
|
621
|
+
expect(result).toHaveLength(4);
|
|
622
|
+
});
|
|
623
|
+
it('unknown stage — fail-open, no cap applied', () => {
|
|
624
|
+
const result = filterByLevel(items, 'expert', 'unknown-stage');
|
|
625
|
+
expect(result).toHaveLength(4);
|
|
626
|
+
});
|
|
627
|
+
it('no requestedLevel + stage=blank still caps at beginner (core + no-level only)', () => {
|
|
628
|
+
const result = filterByLevel(items, undefined, 'blank');
|
|
629
|
+
const names = result.map((i) => i.name);
|
|
630
|
+
expect(names).toContain('core-item');
|
|
631
|
+
expect(names).toContain('no-level-item');
|
|
632
|
+
expect(names).not.toContain('intermediate-item');
|
|
633
|
+
expect(names).not.toContain('expert-item');
|
|
634
|
+
expect(result).toHaveLength(2);
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
describe('evaluateConditions', () => {
|
|
638
|
+
const noProfile = null;
|
|
639
|
+
const profile = {
|
|
640
|
+
stage: 'grounded',
|
|
641
|
+
totalRelations: 10,
|
|
642
|
+
};
|
|
643
|
+
const emptyRepo = { detectedStack: [] };
|
|
644
|
+
const sveltekitRepo = { detectedStack: ['sveltekit', 'typescript'] };
|
|
645
|
+
// 1. No conditions → included
|
|
646
|
+
it('no conditions → included', () => {
|
|
647
|
+
const result = evaluateConditions({}, profile, sveltekitRepo);
|
|
648
|
+
expect(result.included).toBe(true);
|
|
649
|
+
expect(result.reasons).toEqual(['no conditions']);
|
|
650
|
+
});
|
|
651
|
+
// 2. Matching when_stack → included
|
|
652
|
+
it('matching when_stack → included', () => {
|
|
653
|
+
const result = evaluateConditions({ when_stack: 'sveltekit' }, profile, sveltekitRepo);
|
|
654
|
+
expect(result.included).toBe(true);
|
|
655
|
+
expect(result.reasons.some((r) => r.includes('matched'))).toBe(true);
|
|
656
|
+
});
|
|
657
|
+
// 3. Non-matching when_stack → excluded with reason
|
|
658
|
+
it('non-matching when_stack → excluded with reason', () => {
|
|
659
|
+
const result = evaluateConditions({ when_stack: 'nextjs' }, profile, sveltekitRepo);
|
|
660
|
+
expect(result.included).toBe(false);
|
|
661
|
+
expect(result.reasons.some((r) => r.includes('when_stack=nextjs'))).toBe(true);
|
|
662
|
+
});
|
|
663
|
+
// 4. when_stack case-insensitive matching
|
|
664
|
+
it('when_stack is case-insensitive', () => {
|
|
665
|
+
const result = evaluateConditions({ when_stack: 'SvelteKit' }, profile, { detectedStack: ['sveltekit'] });
|
|
666
|
+
expect(result.included).toBe(true);
|
|
667
|
+
});
|
|
668
|
+
// 5. when_minStage ordering: blank < seed < grounded < connected < critical
|
|
669
|
+
it('when_minStage ordering: stage below threshold → excluded', () => {
|
|
670
|
+
const seedProfile = { stage: 'seed', totalRelations: 10 };
|
|
671
|
+
const result = evaluateConditions({ when_minStage: 'grounded' }, seedProfile, emptyRepo);
|
|
672
|
+
expect(result.included).toBe(false);
|
|
673
|
+
expect(result.reasons.some((r) => r.includes('when_minStage=grounded'))).toBe(true);
|
|
674
|
+
});
|
|
675
|
+
// 6. when_minStage with stage below threshold → excluded
|
|
676
|
+
it('when_minStage blank < connected threshold → excluded', () => {
|
|
677
|
+
const blankProfile = { stage: 'blank', totalRelations: 0 };
|
|
678
|
+
const result = evaluateConditions({ when_minStage: 'connected' }, blankProfile, emptyRepo);
|
|
679
|
+
expect(result.included).toBe(false);
|
|
680
|
+
});
|
|
681
|
+
// 7. when_minStage with stage at threshold → included
|
|
682
|
+
it('when_minStage with stage exactly at threshold → included', () => {
|
|
683
|
+
const result = evaluateConditions({ when_minStage: 'grounded' }, profile, emptyRepo);
|
|
684
|
+
expect(result.included).toBe(true);
|
|
685
|
+
expect(result.reasons.some((r) => r.includes('satisfied'))).toBe(true);
|
|
686
|
+
});
|
|
687
|
+
// Also verify stages above threshold pass
|
|
688
|
+
it('when_minStage with stage above threshold → included', () => {
|
|
689
|
+
const criticalProfile = { stage: 'critical', totalRelations: 10 };
|
|
690
|
+
const result = evaluateConditions({ when_minStage: 'grounded' }, criticalProfile, emptyRepo);
|
|
691
|
+
expect(result.included).toBe(true);
|
|
692
|
+
});
|
|
693
|
+
// 8. when_minGovernance with enough relations → included
|
|
694
|
+
it('when_minGovernance with enough relations → included', () => {
|
|
695
|
+
const result = evaluateConditions({ when_minGovernance: '5' }, profile, emptyRepo);
|
|
696
|
+
expect(result.included).toBe(true);
|
|
697
|
+
expect(result.reasons.some((r) => r.includes('satisfied'))).toBe(true);
|
|
698
|
+
});
|
|
699
|
+
// 9. when_minGovernance with too few → excluded
|
|
700
|
+
it('when_minGovernance with too few relations → excluded', () => {
|
|
701
|
+
const lowRelProfile = { stage: 'grounded', totalRelations: 3 };
|
|
702
|
+
const result = evaluateConditions({ when_minGovernance: '5' }, lowRelProfile, emptyRepo);
|
|
703
|
+
expect(result.included).toBe(false);
|
|
704
|
+
expect(result.reasons.some((r) => r.includes('when_minGovernance=5'))).toBe(true);
|
|
705
|
+
});
|
|
706
|
+
// 10. Multiple conditions: all pass → included
|
|
707
|
+
it('multiple conditions: all pass → included', () => {
|
|
708
|
+
const result = evaluateConditions({ when_stack: 'sveltekit', when_minStage: 'seed', when_minGovernance: '5' }, profile, sveltekitRepo);
|
|
709
|
+
expect(result.included).toBe(true);
|
|
710
|
+
});
|
|
711
|
+
// 11. Multiple conditions: one fails → excluded (AND semantics)
|
|
712
|
+
it('multiple conditions: one fails → excluded', () => {
|
|
713
|
+
const result = evaluateConditions({ when_stack: 'sveltekit', when_minStage: 'critical' }, profile, // stage=grounded, below critical
|
|
714
|
+
sveltekitRepo);
|
|
715
|
+
expect(result.included).toBe(false);
|
|
716
|
+
expect(result.reasons.some((r) => r.includes('when_minStage=critical'))).toBe(true);
|
|
717
|
+
});
|
|
718
|
+
// 12. Null profile + when_minStage → included (fail-open)
|
|
719
|
+
it('null profile with when_minStage → fail-open (included)', () => {
|
|
720
|
+
const result = evaluateConditions({ when_minStage: 'grounded' }, noProfile, emptyRepo);
|
|
721
|
+
expect(result.included).toBe(true);
|
|
722
|
+
expect(result.reasons.some((r) => r.includes('fail-open'))).toBe(true);
|
|
723
|
+
});
|
|
724
|
+
// 13. Null profile + when_stack only → still evaluated (stack comes from repoContext)
|
|
725
|
+
it('null profile with when_stack only → still evaluated from repoContext', () => {
|
|
726
|
+
const matchResult = evaluateConditions({ when_stack: 'sveltekit' }, noProfile, sveltekitRepo);
|
|
727
|
+
expect(matchResult.included).toBe(true);
|
|
728
|
+
const noMatchResult = evaluateConditions({ when_stack: 'nextjs' }, noProfile, sveltekitRepo);
|
|
729
|
+
expect(noMatchResult.included).toBe(false);
|
|
730
|
+
});
|
|
731
|
+
});
|
|
732
|
+
describe('BET-170 acceptance criteria — integration', () => {
|
|
733
|
+
/**
|
|
734
|
+
* Mock rules cover all combinations: stack condition, stage condition,
|
|
735
|
+
* governance condition, and unconditional at core/intermediate/expert levels.
|
|
736
|
+
*/
|
|
737
|
+
const mockRules = [
|
|
738
|
+
{ name: 'deployment', level: 'core', conditions: { when_stack: 'sveltekit' } },
|
|
739
|
+
{ name: 'feature-flags', level: 'intermediate', conditions: { when_minStage: 'grounded' } },
|
|
740
|
+
{ name: 'domain-boundaries', level: 'expert', conditions: { when_minGovernance: '5' } },
|
|
741
|
+
{ name: 'code-integrity', level: 'core' }, // no conditions — always included
|
|
742
|
+
{ name: 'review-gate', level: 'intermediate' }, // no conditions
|
|
743
|
+
{ name: 'orchestrator-mode', level: 'expert' }, // no conditions
|
|
744
|
+
];
|
|
745
|
+
function applyPipeline(rules, profile, repo) {
|
|
746
|
+
const profileStage = profile?.stage;
|
|
747
|
+
// stage-gated level filter: no requestedLevel (defaults to widest), stage caps it
|
|
748
|
+
const levelFiltered = filterByLevel(rules, undefined, profileStage);
|
|
749
|
+
// condition filter
|
|
750
|
+
return levelFiltered.filter((rule) => {
|
|
751
|
+
const result = evaluateConditions(rule.conditions ?? {}, profile, repo);
|
|
752
|
+
return result.included;
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
// AC1: Fresh Python workspace (stage=blank, 0 entries) — only core items with no conditions
|
|
756
|
+
it('AC1: stage=blank, python — only core unconditional items', () => {
|
|
757
|
+
const profile = { stage: 'blank', totalEntries: 0, totalRelations: 0 };
|
|
758
|
+
const repo = { detectedStack: ['python'] };
|
|
759
|
+
const result = applyPipeline(mockRules, profile, repo);
|
|
760
|
+
const names = result.map((r) => r.name);
|
|
761
|
+
// Only code-integrity: core level, no conditions
|
|
762
|
+
// deployment: core but when_stack=sveltekit fails (python != sveltekit)
|
|
763
|
+
expect(names).toContain('code-integrity');
|
|
764
|
+
expect(names).not.toContain('deployment'); // core but sveltekit condition fails
|
|
765
|
+
expect(names).not.toContain('feature-flags'); // intermediate — capped by blank stage
|
|
766
|
+
expect(names).not.toContain('domain-boundaries'); // expert — capped by blank stage
|
|
767
|
+
expect(names).not.toContain('review-gate'); // intermediate — capped by blank stage
|
|
768
|
+
expect(names).not.toContain('orchestrator-mode'); // expert — capped by blank stage
|
|
769
|
+
expect(result).toHaveLength(1);
|
|
770
|
+
});
|
|
771
|
+
// AC2: Node/TS workspace (stage=grounded, 30 entries) — stack-matched, all levels
|
|
772
|
+
it('AC2: stage=grounded, sveltekit/typescript, 30 entries — all rules included', () => {
|
|
773
|
+
const profile = { stage: 'grounded', totalEntries: 30, totalRelations: 15 };
|
|
774
|
+
const repo = { detectedStack: ['typescript', 'sveltekit'] };
|
|
775
|
+
const result = applyPipeline(mockRules, profile, repo);
|
|
776
|
+
const names = result.map((r) => r.name);
|
|
777
|
+
// All conditions pass: sveltekit matches, grounded >= grounded, 15 >= 5
|
|
778
|
+
expect(names).toContain('deployment');
|
|
779
|
+
expect(names).toContain('feature-flags');
|
|
780
|
+
expect(names).toContain('domain-boundaries');
|
|
781
|
+
expect(names).toContain('code-integrity');
|
|
782
|
+
expect(names).toContain('review-gate');
|
|
783
|
+
expect(names).toContain('orchestrator-mode');
|
|
784
|
+
expect(result).toHaveLength(6);
|
|
785
|
+
});
|
|
786
|
+
// AC3: Mature workspace (stage=connected, 100+ entries) — all rules and skills
|
|
787
|
+
it('AC3: stage=connected, 150 entries — all rules projected without filtering', () => {
|
|
788
|
+
const profile = { stage: 'connected', totalEntries: 150, totalRelations: 80 };
|
|
789
|
+
const repo = { detectedStack: ['typescript', 'sveltekit'] };
|
|
790
|
+
const result = applyPipeline(mockRules, profile, repo);
|
|
791
|
+
expect(result).toHaveLength(6);
|
|
792
|
+
});
|
|
793
|
+
// AC4: Unknown stack — general template set, no stack-specific rules
|
|
794
|
+
it('AC4: stage=grounded, unknown stack — only non-stack-conditional rules', () => {
|
|
795
|
+
const profile = { stage: 'grounded', totalEntries: 30, totalRelations: 15 };
|
|
796
|
+
const repo = { detectedStack: [] };
|
|
797
|
+
const result = applyPipeline(mockRules, profile, repo);
|
|
798
|
+
const names = result.map((r) => r.name);
|
|
799
|
+
// deployment requires sveltekit stack — excluded
|
|
800
|
+
// all others: feature-flags (grounded ok), domain-boundaries (15 >= 5), unconditionals all pass
|
|
801
|
+
expect(names).not.toContain('deployment');
|
|
802
|
+
expect(names).toContain('feature-flags');
|
|
803
|
+
expect(names).toContain('domain-boundaries');
|
|
804
|
+
expect(names).toContain('code-integrity');
|
|
805
|
+
expect(names).toContain('review-gate');
|
|
806
|
+
expect(names).toContain('orchestrator-mode');
|
|
807
|
+
expect(result).toHaveLength(5);
|
|
808
|
+
});
|
|
809
|
+
// AC5: workspaceReadiness failure (null profile) — fail-open, all rules/skills project
|
|
810
|
+
it('AC5: null profile (readiness failure) — fail-open, profile conditions pass', () => {
|
|
811
|
+
const profile = null;
|
|
812
|
+
const repo = { detectedStack: ['typescript'] };
|
|
813
|
+
const result = applyPipeline(mockRules, profile, repo);
|
|
814
|
+
const names = result.map((r) => r.name);
|
|
815
|
+
// Null profile:
|
|
816
|
+
// - filterByLevel: no stage cap → all levels pass
|
|
817
|
+
// - evaluateConditions: when_minStage + when_minGovernance → fail-open (included)
|
|
818
|
+
// - when_stack: still evaluated against repoContext; sveltekit not in [typescript] → excluded
|
|
819
|
+
expect(names).not.toContain('deployment'); // when_stack=sveltekit, typescript doesn't match
|
|
820
|
+
expect(names).toContain('feature-flags'); // fail-open (profile null)
|
|
821
|
+
expect(names).toContain('domain-boundaries'); // fail-open (profile null)
|
|
822
|
+
expect(names).toContain('code-integrity');
|
|
823
|
+
expect(names).toContain('review-gate');
|
|
824
|
+
expect(names).toContain('orchestrator-mode');
|
|
825
|
+
expect(result).toHaveLength(5);
|
|
826
|
+
});
|
|
827
|
+
// Scale test: 0/5/50/500 entries — filtering correctness at different entry counts
|
|
828
|
+
it('scale test: filtering correctness at 0/5/50/500 totalEntries', () => {
|
|
829
|
+
const repo = { detectedStack: ['sveltekit'] };
|
|
830
|
+
// 0 entries: blank stage, low relations
|
|
831
|
+
// deployment: core level (passes stage cap), sveltekit matches → included
|
|
832
|
+
// code-integrity: core level, no conditions → included
|
|
833
|
+
// everything else: capped by blank stage (intermediate/expert excluded)
|
|
834
|
+
const result0 = applyPipeline(mockRules, { stage: 'blank', totalEntries: 0, totalRelations: 0 }, repo);
|
|
835
|
+
const names0 = result0.map((r) => r.name);
|
|
836
|
+
expect(names0).toContain('deployment');
|
|
837
|
+
expect(names0).toContain('code-integrity');
|
|
838
|
+
expect(names0).not.toContain('feature-flags'); // intermediate — capped
|
|
839
|
+
expect(names0).not.toContain('domain-boundaries'); // expert — capped
|
|
840
|
+
expect(names0).not.toContain('review-gate'); // intermediate — capped
|
|
841
|
+
expect(names0).not.toContain('orchestrator-mode'); // expert — capped
|
|
842
|
+
expect(result0).toHaveLength(2);
|
|
843
|
+
// 5 entries: seed stage, 2 relations (below governance threshold)
|
|
844
|
+
const result5 = applyPipeline(mockRules, { stage: 'seed', totalEntries: 5, totalRelations: 2 }, repo);
|
|
845
|
+
const names5 = result5.map((r) => r.name);
|
|
846
|
+
// seed caps at intermediate; domain-boundaries (expert) + orchestrator-mode (expert) excluded
|
|
847
|
+
// domain-boundaries also fails governance (2 < 5)
|
|
848
|
+
// feature-flags: intermediate ok, but when_minStage=grounded fails for seed → excluded
|
|
849
|
+
// deployment: core ok, sveltekit matches → included
|
|
850
|
+
expect(names5).toContain('deployment');
|
|
851
|
+
expect(names5).toContain('code-integrity');
|
|
852
|
+
expect(names5).toContain('review-gate');
|
|
853
|
+
expect(names5).not.toContain('domain-boundaries');
|
|
854
|
+
expect(names5).not.toContain('orchestrator-mode');
|
|
855
|
+
expect(names5).not.toContain('feature-flags');
|
|
856
|
+
// 50 entries: grounded stage, 20 relations
|
|
857
|
+
const result50 = applyPipeline(mockRules, { stage: 'grounded', totalEntries: 50, totalRelations: 20 }, repo);
|
|
858
|
+
expect(result50).toHaveLength(6);
|
|
859
|
+
// 500 entries: connected stage, 200 relations
|
|
860
|
+
const result500 = applyPipeline(mockRules, { stage: 'connected', totalEntries: 500, totalRelations: 200 }, repo);
|
|
861
|
+
expect(result500).toHaveLength(6);
|
|
862
|
+
});
|
|
863
|
+
});
|
|
864
|
+
describe('readCanonicalRules — backward compat with when_* frontmatter', () => {
|
|
865
|
+
beforeEach(() => {
|
|
866
|
+
Object.keys(vfs).forEach((k) => delete vfs[k]);
|
|
867
|
+
});
|
|
868
|
+
it('parses when_stack from frontmatter into conditions', () => {
|
|
869
|
+
vfs[join(PB_DIR, 'rules', 'deploy.md')] = `---
|
|
870
|
+
name: deploy
|
|
871
|
+
description: Deploy rule
|
|
872
|
+
scope: ""
|
|
873
|
+
autoApply: true
|
|
874
|
+
when_stack: sveltekit
|
|
875
|
+
---
|
|
876
|
+
|
|
877
|
+
# Deploy body
|
|
878
|
+
`;
|
|
879
|
+
const rules = readCanonicalRules(PB_DIR);
|
|
880
|
+
expect(rules).toHaveLength(1);
|
|
881
|
+
expect(rules[0].conditions?.when_stack).toBe('sveltekit');
|
|
882
|
+
});
|
|
883
|
+
it('parses when_minStage from frontmatter into conditions', () => {
|
|
884
|
+
vfs[join(PB_DIR, 'rules', 'flags.md')] = `---
|
|
885
|
+
name: flags
|
|
886
|
+
description: Feature flags rule
|
|
887
|
+
scope: ""
|
|
888
|
+
autoApply: false
|
|
889
|
+
when_minStage: grounded
|
|
890
|
+
---
|
|
891
|
+
|
|
892
|
+
# Flags body
|
|
893
|
+
`;
|
|
894
|
+
const rules = readCanonicalRules(PB_DIR);
|
|
895
|
+
expect(rules).toHaveLength(1);
|
|
896
|
+
expect(rules[0].conditions?.when_minStage).toBe('grounded');
|
|
897
|
+
});
|
|
898
|
+
it('parses when_minGovernance from frontmatter into conditions', () => {
|
|
899
|
+
vfs[join(PB_DIR, 'rules', 'domains.md')] = `---
|
|
900
|
+
name: domains
|
|
901
|
+
description: Domain boundaries rule
|
|
902
|
+
scope: ""
|
|
903
|
+
autoApply: true
|
|
904
|
+
when_minGovernance: 5
|
|
905
|
+
---
|
|
906
|
+
|
|
907
|
+
# Domains body
|
|
908
|
+
`;
|
|
909
|
+
const rules = readCanonicalRules(PB_DIR);
|
|
910
|
+
expect(rules).toHaveLength(1);
|
|
911
|
+
expect(rules[0].conditions?.when_minGovernance).toBe('5');
|
|
912
|
+
});
|
|
913
|
+
it('returns undefined conditions when no when_* keys are present (backward compat)', () => {
|
|
914
|
+
vfs[join(PB_DIR, 'rules', 'plain.md')] = `---
|
|
915
|
+
name: plain
|
|
916
|
+
description: Plain rule
|
|
917
|
+
scope: ""
|
|
918
|
+
autoApply: true
|
|
919
|
+
---
|
|
920
|
+
|
|
921
|
+
# Plain body
|
|
922
|
+
`;
|
|
923
|
+
const rules = readCanonicalRules(PB_DIR);
|
|
924
|
+
expect(rules).toHaveLength(1);
|
|
925
|
+
expect(rules[0].conditions).toBeUndefined();
|
|
926
|
+
});
|
|
927
|
+
});
|
|
928
|
+
describe('readCanonicalRules → generateCopilotInstructionFiles (DEC-1343 integration)', () => {
|
|
929
|
+
beforeEach(() => {
|
|
930
|
+
Object.keys(vfs).forEach((k) => delete vfs[k]);
|
|
931
|
+
});
|
|
932
|
+
it('parses applyTo and projects a path-scoped Copilot instruction file end to end', () => {
|
|
933
|
+
vfs[join(PB_DIR, 'rules', 'security-boundaries.md')] = `---
|
|
934
|
+
name: security-boundaries
|
|
935
|
+
description: Security boundaries
|
|
936
|
+
applyTo: "convex/**/*.ts"
|
|
937
|
+
level: core
|
|
938
|
+
---
|
|
939
|
+
|
|
940
|
+
# Security Boundaries
|
|
941
|
+
|
|
942
|
+
Scope every workspace read by workspaceId at the index level. Fail closed.
|
|
943
|
+
`;
|
|
944
|
+
const rules = readCanonicalRules(PB_DIR);
|
|
945
|
+
expect(rules).toHaveLength(1);
|
|
946
|
+
expect(rules[0].applyTo).toBe('convex/**/*.ts');
|
|
947
|
+
const files = generateCopilotInstructionFiles(rules.map((r) => ({ name: r.name, body: r.body, applyTo: r.applyTo, sourcePath: r.sourcePath })), '2026-06-22T00:00:00.000Z');
|
|
948
|
+
expect(files).toHaveLength(1);
|
|
949
|
+
expect(files[0].relativePath).toBe('.github/instructions/security-boundaries.instructions.md');
|
|
950
|
+
expect(files[0].content).toContain('applyTo: "convex/**/*.ts"');
|
|
951
|
+
expect(files[0].content).toContain('Scope every workspace read by workspaceId at the index level.');
|
|
952
|
+
expect(files[0].content).toContain(MARKER);
|
|
953
|
+
});
|
|
954
|
+
it('leaves a rule without applyTo out of the instruction-file set (repo-wide only)', () => {
|
|
955
|
+
vfs[join(PB_DIR, 'rules', 'git-workflow.md')] = `---
|
|
956
|
+
name: git-workflow
|
|
957
|
+
description: Git workflow
|
|
958
|
+
level: core
|
|
959
|
+
---
|
|
960
|
+
|
|
961
|
+
# Git Workflow
|
|
962
|
+
|
|
963
|
+
One logical change per PR.
|
|
964
|
+
`;
|
|
965
|
+
const rules = readCanonicalRules(PB_DIR);
|
|
966
|
+
const files = generateCopilotInstructionFiles(rules.map((r) => ({ name: r.name, body: r.body, applyTo: r.applyTo, sourcePath: r.sourcePath })), '2026-06-22T00:00:00.000Z');
|
|
967
|
+
expect(files).toHaveLength(0);
|
|
968
|
+
});
|
|
969
|
+
});
|
|
970
|
+
//# sourceMappingURL=portable-knowledge.test.js.map
|