@productbrain/cli 0.1.0-beta.67 → 0.1.0-beta.6713
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 +8 -2
- package/dist/__tests__/adapters.test.js +60 -12
- package/dist/__tests__/adapters.test.js.map +1 -1
- 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.js +130 -72
- package/dist/__tests__/audit.test.js.map +1 -1
- package/dist/__tests__/batch-transformations.test.js +2 -26
- package/dist/__tests__/batch-transformations.test.js.map +1 -1
- 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-spine-floor.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.js +45 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.js.map +1 -0
- package/dist/__tests__/capture.test.js +1304 -105
- package/dist/__tests__/capture.test.js.map +1 -1
- package/dist/__tests__/client-binding-guard.test.d.ts +2 -0
- package/dist/__tests__/client-binding-guard.test.d.ts.map +1 -0
- package/dist/__tests__/client-binding-guard.test.js +84 -0
- package/dist/__tests__/client-binding-guard.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 +106 -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 +81 -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 +1 -1
- package/dist/__tests__/config.test.js +845 -18
- package/dist/__tests__/config.test.js.map +1 -1
- package/dist/__tests__/constants.test.js +6 -1
- package/dist/__tests__/constants.test.js.map +1 -1
- package/dist/__tests__/constellation.test.js +40 -28
- package/dist/__tests__/constellation.test.js.map +1 -1
- package/dist/__tests__/context-strategy.test.js +8 -8
- package/dist/__tests__/context-strategy.test.js.map +1 -1
- 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 +110 -0
- package/dist/__tests__/entry-formatter.test.js.map +1 -0
- package/dist/__tests__/entry-preflight.test.d.ts +2 -0
- package/dist/__tests__/entry-preflight.test.d.ts.map +1 -0
- package/dist/__tests__/entry-preflight.test.js +58 -0
- package/dist/__tests__/entry-preflight.test.js.map +1 -0
- package/dist/__tests__/entryAccept-batch.test.d.ts +2 -0
- package/dist/__tests__/entryAccept-batch.test.d.ts.map +1 -0
- package/dist/__tests__/entryAccept-batch.test.js +305 -0
- package/dist/__tests__/entryAccept-batch.test.js.map +1 -0
- package/dist/__tests__/entryAccept.test.d.ts +2 -0
- package/dist/__tests__/entryAccept.test.d.ts.map +1 -0
- package/dist/__tests__/entryAccept.test.js +433 -0
- package/dist/__tests__/entryAccept.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__/entryOwn.test.d.ts +2 -0
- package/dist/__tests__/entryOwn.test.d.ts.map +1 -0
- package/dist/__tests__/entryOwn.test.js +50 -0
- package/dist/__tests__/entryOwn.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.js +30 -0
- package/dist/__tests__/errors.test.js.map +1 -1
- package/dist/__tests__/fields.test.js +20 -20
- package/dist/__tests__/fields.test.js.map +1 -1
- 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__/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 +422 -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 +82 -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 +111 -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 +1092 -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 +485 -0
- package/dist/__tests__/handshake.e2e.test.js.map +1 -0
- package/dist/__tests__/handshake.test.js +962 -4
- package/dist/__tests__/handshake.test.js.map +1 -1
- 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 +37 -28
- package/dist/__tests__/ingest.test.js.map +1 -1
- package/dist/__tests__/init.test.js +51 -14
- package/dist/__tests__/init.test.js.map +1 -1
- 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__/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__/migrate-setup-session-refusal.test.d.ts +2 -0
- package/dist/__tests__/migrate-setup-session-refusal.test.d.ts.map +1 -0
- package/dist/__tests__/migrate-setup-session-refusal.test.js +65 -0
- package/dist/__tests__/migrate-setup-session-refusal.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.js +4 -4
- package/dist/__tests__/onboarding-path-b.test.js.map +1 -1
- package/dist/__tests__/orient.test.js +491 -14
- package/dist/__tests__/orient.test.js.map +1 -1
- 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.js +613 -5
- package/dist/__tests__/profiles.test.js.map +1 -1
- 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.js +19 -19
- package/dist/__tests__/proposals.test.js.map +1 -1
- 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__/read-target-notice.test.d.ts +2 -0
- package/dist/__tests__/read-target-notice.test.d.ts.map +1 -0
- package/dist/__tests__/read-target-notice.test.js +129 -0
- package/dist/__tests__/read-target-notice.test.js.map +1 -0
- package/dist/__tests__/relate.test.js +260 -16
- package/dist/__tests__/relate.test.js.map +1 -1
- package/dist/__tests__/repo-detect.test.js +9 -14
- package/dist/__tests__/repo-detect.test.js.map +1 -1
- 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 +328 -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.js +59 -44
- package/dist/__tests__/runner.test.js.map +1 -1
- package/dist/__tests__/session-binding-refusal-tenant.test.d.ts +2 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.d.ts.map +1 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.js +112 -0
- package/dist/__tests__/session-binding-refusal-tenant.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 +215 -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 +107 -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 +191 -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 +267 -0
- package/dist/__tests__/session-switch.test.js.map +1 -0
- package/dist/__tests__/session-touch.test.js +16 -11
- package/dist/__tests__/session-touch.test.js.map +1 -1
- package/dist/__tests__/session.test.js +2 -2
- package/dist/__tests__/session.test.js.map +1 -1
- package/dist/__tests__/sessionBinding.test.d.ts +2 -0
- package/dist/__tests__/sessionBinding.test.d.ts.map +1 -0
- package/dist/__tests__/sessionBinding.test.js +118 -0
- package/dist/__tests__/sessionBinding.test.js.map +1 -0
- package/dist/__tests__/sessionByIdLookup.test.d.ts +2 -0
- package/dist/__tests__/sessionByIdLookup.test.d.ts.map +1 -0
- package/dist/__tests__/sessionByIdLookup.test.js +63 -0
- package/dist/__tests__/sessionByIdLookup.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__/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.js +57 -3
- package/dist/__tests__/strip.test.js.map +1 -1
- 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__/tenant-notice-write-path.test.d.ts +2 -0
- package/dist/__tests__/tenant-notice-write-path.test.d.ts.map +1 -0
- package/dist/__tests__/tenant-notice-write-path.test.js +169 -0
- package/dist/__tests__/tenant-notice-write-path.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.js +464 -26
- package/dist/__tests__/update.test.js.map +1 -1
- 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.js +52 -32
- package/dist/__tests__/workspace.test.js.map +1 -1
- 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 +571 -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.map +1 -1
- package/dist/commands/accept.js +5 -5
- package/dist/commands/accept.js.map +1 -1
- package/dist/commands/admin/cockpit.d.ts +6 -14
- package/dist/commands/admin/cockpit.d.ts.map +1 -1
- package/dist/commands/admin/cockpit.js +222 -13
- package/dist/commands/admin/cockpit.js.map +1 -1
- package/dist/commands/admin/index.d.ts +49 -0
- package/dist/commands/admin/index.d.ts.map +1 -1
- package/dist/commands/admin/index.js +147 -29
- package/dist/commands/admin/index.js.map +1 -1
- 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 +84 -0
- package/dist/commands/admin/index.test.js.map +1 -0
- package/dist/commands/admin/inspect.d.ts +9 -0
- package/dist/commands/admin/inspect.d.ts.map +1 -1
- package/dist/commands/admin/inspect.js +20 -1
- package/dist/commands/admin/inspect.js.map +1 -1
- package/dist/commands/admin/inspect.test.js +20 -1
- package/dist/commands/admin/inspect.test.js.map +1 -1
- 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 +262 -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 +171 -0
- package/dist/commands/admin/manage.test.js.map +1 -0
- package/dist/commands/admin/probe.d.ts +75 -0
- package/dist/commands/admin/probe.d.ts.map +1 -0
- package/dist/commands/admin/probe.js +224 -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 +193 -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 +46 -3
- package/dist/commands/admin/seed.d.ts.map +1 -1
- package/dist/commands/admin/seed.js +500 -83
- package/dist/commands/admin/seed.js.map +1 -1
- package/dist/commands/admin/seed.test.d.ts +5 -0
- package/dist/commands/admin/seed.test.d.ts.map +1 -1
- package/dist/commands/admin/seed.test.js +90 -8
- package/dist/commands/admin/seed.test.js.map +1 -1
- 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 +144 -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 +92 -0
- package/dist/commands/admin/seedRegistryEntries.test.js.map +1 -0
- package/dist/commands/admin/seedRowType.d.ts +22 -0
- package/dist/commands/admin/seedRowType.d.ts.map +1 -0
- package/dist/commands/admin/seedRowType.js +2 -0
- package/dist/commands/admin/seedRowType.js.map +1 -0
- package/dist/commands/admin/seedStatusColor.d.ts +9 -0
- package/dist/commands/admin/seedStatusColor.d.ts.map +1 -0
- package/dist/commands/admin/seedStatusColor.js +18 -0
- package/dist/commands/admin/seedStatusColor.js.map +1 -0
- package/dist/commands/admin/seedStatusColor.test.d.ts +2 -0
- package/dist/commands/admin/seedStatusColor.test.d.ts.map +1 -0
- package/dist/commands/admin/seedStatusColor.test.js +25 -0
- package/dist/commands/admin/seedStatusColor.test.js.map +1 -0
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +53 -7
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/brief.d.ts.map +1 -1
- package/dist/commands/brief.js +27 -5
- package/dist/commands/brief.js.map +1 -1
- package/dist/commands/capture.d.ts +15 -8
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +259 -240
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/chain-walk.d.ts.map +1 -1
- package/dist/commands/chain-walk.js +2 -2
- package/dist/commands/chain-walk.js.map +1 -1
- package/dist/commands/changes.d.ts.map +1 -1
- package/dist/commands/changes.js +2 -2
- package/dist/commands/changes.js.map +1 -1
- package/dist/commands/codex-prep.d.ts +12 -1
- package/dist/commands/codex-prep.d.ts.map +1 -1
- package/dist/commands/codex-prep.js +19 -85
- package/dist/commands/codex-prep.js.map +1 -1
- package/dist/commands/collections.d.ts.map +1 -1
- package/dist/commands/collections.js +5 -5
- package/dist/commands/collections.js.map +1 -1
- 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 +57 -0
- package/dist/commands/connect-context.d.ts.map +1 -0
- package/dist/commands/connect-context.js +93 -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 +187 -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.js +58 -35
- package/dist/commands/connect-integration.test.js.map +1 -1
- 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 +143 -0
- package/dist/commands/connect-screens.js.map +1 -0
- package/dist/commands/connect.d.ts +27 -6
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/connect.js +252 -115
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/connect.test.js +348 -7
- package/dist/commands/connect.test.js.map +1 -1
- package/dist/commands/constellation.d.ts.map +1 -1
- package/dist/commands/constellation.js +2 -2
- package/dist/commands/constellation.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -2
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/cross-cut.d.ts.map +1 -1
- package/dist/commands/cross-cut.js +2 -2
- package/dist/commands/cross-cut.js.map +1 -1
- 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.map +1 -1
- package/dist/commands/doctor.js +175 -40
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/doctor.test.js +353 -7
- package/dist/commands/doctor.test.js.map +1 -1
- package/dist/commands/entryAccept.d.ts +24 -0
- package/dist/commands/entryAccept.d.ts.map +1 -0
- package/dist/commands/entryAccept.js +282 -0
- package/dist/commands/entryAccept.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/entryOwn.d.ts +5 -0
- package/dist/commands/entryOwn.d.ts.map +1 -0
- package/dist/commands/entryOwn.js +17 -0
- package/dist/commands/entryOwn.js.map +1 -0
- package/dist/commands/entryPreflight.d.ts +8 -0
- package/dist/commands/entryPreflight.d.ts.map +1 -0
- package/dist/commands/entryPreflight.js +48 -0
- package/dist/commands/entryPreflight.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.map +1 -1
- package/dist/commands/fields.js +3 -3
- package/dist/commands/fields.js.map +1 -1
- 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.js +3 -3
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/handshake.d.ts +94 -7
- package/dist/commands/handshake.d.ts.map +1 -1
- package/dist/commands/handshake.js +1586 -104
- package/dist/commands/handshake.js.map +1 -1
- package/dist/commands/handshakeCursorSkillCleanup.d.ts +36 -0
- package/dist/commands/handshakeCursorSkillCleanup.d.ts.map +1 -0
- package/dist/commands/handshakeCursorSkillCleanup.js +110 -0
- package/dist/commands/handshakeCursorSkillCleanup.js.map +1 -0
- package/dist/commands/handshakeDriftClassification.d.ts +33 -0
- package/dist/commands/handshakeDriftClassification.d.ts.map +1 -0
- package/dist/commands/handshakeDriftClassification.js +62 -0
- package/dist/commands/handshakeDriftClassification.js.map +1 -0
- package/dist/commands/history.d.ts +30 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +62 -0
- package/dist/commands/history.js.map +1 -0
- package/dist/commands/history.test.d.ts +2 -0
- package/dist/commands/history.test.d.ts.map +1 -0
- package/dist/commands/history.test.js +106 -0
- package/dist/commands/history.test.js.map +1 -0
- package/dist/commands/ingest.d.ts.map +1 -1
- package/dist/commands/ingest.js +15 -6
- package/dist/commands/ingest.js.map +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +20 -17
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/method.d.ts +97 -0
- package/dist/commands/method.d.ts.map +1 -0
- package/dist/commands/method.js +773 -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 +162 -0
- package/dist/commands/migrate-setup.js.map +1 -0
- package/dist/commands/organisation.d.ts +17 -0
- package/dist/commands/organisation.d.ts.map +1 -0
- package/dist/commands/organisation.js +201 -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 +204 -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 +75 -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 +72 -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 +68 -0
- package/dist/commands/organisationWrite.js.map +1 -0
- package/dist/commands/orient.d.ts +113 -4
- package/dist/commands/orient.d.ts.map +1 -1
- package/dist/commands/orient.js +226 -13
- package/dist/commands/orient.js.map +1 -1
- package/dist/commands/outcome.d.ts +92 -0
- package/dist/commands/outcome.d.ts.map +1 -0
- package/dist/commands/outcome.js +203 -0
- package/dist/commands/outcome.js.map +1 -0
- package/dist/commands/outcome.test.d.ts +2 -0
- package/dist/commands/outcome.test.d.ts.map +1 -0
- package/dist/commands/outcome.test.js +308 -0
- package/dist/commands/outcome.test.js.map +1 -0
- package/dist/commands/profile.d.ts +34 -2
- package/dist/commands/profile.d.ts.map +1 -1
- package/dist/commands/profile.js +294 -41
- package/dist/commands/profile.js.map +1 -1
- 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.map +1 -1
- package/dist/commands/proposals.js +2 -2
- package/dist/commands/proposals.js.map +1 -1
- 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 +34 -0
- package/dist/commands/questions.d.ts.map +1 -0
- package/dist/commands/questions.js +318 -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 +186 -0
- package/dist/commands/questions.test.js.map +1 -0
- package/dist/commands/reject.d.ts.map +1 -1
- package/dist/commands/reject.js +5 -4
- package/dist/commands/reject.js.map +1 -1
- package/dist/commands/relate.d.ts +1 -0
- package/dist/commands/relate.d.ts.map +1 -1
- package/dist/commands/relate.js +104 -5
- package/dist/commands/relate.js.map +1 -1
- 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/role.d.ts +48 -0
- package/dist/commands/role.d.ts.map +1 -0
- package/dist/commands/role.js +122 -0
- package/dist/commands/role.js.map +1 -0
- package/dist/commands/role.test.d.ts +2 -0
- package/dist/commands/role.test.d.ts.map +1 -0
- package/dist/commands/role.test.js +173 -0
- package/dist/commands/role.test.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.map +1 -1
- package/dist/commands/search.js +2 -2
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/session.d.ts +60 -7
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +470 -51
- package/dist/commands/session.js.map +1 -1
- 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 +179 -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 +17 -9
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +53 -152
- package/dist/commands/setup.js.map +1 -1
- 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 +20 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +138 -37
- package/dist/commands/update.js.map +1 -1
- 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.map +1 -1
- package/dist/commands/verify.js +9 -3
- package/dist/commands/verify.js.map +1 -1
- 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 +20 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +126 -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 +130 -0
- package/dist/commands/whoami.test.js.map +1 -0
- package/dist/commands/workspace.d.ts +59 -2
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +27 -6
- package/dist/commands/workspace.js.map +1 -1
- 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 +192 -0
- package/dist/formatters/__tests__/session.test.js.map +1 -0
- package/dist/formatters/audit.d.ts +6 -0
- package/dist/formatters/audit.d.ts.map +1 -1
- package/dist/formatters/audit.js +1 -1
- package/dist/formatters/audit.js.map +1 -1
- package/dist/formatters/brief.d.ts +6 -10
- package/dist/formatters/brief.d.ts.map +1 -1
- package/dist/formatters/brief.js +14 -3
- package/dist/formatters/brief.js.map +1 -1
- package/dist/formatters/brief.test.d.ts +2 -0
- package/dist/formatters/brief.test.d.ts.map +1 -0
- package/dist/formatters/brief.test.js +21 -0
- package/dist/formatters/brief.test.js.map +1 -0
- package/dist/formatters/capture.d.ts +13 -0
- package/dist/formatters/capture.d.ts.map +1 -1
- package/dist/formatters/capture.js +20 -1
- package/dist/formatters/capture.js.map +1 -1
- 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/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/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/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 +54 -0
- package/dist/formatters/entry.d.ts.map +1 -1
- package/dist/formatters/entry.js +93 -9
- package/dist/formatters/entry.js.map +1 -1
- package/dist/formatters/entryAccept.d.ts +79 -0
- package/dist/formatters/entryAccept.d.ts.map +1 -0
- package/dist/formatters/entryAccept.js +80 -0
- package/dist/formatters/entryAccept.js.map +1 -0
- 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/handshake.d.ts +61 -0
- package/dist/formatters/handshake.d.ts.map +1 -1
- package/dist/formatters/handshake.js +160 -3
- package/dist/formatters/handshake.js.map +1 -1
- 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 +221 -10
- package/dist/formatters/orient.d.ts.map +1 -1
- package/dist/formatters/orient.js +253 -37
- 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 +82 -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 +77 -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 +38 -0
- package/dist/formatters/orientDegradation.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.js +50 -0
- package/dist/formatters/orientDegradation.js.map +1 -0
- package/dist/formatters/orientDegradation.test.d.ts +2 -0
- package/dist/formatters/orientDegradation.test.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.test.js +28 -0
- package/dist/formatters/orientDegradation.test.js.map +1 -0
- package/dist/formatters/orientDirection.d.ts +67 -0
- package/dist/formatters/orientDirection.d.ts.map +1 -0
- package/dist/formatters/orientDirection.js +82 -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 +171 -0
- package/dist/formatters/orientDirection.test.js.map +1 -0
- package/dist/formatters/orientRetrievalMiss.d.ts +22 -0
- package/dist/formatters/orientRetrievalMiss.d.ts.map +1 -0
- package/dist/formatters/orientRetrievalMiss.js +17 -0
- package/dist/formatters/orientRetrievalMiss.js.map +1 -0
- package/dist/formatters/proposals.js +2 -2
- package/dist/formatters/proposals.js.map +1 -1
- package/dist/formatters/questions.d.ts +100 -0
- package/dist/formatters/questions.d.ts.map +1 -0
- package/dist/formatters/questions.js +163 -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 +211 -0
- package/dist/formatters/questions.test.js.map +1 -0
- package/dist/formatters/relate.d.ts +14 -1
- package/dist/formatters/relate.d.ts.map +1 -1
- package/dist/formatters/relate.js +12 -3
- package/dist/formatters/relate.js.map +1 -1
- 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.map +1 -1
- package/dist/formatters/search.js +17 -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 +121 -5
- package/dist/formatters/session.d.ts.map +1 -1
- package/dist/formatters/session.js +309 -12
- package/dist/formatters/session.js.map +1 -1
- 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 +14 -0
- package/dist/formatters/spineCheck.d.ts.map +1 -0
- package/dist/formatters/spineCheck.js +113 -0
- package/dist/formatters/spineCheck.js.map +1 -0
- package/dist/formatters/spineCheck.test.d.ts +2 -0
- package/dist/formatters/spineCheck.test.d.ts.map +1 -0
- package/dist/formatters/spineCheck.test.js +76 -0
- package/dist/formatters/spineCheck.test.js.map +1 -0
- package/dist/formatters/update.d.ts +23 -0
- package/dist/formatters/update.d.ts.map +1 -1
- package/dist/formatters/update.js +46 -6
- package/dist/formatters/update.js.map +1 -1
- package/dist/formatters/update.test.d.ts +2 -0
- package/dist/formatters/update.test.d.ts.map +1 -0
- package/dist/formatters/update.test.js +103 -0
- package/dist/formatters/update.test.js.map +1 -0
- package/dist/formatters/verify.d.ts +12 -4
- package/dist/formatters/verify.d.ts.map +1 -1
- package/dist/formatters/verify.js +20 -2
- package/dist/formatters/verify.js.map +1 -1
- 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/organisationalAuthorityRefusalCodes.generated.d.ts +12 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.generated.d.ts.map +1 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.generated.js +11 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.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 +311 -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 +33 -2
- package/dist/generators/adapters.d.ts.map +1 -1
- package/dist/generators/adapters.js +68 -23
- package/dist/generators/adapters.js.map +1 -1
- package/dist/generators/adapters.test.js +0 -2
- package/dist/generators/adapters.test.js.map +1 -1
- package/dist/generators/archetypes.d.ts.map +1 -1
- package/dist/generators/archetypes.js +46 -9
- package/dist/generators/archetypes.js.map +1 -1
- package/dist/generators/archetypes.test.js +35 -0
- package/dist/generators/archetypes.test.js.map +1 -1
- 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/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 +67 -14
- package/dist/generators/chain-classifier.d.ts.map +1 -1
- package/dist/generators/chain-classifier.js +46 -174
- package/dist/generators/chain-classifier.js.map +1 -1
- package/dist/generators/chain-rules.d.ts +3 -3
- package/dist/generators/chain-rules.d.ts.map +1 -1
- package/dist/generators/chain-rules.js +118 -6
- package/dist/generators/chain-rules.js.map +1 -1
- package/dist/generators/chain-rules.test.js +273 -4
- package/dist/generators/chain-rules.test.js.map +1 -1
- package/dist/generators/context-md.js +7 -7
- package/dist/generators/context-md.js.map +1 -1
- 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/noProjectionAssets.d.ts +15 -0
- package/dist/generators/noProjectionAssets.d.ts.map +1 -0
- package/dist/generators/noProjectionAssets.js +6 -0
- package/dist/generators/noProjectionAssets.js.map +1 -0
- package/dist/generators/portable-knowledge.d.ts +24 -12
- package/dist/generators/portable-knowledge.d.ts.map +1 -1
- package/dist/generators/portable-knowledge.js +97 -57
- package/dist/generators/portable-knowledge.js.map +1 -1
- package/dist/generators/portable-knowledge.test.js +46 -81
- package/dist/generators/portable-knowledge.test.js.map +1 -1
- package/dist/generators/region-projections.d.ts +17 -0
- package/dist/generators/region-projections.d.ts.map +1 -0
- package/dist/generators/region-projections.js +48 -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 +1 -2
- package/dist/generators/surface-profiles.d.ts.map +1 -1
- package/dist/generators/surface-profiles.js.map +1 -1
- package/dist/handleCliError.d.ts +2 -0
- package/dist/handleCliError.d.ts.map +1 -0
- package/dist/handleCliError.js +56 -0
- package/dist/handleCliError.js.map +1 -0
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +320 -240
- 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.map +1 -1
- package/dist/lib/activation.js +8 -4
- package/dist/lib/activation.js.map +1 -1
- package/dist/lib/activation.test.js +6 -6
- package/dist/lib/activation.test.js.map +1 -1
- 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 +43 -0
- package/dist/lib/captureGrounding.d.ts.map +1 -0
- package/dist/lib/captureGrounding.js +99 -0
- package/dist/lib/captureGrounding.js.map +1 -0
- package/dist/lib/captureGrounding.test.d.ts +2 -0
- package/dist/lib/captureGrounding.test.d.ts.map +1 -0
- package/dist/lib/captureGrounding.test.js +116 -0
- package/dist/lib/captureGrounding.test.js.map +1 -0
- package/dist/lib/captureLink.d.ts +26 -0
- package/dist/lib/captureLink.d.ts.map +1 -0
- package/dist/lib/captureLink.js +96 -0
- package/dist/lib/captureLink.js.map +1 -0
- package/dist/lib/captureVersion.d.ts +38 -0
- package/dist/lib/captureVersion.d.ts.map +1 -0
- package/dist/lib/captureVersion.js +73 -0
- package/dist/lib/captureVersion.js.map +1 -0
- package/dist/lib/client.d.ts +48 -21
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +237 -78
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/collectionRegistry.d.ts +80 -0
- package/dist/lib/collectionRegistry.d.ts.map +1 -0
- package/dist/lib/collectionRegistry.js +170 -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 +102 -54
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +252 -156
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/configResult.d.ts +103 -0
- package/dist/lib/configResult.d.ts.map +1 -0
- package/dist/lib/configResult.js +180 -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 +5 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +8 -1
- package/dist/lib/constants.js.map +1 -1
- 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.test.js +19 -0
- package/dist/lib/deployment.test.js.map +1 -1
- package/dist/lib/envKeySnapshot.d.ts +10 -0
- package/dist/lib/envKeySnapshot.d.ts.map +1 -0
- package/dist/lib/envKeySnapshot.js +30 -0
- package/dist/lib/envKeySnapshot.js.map +1 -0
- package/dist/lib/errors.d.ts +70 -0
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +70 -0
- package/dist/lib/errors.js.map +1 -1
- 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.js +1 -1
- package/dist/lib/glossary.js.map +1 -1
- 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 +84 -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 +86 -0
- package/dist/lib/localBinding.d.ts.map +1 -0
- package/dist/lib/localBinding.js +173 -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.map +1 -1
- package/dist/lib/onboarding-path-b.js +42 -13
- package/dist/lib/onboarding-path-b.js.map +1 -1
- package/dist/lib/onboarding-shared.d.ts +4 -4
- package/dist/lib/onboarding-shared.d.ts.map +1 -1
- package/dist/lib/onboarding-shared.js +7 -22
- package/dist/lib/onboarding-shared.js.map +1 -1
- package/dist/lib/onboarding.d.ts.map +1 -1
- package/dist/lib/onboarding.js +12 -4
- package/dist/lib/onboarding.js.map +1 -1
- package/dist/lib/ownerLine.d.ts +62 -0
- package/dist/lib/ownerLine.d.ts.map +1 -0
- package/dist/lib/ownerLine.js +42 -0
- package/dist/lib/ownerLine.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 +53 -5
- package/dist/lib/profiles.d.ts.map +1 -1
- package/dist/lib/profiles.js +77 -23
- package/dist/lib/profiles.js.map +1 -1
- 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/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/readinessNotices.d.ts +15 -0
- package/dist/lib/readinessNotices.d.ts.map +1 -0
- package/dist/lib/readinessNotices.js +15 -0
- package/dist/lib/readinessNotices.js.map +1 -0
- package/dist/lib/repo-detect.d.ts +5 -1
- package/dist/lib/repo-detect.d.ts.map +1 -1
- package/dist/lib/repo-detect.js +10 -3
- package/dist/lib/repo-detect.js.map +1 -1
- package/dist/lib/reportedProfile.d.ts +18 -0
- package/dist/lib/reportedProfile.d.ts.map +1 -0
- package/dist/lib/reportedProfile.js +144 -0
- package/dist/lib/reportedProfile.js.map +1 -0
- package/dist/lib/runner.d.ts +9 -1
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/runner.js +30 -4
- package/dist/lib/runner.js.map +1 -1
- package/dist/lib/session.d.ts +113 -4
- package/dist/lib/session.d.ts.map +1 -1
- package/dist/lib/session.js +323 -13
- package/dist/lib/session.js.map +1 -1
- package/dist/lib/sessionBinding.d.ts +61 -0
- package/dist/lib/sessionBinding.d.ts.map +1 -0
- package/dist/lib/sessionBinding.js +125 -0
- package/dist/lib/sessionBinding.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/spineVerdictRead.d.ts +70 -0
- package/dist/lib/spineVerdictRead.d.ts.map +1 -0
- package/dist/lib/spineVerdictRead.js +73 -0
- package/dist/lib/spineVerdictRead.js.map +1 -0
- package/dist/lib/spinner.js +2 -2
- package/dist/lib/spinner.js.map +1 -1
- 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 +179 -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 +60 -0
- package/dist/lib/state.d.ts.map +1 -0
- package/dist/lib/state.js +97 -0
- package/dist/lib/state.js.map +1 -0
- package/dist/lib/strip.d.ts +17 -0
- package/dist/lib/strip.d.ts.map +1 -1
- package/dist/lib/strip.js +48 -1
- package/dist/lib/strip.js.map +1 -1
- package/dist/lib/style.d.ts +10 -2
- package/dist/lib/style.d.ts.map +1 -1
- package/dist/lib/style.js +26 -17
- package/dist/lib/style.js.map +1 -1
- package/dist/lib/tokenConstants.d.ts +2 -0
- package/dist/lib/tokenConstants.d.ts.map +1 -1
- package/dist/lib/tokenConstants.js +2 -0
- package/dist/lib/tokenConstants.js.map +1 -1
- 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/versionWrite.d.ts +65 -0
- package/dist/lib/versionWrite.d.ts.map +1 -0
- package/dist/lib/versionWrite.js +32 -0
- package/dist/lib/versionWrite.js.map +1 -0
- package/dist/lib/workspace-probe.d.ts +3 -0
- package/dist/lib/workspace-probe.d.ts.map +1 -1
- package/dist/lib/workspace-probe.js +8 -14
- package/dist/lib/workspace-probe.js.map +1 -1
- package/dist/lib/workspaceNotice.d.ts +202 -0
- package/dist/lib/workspaceNotice.d.ts.map +1 -0
- package/dist/lib/workspaceNotice.js +345 -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 +106 -0
- package/dist/registerEntryCommands.js.map +1 -0
- package/dist/registerHistoryCommand.d.ts +8 -0
- package/dist/registerHistoryCommand.d.ts.map +1 -0
- package/dist/registerHistoryCommand.js +14 -0
- package/dist/registerHistoryCommand.js.map +1 -0
- package/dist/registerOutcomeCommands.d.ts +27 -0
- package/dist/registerOutcomeCommands.d.ts.map +1 -0
- package/dist/registerOutcomeCommands.js +27 -0
- package/dist/registerOutcomeCommands.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/registerRoleCommands.d.ts +10 -0
- package/dist/registerRoleCommands.d.ts.map +1 -0
- package/dist/registerRoleCommands.js +14 -0
- package/dist/registerRoleCommands.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 +86 -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 +131 -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 +72 -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 +9 -5
- package/templates/method-registry.json +16 -0
- package/dist/__tests__/promote.test.d.ts +0 -2
- package/dist/__tests__/promote.test.d.ts.map +0 -1
- package/dist/__tests__/promote.test.js +0 -161
- package/dist/__tests__/promote.test.js.map +0 -1
- package/dist/__tests__/setup.test.d.ts +0 -2
- package/dist/__tests__/setup.test.d.ts.map +0 -1
- package/dist/__tests__/setup.test.js +0 -141
- package/dist/__tests__/setup.test.js.map +0 -1
- package/dist/commands/promote.d.ts +0 -12
- package/dist/commands/promote.d.ts.map +0 -1
- package/dist/commands/promote.js +0 -90
- package/dist/commands/promote.js.map +0 -1
- package/dist/formatters/promote.d.ts +0 -30
- package/dist/formatters/promote.d.ts.map +0 -1
- package/dist/formatters/promote.js +0 -39
- package/dist/formatters/promote.js.map +0 -1
- package/dist/generators/__tests__/surface-profiles.test.d.ts +0 -2
- package/dist/generators/__tests__/surface-profiles.test.d.ts.map +0 -1
- package/dist/generators/__tests__/surface-profiles.test.js +0 -89
- package/dist/generators/__tests__/surface-profiles.test.js.map +0 -1
- package/dist/generators/chain-classifier.test.d.ts +0 -2
- package/dist/generators/chain-classifier.test.d.ts.map +0 -1
- package/dist/generators/chain-classifier.test.js +0 -257
- package/dist/generators/chain-classifier.test.js.map +0 -1
- package/dist/lib/onboarding-phases.d.ts +0 -9
- package/dist/lib/onboarding-phases.d.ts.map +0 -1
- package/dist/lib/onboarding-phases.js +0 -120
- package/dist/lib/onboarding-phases.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,39 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Product Brain CLI — Chain knowledge + write-back in the terminal.
|
|
4
|
-
*
|
|
5
|
-
* BET-181 Slice 0: global --json / --pretty flags for agent-native output (DEC-299).
|
|
3
|
+
* Product Brain CLI — Chain knowledge + write-back in the terminal. Read: BET-108.
|
|
4
|
+
* Write: pb session + pb capture (TEN-27, INS-80). BET-181 Slice 0: global --json / --pretty flags for agent-native output (DEC-299).
|
|
6
5
|
*/
|
|
7
6
|
import { readFileSync } from 'node:fs';
|
|
8
7
|
import { dirname, join } from 'node:path';
|
|
9
8
|
import { fileURLToPath } from 'node:url';
|
|
10
|
-
import { Command
|
|
9
|
+
import { Command } from 'commander';
|
|
11
10
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
11
|
const cliPackageVersion = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
|
|
13
12
|
import { setOutputMode, setQuietMode, isJsonMode } from './lib/runner.js';
|
|
14
13
|
import { CLIError, ErrorCode } from './lib/errors.js';
|
|
14
|
+
import { handleCliError as handleError } from './handleCliError.js';
|
|
15
15
|
import { runContext } from './commands/context.js';
|
|
16
16
|
import { runGet, runGetMany } from './commands/get.js';
|
|
17
|
+
import { runScoreboard } from './commands/scoreboard.js';
|
|
18
|
+
import { registerHistoryCommand } from './registerHistoryCommand.js';
|
|
19
|
+
import { runReworkReport } from './commands/rework.js';
|
|
17
20
|
import { runConnect } from './commands/connect.js';
|
|
18
21
|
import { runLogin } from './commands/login.js';
|
|
19
22
|
import { runSetup } from './commands/setup.js';
|
|
23
|
+
import { runSetupDetectSurfaces, formatDetectSurfacesSummary } from './commands/setup-detect-surfaces.js';
|
|
24
|
+
import { runSetupState } from './commands/setup-state.js';
|
|
25
|
+
import { runSetupAudit } from './commands/setup-audit.js';
|
|
20
26
|
import { runOrient } from './commands/orient.js';
|
|
21
27
|
import { runSearch } from './commands/search.js';
|
|
22
28
|
import { runHandshake, runHandshakeInit } from './commands/handshake.js';
|
|
23
|
-
import { runSessionStart, runSessionClose, runSessionId } from './commands/session.js';
|
|
29
|
+
import { runSessionStart, runSessionClose, runSessionId, runSessionReset, runSessionList, runSessionShow } from './commands/session.js';
|
|
24
30
|
import { runCapture } from './commands/capture.js';
|
|
25
31
|
import { runUpdate } from './commands/update.js';
|
|
26
|
-
import {
|
|
32
|
+
import { runRestore } from './commands/restore.js';
|
|
27
33
|
import { runIngest } from './commands/ingest.js';
|
|
28
34
|
import { runFields } from './commands/fields.js';
|
|
29
35
|
import { runConstellation } from './commands/constellation.js';
|
|
30
|
-
import {
|
|
36
|
+
import { registerEntryCommands, registerRelateCommands } from './registerEntryCommands.js';
|
|
31
37
|
import { runBrandPack } from './commands/brand-pack.js';
|
|
32
38
|
import { runAudit } from './commands/audit.js';
|
|
33
|
-
import {
|
|
34
|
-
import { runAccept } from './commands/accept.js';
|
|
35
|
-
import { runReject } from './commands/reject.js';
|
|
39
|
+
import { registerProposalCommands } from './registerProposalCommands.js';
|
|
36
40
|
import { runChanges } from './commands/changes.js';
|
|
41
|
+
import { registerOutcomeCommands } from './registerOutcomeCommands.js';
|
|
42
|
+
import { registerRoleCommands } from './registerRoleCommands.js';
|
|
37
43
|
import { runChainWalk } from './commands/chain-walk.js';
|
|
38
44
|
import { runCrossCut } from './commands/cross-cut.js';
|
|
39
45
|
import { runBrief, runCompoundBrief, isCompoundType } from './commands/brief.js';
|
|
@@ -42,75 +48,44 @@ import { runCodexPrep } from './commands/codex-prep.js';
|
|
|
42
48
|
import { runCollectionsList, runCollectionsGet, runCollectionsAudit, runCollectionsExport } from './commands/collections.js';
|
|
43
49
|
import { runWorkspaceVerify, runWorkspaceRepair, runDefinitionsDiff } from './commands/workspace.js';
|
|
44
50
|
import { runDoctor } from './commands/doctor.js';
|
|
51
|
+
import { runWhoami } from './commands/whoami.js';
|
|
52
|
+
import { runFiles } from './commands/files.js';
|
|
53
|
+
import { runUpgrade } from './commands/upgrade.js';
|
|
45
54
|
import { runProfileList, runProfileCreate, runProfileUse, runProfileDelete } from './commands/profile.js';
|
|
46
55
|
import { runInit } from './commands/init.js';
|
|
56
|
+
import { runStatus } from './commands/status.js';
|
|
57
|
+
import { runMethodList, runMethodShow, runMethodDiff, runMethodPublish } from './commands/method.js';
|
|
47
58
|
import { createAdminCommand } from './commands/admin/index.js';
|
|
59
|
+
import { createFeedbackCommand } from './commands/feedback.js';
|
|
60
|
+
import { createConflictsCommand } from './commands/conflicts.js';
|
|
61
|
+
import { createShapeCommand } from './commands/shape.js';
|
|
62
|
+
import { createQuestionCommand } from './commands/questions.js';
|
|
63
|
+
import { createDirectionCommand } from './commands/direction.js';
|
|
64
|
+
import { createOrganisationCommand } from './commands/organisation.js';
|
|
65
|
+
import { createAcceptPolicyCommand } from './commands/accept-policy.js'; // WP-661 S3
|
|
66
|
+
import { runUsage } from './commands/usage.js';
|
|
67
|
+
import { runProofRun } from './commands/proof-run.js';
|
|
68
|
+
import { runQualitySpineCheck } from './commands/quality.js';
|
|
48
69
|
import { GLOSSARY, formatGlossary } from './lib/glossary.js';
|
|
49
70
|
import { API_KEY_PREFIX } from './lib/tokenConstants.js';
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
71
|
+
import { heading } from './lib/style.js';
|
|
72
|
+
import { printPreviewBanner } from './lib/previewBanner.js';
|
|
73
|
+
import { checkForUpdate } from './lib/update-check.js';
|
|
74
|
+
import { UPGRADE_COMMAND } from './lib/constants.js';
|
|
54
75
|
const program = new Command();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
* CLIError: format with code + category + guidance.
|
|
58
|
-
* CommanderError: re-throw for --help / --version (exitCode 0), format others.
|
|
59
|
-
* Regular Error: wrap as INTERNAL.
|
|
60
|
-
*/
|
|
61
|
-
function handleError(err) {
|
|
62
|
-
// Commander help/version exits with code 0 — let them through
|
|
63
|
-
if (err instanceof CommanderError && err.exitCode === 0) {
|
|
64
|
-
process.exit(0);
|
|
65
|
-
}
|
|
66
|
-
const json = isJsonMode();
|
|
67
|
-
if (err instanceof CLIError) {
|
|
68
|
-
if (json) {
|
|
69
|
-
process.stderr.write(JSON.stringify(err.toJSON()) + '\n');
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
process.stderr.write(err.message + '\n');
|
|
73
|
-
if (err.guidance) {
|
|
74
|
-
process.stderr.write(err.guidance + '\n');
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
process.exit(1);
|
|
78
|
-
}
|
|
79
|
-
// CommanderError (bad usage, missing args, etc.)
|
|
80
|
-
if (err instanceof CommanderError) {
|
|
81
|
-
const cliErr = new CLIError(err.message, {
|
|
82
|
-
code: ErrorCode.VALIDATION_FAILED,
|
|
83
|
-
category: 'validation',
|
|
84
|
-
});
|
|
85
|
-
if (json) {
|
|
86
|
-
process.stderr.write(JSON.stringify(cliErr.toJSON()) + '\n');
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
process.stderr.write(err.message + '\n');
|
|
90
|
-
}
|
|
91
|
-
process.exit(err.exitCode);
|
|
92
|
-
}
|
|
93
|
-
// Unknown / unstructured errors
|
|
94
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
95
|
-
if (json) {
|
|
96
|
-
process.stderr.write(JSON.stringify({ error: message, code: 'INTERNAL', category: 'internal' }) + '\n');
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
process.stderr.write(message + '\n');
|
|
100
|
-
}
|
|
101
|
-
process.exit(1);
|
|
102
|
-
}
|
|
76
|
+
// WP-753 V2 (TASK-203): the global error handler lives in ./handleCliError.ts (STD-2/DEC-1724 —
|
|
77
|
+
// kept out of this grandfathered file); imported below as handleError for the call site's own name.
|
|
103
78
|
program
|
|
104
79
|
.name('pb')
|
|
105
80
|
.description('Product Brain — Chain knowledge + write-back CLI')
|
|
106
81
|
.version(cliPackageVersion.version)
|
|
107
82
|
// Global output mode flags (DEC-299, BET-181)
|
|
108
|
-
.option('--json', 'Output machine-readable JSON (
|
|
109
|
-
.option('--pretty', 'Force human-readable output even when
|
|
83
|
+
.option('--json', 'Output machine-readable JSON (the card is the default even when piped)')
|
|
84
|
+
.option('--pretty', 'Force human-readable output even when PB_JSON=1 is set')
|
|
110
85
|
.option('-q, --quiet', 'Suppress non-essential output (banners, hints, progress)')
|
|
111
86
|
.exitOverride(); // Throw CommanderError instead of calling process.exit directly
|
|
112
|
-
// Apply global output mode BEFORE subcommand actions run
|
|
113
|
-
program.hook('preAction', (
|
|
87
|
+
// Apply global output mode BEFORE subcommand actions run. Commander preAction hook signature: (hookedCommand = root program, actionCommand = the subcommand actually invoked).
|
|
88
|
+
program.hook('preAction', (_hookedCommand, actionCommand) => {
|
|
114
89
|
const globalOpts = program.opts();
|
|
115
90
|
if (globalOpts.json) {
|
|
116
91
|
setOutputMode('json');
|
|
@@ -118,94 +93,18 @@ program.hook('preAction', (thisCommand) => {
|
|
|
118
93
|
else if (globalOpts.pretty) {
|
|
119
94
|
setOutputMode('pretty');
|
|
120
95
|
}
|
|
121
|
-
// else: 'auto' (default) — TTY
|
|
96
|
+
// else: 'auto' (default) — isJsonMode() checks PB_JSON=1, never TTY (WP-744 / 1e-B)
|
|
122
97
|
if (globalOpts.quiet) {
|
|
123
98
|
setQuietMode(true);
|
|
124
99
|
}
|
|
125
|
-
|
|
100
|
+
// Ambient update notification — non-blocking, suppressed in JSON mode (WP-322 S1)
|
|
101
|
+
checkForUpdate(cliPackageVersion.version);
|
|
102
|
+
// PREVIEW banner — writes to stderr so it's always visible even in --json/--quiet mode. Advisory line added for top-level Chain-write commands: real learnings belong in the real Chain.
|
|
103
|
+
printPreviewBanner(actionCommand);
|
|
126
104
|
});
|
|
127
|
-
// Default action — status dashboard when `pb` is invoked with no command.
|
|
128
|
-
// `pb --help` still works because Commander intercepts --help before the action runs.
|
|
105
|
+
// Default action — status dashboard when `pb` is invoked with no command. `pb --help` still works because Commander intercepts --help before the action runs.
|
|
129
106
|
program.action(async () => {
|
|
130
|
-
|
|
131
|
-
let hasKey = false;
|
|
132
|
-
let config = null;
|
|
133
|
-
try {
|
|
134
|
-
const { getConfig: gc } = await import('./lib/config.js');
|
|
135
|
-
config = gc();
|
|
136
|
-
hasKey = true;
|
|
137
|
-
}
|
|
138
|
-
catch {
|
|
139
|
-
// No valid key
|
|
140
|
-
}
|
|
141
|
-
// JSON mode: structured status
|
|
142
|
-
if (isJsonMode()) {
|
|
143
|
-
if (!hasKey) {
|
|
144
|
-
process.stdout.write(JSON.stringify({
|
|
145
|
-
configured: false,
|
|
146
|
-
hint: 'Run pb login to configure your API key.',
|
|
147
|
-
}) + '\n');
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
const session = readSession();
|
|
151
|
-
const wsInfo = await probeWorkspace();
|
|
152
|
-
process.stdout.write(JSON.stringify({
|
|
153
|
-
configured: true,
|
|
154
|
-
workspace: wsInfo?.name ?? null,
|
|
155
|
-
session: session ? { id: session.sessionId, startedAt: session.startedAt } : null,
|
|
156
|
-
entryCount: wsInfo?.entryCount ?? null,
|
|
157
|
-
hint: 'Run pb --help for available commands.',
|
|
158
|
-
}) + '\n');
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
// Human mode — not configured
|
|
162
|
-
if (!hasKey) {
|
|
163
|
-
process.stdout.write('\n');
|
|
164
|
-
process.stdout.write(`${bold('Product Brain')} ${dim('— not connected')}\n\n`);
|
|
165
|
-
process.stdout.write(`${heading('Get started')}\n\n`);
|
|
166
|
-
hint('1. pb login Save your API key');
|
|
167
|
-
hint('2. pb setup Connect a workspace');
|
|
168
|
-
hint('3. pb orient -b See what\'s happening');
|
|
169
|
-
process.stdout.write('\n');
|
|
170
|
-
hint('pb --help Show all commands');
|
|
171
|
-
process.stdout.write('\n');
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
// Human mode — configured, try workspace probe
|
|
175
|
-
const session = readSession();
|
|
176
|
-
const wsInfo = await probeWorkspace();
|
|
177
|
-
const workspaceName = wsInfo?.name ?? null;
|
|
178
|
-
const entryCount = wsInfo?.entryCount ?? null;
|
|
179
|
-
const offline = !wsInfo;
|
|
180
|
-
process.stdout.write('\n');
|
|
181
|
-
if (offline) {
|
|
182
|
-
process.stdout.write(`${bold('Product Brain')} ${dim('— connected (offline)')}\n\n`);
|
|
183
|
-
process.stdout.write(` ${green(icons.pass)} Key: configured\n`);
|
|
184
|
-
process.stdout.write(` ${dim('Server: unreachable — check your connection')}\n\n`);
|
|
185
|
-
hint('pb doctor Diagnose connection issues');
|
|
186
|
-
hint('pb --help Show all commands');
|
|
187
|
-
process.stdout.write('\n');
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
// Online with workspace
|
|
191
|
-
const title = workspaceName
|
|
192
|
-
? `${bold('Product Brain')} ${dim('—')} ${bold(workspaceName)}`
|
|
193
|
-
: `${bold('Product Brain')}`;
|
|
194
|
-
process.stdout.write(`${title}\n\n`);
|
|
195
|
-
if (session) {
|
|
196
|
-
const elapsed = formatElapsed(session.startedAt);
|
|
197
|
-
process.stdout.write(` Session: active (started ${elapsed})\n`);
|
|
198
|
-
}
|
|
199
|
-
if (entryCount !== null && entryCount > 0) {
|
|
200
|
-
process.stdout.write(` Entries: ${entryCount}\n`);
|
|
201
|
-
}
|
|
202
|
-
process.stdout.write('\n');
|
|
203
|
-
if (!session) {
|
|
204
|
-
hint('pb session start Start a write session');
|
|
205
|
-
}
|
|
206
|
-
hint('pb orient -b Workspace overview');
|
|
207
|
-
hint('pb --help Show all commands');
|
|
208
|
-
process.stdout.write('\n');
|
|
107
|
+
await runStatus({ args: program.args, version: cliPackageVersion.version });
|
|
209
108
|
});
|
|
210
109
|
program
|
|
211
110
|
.command('get <entry-id>')
|
|
@@ -217,6 +116,43 @@ program
|
|
|
217
116
|
}
|
|
218
117
|
await runGet({ entryId: entryId.trim() });
|
|
219
118
|
});
|
|
119
|
+
registerHistoryCommand(program); // WP-753 V2 (TASK-203): same-line combine, module-health shrink-only budget
|
|
120
|
+
program
|
|
121
|
+
.command('scoreboard')
|
|
122
|
+
.description('Flywheel scoreboard — M1-M5 metrics + diagnosis layer (agent-primary; --json for structured consumption)')
|
|
123
|
+
.option('-t, --task <task>', 'Task context for the ranking-agreement (M2) + truth-state (M1) read')
|
|
124
|
+
.action(async (opts) => {
|
|
125
|
+
await runScoreboard({ ...(opts.task ? { task: opts.task } : {}) });
|
|
126
|
+
});
|
|
127
|
+
const qualityCmd = program
|
|
128
|
+
.command('quality')
|
|
129
|
+
.description('Quality-check surfaces');
|
|
130
|
+
qualityCmd
|
|
131
|
+
.command('spine-check')
|
|
132
|
+
.description('Check purpose+vision+strategy structural completeness + refusal heuristic; --story runs the on-demand one-story LLM judgment')
|
|
133
|
+
.option('--story', 'Also run the on-demand one-story judgment (never scheduled; result labelled [unvalidated])')
|
|
134
|
+
.action(async (opts) => { await runQualitySpineCheck({ story: opts.story }); });
|
|
135
|
+
const reworkCmd = program
|
|
136
|
+
.command('rework')
|
|
137
|
+
.description('Report observed rework signals (WP-487 / FEAT-1373 — fills the M4 rework meter)');
|
|
138
|
+
reworkCmd
|
|
139
|
+
.command('report <entry-id>')
|
|
140
|
+
.description('Report a rework event attributed to a previously served governance entry (agent-native checkpoint; requires an active session)')
|
|
141
|
+
.requiredOption('--classification <kind>', 'revision | ci_review_correction | user_override')
|
|
142
|
+
.option('--via <kind>', 'How this was observed: followup_commit | ci_rerun | manual', 'manual')
|
|
143
|
+
.option('--attributable', 'Flag: this ci_review_correction is attributed to a missing/violated served decision')
|
|
144
|
+
.option('--task <text>', 'Task context this rework relates to (truncated server-side, never raw diff/comment text)')
|
|
145
|
+
.option('--conversation <id>', 'Explicit conversation override, matching `pb session start --conversation <id>` — use when the shell has no PB_CONVERSATION_ID set')
|
|
146
|
+
.action(async (entryId, opts) => {
|
|
147
|
+
await runReworkReport({
|
|
148
|
+
entryId,
|
|
149
|
+
classification: opts.classification,
|
|
150
|
+
reportedVia: opts.via,
|
|
151
|
+
attributable: opts.attributable,
|
|
152
|
+
task: opts.task,
|
|
153
|
+
conversation: opts.conversation,
|
|
154
|
+
});
|
|
155
|
+
});
|
|
220
156
|
program
|
|
221
157
|
.command('get-many <entry-ids...>')
|
|
222
158
|
.description('Fetch multiple entries in parallel (space-separated IDs)')
|
|
@@ -225,7 +161,7 @@ program
|
|
|
225
161
|
});
|
|
226
162
|
program
|
|
227
163
|
.command('context <entry-id>')
|
|
228
|
-
.description('Gather and display constellation context (
|
|
164
|
+
.description('Gather and display constellation context (human-readable card by default, even when piped — pass --json for machine-readable output)')
|
|
229
165
|
.action(async (entryId) => {
|
|
230
166
|
if (!entryId?.trim()) {
|
|
231
167
|
program.commands.find((c) => c.name() === 'context')?.help();
|
|
@@ -273,7 +209,7 @@ program
|
|
|
273
209
|
.description('Brief intelligence queries (BET-239).\n' +
|
|
274
210
|
' pb brief --skill <name> Incremental delta for a skill (E4)\n' +
|
|
275
211
|
' pb brief steering Compound: changes + structure + delta + readiness (E6)\n' +
|
|
276
|
-
' pb brief confidence Compound: changes + active
|
|
212
|
+
' pb brief confidence Compound: changes + active work packages + tensions (E6)\n' +
|
|
277
213
|
' pb brief delta [--since] Compound: changes + relations since timestamp (E6)')
|
|
278
214
|
.option('--skill <name>', 'Skill name for incremental brief (e.g. preflight, shaping, review)')
|
|
279
215
|
.option('--since-last', 'Compare against last brief run (incremental mode)')
|
|
@@ -307,41 +243,50 @@ program
|
|
|
307
243
|
});
|
|
308
244
|
program
|
|
309
245
|
.command('orient')
|
|
310
|
-
.description('Print workspace stage and all orient sections (strategic context,
|
|
311
|
-
.option('-b, --brief', 'Compact view: stage, counts, top
|
|
246
|
+
.description('Print workspace stage and all orient sections (strategic context, work packages, governance, tensions, etc.)')
|
|
247
|
+
.option('-b, --brief', 'Compact view: stage, counts, top work packages, tensions, planned work')
|
|
312
248
|
.option('-t, --task <task>', 'Task description for task-shaped governance and context')
|
|
313
|
-
|
|
314
|
-
.option('-s, --scope <domain>', 'Domain scope for governance filtering. Valid values: auth, governance, architecture, product, data-foundation, chainwork, capture-pipeline, ingestion, intelligence-and-operations, review-and-learning, general')
|
|
249
|
+
.option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
|
|
315
250
|
.action(async (opts) => {
|
|
316
|
-
await runOrient({ brief: opts.brief, task: opts.task?.trim() || undefined,
|
|
251
|
+
await runOrient({ brief: opts.brief, task: opts.task?.trim() || undefined, full: opts.full });
|
|
317
252
|
});
|
|
318
253
|
program
|
|
319
254
|
.command('handshake')
|
|
320
255
|
.description('Generate context files for AI developer tools (AGENTS.md, .codex/skills/, CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md)')
|
|
321
256
|
.option('--force', 'Overwrite adapter files even if they exist without auto-generated marker')
|
|
322
|
-
.option('--
|
|
257
|
+
.option('--apply', 'Write files (default: preview only)')
|
|
258
|
+
.option('--dry-run', 'Show what would be generated without writing files (alias for preview)')
|
|
323
259
|
.option('--init', 'Set up Claude Code integration: team hooks + personal trust level')
|
|
324
260
|
.option('--level <level>', 'With --init: trust level (guide|work|silent|full-trust). Without --init: content tier (beginner|intermediate|expert)')
|
|
325
261
|
.option('--generate', 'Fetch governance entries from the Chain and merge generated rules (BET-286)')
|
|
326
262
|
.option('--surfaces <list>', 'Comma-separated surfaces to write (cursor,claude,copilot,codex)')
|
|
263
|
+
.option('--no-prompt', 'Headless mode: refuse on tampered projection files (WP-421 S3, doneWhen #17). Always implied when stdout is not a TTY.')
|
|
264
|
+
.option('--lenient', 'WP-439 S4: continue past setup-asset body fetch failures with a warning (legacy behaviour). By default, body fetch failures are hard errors; run `pb setup-audit --repair` to fix orphaned rows.')
|
|
327
265
|
.action(async (opts) => {
|
|
328
266
|
if (opts.init) {
|
|
329
267
|
await runHandshakeInit({ level: opts.level, dryRun: opts.dryRun });
|
|
330
268
|
return;
|
|
331
269
|
}
|
|
332
|
-
|
|
270
|
+
// Commander turns `--no-prompt` into `prompt: false`. We invert so HandshakeOptions sees noPrompt=true.
|
|
271
|
+
const noPrompt = opts.prompt === false;
|
|
272
|
+
// Attribute the bare-handshake invocation so its context.served row is separable from manual
|
|
273
|
+
// orient rows — the kernel used to coerce the absent path to 'manual-orient', polluting the
|
|
274
|
+
// proof slice that isolates manual `pb orient --task` rows. session start/close no longer
|
|
275
|
+
// call runHandshake at all (WP-759/TASK-232, DEC-1736); 'handshake' now covers every other row.
|
|
276
|
+
await runHandshake({ force: opts.force, apply: opts.apply, dryRun: opts.dryRun, level: opts.level, generate: opts.generate, surfaces: opts.surfaces?.split(','), noPrompt, lenient: opts.lenient, invocationPath: 'handshake' });
|
|
333
277
|
});
|
|
334
278
|
program
|
|
335
279
|
.command('codex-prep <task...>')
|
|
336
280
|
.description('Generate task-specific governance context for Codex (.codex/task-context.md)')
|
|
337
281
|
.option('--dry-run', 'Print to stdout instead of writing file')
|
|
282
|
+
.option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
|
|
338
283
|
.action(async (taskParts, opts) => {
|
|
339
284
|
const task = taskParts.join(' ').trim();
|
|
340
285
|
if (!task) {
|
|
341
286
|
program.commands.find((c) => c.name() === 'codex-prep')?.help();
|
|
342
287
|
return;
|
|
343
288
|
}
|
|
344
|
-
await runCodexPrep({ task, dryRun: opts.dryRun });
|
|
289
|
+
await runCodexPrep({ task, dryRun: opts.dryRun, full: opts.full });
|
|
345
290
|
});
|
|
346
291
|
program
|
|
347
292
|
.command('init')
|
|
@@ -351,14 +296,16 @@ program
|
|
|
351
296
|
});
|
|
352
297
|
program
|
|
353
298
|
.command('connect <token>')
|
|
354
|
-
.description('Redeem an onboarding token and save your API key locally (FEAT-958). Uses CONVEX_SITE_URL if set, otherwise the production gateway. Override with --gateway or PB_CONNECT_GATEWAY_URL.')
|
|
299
|
+
.description('Redeem an onboarding token and save your API key locally (FEAT-958). Uses CONVEX_SITE_URL if set, otherwise the production gateway. Override with --gateway or PB_CONNECT_GATEWAY_URL. In a non-interactive shell (e.g. CI), pass --yes to confirm the workspace, optionally with --name to label the key.')
|
|
355
300
|
.option('--gateway <url>', 'Override redeem gateway (default: CONVEX_SITE_URL or production). Use when token came from a different Convex deployment.')
|
|
301
|
+
.option('--name <label>', 'Optional label for this API key in workspace settings. Skips the key-label prompt when set.')
|
|
302
|
+
.option('-y, --yes', 'Skip the interactive workspace confirmation. Required to connect in a non-interactive shell (e.g. CI).')
|
|
356
303
|
.action(async (token, opts) => {
|
|
357
304
|
if (!token?.trim()) {
|
|
358
305
|
program.commands.find((c) => c.name() === 'connect')?.help();
|
|
359
306
|
return;
|
|
360
307
|
}
|
|
361
|
-
await runConnect(token.trim(), { gateway: opts.gateway });
|
|
308
|
+
await runConnect(token.trim(), { gateway: opts.gateway, name: opts.name, assumeYes: opts.yes });
|
|
362
309
|
});
|
|
363
310
|
program
|
|
364
311
|
.command('login')
|
|
@@ -374,23 +321,65 @@ program
|
|
|
374
321
|
.action(async (opts) => {
|
|
375
322
|
await runDoctor({ fix: opts.fix, dryRun: opts.dryRun });
|
|
376
323
|
});
|
|
324
|
+
program
|
|
325
|
+
.command('whoami')
|
|
326
|
+
.alias('status')
|
|
327
|
+
.description('Show the active profile + workspace (fast; no session required).')
|
|
328
|
+
.action(async () => {
|
|
329
|
+
await runWhoami();
|
|
330
|
+
});
|
|
331
|
+
program
|
|
332
|
+
.command('files')
|
|
333
|
+
.description('Show which .productbrain files are pb-owned vs committed, and what writes each.')
|
|
334
|
+
.option('--fix', 'Add any exposed pb-owned files to .gitignore (idempotent)')
|
|
335
|
+
.option('--dry-run', 'With --fix: preview the .gitignore lines without writing')
|
|
336
|
+
.action(async (opts) => {
|
|
337
|
+
await runFiles({ fix: opts.fix, dryRun: opts.dryRun });
|
|
338
|
+
});
|
|
377
339
|
program
|
|
378
340
|
.command('setup')
|
|
379
|
-
.description('
|
|
341
|
+
.description('Canonical pb-setup entry (DEC-995): detect surfaces, read state, emit JSON for the skill body.')
|
|
380
342
|
.action(async () => {
|
|
381
343
|
await runSetup();
|
|
382
344
|
});
|
|
345
|
+
program
|
|
346
|
+
.command('setup-detect-surfaces')
|
|
347
|
+
.description('Detect local surface markers and union-merge into manifest.surfaces (STD-235 forward-only)')
|
|
348
|
+
.action(async () => {
|
|
349
|
+
const result = await runSetupDetectSurfaces();
|
|
350
|
+
if (process.stdout.isTTY) {
|
|
351
|
+
process.stdout.write(formatDetectSurfacesSummary(result) + '\n');
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
process.stderr.write(formatDetectSurfacesSummary(result) + '\n');
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
program
|
|
358
|
+
.command('setup-state')
|
|
359
|
+
.description('Emit compact JSON of getPbSetupState (machine-readable, used by the pb-setup skill body)')
|
|
360
|
+
.action(async () => {
|
|
361
|
+
await runSetupState();
|
|
362
|
+
});
|
|
363
|
+
// WP-439 S2: setup-asset orphan audit. Read-only diagnostic; exits 1 if any setup_asset row has a broken body wiring (will fail at handshake). WP-439 S3: --repair attempts to restore class III/II orphans from STARTER_* constants. Class I (inline-only) and IV (hash drift) are NOT touched.
|
|
364
|
+
program
|
|
365
|
+
.command('setup-audit')
|
|
366
|
+
.description('Audit setup_asset rows for orphaned bodies (WP-439 S2/S3). Exits 1 if any orphan or repair-failure.')
|
|
367
|
+
.option('--json', 'Emit machine-readable JSON (overrides pretty output for this command)')
|
|
368
|
+
.option('--repair', 'Attempt to restore class III/II orphans from STARTER_* constants (WP-439 S3)')
|
|
369
|
+
.action(async (opts) => {
|
|
370
|
+
await runSetupAudit({ json: opts.json, repair: opts.repair });
|
|
371
|
+
});
|
|
383
372
|
// --- Write commands (require active session) ---
|
|
384
373
|
const sessionCmd = program
|
|
385
374
|
.command('session')
|
|
386
375
|
.description('Manage write sessions (DEC-9: sessions required before write access)');
|
|
387
376
|
sessionCmd
|
|
388
377
|
.command('start')
|
|
389
|
-
.description('Start a tracked write session
|
|
378
|
+
.description('Start a tracked write session')
|
|
390
379
|
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
391
|
-
.
|
|
392
|
-
|
|
393
|
-
});
|
|
380
|
+
.option('--conversation <id>', 'Explicit conversation identity override (WP-479 E2) — takes priority over env-detected channels. Pair with PB_CONVERSATION_ID=<id> so later bare pb commands (orient, capture) attribute to the same conversation — they resolve identity from env only')
|
|
381
|
+
.option('--role <entry-id>', 'Role to act as this session (DEC-1715) — only needed if you hold more than one; the error lists your roles if omitted') // WP-753 O1a same-line combine (STD-2 shrink-only)
|
|
382
|
+
.action(async (opts) => { await runSessionStart({ json: opts.json, conversation: opts.conversation, role: opts.role }); });
|
|
394
383
|
sessionCmd
|
|
395
384
|
.command('id')
|
|
396
385
|
.description('Print current session ID to stdout (machine-readable, TEN-707)')
|
|
@@ -399,24 +388,49 @@ sessionCmd
|
|
|
399
388
|
});
|
|
400
389
|
sessionCmd
|
|
401
390
|
.command('close')
|
|
402
|
-
.description('Close the active session (wrapup
|
|
391
|
+
.description('Close the active session (wrapup)')
|
|
403
392
|
.option('--force', 'Clear local session state even if server close fails')
|
|
404
393
|
.action(async (opts) => {
|
|
405
394
|
await runSessionClose({ force: opts.force });
|
|
406
395
|
});
|
|
396
|
+
// WP-479 E4: traceback + quota observability.
|
|
397
|
+
sessionCmd
|
|
398
|
+
.command('list')
|
|
399
|
+
.description('List active sessions (with quota gauge) + recent non-active ones (WP-479 E4)')
|
|
400
|
+
.action(async () => {
|
|
401
|
+
await runSessionList();
|
|
402
|
+
});
|
|
403
|
+
sessionCmd
|
|
404
|
+
.command('show <id-or-conversation>')
|
|
405
|
+
.description('Show a conversation\'s full session lineage + governance serves (WP-479 E4)')
|
|
406
|
+
.action(async (idOrConversation) => {
|
|
407
|
+
await runSessionShow(idOrConversation);
|
|
408
|
+
});
|
|
409
|
+
// TEN-2189 / WP-456 E2: hard-reset worktree-local session state (no resume marker) + clear the PREVIEW_MODE marker. Recovery path for a session stranded on the wrong workspace after a pb:preview/pb:real binding flip.
|
|
410
|
+
sessionCmd
|
|
411
|
+
.command('reset')
|
|
412
|
+
.description('Hard-reset local session state (discard session.json + clear PREVIEW_MODE)')
|
|
413
|
+
.option('--force', 'Skip the confirmation prompt when an active session is present')
|
|
414
|
+
.action(async (opts) => {
|
|
415
|
+
await runSessionReset({ force: opts.force });
|
|
416
|
+
});
|
|
407
417
|
program
|
|
408
418
|
.command('capture [text...]')
|
|
409
419
|
.description('Capture knowledge to the Chain (requires active session)')
|
|
410
420
|
.option('-n, --name <name>', 'Entry name (defaults to capture text)')
|
|
411
421
|
.option('-d, --description <desc>', 'Entry description (defaults to capture text)')
|
|
412
422
|
.option('-c, --collection <slug>', 'Explicit collection (skip auto-classification)')
|
|
423
|
+
.option('-f, --field <key=value>', 'Set a data field (repeatable; e.g. rationale="...")', (val, prev) => [...prev, val], [])
|
|
413
424
|
.option('-l, --link <entry-id>', 'Link new entry to an existing entry (TEN-705)')
|
|
414
|
-
.option('-t, --type <relation-type>', 'Relation type for --link (
|
|
425
|
+
.option('-t, --link-type <relation-type>', 'Relation type for --link — REQUIRED when --link is used (WP-688 S4): no default, the door refuses and lists the source entry\'s legal verbs if omitted')
|
|
415
426
|
.option('--source-ref <ref>', 'Source reference URI (BET-240 E2: e.g. "meeting-2026-03-28.md")')
|
|
416
427
|
.option('--source-excerpt <text>', 'Verbatim source excerpt (BET-240 E2)')
|
|
428
|
+
.option('--draft', 'Force the entry to draft regardless of workspace governance mode — opt-in override, keeps it draft even in Open mode (TEN-2226 / WP-456 E1)')
|
|
417
429
|
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
418
430
|
.option('--suggest-only', 'Show grounding preview (possible duplicates, related entries) without creating entry (WP-319)')
|
|
419
431
|
.option('--strict', 'Prompt y/N before capturing when a possible duplicate is detected (WP-319)')
|
|
432
|
+
.option('--owner-role <entry-id>', 'Existing Role entry ID to create AS OWNER of (WP-513 rung 2; its home team is derived automatically)') // WP-753 O1b: --owner-team deleted, default owner resolves from the session's acting role.
|
|
433
|
+
.option('--entry-type <canonical-key>', 'Explicit canonical type for the new entry (e.g. objective, key_result) — bypasses classification; -t/--link-type is the --link relation type (WP-684 TASK-77)')
|
|
420
434
|
.action(async (textParts = [], opts) => {
|
|
421
435
|
const text = textParts.join(' ').trim();
|
|
422
436
|
if (!text && !opts.name) {
|
|
@@ -424,17 +438,10 @@ program
|
|
|
424
438
|
return;
|
|
425
439
|
}
|
|
426
440
|
await runCapture({
|
|
427
|
-
text: text || opts.name || '',
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
link: opts.link,
|
|
432
|
-
type: opts.type,
|
|
433
|
-
sourceRef: opts.sourceRef,
|
|
434
|
-
sourceExcerpt: opts.sourceExcerpt,
|
|
435
|
-
json: opts.json,
|
|
436
|
-
suggestOnly: opts.suggestOnly,
|
|
437
|
-
strict: opts.strict,
|
|
441
|
+
text: text || opts.name || '', name: opts.name, description: opts.description, collection: opts.collection,
|
|
442
|
+
field: opts.field, link: opts.link, linkType: opts.linkType, sourceRef: opts.sourceRef, sourceExcerpt: opts.sourceExcerpt,
|
|
443
|
+
draft: opts.draft, json: opts.json, suggestOnly: opts.suggestOnly, strict: opts.strict,
|
|
444
|
+
ownerRole: opts.ownerRole, entryType: opts.entryType,
|
|
438
445
|
});
|
|
439
446
|
});
|
|
440
447
|
// --- Update command (TEN-703) ---
|
|
@@ -445,17 +452,25 @@ program
|
|
|
445
452
|
.option('--name <name>', 'Update entry name')
|
|
446
453
|
.option('--status <status>', 'Update entry status (draft | active | deprecated | archived)')
|
|
447
454
|
.option('--workflow-status <status>', 'Set workflow status (server-validated)')
|
|
455
|
+
.option('--type <canonical-key>', 'Reclassify a DRAFT entry to another canonical type (immutable once committed — supersede instead)')
|
|
448
456
|
.option('--note <text>', 'Change note for history')
|
|
457
|
+
.option('--override-reason <text>', 'Typed override (≥12 chars) clearing a steering coherency block — recorded with author attribution (WP-465)')
|
|
458
|
+
.option('--acknowledge <response>', 'Respond to a coherency challenge: linked | accepted-fix | diverged (WP-465)')
|
|
459
|
+
.option('--ack-entry <entry-id>', 'Authorizing entry for --acknowledge linked / accepted-fix')
|
|
460
|
+
.option('--ack-reason <text>', 'Divergence rationale (≥12 chars) for --acknowledge diverged')
|
|
461
|
+
// Commander camelCases every flag to exactly the UpdateOptions key it feeds, so the options
|
|
462
|
+
// object spreads straight through. The previous hand-written 1:1 mapping had to be edited twice
|
|
463
|
+
// per new flag (once here, once in the type) and silently dropped anything you forgot.
|
|
449
464
|
.action(async (entryId, opts) => {
|
|
450
|
-
await runUpdate({
|
|
451
|
-
entryId,
|
|
452
|
-
field: opts.field,
|
|
453
|
-
name: opts.name,
|
|
454
|
-
status: opts.status,
|
|
455
|
-
workflowStatus: opts.workflowStatus,
|
|
456
|
-
note: opts.note,
|
|
457
|
-
});
|
|
465
|
+
await runUpdate({ entryId, ...opts });
|
|
458
466
|
});
|
|
467
|
+
// --- Restore command (WP-514 review round 2, P1) ---
|
|
468
|
+
program
|
|
469
|
+
.command('restore <entry-id>')
|
|
470
|
+
.description('Restore an archived Chain entry to draft (requires active session + rung-3 authority coverage)')
|
|
471
|
+
.action(async (entryId) => { await runRestore(entryId); });
|
|
472
|
+
// --- Entry noun-scoped commands (DEC-1574, WP-640 S4) — registerEntryCommands.ts ---
|
|
473
|
+
registerEntryCommands(program);
|
|
459
474
|
// --- Promote command (Wave 2 CLI Polish) ---
|
|
460
475
|
program
|
|
461
476
|
.command('verify <entry-id>')
|
|
@@ -467,27 +482,12 @@ program
|
|
|
467
482
|
}
|
|
468
483
|
await runVerify({ entryId: entryId.trim() });
|
|
469
484
|
});
|
|
470
|
-
program
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
});
|
|
477
|
-
// --- Relate / Unrelate commands (TEN-704) ---
|
|
478
|
-
program
|
|
479
|
-
.command('relate <from-id> <type> <to-id>')
|
|
480
|
-
.description('Add a typed relation between two entries (requires active session)')
|
|
481
|
-
.option('--if-missing', 'Only create relation if it does not already exist')
|
|
482
|
-
.action(async (fromId, type, toId, opts) => {
|
|
483
|
-
await runRelate({ fromId, type, toId, ifMissing: opts.ifMissing });
|
|
484
|
-
});
|
|
485
|
-
program
|
|
486
|
-
.command('unrelate <from-id> <type> <to-id>')
|
|
487
|
-
.description('Remove a typed relation between two entries (requires active session)')
|
|
488
|
-
.action(async (fromId, type, toId) => {
|
|
489
|
-
await runUnrelate({ fromId, type, toId });
|
|
490
|
-
});
|
|
485
|
+
registerProposalCommands(program); // `pb promote` retirement (DEC-1578) — registerProposalCommands.ts
|
|
486
|
+
registerOutcomeCommands(program);
|
|
487
|
+
registerRoleCommands(program); // WP-722 S2 outcome; WP-730 S2 role — registerOutcomeCommands.ts / registerRoleCommands.ts
|
|
488
|
+
// --- Relate / Unrelate commands (TEN-704) — registerEntryCommands.ts (WP-688 S2a: moved off
|
|
489
|
+
// this shrink-only file to fund the --dry-run flag) ---
|
|
490
|
+
registerRelateCommands(program);
|
|
491
491
|
// --- Ingest command (BET-81) ---
|
|
492
492
|
program
|
|
493
493
|
.command('ingest <pattern>')
|
|
@@ -510,6 +510,30 @@ program
|
|
|
510
510
|
concurrency,
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
|
+
// --- migrate:setup command (WP-345 S0b) ---
|
|
514
|
+
program
|
|
515
|
+
.command('migrate:setup')
|
|
516
|
+
.description('Migrate .productbrain/skills|rules|hooks/*.md into the DB setup-assets collection (WP-345)')
|
|
517
|
+
.option('--dry-run', 'Show what would be migrated without writing to DB.')
|
|
518
|
+
.option('--cwd <path>', 'Override working directory (default: process.cwd())')
|
|
519
|
+
.action(async (opts) => {
|
|
520
|
+
const { runMigrateSetup } = await import('./commands/migrate-setup.js');
|
|
521
|
+
await runMigrateSetup({ dryRun: opts.dryRun, cwd: opts.cwd });
|
|
522
|
+
});
|
|
523
|
+
// --- setup:ingest command (WP-345 S3) ---
|
|
524
|
+
program
|
|
525
|
+
.command('setup:ingest <path>')
|
|
526
|
+
.description('Push a single .productbrain skill/rule/hook file to the DB setup-assets SSOT (WP-345)')
|
|
527
|
+
.option('--dry-run', 'Show what would be ingested without writing to DB.')
|
|
528
|
+
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
529
|
+
.action(async (filePath, opts) => {
|
|
530
|
+
if (!filePath?.trim()) {
|
|
531
|
+
program.commands.find((c) => c.name() === 'setup:ingest')?.help();
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
const { runSetupIngest } = await import('./commands/setup-ingest.js');
|
|
535
|
+
await runSetupIngest(filePath.trim(), { dryRun: opts.dryRun });
|
|
536
|
+
});
|
|
513
537
|
// --- Fields command (BET-181 Slice 2) ---
|
|
514
538
|
program
|
|
515
539
|
.command('fields <collection>')
|
|
@@ -535,7 +559,7 @@ program
|
|
|
535
559
|
// --- Audit command (BET-182 Slice 2) ---
|
|
536
560
|
program
|
|
537
561
|
.command('audit <entry-ids...>')
|
|
538
|
-
.description('Run
|
|
562
|
+
.description('Run hygiene audit on work package(s) — 13 gates (shaping) / 18 gates (handoff), exit code reflects verdict')
|
|
539
563
|
.option('--phase <phase>', 'Override phase detection (shaping | handoff)')
|
|
540
564
|
.option('--gate <name>', 'Run only specified gate(s) (repeatable)', (val, prev) => [...prev, val], [])
|
|
541
565
|
.option('--fix', 'Auto-execute exact fixes via pb update, rerun once')
|
|
@@ -557,33 +581,6 @@ program
|
|
|
557
581
|
.action(() => {
|
|
558
582
|
runBrandPack(process.argv);
|
|
559
583
|
});
|
|
560
|
-
// --- Governance proposal commands (BET-221 Slice 3) ---
|
|
561
|
-
program
|
|
562
|
-
.command('proposals')
|
|
563
|
-
.description('List open consent proposals with expiry countdown (BET-221)')
|
|
564
|
-
.action(async () => {
|
|
565
|
-
await runProposals();
|
|
566
|
-
});
|
|
567
|
-
program
|
|
568
|
-
.command('accept [proposal-id]')
|
|
569
|
-
.description('Approve a consent proposal by ID, or --auto to batch-approve all')
|
|
570
|
-
.option('-a, --auto', 'Auto-approve all open proposals (skip contradictions)')
|
|
571
|
-
.action(async (proposalId, opts) => {
|
|
572
|
-
if (!proposalId && !opts.auto) {
|
|
573
|
-
throw new CLIError('Usage: pb accept <proposal-id> or pb accept --auto', {
|
|
574
|
-
code: ErrorCode.VALIDATION_FAILED,
|
|
575
|
-
category: 'validation',
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
await runAccept({ proposalId, auto: opts.auto });
|
|
579
|
-
});
|
|
580
|
-
program
|
|
581
|
-
.command('reject <proposal-id>')
|
|
582
|
-
.description('Reject a consent proposal with a required reason (BR-7)')
|
|
583
|
-
.requiredOption('-r, --reason <text>', 'Reason for rejection (required)')
|
|
584
|
-
.action(async (proposalId, opts) => {
|
|
585
|
-
await runReject({ proposalId, reason: opts.reason });
|
|
586
|
-
});
|
|
587
584
|
// --- Collections command (BET-280 Slice 1) ---
|
|
588
585
|
const collectionsCmd = program
|
|
589
586
|
.command('collections')
|
|
@@ -632,6 +629,9 @@ workspaceCmd
|
|
|
632
629
|
.action(async () => {
|
|
633
630
|
await runWorkspaceRepair();
|
|
634
631
|
});
|
|
632
|
+
// D3a (WP-754/TASK-213): the entire `authority-domains` CLI command tree deleted — its backing
|
|
633
|
+
// HTTP gateway routes (convex/http.ts) and convex/authorityDomains.ts are deleted in this same
|
|
634
|
+
// slice, so every one of these subcommands would call a route that no longer exists.
|
|
635
635
|
// --- Definitions diff command (WP-305 Slice 4) ---
|
|
636
636
|
const definitionsCmd = program
|
|
637
637
|
.command('definitions')
|
|
@@ -642,6 +642,47 @@ definitionsCmd
|
|
|
642
642
|
.action(async (file) => {
|
|
643
643
|
await runDefinitionsDiff({ file });
|
|
644
644
|
});
|
|
645
|
+
// --- Method commands (WP-329 S1: method visibility) ---
|
|
646
|
+
const methodCmd = program
|
|
647
|
+
.command('method')
|
|
648
|
+
.description('Inspect published methods (skills + rules) and their per-surface adapter status (WP-329)');
|
|
649
|
+
methodCmd
|
|
650
|
+
.command('ls')
|
|
651
|
+
.description('List all methods with version, published status, and adapter presence')
|
|
652
|
+
.action(async () => {
|
|
653
|
+
await runMethodList();
|
|
654
|
+
});
|
|
655
|
+
methodCmd
|
|
656
|
+
.command('show <name>')
|
|
657
|
+
.description('Show details for one method: frontmatter, Chain entry, and per-adapter fork status')
|
|
658
|
+
.action(async (name) => {
|
|
659
|
+
if (!name?.trim()) {
|
|
660
|
+
program.commands.find((c) => c.name() === 'method')?.help();
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
await runMethodShow({ name: name.trim() });
|
|
664
|
+
});
|
|
665
|
+
methodCmd
|
|
666
|
+
.command('diff <name>')
|
|
667
|
+
.description('Show diff between local .productbrain/ source and last-published Chain version (WP-329 S2)')
|
|
668
|
+
.action(async (name) => {
|
|
669
|
+
if (!name?.trim()) {
|
|
670
|
+
program.commands.find((c) => c.name() === 'method')?.help();
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
await runMethodDiff({ name: name.trim() });
|
|
674
|
+
});
|
|
675
|
+
methodCmd
|
|
676
|
+
.command('publish <name>')
|
|
677
|
+
.description('Publish a local .productbrain/ method (skill or rule) to the Chain methods collection (WP-329 S3)')
|
|
678
|
+
.option('--force', 'Publish even when local body matches the last-published version (override D4 no-op guard)')
|
|
679
|
+
.action(async (name, opts) => {
|
|
680
|
+
if (!name?.trim()) {
|
|
681
|
+
program.commands.find((c) => c.name() === 'method')?.help();
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
await runMethodPublish({ name: name.trim(), force: opts.force });
|
|
685
|
+
});
|
|
645
686
|
// --- Profile commands (WP-302 Slice 2) ---
|
|
646
687
|
const profileCmd = program
|
|
647
688
|
.command('profile')
|
|
@@ -662,9 +703,11 @@ profileCmd
|
|
|
662
703
|
});
|
|
663
704
|
profileCmd
|
|
664
705
|
.command('use <name>')
|
|
665
|
-
.description('Switch
|
|
666
|
-
.
|
|
667
|
-
|
|
706
|
+
.description('Switch profile: reconciles the repo pin + global by default. --local = repo pin only; --global = global only.')
|
|
707
|
+
.option('--local', 'Write the profile pin only to .productbrain/config.local.json (repo-local, gitignored)')
|
|
708
|
+
.option('--global', 'Switch only the global active profile (does not change a locally-pinned repo)')
|
|
709
|
+
.action(async (name, opts) => {
|
|
710
|
+
await runProfileUse({ name, local: opts.local, global: opts.global });
|
|
668
711
|
});
|
|
669
712
|
profileCmd
|
|
670
713
|
.command('delete <name>')
|
|
@@ -672,6 +715,14 @@ profileCmd
|
|
|
672
715
|
.action(async (name) => {
|
|
673
716
|
await runProfileDelete({ name });
|
|
674
717
|
});
|
|
718
|
+
program
|
|
719
|
+
.command('use <name>')
|
|
720
|
+
.description('Switch the active workspace profile (alias for `pb profile use`).')
|
|
721
|
+
.option('--local', 'Write the profile pin only to .productbrain/config.local.json (repo-local, gitignored)')
|
|
722
|
+
.option('--global', 'Switch only the global active profile (does not change a locally-pinned repo)')
|
|
723
|
+
.action(async (name, opts) => {
|
|
724
|
+
await runProfileUse({ name, local: opts.local, global: opts.global });
|
|
725
|
+
});
|
|
675
726
|
// --- Glossary command (WP-302 Slice 4) ---
|
|
676
727
|
program
|
|
677
728
|
.command('glossary')
|
|
@@ -690,8 +741,37 @@ program
|
|
|
690
741
|
];
|
|
691
742
|
process.stdout.write(lines.join('\n') + '\n');
|
|
692
743
|
});
|
|
744
|
+
// --- Usage command (WP-322 S4, FEAT-1011) ---
|
|
745
|
+
program
|
|
746
|
+
.command('usage')
|
|
747
|
+
.description('Session and activity dashboard — 4-tab Ink TUI (WP-322)')
|
|
748
|
+
.option('--json', 'Output machine-readable JSON (sessions, entries30d, activity array)')
|
|
749
|
+
.action(async (opts) => {
|
|
750
|
+
await runUsage({ json: opts.json });
|
|
751
|
+
});
|
|
752
|
+
// --- Proof-run command (WP-459: admin-proof bridge dogfood) ---
|
|
753
|
+
program
|
|
754
|
+
.command('proof-run <proof-name>')
|
|
755
|
+
.description('Run an admin-only proof against the seeded preview via the proof bridge (WP-459)')
|
|
756
|
+
.action(async (proofName) => {
|
|
757
|
+
await runProofRun({ proofName: proofName.trim() });
|
|
758
|
+
});
|
|
693
759
|
// --- Admin command group (WP-312 S2, FEAT-969) ---
|
|
694
760
|
program.addCommand(createAdminCommand());
|
|
761
|
+
program.addCommand(createFeedbackCommand());
|
|
762
|
+
program.addCommand(createConflictsCommand());
|
|
763
|
+
program.addCommand(createShapeCommand());
|
|
764
|
+
program.addCommand(createQuestionCommand());
|
|
765
|
+
program.addCommand(createDirectionCommand());
|
|
766
|
+
program.addCommand(createOrganisationCommand());
|
|
767
|
+
program.addCommand(createAcceptPolicyCommand());
|
|
768
|
+
// --- Upgrade command (WP-322 S1: ambient update notification) ---
|
|
769
|
+
program
|
|
770
|
+
.command('upgrade')
|
|
771
|
+
.description(`Upgrade pb CLI to the latest beta (${UPGRADE_COMMAND})`)
|
|
772
|
+
.action(async () => {
|
|
773
|
+
await runUpgrade({ currentVersion: cliPackageVersion.version });
|
|
774
|
+
});
|
|
695
775
|
// Parse with global error handler — all uncaught errors route through handleError
|
|
696
|
-
program.parseAsync().catch(handleError);
|
|
776
|
+
program.parseAsync(process.argv).catch(handleError);
|
|
697
777
|
//# sourceMappingURL=index.js.map
|