@productbrain/cli 0.1.0-beta.15 → 0.1.0-beta.15004
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 +85 -113
- 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__/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 +119 -0
- package/dist/__tests__/capture-receipt-coaching.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-link-verbs.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-link-verbs.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-link-verbs.test.js +31 -0
- package/dist/__tests__/capture-receipt-link-verbs.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-role-hint.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-role-hint.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-role-hint.test.js +64 -0
- package/dist/__tests__/capture-receipt-role-hint.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 +95 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.js.map +1 -0
- package/dist/__tests__/capture.test.js +657 -31
- package/dist/__tests__/capture.test.js.map +1 -1
- package/dist/__tests__/cli-error-once.test.d.ts +2 -0
- package/dist/__tests__/cli-error-once.test.d.ts.map +1 -0
- package/dist/__tests__/cli-error-once.test.js +53 -0
- package/dist/__tests__/cli-error-once.test.js.map +1 -0
- 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 +49 -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 +81 -0
- package/dist/__tests__/codex-prep-parity.test.js.map +1 -0
- package/dist/__tests__/config-conversation-profile.test.d.ts +2 -0
- package/dist/__tests__/config-conversation-profile.test.d.ts.map +1 -0
- package/dist/__tests__/config-conversation-profile.test.js +91 -0
- package/dist/__tests__/config-conversation-profile.test.js.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts +2 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.js +93 -0
- package/dist/__tests__/config-prod-fallthrough.test.js.map +1 -0
- package/dist/__tests__/config.test.d.ts +8 -0
- package/dist/__tests__/config.test.d.ts.map +1 -0
- package/dist/__tests__/config.test.js +1109 -0
- package/dist/__tests__/config.test.js.map +1 -0
- package/dist/__tests__/constants.test.d.ts +2 -0
- package/dist/__tests__/constants.test.d.ts.map +1 -0
- package/dist/__tests__/constants.test.js +155 -0
- package/dist/__tests__/constants.test.js.map +1 -0
- package/dist/__tests__/constellation.test.js +56 -36
- 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 +300 -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 +90 -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 +275 -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 +560 -0
- package/dist/__tests__/entryAccept.test.js.map +1 -0
- package/dist/__tests__/entryDiscardResolve.test.d.ts +2 -0
- package/dist/__tests__/entryDiscardResolve.test.d.ts.map +1 -0
- package/dist/__tests__/entryDiscardResolve.test.js +36 -0
- package/dist/__tests__/entryDiscardResolve.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 +95 -0
- package/dist/__tests__/entryOwn.test.js.map +1 -0
- package/dist/__tests__/entryReplace.test.d.ts +2 -0
- package/dist/__tests__/entryReplace.test.d.ts.map +1 -0
- package/dist/__tests__/entryReplace.test.js +60 -0
- package/dist/__tests__/entryReplace.test.js.map +1 -0
- package/dist/__tests__/entryTick.test.d.ts +2 -0
- package/dist/__tests__/entryTick.test.d.ts.map +1 -0
- package/dist/__tests__/entryTick.test.js +40 -0
- package/dist/__tests__/entryTick.test.js.map +1 -0
- package/dist/__tests__/envelope-contract.test.d.ts +15 -0
- package/dist/__tests__/envelope-contract.test.d.ts.map +1 -0
- package/dist/__tests__/envelope-contract.test.js +154 -0
- package/dist/__tests__/envelope-contract.test.js.map +1 -0
- package/dist/__tests__/errors.test.d.ts +2 -0
- package/dist/__tests__/errors.test.d.ts.map +1 -0
- package/dist/__tests__/errors.test.js +188 -0
- package/dist/__tests__/errors.test.js.map +1 -0
- package/dist/__tests__/fields.test.js +50 -39
- 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 +116 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.js.map +1 -0
- package/dist/__tests__/get-batch-spinner.test.d.ts +2 -0
- package/dist/__tests__/get-batch-spinner.test.d.ts.map +1 -0
- package/dist/__tests__/get-batch-spinner.test.js +47 -0
- package/dist/__tests__/get-batch-spinner.test.js.map +1 -0
- package/dist/__tests__/get-batch.test.d.ts +2 -0
- package/dist/__tests__/get-batch.test.d.ts.map +1 -0
- package/dist/__tests__/get-batch.test.js +132 -0
- package/dist/__tests__/get-batch.test.js.map +1 -0
- package/dist/__tests__/glossary.test.d.ts +2 -0
- package/dist/__tests__/glossary.test.d.ts.map +1 -0
- package/dist/__tests__/glossary.test.js +15 -0
- package/dist/__tests__/glossary.test.js.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts +2 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js +43 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js.map +1 -0
- package/dist/__tests__/help-no-ids.test.d.ts +2 -0
- package/dist/__tests__/help-no-ids.test.d.ts.map +1 -0
- package/dist/__tests__/help-no-ids.test.js +81 -0
- package/dist/__tests__/help-no-ids.test.js.map +1 -0
- package/dist/__tests__/init.test.d.ts +8 -0
- package/dist/__tests__/init.test.d.ts.map +1 -0
- package/dist/__tests__/init.test.js +406 -0
- package/dist/__tests__/init.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js +46 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js +108 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js.map +1 -0
- package/dist/__tests__/login.test.d.ts +2 -0
- package/dist/__tests__/login.test.d.ts.map +1 -0
- package/dist/__tests__/login.test.js +198 -0
- package/dist/__tests__/login.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 +232 -0
- package/dist/__tests__/missingPin.test.js.map +1 -0
- package/dist/__tests__/no-session-one-place.test.d.ts +2 -0
- package/dist/__tests__/no-session-one-place.test.d.ts.map +1 -0
- package/dist/__tests__/no-session-one-place.test.js +33 -0
- package/dist/__tests__/no-session-one-place.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__/orient-bound-scope.test.d.ts +2 -0
- package/dist/__tests__/orient-bound-scope.test.d.ts.map +1 -0
- package/dist/__tests__/orient-bound-scope.test.js +174 -0
- package/dist/__tests__/orient-bound-scope.test.js.map +1 -0
- package/dist/__tests__/orient-rules.test.d.ts +2 -0
- package/dist/__tests__/orient-rules.test.d.ts.map +1 -0
- package/dist/__tests__/orient-rules.test.js +88 -0
- package/dist/__tests__/orient-rules.test.js.map +1 -0
- package/dist/__tests__/orient.test.d.ts +2 -0
- package/dist/__tests__/orient.test.d.ts.map +1 -0
- package/dist/__tests__/orient.test.js +711 -0
- package/dist/__tests__/orient.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 +186 -0
- package/dist/__tests__/preview-key-refresh.test.js.map +1 -0
- package/dist/__tests__/profile-create-key.test.d.ts +2 -0
- package/dist/__tests__/profile-create-key.test.d.ts.map +1 -0
- package/dist/__tests__/profile-create-key.test.js +57 -0
- package/dist/__tests__/profile-create-key.test.js.map +1 -0
- package/dist/__tests__/profiles.test.d.ts +2 -0
- package/dist/__tests__/profiles.test.d.ts.map +1 -0
- package/dist/__tests__/profiles.test.js +834 -0
- package/dist/__tests__/profiles.test.js.map +1 -0
- package/dist/__tests__/prompts.test.d.ts +6 -0
- package/dist/__tests__/prompts.test.d.ts.map +1 -0
- package/dist/__tests__/prompts.test.js +163 -0
- package/dist/__tests__/prompts.test.js.map +1 -0
- package/dist/__tests__/proof-run.test.d.ts +2 -0
- package/dist/__tests__/proof-run.test.d.ts.map +1 -0
- package/dist/__tests__/proof-run.test.js +255 -0
- package/dist/__tests__/proof-run.test.js.map +1 -0
- package/dist/__tests__/rate-limit-resilience.test.d.ts +8 -0
- package/dist/__tests__/rate-limit-resilience.test.d.ts.map +1 -0
- package/dist/__tests__/rate-limit-resilience.test.js +191 -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 +125 -0
- package/dist/__tests__/read-target-notice.test.js.map +1 -0
- package/dist/__tests__/relate.test.js +292 -39
- package/dist/__tests__/relate.test.js.map +1 -1
- package/dist/__tests__/removed-commands.test.d.ts +2 -0
- package/dist/__tests__/removed-commands.test.d.ts.map +1 -0
- package/dist/__tests__/removed-commands.test.js +99 -0
- package/dist/__tests__/removed-commands.test.js.map +1 -0
- package/dist/__tests__/reply-commands-registered.test.d.ts +2 -0
- package/dist/__tests__/reply-commands-registered.test.d.ts.map +1 -0
- package/dist/__tests__/reply-commands-registered.test.js +83 -0
- package/dist/__tests__/reply-commands-registered.test.js.map +1 -0
- package/dist/__tests__/reply-lines.test.d.ts +2 -0
- package/dist/__tests__/reply-lines.test.d.ts.map +1 -0
- package/dist/__tests__/reply-lines.test.js +67 -0
- package/dist/__tests__/reply-lines.test.js.map +1 -0
- package/dist/__tests__/reportedProfile.test.d.ts +2 -0
- package/dist/__tests__/reportedProfile.test.d.ts.map +1 -0
- package/dist/__tests__/reportedProfile.test.js +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 +91 -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 +111 -0
- package/dist/__tests__/route-latency-budget.test.js.map +1 -0
- package/dist/__tests__/runner.test.js +75 -56
- 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-conversation.test.d.ts +2 -0
- package/dist/__tests__/session-close-conversation.test.d.ts.map +1 -0
- package/dist/__tests__/session-close-conversation.test.js +75 -0
- package/dist/__tests__/session-close-conversation.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 +349 -0
- package/dist/__tests__/session-close-loop.test.js.map +1 -0
- package/dist/__tests__/session-ended-refusal.test.d.ts +2 -0
- package/dist/__tests__/session-ended-refusal.test.d.ts.map +1 -0
- package/dist/__tests__/session-ended-refusal.test.js +76 -0
- package/dist/__tests__/session-ended-refusal.test.js.map +1 -0
- package/dist/__tests__/session-hook-conversation.test.d.ts +2 -0
- package/dist/__tests__/session-hook-conversation.test.d.ts.map +1 -0
- package/dist/__tests__/session-hook-conversation.test.js +87 -0
- package/dist/__tests__/session-hook-conversation.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 +171 -0
- package/dist/__tests__/session-list-show.test.js.map +1 -0
- package/dist/__tests__/session-pinned-role.test.d.ts +2 -0
- package/dist/__tests__/session-pinned-role.test.d.ts.map +1 -0
- package/dist/__tests__/session-pinned-role.test.js +333 -0
- package/dist/__tests__/session-pinned-role.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 +137 -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 +137 -0
- package/dist/__tests__/session-resume-backstop.test.js.map +1 -0
- package/dist/__tests__/session-role-name-sanitize.test.d.ts +2 -0
- package/dist/__tests__/session-role-name-sanitize.test.d.ts.map +1 -0
- package/dist/__tests__/session-role-name-sanitize.test.js +119 -0
- package/dist/__tests__/session-role-name-sanitize.test.js.map +1 -0
- package/dist/__tests__/session-seat-record.test.d.ts +2 -0
- package/dist/__tests__/session-seat-record.test.d.ts.map +1 -0
- package/dist/__tests__/session-seat-record.test.js +99 -0
- package/dist/__tests__/session-seat-record.test.js.map +1 -0
- package/dist/__tests__/session-seat-split.test.d.ts +2 -0
- package/dist/__tests__/session-seat-split.test.d.ts.map +1 -0
- package/dist/__tests__/session-seat-split.test.js +142 -0
- package/dist/__tests__/session-seat-split.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 +213 -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 +364 -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 +341 -0
- package/dist/__tests__/session-switch.test.js.map +1 -0
- package/dist/__tests__/session-touch.test.js +87 -108
- package/dist/__tests__/session-touch.test.js.map +1 -1
- package/dist/__tests__/session.test.js +4 -13
- 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 +131 -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__/skill-vocabulary.test.d.ts +21 -0
- package/dist/__tests__/skill-vocabulary.test.d.ts.map +1 -0
- package/dist/__tests__/skill-vocabulary.test.js +192 -0
- package/dist/__tests__/skill-vocabulary.test.js.map +1 -0
- package/dist/__tests__/spinner-labels.test.d.ts +2 -0
- package/dist/__tests__/spinner-labels.test.d.ts.map +1 -0
- package/dist/__tests__/spinner-labels.test.js +31 -0
- package/dist/__tests__/spinner-labels.test.js.map +1 -0
- package/dist/__tests__/state.test.d.ts +6 -0
- package/dist/__tests__/state.test.d.ts.map +1 -0
- package/dist/__tests__/state.test.js +117 -0
- package/dist/__tests__/state.test.js.map +1 -0
- package/dist/__tests__/stillTrue.test.d.ts +2 -0
- package/dist/__tests__/stillTrue.test.d.ts.map +1 -0
- package/dist/__tests__/stillTrue.test.js +53 -0
- package/dist/__tests__/stillTrue.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__/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 +183 -0
- package/dist/__tests__/tenant-notice-write-path.test.js.map +1 -0
- package/dist/__tests__/unknown-option-flags.test.d.ts +2 -0
- package/dist/__tests__/unknown-option-flags.test.d.ts.map +1 -0
- package/dist/__tests__/unknown-option-flags.test.js +81 -0
- package/dist/__tests__/unknown-option-flags.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 +235 -0
- package/dist/__tests__/update-check.test.js.map +1 -0
- package/dist/__tests__/update.test.js +684 -78
- 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 +77 -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 +33 -0
- package/dist/__tests__/vocabulary-leak.test.d.ts.map +1 -0
- package/dist/__tests__/vocabulary-leak.test.js +425 -0
- package/dist/__tests__/vocabulary-leak.test.js.map +1 -0
- package/dist/__tests__/workspace.test.d.ts +2 -0
- package/dist/__tests__/workspace.test.d.ts.map +1 -0
- package/dist/__tests__/workspace.test.js +267 -0
- package/dist/__tests__/workspace.test.js.map +1 -0
- package/dist/__tests__/workspaceNotice.test.d.ts +2 -0
- package/dist/__tests__/workspaceNotice.test.d.ts.map +1 -0
- package/dist/__tests__/workspaceNotice.test.js +551 -0
- package/dist/__tests__/workspaceNotice.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 +315 -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 +151 -0
- package/dist/commands/__tests__/rework.test.js.map +1 -0
- package/dist/commands/__tests__/search.test.d.ts +2 -0
- package/dist/commands/__tests__/search.test.d.ts.map +1 -0
- package/dist/commands/__tests__/search.test.js +102 -0
- package/dist/commands/__tests__/search.test.js.map +1 -0
- package/dist/commands/__tests__/seatWake.test.d.ts +2 -0
- package/dist/commands/__tests__/seatWake.test.d.ts.map +1 -0
- package/dist/commands/__tests__/seatWake.test.js +46 -0
- package/dist/commands/__tests__/seatWake.test.js.map +1 -0
- package/dist/commands/__tests__/tasksList.test.d.ts +2 -0
- package/dist/commands/__tests__/tasksList.test.d.ts.map +1 -0
- package/dist/commands/__tests__/tasksList.test.js +74 -0
- package/dist/commands/__tests__/tasksList.test.js.map +1 -0
- package/dist/commands/__tests__/tensionsList.test.d.ts +2 -0
- package/dist/commands/__tests__/tensionsList.test.d.ts.map +1 -0
- package/dist/commands/__tests__/tensionsList.test.js +63 -0
- package/dist/commands/__tests__/tensionsList.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 +101 -0
- package/dist/commands/accept-policy.js.map +1 -0
- package/dist/commands/admin/cockpit.d.ts +79 -0
- package/dist/commands/admin/cockpit.d.ts.map +1 -0
- package/dist/commands/admin/cockpit.js +553 -0
- package/dist/commands/admin/cockpit.js.map +1 -0
- package/dist/commands/admin/cockpit.test.d.ts +2 -0
- package/dist/commands/admin/cockpit.test.d.ts.map +1 -0
- package/dist/commands/admin/cockpit.test.js +104 -0
- package/dist/commands/admin/cockpit.test.js.map +1 -0
- package/dist/commands/admin/index.d.ts +70 -0
- package/dist/commands/admin/index.d.ts.map +1 -0
- package/dist/commands/admin/index.js +375 -0
- package/dist/commands/admin/index.js.map +1 -0
- package/dist/commands/admin/index.test.d.ts +2 -0
- package/dist/commands/admin/index.test.d.ts.map +1 -0
- package/dist/commands/admin/index.test.js +94 -0
- package/dist/commands/admin/index.test.js.map +1 -0
- package/dist/commands/admin/inspect.d.ts +30 -0
- package/dist/commands/admin/inspect.d.ts.map +1 -0
- package/dist/commands/admin/inspect.js +550 -0
- package/dist/commands/admin/inspect.js.map +1 -0
- package/dist/commands/admin/inspect.test.d.ts +7 -0
- package/dist/commands/admin/inspect.test.d.ts.map +1 -0
- package/dist/commands/admin/inspect.test.js +90 -0
- package/dist/commands/admin/inspect.test.js.map +1 -0
- package/dist/commands/admin/manage.d.ts +8 -0
- package/dist/commands/admin/manage.d.ts.map +1 -0
- package/dist/commands/admin/manage.js +53 -0
- package/dist/commands/admin/manage.js.map +1 -0
- package/dist/commands/admin/manage.test.d.ts +2 -0
- package/dist/commands/admin/manage.test.d.ts.map +1 -0
- package/dist/commands/admin/manage.test.js +103 -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 +54 -0
- package/dist/commands/admin/seed.d.ts.map +1 -0
- package/dist/commands/admin/seed.js +642 -0
- package/dist/commands/admin/seed.js.map +1 -0
- package/dist/commands/admin/seed.test.d.ts +10 -0
- package/dist/commands/admin/seed.test.d.ts.map +1 -0
- package/dist/commands/admin/seed.test.js +90 -0
- package/dist/commands/admin/seed.test.js.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts +16 -0
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.generated.js +57 -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 +109 -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 +19 -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 +31 -0
- package/dist/commands/admin/seedStatusColor.test.js.map +1 -0
- package/dist/commands/brief.d.ts.map +1 -1
- package/dist/commands/brief.js +36 -14
- package/dist/commands/brief.js.map +1 -1
- package/dist/commands/capture.d.ts +18 -10
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +140 -69
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/chain-walk.d.ts.map +1 -1
- package/dist/commands/chain-walk.js +9 -6
- package/dist/commands/chain-walk.js.map +1 -1
- package/dist/commands/changes.d.ts.map +1 -1
- package/dist/commands/changes.js +9 -6
- package/dist/commands/changes.js.map +1 -1
- package/dist/commands/codex-prep.d.ts +23 -0
- package/dist/commands/codex-prep.d.ts.map +1 -0
- package/dist/commands/codex-prep.js +54 -0
- package/dist/commands/codex-prep.js.map +1 -0
- package/dist/commands/collections.d.ts +22 -0
- package/dist/commands/collections.d.ts.map +1 -0
- package/dist/commands/collections.js +69 -0
- package/dist/commands/collections.js.map +1 -0
- package/dist/commands/conflicts.d.ts +55 -0
- package/dist/commands/conflicts.d.ts.map +1 -0
- package/dist/commands/conflicts.js +265 -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 +264 -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 +47 -0
- package/dist/commands/connect-config.test.js.map +1 -0
- package/dist/commands/connect-decline.test.d.ts +2 -0
- package/dist/commands/connect-decline.test.d.ts.map +1 -0
- package/dist/commands/connect-decline.test.js +70 -0
- package/dist/commands/connect-decline.test.js.map +1 -0
- package/dist/commands/connect-integration.test.d.ts +7 -0
- package/dist/commands/connect-integration.test.d.ts.map +1 -0
- package/dist/commands/connect-integration.test.js +232 -0
- package/dist/commands/connect-integration.test.js.map +1 -0
- package/dist/commands/connect-legacy-migration.test.d.ts +2 -0
- package/dist/commands/connect-legacy-migration.test.d.ts.map +1 -0
- package/dist/commands/connect-legacy-migration.test.js +108 -0
- package/dist/commands/connect-legacy-migration.test.js.map +1 -0
- package/dist/commands/connect-redeem-failure.test.d.ts +2 -0
- package/dist/commands/connect-redeem-failure.test.d.ts.map +1 -0
- package/dist/commands/connect-redeem-failure.test.js +133 -0
- package/dist/commands/connect-redeem-failure.test.js.map +1 -0
- package/dist/commands/connect-screens.d.ts +17 -0
- package/dist/commands/connect-screens.d.ts.map +1 -0
- package/dist/commands/connect-screens.js +28 -0
- package/dist/commands/connect-screens.js.map +1 -0
- package/dist/commands/connect-screens.test.d.ts +2 -0
- package/dist/commands/connect-screens.test.d.ts.map +1 -0
- package/dist/commands/connect-screens.test.js +19 -0
- package/dist/commands/connect-screens.test.js.map +1 -0
- package/dist/commands/connect-seal.test.d.ts +2 -0
- package/dist/commands/connect-seal.test.d.ts.map +1 -0
- package/dist/commands/connect-seal.test.js +54 -0
- package/dist/commands/connect-seal.test.js.map +1 -0
- package/dist/commands/connect.d.ts +38 -0
- package/dist/commands/connect.d.ts.map +1 -0
- package/dist/commands/connect.js +424 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/connect.test.d.ts +6 -0
- package/dist/commands/connect.test.d.ts.map +1 -0
- package/dist/commands/connect.test.js +521 -0
- package/dist/commands/connect.test.js.map +1 -0
- package/dist/commands/constellation.d.ts.map +1 -1
- package/dist/commands/constellation.js +9 -6
- package/dist/commands/constellation.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +9 -6
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/cross-cut.d.ts.map +1 -1
- package/dist/commands/cross-cut.js +3 -5
- 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 +75 -0
- package/dist/commands/direction.js.map +1 -0
- package/dist/commands/doctor.d.ts +18 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +364 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/doctor.test.d.ts +8 -0
- package/dist/commands/doctor.test.d.ts.map +1 -0
- package/dist/commands/doctor.test.js +652 -0
- package/dist/commands/doctor.test.js.map +1 -0
- package/dist/commands/entryAccept.d.ts +63 -0
- package/dist/commands/entryAccept.d.ts.map +1 -0
- package/dist/commands/entryAccept.js +294 -0
- package/dist/commands/entryAccept.js.map +1 -0
- package/dist/commands/entryDiscardResolve.d.ts +9 -0
- package/dist/commands/entryDiscardResolve.d.ts.map +1 -0
- package/dist/commands/entryDiscardResolve.js +27 -0
- package/dist/commands/entryDiscardResolve.js.map +1 -0
- package/dist/commands/entryOwn.d.ts +10 -0
- package/dist/commands/entryOwn.d.ts.map +1 -0
- package/dist/commands/entryOwn.js +40 -0
- package/dist/commands/entryOwn.js.map +1 -0
- package/dist/commands/entryPreflight.d.ts +13 -0
- package/dist/commands/entryPreflight.d.ts.map +1 -0
- package/dist/commands/entryPreflight.js +58 -0
- package/dist/commands/entryPreflight.js.map +1 -0
- package/dist/commands/entryReplace.d.ts +7 -0
- package/dist/commands/entryReplace.d.ts.map +1 -0
- package/dist/commands/entryReplace.js +34 -0
- package/dist/commands/entryReplace.js.map +1 -0
- package/dist/commands/entryTick.d.ts +8 -0
- package/dist/commands/entryTick.d.ts.map +1 -0
- package/dist/commands/entryTick.js +42 -0
- package/dist/commands/entryTick.js.map +1 -0
- package/dist/commands/feedback.d.ts +39 -0
- package/dist/commands/feedback.d.ts.map +1 -0
- package/dist/commands/feedback.js +165 -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 +109 -0
- package/dist/commands/feedback.test.js.map +1 -0
- package/dist/commands/fields.d.ts.map +1 -1
- package/dist/commands/fields.js +9 -7
- 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.d.ts +5 -8
- package/dist/commands/get.d.ts.map +1 -1
- package/dist/commands/get.js +38 -45
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/history.d.ts +32 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +55 -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 +135 -0
- package/dist/commands/history.test.js.map +1 -0
- package/dist/commands/init.d.ts +41 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +266 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +107 -39
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/method.d.ts +7 -0
- package/dist/commands/method.d.ts.map +1 -0
- package/dist/commands/method.js +67 -0
- package/dist/commands/method.js.map +1 -0
- package/dist/commands/organisation.d.ts +12 -0
- package/dist/commands/organisation.d.ts.map +1 -0
- package/dist/commands/organisation.js +143 -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 +116 -0
- package/dist/commands/organisation.test.js.map +1 -0
- package/dist/commands/organisationHierarchy.d.ts +15 -0
- package/dist/commands/organisationHierarchy.d.ts.map +1 -0
- package/dist/commands/organisationHierarchy.js +102 -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 +144 -0
- package/dist/commands/organisationHierarchy.test.js.map +1 -0
- package/dist/commands/organisationWrite.d.ts +20 -0
- package/dist/commands/organisationWrite.d.ts.map +1 -0
- package/dist/commands/organisationWrite.js +44 -0
- package/dist/commands/organisationWrite.js.map +1 -0
- package/dist/commands/orient.d.ts +138 -39
- package/dist/commands/orient.d.ts.map +1 -1
- package/dist/commands/orient.js +248 -19
- package/dist/commands/orient.js.map +1 -1
- package/dist/commands/outcome.d.ts +131 -0
- package/dist/commands/outcome.d.ts.map +1 -0
- package/dist/commands/outcome.js +239 -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 +413 -0
- package/dist/commands/outcome.test.js.map +1 -0
- package/dist/commands/people.d.ts +6 -0
- package/dist/commands/people.d.ts.map +1 -0
- package/dist/commands/people.js +21 -0
- package/dist/commands/people.js.map +1 -0
- package/dist/commands/people.test.d.ts +2 -0
- package/dist/commands/people.test.d.ts.map +1 -0
- package/dist/commands/people.test.js +61 -0
- package/dist/commands/people.test.js.map +1 -0
- package/dist/commands/profile.d.ts +72 -0
- package/dist/commands/profile.d.ts.map +1 -0
- package/dist/commands/profile.js +351 -0
- package/dist/commands/profile.js.map +1 -0
- package/dist/commands/proof-run.d.ts +51 -0
- package/dist/commands/proof-run.d.ts.map +1 -0
- package/dist/commands/proof-run.js +209 -0
- package/dist/commands/proof-run.js.map +1 -0
- package/dist/commands/quality.d.ts +38 -0
- package/dist/commands/quality.d.ts.map +1 -0
- package/dist/commands/quality.js +99 -0
- package/dist/commands/quality.js.map +1 -0
- package/dist/commands/questions.d.ts +27 -0
- package/dist/commands/questions.d.ts.map +1 -0
- package/dist/commands/questions.js +255 -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 +261 -0
- package/dist/commands/questions.test.js.map +1 -0
- package/dist/commands/relate.d.ts +10 -0
- package/dist/commands/relate.d.ts.map +1 -1
- package/dist/commands/relate.js +149 -23
- 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 +88 -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 +96 -0
- package/dist/commands/rework.js.map +1 -0
- package/dist/commands/role.d.ts +90 -0
- package/dist/commands/role.d.ts.map +1 -0
- package/dist/commands/role.js +172 -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 +345 -0
- package/dist/commands/role.test.js.map +1 -0
- package/dist/commands/scoreboard.d.ts +23 -0
- package/dist/commands/scoreboard.d.ts.map +1 -0
- package/dist/commands/scoreboard.js +33 -0
- package/dist/commands/scoreboard.js.map +1 -0
- package/dist/commands/scoreboard.test.d.ts +2 -0
- package/dist/commands/scoreboard.test.d.ts.map +1 -0
- package/dist/commands/scoreboard.test.js +51 -0
- package/dist/commands/scoreboard.test.js.map +1 -0
- package/dist/commands/search.d.ts +14 -2
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +53 -7
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/seatWake.d.ts +36 -0
- package/dist/commands/seatWake.d.ts.map +1 -0
- package/dist/commands/seatWake.js +45 -0
- package/dist/commands/seatWake.js.map +1 -0
- package/dist/commands/session-hook.d.ts +38 -0
- package/dist/commands/session-hook.d.ts.map +1 -0
- package/dist/commands/session-hook.js +97 -0
- package/dist/commands/session-hook.js.map +1 -0
- package/dist/commands/session-hook.test.d.ts +2 -0
- package/dist/commands/session-hook.test.d.ts.map +1 -0
- package/dist/commands/session-hook.test.js +89 -0
- package/dist/commands/session-hook.test.js.map +1 -0
- package/dist/commands/session.d.ts +64 -7
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +472 -78
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts +7 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +101 -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/stillTrue.d.ts +14 -0
- package/dist/commands/stillTrue.d.ts.map +1 -0
- package/dist/commands/stillTrue.js +47 -0
- package/dist/commands/stillTrue.js.map +1 -0
- package/dist/commands/tasksList.d.ts +12 -0
- package/dist/commands/tasksList.d.ts.map +1 -0
- package/dist/commands/tasksList.js +45 -0
- package/dist/commands/tasksList.js.map +1 -0
- package/dist/commands/tensionsList.d.ts +5 -0
- package/dist/commands/tensionsList.d.ts.map +1 -0
- package/dist/commands/tensionsList.js +25 -0
- package/dist/commands/tensionsList.js.map +1 -0
- package/dist/commands/update.d.ts +26 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +255 -54
- 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 +20 -10
- 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 +54 -0
- package/dist/commands/welcome.js.map +1 -0
- package/dist/commands/whoami.d.ts +23 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +132 -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 +145 -0
- package/dist/commands/whoami.test.js.map +1 -0
- package/dist/commands/workspace.d.ts +46 -0
- package/dist/commands/workspace.d.ts.map +1 -0
- package/dist/commands/workspace.js +195 -0
- package/dist/commands/workspace.js.map +1 -0
- package/dist/formatters/__tests__/orient-openTasks.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-openTasks.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-openTasks.test.js +76 -0
- package/dist/formatters/__tests__/orient-openTasks.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js +37 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts +6 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.js +308 -0
- package/dist/formatters/__tests__/orient-provenance.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.js +92 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.js +68 -0
- package/dist/formatters/__tests__/orient-workPackageList.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 +199 -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 +273 -0
- package/dist/formatters/__tests__/session.test.js.map +1 -0
- package/dist/formatters/__tests__/tensionsList.test.d.ts +2 -0
- package/dist/formatters/__tests__/tensionsList.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/tensionsList.test.js +30 -0
- package/dist/formatters/__tests__/tensionsList.test.js.map +1 -0
- package/dist/formatters/brief.d.ts +7 -15
- package/dist/formatters/brief.d.ts.map +1 -1
- package/dist/formatters/brief.js +18 -15
- 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 +33 -0
- package/dist/formatters/brief.test.js.map +1 -0
- package/dist/formatters/capture.d.ts +44 -6
- package/dist/formatters/capture.d.ts.map +1 -1
- package/dist/formatters/capture.js +66 -9
- package/dist/formatters/capture.js.map +1 -1
- package/dist/formatters/coaching.d.ts +59 -0
- package/dist/formatters/coaching.d.ts.map +1 -0
- package/dist/formatters/coaching.js +51 -0
- package/dist/formatters/coaching.js.map +1 -0
- package/dist/formatters/collections.d.ts +39 -0
- package/dist/formatters/collections.d.ts.map +1 -0
- package/dist/formatters/collections.js +102 -0
- package/dist/formatters/collections.js.map +1 -0
- package/dist/formatters/conflicts.d.ts +104 -0
- package/dist/formatters/conflicts.d.ts.map +1 -0
- package/dist/formatters/conflicts.js +130 -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 +236 -0
- package/dist/formatters/conflicts.test.js.map +1 -0
- package/dist/formatters/constellation.d.ts +2 -0
- package/dist/formatters/constellation.d.ts.map +1 -1
- package/dist/formatters/constellation.js +2 -0
- package/dist/formatters/constellation.js.map +1 -1
- 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 +100 -5
- package/dist/formatters/entry.d.ts.map +1 -1
- package/dist/formatters/entry.js +137 -21
- package/dist/formatters/entry.js.map +1 -1
- package/dist/formatters/entryAccept.d.ts +69 -0
- package/dist/formatters/entryAccept.d.ts.map +1 -0
- package/dist/formatters/entryAccept.js +71 -0
- package/dist/formatters/entryAccept.js.map +1 -0
- package/dist/formatters/feedback.d.ts +61 -0
- package/dist/formatters/feedback.d.ts.map +1 -0
- package/dist/formatters/feedback.js +95 -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 +142 -0
- package/dist/formatters/feedback.test.js.map +1 -0
- package/dist/formatters/fields.d.ts +7 -1
- package/dist/formatters/fields.d.ts.map +1 -1
- package/dist/formatters/fields.js +9 -3
- package/dist/formatters/fields.js.map +1 -1
- package/dist/formatters/fields.test.d.ts +2 -0
- package/dist/formatters/fields.test.d.ts.map +1 -0
- package/dist/formatters/fields.test.js +42 -0
- package/dist/formatters/fields.test.js.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts +2 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js +22 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js.map +1 -0
- package/dist/formatters/orient.d.ts +196 -46
- package/dist/formatters/orient.d.ts.map +1 -1
- package/dist/formatters/orient.js +304 -109
- 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 +74 -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 +69 -0
- package/dist/formatters/orient.rituals.test.js.map +1 -0
- package/dist/formatters/orient.taskAlignment.test.d.ts +2 -0
- package/dist/formatters/orient.taskAlignment.test.d.ts.map +1 -0
- package/dist/formatters/orient.taskAlignment.test.js +69 -0
- package/dist/formatters/orient.taskAlignment.test.js.map +1 -0
- package/dist/formatters/orientDegradation.d.ts +35 -0
- package/dist/formatters/orientDegradation.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.js +47 -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 +26 -0
- package/dist/formatters/orientDegradation.test.js.map +1 -0
- package/dist/formatters/orientDirection.d.ts +25 -0
- package/dist/formatters/orientDirection.d.ts.map +1 -0
- package/dist/formatters/orientDirection.js +7 -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 +65 -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/plannedWorkCounts.d.ts +16 -0
- package/dist/formatters/plannedWorkCounts.d.ts.map +1 -0
- package/dist/formatters/plannedWorkCounts.js +15 -0
- package/dist/formatters/plannedWorkCounts.js.map +1 -0
- package/dist/formatters/qualityChecks.d.ts +21 -0
- package/dist/formatters/qualityChecks.d.ts.map +1 -0
- package/dist/formatters/qualityChecks.js +132 -0
- package/dist/formatters/qualityChecks.js.map +1 -0
- package/dist/formatters/questions.d.ts +90 -0
- package/dist/formatters/questions.d.ts.map +1 -0
- package/dist/formatters/questions.js +126 -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 +176 -0
- package/dist/formatters/questions.test.js.map +1 -0
- package/dist/formatters/relate.d.ts +13 -0
- package/dist/formatters/relate.d.ts.map +1 -1
- package/dist/formatters/relate.js +15 -2
- 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 +91 -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 +144 -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 +265 -0
- package/dist/formatters/scoreboard.test.js.map +1 -0
- package/dist/formatters/search.d.ts +40 -4
- package/dist/formatters/search.d.ts.map +1 -1
- package/dist/formatters/search.js +42 -10
- 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 +86 -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 +280 -0
- package/dist/formatters/session-feedback.test.js.map +1 -0
- package/dist/formatters/session.d.ts +137 -5
- package/dist/formatters/session.d.ts.map +1 -1
- package/dist/formatters/session.js +303 -21
- package/dist/formatters/session.js.map +1 -1
- package/dist/formatters/spineCheck.d.ts +14 -0
- package/dist/formatters/spineCheck.d.ts.map +1 -0
- package/dist/formatters/spineCheck.js +129 -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 +85 -0
- package/dist/formatters/spineCheck.test.js.map +1 -0
- package/dist/formatters/tensionsList.d.ts +17 -0
- package/dist/formatters/tensionsList.d.ts.map +1 -0
- package/dist/formatters/tensionsList.js +33 -0
- package/dist/formatters/tensionsList.js.map +1 -0
- package/dist/formatters/update.d.ts +26 -0
- package/dist/formatters/update.d.ts.map +1 -1
- package/dist/formatters/update.js +40 -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 +71 -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 +16 -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/routeLatencyBudget.generated.d.ts +54 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.js +258 -0
- package/dist/generated/routeLatencyBudget.generated.js.map +1 -0
- package/dist/handleCliError.d.ts +38 -0
- package/dist/handleCliError.d.ts.map +1 -0
- package/dist/handleCliError.js +132 -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 +411 -375
- package/dist/index.js.map +1 -1
- 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/adminConfig.d.ts +48 -0
- package/dist/lib/adminConfig.d.ts.map +1 -0
- package/dist/lib/adminConfig.js +126 -0
- package/dist/lib/adminConfig.js.map +1 -0
- package/dist/lib/boundScope.d.ts +94 -0
- package/dist/lib/boundScope.d.ts.map +1 -0
- package/dist/lib/boundScope.js +205 -0
- package/dist/lib/boundScope.js.map +1 -0
- package/dist/lib/canonicalRefs.d.ts +155 -0
- package/dist/lib/canonicalRefs.d.ts.map +1 -0
- package/dist/lib/canonicalRefs.js +131 -0
- package/dist/lib/canonicalRefs.js.map +1 -0
- package/dist/lib/captureLink.d.ts +7 -0
- package/dist/lib/captureLink.d.ts.map +1 -0
- package/dist/lib/captureLink.js +29 -0
- package/dist/lib/captureLink.js.map +1 -0
- package/dist/lib/changedByBlank.d.ts +12 -0
- package/dist/lib/changedByBlank.d.ts.map +1 -0
- package/dist/lib/changedByBlank.js +11 -0
- package/dist/lib/changedByBlank.js.map +1 -0
- package/dist/lib/checklist.d.ts +165 -0
- package/dist/lib/checklist.d.ts.map +1 -0
- package/dist/lib/checklist.js +252 -0
- package/dist/lib/checklist.js.map +1 -0
- package/dist/lib/cliFirstRun.d.ts +36 -0
- package/dist/lib/cliFirstRun.d.ts.map +1 -0
- package/dist/lib/cliFirstRun.js +36 -0
- package/dist/lib/cliFirstRun.js.map +1 -0
- package/dist/lib/client.d.ts +58 -28
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +368 -62
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/compose-wrapup-view.d.ts +66 -0
- package/dist/lib/compose-wrapup-view.d.ts.map +1 -0
- package/dist/lib/compose-wrapup-view.js +39 -0
- package/dist/lib/compose-wrapup-view.js.map +1 -0
- package/dist/lib/config.d.ts +154 -6
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +394 -73
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/configResult.d.ts +110 -0
- package/dist/lib/configResult.d.ts.map +1 -0
- package/dist/lib/configResult.js +189 -0
- package/dist/lib/configResult.js.map +1 -0
- package/dist/lib/conflictResolution.d.ts +132 -0
- package/dist/lib/conflictResolution.d.ts.map +1 -0
- package/dist/lib/conflictResolution.js +96 -0
- package/dist/lib/conflictResolution.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/connectProfileName.d.ts +36 -0
- package/dist/lib/connectProfileName.d.ts.map +1 -0
- package/dist/lib/connectProfileName.js +72 -0
- package/dist/lib/connectProfileName.js.map +1 -0
- package/dist/lib/connectProfileName.test.d.ts +2 -0
- package/dist/lib/connectProfileName.test.d.ts.map +1 -0
- package/dist/lib/connectProfileName.test.js +100 -0
- package/dist/lib/connectProfileName.test.js.map +1 -0
- package/dist/lib/constants.d.ts +51 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +90 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/conversation.d.ts +48 -0
- package/dist/lib/conversation.d.ts.map +1 -0
- package/dist/lib/conversation.js +136 -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/dateValidation.d.ts +9 -0
- package/dist/lib/dateValidation.d.ts.map +1 -0
- package/dist/lib/dateValidation.js +38 -0
- package/dist/lib/dateValidation.js.map +1 -0
- package/dist/lib/deployment.d.ts +23 -0
- package/dist/lib/deployment.d.ts.map +1 -0
- package/dist/lib/deployment.js +78 -0
- package/dist/lib/deployment.js.map +1 -0
- package/dist/lib/deployment.test.d.ts +5 -0
- package/dist/lib/deployment.test.d.ts.map +1 -0
- package/dist/lib/deployment.test.js +73 -0
- package/dist/lib/deployment.test.js.map +1 -0
- 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 +153 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +158 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/format.d.ts +10 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +27 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/gatewayTimeout.d.ts +88 -0
- package/dist/lib/gatewayTimeout.d.ts.map +1 -0
- package/dist/lib/gatewayTimeout.js +124 -0
- package/dist/lib/gatewayTimeout.js.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts +2 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js +73 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js.map +1 -0
- package/dist/lib/glossary.d.ts +7 -0
- package/dist/lib/glossary.d.ts.map +1 -0
- package/dist/lib/glossary.js +12 -0
- package/dist/lib/glossary.js.map +1 -0
- package/dist/lib/historyLine.d.ts +52 -0
- package/dist/lib/historyLine.d.ts.map +1 -0
- package/dist/lib/historyLine.js +107 -0
- package/dist/lib/historyLine.js.map +1 -0
- package/dist/lib/judgeWait.d.ts +50 -0
- package/dist/lib/judgeWait.d.ts.map +1 -0
- package/dist/lib/judgeWait.js +64 -0
- package/dist/lib/judgeWait.js.map +1 -0
- package/dist/lib/kernelEnvelope.d.ts +61 -0
- package/dist/lib/kernelEnvelope.d.ts.map +1 -0
- package/dist/lib/kernelEnvelope.js +98 -0
- package/dist/lib/kernelEnvelope.js.map +1 -0
- package/dist/lib/keyResultLines.d.ts +27 -0
- package/dist/lib/keyResultLines.d.ts.map +1 -0
- package/dist/lib/keyResultLines.js +32 -0
- package/dist/lib/keyResultLines.js.map +1 -0
- package/dist/lib/limits.d.ts +141 -0
- package/dist/lib/limits.d.ts.map +1 -0
- package/dist/lib/limits.js +213 -0
- package/dist/lib/limits.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/nameFromText.d.ts +15 -0
- package/dist/lib/nameFromText.d.ts.map +1 -0
- package/dist/lib/nameFromText.js +36 -0
- package/dist/lib/nameFromText.js.map +1 -0
- package/dist/lib/notFoundLine.d.ts +10 -0
- package/dist/lib/notFoundLine.d.ts.map +1 -0
- package/dist/lib/notFoundLine.js +15 -0
- package/dist/lib/notFoundLine.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/outcomeObjectiveLines.d.ts +34 -0
- package/dist/lib/outcomeObjectiveLines.d.ts.map +1 -0
- package/dist/lib/outcomeObjectiveLines.js +30 -0
- package/dist/lib/outcomeObjectiveLines.js.map +1 -0
- package/dist/lib/ownerLine.d.ts +90 -0
- package/dist/lib/ownerLine.d.ts.map +1 -0
- package/dist/lib/ownerLine.js +77 -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/pinnedRole.d.ts +29 -0
- package/dist/lib/pinnedRole.d.ts.map +1 -0
- package/dist/lib/pinnedRole.js +115 -0
- package/dist/lib/pinnedRole.js.map +1 -0
- package/dist/lib/platformGlossary.d.ts +22 -0
- package/dist/lib/platformGlossary.d.ts.map +1 -0
- package/dist/lib/platformGlossary.js +26 -0
- package/dist/lib/platformGlossary.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 +36 -0
- package/dist/lib/previewBanner.js.map +1 -0
- package/dist/lib/priority.d.ts +64 -0
- package/dist/lib/priority.d.ts.map +1 -0
- package/dist/lib/priority.js +31 -0
- package/dist/lib/priority.js.map +1 -0
- package/dist/lib/privateFile.d.ts +13 -0
- package/dist/lib/privateFile.d.ts.map +1 -0
- package/dist/lib/privateFile.js +65 -0
- package/dist/lib/privateFile.js.map +1 -0
- package/dist/lib/privateFile.test.d.ts +2 -0
- package/dist/lib/privateFile.test.d.ts.map +1 -0
- package/dist/lib/privateFile.test.js +76 -0
- package/dist/lib/privateFile.test.js.map +1 -0
- package/dist/lib/productbrain-files.d.ts +108 -0
- package/dist/lib/productbrain-files.d.ts.map +1 -0
- package/dist/lib/productbrain-files.js +240 -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 +518 -0
- package/dist/lib/productbrain-files.test.js.map +1 -0
- package/dist/lib/profiles.d.ts +89 -0
- package/dist/lib/profiles.d.ts.map +1 -0
- package/dist/lib/profiles.js +240 -0
- package/dist/lib/profiles.js.map +1 -0
- package/dist/lib/projectConfig.d.ts +130 -0
- package/dist/lib/projectConfig.d.ts.map +1 -0
- package/dist/lib/projectConfig.js +252 -0
- package/dist/lib/projectConfig.js.map +1 -0
- package/dist/lib/prompts.d.ts +67 -0
- package/dist/lib/prompts.d.ts.map +1 -0
- package/dist/lib/prompts.js +134 -0
- package/dist/lib/prompts.js.map +1 -0
- package/dist/lib/proseBody.d.ts +14 -0
- package/dist/lib/proseBody.d.ts.map +1 -0
- package/dist/lib/proseBody.js +25 -0
- package/dist/lib/proseBody.js.map +1 -0
- package/dist/lib/rate-limit.d.ts +40 -0
- package/dist/lib/rate-limit.d.ts.map +1 -0
- package/dist/lib/rate-limit.js +89 -0
- package/dist/lib/rate-limit.js.map +1 -0
- package/dist/lib/readinessNotices.d.ts +2 -0
- package/dist/lib/readinessNotices.d.ts.map +1 -0
- package/dist/lib/readinessNotices.js +12 -0
- package/dist/lib/readinessNotices.js.map +1 -0
- package/dist/lib/replyLines.d.ts +22 -0
- package/dist/lib/replyLines.d.ts.map +1 -0
- package/dist/lib/replyLines.js +69 -0
- package/dist/lib/replyLines.js.map +1 -0
- package/dist/lib/reportedProfile.d.ts +18 -0
- package/dist/lib/reportedProfile.d.ts.map +1 -0
- package/dist/lib/reportedProfile.js +148 -0
- package/dist/lib/reportedProfile.js.map +1 -0
- package/dist/lib/restsOn.d.ts +33 -0
- package/dist/lib/restsOn.d.ts.map +1 -0
- package/dist/lib/restsOn.js +34 -0
- package/dist/lib/restsOn.js.map +1 -0
- package/dist/lib/routeCommandWords.d.ts +13 -0
- package/dist/lib/routeCommandWords.d.ts.map +1 -0
- package/dist/lib/routeCommandWords.js +27 -0
- package/dist/lib/routeCommandWords.js.map +1 -0
- package/dist/lib/ruleListRender.d.ts +330 -0
- package/dist/lib/ruleListRender.d.ts.map +1 -0
- package/dist/lib/ruleListRender.js +396 -0
- package/dist/lib/ruleListRender.js.map +1 -0
- package/dist/lib/runner.d.ts +11 -1
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/runner.js +51 -11
- package/dist/lib/runner.js.map +1 -1
- package/dist/lib/seatRoster.d.ts +65 -0
- package/dist/lib/seatRoster.d.ts.map +1 -0
- package/dist/lib/seatRoster.js +41 -0
- package/dist/lib/seatRoster.js.map +1 -0
- package/dist/lib/seatSentence.d.ts +196 -0
- package/dist/lib/seatSentence.d.ts.map +1 -0
- package/dist/lib/seatSentence.js +214 -0
- package/dist/lib/seatSentence.js.map +1 -0
- package/dist/lib/session.d.ts +111 -4
- package/dist/lib/session.d.ts.map +1 -1
- package/dist/lib/session.js +318 -13
- package/dist/lib/session.js.map +1 -1
- package/dist/lib/sessionBinding.d.ts +62 -0
- package/dist/lib/sessionBinding.d.ts.map +1 -0
- package/dist/lib/sessionBinding.js +126 -0
- package/dist/lib/sessionBinding.js.map +1 -0
- package/dist/lib/sessionNotices.d.ts +52 -0
- package/dist/lib/sessionNotices.d.ts.map +1 -0
- package/dist/lib/sessionNotices.js +126 -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 +53 -0
- package/dist/lib/sessionNotices.test.js.map +1 -0
- package/dist/lib/sessionOpen.d.ts +26 -0
- package/dist/lib/sessionOpen.d.ts.map +1 -0
- package/dist/lib/sessionOpen.js +65 -0
- package/dist/lib/sessionOpen.js.map +1 -0
- package/dist/lib/sessionStartCommands.d.ts +5 -0
- package/dist/lib/sessionStartCommands.d.ts.map +1 -0
- package/dist/lib/sessionStartCommands.js +12 -0
- package/dist/lib/sessionStartCommands.js.map +1 -0
- package/dist/lib/sessionStartDoors.d.ts +18 -0
- package/dist/lib/sessionStartDoors.d.ts.map +1 -0
- package/dist/lib/sessionStartDoors.js +21 -0
- package/dist/lib/sessionStartDoors.js.map +1 -0
- package/dist/lib/sessionStartWords.d.ts +18 -0
- package/dist/lib/sessionStartWords.d.ts.map +1 -0
- package/dist/lib/sessionStartWords.js +34 -0
- package/dist/lib/sessionStartWords.js.map +1 -0
- package/dist/lib/spineRungs.d.ts +62 -0
- package/dist/lib/spineRungs.d.ts.map +1 -0
- package/dist/lib/spineRungs.js +41 -0
- package/dist/lib/spineRungs.js.map +1 -0
- package/dist/lib/spineVerdictRead.d.ts +76 -0
- package/dist/lib/spineVerdictRead.d.ts.map +1 -0
- package/dist/lib/spineVerdictRead.js +76 -0
- package/dist/lib/spineVerdictRead.js.map +1 -0
- package/dist/lib/spinner.d.ts +30 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/dist/lib/spinner.js +90 -0
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/spinner.test.d.ts +2 -0
- package/dist/lib/spinner.test.d.ts.map +1 -0
- package/dist/lib/spinner.test.js +82 -0
- package/dist/lib/spinner.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 +173 -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/statusCategories.d.ts +168 -0
- package/dist/lib/statusCategories.d.ts.map +1 -0
- package/dist/lib/statusCategories.js +299 -0
- package/dist/lib/statusCategories.js.map +1 -0
- package/dist/lib/strip.d.ts +18 -0
- package/dist/lib/strip.d.ts.map +1 -1
- package/dist/lib/strip.js +62 -0
- package/dist/lib/strip.js.map +1 -1
- package/dist/lib/style.d.ts +109 -0
- package/dist/lib/style.d.ts.map +1 -0
- package/dist/lib/style.js +183 -0
- package/dist/lib/style.js.map +1 -0
- package/dist/lib/style.test.d.ts +7 -0
- package/dist/lib/style.test.d.ts.map +1 -0
- package/dist/lib/style.test.js +262 -0
- package/dist/lib/style.test.js.map +1 -0
- package/dist/lib/taskDue.d.ts +34 -0
- package/dist/lib/taskDue.d.ts.map +1 -0
- package/dist/lib/taskDue.js +63 -0
- package/dist/lib/taskDue.js.map +1 -0
- package/dist/lib/tokenConstants.d.ts +31 -0
- package/dist/lib/tokenConstants.d.ts.map +1 -0
- package/dist/lib/tokenConstants.js +34 -0
- package/dist/lib/tokenConstants.js.map +1 -0
- package/dist/lib/update-check.d.ts +51 -0
- package/dist/lib/update-check.d.ts.map +1 -0
- package/dist/lib/update-check.js +261 -0
- package/dist/lib/update-check.js.map +1 -0
- package/dist/lib/upgrade-runner.d.ts +38 -0
- package/dist/lib/upgrade-runner.d.ts.map +1 -0
- package/dist/lib/upgrade-runner.js +140 -0
- package/dist/lib/upgrade-runner.js.map +1 -0
- package/dist/lib/workPackageList.d.ts +150 -0
- package/dist/lib/workPackageList.d.ts.map +1 -0
- package/dist/lib/workPackageList.js +143 -0
- package/dist/lib/workPackageList.js.map +1 -0
- package/dist/lib/workspace-probe.d.ts +28 -0
- package/dist/lib/workspace-probe.d.ts.map +1 -0
- package/dist/lib/workspace-probe.js +20 -0
- package/dist/lib/workspace-probe.js.map +1 -0
- package/dist/lib/workspaceNotice.d.ts +201 -0
- package/dist/lib/workspaceNotice.d.ts.map +1 -0
- package/dist/lib/workspaceNotice.js +346 -0
- package/dist/lib/workspaceNotice.js.map +1 -0
- package/dist/lib/workspaceVocabCache.d.ts +54 -0
- package/dist/lib/workspaceVocabCache.d.ts.map +1 -0
- package/dist/lib/workspaceVocabCache.js +92 -0
- package/dist/lib/workspaceVocabCache.js.map +1 -0
- package/dist/registerEntryCommands.d.ts +18 -0
- package/dist/registerEntryCommands.d.ts.map +1 -0
- package/dist/registerEntryCommands.js +152 -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 +29 -0
- package/dist/registerOutcomeCommands.js.map +1 -0
- package/dist/registerRoleCommands.d.ts +11 -0
- package/dist/registerRoleCommands.d.ts.map +1 -0
- package/dist/registerRoleCommands.js +60 -0
- package/dist/registerRoleCommands.js.map +1 -0
- package/dist/registerTensionsCommands.d.ts +11 -0
- package/dist/registerTensionsCommands.d.ts.map +1 -0
- package/dist/registerTensionsCommands.js +28 -0
- package/dist/registerTensionsCommands.js.map +1 -0
- package/dist/scoreboard/diagnose.d.ts +133 -0
- package/dist/scoreboard/diagnose.d.ts.map +1 -0
- package/dist/scoreboard/diagnose.js +150 -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 +189 -0
- package/dist/scoreboard/diagnose.test.js.map +1 -0
- package/dist/scoreboard/floors.d.ts +34 -0
- package/dist/scoreboard/floors.d.ts.map +1 -0
- package/dist/scoreboard/floors.js +11 -0
- package/dist/scoreboard/floors.js.map +1 -0
- package/dist/served-doors.test.d.ts +2 -0
- package/dist/served-doors.test.d.ts.map +1 -0
- package/dist/served-doors.test.js +169 -0
- package/dist/served-doors.test.js.map +1 -0
- package/package.json +16 -8
- package/dist/__tests__/audit.test.d.ts +0 -2
- package/dist/__tests__/audit.test.d.ts.map +0 -1
- package/dist/__tests__/audit.test.js +0 -394
- package/dist/__tests__/audit.test.js.map +0 -1
- package/dist/__tests__/handshake.test.d.ts +0 -2
- package/dist/__tests__/handshake.test.d.ts.map +0 -1
- package/dist/__tests__/handshake.test.js +0 -187
- package/dist/__tests__/handshake.test.js.map +0 -1
- package/dist/__tests__/ingest.test.d.ts +0 -2
- package/dist/__tests__/ingest.test.d.ts.map +0 -1
- package/dist/__tests__/ingest.test.js +0 -185
- package/dist/__tests__/ingest.test.js.map +0 -1
- 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 -139
- package/dist/__tests__/promote.test.js.map +0 -1
- package/dist/__tests__/proposals.test.d.ts +0 -2
- package/dist/__tests__/proposals.test.d.ts.map +0 -1
- package/dist/__tests__/proposals.test.js +0 -190
- package/dist/__tests__/proposals.test.js.map +0 -1
- package/dist/__tests__/repo-detect.test.d.ts +0 -2
- package/dist/__tests__/repo-detect.test.d.ts.map +0 -1
- package/dist/__tests__/repo-detect.test.js +0 -119
- package/dist/__tests__/repo-detect.test.js.map +0 -1
- package/dist/commands/accept.d.ts +0 -18
- package/dist/commands/accept.d.ts.map +0 -1
- package/dist/commands/accept.js +0 -72
- package/dist/commands/accept.js.map +0 -1
- package/dist/commands/audit.d.ts +0 -25
- package/dist/commands/audit.d.ts.map +0 -1
- package/dist/commands/audit.js +0 -188
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/brand-pack.d.ts +0 -2
- package/dist/commands/brand-pack.d.ts.map +0 -1
- package/dist/commands/brand-pack.js +0 -25
- package/dist/commands/brand-pack.js.map +0 -1
- package/dist/commands/handshake.d.ts +0 -18
- package/dist/commands/handshake.d.ts.map +0 -1
- package/dist/commands/handshake.js +0 -378
- package/dist/commands/handshake.js.map +0 -1
- package/dist/commands/ingest.d.ts +0 -14
- package/dist/commands/ingest.d.ts.map +0 -1
- package/dist/commands/ingest.js +0 -181
- package/dist/commands/ingest.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 -48
- package/dist/commands/promote.js.map +0 -1
- package/dist/commands/proposals.d.ts +0 -9
- package/dist/commands/proposals.d.ts.map +0 -1
- package/dist/commands/proposals.js +0 -24
- package/dist/commands/proposals.js.map +0 -1
- package/dist/commands/reject.d.ts +0 -14
- package/dist/commands/reject.d.ts.map +0 -1
- package/dist/commands/reject.js +0 -37
- package/dist/commands/reject.js.map +0 -1
- package/dist/formatters/audit.d.ts +0 -46
- package/dist/formatters/audit.d.ts.map +0 -1
- package/dist/formatters/audit.js +0 -81
- package/dist/formatters/audit.js.map +0 -1
- package/dist/formatters/handshake.d.ts +0 -17
- package/dist/formatters/handshake.d.ts.map +0 -1
- package/dist/formatters/handshake.js +0 -51
- package/dist/formatters/handshake.js.map +0 -1
- package/dist/formatters/promote.d.ts +0 -29
- package/dist/formatters/promote.d.ts.map +0 -1
- package/dist/formatters/promote.js +0 -38
- package/dist/formatters/promote.js.map +0 -1
- package/dist/formatters/proposals.d.ts +0 -45
- package/dist/formatters/proposals.d.ts.map +0 -1
- package/dist/formatters/proposals.js +0 -62
- package/dist/formatters/proposals.js.map +0 -1
- package/dist/generators/adapters.d.ts +0 -10
- package/dist/generators/adapters.d.ts.map +0 -1
- package/dist/generators/adapters.js +0 -102
- package/dist/generators/adapters.js.map +0 -1
- package/dist/generators/briefing-md.d.ts +0 -8
- package/dist/generators/briefing-md.d.ts.map +0 -1
- package/dist/generators/briefing-md.js +0 -51
- package/dist/generators/briefing-md.js.map +0 -1
- package/dist/generators/context-md.d.ts +0 -8
- package/dist/generators/context-md.d.ts.map +0 -1
- package/dist/generators/context-md.js +0 -123
- package/dist/generators/context-md.js.map +0 -1
- package/dist/generators/portable-knowledge.d.ts +0 -72
- package/dist/generators/portable-knowledge.d.ts.map +0 -1
- package/dist/generators/portable-knowledge.js +0 -246
- package/dist/generators/portable-knowledge.js.map +0 -1
- package/dist/generators/portable-knowledge.test.d.ts +0 -2
- package/dist/generators/portable-knowledge.test.d.ts.map +0 -1
- package/dist/generators/portable-knowledge.test.js +0 -399
- package/dist/generators/portable-knowledge.test.js.map +0 -1
- package/dist/lib/repo-detect.d.ts +0 -14
- package/dist/lib/repo-detect.d.ts.map +0 -1
- package/dist/lib/repo-detect.js +0 -58
- package/dist/lib/repo-detect.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
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';
|
|
@@ -10,41 +9,79 @@ import { fileURLToPath } from 'node:url';
|
|
|
10
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
|
-
import { setOutputMode } from './lib/runner.js';
|
|
12
|
+
import { setOutputMode, setQuietMode, isJsonMode } from './lib/runner.js';
|
|
13
|
+
import { CLIError, ErrorCode } from './lib/errors.js';
|
|
14
|
+
import { handleCliError as handleError, silenceCommanderErrors } from './handleCliError.js';
|
|
14
15
|
import { runContext } from './commands/context.js';
|
|
15
|
-
import { runGet
|
|
16
|
+
import { runGet } from './commands/get.js';
|
|
17
|
+
import { runScoreboard } from './commands/scoreboard.js';
|
|
18
|
+
import { registerHistoryCommand } from './registerHistoryCommand.js';
|
|
19
|
+
import { runReworkReport } from './commands/rework.js';
|
|
20
|
+
import { runConnect } from './commands/connect.js';
|
|
16
21
|
import { runLogin } from './commands/login.js';
|
|
17
22
|
import { runOrient } from './commands/orient.js';
|
|
18
|
-
import { runSearch } from './commands/search.js';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
23
|
+
import { runSearch, searchWordings } from './commands/search.js';
|
|
24
|
+
import { runSessionId, runSessionReset, runSessionList, runSessionShow } from './commands/session.js';
|
|
25
|
+
import { registerSessionClose, registerSessionStart } from './commands/session-hook.js';
|
|
21
26
|
import { runCapture } from './commands/capture.js';
|
|
22
27
|
import { runUpdate } from './commands/update.js';
|
|
23
|
-
import {
|
|
24
|
-
import { runIngest } from './commands/ingest.js';
|
|
28
|
+
import { runRestore } from './commands/restore.js';
|
|
25
29
|
import { runFields } from './commands/fields.js';
|
|
26
30
|
import { runConstellation } from './commands/constellation.js';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { runAudit } from './commands/audit.js';
|
|
30
|
-
import { runProposals } from './commands/proposals.js';
|
|
31
|
-
import { runAccept } from './commands/accept.js';
|
|
32
|
-
import { runReject } from './commands/reject.js';
|
|
31
|
+
import { registerEntryCommands, registerRelateCommands } from './registerEntryCommands.js';
|
|
32
|
+
import { registerTasksCommands, registerTensionsCommands } from './registerTensionsCommands.js';
|
|
33
33
|
import { runChanges } from './commands/changes.js';
|
|
34
|
+
import { registerMethodCommands } from './commands/method.js'; // TASK-1214 same-line combine
|
|
35
|
+
import { registerOutcomeCommands } from './registerOutcomeCommands.js';
|
|
36
|
+
import { registerRoleCommands } from './registerRoleCommands.js';
|
|
34
37
|
import { runChainWalk } from './commands/chain-walk.js';
|
|
35
38
|
import { runCrossCut } from './commands/cross-cut.js';
|
|
36
39
|
import { runBrief, runCompoundBrief, isCompoundType } from './commands/brief.js';
|
|
37
40
|
import { runVerify } from './commands/verify.js';
|
|
41
|
+
import { runCodexPrep } from './commands/codex-prep.js';
|
|
42
|
+
import { runStillTrue } from './commands/stillTrue.js'; // same-line combine, TASK-384 S1
|
|
43
|
+
import { runCollectionsList, runCollectionsGet, runCollectionsAudit, runCollectionsExport } from './commands/collections.js';
|
|
44
|
+
import { runWorkspaceVerify, runDefinitionsDiff } from './commands/workspace.js';
|
|
45
|
+
import { runDoctor } from './commands/doctor.js';
|
|
46
|
+
import { runWhoami } from './commands/whoami.js';
|
|
47
|
+
import { runFiles } from './commands/files.js';
|
|
48
|
+
import { runUpgrade } from './commands/upgrade.js';
|
|
49
|
+
import { runProfileList, runProfileCreate, runProfileUse, runProfileDelete } from './commands/profile.js';
|
|
50
|
+
import { parseInitClient, runInit } from './commands/init.js';
|
|
51
|
+
import { runStatus } from './commands/status.js';
|
|
52
|
+
import { createAdminCommand } from './commands/admin/index.js';
|
|
53
|
+
import { createFeedbackCommand } from './commands/feedback.js';
|
|
54
|
+
import { createConflictsCommand } from './commands/conflicts.js';
|
|
55
|
+
import { createQuestionCommand } from './commands/questions.js';
|
|
56
|
+
import { createDirectionCommand } from './commands/direction.js';
|
|
57
|
+
import { createOrganisationCommand } from './commands/organisation.js';
|
|
58
|
+
import { createAcceptPolicyCommand } from './commands/accept-policy.js'; // WP-661 S3
|
|
59
|
+
import { runUsage } from './commands/usage.js';
|
|
60
|
+
import { runProofRun } from './commands/proof-run.js'; // same-line combine
|
|
61
|
+
import { registerQualityCommands } from './commands/quality.js';
|
|
62
|
+
import { formatGlossary } from './lib/glossary.js';
|
|
63
|
+
import { PLATFORM_GLOSSARY_TERMS } from './lib/platformGlossary.js';
|
|
64
|
+
import { AGENT_KEY_PREFIX, API_KEY_PREFIX } from './lib/tokenConstants.js';
|
|
65
|
+
import { heading } from './lib/style.js';
|
|
66
|
+
import { CLASH } from './lib/conflictResolution.js'; // TASK-1674: the clash word in --changed-by's help
|
|
67
|
+
import { printPreviewBanner } from './lib/previewBanner.js';
|
|
68
|
+
import { checkForUpdate } from './lib/update-check.js'; // same-line combine
|
|
69
|
+
import { CLI_INSTALL_COMMAND } from './lib/cliFirstRun.js';
|
|
70
|
+
import { ENTRY_BODY_HELP, ENTRY_NAME_HELP } from './lib/limits.js';
|
|
38
71
|
const program = new Command();
|
|
72
|
+
// WP-753 V2 (TASK-203): the global error handler lives in ./handleCliError.ts (STD-2/DEC-1724 —
|
|
73
|
+
// kept out of this grandfathered file); imported below as handleError for the call site's own name.
|
|
39
74
|
program
|
|
40
75
|
.name('pb')
|
|
41
76
|
.description('Product Brain — Chain knowledge + write-back CLI')
|
|
42
77
|
.version(cliPackageVersion.version)
|
|
43
78
|
// Global output mode flags (DEC-299, BET-181)
|
|
44
|
-
.option('--json', 'Output machine-readable JSON (
|
|
45
|
-
.option('--pretty', 'Force human-readable output even when
|
|
46
|
-
|
|
47
|
-
|
|
79
|
+
.option('--json', 'Output machine-readable JSON (the card is the default even when piped)')
|
|
80
|
+
.option('--pretty', 'Force human-readable output even when PB_JSON=1 is set')
|
|
81
|
+
.option('-q, --quiet', 'Suppress non-essential output (banners, hints, progress)')
|
|
82
|
+
.exitOverride(); // Throw CommanderError instead of calling process.exit directly
|
|
83
|
+
// Apply global output mode BEFORE subcommand actions run. Commander preAction hook signature: (hookedCommand = root program, actionCommand = the subcommand actually invoked).
|
|
84
|
+
program.hook('preAction', (_hookedCommand, actionCommand) => {
|
|
48
85
|
const globalOpts = program.opts();
|
|
49
86
|
if (globalOpts.json) {
|
|
50
87
|
setOutputMode('json');
|
|
@@ -52,381 +89,324 @@ program.hook('preAction', (thisCommand) => {
|
|
|
52
89
|
else if (globalOpts.pretty) {
|
|
53
90
|
setOutputMode('pretty');
|
|
54
91
|
}
|
|
55
|
-
// else: 'auto' (default) — TTY
|
|
56
|
-
|
|
92
|
+
// else: 'auto' (default) — isJsonMode() checks PB_JSON=1, never TTY (WP-744 / 1e-B)
|
|
93
|
+
if (globalOpts.quiet) {
|
|
94
|
+
setQuietMode(true);
|
|
95
|
+
}
|
|
96
|
+
// Ambient update notification — non-blocking, suppressed in JSON mode (WP-322 S1)
|
|
97
|
+
checkForUpdate(cliPackageVersion.version);
|
|
98
|
+
// 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.
|
|
99
|
+
printPreviewBanner(actionCommand);
|
|
100
|
+
});
|
|
101
|
+
// Default action — status dashboard when `pb` is invoked with no command. `pb --help` still works because Commander intercepts --help before the action runs.
|
|
102
|
+
program.action(async () => {
|
|
103
|
+
await runStatus({ args: program.args, version: cliPackageVersion.version });
|
|
57
104
|
});
|
|
58
105
|
program
|
|
59
|
-
.command('get <entry-
|
|
60
|
-
.description('Display full
|
|
61
|
-
.action(async (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
try {
|
|
67
|
-
await runGet({ entryId: entryId.trim() });
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
71
|
-
process.exit(1);
|
|
72
|
-
}
|
|
106
|
+
.command('get <entry-ids...>')
|
|
107
|
+
.description('Display full entries by ID (data, relations, last 10 history events); pb get A B C reads all three in one call')
|
|
108
|
+
.action(async (ids) => {
|
|
109
|
+
const entryIds = ids.map((id) => id.trim()).filter(Boolean);
|
|
110
|
+
if (entryIds.length === 0)
|
|
111
|
+
return void program.commands.find((c) => c.name() === 'get')?.help();
|
|
112
|
+
await runGet({ entryIds });
|
|
73
113
|
});
|
|
114
|
+
registerHistoryCommand(program); // WP-753 V2 (TASK-203): same-line combine, module-health shrink-only budget
|
|
74
115
|
program
|
|
75
|
-
.command('
|
|
76
|
-
.description('
|
|
77
|
-
.action(async (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
116
|
+
.command('scoreboard')
|
|
117
|
+
.description('Flywheel scoreboard — metrics + diagnosis layer (agent-primary; --json for structured consumption)')
|
|
118
|
+
.action(async () => {
|
|
119
|
+
await runScoreboard();
|
|
120
|
+
});
|
|
121
|
+
const qualityCmd = program
|
|
122
|
+
.command('quality')
|
|
123
|
+
.description('Quality-check surfaces');
|
|
124
|
+
registerQualityCommands(qualityCmd);
|
|
125
|
+
const reworkCmd = program
|
|
126
|
+
.command('rework')
|
|
127
|
+
.description('Report observed rework signals (fills the rework meter)');
|
|
128
|
+
reworkCmd
|
|
129
|
+
.command('report <entry-id>')
|
|
130
|
+
.description('Report a rework event attributed to a previously served governance entry (agent-native checkpoint; requires an active session)')
|
|
131
|
+
.requiredOption('--classification <kind>', 'revision | ci_review_correction | user_override')
|
|
132
|
+
.option('--via <kind>', 'How this was observed: followup_commit | ci_rerun | manual', 'manual')
|
|
133
|
+
.option('--attributable', 'Flag: this ci_review_correction is attributed to a missing/violated served decision')
|
|
134
|
+
.option('--task <text>', 'Task context this rework relates to (truncated server-side, never raw diff/comment text)')
|
|
135
|
+
.option('--conversation <id>', 'Explicit conversation override, matching `pb session start --conversation <id>` — use when the shell has no PB_CONVERSATION_ID set')
|
|
136
|
+
.action(async (entryId, opts) => {
|
|
137
|
+
await runReworkReport({
|
|
138
|
+
entryId,
|
|
139
|
+
classification: opts.classification,
|
|
140
|
+
reportedVia: opts.via,
|
|
141
|
+
attributable: opts.attributable,
|
|
142
|
+
task: opts.task,
|
|
143
|
+
conversation: opts.conversation,
|
|
144
|
+
});
|
|
85
145
|
});
|
|
86
146
|
program
|
|
87
147
|
.command('context <entry-id>')
|
|
88
|
-
.description('Gather and display constellation context (
|
|
148
|
+
.description('Gather and display constellation context (human-readable card by default, even when piped — pass --json for machine-readable output)')
|
|
89
149
|
.action(async (entryId) => {
|
|
90
150
|
if (!entryId?.trim()) {
|
|
91
151
|
program.commands.find((c) => c.name() === 'context')?.help();
|
|
92
152
|
return;
|
|
93
153
|
}
|
|
94
|
-
|
|
95
|
-
await runContext({ entryId: entryId.trim() });
|
|
96
|
-
}
|
|
97
|
-
catch (err) {
|
|
98
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
99
|
-
process.exit(1);
|
|
100
|
-
}
|
|
154
|
+
await runContext({ entryId: entryId.trim() });
|
|
101
155
|
});
|
|
102
156
|
program
|
|
103
157
|
.command('changes')
|
|
104
|
-
.description('Detect entries modified and relations created since a given time
|
|
158
|
+
.description('Detect entries modified and relations created since a given time')
|
|
105
159
|
.requiredOption('--since <duration>', 'Time window: 1h, 6h, 1d, 7d, 30d')
|
|
106
160
|
.action(async (opts) => {
|
|
107
|
-
|
|
108
|
-
await runChanges({ since: opts.since });
|
|
109
|
-
}
|
|
110
|
-
catch (err) {
|
|
111
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
112
|
-
process.exit(1);
|
|
113
|
-
}
|
|
161
|
+
await runChanges({ since: opts.since });
|
|
114
162
|
});
|
|
115
163
|
program
|
|
116
164
|
.command('walk <entry-id>')
|
|
117
|
-
.description('Directed deep traversal along one relation type to depth 4
|
|
165
|
+
.description('Directed deep traversal along one relation type to depth 4')
|
|
118
166
|
.option('-d, --depth <n>', 'Traversal depth 1-4 (default 2)', '2')
|
|
119
167
|
.option('--direction <dir>', 'Traversal direction: outgoing or incoming (default outgoing)', 'outgoing')
|
|
120
168
|
.option('-t, --type <relation-type>', 'Filter by relation type (e.g. depends_on, informs, governs)')
|
|
121
169
|
.action(async (entryId, opts) => {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
await runChainWalk({
|
|
129
|
-
entryId: entryId.trim(),
|
|
130
|
-
depth,
|
|
131
|
-
direction: opts.direction,
|
|
132
|
-
type: opts.type,
|
|
170
|
+
const depth = parseInt(opts.depth, 10);
|
|
171
|
+
if (isNaN(depth) || depth < 1 || depth > 4) {
|
|
172
|
+
throw new CLIError('--depth must be between 1 and 4.', {
|
|
173
|
+
code: ErrorCode.VALIDATION_FAILED,
|
|
174
|
+
category: 'validation',
|
|
133
175
|
});
|
|
134
176
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
177
|
+
await runChainWalk({
|
|
178
|
+
entryId: entryId.trim(),
|
|
179
|
+
depth,
|
|
180
|
+
direction: opts.direction,
|
|
181
|
+
type: opts.type,
|
|
182
|
+
});
|
|
139
183
|
});
|
|
140
184
|
program
|
|
141
185
|
.command('cross-cut')
|
|
142
|
-
.description('Structural aggregation — all relations of a given type grouped by source collection
|
|
186
|
+
.description('Structural aggregation — all relations of a given type grouped by source collection')
|
|
143
187
|
.requiredOption('--type <relation-type>', 'Relation type to scan (e.g. part_of, informs, governs)')
|
|
144
188
|
.action(async (opts) => {
|
|
145
|
-
|
|
146
|
-
await runCrossCut({ type: opts.type });
|
|
147
|
-
}
|
|
148
|
-
catch (err) {
|
|
149
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
150
|
-
process.exit(1);
|
|
151
|
-
}
|
|
189
|
+
await runCrossCut({ type: opts.type });
|
|
152
190
|
});
|
|
153
191
|
program
|
|
154
192
|
.command('brief [type]')
|
|
155
|
-
.description('Brief intelligence queries
|
|
156
|
-
' pb brief --skill <name> Incremental delta for a skill
|
|
157
|
-
' pb brief steering Compound: changes + structure + delta + readiness
|
|
158
|
-
' pb brief confidence Compound: changes + active
|
|
159
|
-
' pb brief delta [--since] Compound: changes + relations since timestamp
|
|
193
|
+
.description('Brief intelligence queries.\n' +
|
|
194
|
+
' pb brief --skill <name> Incremental delta for a skill\n' +
|
|
195
|
+
' pb brief steering Compound: changes + structure + delta + readiness\n' +
|
|
196
|
+
' pb brief confidence Compound: changes + active work packages (tensions: `pb tensions list`)\n' +
|
|
197
|
+
' pb brief delta [--since] Compound: changes + relations since timestamp')
|
|
160
198
|
.option('--skill <name>', 'Skill name for incremental brief (e.g. preflight, shaping, review)')
|
|
161
199
|
.option('--since-last', 'Compare against last brief run (incremental mode)')
|
|
162
200
|
.option('--since <timestamp>', 'ISO 8601 timestamp for delta type (e.g. 2026-03-24T00:00:00Z)')
|
|
163
201
|
.action(async (type, opts) => {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
// Otherwise, require --skill for incremental brief
|
|
171
|
-
if (!opts.skill) {
|
|
172
|
-
console.error('Usage:\n' +
|
|
173
|
-
' pb brief --skill <name> Incremental delta\n' +
|
|
174
|
-
' pb brief steering Compound steering brief\n' +
|
|
175
|
-
' pb brief confidence Compound confidence pass\n' +
|
|
176
|
-
' pb brief delta Compound delta sync');
|
|
177
|
-
process.exit(1);
|
|
178
|
-
}
|
|
179
|
-
await runBrief({ skill: opts.skill, sinceLast: opts.sinceLast });
|
|
202
|
+
// If positional arg is a compound type, route to compound brief
|
|
203
|
+
if (type && isCompoundType(type)) {
|
|
204
|
+
await runCompoundBrief({ type, since: opts.since });
|
|
205
|
+
return;
|
|
180
206
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
207
|
+
// Otherwise, require --skill for incremental brief
|
|
208
|
+
if (!opts.skill) {
|
|
209
|
+
throw new CLIError('Usage:\n' +
|
|
210
|
+
' pb brief --skill <name> Incremental delta\n' +
|
|
211
|
+
' pb brief steering Compound steering brief\n' +
|
|
212
|
+
' pb brief confidence Compound confidence pass\n' +
|
|
213
|
+
' pb brief delta Compound delta sync', { code: ErrorCode.VALIDATION_FAILED, category: 'validation' });
|
|
184
214
|
}
|
|
215
|
+
await runBrief({ skill: opts.skill, sinceLast: opts.sinceLast });
|
|
185
216
|
});
|
|
186
217
|
program
|
|
187
218
|
.command('search [query...]')
|
|
188
|
-
.description('Full-text search across all collections')
|
|
219
|
+
.description('Full-text search across all collections. Quote each wording to search several at once: pb search "invite code" "invite link". Single words with no space are one search.')
|
|
189
220
|
.action(async (queryParts = []) => {
|
|
190
|
-
const
|
|
191
|
-
if (
|
|
221
|
+
const wordings = searchWordings(queryParts);
|
|
222
|
+
if (wordings.length === 0) {
|
|
192
223
|
program.commands.find((c) => c.name() === 'search')?.help();
|
|
193
224
|
return;
|
|
194
225
|
}
|
|
195
|
-
|
|
196
|
-
await runSearch({ query });
|
|
197
|
-
}
|
|
198
|
-
catch (err) {
|
|
199
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
200
|
-
process.exit(1);
|
|
201
|
-
}
|
|
226
|
+
await runSearch({ wordings });
|
|
202
227
|
});
|
|
203
228
|
program
|
|
204
229
|
.command('orient')
|
|
205
|
-
.description('Print
|
|
206
|
-
.option('-b, --brief', 'Compact view:
|
|
207
|
-
.
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
230
|
+
.description('Print all orient sections (strategic context, work packages, governance, tensions, etc.)')
|
|
231
|
+
.option('-b, --brief', 'Compact view: counts, top work packages, tensions, planned work')
|
|
232
|
+
.option('-t, --task <task>', 'Task description for task-shaped governance and context')
|
|
233
|
+
.option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
|
|
234
|
+
.option('--rules', 'Print each rule\'s whole body under its line, so no pb get per rule is needed')
|
|
235
|
+
.action((opts) => runOrient({ ...opts, task: opts.task?.trim() || undefined }));
|
|
236
|
+
program
|
|
237
|
+
.command('codex-prep <task...>')
|
|
238
|
+
.description('Generate task-specific governance context for Codex (.codex/task-context.md)')
|
|
239
|
+
.option('--dry-run', 'Print to stdout instead of writing file')
|
|
240
|
+
.option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
|
|
241
|
+
.action(async (taskParts, opts) => {
|
|
242
|
+
const task = taskParts.join(' ').trim();
|
|
243
|
+
if (!task) {
|
|
244
|
+
program.commands.find((c) => c.name() === 'codex-prep')?.help();
|
|
245
|
+
return;
|
|
214
246
|
}
|
|
247
|
+
await runCodexPrep({ task, dryRun: opts.dryRun, full: opts.full });
|
|
215
248
|
});
|
|
216
249
|
program
|
|
217
|
-
.command('
|
|
218
|
-
.description('
|
|
219
|
-
.option('--
|
|
220
|
-
.option('--
|
|
221
|
-
.
|
|
222
|
-
|
|
223
|
-
.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
233
|
-
process.exit(1);
|
|
250
|
+
.command('init')
|
|
251
|
+
.description('Install the session hooks for Claude Code, Codex and Cursor in this repo and check your setup')
|
|
252
|
+
.option('--dry-run', 'Print the hooks it would add without writing any hook file')
|
|
253
|
+
.option('--client <tool>', 'Also write this tool\'s hook in a folder without its files: claude, codex or cursor', parseInitClient)
|
|
254
|
+
.action(async (opts) => { await runInit({ dryRun: opts.dryRun, client: opts.client }); });
|
|
255
|
+
program
|
|
256
|
+
.command('connect <token>')
|
|
257
|
+
.description('Redeem an onboarding token and save your API key locally. 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.')
|
|
258
|
+
.option('--gateway <url>', 'Override redeem gateway (default: CONVEX_SITE_URL or production). Use when token came from a different Convex deployment.')
|
|
259
|
+
.option('--name <label>', 'Optional label for this API key in workspace settings. Skips the key-label prompt when set.')
|
|
260
|
+
.option('-y, --yes', 'Skip the interactive workspace confirmation. Required to connect in a non-interactive shell (e.g. CI).')
|
|
261
|
+
.action(async (token, opts) => {
|
|
262
|
+
if (!token?.trim()) {
|
|
263
|
+
program.commands.find((c) => c.name() === 'connect')?.help();
|
|
264
|
+
return;
|
|
234
265
|
}
|
|
266
|
+
await runConnect(token.trim(), { gateway: opts.gateway, name: opts.name, assumeYes: opts.yes });
|
|
235
267
|
});
|
|
236
268
|
program
|
|
237
269
|
.command('login')
|
|
238
270
|
.description('Save your API key to ~/.config/productbrain/.env (works from any directory)')
|
|
239
271
|
.action(async () => {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
272
|
+
await runLogin();
|
|
273
|
+
});
|
|
274
|
+
program
|
|
275
|
+
.command('doctor')
|
|
276
|
+
.description('Check CLI configuration and connectivity')
|
|
277
|
+
.option('--fix', 'Auto-repair common configuration issues')
|
|
278
|
+
.option('--dry-run', 'Preview what --fix would do without changing anything')
|
|
279
|
+
.action(async (opts) => {
|
|
280
|
+
await runDoctor({ fix: opts.fix, dryRun: opts.dryRun });
|
|
281
|
+
});
|
|
282
|
+
program
|
|
283
|
+
.command('whoami')
|
|
284
|
+
.alias('status')
|
|
285
|
+
.description('Show the active profile + workspace (fast; no session required).')
|
|
286
|
+
.action(async () => {
|
|
287
|
+
await runWhoami();
|
|
288
|
+
});
|
|
289
|
+
program
|
|
290
|
+
.command('files')
|
|
291
|
+
.description('Show which .productbrain files are pb-owned vs committed, and what writes each.')
|
|
292
|
+
.option('--fix', 'Add any exposed pb-owned files to .gitignore (idempotent)')
|
|
293
|
+
.option('--dry-run', 'With --fix: preview the .gitignore lines without writing')
|
|
294
|
+
.action(async (opts) => {
|
|
295
|
+
await runFiles({ fix: opts.fix, dryRun: opts.dryRun });
|
|
247
296
|
});
|
|
248
297
|
// --- Write commands (require active session) ---
|
|
249
298
|
const sessionCmd = program
|
|
250
299
|
.command('session')
|
|
251
|
-
.description('Manage write sessions (
|
|
252
|
-
sessionCmd
|
|
253
|
-
.command('start')
|
|
254
|
-
.description('Start a tracked write session (opens session, refreshes context)')
|
|
255
|
-
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
256
|
-
.action(async (opts) => {
|
|
257
|
-
try {
|
|
258
|
-
await runSessionStart({ json: opts.json });
|
|
259
|
-
}
|
|
260
|
-
catch (err) {
|
|
261
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
262
|
-
process.exit(1);
|
|
263
|
-
}
|
|
264
|
-
});
|
|
300
|
+
.description('Manage write sessions (sessions required before write access)');
|
|
301
|
+
registerSessionStart(sessionCmd); // TASK-562: start and close live in commands/session-hook.ts
|
|
265
302
|
sessionCmd
|
|
266
303
|
.command('id')
|
|
267
|
-
.description('Print current session ID to stdout (machine-readable
|
|
304
|
+
.description('Print current session ID to stdout (machine-readable)')
|
|
268
305
|
.action(() => {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
306
|
+
runSessionId();
|
|
307
|
+
});
|
|
308
|
+
registerSessionClose(sessionCmd);
|
|
309
|
+
// WP-479 E4: traceback + quota observability.
|
|
310
|
+
sessionCmd
|
|
311
|
+
.command('list')
|
|
312
|
+
.description('List active sessions (with quota gauge) + recent non-active ones')
|
|
313
|
+
.action(async () => {
|
|
314
|
+
await runSessionList();
|
|
315
|
+
});
|
|
316
|
+
sessionCmd
|
|
317
|
+
.command('show <id-or-conversation>')
|
|
318
|
+
.description('Show a conversation\'s full session lineage + governance serves')
|
|
319
|
+
.action(async (idOrConversation) => {
|
|
320
|
+
await runSessionShow(idOrConversation);
|
|
276
321
|
});
|
|
322
|
+
// 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.
|
|
277
323
|
sessionCmd
|
|
278
|
-
.command('
|
|
279
|
-
.description('
|
|
280
|
-
.option('--force', '
|
|
324
|
+
.command('reset')
|
|
325
|
+
.description('Hard-reset local session state (discard session.json + clear PREVIEW_MODE)')
|
|
326
|
+
.option('--force', 'Skip the confirmation prompt when an active session is present')
|
|
281
327
|
.action(async (opts) => {
|
|
282
|
-
|
|
283
|
-
await runSessionClose({ force: opts.force });
|
|
284
|
-
}
|
|
285
|
-
catch (err) {
|
|
286
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
287
|
-
process.exit(1);
|
|
288
|
-
}
|
|
328
|
+
await runSessionReset({ force: opts.force });
|
|
289
329
|
});
|
|
290
330
|
program
|
|
291
331
|
.command('capture [text...]')
|
|
292
332
|
.description('Capture knowledge to the Chain (requires active session)')
|
|
293
|
-
.option('-n, --name <name>',
|
|
294
|
-
.option('-d, --description <desc>',
|
|
333
|
+
.option('-n, --name <name>', `${ENTRY_NAME_HELP} Left out, it is the first sentence of the text.`)
|
|
334
|
+
.option('-d, --description <desc>', `${ENTRY_BODY_HELP} Left out, it is the whole text.`)
|
|
295
335
|
.option('-c, --collection <slug>', 'Explicit collection (skip auto-classification)')
|
|
296
|
-
.option('-
|
|
297
|
-
.option('-
|
|
298
|
-
.option('--
|
|
299
|
-
.option('--source-
|
|
336
|
+
.option('-f, --field <key=value>', 'Set a data field (repeatable; checklist: -f doneWhen="a" -f doneWhen="b", one item per flag)', (val, prev) => [...prev, val], [])
|
|
337
|
+
.option('-l, --link <entry-id>', 'Link to an existing entry by id or name (repeatable; pairs with the -t in the same position)', (val, prev) => [...prev, val], [])
|
|
338
|
+
.option('-t, --link-type <relation-type>', 'Relation type for the -l in the same position; one per --link, no default', (val, prev) => [...prev, val], [])
|
|
339
|
+
.option('--source-ref <ref>', 'Source reference URI (e.g. "meeting-2026-03-28.md")')
|
|
340
|
+
.option('--source-excerpt <text>', 'Verbatim source excerpt')
|
|
341
|
+
.option('--draft', 'Force the entry to draft regardless of workspace governance mode — opt-in override, keeps it draft even in Open mode')
|
|
300
342
|
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
343
|
+
.option('--owner-role <entry-id>', 'Existing Role entry ID to create AS OWNER of (you must hold it, and its team is the one you hold it in: root first, else the shallowest)') // WP-753 O1b: --owner-team deleted, default owner resolves from the session's acting role.
|
|
344
|
+
.option('--team <team-ref>', 'For a role: the team it is born in. For a team: its parent. Defaults to the root team')
|
|
345
|
+
.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')
|
|
301
346
|
.action(async (textParts = [], opts) => {
|
|
302
347
|
const text = textParts.join(' ').trim();
|
|
303
348
|
if (!text && !opts.name) {
|
|
304
349
|
program.commands.find((c) => c.name() === 'capture')?.help();
|
|
305
350
|
return;
|
|
306
351
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
collection: opts.collection,
|
|
313
|
-
link: opts.link,
|
|
314
|
-
type: opts.type,
|
|
315
|
-
sourceRef: opts.sourceRef,
|
|
316
|
-
sourceExcerpt: opts.sourceExcerpt,
|
|
317
|
-
json: opts.json,
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
catch (err) {
|
|
321
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
322
|
-
process.exit(1);
|
|
323
|
-
}
|
|
352
|
+
await runCapture({
|
|
353
|
+
text: text || opts.name || '', name: opts.name, description: opts.description, collection: opts.collection,
|
|
354
|
+
field: opts.field, link: opts.link, linkType: opts.linkType, sourceRef: opts.sourceRef, sourceExcerpt: opts.sourceExcerpt,
|
|
355
|
+
draft: opts.draft, json: opts.json, ownerRole: opts.ownerRole, entryType: opts.entryType, team: opts.team,
|
|
356
|
+
});
|
|
324
357
|
});
|
|
325
358
|
// --- Update command (TEN-703) ---
|
|
326
359
|
program
|
|
327
360
|
.command('update <entry-id>')
|
|
328
361
|
.description('Update fields on an existing Chain entry (requires active session)')
|
|
329
|
-
.option('-f, --field <key=value>', 'Set a data field (repeatable)', (val, prev) => [...prev, val], [])
|
|
362
|
+
.option('-f, --field <key=value>', 'Set a data field (repeatable; checklist: -f doneWhen="a" -f doneWhen="b", one item per flag)', (val, prev) => [...prev, val], [])
|
|
330
363
|
.option('--name <name>', 'Update entry name')
|
|
331
|
-
.option('--status <status>', 'Update entry status (draft |
|
|
332
|
-
.option('--
|
|
364
|
+
.option('--status <status>', 'Update entry status (draft | archived) — accepted is set via `pb entry accept`; active/deprecated are legacy and refused')
|
|
365
|
+
.option('--workflow-status <status>', 'Set workflow status (server-validated)')
|
|
366
|
+
.option('--type <canonical-key>', 'Reclassify a DRAFT entry to another canonical type (immutable once accepted — supersede instead)')
|
|
367
|
+
.option('--note <text>', 'Change note for history').option('--change-reason <text>', 'Why what the entry promises is changing (required for a promise-field change)')
|
|
368
|
+
.option('--changed-by <entry-id>', `The newer entry this update answers a ${CLASH.one} with; needs --change-reason`)
|
|
369
|
+
.option('--override-reason <text>', 'Why it stands alone or why a text keeps after its checklist failed, at least 12 characters. Your name is kept with it.')
|
|
370
|
+
.option('--acknowledge <response>', 'Answer why it stands alone: linked | accepted-fix | diverged')
|
|
371
|
+
.option('--ack-entry <entry-id>', 'Authorizing entry for --acknowledge linked / accepted-fix')
|
|
372
|
+
.option('--ack-reason <text>', 'Why you diverge, at least 12 characters; required with --acknowledge diverged')
|
|
373
|
+
// Commander camelCases every flag to exactly the UpdateOptions key it feeds, so the options
|
|
374
|
+
// object spreads straight through. The previous hand-written 1:1 mapping had to be edited twice
|
|
375
|
+
// per new flag (once here, once in the type) and silently dropped anything you forgot.
|
|
333
376
|
.action(async (entryId, opts) => {
|
|
334
|
-
|
|
335
|
-
await runUpdate({
|
|
336
|
-
entryId,
|
|
337
|
-
field: opts.field,
|
|
338
|
-
name: opts.name,
|
|
339
|
-
status: opts.status,
|
|
340
|
-
note: opts.note,
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
catch (err) {
|
|
344
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
345
|
-
process.exit(1);
|
|
346
|
-
}
|
|
377
|
+
await runUpdate({ entryId, ...opts });
|
|
347
378
|
});
|
|
348
|
-
// ---
|
|
379
|
+
// --- Restore command (WP-514 review round 2, P1) ---
|
|
349
380
|
program
|
|
350
|
-
.command('
|
|
351
|
-
.description('
|
|
352
|
-
.action(async (entryId) => {
|
|
381
|
+
.command('restore <entry-id>')
|
|
382
|
+
.description('Restore an archived Chain entry to draft (requires active session + rung-3 authority coverage)')
|
|
383
|
+
.action(async (entryId) => { await runRestore(entryId); });
|
|
384
|
+
// --- Entry noun-scoped commands (DEC-1574, WP-640 S4) — registerEntryCommands.ts ---
|
|
385
|
+
registerEntryCommands(program);
|
|
386
|
+
registerTensionsCommands(program);
|
|
387
|
+
registerTasksCommands(program); // WP-768 L0, DEC-2459: same-line combine (module-health)
|
|
388
|
+
program.command('verify <entry-id>').description('Mark an entry as verified (source fidelity trust signal)').action(async (entryId) => {
|
|
353
389
|
if (!entryId?.trim()) {
|
|
354
390
|
program.commands.find((c) => c.name() === 'verify')?.help();
|
|
355
391
|
return;
|
|
356
392
|
}
|
|
357
|
-
|
|
358
|
-
await runVerify({ entryId: entryId.trim() });
|
|
359
|
-
}
|
|
360
|
-
catch (err) {
|
|
361
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
362
|
-
process.exit(1);
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
program
|
|
366
|
-
.command('promote <entry-id>')
|
|
367
|
-
.description('Promote entry from draft to active (commit to SSOT)')
|
|
368
|
-
.option('-m, --message <text>', 'Commit message')
|
|
369
|
-
.action(async (entryId, opts) => {
|
|
370
|
-
try {
|
|
371
|
-
await runPromote({ entryId, message: opts.message });
|
|
372
|
-
}
|
|
373
|
-
catch (err) {
|
|
374
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
375
|
-
process.exit(1);
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
// --- Relate / Unrelate commands (TEN-704) ---
|
|
379
|
-
program
|
|
380
|
-
.command('relate <from-id> <type> <to-id>')
|
|
381
|
-
.description('Add a typed relation between two entries (requires active session)')
|
|
382
|
-
.option('--if-missing', 'Only create relation if it does not already exist')
|
|
383
|
-
.action(async (fromId, type, toId, opts) => {
|
|
384
|
-
try {
|
|
385
|
-
await runRelate({ fromId, type, toId, ifMissing: opts.ifMissing });
|
|
386
|
-
}
|
|
387
|
-
catch (err) {
|
|
388
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
389
|
-
process.exit(1);
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
program
|
|
393
|
-
.command('unrelate <from-id> <type> <to-id>')
|
|
394
|
-
.description('Remove a typed relation between two entries (requires active session)')
|
|
395
|
-
.action(async (fromId, type, toId) => {
|
|
396
|
-
try {
|
|
397
|
-
await runUnrelate({ fromId, type, toId });
|
|
398
|
-
}
|
|
399
|
-
catch (err) {
|
|
400
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
401
|
-
process.exit(1);
|
|
402
|
-
}
|
|
393
|
+
await runVerify({ entryId: entryId.trim() });
|
|
403
394
|
});
|
|
404
|
-
//
|
|
405
|
-
program
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
.option('--resume', 'Skip files whose sourceRef is already committed in staging.')
|
|
410
|
-
.option('--concurrency <n>', 'Process up to N files in parallel (default 1, max 5).', '1')
|
|
411
|
-
.action(async (pattern, opts) => {
|
|
412
|
-
try {
|
|
413
|
-
const concurrency = parseInt(opts.concurrency ?? '1', 10);
|
|
414
|
-
if (Number.isNaN(concurrency) || concurrency < 1) {
|
|
415
|
-
console.error('--concurrency must be a positive integer.');
|
|
416
|
-
process.exit(1);
|
|
417
|
-
}
|
|
418
|
-
await runIngest({
|
|
419
|
-
pattern,
|
|
420
|
-
dryRun: opts.dryRun,
|
|
421
|
-
resume: opts.resume,
|
|
422
|
-
concurrency,
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
catch (err) {
|
|
426
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
427
|
-
process.exit(1);
|
|
395
|
+
// TASK-384 S1: distinct from verify (attestation) — the holder of the owning role (else the nearest seated Team Lead) confirms accuracy; no content/version change.
|
|
396
|
+
program.command('still-true <entry-id>').description('Confirm an entry is still true (the holder of the owning role, else the nearest seated Team Lead)').action(async (entryId) => {
|
|
397
|
+
if (!entryId?.trim()) {
|
|
398
|
+
program.commands.find((c) => c.name() === 'still-true')?.help();
|
|
399
|
+
return;
|
|
428
400
|
}
|
|
401
|
+
await runStillTrue({ entryId: entryId.trim() });
|
|
429
402
|
});
|
|
403
|
+
// registerProposalCommands(program) deleted (WP-776 S2a, DEC-1771) — `pb accept`/`pb reject`/`pb proposals` are gone.
|
|
404
|
+
registerOutcomeCommands(program);
|
|
405
|
+
registerRoleCommands(program);
|
|
406
|
+
registerMethodCommands(program); // WP-722 S2 outcome; WP-730 S2 role; TASK-1214 method
|
|
407
|
+
// --- Relate / Unrelate commands (TEN-704) — registerEntryCommands.ts (WP-688 S2a: moved off
|
|
408
|
+
// this shrink-only file to fund the --dry-run flag) ---
|
|
409
|
+
registerRelateCommands(program);
|
|
430
410
|
// --- Fields command (BET-181 Slice 2) ---
|
|
431
411
|
program
|
|
432
412
|
.command('fields <collection>')
|
|
@@ -436,13 +416,7 @@ program
|
|
|
436
416
|
program.commands.find((c) => c.name() === 'fields')?.help();
|
|
437
417
|
return;
|
|
438
418
|
}
|
|
439
|
-
|
|
440
|
-
await runFields({ collectionSlug: collection.trim() });
|
|
441
|
-
}
|
|
442
|
-
catch (err) {
|
|
443
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
444
|
-
process.exit(1);
|
|
445
|
-
}
|
|
419
|
+
await runFields({ collectionSlug: collection.trim() });
|
|
446
420
|
});
|
|
447
421
|
// --- Constellation command (BET-181 Slice 3) ---
|
|
448
422
|
program
|
|
@@ -453,87 +427,149 @@ program
|
|
|
453
427
|
program.commands.find((c) => c.name() === 'constellation')?.help();
|
|
454
428
|
return;
|
|
455
429
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
430
|
+
await runConstellation({ entryId: entryId.trim() });
|
|
431
|
+
});
|
|
432
|
+
// --- Collections command (BET-280 Slice 1) ---
|
|
433
|
+
const collectionsCmd = program
|
|
434
|
+
.command('collections')
|
|
435
|
+
.description('Inspect and audit workspace collection registry');
|
|
436
|
+
collectionsCmd
|
|
437
|
+
.command('list')
|
|
438
|
+
.description('List all collections — slug, name, field count, icon')
|
|
439
|
+
.action(async () => {
|
|
440
|
+
await runCollectionsList();
|
|
441
|
+
});
|
|
442
|
+
collectionsCmd
|
|
443
|
+
.command('get <slug>')
|
|
444
|
+
.description('Show full detail for a collection by slug')
|
|
445
|
+
.action(async (slug) => {
|
|
446
|
+
if (!slug?.trim()) {
|
|
447
|
+
program.commands.find((c) => c.name() === 'collections')?.help();
|
|
448
|
+
return;
|
|
462
449
|
}
|
|
450
|
+
await runCollectionsGet({ slug: slug.trim() });
|
|
451
|
+
});
|
|
452
|
+
collectionsCmd
|
|
453
|
+
.command('audit')
|
|
454
|
+
.description('Collection health report — classification, icon, displayHint coverage, schema gaps')
|
|
455
|
+
.action(async () => {
|
|
456
|
+
await runCollectionsAudit();
|
|
457
|
+
});
|
|
458
|
+
collectionsCmd
|
|
459
|
+
.command('export')
|
|
460
|
+
.description('Export all system_collection_definitions with full classification metadata (admin only)')
|
|
461
|
+
.action(async () => {
|
|
462
|
+
await runCollectionsExport();
|
|
463
|
+
});
|
|
464
|
+
// --- Workspace operator commands (WP-305 Slice 4) ---
|
|
465
|
+
const workspaceCmd = program
|
|
466
|
+
.command('workspace')
|
|
467
|
+
.description('Operator command for workspace health');
|
|
468
|
+
workspaceCmd
|
|
469
|
+
.command('verify')
|
|
470
|
+
.description('Check workspace health — seeds, collections, glossary (admin only)')
|
|
471
|
+
.action(async () => {
|
|
472
|
+
await runWorkspaceVerify();
|
|
473
|
+
});
|
|
474
|
+
// --- Definitions diff command (WP-305 Slice 4) ---
|
|
475
|
+
const definitionsCmd = program
|
|
476
|
+
.command('definitions')
|
|
477
|
+
.description('Inspect and compare workspace definitions');
|
|
478
|
+
definitionsCmd
|
|
479
|
+
.command('diff [file]')
|
|
480
|
+
.description('Compare local dev-system-collections.json against server definitions (admin only)')
|
|
481
|
+
.action(async (file) => {
|
|
482
|
+
await runDefinitionsDiff({ file });
|
|
483
|
+
});
|
|
484
|
+
// --- Profile commands (WP-302 Slice 2) ---
|
|
485
|
+
const profileCmd = program
|
|
486
|
+
.command('profile')
|
|
487
|
+
.description('Manage workspace profiles (multi-workspace support)');
|
|
488
|
+
profileCmd
|
|
489
|
+
.command('list')
|
|
490
|
+
.description('List all profiles, mark active one')
|
|
491
|
+
.action(async () => {
|
|
492
|
+
await runProfileList();
|
|
493
|
+
});
|
|
494
|
+
profileCmd
|
|
495
|
+
.command('create <name>')
|
|
496
|
+
.description('Create a new profile with an API key, pasted at a prompt that does not show it, or piped in on one line')
|
|
497
|
+
.option('--api-key <key>', `API key (${API_KEY_PREFIX} or ${AGENT_KEY_PREFIX}); it stays in shell history, so paste it instead`)
|
|
498
|
+
.option('--url <url>', "Gateway for this key. Defaults to the gateway of this folder's pinned profile, else production.")
|
|
499
|
+
.action(async (name, opts) => {
|
|
500
|
+
await runProfileCreate({ name, apiKey: opts.apiKey, url: opts.url });
|
|
501
|
+
});
|
|
502
|
+
profileCmd
|
|
503
|
+
.command('use <name>')
|
|
504
|
+
.description('Switch profile: reconciles the repo pin + global by default. --local = repo pin only; --global = global only.')
|
|
505
|
+
.option('--local', 'Write the profile pin only to .productbrain/config.local.json (repo-local, gitignored)')
|
|
506
|
+
.option('--global', 'Switch only the global active profile (does not change a locally-pinned repo)')
|
|
507
|
+
.action(async (name, opts) => {
|
|
508
|
+
await runProfileUse({ name, local: opts.local, global: opts.global });
|
|
509
|
+
});
|
|
510
|
+
profileCmd
|
|
511
|
+
.command('delete <name>')
|
|
512
|
+
.description('Delete a profile (cannot delete active or last profile)')
|
|
513
|
+
.action(async (name) => {
|
|
514
|
+
await runProfileDelete({ name });
|
|
463
515
|
});
|
|
464
|
-
// --- Audit command (BET-182 Slice 2) ---
|
|
465
516
|
program
|
|
466
|
-
.command('
|
|
467
|
-
.description('
|
|
468
|
-
.option('--
|
|
469
|
-
.option('--
|
|
470
|
-
.
|
|
471
|
-
|
|
472
|
-
.action(async (entryIds, opts) => {
|
|
473
|
-
try {
|
|
474
|
-
await runAudit({
|
|
475
|
-
entryIds: entryIds.map((id) => id.trim()).filter(Boolean),
|
|
476
|
-
phase: opts.phase,
|
|
477
|
-
gate: opts.gate,
|
|
478
|
-
fix: opts.fix,
|
|
479
|
-
verbose: opts.verbose,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
catch (err) {
|
|
483
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
484
|
-
process.exit(1);
|
|
485
|
-
}
|
|
517
|
+
.command('use <name>')
|
|
518
|
+
.description('Switch the active workspace profile (alias for `pb profile use`).')
|
|
519
|
+
.option('--local', 'Write the profile pin only to .productbrain/config.local.json (repo-local, gitignored)')
|
|
520
|
+
.option('--global', 'Switch only the global active profile (does not change a locally-pinned repo)')
|
|
521
|
+
.action(async (name, opts) => {
|
|
522
|
+
await runProfileUse({ name, local: opts.local, global: opts.global });
|
|
486
523
|
});
|
|
524
|
+
// --- Glossary command (WP-302 Slice 4) ---
|
|
487
525
|
program
|
|
488
|
-
.command('
|
|
489
|
-
.description('
|
|
490
|
-
.allowUnknownOption(true)
|
|
491
|
-
.allowExcessArguments(true)
|
|
526
|
+
.command('glossary')
|
|
527
|
+
.description('Show the four platform glossary terms; pb search <word> finds your team terms')
|
|
492
528
|
.action(() => {
|
|
493
|
-
|
|
529
|
+
if (isJsonMode()) {
|
|
530
|
+
process.stdout.write(JSON.stringify(PLATFORM_GLOSSARY_TERMS) + '\n');
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
const lines = [
|
|
534
|
+
'',
|
|
535
|
+
heading('Glossary'),
|
|
536
|
+
'',
|
|
537
|
+
formatGlossary(),
|
|
538
|
+
'',
|
|
539
|
+
];
|
|
540
|
+
process.stdout.write(lines.join('\n') + '\n');
|
|
494
541
|
});
|
|
495
|
-
// ---
|
|
542
|
+
// --- Usage command (WP-322 S4, FEAT-1011) ---
|
|
496
543
|
program
|
|
497
|
-
.command('
|
|
498
|
-
.description('
|
|
499
|
-
.
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
503
|
-
catch (err) {
|
|
504
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
505
|
-
process.exit(1);
|
|
506
|
-
}
|
|
544
|
+
.command('usage')
|
|
545
|
+
.description('Session and activity dashboard — 4-tab Ink TUI')
|
|
546
|
+
.option('--json', 'Output machine-readable JSON (sessions, entries30d, activity array)')
|
|
547
|
+
.action(async (opts) => {
|
|
548
|
+
await runUsage({ json: opts.json });
|
|
507
549
|
});
|
|
550
|
+
// --- Proof-run command (WP-459: admin-proof bridge dogfood) ---
|
|
508
551
|
program
|
|
509
|
-
.command('
|
|
510
|
-
.description('
|
|
511
|
-
.
|
|
512
|
-
|
|
513
|
-
if (!proposalId && !opts.auto) {
|
|
514
|
-
process.stderr.write('Usage: pb accept <proposal-id> or pb accept --auto\n');
|
|
515
|
-
process.exit(1);
|
|
516
|
-
}
|
|
517
|
-
try {
|
|
518
|
-
await runAccept({ proposalId, auto: opts.auto });
|
|
519
|
-
}
|
|
520
|
-
catch (err) {
|
|
521
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
522
|
-
process.exit(1);
|
|
523
|
-
}
|
|
552
|
+
.command('proof-run <proof-name>')
|
|
553
|
+
.description('Run an admin-only proof against the seeded preview via the proof bridge')
|
|
554
|
+
.action(async (proofName) => {
|
|
555
|
+
await runProofRun({ proofName: proofName.trim() });
|
|
524
556
|
});
|
|
557
|
+
// --- Admin command group (WP-312 S2, FEAT-969) ---
|
|
558
|
+
program.addCommand(createAdminCommand());
|
|
559
|
+
program.addCommand(createFeedbackCommand());
|
|
560
|
+
program.addCommand(createConflictsCommand());
|
|
561
|
+
program.addCommand(createQuestionCommand());
|
|
562
|
+
program.addCommand(createDirectionCommand());
|
|
563
|
+
program.addCommand(createOrganisationCommand());
|
|
564
|
+
program.addCommand(createAcceptPolicyCommand());
|
|
565
|
+
// --- Upgrade command (WP-322 S1: ambient update notification) ---
|
|
525
566
|
program
|
|
526
|
-
.command('
|
|
527
|
-
.description(
|
|
528
|
-
.
|
|
529
|
-
|
|
530
|
-
try {
|
|
531
|
-
await runReject({ proposalId, reason: opts.reason });
|
|
532
|
-
}
|
|
533
|
-
catch (err) {
|
|
534
|
-
console.error(err instanceof Error ? err.message : String(err));
|
|
535
|
-
process.exit(1);
|
|
536
|
-
}
|
|
567
|
+
.command('upgrade')
|
|
568
|
+
.description(`Upgrade pb CLI to the latest beta (${CLI_INSTALL_COMMAND})`)
|
|
569
|
+
.action(async () => {
|
|
570
|
+
await runUpgrade({ currentVersion: cliPackageVersion.version });
|
|
537
571
|
});
|
|
538
|
-
|
|
572
|
+
// Parse with global error handler — every error routes through handleError, which alone prints it (TASK-959)
|
|
573
|
+
silenceCommanderErrors(program);
|
|
574
|
+
program.parseAsync(process.argv).catch((err) => handleError(err, program));
|
|
539
575
|
//# sourceMappingURL=index.js.map
|