@productbrain/cli 0.1.0-beta.1074 → 0.1.0-beta.10752
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 +11 -2
- package/dist/__tests__/adapters.test.js +79 -53
- package/dist/__tests__/adapters.test.js.map +1 -1
- package/dist/__tests__/adminConfig.test.d.ts +18 -0
- package/dist/__tests__/adminConfig.test.d.ts.map +1 -0
- package/dist/__tests__/adminConfig.test.js +221 -0
- package/dist/__tests__/adminConfig.test.js.map +1 -0
- package/dist/__tests__/batch-transformations.test.js +2 -26
- package/dist/__tests__/batch-transformations.test.js.map +1 -1
- 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 +109 -0
- package/dist/__tests__/capture-receipt-coaching.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 +67 -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 +45 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.js.map +1 -0
- package/dist/__tests__/capture.test.js +1365 -182
- package/dist/__tests__/capture.test.js.map +1 -1
- package/dist/__tests__/client-binding-guard.test.d.ts +2 -0
- package/dist/__tests__/client-binding-guard.test.d.ts.map +1 -0
- package/dist/__tests__/client-binding-guard.test.js +84 -0
- package/dist/__tests__/client-binding-guard.test.js.map +1 -0
- package/dist/__tests__/coaching-mirror-drift.test.d.ts +2 -0
- package/dist/__tests__/coaching-mirror-drift.test.d.ts.map +1 -0
- package/dist/__tests__/coaching-mirror-drift.test.js +50 -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 +84 -0
- package/dist/__tests__/codex-prep-parity.test.js.map +1 -0
- package/dist/__tests__/collection-registry-seed-drift.test.d.ts +2 -0
- package/dist/__tests__/collection-registry-seed-drift.test.d.ts.map +1 -0
- package/dist/__tests__/collection-registry-seed-drift.test.js +102 -0
- package/dist/__tests__/collection-registry-seed-drift.test.js.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts +2 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.js +93 -0
- package/dist/__tests__/config-prod-fallthrough.test.js.map +1 -0
- package/dist/__tests__/config.test.js +559 -40
- package/dist/__tests__/config.test.js.map +1 -1
- package/dist/__tests__/constellation.test.js +26 -14
- package/dist/__tests__/constellation.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 +182 -0
- package/dist/__tests__/entry-formatter.test.js.map +1 -0
- package/dist/__tests__/entry-preflight.test.d.ts +2 -0
- package/dist/__tests__/entry-preflight.test.d.ts.map +1 -0
- package/dist/__tests__/entry-preflight.test.js +58 -0
- package/dist/__tests__/entry-preflight.test.js.map +1 -0
- package/dist/__tests__/entryAccept-batch.test.d.ts +2 -0
- package/dist/__tests__/entryAccept-batch.test.d.ts.map +1 -0
- package/dist/__tests__/entryAccept-batch.test.js +305 -0
- package/dist/__tests__/entryAccept-batch.test.js.map +1 -0
- package/dist/__tests__/entryAccept.test.d.ts +2 -0
- package/dist/__tests__/entryAccept.test.d.ts.map +1 -0
- package/dist/__tests__/entryAccept.test.js +526 -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 +28 -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 +50 -0
- package/dist/__tests__/entryOwn.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.js +2 -0
- package/dist/__tests__/envelope-contract.test.js.map +1 -1
- package/dist/__tests__/errors.test.js +41 -0
- package/dist/__tests__/errors.test.js.map +1 -1
- package/dist/__tests__/fields.test.js +14 -3
- 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__/glossary.test.js +10 -27
- package/dist/__tests__/glossary.test.js.map +1 -1
- package/dist/__tests__/handshake-augment.test.js +4 -20
- package/dist/__tests__/handshake-augment.test.js.map +1 -1
- package/dist/__tests__/handshake-dormancy.test.js +10 -193
- package/dist/__tests__/handshake-dormancy.test.js.map +1 -1
- package/dist/__tests__/handshake-formatter.test.js +44 -0
- package/dist/__tests__/handshake-formatter.test.js.map +1 -1
- package/dist/__tests__/handshake-preview.test.js +271 -612
- package/dist/__tests__/handshake-preview.test.js.map +1 -1
- package/dist/__tests__/handshake-session-threading.test.d.ts +2 -0
- package/dist/__tests__/handshake-session-threading.test.d.ts.map +1 -0
- package/dist/__tests__/handshake-session-threading.test.js +185 -0
- package/dist/__tests__/handshake-session-threading.test.js.map +1 -0
- package/dist/__tests__/handshake.e2e.test.js +7 -1033
- package/dist/__tests__/handshake.e2e.test.js.map +1 -1
- package/dist/__tests__/handshake.test.js +552 -317
- package/dist/__tests__/handshake.test.js.map +1 -1
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts +2 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js +43 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js.map +1 -0
- package/dist/__tests__/hook-intents.test.js +31 -43
- package/dist/__tests__/hook-intents.test.js.map +1 -1
- package/dist/__tests__/init.test.js +51 -14
- package/dist/__tests__/init.test.js.map +1 -1
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js +46 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js +108 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js.map +1 -0
- package/dist/__tests__/login.test.js +18 -1
- package/dist/__tests__/login.test.js.map +1 -1
- package/dist/__tests__/method-registry.integration.test.js +2 -3
- package/dist/__tests__/method-registry.integration.test.js.map +1 -1
- package/dist/__tests__/method-registry.test.d.ts +6 -8
- package/dist/__tests__/method-registry.test.d.ts.map +1 -1
- package/dist/__tests__/method-registry.test.js +22 -70
- package/dist/__tests__/method-registry.test.js.map +1 -1
- 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__/notice-marker.test.js +146 -11
- package/dist/__tests__/notice-marker.test.js.map +1 -1
- package/dist/__tests__/orient.test.js +368 -38
- package/dist/__tests__/orient.test.js.map +1 -1
- package/dist/__tests__/perimeter.test.js +1 -1
- package/dist/__tests__/perimeter.test.js.map +1 -1
- 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__/profiles.test.js +498 -8
- package/dist/__tests__/profiles.test.js.map +1 -1
- package/dist/__tests__/prompts.test.js +18 -1
- package/dist/__tests__/prompts.test.js.map +1 -1
- package/dist/__tests__/proof-run.test.d.ts +2 -0
- package/dist/__tests__/proof-run.test.d.ts.map +1 -0
- package/dist/__tests__/proof-run.test.js +255 -0
- package/dist/__tests__/proof-run.test.js.map +1 -0
- package/dist/__tests__/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 +225 -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 +246 -14
- 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 +64 -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 +81 -0
- package/dist/__tests__/reply-commands-registered.test.js.map +1 -0
- package/dist/__tests__/repo-detect.test.js +18 -38
- package/dist/__tests__/repo-detect.test.js.map +1 -1
- package/dist/__tests__/reportedProfile.test.d.ts +2 -0
- package/dist/__tests__/reportedProfile.test.d.ts.map +1 -0
- package/dist/__tests__/reportedProfile.test.js +328 -0
- package/dist/__tests__/reportedProfile.test.js.map +1 -0
- package/dist/__tests__/restore.test.d.ts +2 -0
- package/dist/__tests__/restore.test.d.ts.map +1 -0
- package/dist/__tests__/restore.test.js +85 -0
- package/dist/__tests__/restore.test.js.map +1 -0
- package/dist/__tests__/route-latency-budget.test.d.ts +2 -0
- package/dist/__tests__/route-latency-budget.test.d.ts.map +1 -0
- package/dist/__tests__/route-latency-budget.test.js +107 -0
- package/dist/__tests__/route-latency-budget.test.js.map +1 -0
- package/dist/__tests__/runner.test.js +59 -44
- package/dist/__tests__/runner.test.js.map +1 -1
- package/dist/__tests__/session-binding-refusal-tenant.test.d.ts +2 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.d.ts.map +1 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.js +112 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.js.map +1 -0
- package/dist/__tests__/session-close-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 +227 -0
- package/dist/__tests__/session-close-loop.test.js.map +1 -0
- package/dist/__tests__/session-label.test.d.ts +2 -0
- package/dist/__tests__/session-label.test.d.ts.map +1 -0
- package/dist/__tests__/session-label.test.js +46 -0
- package/dist/__tests__/session-label.test.js.map +1 -0
- package/dist/__tests__/session-list-show.test.d.ts +2 -0
- package/dist/__tests__/session-list-show.test.d.ts.map +1 -0
- package/dist/__tests__/session-list-show.test.js +173 -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 +305 -0
- package/dist/__tests__/session-pinned-role.test.js.map +1 -0
- package/dist/__tests__/session-reset.test.js +23 -7
- package/dist/__tests__/session-reset.test.js.map +1 -1
- package/dist/__tests__/session-resume-backstop.test.js +42 -0
- package/dist/__tests__/session-resume-backstop.test.js.map +1 -1
- 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 +122 -0
- package/dist/__tests__/session-role-name-sanitize.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 +197 -0
- package/dist/__tests__/session-start-key-refresh.test.js.map +1 -0
- package/dist/__tests__/session-state-machine.test.js +190 -9
- package/dist/__tests__/session-state-machine.test.js.map +1 -1
- package/dist/__tests__/session-switch.test.js +218 -4
- package/dist/__tests__/session-switch.test.js.map +1 -1
- package/dist/__tests__/session-touch.test.js +6 -1
- package/dist/__tests__/session-touch.test.js.map +1 -1
- package/dist/__tests__/sessionBinding.test.d.ts +2 -0
- package/dist/__tests__/sessionBinding.test.d.ts.map +1 -0
- package/dist/__tests__/sessionBinding.test.js +118 -0
- package/dist/__tests__/sessionBinding.test.js.map +1 -0
- package/dist/__tests__/sessionByIdLookup.test.d.ts +2 -0
- package/dist/__tests__/sessionByIdLookup.test.d.ts.map +1 -0
- package/dist/__tests__/sessionByIdLookup.test.js +63 -0
- package/dist/__tests__/sessionByIdLookup.test.js.map +1 -0
- package/dist/__tests__/skill-vocabulary.test.d.ts +1 -1
- package/dist/__tests__/skill-vocabulary.test.js +7 -2
- package/dist/__tests__/skill-vocabulary.test.js.map +1 -1
- package/dist/__tests__/state.test.js +21 -1
- package/dist/__tests__/state.test.js.map +1 -1
- 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 +52 -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__/surfaces.test.js +3 -4
- package/dist/__tests__/surfaces.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__/update-check.test.js +21 -1
- package/dist/__tests__/update-check.test.js.map +1 -1
- package/dist/__tests__/update.test.js +458 -8
- package/dist/__tests__/update.test.js.map +1 -1
- 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 +1 -7
- package/dist/__tests__/vocabulary-leak.test.d.ts.map +1 -1
- package/dist/__tests__/vocabulary-leak.test.js +7 -114
- package/dist/__tests__/vocabulary-leak.test.js.map +1 -1
- package/dist/__tests__/workspace.test.js +11 -72
- package/dist/__tests__/workspace.test.js.map +1 -1
- package/dist/__tests__/workspaceNotice.test.d.ts +2 -0
- package/dist/__tests__/workspaceNotice.test.d.ts.map +1 -0
- package/dist/__tests__/workspaceNotice.test.js +571 -0
- package/dist/__tests__/workspaceNotice.test.js.map +1 -0
- package/dist/commands/__tests__/quality.test.d.ts +2 -0
- package/dist/commands/__tests__/quality.test.d.ts.map +1 -0
- package/dist/commands/__tests__/quality.test.js +171 -0
- package/dist/commands/__tests__/quality.test.js.map +1 -0
- package/dist/commands/__tests__/rework.test.d.ts +2 -0
- package/dist/commands/__tests__/rework.test.d.ts.map +1 -0
- package/dist/commands/__tests__/rework.test.js +149 -0
- package/dist/commands/__tests__/rework.test.js.map +1 -0
- package/dist/commands/__tests__/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 +107 -0
- package/dist/commands/accept-policy.js.map +1 -0
- package/dist/commands/admin/cockpit.d.ts +2 -13
- package/dist/commands/admin/cockpit.d.ts.map +1 -1
- package/dist/commands/admin/cockpit.js +5 -5
- package/dist/commands/admin/cockpit.js.map +1 -1
- package/dist/commands/admin/index.d.ts +49 -0
- package/dist/commands/admin/index.d.ts.map +1 -1
- package/dist/commands/admin/index.js +148 -29
- package/dist/commands/admin/index.js.map +1 -1
- package/dist/commands/admin/index.test.d.ts +2 -0
- package/dist/commands/admin/index.test.d.ts.map +1 -0
- package/dist/commands/admin/index.test.js +94 -0
- package/dist/commands/admin/index.test.js.map +1 -0
- package/dist/commands/admin/inspect.d.ts.map +1 -1
- package/dist/commands/admin/inspect.js +2 -7
- package/dist/commands/admin/inspect.js.map +1 -1
- 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 +6 -21
- package/dist/commands/admin/seed.d.ts.map +1 -1
- package/dist/commands/admin/seed.js +41 -310
- package/dist/commands/admin/seed.js.map +1 -1
- package/dist/commands/admin/seed.test.d.ts +3 -4
- package/dist/commands/admin/seed.test.d.ts.map +1 -1
- package/dist/commands/admin/seed.test.js +26 -76
- package/dist/commands/admin/seed.test.js.map +1 -1
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts.map +1 -1
- package/dist/commands/admin/seedRegistryEntries.generated.js +3 -84
- package/dist/commands/admin/seedRegistryEntries.generated.js.map +1 -1
- package/dist/commands/admin/seedRegistryEntries.test.d.ts +5 -3
- package/dist/commands/admin/seedRegistryEntries.test.d.ts.map +1 -1
- package/dist/commands/admin/seedRegistryEntries.test.js +60 -26
- package/dist/commands/admin/seedRegistryEntries.test.js.map +1 -1
- 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 +24 -2
- package/dist/commands/brief.js.map +1 -1
- package/dist/commands/capture.d.ts +16 -10
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +172 -227
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/chain-walk.d.ts.map +1 -1
- package/dist/commands/chain-walk.js.map +1 -1
- package/dist/commands/changes.d.ts.map +1 -1
- package/dist/commands/changes.js.map +1 -1
- package/dist/commands/codex-prep.d.ts +11 -1
- package/dist/commands/codex-prep.d.ts.map +1 -1
- package/dist/commands/codex-prep.js +14 -83
- package/dist/commands/codex-prep.js.map +1 -1
- package/dist/commands/collections.d.ts +1 -1
- package/dist/commands/collections.d.ts.map +1 -1
- package/dist/commands/collections.js +1 -1
- package/dist/commands/collections.js.map +1 -1
- package/dist/commands/conflicts.d.ts +35 -0
- package/dist/commands/conflicts.d.ts.map +1 -0
- package/dist/commands/conflicts.js +194 -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 +179 -0
- package/dist/commands/conflicts.test.js.map +1 -0
- package/dist/commands/connect-config.test.js +11 -3
- package/dist/commands/connect-config.test.js.map +1 -1
- package/dist/commands/connect-context.d.ts +27 -17
- package/dist/commands/connect-context.d.ts.map +1 -1
- package/dist/commands/connect-context.js +45 -31
- package/dist/commands/connect-context.js.map +1 -1
- package/dist/commands/connect-context.test.js +91 -53
- package/dist/commands/connect-context.test.js.map +1 -1
- 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.js +24 -7
- package/dist/commands/connect-integration.test.js.map +1 -1
- package/dist/commands/connect-legacy-migration.test.d.ts +2 -0
- package/dist/commands/connect-legacy-migration.test.d.ts.map +1 -0
- package/dist/commands/connect-legacy-migration.test.js +109 -0
- package/dist/commands/connect-legacy-migration.test.js.map +1 -0
- package/dist/commands/connect-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 +134 -0
- package/dist/commands/connect-redeem-failure.test.js.map +1 -0
- package/dist/commands/connect-screens.d.ts +14 -3
- package/dist/commands/connect-screens.d.ts.map +1 -1
- package/dist/commands/connect-screens.js +62 -9
- package/dist/commands/connect-screens.js.map +1 -1
- 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 +55 -0
- package/dist/commands/connect-seal.test.js.map +1 -0
- package/dist/commands/connect.d.ts +14 -11
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/connect.js +236 -69
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/connect.test.js +226 -23
- package/dist/commands/connect.test.js.map +1 -1
- package/dist/commands/constellation.d.ts.map +1 -1
- package/dist/commands/constellation.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/cross-cut.d.ts.map +1 -1
- package/dist/commands/cross-cut.js.map +1 -1
- package/dist/commands/digest.d.ts +17 -0
- package/dist/commands/digest.d.ts.map +1 -0
- package/dist/commands/digest.js +58 -0
- package/dist/commands/digest.js.map +1 -0
- package/dist/commands/digest.test.d.ts +2 -0
- package/dist/commands/digest.test.d.ts.map +1 -0
- package/dist/commands/digest.test.js +36 -0
- package/dist/commands/digest.test.js.map +1 -0
- package/dist/commands/direction.d.ts +10 -0
- package/dist/commands/direction.d.ts.map +1 -0
- package/dist/commands/direction.js +79 -0
- package/dist/commands/direction.js.map +1 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +105 -35
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/doctor.test.js +202 -6
- package/dist/commands/doctor.test.js.map +1 -1
- package/dist/commands/entryAccept.d.ts +26 -0
- package/dist/commands/entryAccept.d.ts.map +1 -0
- package/dist/commands/entryAccept.js +308 -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 +5 -0
- package/dist/commands/entryOwn.d.ts.map +1 -0
- package/dist/commands/entryOwn.js +17 -0
- package/dist/commands/entryOwn.js.map +1 -0
- package/dist/commands/entryPreflight.d.ts +8 -0
- package/dist/commands/entryPreflight.d.ts.map +1 -0
- package/dist/commands/entryPreflight.js +48 -0
- package/dist/commands/entryPreflight.js.map +1 -0
- package/dist/commands/entryTick.d.ts +8 -0
- package/dist/commands/entryTick.d.ts.map +1 -0
- package/dist/commands/entryTick.js +43 -0
- package/dist/commands/entryTick.js.map +1 -0
- package/dist/commands/feedback.d.ts +36 -0
- package/dist/commands/feedback.d.ts.map +1 -0
- package/dist/commands/feedback.js +169 -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 +117 -0
- package/dist/commands/feedback.test.js.map +1 -0
- package/dist/commands/fields.d.ts.map +1 -1
- package/dist/commands/fields.js +1 -1
- 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/handshake.d.ts +42 -186
- package/dist/commands/handshake.d.ts.map +1 -1
- package/dist/commands/handshake.js +480 -1542
- package/dist/commands/handshake.js.map +1 -1
- package/dist/commands/handshakeCursorSkillCleanup.d.ts +36 -0
- package/dist/commands/handshakeCursorSkillCleanup.d.ts.map +1 -0
- package/dist/commands/handshakeCursorSkillCleanup.js +110 -0
- package/dist/commands/handshakeCursorSkillCleanup.js.map +1 -0
- package/dist/commands/handshakeDriftClassification.d.ts +33 -0
- package/dist/commands/handshakeDriftClassification.d.ts.map +1 -0
- package/dist/commands/handshakeDriftClassification.js +62 -0
- package/dist/commands/handshakeDriftClassification.js.map +1 -0
- package/dist/commands/history.d.ts +30 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +62 -0
- package/dist/commands/history.js.map +1 -0
- package/dist/commands/history.test.d.ts +2 -0
- package/dist/commands/history.test.d.ts.map +1 -0
- package/dist/commands/history.test.js +106 -0
- package/dist/commands/history.test.js.map +1 -0
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +22 -13
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +15 -11
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/organisation.d.ts +12 -0
- package/dist/commands/organisation.d.ts.map +1 -0
- package/dist/commands/organisation.js +147 -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 +114 -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 +41 -0
- package/dist/commands/organisationWrite.js.map +1 -0
- package/dist/commands/orient.d.ts +45 -96
- package/dist/commands/orient.d.ts.map +1 -1
- package/dist/commands/orient.js +137 -34
- package/dist/commands/orient.js.map +1 -1
- package/dist/commands/outcome.d.ts +90 -0
- package/dist/commands/outcome.d.ts.map +1 -0
- package/dist/commands/outcome.js +201 -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 +320 -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 +23 -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 +23 -2
- package/dist/commands/profile.d.ts.map +1 -1
- package/dist/commands/profile.js +192 -35
- package/dist/commands/profile.js.map +1 -1
- package/dist/commands/proof-run.d.ts +51 -0
- package/dist/commands/proof-run.d.ts.map +1 -0
- package/dist/commands/proof-run.js +209 -0
- package/dist/commands/proof-run.js.map +1 -0
- package/dist/commands/quality.d.ts +21 -0
- package/dist/commands/quality.d.ts.map +1 -0
- package/dist/commands/quality.js +52 -0
- package/dist/commands/quality.js.map +1 -0
- package/dist/commands/questions.d.ts +23 -0
- package/dist/commands/questions.d.ts.map +1 -0
- package/dist/commands/questions.js +238 -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 +159 -0
- package/dist/commands/questions.test.js.map +1 -0
- package/dist/commands/relate.d.ts +1 -0
- package/dist/commands/relate.d.ts.map +1 -1
- package/dist/commands/relate.js +85 -13
- package/dist/commands/relate.js.map +1 -1
- package/dist/commands/restore.d.ts +2 -0
- package/dist/commands/restore.d.ts.map +1 -0
- package/dist/commands/restore.js +83 -0
- package/dist/commands/restore.js.map +1 -0
- package/dist/commands/rework.d.ts +24 -0
- package/dist/commands/rework.d.ts.map +1 -0
- package/dist/commands/rework.js +97 -0
- package/dist/commands/rework.js.map +1 -0
- package/dist/commands/role.d.ts +88 -0
- package/dist/commands/role.d.ts.map +1 -0
- package/dist/commands/role.js +235 -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 +348 -0
- package/dist/commands/role.test.js.map +1 -0
- package/dist/commands/scoreboard.d.ts +26 -0
- package/dist/commands/scoreboard.d.ts.map +1 -0
- package/dist/commands/scoreboard.js +40 -0
- package/dist/commands/scoreboard.js.map +1 -0
- package/dist/commands/search.d.ts +2 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +5 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/session.d.ts +40 -7
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +361 -121
- 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 +48 -0
- package/dist/commands/stillTrue.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 +27 -0
- package/dist/commands/tensionsList.js.map +1 -0
- package/dist/commands/update.d.ts +21 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +155 -41
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/usage.d.ts.map +1 -1
- package/dist/commands/usage.js +0 -18
- package/dist/commands/usage.js.map +1 -1
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +5 -0
- package/dist/commands/verify.js.map +1 -1
- package/dist/commands/welcome.d.ts.map +1 -1
- package/dist/commands/welcome.js +5 -2
- package/dist/commands/welcome.js.map +1 -1
- package/dist/commands/whoami.d.ts +10 -2
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +76 -20
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/whoami.test.js +86 -6
- package/dist/commands/whoami.test.js.map +1 -1
- package/dist/commands/workspace.d.ts +7 -74
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +9 -70
- package/dist/commands/workspace.js.map +1 -1
- 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 +49 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts +2 -3
- package/dist/formatters/__tests__/orient-provenance.test.d.ts.map +1 -1
- package/dist/formatters/__tests__/orient-provenance.test.js +39 -174
- package/dist/formatters/__tests__/orient-provenance.test.js.map +1 -1
- 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 +93 -0
- package/dist/formatters/__tests__/orient-ruleLists.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 +195 -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 +199 -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 +6 -15
- package/dist/formatters/brief.d.ts.map +1 -1
- package/dist/formatters/brief.js +16 -14
- package/dist/formatters/brief.js.map +1 -1
- package/dist/formatters/brief.test.d.ts +2 -0
- package/dist/formatters/brief.test.d.ts.map +1 -0
- package/dist/formatters/brief.test.js +21 -0
- package/dist/formatters/brief.test.js.map +1 -0
- package/dist/formatters/capture.d.ts +17 -10
- package/dist/formatters/capture.d.ts.map +1 -1
- package/dist/formatters/capture.js +33 -10
- package/dist/formatters/capture.js.map +1 -1
- package/dist/formatters/coaching.d.ts +60 -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 +0 -1
- package/dist/formatters/collections.d.ts.map +1 -1
- package/dist/formatters/collections.js +14 -5
- package/dist/formatters/collections.js.map +1 -1
- package/dist/formatters/conflicts.d.ts +69 -0
- package/dist/formatters/conflicts.d.ts.map +1 -0
- package/dist/formatters/conflicts.js +87 -0
- package/dist/formatters/conflicts.js.map +1 -0
- package/dist/formatters/conflicts.test.d.ts +2 -0
- package/dist/formatters/conflicts.test.d.ts.map +1 -0
- package/dist/formatters/conflicts.test.js +136 -0
- package/dist/formatters/conflicts.test.js.map +1 -0
- package/dist/formatters/context.d.ts +1 -1
- package/dist/formatters/context.d.ts.map +1 -1
- package/dist/formatters/context.js.map +1 -1
- package/dist/formatters/digest.d.ts +13 -0
- package/dist/formatters/digest.d.ts.map +1 -0
- package/dist/formatters/digest.js +98 -0
- package/dist/formatters/digest.js.map +1 -0
- package/dist/formatters/digest.test.d.ts +2 -0
- package/dist/formatters/digest.test.d.ts.map +1 -0
- package/dist/formatters/digest.test.js +166 -0
- package/dist/formatters/digest.test.js.map +1 -0
- package/dist/formatters/direction.d.ts +48 -0
- package/dist/formatters/direction.d.ts.map +1 -0
- package/dist/formatters/direction.js +75 -0
- package/dist/formatters/direction.js.map +1 -0
- package/dist/formatters/direction.test.d.ts +2 -0
- package/dist/formatters/direction.test.d.ts.map +1 -0
- package/dist/formatters/direction.test.js +70 -0
- package/dist/formatters/direction.test.js.map +1 -0
- package/dist/formatters/entry.d.ts +49 -3
- package/dist/formatters/entry.d.ts.map +1 -1
- package/dist/formatters/entry.js +59 -7
- package/dist/formatters/entry.js.map +1 -1
- package/dist/formatters/entryAccept.d.ts +79 -0
- package/dist/formatters/entryAccept.d.ts.map +1 -0
- package/dist/formatters/entryAccept.js +78 -0
- package/dist/formatters/entryAccept.js.map +1 -0
- package/dist/formatters/feedback.d.ts +58 -0
- package/dist/formatters/feedback.d.ts.map +1 -0
- package/dist/formatters/feedback.js +91 -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 +123 -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/handshake.d.ts +24 -6
- package/dist/formatters/handshake.d.ts.map +1 -1
- package/dist/formatters/handshake.js +34 -15
- package/dist/formatters/handshake.js.map +1 -1
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts +2 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js +22 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js.map +1 -0
- package/dist/formatters/orient.d.ts +94 -145
- package/dist/formatters/orient.d.ts.map +1 -1
- package/dist/formatters/orient.js +145 -183
- 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 +77 -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 +72 -0
- package/dist/formatters/orient.rituals.test.js.map +1 -0
- package/dist/formatters/orientDegradation.d.ts +38 -0
- package/dist/formatters/orientDegradation.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.js +50 -0
- package/dist/formatters/orientDegradation.js.map +1 -0
- package/dist/formatters/orientDegradation.test.d.ts +2 -0
- package/dist/formatters/orientDegradation.test.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.test.js +28 -0
- package/dist/formatters/orientDegradation.test.js.map +1 -0
- package/dist/formatters/orientDirection.d.ts +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 +48 -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 +19 -0
- package/dist/formatters/plannedWorkCounts.d.ts.map +1 -0
- package/dist/formatters/plannedWorkCounts.js +17 -0
- package/dist/formatters/plannedWorkCounts.js.map +1 -0
- package/dist/formatters/qualityChecks.d.ts +8 -0
- package/dist/formatters/qualityChecks.d.ts.map +1 -0
- package/dist/formatters/qualityChecks.js +19 -0
- package/dist/formatters/qualityChecks.js.map +1 -0
- package/dist/formatters/questions.d.ts +72 -0
- package/dist/formatters/questions.d.ts.map +1 -0
- package/dist/formatters/questions.js +116 -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 +144 -0
- package/dist/formatters/questions.test.js.map +1 -0
- package/dist/formatters/relate.d.ts +13 -2
- package/dist/formatters/relate.d.ts.map +1 -1
- package/dist/formatters/relate.js +15 -5
- 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 +162 -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 +301 -0
- package/dist/formatters/scoreboard.test.js.map +1 -0
- package/dist/formatters/search.d.ts +24 -0
- package/dist/formatters/search.d.ts.map +1 -1
- package/dist/formatters/search.js +26 -11
- 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 +118 -0
- package/dist/formatters/session-feedback.test.js.map +1 -0
- package/dist/formatters/session.d.ts +117 -5
- package/dist/formatters/session.d.ts.map +1 -1
- package/dist/formatters/session.js +317 -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 +113 -0
- package/dist/formatters/spineCheck.js.map +1 -0
- package/dist/formatters/spineCheck.test.d.ts +2 -0
- package/dist/formatters/spineCheck.test.d.ts.map +1 -0
- package/dist/formatters/spineCheck.test.js +76 -0
- package/dist/formatters/spineCheck.test.js.map +1 -0
- package/dist/formatters/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 +22 -0
- package/dist/formatters/update.d.ts.map +1 -1
- package/dist/formatters/update.js +36 -7
- 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 +59 -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/relationTypes.generated.d.ts +12 -0
- package/dist/generated/relationTypes.generated.d.ts.map +1 -0
- package/dist/generated/relationTypes.generated.js +11 -0
- package/dist/generated/relationTypes.generated.js.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts +55 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.js +272 -0
- package/dist/generated/routeLatencyBudget.generated.js.map +1 -0
- package/dist/generated/sourceSurfaces.generated.d.ts +12 -0
- package/dist/generated/sourceSurfaces.generated.d.ts.map +1 -0
- package/dist/generated/sourceSurfaces.generated.js +11 -0
- package/dist/generated/sourceSurfaces.generated.js.map +1 -0
- package/dist/generators/adapters.d.ts +39 -6
- package/dist/generators/adapters.d.ts.map +1 -1
- package/dist/generators/adapters.js +88 -89
- package/dist/generators/adapters.js.map +1 -1
- package/dist/generators/adapters.test.js +14 -6
- package/dist/generators/adapters.test.js.map +1 -1
- package/dist/generators/briefing-projections.test.d.ts +2 -0
- package/dist/generators/briefing-projections.test.d.ts.map +1 -0
- package/dist/generators/briefing-projections.test.js +98 -0
- package/dist/generators/briefing-projections.test.js.map +1 -0
- package/dist/generators/context-md.d.ts +7 -2
- package/dist/generators/context-md.d.ts.map +1 -1
- package/dist/generators/context-md.js +14 -53
- package/dist/generators/context-md.js.map +1 -1
- package/dist/generators/everyone-rules-md.d.ts +9 -0
- package/dist/generators/everyone-rules-md.d.ts.map +1 -0
- package/dist/generators/everyone-rules-md.js +21 -0
- package/dist/generators/everyone-rules-md.js.map +1 -0
- package/dist/generators/noProjectionAssets.d.ts +15 -0
- package/dist/generators/noProjectionAssets.d.ts.map +1 -0
- package/dist/generators/noProjectionAssets.js +6 -0
- package/dist/generators/noProjectionAssets.js.map +1 -0
- package/dist/generators/portable-knowledge.d.ts +9 -26
- package/dist/generators/portable-knowledge.d.ts.map +1 -1
- package/dist/generators/portable-knowledge.js +11 -125
- package/dist/generators/portable-knowledge.js.map +1 -1
- package/dist/generators/portable-knowledge.test.js +82 -267
- package/dist/generators/portable-knowledge.test.js.map +1 -1
- package/dist/generators/region-projections.d.ts +0 -1
- package/dist/generators/region-projections.d.ts.map +1 -1
- package/dist/generators/region-projections.js +7 -5
- package/dist/generators/region-projections.js.map +1 -1
- package/dist/generators/region-projections.test.js +10 -15
- package/dist/generators/region-projections.test.js.map +1 -1
- package/dist/generators/region.test.js +9 -10
- package/dist/generators/region.test.js.map +1 -1
- package/dist/generators/retired-projections.d.ts +12 -0
- package/dist/generators/retired-projections.d.ts.map +1 -0
- package/dist/generators/retired-projections.js +75 -0
- package/dist/generators/retired-projections.js.map +1 -0
- package/dist/generators/retired-projections.test.d.ts +2 -0
- package/dist/generators/retired-projections.test.d.ts.map +1 -0
- package/dist/generators/retired-projections.test.js +64 -0
- package/dist/generators/retired-projections.test.js.map +1 -0
- package/dist/handleCliError.d.ts +15 -0
- package/dist/handleCliError.d.ts.map +1 -0
- package/dist/handleCliError.js +77 -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 +175 -582
- package/dist/index.js.map +1 -1
- package/dist/lib/__tests__/legalRelationTypes.test.d.ts +2 -0
- package/dist/lib/__tests__/legalRelationTypes.test.d.ts.map +1 -0
- package/dist/lib/__tests__/legalRelationTypes.test.js +61 -0
- package/dist/lib/__tests__/legalRelationTypes.test.js.map +1 -0
- package/dist/lib/__tests__/parseFields.test.d.ts +2 -0
- package/dist/lib/__tests__/parseFields.test.d.ts.map +1 -0
- package/dist/lib/__tests__/parseFields.test.js +40 -0
- package/dist/lib/__tests__/parseFields.test.js.map +1 -0
- package/dist/lib/adminConfig.d.ts +48 -0
- package/dist/lib/adminConfig.d.ts.map +1 -0
- package/dist/lib/adminConfig.js +130 -0
- package/dist/lib/adminConfig.js.map +1 -0
- package/dist/lib/canonicalRefs.d.ts +27 -8
- package/dist/lib/canonicalRefs.d.ts.map +1 -1
- package/dist/lib/canonicalRefs.js +25 -6
- package/dist/lib/canonicalRefs.js.map +1 -1
- package/dist/lib/captureGrounding.d.ts +48 -0
- package/dist/lib/captureGrounding.d.ts.map +1 -0
- package/dist/lib/captureGrounding.js +54 -0
- package/dist/lib/captureGrounding.js.map +1 -0
- package/dist/lib/captureGrounding.test.d.ts +2 -0
- package/dist/lib/captureGrounding.test.d.ts.map +1 -0
- package/dist/lib/captureGrounding.test.js +74 -0
- package/dist/lib/captureGrounding.test.js.map +1 -0
- package/dist/lib/captureLink.d.ts +26 -0
- package/dist/lib/captureLink.d.ts.map +1 -0
- package/dist/lib/captureLink.js +110 -0
- package/dist/lib/captureLink.js.map +1 -0
- package/dist/lib/checklist.d.ts +32 -0
- package/dist/lib/checklist.d.ts.map +1 -0
- package/dist/lib/checklist.js +77 -0
- package/dist/lib/checklist.js.map +1 -0
- package/dist/lib/client.d.ts +34 -19
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +226 -75
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/collectionRegistry.d.ts +40 -5
- package/dist/lib/collectionRegistry.d.ts.map +1 -1
- package/dist/lib/collectionRegistry.js +71 -48
- package/dist/lib/collectionRegistry.js.map +1 -1
- package/dist/lib/commanderOptions.d.ts +8 -0
- package/dist/lib/commanderOptions.d.ts.map +1 -0
- package/dist/lib/commanderOptions.js +10 -0
- package/dist/lib/commanderOptions.js.map +1 -0
- package/dist/lib/compose-wrapup-view.d.ts +56 -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 +66 -103
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +155 -287
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/configResult.d.ts +102 -0
- package/dist/lib/configResult.d.ts.map +1 -0
- package/dist/lib/configResult.js +179 -0
- package/dist/lib/configResult.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 +6 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +9 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/conversation.d.ts +36 -0
- package/dist/lib/conversation.d.ts.map +1 -0
- package/dist/lib/conversation.js +66 -0
- package/dist/lib/conversation.js.map +1 -0
- package/dist/lib/createEntryResult.d.ts +34 -0
- package/dist/lib/createEntryResult.d.ts.map +1 -0
- package/dist/lib/createEntryResult.js +12 -0
- package/dist/lib/createEntryResult.js.map +1 -0
- package/dist/lib/deployment.js +2 -2
- package/dist/lib/deployment.js.map +1 -1
- package/dist/lib/deployment.test.js +20 -1
- package/dist/lib/deployment.test.js.map +1 -1
- package/dist/lib/envKeySnapshot.d.ts +10 -0
- package/dist/lib/envKeySnapshot.d.ts.map +1 -0
- package/dist/lib/envKeySnapshot.js +30 -0
- package/dist/lib/envKeySnapshot.js.map +1 -0
- package/dist/lib/errors.d.ts +90 -0
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +83 -0
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/frontmatter.d.ts +55 -0
- package/dist/lib/frontmatter.d.ts.map +1 -0
- package/dist/lib/frontmatter.js +92 -0
- package/dist/lib/frontmatter.js.map +1 -0
- package/dist/lib/frontmatter.test.d.ts +15 -0
- package/dist/lib/frontmatter.test.d.ts.map +1 -0
- package/dist/lib/frontmatter.test.js +98 -0
- package/dist/lib/frontmatter.test.js.map +1 -0
- package/dist/lib/gatewayTimeout.d.ts +88 -0
- package/dist/lib/gatewayTimeout.d.ts.map +1 -0
- package/dist/lib/gatewayTimeout.js +118 -0
- package/dist/lib/gatewayTimeout.js.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts +2 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js +73 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js.map +1 -0
- package/dist/lib/glossary.d.ts +3 -15
- package/dist/lib/glossary.d.ts.map +1 -1
- package/dist/lib/glossary.js +6 -47
- package/dist/lib/glossary.js.map +1 -1
- package/dist/lib/hook-intents.d.ts +9 -4
- package/dist/lib/hook-intents.d.ts.map +1 -1
- package/dist/lib/hook-intents.js +10 -11
- package/dist/lib/hook-intents.js.map +1 -1
- 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 +42 -0
- package/dist/lib/kernelEnvelope.d.ts.map +1 -0
- package/dist/lib/kernelEnvelope.js +67 -0
- package/dist/lib/kernelEnvelope.js.map +1 -0
- package/dist/lib/legalRelationTypes.d.ts +19 -0
- package/dist/lib/legalRelationTypes.d.ts.map +1 -0
- package/dist/lib/legalRelationTypes.js +64 -0
- package/dist/lib/legalRelationTypes.js.map +1 -0
- package/dist/lib/localBinding.d.ts +86 -0
- package/dist/lib/localBinding.d.ts.map +1 -0
- package/dist/lib/localBinding.js +173 -0
- package/dist/lib/localBinding.js.map +1 -0
- package/dist/lib/method-registry.d.ts +16 -11
- package/dist/lib/method-registry.d.ts.map +1 -1
- package/dist/lib/method-registry.js +13 -25
- package/dist/lib/method-registry.js.map +1 -1
- package/dist/lib/normalizeMaterializedFilename.d.ts +3 -3
- package/dist/lib/normalizeMaterializedFilename.js +3 -3
- package/dist/lib/notice-marker.d.ts.map +1 -1
- package/dist/lib/notice-marker.js +186 -16
- package/dist/lib/notice-marker.js.map +1 -1
- package/dist/lib/outcomeObjectiveLines.d.ts +30 -0
- package/dist/lib/outcomeObjectiveLines.d.ts.map +1 -0
- package/dist/lib/outcomeObjectiveLines.js +29 -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 +28 -0
- package/dist/lib/pinnedRole.d.ts.map +1 -0
- package/dist/lib/pinnedRole.js +106 -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/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 +52 -4
- package/dist/lib/profiles.d.ts.map +1 -1
- package/dist/lib/profiles.js +72 -21
- package/dist/lib/profiles.js.map +1 -1
- package/dist/lib/projectConfig.d.ts +121 -0
- package/dist/lib/projectConfig.d.ts.map +1 -0
- package/dist/lib/projectConfig.js +226 -0
- package/dist/lib/projectConfig.js.map +1 -0
- package/dist/lib/prompts.d.ts +2 -0
- package/dist/lib/prompts.d.ts.map +1 -1
- package/dist/lib/prompts.js +2 -0
- package/dist/lib/prompts.js.map +1 -1
- 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 +34 -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 +12 -0
- package/dist/lib/readinessNotices.d.ts.map +1 -0
- package/dist/lib/readinessNotices.js +15 -0
- package/dist/lib/readinessNotices.js.map +1 -0
- package/dist/lib/repo-detect.d.ts +8 -2
- package/dist/lib/repo-detect.d.ts.map +1 -1
- package/dist/lib/repo-detect.js +11 -6
- package/dist/lib/repo-detect.js.map +1 -1
- package/dist/lib/reportedProfile.d.ts +18 -0
- package/dist/lib/reportedProfile.d.ts.map +1 -0
- package/dist/lib/reportedProfile.js +144 -0
- package/dist/lib/reportedProfile.js.map +1 -0
- package/dist/lib/ruleListRender.d.ts +255 -0
- package/dist/lib/ruleListRender.d.ts.map +1 -0
- package/dist/lib/ruleListRender.js +338 -0
- package/dist/lib/ruleListRender.js.map +1 -0
- package/dist/lib/runner.d.ts +9 -1
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/runner.js +30 -4
- package/dist/lib/runner.js.map +1 -1
- package/dist/lib/seatSentence.d.ts +62 -0
- package/dist/lib/seatSentence.d.ts.map +1 -0
- package/dist/lib/seatSentence.js +82 -0
- package/dist/lib/seatSentence.js.map +1 -0
- package/dist/lib/session.d.ts +86 -12
- package/dist/lib/session.d.ts.map +1 -1
- package/dist/lib/session.js +243 -24
- package/dist/lib/session.js.map +1 -1
- package/dist/lib/sessionBinding.d.ts +61 -0
- package/dist/lib/sessionBinding.d.ts.map +1 -0
- package/dist/lib/sessionBinding.js +125 -0
- package/dist/lib/sessionBinding.js.map +1 -0
- package/dist/lib/sessionNotices.d.ts +54 -0
- package/dist/lib/sessionNotices.d.ts.map +1 -0
- package/dist/lib/sessionNotices.js +130 -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 +55 -0
- package/dist/lib/sessionNotices.test.js.map +1 -0
- package/dist/lib/spineVerdictRead.d.ts +70 -0
- package/dist/lib/spineVerdictRead.d.ts.map +1 -0
- package/dist/lib/spineVerdictRead.js +73 -0
- package/dist/lib/spineVerdictRead.js.map +1 -0
- package/dist/lib/spinner.js +2 -2
- package/dist/lib/spinner.js.map +1 -1
- package/dist/lib/startup-resolution-signals.d.ts +34 -0
- package/dist/lib/startup-resolution-signals.d.ts.map +1 -0
- package/dist/lib/startup-resolution-signals.js +116 -0
- package/dist/lib/startup-resolution-signals.js.map +1 -0
- package/dist/lib/startup-resolution-signals.test.d.ts +2 -0
- package/dist/lib/startup-resolution-signals.test.d.ts.map +1 -0
- package/dist/lib/startup-resolution-signals.test.js +113 -0
- package/dist/lib/startup-resolution-signals.test.js.map +1 -0
- package/dist/lib/startup-signals.d.ts +12 -0
- package/dist/lib/startup-signals.d.ts.map +1 -0
- package/dist/lib/startup-signals.js +179 -0
- package/dist/lib/startup-signals.js.map +1 -0
- package/dist/lib/startup-signals.test.d.ts +2 -0
- package/dist/lib/startup-signals.test.d.ts.map +1 -0
- package/dist/lib/startup-signals.test.js +165 -0
- package/dist/lib/startup-signals.test.js.map +1 -0
- package/dist/lib/state.d.ts +11 -2
- package/dist/lib/state.d.ts.map +1 -1
- package/dist/lib/state.js +11 -4
- package/dist/lib/state.js.map +1 -1
- package/dist/lib/statusCategories.d.ts +160 -0
- package/dist/lib/statusCategories.d.ts.map +1 -0
- package/dist/lib/statusCategories.js +284 -0
- package/dist/lib/statusCategories.js.map +1 -0
- package/dist/lib/strip.d.ts +17 -0
- package/dist/lib/strip.d.ts.map +1 -1
- package/dist/lib/strip.js +48 -1
- package/dist/lib/strip.js.map +1 -1
- package/dist/lib/style.d.ts +8 -2
- package/dist/lib/style.d.ts.map +1 -1
- package/dist/lib/style.js +24 -17
- package/dist/lib/style.js.map +1 -1
- package/dist/lib/tokenConstants.d.ts +2 -0
- package/dist/lib/tokenConstants.d.ts.map +1 -1
- package/dist/lib/tokenConstants.js +2 -0
- package/dist/lib/tokenConstants.js.map +1 -1
- package/dist/lib/update-check.d.ts +3 -2
- package/dist/lib/update-check.d.ts.map +1 -1
- package/dist/lib/update-check.js +10 -4
- package/dist/lib/update-check.js.map +1 -1
- package/dist/lib/workspaceNotice.d.ts +202 -0
- package/dist/lib/workspaceNotice.d.ts.map +1 -0
- package/dist/lib/workspaceNotice.js +345 -0
- package/dist/lib/workspaceNotice.js.map +1 -0
- package/dist/lib/writePerimeter.d.ts +72 -0
- package/dist/lib/writePerimeter.d.ts.map +1 -0
- package/dist/lib/writePerimeter.js +128 -0
- package/dist/lib/writePerimeter.js.map +1 -0
- package/dist/registerEntryCommands.d.ts +18 -0
- package/dist/registerEntryCommands.d.ts.map +1 -0
- package/dist/registerEntryCommands.js +123 -0
- package/dist/registerEntryCommands.js.map +1 -0
- package/dist/registerHistoryCommand.d.ts +8 -0
- package/dist/registerHistoryCommand.d.ts.map +1 -0
- package/dist/registerHistoryCommand.js +14 -0
- package/dist/registerHistoryCommand.js.map +1 -0
- package/dist/registerOutcomeCommands.d.ts +27 -0
- package/dist/registerOutcomeCommands.d.ts.map +1 -0
- package/dist/registerOutcomeCommands.js +27 -0
- package/dist/registerOutcomeCommands.js.map +1 -0
- package/dist/registerRoleCommands.d.ts +11 -0
- package/dist/registerRoleCommands.d.ts.map +1 -0
- package/dist/registerRoleCommands.js +42 -0
- package/dist/registerRoleCommands.js.map +1 -0
- package/dist/registerTensionsCommands.d.ts +10 -0
- package/dist/registerTensionsCommands.d.ts.map +1 -0
- package/dist/registerTensionsCommands.js +15 -0
- package/dist/registerTensionsCommands.js.map +1 -0
- package/dist/scoreboard/diagnose.d.ts +190 -0
- package/dist/scoreboard/diagnose.d.ts.map +1 -0
- package/dist/scoreboard/diagnose.js +282 -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 +288 -0
- package/dist/scoreboard/diagnose.test.js.map +1 -0
- package/dist/scoreboard/floors.d.ts +47 -0
- package/dist/scoreboard/floors.d.ts.map +1 -0
- package/dist/scoreboard/floors.js +33 -0
- package/dist/scoreboard/floors.js.map +1 -0
- package/dist/scoreboard/localDrift.d.ts +23 -0
- package/dist/scoreboard/localDrift.d.ts.map +1 -0
- package/dist/scoreboard/localDrift.js +111 -0
- package/dist/scoreboard/localDrift.js.map +1 -0
- package/dist/scoreboard/localDrift.test.d.ts +9 -0
- package/dist/scoreboard/localDrift.test.d.ts.map +1 -0
- package/dist/scoreboard/localDrift.test.js +82 -0
- package/dist/scoreboard/localDrift.test.js.map +1 -0
- package/dist/surfaces/__tests__/adapter.test.js +2 -6
- package/dist/surfaces/__tests__/adapter.test.js.map +1 -1
- package/dist/surfaces/__tests__/claude-skill-pointer-drift.test.d.ts +2 -0
- package/dist/surfaces/__tests__/claude-skill-pointer-drift.test.d.ts.map +1 -0
- package/dist/surfaces/__tests__/claude-skill-pointer-drift.test.js +179 -0
- package/dist/surfaces/__tests__/claude-skill-pointer-drift.test.js.map +1 -0
- package/dist/surfaces/adapters/claude.d.ts.map +1 -1
- package/dist/surfaces/adapters/claude.js +30 -25
- package/dist/surfaces/adapters/claude.js.map +1 -1
- package/dist/surfaces/registry.js +1 -1
- package/dist/surfaces/registry.js.map +1 -1
- package/package.json +9 -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 -399
- package/dist/__tests__/audit.test.js.map +0 -1
- package/dist/__tests__/authority-domains.test.d.ts +0 -2
- package/dist/__tests__/authority-domains.test.d.ts.map +0 -1
- package/dist/__tests__/authority-domains.test.js +0 -48
- package/dist/__tests__/authority-domains.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__/onboarding-path-b.test.d.ts +0 -2
- package/dist/__tests__/onboarding-path-b.test.d.ts.map +0 -1
- package/dist/__tests__/onboarding-path-b.test.js +0 -46
- package/dist/__tests__/onboarding-path-b.test.js.map +0 -1
- package/dist/__tests__/onboarding.test.d.ts +0 -6
- package/dist/__tests__/onboarding.test.d.ts.map +0 -1
- package/dist/__tests__/onboarding.test.js +0 -347
- package/dist/__tests__/onboarding.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 -230
- 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 -167
- package/dist/__tests__/proposals.test.js.map +0 -1
- package/dist/__tests__/setup-ingest.test.d.ts +0 -2
- package/dist/__tests__/setup-ingest.test.d.ts.map +0 -1
- package/dist/__tests__/setup-ingest.test.js +0 -71
- package/dist/__tests__/setup-ingest.test.js.map +0 -1
- package/dist/__tests__/setup-resolver.test.d.ts +0 -14
- package/dist/__tests__/setup-resolver.test.d.ts.map +0 -1
- package/dist/__tests__/setup-resolver.test.js +0 -228
- package/dist/__tests__/setup-resolver.test.js.map +0 -1
- package/dist/commands/__tests__/setup-detect-surfaces.test.d.ts +0 -15
- package/dist/commands/__tests__/setup-detect-surfaces.test.d.ts.map +0 -1
- package/dist/commands/__tests__/setup-detect-surfaces.test.js +0 -149
- package/dist/commands/__tests__/setup-detect-surfaces.test.js.map +0 -1
- package/dist/commands/__tests__/setup-state.test.d.ts +0 -2
- package/dist/commands/__tests__/setup-state.test.d.ts.map +0 -1
- package/dist/commands/__tests__/setup-state.test.js +0 -194
- package/dist/commands/__tests__/setup-state.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 -76
- 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 -215
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/authority-domains.d.ts +0 -146
- package/dist/commands/authority-domains.d.ts.map +0 -1
- package/dist/commands/authority-domains.js +0 -283
- package/dist/commands/authority-domains.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/ingest.d.ts +0 -14
- package/dist/commands/ingest.d.ts.map +0 -1
- package/dist/commands/ingest.js +0 -189
- package/dist/commands/ingest.js.map +0 -1
- package/dist/commands/method.d.ts +0 -99
- package/dist/commands/method.d.ts.map +0 -1
- package/dist/commands/method.js +0 -785
- package/dist/commands/method.js.map +0 -1
- package/dist/commands/migrate-setup.d.ts +0 -18
- package/dist/commands/migrate-setup.d.ts.map +0 -1
- package/dist/commands/migrate-setup.js +0 -198
- package/dist/commands/migrate-setup.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 -113
- 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 -44
- package/dist/commands/reject.js.map +0 -1
- package/dist/commands/setup-audit.d.ts +0 -59
- package/dist/commands/setup-audit.d.ts.map +0 -1
- package/dist/commands/setup-audit.js +0 -250
- package/dist/commands/setup-audit.js.map +0 -1
- package/dist/commands/setup-detect-surfaces.d.ts +0 -38
- package/dist/commands/setup-detect-surfaces.d.ts.map +0 -1
- package/dist/commands/setup-detect-surfaces.js +0 -76
- package/dist/commands/setup-detect-surfaces.js.map +0 -1
- package/dist/commands/setup-ingest.d.ts +0 -17
- package/dist/commands/setup-ingest.d.ts.map +0 -1
- package/dist/commands/setup-ingest.js +0 -226
- package/dist/commands/setup-ingest.js.map +0 -1
- package/dist/commands/setup-resolver.d.ts +0 -58
- package/dist/commands/setup-resolver.d.ts.map +0 -1
- package/dist/commands/setup-resolver.js +0 -150
- package/dist/commands/setup-resolver.js.map +0 -1
- package/dist/commands/setup-state.d.ts +0 -42
- package/dist/commands/setup-state.d.ts.map +0 -1
- package/dist/commands/setup-state.js +0 -93
- package/dist/commands/setup-state.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -23
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -69
- package/dist/commands/setup.js.map +0 -1
- package/dist/formatters/audit.d.ts +0 -52
- 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/promote.d.ts +0 -30
- package/dist/formatters/promote.d.ts.map +0 -1
- package/dist/formatters/promote.js +0 -39
- package/dist/formatters/promote.js.map +0 -1
- package/dist/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/archetypes.d.ts +0 -52
- package/dist/generators/archetypes.d.ts.map +0 -1
- package/dist/generators/archetypes.js +0 -153
- package/dist/generators/archetypes.js.map +0 -1
- package/dist/generators/archetypes.test.d.ts +0 -2
- package/dist/generators/archetypes.test.d.ts.map +0 -1
- package/dist/generators/archetypes.test.js +0 -237
- package/dist/generators/archetypes.test.js.map +0 -1
- package/dist/generators/chain-classifier.d.ts +0 -49
- package/dist/generators/chain-classifier.d.ts.map +0 -1
- package/dist/generators/chain-classifier.js +0 -180
- package/dist/generators/chain-classifier.js.map +0 -1
- package/dist/generators/chain-classifier.test.d.ts +0 -2
- package/dist/generators/chain-classifier.test.d.ts.map +0 -1
- package/dist/generators/chain-classifier.test.js +0 -257
- package/dist/generators/chain-classifier.test.js.map +0 -1
- package/dist/generators/chain-rules.d.ts +0 -42
- package/dist/generators/chain-rules.d.ts.map +0 -1
- package/dist/generators/chain-rules.js +0 -144
- package/dist/generators/chain-rules.js.map +0 -1
- package/dist/generators/chain-rules.test.d.ts +0 -2
- package/dist/generators/chain-rules.test.d.ts.map +0 -1
- package/dist/generators/chain-rules.test.js +0 -179
- package/dist/generators/chain-rules.test.js.map +0 -1
- package/dist/generators/handshake-diff.d.ts +0 -67
- package/dist/generators/handshake-diff.d.ts.map +0 -1
- package/dist/generators/handshake-diff.js +0 -183
- package/dist/generators/handshake-diff.js.map +0 -1
- package/dist/generators/handshake-diff.test.d.ts +0 -2
- package/dist/generators/handshake-diff.test.d.ts.map +0 -1
- package/dist/generators/handshake-diff.test.js +0 -264
- package/dist/generators/handshake-diff.test.js.map +0 -1
- package/dist/lib/activation.d.ts +0 -28
- package/dist/lib/activation.d.ts.map +0 -1
- package/dist/lib/activation.js +0 -57
- package/dist/lib/activation.js.map +0 -1
- package/dist/lib/activation.test.d.ts +0 -6
- package/dist/lib/activation.test.d.ts.map +0 -1
- package/dist/lib/activation.test.js +0 -121
- package/dist/lib/activation.test.js.map +0 -1
- package/dist/lib/conversation-engine.d.ts +0 -45
- package/dist/lib/conversation-engine.d.ts.map +0 -1
- package/dist/lib/conversation-engine.js +0 -112
- package/dist/lib/conversation-engine.js.map +0 -1
- package/dist/lib/conversation-phases.d.ts +0 -59
- package/dist/lib/conversation-phases.d.ts.map +0 -1
- package/dist/lib/conversation-phases.js +0 -11
- package/dist/lib/conversation-phases.js.map +0 -1
- package/dist/lib/conversation-signals.d.ts +0 -30
- package/dist/lib/conversation-signals.d.ts.map +0 -1
- package/dist/lib/conversation-signals.js +0 -64
- package/dist/lib/conversation-signals.js.map +0 -1
- package/dist/lib/inferSourceDate.d.ts +0 -12
- package/dist/lib/inferSourceDate.d.ts.map +0 -1
- package/dist/lib/inferSourceDate.js +0 -44
- package/dist/lib/inferSourceDate.js.map +0 -1
- package/dist/lib/onboarding-path-b.d.ts +0 -10
- package/dist/lib/onboarding-path-b.d.ts.map +0 -1
- package/dist/lib/onboarding-path-b.js +0 -213
- package/dist/lib/onboarding-path-b.js.map +0 -1
- package/dist/lib/onboarding-shared.d.ts +0 -80
- package/dist/lib/onboarding-shared.d.ts.map +0 -1
- package/dist/lib/onboarding-shared.js +0 -174
- package/dist/lib/onboarding-shared.js.map +0 -1
- package/dist/lib/onboarding-topics.d.ts +0 -27
- package/dist/lib/onboarding-topics.d.ts.map +0 -1
- package/dist/lib/onboarding-topics.js +0 -57
- package/dist/lib/onboarding-topics.js.map +0 -1
- package/dist/lib/onboarding.d.ts +0 -17
- package/dist/lib/onboarding.d.ts.map +0 -1
- package/dist/lib/onboarding.js +0 -350
- package/dist/lib/onboarding.js.map +0 -1
- package/dist/setup/__tests__/coach-traces.test.d.ts +0 -2
- package/dist/setup/__tests__/coach-traces.test.d.ts.map +0 -1
- package/dist/setup/__tests__/coach-traces.test.js +0 -189
- package/dist/setup/__tests__/coach-traces.test.js.map +0 -1
- package/dist/setup/__tests__/setup-commands.test.d.ts +0 -2
- package/dist/setup/__tests__/setup-commands.test.d.ts.map +0 -1
- package/dist/setup/__tests__/setup-commands.test.js +0 -177
- package/dist/setup/__tests__/setup-commands.test.js.map +0 -1
- package/dist/setup/__tests__/state-machine.test.d.ts +0 -2
- package/dist/setup/__tests__/state-machine.test.d.ts.map +0 -1
- package/dist/setup/__tests__/state-machine.test.js +0 -341
- package/dist/setup/__tests__/state-machine.test.js.map +0 -1
- package/dist/setup/detect-surfaces.d.ts +0 -21
- package/dist/setup/detect-surfaces.d.ts.map +0 -1
- package/dist/setup/detect-surfaces.js +0 -39
- package/dist/setup/detect-surfaces.js.map +0 -1
- package/dist/setup/manifest-writer.d.ts +0 -17
- package/dist/setup/manifest-writer.d.ts.map +0 -1
- package/dist/setup/manifest-writer.js +0 -153
- package/dist/setup/manifest-writer.js.map +0 -1
- package/dist/setup/perimeter.d.ts +0 -72
- package/dist/setup/perimeter.d.ts.map +0 -1
- package/dist/setup/perimeter.js +0 -128
- package/dist/setup/perimeter.js.map +0 -1
- package/dist/setup/state-machine.d.ts +0 -67
- package/dist/setup/state-machine.d.ts.map +0 -1
- package/dist/setup/state-machine.js +0 -124
- package/dist/setup/state-machine.js.map +0 -1
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.d.ts +0 -2
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.d.ts.map +0 -1
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.js +0 -132
- package/dist/surfaces/__tests__/pb-setup-passthrough.test.js.map +0 -1
- package/templates/archetypes/boundary.md +0 -23
- package/templates/archetypes/constraint.md +0 -23
- package/templates/archetypes/convention.md +0 -23
- package/templates/archetypes/policy.md +0 -23
- package/templates/archetypes/quality-gate.md +0 -23
- package/templates/archetypes/workflow.md +0 -23
package/dist/index.js
CHANGED
|
@@ -1,171 +1,84 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Product Brain CLI — Chain knowledge + write-back in the terminal.
|
|
4
|
-
*
|
|
5
|
-
* BET-181 Slice 0: global --json / --pretty flags for agent-native output (DEC-299).
|
|
3
|
+
* Product Brain CLI — Chain knowledge + write-back in the terminal. Read: BET-108.
|
|
4
|
+
* Write: pb session + pb capture (TEN-27, INS-80). BET-181 Slice 0: global --json / --pretty flags for agent-native output (DEC-299).
|
|
6
5
|
*/
|
|
7
6
|
import { readFileSync } from 'node:fs';
|
|
8
7
|
import { dirname, join } from 'node:path';
|
|
9
8
|
import { fileURLToPath } from 'node:url';
|
|
10
|
-
import { Command
|
|
9
|
+
import { Command } from 'commander';
|
|
11
10
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
11
|
const cliPackageVersion = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
|
|
13
12
|
import { setOutputMode, setQuietMode, isJsonMode } from './lib/runner.js';
|
|
14
13
|
import { CLIError, ErrorCode } from './lib/errors.js';
|
|
14
|
+
import { handleCliError as handleError } from './handleCliError.js';
|
|
15
15
|
import { runContext } from './commands/context.js';
|
|
16
16
|
import { runGet, runGetMany } from './commands/get.js';
|
|
17
|
+
import { runScoreboard } from './commands/scoreboard.js';
|
|
18
|
+
import { registerHistoryCommand } from './registerHistoryCommand.js';
|
|
19
|
+
import { runReworkReport } from './commands/rework.js';
|
|
17
20
|
import { runConnect } from './commands/connect.js';
|
|
18
21
|
import { runLogin } from './commands/login.js';
|
|
19
|
-
import { runSetup } from './commands/setup.js';
|
|
20
|
-
import { runSetupDetectSurfaces, formatDetectSurfacesSummary } from './commands/setup-detect-surfaces.js';
|
|
21
|
-
import { runSetupState } from './commands/setup-state.js';
|
|
22
|
-
import { runSetupAudit } from './commands/setup-audit.js';
|
|
23
22
|
import { runOrient } from './commands/orient.js';
|
|
24
23
|
import { runSearch } from './commands/search.js';
|
|
25
24
|
import { runHandshake, runHandshakeInit } from './commands/handshake.js';
|
|
26
|
-
import { runSessionStart, runSessionClose, runSessionId, runSessionReset } from './commands/session.js';
|
|
25
|
+
import { runSessionStart, runSessionClose, runSessionId, runSessionReset, runSessionList, runSessionShow } from './commands/session.js';
|
|
27
26
|
import { runCapture } from './commands/capture.js';
|
|
28
27
|
import { runUpdate } from './commands/update.js';
|
|
29
|
-
import {
|
|
30
|
-
import { runIngest } from './commands/ingest.js';
|
|
28
|
+
import { runRestore } from './commands/restore.js';
|
|
31
29
|
import { runFields } from './commands/fields.js';
|
|
32
30
|
import { runConstellation } from './commands/constellation.js';
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { runAudit } from './commands/audit.js';
|
|
36
|
-
import { runProposals } from './commands/proposals.js';
|
|
37
|
-
import { runAccept } from './commands/accept.js';
|
|
38
|
-
import { runReject } from './commands/reject.js';
|
|
31
|
+
import { registerEntryCommands, registerRelateCommands } from './registerEntryCommands.js';
|
|
32
|
+
import { registerTensionsCommands } from './registerTensionsCommands.js'; // WP-768 L0: same-line combine
|
|
39
33
|
import { runChanges } from './commands/changes.js';
|
|
34
|
+
import { registerOutcomeCommands } from './registerOutcomeCommands.js';
|
|
35
|
+
import { registerRoleCommands } from './registerRoleCommands.js';
|
|
40
36
|
import { runChainWalk } from './commands/chain-walk.js';
|
|
41
37
|
import { runCrossCut } from './commands/cross-cut.js';
|
|
42
38
|
import { runBrief, runCompoundBrief, isCompoundType } from './commands/brief.js';
|
|
39
|
+
import { runDigest } from './commands/digest.js'; // same-line combine
|
|
43
40
|
import { runVerify } from './commands/verify.js';
|
|
44
41
|
import { runCodexPrep } from './commands/codex-prep.js';
|
|
42
|
+
import { runStillTrue } from './commands/stillTrue.js'; // same-line combine, TASK-384 S1
|
|
45
43
|
import { runCollectionsList, runCollectionsGet, runCollectionsAudit, runCollectionsExport } from './commands/collections.js';
|
|
46
|
-
import { runWorkspaceVerify,
|
|
47
|
-
import { runAuthorityDomainsActivateCutover, runAuthorityDomainsDeactivateCutover, runAuthorityDomainsBenchmark, runAuthorityDomainsDiscardPending, runAuthorityDomainsPropose, runAuthorityDomainsRatify, runAuthorityDomainsReadiness, runAuthorityDomainsRecordSample, runAuthorityDomainsReject, runAuthorityDomainsReview, runAuthorityDomainsPrincipleDistribution, } from './commands/authority-domains.js';
|
|
44
|
+
import { runWorkspaceVerify, runDefinitionsDiff } from './commands/workspace.js';
|
|
48
45
|
import { runDoctor } from './commands/doctor.js';
|
|
49
46
|
import { runWhoami } from './commands/whoami.js';
|
|
47
|
+
import { runFiles } from './commands/files.js';
|
|
50
48
|
import { runUpgrade } from './commands/upgrade.js';
|
|
51
49
|
import { runProfileList, runProfileCreate, runProfileUse, runProfileDelete } from './commands/profile.js';
|
|
52
50
|
import { runInit } from './commands/init.js';
|
|
53
|
-
import {
|
|
51
|
+
import { runStatus } from './commands/status.js';
|
|
54
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
|
|
55
59
|
import { runUsage } from './commands/usage.js';
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
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 { API_KEY_PREFIX } from './lib/tokenConstants.js'; // same-line combine
|
|
65
|
+
import { heading } from './lib/style.js';
|
|
66
|
+
import { printPreviewBanner } from './lib/previewBanner.js';
|
|
60
67
|
import { checkForUpdate } from './lib/update-check.js';
|
|
61
68
|
import { UPGRADE_COMMAND } from './lib/constants.js';
|
|
62
|
-
import { resolveSetupState, detectRenderTier } from './lib/state.js';
|
|
63
69
|
const program = new Command();
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* addition to the PREVIEW banner. Each is registered directly on `program`, so
|
|
67
|
-
* `actionCommand.name()` matches verbatim. We gate on top-level (parent === program)
|
|
68
|
-
* to avoid false positives from nested commands whose leaf name collides
|
|
69
|
-
* (e.g. `pb workspace verify`, which is a health check, not a Chain write).
|
|
70
|
-
*/
|
|
71
|
-
const PREVIEW_WRITE_COMMANDS = new Set([
|
|
72
|
-
'capture',
|
|
73
|
-
'update',
|
|
74
|
-
'verify',
|
|
75
|
-
'promote',
|
|
76
|
-
'relate',
|
|
77
|
-
'unrelate',
|
|
78
|
-
'ingest',
|
|
79
|
-
'accept',
|
|
80
|
-
'reject',
|
|
81
|
-
]);
|
|
82
|
-
/**
|
|
83
|
-
* Print a loud PREVIEW banner to stderr when pb is bound to a throwaway preview.
|
|
84
|
-
*
|
|
85
|
-
* Writes to stderr (NOT stdout) so stdout stays clean JSON for agents — and so the
|
|
86
|
-
* banner appears even when --json or --quiet are set, which is the whole point: the
|
|
87
|
-
* agent must see it every time. Cheap + synchronous (one file read). Never throws.
|
|
88
|
-
*
|
|
89
|
-
* For every Chain-write command (see PREVIEW_WRITE_COMMANDS), also writes an
|
|
90
|
-
* advisory reminding the user that real learnings belong in the real Chain.
|
|
91
|
-
*/
|
|
92
|
-
function printPreviewBanner(actionCommand) {
|
|
93
|
-
try {
|
|
94
|
-
const binding = getPreviewBinding();
|
|
95
|
-
if (!binding)
|
|
96
|
-
return;
|
|
97
|
-
const name = binding.workspaceName ?? 'preview';
|
|
98
|
-
process.stderr.write(yellow(bold(`⚠ PREVIEW ${name} — writes are throwaway. npm run pb:real to return to the real Chain`)) + '\n');
|
|
99
|
-
const isTopLevel = actionCommand.parent?.name() === 'pb';
|
|
100
|
-
if (isTopLevel && PREVIEW_WRITE_COMMANDS.has(actionCommand.name())) {
|
|
101
|
-
process.stderr.write(` → real learnings belong in the real Chain. Switch back with: npm run pb:real\n`);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
catch {
|
|
105
|
-
// Never let the banner crash the CLI
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Global error handler — single exit point for all CLI errors.
|
|
110
|
-
* CLIError: format with code + category + guidance.
|
|
111
|
-
* CommanderError: re-throw for --help / --version (exitCode 0), format others.
|
|
112
|
-
* Regular Error: wrap as INTERNAL.
|
|
113
|
-
*/
|
|
114
|
-
function handleError(err) {
|
|
115
|
-
// Commander help/version exits with code 0 — let them through
|
|
116
|
-
if (err instanceof CommanderError && err.exitCode === 0) {
|
|
117
|
-
process.exit(0);
|
|
118
|
-
}
|
|
119
|
-
const json = isJsonMode();
|
|
120
|
-
if (err instanceof CLIError) {
|
|
121
|
-
if (json) {
|
|
122
|
-
process.stderr.write(JSON.stringify(err.toJSON()) + '\n');
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
process.stderr.write(err.message + '\n');
|
|
126
|
-
if (err.guidance) {
|
|
127
|
-
process.stderr.write(err.guidance + '\n');
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
process.exit(1);
|
|
131
|
-
}
|
|
132
|
-
// CommanderError (bad usage, missing args, etc.)
|
|
133
|
-
if (err instanceof CommanderError) {
|
|
134
|
-
const cliErr = new CLIError(err.message, {
|
|
135
|
-
code: ErrorCode.VALIDATION_FAILED,
|
|
136
|
-
category: 'validation',
|
|
137
|
-
});
|
|
138
|
-
if (json) {
|
|
139
|
-
process.stderr.write(JSON.stringify(cliErr.toJSON()) + '\n');
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
process.stderr.write(err.message + '\n');
|
|
143
|
-
}
|
|
144
|
-
process.exit(err.exitCode);
|
|
145
|
-
}
|
|
146
|
-
// Unknown / unstructured errors
|
|
147
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
148
|
-
if (json) {
|
|
149
|
-
process.stderr.write(JSON.stringify({ error: message, code: 'INTERNAL', category: 'internal' }) + '\n');
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
process.stderr.write(message + '\n');
|
|
153
|
-
}
|
|
154
|
-
process.exit(1);
|
|
155
|
-
}
|
|
70
|
+
// WP-753 V2 (TASK-203): the global error handler lives in ./handleCliError.ts (STD-2/DEC-1724 —
|
|
71
|
+
// kept out of this grandfathered file); imported below as handleError for the call site's own name.
|
|
156
72
|
program
|
|
157
73
|
.name('pb')
|
|
158
74
|
.description('Product Brain — Chain knowledge + write-back CLI')
|
|
159
75
|
.version(cliPackageVersion.version)
|
|
160
76
|
// Global output mode flags (DEC-299, BET-181)
|
|
161
|
-
.option('--json', 'Output machine-readable JSON (
|
|
162
|
-
.option('--pretty', 'Force human-readable output even when
|
|
77
|
+
.option('--json', 'Output machine-readable JSON (the card is the default even when piped)')
|
|
78
|
+
.option('--pretty', 'Force human-readable output even when PB_JSON=1 is set')
|
|
163
79
|
.option('-q, --quiet', 'Suppress non-essential output (banners, hints, progress)')
|
|
164
80
|
.exitOverride(); // Throw CommanderError instead of calling process.exit directly
|
|
165
|
-
// Apply global output mode BEFORE subcommand actions run
|
|
166
|
-
// Commander preAction hook signature: (hookedCommand, actionCommand)
|
|
167
|
-
// hookedCommand = the command where hook was registered (root program)
|
|
168
|
-
// actionCommand = the subcommand actually being invoked
|
|
81
|
+
// Apply global output mode BEFORE subcommand actions run. Commander preAction hook signature: (hookedCommand = root program, actionCommand = the subcommand actually invoked).
|
|
169
82
|
program.hook('preAction', (_hookedCommand, actionCommand) => {
|
|
170
83
|
const globalOpts = program.opts();
|
|
171
84
|
if (globalOpts.json) {
|
|
@@ -174,129 +87,18 @@ program.hook('preAction', (_hookedCommand, actionCommand) => {
|
|
|
174
87
|
else if (globalOpts.pretty) {
|
|
175
88
|
setOutputMode('pretty');
|
|
176
89
|
}
|
|
177
|
-
// else: 'auto' (default) — TTY
|
|
90
|
+
// else: 'auto' (default) — isJsonMode() checks PB_JSON=1, never TTY (WP-744 / 1e-B)
|
|
178
91
|
if (globalOpts.quiet) {
|
|
179
92
|
setQuietMode(true);
|
|
180
93
|
}
|
|
181
94
|
// Ambient update notification — non-blocking, suppressed in JSON mode (WP-322 S1)
|
|
182
95
|
checkForUpdate(cliPackageVersion.version);
|
|
183
|
-
// PREVIEW banner — writes to stderr so it's always visible even in --json/--quiet mode.
|
|
184
|
-
// Advisory line added for top-level Chain-write commands: real learnings belong in the real Chain.
|
|
96
|
+
// 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.
|
|
185
97
|
printPreviewBanner(actionCommand);
|
|
186
98
|
});
|
|
187
|
-
// Default action — status dashboard when `pb` is invoked with no command.
|
|
188
|
-
// `pb --help` still works because Commander intercepts --help before the action runs.
|
|
99
|
+
// Default action — status dashboard when `pb` is invoked with no command. `pb --help` still works because Commander intercepts --help before the action runs.
|
|
189
100
|
program.action(async () => {
|
|
190
|
-
|
|
191
|
-
if (program.args.length > 0) {
|
|
192
|
-
const args = program.args;
|
|
193
|
-
// `pb start` / `pb start session` → `pb session start`
|
|
194
|
-
if (args[0] === 'start') {
|
|
195
|
-
await runSessionStart();
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
// `pb close` / `pb close session` → `pb session close`
|
|
199
|
-
if (args[0] === 'close') {
|
|
200
|
-
await runSessionClose({});
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
// Unknown command — show a helpful error instead of the welcome screen
|
|
204
|
-
const unknown = args[0];
|
|
205
|
-
process.stderr.write(`error: unknown command '${unknown}'\n`);
|
|
206
|
-
process.stderr.write(`Run 'pb --help' to see available commands.\n`);
|
|
207
|
-
process.exit(1);
|
|
208
|
-
}
|
|
209
|
-
const tier = detectRenderTier();
|
|
210
|
-
// JSON tier — structured status output
|
|
211
|
-
if (tier === 'json') {
|
|
212
|
-
// Check for API key first (sync, no network)
|
|
213
|
-
let hasKey = false;
|
|
214
|
-
try {
|
|
215
|
-
const { getConfig: gc } = await import('./lib/config.js');
|
|
216
|
-
gc();
|
|
217
|
-
hasKey = true;
|
|
218
|
-
}
|
|
219
|
-
catch {
|
|
220
|
-
// No valid key
|
|
221
|
-
}
|
|
222
|
-
if (!hasKey) {
|
|
223
|
-
process.stdout.write(JSON.stringify({
|
|
224
|
-
configured: false,
|
|
225
|
-
hint: 'Run pb login to configure your API key.',
|
|
226
|
-
}) + '\n');
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
const { readSession } = await import('./lib/session.js');
|
|
230
|
-
const { probeWorkspace } = await import('./lib/workspace-probe.js');
|
|
231
|
-
const session = readSession();
|
|
232
|
-
const wsInfo = await probeWorkspace();
|
|
233
|
-
process.stdout.write(JSON.stringify({
|
|
234
|
-
configured: true,
|
|
235
|
-
workspace: wsInfo?.name ?? null,
|
|
236
|
-
session: session ? { id: session.sessionId, startedAt: session.startedAt } : null,
|
|
237
|
-
entryCount: wsInfo?.entryCount ?? null,
|
|
238
|
-
hint: 'Run pb --help for available commands.',
|
|
239
|
-
}) + '\n');
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
// Ink tier: suppress withSpinner output before Ink mounts — spinner writes pollute the TUI canvas
|
|
243
|
-
if (tier === 'ink')
|
|
244
|
-
setQuietMode(true);
|
|
245
|
-
// Resolve state (plain and ink both need it)
|
|
246
|
-
const state = await resolveSetupState();
|
|
247
|
-
// Plain tier — console output driven by state
|
|
248
|
-
if (tier === 'plain') {
|
|
249
|
-
process.stdout.write('\n');
|
|
250
|
-
if (state.stage === 'unconfigured') {
|
|
251
|
-
process.stdout.write(`${bold('Product Brain')} ${dim('— not connected')}\n\n`);
|
|
252
|
-
process.stdout.write(`${heading('Get started')}\n\n`);
|
|
253
|
-
hint('1. pb login Save your API key');
|
|
254
|
-
hint('2. pb connect Connect a workspace');
|
|
255
|
-
hint('3. pb orient -b See what\'s happening');
|
|
256
|
-
process.stdout.write('\n');
|
|
257
|
-
hint('pb --help Show all commands');
|
|
258
|
-
process.stdout.write('\n');
|
|
259
|
-
}
|
|
260
|
-
else if (state.stage === 'authenticated') {
|
|
261
|
-
process.stdout.write(`${bold('Product Brain')} ${dim('— server unreachable')}\n\n`);
|
|
262
|
-
process.stdout.write(` ${green(icons.pass)} Key: configured\n`);
|
|
263
|
-
process.stdout.write(` ! Server: unreachable — run pb doctor to diagnose\n\n`);
|
|
264
|
-
hint('pb session start Start a write session');
|
|
265
|
-
hint('pb doctor Diagnose connection issues');
|
|
266
|
-
hint('pb --help Show all commands');
|
|
267
|
-
process.stdout.write('\n');
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
// workspace-bound or active
|
|
271
|
-
const workspaceName = state.workspaceName ?? 'unknown';
|
|
272
|
-
const entryCount = state.entryCount ?? 0;
|
|
273
|
-
const title = `${bold('Product Brain')} ${dim('—')} ${bold(workspaceName)}`;
|
|
274
|
-
process.stdout.write(`${title}\n\n`);
|
|
275
|
-
process.stdout.write(` ${green(icons.pass)} Key: configured\n`);
|
|
276
|
-
process.stdout.write(` ${green(icons.pass)} Workspace: ${workspaceName} (${entryCount} entries)\n`);
|
|
277
|
-
if (state.sessionActive) {
|
|
278
|
-
process.stdout.write(` ${green(icons.pass)} Session: active\n`);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
process.stdout.write(` ${dim('- Session: none')}\n`);
|
|
282
|
-
}
|
|
283
|
-
process.stdout.write('\n');
|
|
284
|
-
if (!state.sessionActive) {
|
|
285
|
-
hint('pb session start Start a write session');
|
|
286
|
-
}
|
|
287
|
-
hint('pb orient -b Workspace overview');
|
|
288
|
-
hint('pb --help Show all commands');
|
|
289
|
-
process.stdout.write('\n');
|
|
290
|
-
}
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
// Ink tier — interactive TUI
|
|
294
|
-
const version = cliPackageVersion.version;
|
|
295
|
-
const { render } = await import('ink');
|
|
296
|
-
const { WelcomeCockpit } = await import('./commands/welcome.js');
|
|
297
|
-
const React = await import('react');
|
|
298
|
-
const { waitUntilExit, unmount } = render(React.default.createElement(WelcomeCockpit, { state, version, onExit: () => unmount() }));
|
|
299
|
-
await waitUntilExit();
|
|
101
|
+
await runStatus({ args: program.args, version: cliPackageVersion.version });
|
|
300
102
|
});
|
|
301
103
|
program
|
|
302
104
|
.command('get <entry-id>')
|
|
@@ -308,6 +110,38 @@ program
|
|
|
308
110
|
}
|
|
309
111
|
await runGet({ entryId: entryId.trim() });
|
|
310
112
|
});
|
|
113
|
+
registerHistoryCommand(program); // WP-753 V2 (TASK-203): same-line combine, module-health shrink-only budget
|
|
114
|
+
program
|
|
115
|
+
.command('scoreboard')
|
|
116
|
+
.description('Flywheel scoreboard — M3/M4/M5 metrics + diagnosis layer (agent-primary; --json for structured consumption)')
|
|
117
|
+
.action(async () => {
|
|
118
|
+
await runScoreboard();
|
|
119
|
+
});
|
|
120
|
+
const qualityCmd = program
|
|
121
|
+
.command('quality')
|
|
122
|
+
.description('Quality-check surfaces');
|
|
123
|
+
registerQualityCommands(qualityCmd);
|
|
124
|
+
const reworkCmd = program
|
|
125
|
+
.command('rework')
|
|
126
|
+
.description('Report observed rework signals (WP-487 / FEAT-1373 — fills the M4 rework meter)');
|
|
127
|
+
reworkCmd
|
|
128
|
+
.command('report <entry-id>')
|
|
129
|
+
.description('Report a rework event attributed to a previously served governance entry (agent-native checkpoint; requires an active session)')
|
|
130
|
+
.requiredOption('--classification <kind>', 'revision | ci_review_correction | user_override')
|
|
131
|
+
.option('--via <kind>', 'How this was observed: followup_commit | ci_rerun | manual', 'manual')
|
|
132
|
+
.option('--attributable', 'Flag: this ci_review_correction is attributed to a missing/violated served decision')
|
|
133
|
+
.option('--task <text>', 'Task context this rework relates to (truncated server-side, never raw diff/comment text)')
|
|
134
|
+
.option('--conversation <id>', 'Explicit conversation override, matching `pb session start --conversation <id>` — use when the shell has no PB_CONVERSATION_ID set')
|
|
135
|
+
.action(async (entryId, opts) => {
|
|
136
|
+
await runReworkReport({
|
|
137
|
+
entryId,
|
|
138
|
+
classification: opts.classification,
|
|
139
|
+
reportedVia: opts.via,
|
|
140
|
+
attributable: opts.attributable,
|
|
141
|
+
task: opts.task,
|
|
142
|
+
conversation: opts.conversation,
|
|
143
|
+
});
|
|
144
|
+
});
|
|
311
145
|
program
|
|
312
146
|
.command('get-many <entry-ids...>')
|
|
313
147
|
.description('Fetch multiple entries in parallel (space-separated IDs)')
|
|
@@ -316,7 +150,7 @@ program
|
|
|
316
150
|
});
|
|
317
151
|
program
|
|
318
152
|
.command('context <entry-id>')
|
|
319
|
-
.description('Gather and display constellation context (
|
|
153
|
+
.description('Gather and display constellation context (human-readable card by default, even when piped — pass --json for machine-readable output)')
|
|
320
154
|
.action(async (entryId) => {
|
|
321
155
|
if (!entryId?.trim()) {
|
|
322
156
|
program.commands.find((c) => c.name() === 'context')?.help();
|
|
@@ -364,7 +198,7 @@ program
|
|
|
364
198
|
.description('Brief intelligence queries (BET-239).\n' +
|
|
365
199
|
' pb brief --skill <name> Incremental delta for a skill (E4)\n' +
|
|
366
200
|
' pb brief steering Compound: changes + structure + delta + readiness (E6)\n' +
|
|
367
|
-
' pb brief confidence Compound: changes + active
|
|
201
|
+
' pb brief confidence Compound: changes + active work packages (tensions: `pb tensions list`) (E6)\n' +
|
|
368
202
|
' pb brief delta [--since] Compound: changes + relations since timestamp (E6)')
|
|
369
203
|
.option('--skill <name>', 'Skill name for incremental brief (e.g. preflight, shaping, review)')
|
|
370
204
|
.option('--since-last', 'Compare against last brief run (incremental mode)')
|
|
@@ -385,6 +219,9 @@ program
|
|
|
385
219
|
}
|
|
386
220
|
await runBrief({ skill: opts.skill, sinceLast: opts.sinceLast });
|
|
387
221
|
});
|
|
222
|
+
program
|
|
223
|
+
.command('digest').description('Narrative brief over pending drafts: decisions vs fixes, read-only (TASK-130, WP-702)')
|
|
224
|
+
.requiredOption('--since <window>', 'ISO timestamp or duration (1h, 6h, 1d, 7d, 30d)').action(async (opts) => { await runDigest({ since: opts.since }); });
|
|
388
225
|
program
|
|
389
226
|
.command('search [query...]')
|
|
390
227
|
.description('Full-text search across all collections')
|
|
@@ -398,14 +235,12 @@ program
|
|
|
398
235
|
});
|
|
399
236
|
program
|
|
400
237
|
.command('orient')
|
|
401
|
-
.description('Print
|
|
402
|
-
.option('-b, --brief', 'Compact view:
|
|
238
|
+
.description('Print all orient sections (strategic context, work packages, governance, tensions, etc.)')
|
|
239
|
+
.option('-b, --brief', 'Compact view: counts, top work packages, tensions, planned work')
|
|
403
240
|
.option('-t, --task <task>', 'Task description for task-shaped governance and context')
|
|
404
|
-
// SYNC: domain list must match TaskDomain in convex/agentKnowledge/startupResolver.ts
|
|
405
|
-
.option('-s, --scope <domain>', 'Domain scope for governance filtering. Accepts authority roots, child scopes such as product-design/ux and data/analytics, and legacy internal scopes.')
|
|
406
241
|
.option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
|
|
407
242
|
.action(async (opts) => {
|
|
408
|
-
await runOrient({ brief: opts.brief, task: opts.task?.trim() || undefined,
|
|
243
|
+
await runOrient({ brief: opts.brief, task: opts.task?.trim() || undefined, full: opts.full });
|
|
409
244
|
});
|
|
410
245
|
program
|
|
411
246
|
.command('handshake')
|
|
@@ -415,10 +250,8 @@ program
|
|
|
415
250
|
.option('--dry-run', 'Show what would be generated without writing files (alias for preview)')
|
|
416
251
|
.option('--init', 'Set up Claude Code integration: team hooks + personal trust level')
|
|
417
252
|
.option('--level <level>', 'With --init: trust level (guide|work|silent|full-trust). Without --init: content tier (beginner|intermediate|expert)')
|
|
418
|
-
.option('--generate', 'Fetch governance entries from the Chain and merge generated rules (BET-286)')
|
|
419
253
|
.option('--surfaces <list>', 'Comma-separated surfaces to write (cursor,claude,copilot,codex)')
|
|
420
254
|
.option('--no-prompt', 'Headless mode: refuse on tampered projection files (WP-421 S3, doneWhen #17). Always implied when stdout is not a TTY.')
|
|
421
|
-
.option('--lenient', 'WP-439 S4: continue past setup-asset body fetch failures with a warning (legacy behaviour). By default, body fetch failures are hard errors; run `pb setup-audit --repair` to fix orphaned rows.')
|
|
422
255
|
.action(async (opts) => {
|
|
423
256
|
if (opts.init) {
|
|
424
257
|
await runHandshakeInit({ level: opts.level, dryRun: opts.dryRun });
|
|
@@ -426,7 +259,11 @@ program
|
|
|
426
259
|
}
|
|
427
260
|
// Commander turns `--no-prompt` into `prompt: false`. We invert so HandshakeOptions sees noPrompt=true.
|
|
428
261
|
const noPrompt = opts.prompt === false;
|
|
429
|
-
|
|
262
|
+
// Attribute the bare-handshake invocation so its context.served row is separable from manual
|
|
263
|
+
// orient rows — the kernel used to coerce the absent path to 'manual-orient', polluting the
|
|
264
|
+
// proof slice that isolates manual `pb orient --task` rows. session start/close no longer
|
|
265
|
+
// call runHandshake at all (WP-759/TASK-232, DEC-1736); 'handshake' now covers every other row.
|
|
266
|
+
await runHandshake({ force: opts.force, apply: opts.apply, dryRun: opts.dryRun, level: opts.level, surfaces: opts.surfaces?.split(','), noPrompt, invocationPath: 'handshake' });
|
|
430
267
|
});
|
|
431
268
|
program
|
|
432
269
|
.command('codex-prep <task...>')
|
|
@@ -449,15 +286,16 @@ program
|
|
|
449
286
|
});
|
|
450
287
|
program
|
|
451
288
|
.command('connect <token>')
|
|
452
|
-
.description('Redeem an onboarding token and save your API key locally (FEAT-958). Uses CONVEX_SITE_URL if set, otherwise the production gateway. Override with --gateway or PB_CONNECT_GATEWAY_URL.
|
|
289
|
+
.description('Redeem an onboarding token and save your API key locally (FEAT-958). Uses CONVEX_SITE_URL if set, otherwise the production gateway. Override with --gateway or PB_CONNECT_GATEWAY_URL. In a non-interactive shell (e.g. CI), pass --yes to confirm the workspace, optionally with --name to label the key.')
|
|
453
290
|
.option('--gateway <url>', 'Override redeem gateway (default: CONVEX_SITE_URL or production). Use when token came from a different Convex deployment.')
|
|
454
|
-
.option('--name <label>', 'Optional label for this API key in workspace settings.
|
|
291
|
+
.option('--name <label>', 'Optional label for this API key in workspace settings. Skips the key-label prompt when set.')
|
|
292
|
+
.option('-y, --yes', 'Skip the interactive workspace confirmation. Required to connect in a non-interactive shell (e.g. CI).')
|
|
455
293
|
.action(async (token, opts) => {
|
|
456
294
|
if (!token?.trim()) {
|
|
457
295
|
program.commands.find((c) => c.name() === 'connect')?.help();
|
|
458
296
|
return;
|
|
459
297
|
}
|
|
460
|
-
await runConnect(token.trim(), { gateway: opts.gateway, name: opts.name });
|
|
298
|
+
await runConnect(token.trim(), { gateway: opts.gateway, name: opts.name, assumeYes: opts.yes });
|
|
461
299
|
});
|
|
462
300
|
program
|
|
463
301
|
.command('login')
|
|
@@ -481,40 +319,12 @@ program
|
|
|
481
319
|
await runWhoami();
|
|
482
320
|
});
|
|
483
321
|
program
|
|
484
|
-
.command('
|
|
485
|
-
.description('
|
|
486
|
-
.
|
|
487
|
-
|
|
488
|
-
});
|
|
489
|
-
program
|
|
490
|
-
.command('setup-detect-surfaces')
|
|
491
|
-
.description('Detect local surface markers and union-merge into manifest.surfaces (STD-235 forward-only)')
|
|
492
|
-
.action(async () => {
|
|
493
|
-
const result = await runSetupDetectSurfaces();
|
|
494
|
-
if (process.stdout.isTTY) {
|
|
495
|
-
process.stdout.write(formatDetectSurfacesSummary(result) + '\n');
|
|
496
|
-
}
|
|
497
|
-
else {
|
|
498
|
-
process.stderr.write(formatDetectSurfacesSummary(result) + '\n');
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
program
|
|
502
|
-
.command('setup-state')
|
|
503
|
-
.description('Emit compact JSON of getPbSetupState (machine-readable, used by the pb-setup skill body)')
|
|
504
|
-
.action(async () => {
|
|
505
|
-
await runSetupState();
|
|
506
|
-
});
|
|
507
|
-
// WP-439 S2: setup-asset orphan audit. Read-only diagnostic; exits 1 if any
|
|
508
|
-
// setup_asset row has a broken body wiring (will fail at handshake).
|
|
509
|
-
// WP-439 S3: --repair attempts to restore class III/II orphans from STARTER_*
|
|
510
|
-
// constants. Class I (inline-only) and IV (hash drift) are NOT touched.
|
|
511
|
-
program
|
|
512
|
-
.command('setup-audit')
|
|
513
|
-
.description('Audit setup_asset rows for orphaned bodies (WP-439 S2/S3). Exits 1 if any orphan or repair-failure.')
|
|
514
|
-
.option('--json', 'Emit machine-readable JSON (overrides pretty output for this command)')
|
|
515
|
-
.option('--repair', 'Attempt to restore class III/II orphans from STARTER_* constants (WP-439 S3)')
|
|
322
|
+
.command('files')
|
|
323
|
+
.description('Show which .productbrain files are pb-owned vs committed, and what writes each.')
|
|
324
|
+
.option('--fix', 'Add any exposed pb-owned files to .gitignore (idempotent)')
|
|
325
|
+
.option('--dry-run', 'With --fix: preview the .gitignore lines without writing')
|
|
516
326
|
.action(async (opts) => {
|
|
517
|
-
await
|
|
327
|
+
await runFiles({ fix: opts.fix, dryRun: opts.dryRun });
|
|
518
328
|
});
|
|
519
329
|
// --- Write commands (require active session) ---
|
|
520
330
|
const sessionCmd = program
|
|
@@ -522,11 +332,11 @@ const sessionCmd = program
|
|
|
522
332
|
.description('Manage write sessions (DEC-9: sessions required before write access)');
|
|
523
333
|
sessionCmd
|
|
524
334
|
.command('start')
|
|
525
|
-
.description('Start a tracked write session
|
|
335
|
+
.description('Start a tracked write session')
|
|
526
336
|
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
527
|
-
.
|
|
528
|
-
|
|
529
|
-
});
|
|
337
|
+
.option('--conversation <id>', 'Explicit conversation identity override (WP-479 E2) — takes priority over env-detected channels. Pair with PB_CONVERSATION_ID=<id> so later bare pb commands (orient, capture) attribute to the same conversation — they resolve identity from env only')
|
|
338
|
+
.option('--role <entry-id>', 'Role to act as this session (DEC-1715) — only needed if you hold more than one; the error lists your roles if omitted. Default: "role" in .productbrain/config.local.json (DEC-1961)').option('--team <entry-id>', 'Team the --role is held in (TASK-801) — only needed if you hold that role in more than one team') // WP-753 O1a same-line (STD-2)
|
|
339
|
+
.action(async (opts) => { await runSessionStart(opts); });
|
|
530
340
|
sessionCmd
|
|
531
341
|
.command('id')
|
|
532
342
|
.description('Print current session ID to stdout (machine-readable, TEN-707)')
|
|
@@ -535,14 +345,24 @@ sessionCmd
|
|
|
535
345
|
});
|
|
536
346
|
sessionCmd
|
|
537
347
|
.command('close')
|
|
538
|
-
.description('Close the active session (wrapup
|
|
348
|
+
.description('Close the active session (wrapup)')
|
|
539
349
|
.option('--force', 'Clear local session state even if server close fails')
|
|
540
|
-
.
|
|
541
|
-
|
|
350
|
+
.option('--conversation <id>', 'Close the session started with this --conversation <id>, so the next start on it resumes (TEN-4855)')
|
|
351
|
+
.action(async (opts) => { await runSessionClose(opts); });
|
|
352
|
+
// WP-479 E4: traceback + quota observability.
|
|
353
|
+
sessionCmd
|
|
354
|
+
.command('list')
|
|
355
|
+
.description('List active sessions (with quota gauge) + recent non-active ones (WP-479 E4)')
|
|
356
|
+
.action(async () => {
|
|
357
|
+
await runSessionList();
|
|
358
|
+
});
|
|
359
|
+
sessionCmd
|
|
360
|
+
.command('show <id-or-conversation>')
|
|
361
|
+
.description('Show a conversation\'s full session lineage + governance serves (WP-479 E4)')
|
|
362
|
+
.action(async (idOrConversation) => {
|
|
363
|
+
await runSessionShow(idOrConversation);
|
|
542
364
|
});
|
|
543
|
-
// TEN-2189 / WP-456 E2: hard-reset worktree-local session state (no resume marker)
|
|
544
|
-
// + clear the PREVIEW_MODE marker. Recovery path for a session stranded on the wrong
|
|
545
|
-
// workspace after a pb:preview/pb:real binding flip.
|
|
365
|
+
// 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.
|
|
546
366
|
sessionCmd
|
|
547
367
|
.command('reset')
|
|
548
368
|
.description('Hard-reset local session state (discard session.json + clear PREVIEW_MODE)')
|
|
@@ -554,17 +374,19 @@ program
|
|
|
554
374
|
.command('capture [text...]')
|
|
555
375
|
.description('Capture knowledge to the Chain (requires active session)')
|
|
556
376
|
.option('-n, --name <name>', 'Entry name (defaults to capture text)')
|
|
557
|
-
.option('-d, --description <desc>', 'Entry description (defaults to capture text)')
|
|
377
|
+
.option('-d, --description <desc>', 'Entry description, in Markdown (defaults to capture text)')
|
|
558
378
|
.option('-c, --collection <slug>', 'Explicit collection (skip auto-classification)')
|
|
379
|
+
.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], [])
|
|
559
380
|
.option('-l, --link <entry-id>', 'Link new entry to an existing entry (TEN-705)')
|
|
560
|
-
.option('-t, --type <relation-type>', 'Relation type for --link (
|
|
381
|
+
.option('-t, --link-type <relation-type>', 'Relation type for --link — REQUIRED when --link is used (WP-688 S4): no default, the door refuses and lists the source entry\'s legal verbs if omitted')
|
|
561
382
|
.option('--source-ref <ref>', 'Source reference URI (BET-240 E2: e.g. "meeting-2026-03-28.md")')
|
|
562
383
|
.option('--source-excerpt <text>', 'Verbatim source excerpt (BET-240 E2)')
|
|
563
|
-
|
|
564
|
-
.option('--draft', 'Force the entry to draft regardless of workspace governance mode (TEN-2226)')
|
|
384
|
+
.option('--draft', 'Force the entry to draft regardless of workspace governance mode — opt-in override, keeps it draft even in Open mode (TEN-2226 / WP-456 E1)')
|
|
565
385
|
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
566
|
-
.option('--suggest-only', 'Show grounding preview (possible duplicates, related entries) without creating entry (WP-319)')
|
|
567
386
|
.option('--strict', 'Prompt y/N before capturing when a possible duplicate is detected (WP-319)')
|
|
387
|
+
.option('--owner-role <entry-id>', 'Existing Role entry ID to create AS OWNER of (WP-513 rung 2; 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.
|
|
388
|
+
.option('--team <team-ref>', 'For a role: the team it is born in. For a team: its parent. Defaults to the root team (TASK-681, DEC-1976)')
|
|
389
|
+
.option('--entry-type <canonical-key>', 'Explicit canonical type for the new entry (e.g. objective, key_result) — bypasses classification; -t/--link-type is the --link relation type (WP-684 TASK-77)')
|
|
568
390
|
.action(async (textParts = [], opts) => {
|
|
569
391
|
const text = textParts.join(' ').trim();
|
|
570
392
|
if (!text && !opts.name) {
|
|
@@ -572,117 +394,61 @@ program
|
|
|
572
394
|
return;
|
|
573
395
|
}
|
|
574
396
|
await runCapture({
|
|
575
|
-
text: text || opts.name || '',
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
collection: opts.collection,
|
|
579
|
-
link: opts.link,
|
|
580
|
-
type: opts.type,
|
|
581
|
-
sourceRef: opts.sourceRef,
|
|
582
|
-
sourceExcerpt: opts.sourceExcerpt,
|
|
583
|
-
draft: opts.draft,
|
|
584
|
-
json: opts.json,
|
|
585
|
-
suggestOnly: opts.suggestOnly,
|
|
586
|
-
strict: opts.strict,
|
|
397
|
+
text: text || opts.name || '', name: opts.name, description: opts.description, collection: opts.collection,
|
|
398
|
+
field: opts.field, link: opts.link, linkType: opts.linkType, sourceRef: opts.sourceRef, sourceExcerpt: opts.sourceExcerpt,
|
|
399
|
+
draft: opts.draft, json: opts.json, strict: opts.strict, ownerRole: opts.ownerRole, entryType: opts.entryType, team: opts.team,
|
|
587
400
|
});
|
|
588
401
|
});
|
|
589
402
|
// --- Update command (TEN-703) ---
|
|
590
403
|
program
|
|
591
404
|
.command('update <entry-id>')
|
|
592
405
|
.description('Update fields on an existing Chain entry (requires active session)')
|
|
593
|
-
.option('-f, --field <key=value>', 'Set a data field (repeatable)', (val, prev) => [...prev, val], [])
|
|
406
|
+
.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], [])
|
|
594
407
|
.option('--name <name>', 'Update entry name')
|
|
595
|
-
.option('--status <status>', 'Update entry status (draft |
|
|
408
|
+
.option('--status <status>', 'Update entry status (draft | archived) — accepted is set via `pb entry accept`; active/deprecated are legacy and refused')
|
|
596
409
|
.option('--workflow-status <status>', 'Set workflow status (server-validated)')
|
|
597
|
-
.option('--
|
|
410
|
+
.option('--type <canonical-key>', 'Reclassify a DRAFT entry to another canonical type (immutable once committed — supersede instead)')
|
|
411
|
+
.option('--note <text>', 'Change note for history').option('--change-reason <text>', 'Why what the entry promises is changing (required for a promise-field change)')
|
|
412
|
+
.option('--override-reason <text>', 'Typed override (≥12 chars) clearing a steering coherency block — recorded with author attribution (WP-465)')
|
|
413
|
+
.option('--acknowledge <response>', 'Respond to a coherency challenge: linked | accepted-fix | diverged (WP-465)')
|
|
414
|
+
.option('--ack-entry <entry-id>', 'Authorizing entry for --acknowledge linked / accepted-fix')
|
|
415
|
+
.option('--ack-reason <text>', 'Divergence rationale (≥12 chars) for --acknowledge diverged')
|
|
416
|
+
// Commander camelCases every flag to exactly the UpdateOptions key it feeds, so the options
|
|
417
|
+
// object spreads straight through. The previous hand-written 1:1 mapping had to be edited twice
|
|
418
|
+
// per new flag (once here, once in the type) and silently dropped anything you forgot.
|
|
598
419
|
.action(async (entryId, opts) => {
|
|
599
|
-
await runUpdate({
|
|
600
|
-
entryId,
|
|
601
|
-
field: opts.field,
|
|
602
|
-
name: opts.name,
|
|
603
|
-
status: opts.status,
|
|
604
|
-
workflowStatus: opts.workflowStatus,
|
|
605
|
-
note: opts.note,
|
|
606
|
-
});
|
|
420
|
+
await runUpdate({ entryId, ...opts });
|
|
607
421
|
});
|
|
608
|
-
// ---
|
|
422
|
+
// --- Restore command (WP-514 review round 2, P1) ---
|
|
609
423
|
program
|
|
610
|
-
.command('
|
|
611
|
-
.description('
|
|
612
|
-
.action(async (entryId) => {
|
|
424
|
+
.command('restore <entry-id>')
|
|
425
|
+
.description('Restore an archived Chain entry to draft (requires active session + rung-3 authority coverage)')
|
|
426
|
+
.action(async (entryId) => { await runRestore(entryId); });
|
|
427
|
+
// --- Entry noun-scoped commands (DEC-1574, WP-640 S4) — registerEntryCommands.ts ---
|
|
428
|
+
registerEntryCommands(program);
|
|
429
|
+
registerTensionsCommands(program); // WP-768 L0: same-line combine, module-health shrink-only budget
|
|
430
|
+
// --- Promote command (Wave 2 CLI Polish) ---
|
|
431
|
+
program.command('verify <entry-id>').description('Mark an entry as verified (BET-240: source fidelity trust signal)').action(async (entryId) => {
|
|
613
432
|
if (!entryId?.trim()) {
|
|
614
433
|
program.commands.find((c) => c.name() === 'verify')?.help();
|
|
615
434
|
return;
|
|
616
435
|
}
|
|
617
436
|
await runVerify({ entryId: entryId.trim() });
|
|
618
437
|
});
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
.action(async (entryId, opts) => {
|
|
624
|
-
await runPromote({ entryId, message: opts.message });
|
|
625
|
-
});
|
|
626
|
-
// --- Relate / Unrelate commands (TEN-704) ---
|
|
627
|
-
program
|
|
628
|
-
.command('relate <from-id> <type> <to-id>')
|
|
629
|
-
.description('Add a typed relation between two entries (requires active session)')
|
|
630
|
-
.option('--if-missing', 'Only create relation if it does not already exist')
|
|
631
|
-
.action(async (fromId, type, toId, opts) => {
|
|
632
|
-
await runRelate({ fromId, type, toId, ifMissing: opts.ifMissing });
|
|
633
|
-
});
|
|
634
|
-
program
|
|
635
|
-
.command('unrelate <from-id> <type> <to-id>')
|
|
636
|
-
.description('Remove a typed relation between two entries (requires active session)')
|
|
637
|
-
.action(async (fromId, type, toId) => {
|
|
638
|
-
await runUnrelate({ fromId, type, toId });
|
|
639
|
-
});
|
|
640
|
-
// --- Ingest command (BET-81) ---
|
|
641
|
-
program
|
|
642
|
-
.command('ingest <pattern>')
|
|
643
|
-
.description('Bulk ingest documents to Chain as drafts')
|
|
644
|
-
.option('--dry-run', 'Stage entries without auto-committing. Shows summary only.')
|
|
645
|
-
.option('--resume', 'Skip files whose sourceRef is already committed in staging.')
|
|
646
|
-
.option('--concurrency <n>', 'Process up to N files in parallel (default 1, max 5).', '1')
|
|
647
|
-
.action(async (pattern, opts) => {
|
|
648
|
-
const concurrency = parseInt(opts.concurrency ?? '1', 10);
|
|
649
|
-
if (Number.isNaN(concurrency) || concurrency < 1) {
|
|
650
|
-
throw new CLIError('--concurrency must be a positive integer.', {
|
|
651
|
-
code: ErrorCode.VALIDATION_FAILED,
|
|
652
|
-
category: 'validation',
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
await runIngest({
|
|
656
|
-
pattern,
|
|
657
|
-
dryRun: opts.dryRun,
|
|
658
|
-
resume: opts.resume,
|
|
659
|
-
concurrency,
|
|
660
|
-
});
|
|
661
|
-
});
|
|
662
|
-
// --- migrate:setup command (WP-345 S0b) ---
|
|
663
|
-
program
|
|
664
|
-
.command('migrate:setup')
|
|
665
|
-
.description('Migrate .productbrain/skills|rules|hooks/*.md into the DB setup-assets collection (WP-345)')
|
|
666
|
-
.option('--dry-run', 'Show what would be migrated without writing to DB.')
|
|
667
|
-
.option('--cwd <path>', 'Override working directory (default: process.cwd())')
|
|
668
|
-
.action(async (opts) => {
|
|
669
|
-
const { runMigrateSetup } = await import('./commands/migrate-setup.js');
|
|
670
|
-
await runMigrateSetup({ dryRun: opts.dryRun, cwd: opts.cwd });
|
|
671
|
-
});
|
|
672
|
-
// --- setup:ingest command (WP-345 S3) ---
|
|
673
|
-
program
|
|
674
|
-
.command('setup:ingest <path>')
|
|
675
|
-
.description('Push a single .productbrain skill/rule/hook file to the DB setup-assets SSOT (WP-345)')
|
|
676
|
-
.option('--dry-run', 'Show what would be ingested without writing to DB.')
|
|
677
|
-
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
678
|
-
.action(async (filePath, opts) => {
|
|
679
|
-
if (!filePath?.trim()) {
|
|
680
|
-
program.commands.find((c) => c.name() === 'setup:ingest')?.help();
|
|
438
|
+
// 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.
|
|
439
|
+
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) => {
|
|
440
|
+
if (!entryId?.trim()) {
|
|
441
|
+
program.commands.find((c) => c.name() === 'still-true')?.help();
|
|
681
442
|
return;
|
|
682
443
|
}
|
|
683
|
-
|
|
684
|
-
await runSetupIngest(filePath.trim(), { dryRun: opts.dryRun });
|
|
444
|
+
await runStillTrue({ entryId: entryId.trim() });
|
|
685
445
|
});
|
|
446
|
+
// registerProposalCommands(program) deleted (WP-776 S2a, DEC-1771) — `pb accept`/`pb reject`/`pb proposals` are gone.
|
|
447
|
+
registerOutcomeCommands(program);
|
|
448
|
+
registerRoleCommands(program); // WP-722 S2 outcome; WP-730 S2 role — registerOutcomeCommands.ts / registerRoleCommands.ts
|
|
449
|
+
// --- Relate / Unrelate commands (TEN-704) — registerEntryCommands.ts (WP-688 S2a: moved off
|
|
450
|
+
// this shrink-only file to fund the --dry-run flag) ---
|
|
451
|
+
registerRelateCommands(program);
|
|
686
452
|
// --- Fields command (BET-181 Slice 2) ---
|
|
687
453
|
program
|
|
688
454
|
.command('fields <collection>')
|
|
@@ -705,58 +471,6 @@ program
|
|
|
705
471
|
}
|
|
706
472
|
await runConstellation({ entryId: entryId.trim() });
|
|
707
473
|
});
|
|
708
|
-
// --- Audit command (BET-182 Slice 2) ---
|
|
709
|
-
program
|
|
710
|
-
.command('audit <entry-ids...>')
|
|
711
|
-
.description('Run hygiene audit on bet(s) — 13 gates (shaping) / 18 gates (handoff), exit code reflects verdict')
|
|
712
|
-
.option('--phase <phase>', 'Override phase detection (shaping | handoff)')
|
|
713
|
-
.option('--gate <name>', 'Run only specified gate(s) (repeatable)', (val, prev) => [...prev, val], [])
|
|
714
|
-
.option('--fix', 'Auto-execute exact fixes via pb update, rerun once')
|
|
715
|
-
.option('--verbose', 'Show all gates including PASS detail')
|
|
716
|
-
.action(async (entryIds, opts) => {
|
|
717
|
-
await runAudit({
|
|
718
|
-
entryIds: entryIds.map((id) => id.trim()).filter(Boolean),
|
|
719
|
-
phase: opts.phase,
|
|
720
|
-
gate: opts.gate,
|
|
721
|
-
fix: opts.fix,
|
|
722
|
-
verbose: opts.verbose,
|
|
723
|
-
});
|
|
724
|
-
});
|
|
725
|
-
program
|
|
726
|
-
.command('brand-pack')
|
|
727
|
-
.description('Internal marketing: structured community copy via OpenRouter (requires OPENROUTER_API_KEY). Forwards args to scripts/brand-pack.mjs')
|
|
728
|
-
.allowUnknownOption(true)
|
|
729
|
-
.allowExcessArguments(true)
|
|
730
|
-
.action(() => {
|
|
731
|
-
runBrandPack(process.argv);
|
|
732
|
-
});
|
|
733
|
-
// --- Governance proposal commands (BET-221 Slice 3) ---
|
|
734
|
-
program
|
|
735
|
-
.command('proposals')
|
|
736
|
-
.description('List open consent proposals with expiry countdown (BET-221)')
|
|
737
|
-
.action(async () => {
|
|
738
|
-
await runProposals();
|
|
739
|
-
});
|
|
740
|
-
program
|
|
741
|
-
.command('accept [proposal-id]')
|
|
742
|
-
.description('Approve a consent proposal by ID, or --auto to batch-approve all')
|
|
743
|
-
.option('-a, --auto', 'Auto-approve all open proposals (skip contradictions)')
|
|
744
|
-
.action(async (proposalId, opts) => {
|
|
745
|
-
if (!proposalId && !opts.auto) {
|
|
746
|
-
throw new CLIError('Usage: pb accept <proposal-id> or pb accept --auto', {
|
|
747
|
-
code: ErrorCode.VALIDATION_FAILED,
|
|
748
|
-
category: 'validation',
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
await runAccept({ proposalId, auto: opts.auto });
|
|
752
|
-
});
|
|
753
|
-
program
|
|
754
|
-
.command('reject <proposal-id>')
|
|
755
|
-
.description('Reject a consent proposal with a required reason (BR-7)')
|
|
756
|
-
.requiredOption('-r, --reason <text>', 'Reason for rejection (required)')
|
|
757
|
-
.action(async (proposalId, opts) => {
|
|
758
|
-
await runReject({ proposalId, reason: opts.reason });
|
|
759
|
-
});
|
|
760
474
|
// --- Collections command (BET-280 Slice 1) ---
|
|
761
475
|
const collectionsCmd = program
|
|
762
476
|
.command('collections')
|
|
@@ -792,109 +506,16 @@ collectionsCmd
|
|
|
792
506
|
// --- Workspace operator commands (WP-305 Slice 4) ---
|
|
793
507
|
const workspaceCmd = program
|
|
794
508
|
.command('workspace')
|
|
795
|
-
.description('Operator
|
|
509
|
+
.description('Operator command for workspace health (WP-305)');
|
|
796
510
|
workspaceCmd
|
|
797
511
|
.command('verify')
|
|
798
512
|
.description('Check workspace health — seeds, collections, glossary (admin only)')
|
|
799
513
|
.action(async () => {
|
|
800
514
|
await runWorkspaceVerify();
|
|
801
515
|
});
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
.action(async () => {
|
|
806
|
-
await runWorkspaceRepair();
|
|
807
|
-
});
|
|
808
|
-
const authorityDomainsCmd = program
|
|
809
|
-
.command('authority-domains')
|
|
810
|
-
.description('Operator commands for WP-354 authority-domain readiness and evidence');
|
|
811
|
-
authorityDomainsCmd
|
|
812
|
-
.command('propose')
|
|
813
|
-
.description('Generate authority-domain tag proposals')
|
|
814
|
-
.option('--dry-run', 'Preview without writing staging proposals')
|
|
815
|
-
.option('--limit <n>', 'Maximum governance entries to classify')
|
|
816
|
-
.option('--mock', 'Use deterministic mock classifier')
|
|
817
|
-
.action(async (opts) => {
|
|
818
|
-
await runAuthorityDomainsPropose(opts);
|
|
819
|
-
});
|
|
820
|
-
authorityDomainsCmd
|
|
821
|
-
.command('review')
|
|
822
|
-
.description('List authority-domain tag proposals')
|
|
823
|
-
.option('--status <status>', 'pending, committed, rejected, or skipped', 'pending')
|
|
824
|
-
.option('--limit <n>', 'Maximum proposals to list')
|
|
825
|
-
.option('--sample <n>', 'Return a stable proposal sample')
|
|
826
|
-
.option('--stratified', 'Stratify sample across proposed domain and source collection')
|
|
827
|
-
.action(async (opts) => {
|
|
828
|
-
await runAuthorityDomainsReview(opts);
|
|
829
|
-
});
|
|
830
|
-
const authorityDomainsSampleCmd = authorityDomainsCmd
|
|
831
|
-
.command('sample')
|
|
832
|
-
.description('Manage human-reviewed authority-domain proposal samples');
|
|
833
|
-
authorityDomainsSampleCmd
|
|
834
|
-
.command('record')
|
|
835
|
-
.description('Record human-reviewed sample accuracy for authority-domain proposals')
|
|
836
|
-
.requiredOption('--sample-id <id>', 'Stable sample identifier from the review packet')
|
|
837
|
-
.option('--run-id <id>', 'Proposal run identifier')
|
|
838
|
-
.requiredOption('--approved <n>', 'Count of sampled proposals approved as-is')
|
|
839
|
-
.requiredOption('--rejected <n>', 'Count of sampled proposals rejected')
|
|
840
|
-
.requiredOption('--corrected <n>', 'Count of sampled proposals corrected to another domain')
|
|
841
|
-
.action(async (opts) => {
|
|
842
|
-
await runAuthorityDomainsRecordSample(opts);
|
|
843
|
-
});
|
|
844
|
-
authorityDomainsCmd
|
|
845
|
-
.command('ratify <proposal-id>')
|
|
846
|
-
.description('Ratify an authority-domain tag proposal')
|
|
847
|
-
.option('--note <note>', 'Review note')
|
|
848
|
-
.action(async (proposalId, opts) => {
|
|
849
|
-
await runAuthorityDomainsRatify(proposalId, opts);
|
|
850
|
-
});
|
|
851
|
-
authorityDomainsCmd
|
|
852
|
-
.command('reject <proposal-id>')
|
|
853
|
-
.description('Reject an authority-domain tag proposal')
|
|
854
|
-
.option('--reason <reason>', 'Rejection reason')
|
|
855
|
-
.action(async (proposalId, opts) => {
|
|
856
|
-
await runAuthorityDomainsReject(proposalId, opts);
|
|
857
|
-
});
|
|
858
|
-
authorityDomainsCmd
|
|
859
|
-
.command('discard-pending')
|
|
860
|
-
.description('Reject all pending authority-domain tag proposals after a failed batch diagnosis')
|
|
861
|
-
.option('--reason <reason>', 'Discard reason')
|
|
862
|
-
.action(async (opts) => {
|
|
863
|
-
await runAuthorityDomainsDiscardPending(opts);
|
|
864
|
-
});
|
|
865
|
-
authorityDomainsCmd
|
|
866
|
-
.command('readiness')
|
|
867
|
-
.description('Show WP-354 authority-domain readiness, evidence gap, and next action')
|
|
868
|
-
.action(async () => {
|
|
869
|
-
await runAuthorityDomainsReadiness();
|
|
870
|
-
});
|
|
871
|
-
authorityDomainsCmd
|
|
872
|
-
.command('benchmark')
|
|
873
|
-
.description('Run and persist the WP-354 authority-domain benchmark')
|
|
874
|
-
.action(async () => {
|
|
875
|
-
await runAuthorityDomainsBenchmark();
|
|
876
|
-
});
|
|
877
|
-
authorityDomainsCmd
|
|
878
|
-
.command('activate-cutover')
|
|
879
|
-
.description('Activate graph retrieval after WP-354 evidence gates pass')
|
|
880
|
-
.option('--force-pre-production', 'Bypass the permanently-locked valueProof gate (requires --dec-id, DEC-864)')
|
|
881
|
-
.option('--dec-id <decId>', 'Chain DEC ID authorizing the bypass')
|
|
882
|
-
.action(async (opts) => {
|
|
883
|
-
await runAuthorityDomainsActivateCutover({ forcePreProduction: opts.forcePreProduction, decId: opts.decId });
|
|
884
|
-
});
|
|
885
|
-
authorityDomainsCmd
|
|
886
|
-
.command('deactivate-cutover')
|
|
887
|
-
.description('Deactivate the active WP-354 authorityDomain cutover for this workspace (DEC-864 rollback).')
|
|
888
|
-
.option('--clerk-user-id <clerkUserId>', 'Override the Clerk user ID for audit trail')
|
|
889
|
-
.action(async (opts) => {
|
|
890
|
-
await runAuthorityDomainsDeactivateCutover({ clerkUserId: opts.clerkUserId });
|
|
891
|
-
});
|
|
892
|
-
authorityDomainsCmd
|
|
893
|
-
.command('principle-distribution')
|
|
894
|
-
.description('Pre-merge gate: check governance category match rate for principles entries')
|
|
895
|
-
.action(async () => {
|
|
896
|
-
await runAuthorityDomainsPrincipleDistribution();
|
|
897
|
-
});
|
|
516
|
+
// D3a (WP-754/TASK-213): the entire `authority-domains` CLI command tree deleted — its backing
|
|
517
|
+
// HTTP gateway routes (convex/http.ts) and convex/authorityDomains.ts are deleted in this same
|
|
518
|
+
// slice, so every one of these subcommands would call a route that no longer exists.
|
|
898
519
|
// --- Definitions diff command (WP-305 Slice 4) ---
|
|
899
520
|
const definitionsCmd = program
|
|
900
521
|
.command('definitions')
|
|
@@ -905,47 +526,6 @@ definitionsCmd
|
|
|
905
526
|
.action(async (file) => {
|
|
906
527
|
await runDefinitionsDiff({ file });
|
|
907
528
|
});
|
|
908
|
-
// --- Method commands (WP-329 S1: method visibility) ---
|
|
909
|
-
const methodCmd = program
|
|
910
|
-
.command('method')
|
|
911
|
-
.description('Inspect published methods (skills + rules) and their per-surface adapter status (WP-329)');
|
|
912
|
-
methodCmd
|
|
913
|
-
.command('ls')
|
|
914
|
-
.description('List all methods with version, published status, and adapter presence')
|
|
915
|
-
.action(async () => {
|
|
916
|
-
await runMethodList();
|
|
917
|
-
});
|
|
918
|
-
methodCmd
|
|
919
|
-
.command('show <name>')
|
|
920
|
-
.description('Show details for one method: frontmatter, Chain entry, and per-adapter fork status')
|
|
921
|
-
.action(async (name) => {
|
|
922
|
-
if (!name?.trim()) {
|
|
923
|
-
program.commands.find((c) => c.name() === 'method')?.help();
|
|
924
|
-
return;
|
|
925
|
-
}
|
|
926
|
-
await runMethodShow({ name: name.trim() });
|
|
927
|
-
});
|
|
928
|
-
methodCmd
|
|
929
|
-
.command('diff <name>')
|
|
930
|
-
.description('Show diff between local .productbrain/ source and last-published Chain version (WP-329 S2)')
|
|
931
|
-
.action(async (name) => {
|
|
932
|
-
if (!name?.trim()) {
|
|
933
|
-
program.commands.find((c) => c.name() === 'method')?.help();
|
|
934
|
-
return;
|
|
935
|
-
}
|
|
936
|
-
await runMethodDiff({ name: name.trim() });
|
|
937
|
-
});
|
|
938
|
-
methodCmd
|
|
939
|
-
.command('publish <name>')
|
|
940
|
-
.description('Publish a local .productbrain/ method (skill or rule) to the Chain methods collection (WP-329 S3)')
|
|
941
|
-
.option('--force', 'Publish even when local body matches the last-published version (override D4 no-op guard)')
|
|
942
|
-
.action(async (name, opts) => {
|
|
943
|
-
if (!name?.trim()) {
|
|
944
|
-
program.commands.find((c) => c.name() === 'method')?.help();
|
|
945
|
-
return;
|
|
946
|
-
}
|
|
947
|
-
await runMethodPublish({ name: name.trim(), force: opts.force });
|
|
948
|
-
});
|
|
949
529
|
// --- Profile commands (WP-302 Slice 2) ---
|
|
950
530
|
const profileCmd = program
|
|
951
531
|
.command('profile')
|
|
@@ -989,10 +569,10 @@ program
|
|
|
989
569
|
// --- Glossary command (WP-302 Slice 4) ---
|
|
990
570
|
program
|
|
991
571
|
.command('glossary')
|
|
992
|
-
.description('Show
|
|
572
|
+
.description('Show the four platform glossary terms; pb search <word> finds your team terms')
|
|
993
573
|
.action(() => {
|
|
994
574
|
if (isJsonMode()) {
|
|
995
|
-
process.stdout.write(JSON.stringify(
|
|
575
|
+
process.stdout.write(JSON.stringify(PLATFORM_GLOSSARY_TERMS) + '\n');
|
|
996
576
|
return;
|
|
997
577
|
}
|
|
998
578
|
const lines = [
|
|
@@ -1012,8 +592,21 @@ program
|
|
|
1012
592
|
.action(async (opts) => {
|
|
1013
593
|
await runUsage({ json: opts.json });
|
|
1014
594
|
});
|
|
595
|
+
// --- Proof-run command (WP-459: admin-proof bridge dogfood) ---
|
|
596
|
+
program
|
|
597
|
+
.command('proof-run <proof-name>')
|
|
598
|
+
.description('Run an admin-only proof against the seeded preview via the proof bridge (WP-459)')
|
|
599
|
+
.action(async (proofName) => {
|
|
600
|
+
await runProofRun({ proofName: proofName.trim() });
|
|
601
|
+
});
|
|
1015
602
|
// --- Admin command group (WP-312 S2, FEAT-969) ---
|
|
1016
603
|
program.addCommand(createAdminCommand());
|
|
604
|
+
program.addCommand(createFeedbackCommand());
|
|
605
|
+
program.addCommand(createConflictsCommand());
|
|
606
|
+
program.addCommand(createQuestionCommand());
|
|
607
|
+
program.addCommand(createDirectionCommand());
|
|
608
|
+
program.addCommand(createOrganisationCommand());
|
|
609
|
+
program.addCommand(createAcceptPolicyCommand());
|
|
1017
610
|
// --- Upgrade command (WP-322 S1: ambient update notification) ---
|
|
1018
611
|
program
|
|
1019
612
|
.command('upgrade')
|