@productbrain/cli 0.1.0-beta.14 → 0.1.0-beta.14010
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -113
- package/dist/__tests__/adminConfig.test.d.ts +18 -0
- package/dist/__tests__/adminConfig.test.d.ts.map +1 -0
- package/dist/__tests__/adminConfig.test.js +221 -0
- package/dist/__tests__/adminConfig.test.js.map +1 -0
- package/dist/__tests__/canonicalRefs.vocab.test.d.ts +2 -0
- package/dist/__tests__/canonicalRefs.vocab.test.d.ts.map +1 -0
- package/dist/__tests__/canonicalRefs.vocab.test.js +251 -0
- package/dist/__tests__/canonicalRefs.vocab.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-coaching.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-coaching.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-coaching.test.js +119 -0
- package/dist/__tests__/capture-receipt-coaching.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-role-hint.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-role-hint.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-role-hint.test.js +64 -0
- package/dist/__tests__/capture-receipt-role-hint.test.js.map +1 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.d.ts +2 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.d.ts.map +1 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.js +95 -0
- package/dist/__tests__/capture-receipt-spine-floor.test.js.map +1 -0
- package/dist/__tests__/capture.test.js +610 -31
- package/dist/__tests__/capture.test.js.map +1 -1
- package/dist/__tests__/cli-error-once.test.d.ts +2 -0
- package/dist/__tests__/cli-error-once.test.d.ts.map +1 -0
- package/dist/__tests__/cli-error-once.test.js +51 -0
- package/dist/__tests__/cli-error-once.test.js.map +1 -0
- package/dist/__tests__/client-binding-guard.test.d.ts +2 -0
- package/dist/__tests__/client-binding-guard.test.d.ts.map +1 -0
- package/dist/__tests__/client-binding-guard.test.js +84 -0
- package/dist/__tests__/client-binding-guard.test.js.map +1 -0
- package/dist/__tests__/coaching-mirror-drift.test.d.ts +2 -0
- package/dist/__tests__/coaching-mirror-drift.test.d.ts.map +1 -0
- package/dist/__tests__/coaching-mirror-drift.test.js +49 -0
- package/dist/__tests__/coaching-mirror-drift.test.js.map +1 -0
- package/dist/__tests__/codex-prep-parity.test.d.ts +2 -0
- package/dist/__tests__/codex-prep-parity.test.d.ts.map +1 -0
- package/dist/__tests__/codex-prep-parity.test.js +82 -0
- package/dist/__tests__/codex-prep-parity.test.js.map +1 -0
- package/dist/__tests__/config-conversation-profile.test.d.ts +2 -0
- package/dist/__tests__/config-conversation-profile.test.d.ts.map +1 -0
- package/dist/__tests__/config-conversation-profile.test.js +91 -0
- package/dist/__tests__/config-conversation-profile.test.js.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts +2 -0
- package/dist/__tests__/config-prod-fallthrough.test.d.ts.map +1 -0
- package/dist/__tests__/config-prod-fallthrough.test.js +93 -0
- package/dist/__tests__/config-prod-fallthrough.test.js.map +1 -0
- package/dist/__tests__/config.test.d.ts +8 -0
- package/dist/__tests__/config.test.d.ts.map +1 -0
- package/dist/__tests__/config.test.js +1109 -0
- package/dist/__tests__/config.test.js.map +1 -0
- package/dist/__tests__/constants.test.d.ts +2 -0
- package/dist/__tests__/constants.test.d.ts.map +1 -0
- package/dist/__tests__/constants.test.js +155 -0
- package/dist/__tests__/constants.test.js.map +1 -0
- package/dist/__tests__/constellation.test.js +56 -36
- package/dist/__tests__/constellation.test.js.map +1 -1
- package/dist/__tests__/context-strategy.test.js +8 -8
- package/dist/__tests__/context-strategy.test.js.map +1 -1
- package/dist/__tests__/conversation.test.d.ts +2 -0
- package/dist/__tests__/conversation.test.d.ts.map +1 -0
- package/dist/__tests__/conversation.test.js +113 -0
- package/dist/__tests__/conversation.test.js.map +1 -0
- package/dist/__tests__/entry-formatter.test.d.ts +2 -0
- package/dist/__tests__/entry-formatter.test.d.ts.map +1 -0
- package/dist/__tests__/entry-formatter.test.js +272 -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 +275 -0
- package/dist/__tests__/entryAccept-batch.test.js.map +1 -0
- package/dist/__tests__/entryAccept.test.d.ts +2 -0
- package/dist/__tests__/entryAccept.test.d.ts.map +1 -0
- package/dist/__tests__/entryAccept.test.js +573 -0
- package/dist/__tests__/entryAccept.test.js.map +1 -0
- package/dist/__tests__/entryDiscardResolve.test.d.ts +2 -0
- package/dist/__tests__/entryDiscardResolve.test.d.ts.map +1 -0
- package/dist/__tests__/entryDiscardResolve.test.js +36 -0
- package/dist/__tests__/entryDiscardResolve.test.js.map +1 -0
- package/dist/__tests__/entryOwn.test.d.ts +2 -0
- package/dist/__tests__/entryOwn.test.d.ts.map +1 -0
- package/dist/__tests__/entryOwn.test.js +95 -0
- package/dist/__tests__/entryOwn.test.js.map +1 -0
- package/dist/__tests__/entryReplace.test.d.ts +2 -0
- package/dist/__tests__/entryReplace.test.d.ts.map +1 -0
- package/dist/__tests__/entryReplace.test.js +60 -0
- package/dist/__tests__/entryReplace.test.js.map +1 -0
- package/dist/__tests__/entryTick.test.d.ts +2 -0
- package/dist/__tests__/entryTick.test.d.ts.map +1 -0
- package/dist/__tests__/entryTick.test.js +40 -0
- package/dist/__tests__/entryTick.test.js.map +1 -0
- package/dist/__tests__/envelope-contract.test.d.ts +15 -0
- package/dist/__tests__/envelope-contract.test.d.ts.map +1 -0
- package/dist/__tests__/envelope-contract.test.js +154 -0
- package/dist/__tests__/envelope-contract.test.js.map +1 -0
- package/dist/__tests__/errors.test.d.ts +2 -0
- package/dist/__tests__/errors.test.d.ts.map +1 -0
- package/dist/__tests__/errors.test.js +188 -0
- package/dist/__tests__/errors.test.js.map +1 -0
- package/dist/__tests__/fields.test.js +50 -39
- package/dist/__tests__/fields.test.js.map +1 -1
- package/dist/__tests__/gateway-dry-run-timeout.test.d.ts +2 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.d.ts.map +1 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.js +70 -0
- package/dist/__tests__/gateway-dry-run-timeout.test.js.map +1 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.d.ts +2 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.d.ts.map +1 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.js +116 -0
- package/dist/__tests__/gateway-timeout-body-phase.test.js.map +1 -0
- package/dist/__tests__/glossary.test.d.ts +2 -0
- package/dist/__tests__/glossary.test.d.ts.map +1 -0
- package/dist/__tests__/glossary.test.js +15 -0
- package/dist/__tests__/glossary.test.js.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts +2 -0
- package/dist/__tests__/health-gap-kinds-drift.test.d.ts.map +1 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js +43 -0
- package/dist/__tests__/health-gap-kinds-drift.test.js.map +1 -0
- package/dist/__tests__/help-no-ids.test.d.ts +2 -0
- package/dist/__tests__/help-no-ids.test.d.ts.map +1 -0
- package/dist/__tests__/help-no-ids.test.js +81 -0
- package/dist/__tests__/help-no-ids.test.js.map +1 -0
- package/dist/__tests__/init.test.d.ts +8 -0
- package/dist/__tests__/init.test.d.ts.map +1 -0
- package/dist/__tests__/init.test.js +406 -0
- package/dist/__tests__/init.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-drift.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js +46 -0
- package/dist/__tests__/kernel-value-sets-drift.test.js.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts +2 -0
- package/dist/__tests__/kernel-value-sets-generator.test.d.ts.map +1 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js +108 -0
- package/dist/__tests__/kernel-value-sets-generator.test.js.map +1 -0
- package/dist/__tests__/login.test.d.ts +2 -0
- package/dist/__tests__/login.test.d.ts.map +1 -0
- package/dist/__tests__/login.test.js +198 -0
- package/dist/__tests__/login.test.js.map +1 -0
- package/dist/__tests__/missingPin.test.d.ts +11 -0
- package/dist/__tests__/missingPin.test.d.ts.map +1 -0
- package/dist/__tests__/missingPin.test.js +232 -0
- package/dist/__tests__/missingPin.test.js.map +1 -0
- package/dist/__tests__/no-session-one-place.test.d.ts +2 -0
- package/dist/__tests__/no-session-one-place.test.d.ts.map +1 -0
- package/dist/__tests__/no-session-one-place.test.js +33 -0
- package/dist/__tests__/no-session-one-place.test.js.map +1 -0
- package/dist/__tests__/notice-marker.test.d.ts +2 -0
- package/dist/__tests__/notice-marker.test.d.ts.map +1 -0
- package/dist/__tests__/notice-marker.test.js +176 -0
- package/dist/__tests__/notice-marker.test.js.map +1 -0
- package/dist/__tests__/orient.test.d.ts +2 -0
- package/dist/__tests__/orient.test.d.ts.map +1 -0
- package/dist/__tests__/orient.test.js +711 -0
- package/dist/__tests__/orient.test.js.map +1 -0
- package/dist/__tests__/preview-key-refresh.test.d.ts +2 -0
- package/dist/__tests__/preview-key-refresh.test.d.ts.map +1 -0
- package/dist/__tests__/preview-key-refresh.test.js +186 -0
- package/dist/__tests__/preview-key-refresh.test.js.map +1 -0
- package/dist/__tests__/profile-create-key.test.d.ts +2 -0
- package/dist/__tests__/profile-create-key.test.d.ts.map +1 -0
- package/dist/__tests__/profile-create-key.test.js +57 -0
- package/dist/__tests__/profile-create-key.test.js.map +1 -0
- package/dist/__tests__/profiles.test.d.ts +2 -0
- package/dist/__tests__/profiles.test.d.ts.map +1 -0
- package/dist/__tests__/profiles.test.js +834 -0
- package/dist/__tests__/profiles.test.js.map +1 -0
- package/dist/__tests__/prompts.test.d.ts +6 -0
- package/dist/__tests__/prompts.test.d.ts.map +1 -0
- package/dist/__tests__/prompts.test.js +163 -0
- package/dist/__tests__/prompts.test.js.map +1 -0
- package/dist/__tests__/proof-run.test.d.ts +2 -0
- package/dist/__tests__/proof-run.test.d.ts.map +1 -0
- package/dist/__tests__/proof-run.test.js +255 -0
- package/dist/__tests__/proof-run.test.js.map +1 -0
- package/dist/__tests__/rate-limit-resilience.test.d.ts +8 -0
- package/dist/__tests__/rate-limit-resilience.test.d.ts.map +1 -0
- package/dist/__tests__/rate-limit-resilience.test.js +191 -0
- package/dist/__tests__/rate-limit-resilience.test.js.map +1 -0
- package/dist/__tests__/read-target-notice.test.d.ts +2 -0
- package/dist/__tests__/read-target-notice.test.d.ts.map +1 -0
- package/dist/__tests__/read-target-notice.test.js +125 -0
- package/dist/__tests__/read-target-notice.test.js.map +1 -0
- package/dist/__tests__/relate.test.js +292 -39
- package/dist/__tests__/relate.test.js.map +1 -1
- package/dist/__tests__/removed-commands.test.d.ts +2 -0
- package/dist/__tests__/removed-commands.test.d.ts.map +1 -0
- package/dist/__tests__/removed-commands.test.js +99 -0
- package/dist/__tests__/removed-commands.test.js.map +1 -0
- package/dist/__tests__/reply-commands-registered.test.d.ts +2 -0
- package/dist/__tests__/reply-commands-registered.test.d.ts.map +1 -0
- package/dist/__tests__/reply-commands-registered.test.js +83 -0
- package/dist/__tests__/reply-commands-registered.test.js.map +1 -0
- package/dist/__tests__/reportedProfile.test.d.ts +2 -0
- package/dist/__tests__/reportedProfile.test.d.ts.map +1 -0
- package/dist/__tests__/reportedProfile.test.js +328 -0
- package/dist/__tests__/reportedProfile.test.js.map +1 -0
- package/dist/__tests__/restore.test.d.ts +2 -0
- package/dist/__tests__/restore.test.d.ts.map +1 -0
- package/dist/__tests__/restore.test.js +91 -0
- package/dist/__tests__/restore.test.js.map +1 -0
- package/dist/__tests__/route-latency-budget.test.d.ts +2 -0
- package/dist/__tests__/route-latency-budget.test.d.ts.map +1 -0
- package/dist/__tests__/route-latency-budget.test.js +111 -0
- package/dist/__tests__/route-latency-budget.test.js.map +1 -0
- package/dist/__tests__/runner.test.js +75 -56
- package/dist/__tests__/runner.test.js.map +1 -1
- package/dist/__tests__/session-binding-refusal-tenant.test.d.ts +2 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.d.ts.map +1 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.js +112 -0
- package/dist/__tests__/session-binding-refusal-tenant.test.js.map +1 -0
- package/dist/__tests__/session-close-conversation.test.d.ts +2 -0
- package/dist/__tests__/session-close-conversation.test.d.ts.map +1 -0
- package/dist/__tests__/session-close-conversation.test.js +75 -0
- package/dist/__tests__/session-close-conversation.test.js.map +1 -0
- package/dist/__tests__/session-close-loop.test.d.ts +2 -0
- package/dist/__tests__/session-close-loop.test.d.ts.map +1 -0
- package/dist/__tests__/session-close-loop.test.js +349 -0
- package/dist/__tests__/session-close-loop.test.js.map +1 -0
- package/dist/__tests__/session-ended-refusal.test.d.ts +2 -0
- package/dist/__tests__/session-ended-refusal.test.d.ts.map +1 -0
- package/dist/__tests__/session-ended-refusal.test.js +76 -0
- package/dist/__tests__/session-ended-refusal.test.js.map +1 -0
- package/dist/__tests__/session-hook-conversation.test.d.ts +2 -0
- package/dist/__tests__/session-hook-conversation.test.d.ts.map +1 -0
- package/dist/__tests__/session-hook-conversation.test.js +87 -0
- package/dist/__tests__/session-hook-conversation.test.js.map +1 -0
- package/dist/__tests__/session-label.test.d.ts +2 -0
- package/dist/__tests__/session-label.test.d.ts.map +1 -0
- package/dist/__tests__/session-label.test.js +46 -0
- package/dist/__tests__/session-label.test.js.map +1 -0
- package/dist/__tests__/session-list-show.test.d.ts +2 -0
- package/dist/__tests__/session-list-show.test.d.ts.map +1 -0
- package/dist/__tests__/session-list-show.test.js +171 -0
- package/dist/__tests__/session-list-show.test.js.map +1 -0
- package/dist/__tests__/session-pinned-role.test.d.ts +2 -0
- package/dist/__tests__/session-pinned-role.test.d.ts.map +1 -0
- package/dist/__tests__/session-pinned-role.test.js +333 -0
- package/dist/__tests__/session-pinned-role.test.js.map +1 -0
- package/dist/__tests__/session-reset.test.d.ts +2 -0
- package/dist/__tests__/session-reset.test.d.ts.map +1 -0
- package/dist/__tests__/session-reset.test.js +137 -0
- package/dist/__tests__/session-reset.test.js.map +1 -0
- package/dist/__tests__/session-resume-backstop.test.d.ts +2 -0
- package/dist/__tests__/session-resume-backstop.test.d.ts.map +1 -0
- package/dist/__tests__/session-resume-backstop.test.js +137 -0
- package/dist/__tests__/session-resume-backstop.test.js.map +1 -0
- package/dist/__tests__/session-role-name-sanitize.test.d.ts +2 -0
- package/dist/__tests__/session-role-name-sanitize.test.d.ts.map +1 -0
- package/dist/__tests__/session-role-name-sanitize.test.js +119 -0
- package/dist/__tests__/session-role-name-sanitize.test.js.map +1 -0
- package/dist/__tests__/session-seat-split.test.d.ts +2 -0
- package/dist/__tests__/session-seat-split.test.d.ts.map +1 -0
- package/dist/__tests__/session-seat-split.test.js +142 -0
- package/dist/__tests__/session-seat-split.test.js.map +1 -0
- package/dist/__tests__/session-start-key-refresh.test.d.ts +2 -0
- package/dist/__tests__/session-start-key-refresh.test.d.ts.map +1 -0
- package/dist/__tests__/session-start-key-refresh.test.js +213 -0
- package/dist/__tests__/session-start-key-refresh.test.js.map +1 -0
- package/dist/__tests__/session-state-machine.test.d.ts +2 -0
- package/dist/__tests__/session-state-machine.test.d.ts.map +1 -0
- package/dist/__tests__/session-state-machine.test.js +364 -0
- package/dist/__tests__/session-state-machine.test.js.map +1 -0
- package/dist/__tests__/session-switch.test.d.ts +2 -0
- package/dist/__tests__/session-switch.test.d.ts.map +1 -0
- package/dist/__tests__/session-switch.test.js +341 -0
- package/dist/__tests__/session-switch.test.js.map +1 -0
- package/dist/__tests__/session-touch.test.js +87 -108
- package/dist/__tests__/session-touch.test.js.map +1 -1
- package/dist/__tests__/session.test.js +4 -13
- package/dist/__tests__/session.test.js.map +1 -1
- package/dist/__tests__/sessionBinding.test.d.ts +2 -0
- package/dist/__tests__/sessionBinding.test.d.ts.map +1 -0
- package/dist/__tests__/sessionBinding.test.js +131 -0
- package/dist/__tests__/sessionBinding.test.js.map +1 -0
- package/dist/__tests__/sessionByIdLookup.test.d.ts +2 -0
- package/dist/__tests__/sessionByIdLookup.test.d.ts.map +1 -0
- package/dist/__tests__/sessionByIdLookup.test.js +63 -0
- package/dist/__tests__/sessionByIdLookup.test.js.map +1 -0
- package/dist/__tests__/skill-vocabulary.test.d.ts +21 -0
- package/dist/__tests__/skill-vocabulary.test.d.ts.map +1 -0
- package/dist/__tests__/skill-vocabulary.test.js +192 -0
- package/dist/__tests__/skill-vocabulary.test.js.map +1 -0
- package/dist/__tests__/spinner-labels.test.d.ts +2 -0
- package/dist/__tests__/spinner-labels.test.d.ts.map +1 -0
- package/dist/__tests__/spinner-labels.test.js +23 -0
- package/dist/__tests__/spinner-labels.test.js.map +1 -0
- package/dist/__tests__/state.test.d.ts +6 -0
- package/dist/__tests__/state.test.d.ts.map +1 -0
- package/dist/__tests__/state.test.js +117 -0
- package/dist/__tests__/state.test.js.map +1 -0
- package/dist/__tests__/stillTrue.test.d.ts +2 -0
- package/dist/__tests__/stillTrue.test.d.ts.map +1 -0
- package/dist/__tests__/stillTrue.test.js +53 -0
- package/dist/__tests__/stillTrue.test.js.map +1 -0
- package/dist/__tests__/strip.test.js +57 -3
- package/dist/__tests__/strip.test.js.map +1 -1
- package/dist/__tests__/tenant-notice-write-path.test.d.ts +2 -0
- package/dist/__tests__/tenant-notice-write-path.test.d.ts.map +1 -0
- package/dist/__tests__/tenant-notice-write-path.test.js +183 -0
- package/dist/__tests__/tenant-notice-write-path.test.js.map +1 -0
- package/dist/__tests__/update-check.test.d.ts +2 -0
- package/dist/__tests__/update-check.test.d.ts.map +1 -0
- package/dist/__tests__/update-check.test.js +235 -0
- package/dist/__tests__/update-check.test.js.map +1 -0
- package/dist/__tests__/update.test.js +596 -78
- package/dist/__tests__/update.test.js.map +1 -1
- package/dist/__tests__/upgrade-runner.test.d.ts +2 -0
- package/dist/__tests__/upgrade-runner.test.d.ts.map +1 -0
- package/dist/__tests__/upgrade-runner.test.js +77 -0
- package/dist/__tests__/upgrade-runner.test.js.map +1 -0
- package/dist/__tests__/upgrade.test.d.ts +2 -0
- package/dist/__tests__/upgrade.test.d.ts.map +1 -0
- package/dist/__tests__/upgrade.test.js +56 -0
- package/dist/__tests__/upgrade.test.js.map +1 -0
- package/dist/__tests__/verify-formatter.test.d.ts +2 -0
- package/dist/__tests__/verify-formatter.test.d.ts.map +1 -0
- package/dist/__tests__/verify-formatter.test.js +85 -0
- package/dist/__tests__/verify-formatter.test.js.map +1 -0
- package/dist/__tests__/vocabulary-leak.test.d.ts +33 -0
- package/dist/__tests__/vocabulary-leak.test.d.ts.map +1 -0
- package/dist/__tests__/vocabulary-leak.test.js +425 -0
- package/dist/__tests__/vocabulary-leak.test.js.map +1 -0
- package/dist/__tests__/workspace.test.d.ts +2 -0
- package/dist/__tests__/workspace.test.d.ts.map +1 -0
- package/dist/__tests__/workspace.test.js +267 -0
- package/dist/__tests__/workspace.test.js.map +1 -0
- package/dist/__tests__/workspaceNotice.test.d.ts +2 -0
- package/dist/__tests__/workspaceNotice.test.d.ts.map +1 -0
- package/dist/__tests__/workspaceNotice.test.js +551 -0
- package/dist/__tests__/workspaceNotice.test.js.map +1 -0
- package/dist/commands/__tests__/quality.test.d.ts +2 -0
- package/dist/commands/__tests__/quality.test.d.ts.map +1 -0
- package/dist/commands/__tests__/quality.test.js +315 -0
- package/dist/commands/__tests__/quality.test.js.map +1 -0
- package/dist/commands/__tests__/rework.test.d.ts +2 -0
- package/dist/commands/__tests__/rework.test.d.ts.map +1 -0
- package/dist/commands/__tests__/rework.test.js +151 -0
- package/dist/commands/__tests__/rework.test.js.map +1 -0
- package/dist/commands/__tests__/tasksList.test.d.ts +2 -0
- package/dist/commands/__tests__/tasksList.test.d.ts.map +1 -0
- package/dist/commands/__tests__/tasksList.test.js +66 -0
- package/dist/commands/__tests__/tasksList.test.js.map +1 -0
- package/dist/commands/__tests__/tensionsList.test.d.ts +2 -0
- package/dist/commands/__tests__/tensionsList.test.d.ts.map +1 -0
- package/dist/commands/__tests__/tensionsList.test.js +63 -0
- package/dist/commands/__tests__/tensionsList.test.js.map +1 -0
- package/dist/commands/accept-policy.d.ts +10 -0
- package/dist/commands/accept-policy.d.ts.map +1 -0
- package/dist/commands/accept-policy.js +101 -0
- package/dist/commands/accept-policy.js.map +1 -0
- package/dist/commands/admin/cockpit.d.ts +79 -0
- package/dist/commands/admin/cockpit.d.ts.map +1 -0
- package/dist/commands/admin/cockpit.js +553 -0
- package/dist/commands/admin/cockpit.js.map +1 -0
- package/dist/commands/admin/cockpit.test.d.ts +2 -0
- package/dist/commands/admin/cockpit.test.d.ts.map +1 -0
- package/dist/commands/admin/cockpit.test.js +104 -0
- package/dist/commands/admin/cockpit.test.js.map +1 -0
- package/dist/commands/admin/index.d.ts +70 -0
- package/dist/commands/admin/index.d.ts.map +1 -0
- package/dist/commands/admin/index.js +375 -0
- package/dist/commands/admin/index.js.map +1 -0
- package/dist/commands/admin/index.test.d.ts +2 -0
- package/dist/commands/admin/index.test.d.ts.map +1 -0
- package/dist/commands/admin/index.test.js +94 -0
- package/dist/commands/admin/index.test.js.map +1 -0
- package/dist/commands/admin/inspect.d.ts +30 -0
- package/dist/commands/admin/inspect.d.ts.map +1 -0
- package/dist/commands/admin/inspect.js +550 -0
- package/dist/commands/admin/inspect.js.map +1 -0
- package/dist/commands/admin/inspect.test.d.ts +7 -0
- package/dist/commands/admin/inspect.test.d.ts.map +1 -0
- package/dist/commands/admin/inspect.test.js +90 -0
- package/dist/commands/admin/inspect.test.js.map +1 -0
- package/dist/commands/admin/manage.d.ts +8 -0
- package/dist/commands/admin/manage.d.ts.map +1 -0
- package/dist/commands/admin/manage.js +53 -0
- package/dist/commands/admin/manage.js.map +1 -0
- package/dist/commands/admin/manage.test.d.ts +2 -0
- package/dist/commands/admin/manage.test.d.ts.map +1 -0
- package/dist/commands/admin/manage.test.js +103 -0
- package/dist/commands/admin/manage.test.js.map +1 -0
- package/dist/commands/admin/probe.d.ts +75 -0
- package/dist/commands/admin/probe.d.ts.map +1 -0
- package/dist/commands/admin/probe.js +224 -0
- package/dist/commands/admin/probe.js.map +1 -0
- package/dist/commands/admin/probe.test.d.ts +2 -0
- package/dist/commands/admin/probe.test.d.ts.map +1 -0
- package/dist/commands/admin/probe.test.js +193 -0
- package/dist/commands/admin/probe.test.js.map +1 -0
- package/dist/commands/admin/run.d.ts +43 -0
- package/dist/commands/admin/run.d.ts.map +1 -0
- package/dist/commands/admin/run.js +78 -0
- package/dist/commands/admin/run.js.map +1 -0
- package/dist/commands/admin/run.test.d.ts +18 -0
- package/dist/commands/admin/run.test.d.ts.map +1 -0
- package/dist/commands/admin/run.test.js +168 -0
- package/dist/commands/admin/run.test.js.map +1 -0
- package/dist/commands/admin/seed.d.ts +54 -0
- package/dist/commands/admin/seed.d.ts.map +1 -0
- package/dist/commands/admin/seed.js +642 -0
- package/dist/commands/admin/seed.js.map +1 -0
- package/dist/commands/admin/seed.test.d.ts +10 -0
- package/dist/commands/admin/seed.test.d.ts.map +1 -0
- package/dist/commands/admin/seed.test.js +90 -0
- package/dist/commands/admin/seed.test.js.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts +16 -0
- package/dist/commands/admin/seedRegistryEntries.generated.d.ts.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.generated.js +63 -0
- package/dist/commands/admin/seedRegistryEntries.generated.js.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.test.d.ts +13 -0
- package/dist/commands/admin/seedRegistryEntries.test.d.ts.map +1 -0
- package/dist/commands/admin/seedRegistryEntries.test.js +109 -0
- package/dist/commands/admin/seedRegistryEntries.test.js.map +1 -0
- package/dist/commands/admin/seedRowType.d.ts +22 -0
- package/dist/commands/admin/seedRowType.d.ts.map +1 -0
- package/dist/commands/admin/seedRowType.js +2 -0
- package/dist/commands/admin/seedRowType.js.map +1 -0
- package/dist/commands/admin/seedStatusColor.d.ts +9 -0
- package/dist/commands/admin/seedStatusColor.d.ts.map +1 -0
- package/dist/commands/admin/seedStatusColor.js +19 -0
- package/dist/commands/admin/seedStatusColor.js.map +1 -0
- package/dist/commands/admin/seedStatusColor.test.d.ts +2 -0
- package/dist/commands/admin/seedStatusColor.test.d.ts.map +1 -0
- package/dist/commands/admin/seedStatusColor.test.js +31 -0
- package/dist/commands/admin/seedStatusColor.test.js.map +1 -0
- package/dist/commands/brief.d.ts.map +1 -1
- package/dist/commands/brief.js +36 -14
- package/dist/commands/brief.js.map +1 -1
- package/dist/commands/capture.d.ts +20 -8
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +133 -69
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/chain-walk.d.ts.map +1 -1
- package/dist/commands/chain-walk.js +9 -6
- package/dist/commands/chain-walk.js.map +1 -1
- package/dist/commands/changes.d.ts.map +1 -1
- package/dist/commands/changes.js +9 -6
- package/dist/commands/changes.js.map +1 -1
- package/dist/commands/codex-prep.d.ts +23 -0
- package/dist/commands/codex-prep.d.ts.map +1 -0
- package/dist/commands/codex-prep.js +54 -0
- package/dist/commands/codex-prep.js.map +1 -0
- package/dist/commands/collections.d.ts +22 -0
- package/dist/commands/collections.d.ts.map +1 -0
- package/dist/commands/collections.js +69 -0
- package/dist/commands/collections.js.map +1 -0
- package/dist/commands/conflicts.d.ts +40 -0
- package/dist/commands/conflicts.d.ts.map +1 -0
- package/dist/commands/conflicts.js +213 -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 +202 -0
- package/dist/commands/conflicts.test.js.map +1 -0
- package/dist/commands/connect-config.test.d.ts +2 -0
- package/dist/commands/connect-config.test.d.ts.map +1 -0
- package/dist/commands/connect-config.test.js +47 -0
- package/dist/commands/connect-config.test.js.map +1 -0
- package/dist/commands/connect-decline.test.d.ts +2 -0
- package/dist/commands/connect-decline.test.d.ts.map +1 -0
- package/dist/commands/connect-decline.test.js +70 -0
- package/dist/commands/connect-decline.test.js.map +1 -0
- package/dist/commands/connect-integration.test.d.ts +7 -0
- package/dist/commands/connect-integration.test.d.ts.map +1 -0
- package/dist/commands/connect-integration.test.js +232 -0
- package/dist/commands/connect-integration.test.js.map +1 -0
- package/dist/commands/connect-legacy-migration.test.d.ts +2 -0
- package/dist/commands/connect-legacy-migration.test.d.ts.map +1 -0
- package/dist/commands/connect-legacy-migration.test.js +108 -0
- package/dist/commands/connect-legacy-migration.test.js.map +1 -0
- package/dist/commands/connect-redeem-failure.test.d.ts +2 -0
- package/dist/commands/connect-redeem-failure.test.d.ts.map +1 -0
- package/dist/commands/connect-redeem-failure.test.js +133 -0
- package/dist/commands/connect-redeem-failure.test.js.map +1 -0
- package/dist/commands/connect-screens.d.ts +17 -0
- package/dist/commands/connect-screens.d.ts.map +1 -0
- package/dist/commands/connect-screens.js +28 -0
- package/dist/commands/connect-screens.js.map +1 -0
- package/dist/commands/connect-screens.test.d.ts +2 -0
- package/dist/commands/connect-screens.test.d.ts.map +1 -0
- package/dist/commands/connect-screens.test.js +19 -0
- package/dist/commands/connect-screens.test.js.map +1 -0
- package/dist/commands/connect-seal.test.d.ts +2 -0
- package/dist/commands/connect-seal.test.d.ts.map +1 -0
- package/dist/commands/connect-seal.test.js +54 -0
- package/dist/commands/connect-seal.test.js.map +1 -0
- package/dist/commands/connect.d.ts +38 -0
- package/dist/commands/connect.d.ts.map +1 -0
- package/dist/commands/connect.js +424 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/connect.test.d.ts +6 -0
- package/dist/commands/connect.test.d.ts.map +1 -0
- package/dist/commands/connect.test.js +521 -0
- package/dist/commands/connect.test.js.map +1 -0
- package/dist/commands/constellation.d.ts.map +1 -1
- package/dist/commands/constellation.js +9 -6
- package/dist/commands/constellation.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +9 -6
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/cross-cut.d.ts.map +1 -1
- package/dist/commands/cross-cut.js +3 -5
- package/dist/commands/cross-cut.js.map +1 -1
- package/dist/commands/direction.d.ts +10 -0
- package/dist/commands/direction.d.ts.map +1 -0
- package/dist/commands/direction.js +75 -0
- package/dist/commands/direction.js.map +1 -0
- package/dist/commands/doctor.d.ts +18 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +364 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/doctor.test.d.ts +8 -0
- package/dist/commands/doctor.test.d.ts.map +1 -0
- package/dist/commands/doctor.test.js +652 -0
- package/dist/commands/doctor.test.js.map +1 -0
- package/dist/commands/entryAccept.d.ts +59 -0
- package/dist/commands/entryAccept.d.ts.map +1 -0
- package/dist/commands/entryAccept.js +288 -0
- package/dist/commands/entryAccept.js.map +1 -0
- package/dist/commands/entryDiscardResolve.d.ts +9 -0
- package/dist/commands/entryDiscardResolve.d.ts.map +1 -0
- package/dist/commands/entryDiscardResolve.js +27 -0
- package/dist/commands/entryDiscardResolve.js.map +1 -0
- package/dist/commands/entryOwn.d.ts +10 -0
- package/dist/commands/entryOwn.d.ts.map +1 -0
- package/dist/commands/entryOwn.js +40 -0
- package/dist/commands/entryOwn.js.map +1 -0
- package/dist/commands/entryPreflight.d.ts +8 -0
- package/dist/commands/entryPreflight.d.ts.map +1 -0
- package/dist/commands/entryPreflight.js +44 -0
- package/dist/commands/entryPreflight.js.map +1 -0
- package/dist/commands/entryReplace.d.ts +7 -0
- package/dist/commands/entryReplace.d.ts.map +1 -0
- package/dist/commands/entryReplace.js +34 -0
- package/dist/commands/entryReplace.js.map +1 -0
- package/dist/commands/entryTick.d.ts +8 -0
- package/dist/commands/entryTick.d.ts.map +1 -0
- package/dist/commands/entryTick.js +42 -0
- package/dist/commands/entryTick.js.map +1 -0
- package/dist/commands/feedback.d.ts +39 -0
- package/dist/commands/feedback.d.ts.map +1 -0
- package/dist/commands/feedback.js +165 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/feedback.test.d.ts +2 -0
- package/dist/commands/feedback.test.d.ts.map +1 -0
- package/dist/commands/feedback.test.js +109 -0
- package/dist/commands/feedback.test.js.map +1 -0
- package/dist/commands/fields.d.ts.map +1 -1
- package/dist/commands/fields.js +9 -7
- package/dist/commands/fields.js.map +1 -1
- package/dist/commands/files.d.ts +26 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +160 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/files.test.d.ts +2 -0
- package/dist/commands/files.test.d.ts.map +1 -0
- package/dist/commands/files.test.js +278 -0
- package/dist/commands/files.test.js.map +1 -0
- package/dist/commands/get.d.ts.map +1 -1
- package/dist/commands/get.js +16 -12
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/history.d.ts +32 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +53 -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 +121 -0
- package/dist/commands/history.test.js.map +1 -0
- package/dist/commands/init.d.ts +41 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +266 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +107 -39
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/method.d.ts +7 -0
- package/dist/commands/method.d.ts.map +1 -0
- package/dist/commands/method.js +67 -0
- package/dist/commands/method.js.map +1 -0
- package/dist/commands/organisation.d.ts +12 -0
- package/dist/commands/organisation.d.ts.map +1 -0
- package/dist/commands/organisation.js +143 -0
- package/dist/commands/organisation.js.map +1 -0
- package/dist/commands/organisation.test.d.ts +2 -0
- package/dist/commands/organisation.test.d.ts.map +1 -0
- package/dist/commands/organisation.test.js +116 -0
- package/dist/commands/organisation.test.js.map +1 -0
- package/dist/commands/organisationHierarchy.d.ts +15 -0
- package/dist/commands/organisationHierarchy.d.ts.map +1 -0
- package/dist/commands/organisationHierarchy.js +102 -0
- package/dist/commands/organisationHierarchy.js.map +1 -0
- package/dist/commands/organisationHierarchy.test.d.ts +2 -0
- package/dist/commands/organisationHierarchy.test.d.ts.map +1 -0
- package/dist/commands/organisationHierarchy.test.js +144 -0
- package/dist/commands/organisationHierarchy.test.js.map +1 -0
- package/dist/commands/organisationWrite.d.ts +20 -0
- package/dist/commands/organisationWrite.d.ts.map +1 -0
- package/dist/commands/organisationWrite.js +44 -0
- package/dist/commands/organisationWrite.js.map +1 -0
- package/dist/commands/orient.d.ts +143 -36
- package/dist/commands/orient.d.ts.map +1 -1
- package/dist/commands/orient.js +240 -18
- package/dist/commands/orient.js.map +1 -1
- package/dist/commands/outcome.d.ts +96 -0
- package/dist/commands/outcome.d.ts.map +1 -0
- package/dist/commands/outcome.js +194 -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 +326 -0
- package/dist/commands/outcome.test.js.map +1 -0
- package/dist/commands/people.d.ts +6 -0
- package/dist/commands/people.d.ts.map +1 -0
- package/dist/commands/people.js +21 -0
- package/dist/commands/people.js.map +1 -0
- package/dist/commands/people.test.d.ts +2 -0
- package/dist/commands/people.test.d.ts.map +1 -0
- package/dist/commands/people.test.js +61 -0
- package/dist/commands/people.test.js.map +1 -0
- package/dist/commands/profile.d.ts +72 -0
- package/dist/commands/profile.d.ts.map +1 -0
- package/dist/commands/profile.js +351 -0
- package/dist/commands/profile.js.map +1 -0
- package/dist/commands/proof-run.d.ts +51 -0
- package/dist/commands/proof-run.d.ts.map +1 -0
- package/dist/commands/proof-run.js +209 -0
- package/dist/commands/proof-run.js.map +1 -0
- package/dist/commands/quality.d.ts +38 -0
- package/dist/commands/quality.d.ts.map +1 -0
- package/dist/commands/quality.js +99 -0
- package/dist/commands/quality.js.map +1 -0
- package/dist/commands/questions.d.ts +27 -0
- package/dist/commands/questions.d.ts.map +1 -0
- package/dist/commands/questions.js +261 -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 +238 -0
- package/dist/commands/questions.test.js.map +1 -0
- package/dist/commands/relate.d.ts +10 -0
- package/dist/commands/relate.d.ts.map +1 -1
- package/dist/commands/relate.js +149 -23
- package/dist/commands/relate.js.map +1 -1
- package/dist/commands/restore.d.ts +2 -0
- package/dist/commands/restore.d.ts.map +1 -0
- package/dist/commands/restore.js +88 -0
- package/dist/commands/restore.js.map +1 -0
- package/dist/commands/rework.d.ts +24 -0
- package/dist/commands/rework.d.ts.map +1 -0
- package/dist/commands/rework.js +96 -0
- package/dist/commands/rework.js.map +1 -0
- package/dist/commands/role.d.ts +90 -0
- package/dist/commands/role.d.ts.map +1 -0
- package/dist/commands/role.js +172 -0
- package/dist/commands/role.js.map +1 -0
- package/dist/commands/role.test.d.ts +2 -0
- package/dist/commands/role.test.d.ts.map +1 -0
- package/dist/commands/role.test.js +345 -0
- package/dist/commands/role.test.js.map +1 -0
- package/dist/commands/scoreboard.d.ts +23 -0
- package/dist/commands/scoreboard.d.ts.map +1 -0
- package/dist/commands/scoreboard.js +33 -0
- package/dist/commands/scoreboard.js.map +1 -0
- package/dist/commands/scoreboard.test.d.ts +2 -0
- package/dist/commands/scoreboard.test.d.ts.map +1 -0
- package/dist/commands/scoreboard.test.js +51 -0
- package/dist/commands/scoreboard.test.js.map +1 -0
- package/dist/commands/search.d.ts +2 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +7 -8
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/session-hook.d.ts +38 -0
- package/dist/commands/session-hook.d.ts.map +1 -0
- package/dist/commands/session-hook.js +97 -0
- package/dist/commands/session-hook.js.map +1 -0
- package/dist/commands/session-hook.test.d.ts +2 -0
- package/dist/commands/session-hook.test.d.ts.map +1 -0
- package/dist/commands/session-hook.test.js +89 -0
- package/dist/commands/session-hook.test.js.map +1 -0
- package/dist/commands/session.d.ts +64 -7
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +470 -78
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts +7 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +101 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/status.test.d.ts +2 -0
- package/dist/commands/status.test.d.ts.map +1 -0
- package/dist/commands/status.test.js +75 -0
- package/dist/commands/status.test.js.map +1 -0
- package/dist/commands/stillTrue.d.ts +14 -0
- package/dist/commands/stillTrue.d.ts.map +1 -0
- package/dist/commands/stillTrue.js +47 -0
- package/dist/commands/stillTrue.js.map +1 -0
- package/dist/commands/tasksList.d.ts +12 -0
- package/dist/commands/tasksList.d.ts.map +1 -0
- package/dist/commands/tasksList.js +45 -0
- package/dist/commands/tasksList.js.map +1 -0
- package/dist/commands/tensionsList.d.ts +5 -0
- package/dist/commands/tensionsList.d.ts.map +1 -0
- package/dist/commands/tensionsList.js +25 -0
- package/dist/commands/tensionsList.js.map +1 -0
- package/dist/commands/update.d.ts +24 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +241 -51
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/upgrade.d.ts +5 -0
- package/dist/commands/upgrade.d.ts.map +1 -0
- package/dist/commands/upgrade.js +110 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/commands/usage.d.ts +40 -0
- package/dist/commands/usage.d.ts.map +1 -0
- package/dist/commands/usage.js +214 -0
- package/dist/commands/usage.js.map +1 -0
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +20 -10
- package/dist/commands/verify.js.map +1 -1
- package/dist/commands/welcome.d.ts +21 -0
- package/dist/commands/welcome.d.ts.map +1 -0
- package/dist/commands/welcome.js +54 -0
- package/dist/commands/welcome.js.map +1 -0
- package/dist/commands/whoami.d.ts +23 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +132 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/commands/whoami.test.d.ts +2 -0
- package/dist/commands/whoami.test.d.ts.map +1 -0
- package/dist/commands/whoami.test.js +145 -0
- package/dist/commands/whoami.test.js.map +1 -0
- package/dist/commands/workspace.d.ts +46 -0
- package/dist/commands/workspace.d.ts.map +1 -0
- package/dist/commands/workspace.js +198 -0
- package/dist/commands/workspace.js.map +1 -0
- package/dist/formatters/__tests__/orient-openTasks.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-openTasks.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-openTasks.test.js +77 -0
- package/dist/formatters/__tests__/orient-openTasks.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js +38 -0
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts +6 -0
- package/dist/formatters/__tests__/orient-provenance.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-provenance.test.js +312 -0
- package/dist/formatters/__tests__/orient-provenance.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.js +93 -0
- package/dist/formatters/__tests__/orient-ruleLists.test.js.map +1 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.d.ts +2 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.js +69 -0
- package/dist/formatters/__tests__/orient-workPackageList.test.js.map +1 -0
- package/dist/formatters/__tests__/session-list-show.test.d.ts +2 -0
- package/dist/formatters/__tests__/session-list-show.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/session-list-show.test.js +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 +273 -0
- package/dist/formatters/__tests__/session.test.js.map +1 -0
- package/dist/formatters/__tests__/tensionsList.test.d.ts +2 -0
- package/dist/formatters/__tests__/tensionsList.test.d.ts.map +1 -0
- package/dist/formatters/__tests__/tensionsList.test.js +30 -0
- package/dist/formatters/__tests__/tensionsList.test.js.map +1 -0
- package/dist/formatters/brief.d.ts +7 -15
- package/dist/formatters/brief.d.ts.map +1 -1
- package/dist/formatters/brief.js +18 -15
- package/dist/formatters/brief.js.map +1 -1
- package/dist/formatters/brief.test.d.ts +2 -0
- package/dist/formatters/brief.test.d.ts.map +1 -0
- package/dist/formatters/brief.test.js +33 -0
- package/dist/formatters/brief.test.js.map +1 -0
- package/dist/formatters/capture.d.ts +38 -6
- package/dist/formatters/capture.d.ts.map +1 -1
- package/dist/formatters/capture.js +58 -9
- package/dist/formatters/capture.js.map +1 -1
- package/dist/formatters/coaching.d.ts +59 -0
- package/dist/formatters/coaching.d.ts.map +1 -0
- package/dist/formatters/coaching.js +51 -0
- package/dist/formatters/coaching.js.map +1 -0
- package/dist/formatters/collections.d.ts +39 -0
- package/dist/formatters/collections.d.ts.map +1 -0
- package/dist/formatters/collections.js +102 -0
- package/dist/formatters/collections.js.map +1 -0
- package/dist/formatters/conflicts.d.ts +81 -0
- package/dist/formatters/conflicts.d.ts.map +1 -0
- package/dist/formatters/conflicts.js +102 -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 +179 -0
- package/dist/formatters/conflicts.test.js.map +1 -0
- package/dist/formatters/constellation.d.ts +2 -0
- package/dist/formatters/constellation.d.ts.map +1 -1
- package/dist/formatters/constellation.js +2 -0
- package/dist/formatters/constellation.js.map +1 -1
- package/dist/formatters/context.d.ts +1 -1
- package/dist/formatters/context.d.ts.map +1 -1
- package/dist/formatters/context.js.map +1 -1
- package/dist/formatters/direction.d.ts +48 -0
- package/dist/formatters/direction.d.ts.map +1 -0
- package/dist/formatters/direction.js +75 -0
- package/dist/formatters/direction.js.map +1 -0
- package/dist/formatters/direction.test.d.ts +2 -0
- package/dist/formatters/direction.test.d.ts.map +1 -0
- package/dist/formatters/direction.test.js +70 -0
- package/dist/formatters/direction.test.js.map +1 -0
- package/dist/formatters/entry.d.ts +102 -5
- package/dist/formatters/entry.d.ts.map +1 -1
- package/dist/formatters/entry.js +139 -15
- package/dist/formatters/entry.js.map +1 -1
- package/dist/formatters/entryAccept.d.ts +86 -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 +61 -0
- package/dist/formatters/feedback.d.ts.map +1 -0
- package/dist/formatters/feedback.js +95 -0
- package/dist/formatters/feedback.js.map +1 -0
- package/dist/formatters/feedback.test.d.ts +2 -0
- package/dist/formatters/feedback.test.d.ts.map +1 -0
- package/dist/formatters/feedback.test.js +142 -0
- package/dist/formatters/feedback.test.js.map +1 -0
- package/dist/formatters/fields.d.ts +7 -1
- package/dist/formatters/fields.d.ts.map +1 -1
- package/dist/formatters/fields.js +9 -3
- package/dist/formatters/fields.js.map +1 -1
- package/dist/formatters/fields.test.d.ts +2 -0
- package/dist/formatters/fields.test.d.ts.map +1 -0
- package/dist/formatters/fields.test.js +42 -0
- package/dist/formatters/fields.test.js.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts +2 -0
- package/dist/formatters/orient.coherencyCheckTag.test.d.ts.map +1 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js +22 -0
- package/dist/formatters/orient.coherencyCheckTag.test.js.map +1 -0
- package/dist/formatters/orient.d.ts +190 -42
- package/dist/formatters/orient.d.ts.map +1 -1
- package/dist/formatters/orient.js +294 -102
- 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 +75 -0
- package/dist/formatters/orient.rcrtMiss.test.js.map +1 -0
- package/dist/formatters/orient.rituals.test.d.ts +2 -0
- package/dist/formatters/orient.rituals.test.d.ts.map +1 -0
- package/dist/formatters/orient.rituals.test.js +70 -0
- package/dist/formatters/orient.rituals.test.js.map +1 -0
- package/dist/formatters/orient.taskAlignment.test.d.ts +2 -0
- package/dist/formatters/orient.taskAlignment.test.d.ts.map +1 -0
- package/dist/formatters/orient.taskAlignment.test.js +52 -0
- package/dist/formatters/orient.taskAlignment.test.js.map +1 -0
- package/dist/formatters/orientDegradation.d.ts +35 -0
- package/dist/formatters/orientDegradation.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.js +47 -0
- package/dist/formatters/orientDegradation.js.map +1 -0
- package/dist/formatters/orientDegradation.test.d.ts +2 -0
- package/dist/formatters/orientDegradation.test.d.ts.map +1 -0
- package/dist/formatters/orientDegradation.test.js +26 -0
- package/dist/formatters/orientDegradation.test.js.map +1 -0
- package/dist/formatters/orientDirection.d.ts +25 -0
- package/dist/formatters/orientDirection.d.ts.map +1 -0
- package/dist/formatters/orientDirection.js +7 -0
- package/dist/formatters/orientDirection.js.map +1 -0
- package/dist/formatters/orientDirection.test.d.ts +2 -0
- package/dist/formatters/orientDirection.test.d.ts.map +1 -0
- package/dist/formatters/orientDirection.test.js +66 -0
- package/dist/formatters/orientDirection.test.js.map +1 -0
- package/dist/formatters/orientRetrievalMiss.d.ts +22 -0
- package/dist/formatters/orientRetrievalMiss.d.ts.map +1 -0
- package/dist/formatters/orientRetrievalMiss.js +17 -0
- package/dist/formatters/orientRetrievalMiss.js.map +1 -0
- package/dist/formatters/plannedWorkCounts.d.ts +16 -0
- package/dist/formatters/plannedWorkCounts.d.ts.map +1 -0
- package/dist/formatters/plannedWorkCounts.js +15 -0
- package/dist/formatters/plannedWorkCounts.js.map +1 -0
- package/dist/formatters/qualityChecks.d.ts +21 -0
- package/dist/formatters/qualityChecks.d.ts.map +1 -0
- package/dist/formatters/qualityChecks.js +132 -0
- package/dist/formatters/qualityChecks.js.map +1 -0
- package/dist/formatters/questions.d.ts +90 -0
- package/dist/formatters/questions.d.ts.map +1 -0
- package/dist/formatters/questions.js +126 -0
- package/dist/formatters/questions.js.map +1 -0
- package/dist/formatters/questions.test.d.ts +2 -0
- package/dist/formatters/questions.test.d.ts.map +1 -0
- package/dist/formatters/questions.test.js +176 -0
- package/dist/formatters/questions.test.js.map +1 -0
- package/dist/formatters/relate.d.ts +13 -0
- package/dist/formatters/relate.d.ts.map +1 -1
- package/dist/formatters/relate.js +15 -2
- package/dist/formatters/relate.js.map +1 -1
- package/dist/formatters/relate.test.d.ts +2 -0
- package/dist/formatters/relate.test.d.ts.map +1 -0
- package/dist/formatters/relate.test.js +91 -0
- package/dist/formatters/relate.test.js.map +1 -0
- package/dist/formatters/scoreboard.d.ts +11 -0
- package/dist/formatters/scoreboard.d.ts.map +1 -0
- package/dist/formatters/scoreboard.js +143 -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 +262 -0
- package/dist/formatters/scoreboard.test.js.map +1 -0
- package/dist/formatters/search.d.ts +24 -4
- package/dist/formatters/search.d.ts.map +1 -1
- package/dist/formatters/search.js +28 -10
- package/dist/formatters/search.js.map +1 -1
- package/dist/formatters/search.test.d.ts +2 -0
- package/dist/formatters/search.test.d.ts.map +1 -0
- package/dist/formatters/search.test.js +86 -0
- package/dist/formatters/search.test.js.map +1 -0
- package/dist/formatters/session-feedback.test.d.ts +2 -0
- package/dist/formatters/session-feedback.test.d.ts.map +1 -0
- package/dist/formatters/session-feedback.test.js +274 -0
- package/dist/formatters/session-feedback.test.js.map +1 -0
- package/dist/formatters/session.d.ts +135 -5
- package/dist/formatters/session.d.ts.map +1 -1
- package/dist/formatters/session.js +345 -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 +128 -0
- package/dist/formatters/spineCheck.js.map +1 -0
- package/dist/formatters/spineCheck.test.d.ts +2 -0
- package/dist/formatters/spineCheck.test.d.ts.map +1 -0
- package/dist/formatters/spineCheck.test.js +85 -0
- package/dist/formatters/spineCheck.test.js.map +1 -0
- package/dist/formatters/tensionsList.d.ts +17 -0
- package/dist/formatters/tensionsList.d.ts.map +1 -0
- package/dist/formatters/tensionsList.js +33 -0
- package/dist/formatters/tensionsList.js.map +1 -0
- package/dist/formatters/update.d.ts +26 -0
- package/dist/formatters/update.d.ts.map +1 -1
- package/dist/formatters/update.js +40 -6
- package/dist/formatters/update.js.map +1 -1
- package/dist/formatters/update.test.d.ts +2 -0
- package/dist/formatters/update.test.d.ts.map +1 -0
- package/dist/formatters/update.test.js +71 -0
- package/dist/formatters/update.test.js.map +1 -0
- package/dist/formatters/verify.d.ts +12 -4
- package/dist/formatters/verify.d.ts.map +1 -1
- package/dist/formatters/verify.js +20 -2
- package/dist/formatters/verify.js.map +1 -1
- package/dist/generated/healthGapKinds.generated.d.ts +12 -0
- package/dist/generated/healthGapKinds.generated.d.ts.map +1 -0
- package/dist/generated/healthGapKinds.generated.js +16 -0
- package/dist/generated/healthGapKinds.generated.js.map +1 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.generated.d.ts +12 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.generated.d.ts.map +1 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.generated.js +11 -0
- package/dist/generated/organisationalAuthorityRefusalCodes.generated.js.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts +54 -0
- package/dist/generated/routeLatencyBudget.generated.d.ts.map +1 -0
- package/dist/generated/routeLatencyBudget.generated.js +255 -0
- package/dist/generated/routeLatencyBudget.generated.js.map +1 -0
- package/dist/handleCliError.d.ts +30 -0
- package/dist/handleCliError.d.ts.map +1 -0
- package/dist/handleCliError.js +91 -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 +404 -355
- package/dist/index.js.map +1 -1
- package/dist/lib/__tests__/parseFields.test.d.ts +2 -0
- package/dist/lib/__tests__/parseFields.test.d.ts.map +1 -0
- package/dist/lib/__tests__/parseFields.test.js +40 -0
- package/dist/lib/__tests__/parseFields.test.js.map +1 -0
- package/dist/lib/adminConfig.d.ts +48 -0
- package/dist/lib/adminConfig.d.ts.map +1 -0
- package/dist/lib/adminConfig.js +126 -0
- package/dist/lib/adminConfig.js.map +1 -0
- package/dist/lib/canonicalRefs.d.ts +155 -0
- package/dist/lib/canonicalRefs.d.ts.map +1 -0
- package/dist/lib/canonicalRefs.js +131 -0
- package/dist/lib/canonicalRefs.js.map +1 -0
- package/dist/lib/captureLink.d.ts +7 -0
- package/dist/lib/captureLink.d.ts.map +1 -0
- package/dist/lib/captureLink.js +29 -0
- package/dist/lib/captureLink.js.map +1 -0
- package/dist/lib/checklist.d.ts +151 -0
- package/dist/lib/checklist.d.ts.map +1 -0
- package/dist/lib/checklist.js +235 -0
- package/dist/lib/checklist.js.map +1 -0
- package/dist/lib/cliFirstRun.d.ts +36 -0
- package/dist/lib/cliFirstRun.d.ts.map +1 -0
- package/dist/lib/cliFirstRun.js +36 -0
- package/dist/lib/cliFirstRun.js.map +1 -0
- package/dist/lib/client.d.ts +58 -28
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +361 -62
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/compose-wrapup-view.d.ts +66 -0
- package/dist/lib/compose-wrapup-view.d.ts.map +1 -0
- package/dist/lib/compose-wrapup-view.js +39 -0
- package/dist/lib/compose-wrapup-view.js.map +1 -0
- package/dist/lib/config.d.ts +147 -6
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +377 -73
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/configResult.d.ts +110 -0
- package/dist/lib/configResult.d.ts.map +1 -0
- package/dist/lib/configResult.js +189 -0
- package/dist/lib/configResult.js.map +1 -0
- package/dist/lib/conflictResolution.d.ts +37 -0
- package/dist/lib/conflictResolution.d.ts.map +1 -0
- package/dist/lib/conflictResolution.js +29 -0
- package/dist/lib/conflictResolution.js.map +1 -0
- package/dist/lib/connectKeyLabel.d.ts +9 -0
- package/dist/lib/connectKeyLabel.d.ts.map +1 -0
- package/dist/lib/connectKeyLabel.js +12 -0
- package/dist/lib/connectKeyLabel.js.map +1 -0
- package/dist/lib/connectProfileName.d.ts +36 -0
- package/dist/lib/connectProfileName.d.ts.map +1 -0
- package/dist/lib/connectProfileName.js +72 -0
- package/dist/lib/connectProfileName.js.map +1 -0
- package/dist/lib/connectProfileName.test.d.ts +2 -0
- package/dist/lib/connectProfileName.test.d.ts.map +1 -0
- package/dist/lib/connectProfileName.test.js +100 -0
- package/dist/lib/connectProfileName.test.js.map +1 -0
- package/dist/lib/constants.d.ts +51 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +90 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/conversation.d.ts +48 -0
- package/dist/lib/conversation.d.ts.map +1 -0
- package/dist/lib/conversation.js +136 -0
- package/dist/lib/conversation.js.map +1 -0
- package/dist/lib/createEntryResult.d.ts +34 -0
- package/dist/lib/createEntryResult.d.ts.map +1 -0
- package/dist/lib/createEntryResult.js +12 -0
- package/dist/lib/createEntryResult.js.map +1 -0
- package/dist/lib/deployment.d.ts +23 -0
- package/dist/lib/deployment.d.ts.map +1 -0
- package/dist/lib/deployment.js +78 -0
- package/dist/lib/deployment.js.map +1 -0
- package/dist/lib/deployment.test.d.ts +5 -0
- package/dist/lib/deployment.test.d.ts.map +1 -0
- package/dist/lib/deployment.test.js +73 -0
- package/dist/lib/deployment.test.js.map +1 -0
- package/dist/lib/envKeySnapshot.d.ts +10 -0
- package/dist/lib/envKeySnapshot.d.ts.map +1 -0
- package/dist/lib/envKeySnapshot.js +30 -0
- package/dist/lib/envKeySnapshot.js.map +1 -0
- package/dist/lib/errors.d.ts +153 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +158 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/format.d.ts +10 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +27 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/gatewayTimeout.d.ts +88 -0
- package/dist/lib/gatewayTimeout.d.ts.map +1 -0
- package/dist/lib/gatewayTimeout.js +124 -0
- package/dist/lib/gatewayTimeout.js.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts +2 -0
- package/dist/lib/gitEnvLeakKeysParity.test.d.ts.map +1 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js +73 -0
- package/dist/lib/gitEnvLeakKeysParity.test.js.map +1 -0
- package/dist/lib/glossary.d.ts +7 -0
- package/dist/lib/glossary.d.ts.map +1 -0
- package/dist/lib/glossary.js +12 -0
- package/dist/lib/glossary.js.map +1 -0
- package/dist/lib/judgeWait.d.ts +50 -0
- package/dist/lib/judgeWait.d.ts.map +1 -0
- package/dist/lib/judgeWait.js +64 -0
- package/dist/lib/judgeWait.js.map +1 -0
- package/dist/lib/kernelEnvelope.d.ts +61 -0
- package/dist/lib/kernelEnvelope.d.ts.map +1 -0
- package/dist/lib/kernelEnvelope.js +98 -0
- package/dist/lib/kernelEnvelope.js.map +1 -0
- package/dist/lib/keyResultLines.d.ts +27 -0
- package/dist/lib/keyResultLines.d.ts.map +1 -0
- package/dist/lib/keyResultLines.js +32 -0
- package/dist/lib/keyResultLines.js.map +1 -0
- package/dist/lib/limits.d.ts +88 -0
- package/dist/lib/limits.d.ts.map +1 -0
- package/dist/lib/limits.js +141 -0
- package/dist/lib/limits.js.map +1 -0
- package/dist/lib/localBinding.d.ts +86 -0
- package/dist/lib/localBinding.d.ts.map +1 -0
- package/dist/lib/localBinding.js +173 -0
- package/dist/lib/localBinding.js.map +1 -0
- package/dist/lib/nameFromText.d.ts +15 -0
- package/dist/lib/nameFromText.d.ts.map +1 -0
- package/dist/lib/nameFromText.js +36 -0
- package/dist/lib/nameFromText.js.map +1 -0
- package/dist/lib/notice-marker.d.ts +3 -0
- package/dist/lib/notice-marker.d.ts.map +1 -0
- package/dist/lib/notice-marker.js +223 -0
- package/dist/lib/notice-marker.js.map +1 -0
- package/dist/lib/outcomeObjectiveLines.d.ts +34 -0
- package/dist/lib/outcomeObjectiveLines.d.ts.map +1 -0
- package/dist/lib/outcomeObjectiveLines.js +30 -0
- package/dist/lib/outcomeObjectiveLines.js.map +1 -0
- package/dist/lib/ownerLine.d.ts +90 -0
- package/dist/lib/ownerLine.d.ts.map +1 -0
- package/dist/lib/ownerLine.js +77 -0
- package/dist/lib/ownerLine.js.map +1 -0
- package/dist/lib/parseFields.d.ts +19 -0
- package/dist/lib/parseFields.d.ts.map +1 -0
- package/dist/lib/parseFields.js +49 -0
- package/dist/lib/parseFields.js.map +1 -0
- package/dist/lib/pinnedRole.d.ts +29 -0
- package/dist/lib/pinnedRole.d.ts.map +1 -0
- package/dist/lib/pinnedRole.js +115 -0
- package/dist/lib/pinnedRole.js.map +1 -0
- package/dist/lib/platformGlossary.d.ts +22 -0
- package/dist/lib/platformGlossary.d.ts.map +1 -0
- package/dist/lib/platformGlossary.js +26 -0
- package/dist/lib/platformGlossary.js.map +1 -0
- package/dist/lib/previewBanner.d.ts +9 -0
- package/dist/lib/previewBanner.d.ts.map +1 -0
- package/dist/lib/previewBanner.js +36 -0
- package/dist/lib/previewBanner.js.map +1 -0
- package/dist/lib/priority.d.ts +64 -0
- package/dist/lib/priority.d.ts.map +1 -0
- package/dist/lib/priority.js +31 -0
- package/dist/lib/priority.js.map +1 -0
- package/dist/lib/privateFile.d.ts +13 -0
- package/dist/lib/privateFile.d.ts.map +1 -0
- package/dist/lib/privateFile.js +65 -0
- package/dist/lib/privateFile.js.map +1 -0
- package/dist/lib/privateFile.test.d.ts +2 -0
- package/dist/lib/privateFile.test.d.ts.map +1 -0
- package/dist/lib/privateFile.test.js +76 -0
- package/dist/lib/privateFile.test.js.map +1 -0
- package/dist/lib/productbrain-files.d.ts +108 -0
- package/dist/lib/productbrain-files.d.ts.map +1 -0
- package/dist/lib/productbrain-files.js +240 -0
- package/dist/lib/productbrain-files.js.map +1 -0
- package/dist/lib/productbrain-files.test.d.ts +2 -0
- package/dist/lib/productbrain-files.test.d.ts.map +1 -0
- package/dist/lib/productbrain-files.test.js +518 -0
- package/dist/lib/productbrain-files.test.js.map +1 -0
- package/dist/lib/profiles.d.ts +89 -0
- package/dist/lib/profiles.d.ts.map +1 -0
- package/dist/lib/profiles.js +240 -0
- package/dist/lib/profiles.js.map +1 -0
- package/dist/lib/projectConfig.d.ts +130 -0
- package/dist/lib/projectConfig.d.ts.map +1 -0
- package/dist/lib/projectConfig.js +252 -0
- package/dist/lib/projectConfig.js.map +1 -0
- package/dist/lib/prompts.d.ts +67 -0
- package/dist/lib/prompts.d.ts.map +1 -0
- package/dist/lib/prompts.js +134 -0
- package/dist/lib/prompts.js.map +1 -0
- package/dist/lib/proseBody.d.ts +14 -0
- package/dist/lib/proseBody.d.ts.map +1 -0
- package/dist/lib/proseBody.js +25 -0
- package/dist/lib/proseBody.js.map +1 -0
- package/dist/lib/rate-limit.d.ts +40 -0
- package/dist/lib/rate-limit.d.ts.map +1 -0
- package/dist/lib/rate-limit.js +89 -0
- package/dist/lib/rate-limit.js.map +1 -0
- package/dist/lib/readinessNotices.d.ts +2 -0
- package/dist/lib/readinessNotices.d.ts.map +1 -0
- package/dist/lib/readinessNotices.js +12 -0
- package/dist/lib/readinessNotices.js.map +1 -0
- package/dist/lib/reportedProfile.d.ts +18 -0
- package/dist/lib/reportedProfile.d.ts.map +1 -0
- package/dist/lib/reportedProfile.js +148 -0
- package/dist/lib/reportedProfile.js.map +1 -0
- package/dist/lib/restsOn.d.ts +33 -0
- package/dist/lib/restsOn.d.ts.map +1 -0
- package/dist/lib/restsOn.js +34 -0
- package/dist/lib/restsOn.js.map +1 -0
- package/dist/lib/routeCommandWords.d.ts +13 -0
- package/dist/lib/routeCommandWords.d.ts.map +1 -0
- package/dist/lib/routeCommandWords.js +27 -0
- package/dist/lib/routeCommandWords.js.map +1 -0
- package/dist/lib/ruleListRender.d.ts +315 -0
- package/dist/lib/ruleListRender.d.ts.map +1 -0
- package/dist/lib/ruleListRender.js +386 -0
- package/dist/lib/ruleListRender.js.map +1 -0
- package/dist/lib/runner.d.ts +11 -1
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/runner.js +51 -11
- package/dist/lib/runner.js.map +1 -1
- package/dist/lib/seatRoster.d.ts +65 -0
- package/dist/lib/seatRoster.d.ts.map +1 -0
- package/dist/lib/seatRoster.js +41 -0
- package/dist/lib/seatRoster.js.map +1 -0
- package/dist/lib/seatSentence.d.ts +196 -0
- package/dist/lib/seatSentence.d.ts.map +1 -0
- package/dist/lib/seatSentence.js +214 -0
- package/dist/lib/seatSentence.js.map +1 -0
- package/dist/lib/session.d.ts +111 -4
- package/dist/lib/session.d.ts.map +1 -1
- package/dist/lib/session.js +318 -13
- package/dist/lib/session.js.map +1 -1
- package/dist/lib/sessionBinding.d.ts +62 -0
- package/dist/lib/sessionBinding.d.ts.map +1 -0
- package/dist/lib/sessionBinding.js +126 -0
- package/dist/lib/sessionBinding.js.map +1 -0
- package/dist/lib/sessionNotices.d.ts +52 -0
- package/dist/lib/sessionNotices.d.ts.map +1 -0
- package/dist/lib/sessionNotices.js +124 -0
- package/dist/lib/sessionNotices.js.map +1 -0
- package/dist/lib/sessionNotices.test.d.ts +2 -0
- package/dist/lib/sessionNotices.test.d.ts.map +1 -0
- package/dist/lib/sessionNotices.test.js +53 -0
- package/dist/lib/sessionNotices.test.js.map +1 -0
- package/dist/lib/sessionOpen.d.ts +26 -0
- package/dist/lib/sessionOpen.d.ts.map +1 -0
- package/dist/lib/sessionOpen.js +56 -0
- package/dist/lib/sessionOpen.js.map +1 -0
- package/dist/lib/sessionStartCommands.d.ts +5 -0
- package/dist/lib/sessionStartCommands.d.ts.map +1 -0
- package/dist/lib/sessionStartCommands.js +12 -0
- package/dist/lib/sessionStartCommands.js.map +1 -0
- package/dist/lib/sessionStartWords.d.ts +18 -0
- package/dist/lib/sessionStartWords.d.ts.map +1 -0
- package/dist/lib/sessionStartWords.js +34 -0
- package/dist/lib/sessionStartWords.js.map +1 -0
- package/dist/lib/spineRungs.d.ts +44 -0
- package/dist/lib/spineRungs.d.ts.map +1 -0
- package/dist/lib/spineRungs.js +19 -0
- package/dist/lib/spineRungs.js.map +1 -0
- package/dist/lib/spineVerdictRead.d.ts +76 -0
- package/dist/lib/spineVerdictRead.d.ts.map +1 -0
- package/dist/lib/spineVerdictRead.js +76 -0
- package/dist/lib/spineVerdictRead.js.map +1 -0
- package/dist/lib/spinner.d.ts +27 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/dist/lib/spinner.js +76 -0
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/spinner.test.d.ts +2 -0
- package/dist/lib/spinner.test.d.ts.map +1 -0
- package/dist/lib/spinner.test.js +39 -0
- package/dist/lib/spinner.test.js.map +1 -0
- package/dist/lib/startup-signals.d.ts +12 -0
- package/dist/lib/startup-signals.d.ts.map +1 -0
- package/dist/lib/startup-signals.js +173 -0
- package/dist/lib/startup-signals.js.map +1 -0
- package/dist/lib/startup-signals.test.d.ts +2 -0
- package/dist/lib/startup-signals.test.d.ts.map +1 -0
- package/dist/lib/startup-signals.test.js +165 -0
- package/dist/lib/startup-signals.test.js.map +1 -0
- package/dist/lib/state.d.ts +60 -0
- package/dist/lib/state.d.ts.map +1 -0
- package/dist/lib/state.js +97 -0
- package/dist/lib/state.js.map +1 -0
- package/dist/lib/statusCategories.d.ts +168 -0
- package/dist/lib/statusCategories.d.ts.map +1 -0
- package/dist/lib/statusCategories.js +299 -0
- package/dist/lib/statusCategories.js.map +1 -0
- package/dist/lib/strip.d.ts +18 -0
- package/dist/lib/strip.d.ts.map +1 -1
- package/dist/lib/strip.js +62 -0
- package/dist/lib/strip.js.map +1 -1
- package/dist/lib/style.d.ts +109 -0
- package/dist/lib/style.d.ts.map +1 -0
- package/dist/lib/style.js +183 -0
- package/dist/lib/style.js.map +1 -0
- package/dist/lib/style.test.d.ts +7 -0
- package/dist/lib/style.test.d.ts.map +1 -0
- package/dist/lib/style.test.js +262 -0
- package/dist/lib/style.test.js.map +1 -0
- package/dist/lib/tokenConstants.d.ts +31 -0
- package/dist/lib/tokenConstants.d.ts.map +1 -0
- package/dist/lib/tokenConstants.js +34 -0
- package/dist/lib/tokenConstants.js.map +1 -0
- package/dist/lib/update-check.d.ts +51 -0
- package/dist/lib/update-check.d.ts.map +1 -0
- package/dist/lib/update-check.js +261 -0
- package/dist/lib/update-check.js.map +1 -0
- package/dist/lib/upgrade-runner.d.ts +38 -0
- package/dist/lib/upgrade-runner.d.ts.map +1 -0
- package/dist/lib/upgrade-runner.js +140 -0
- package/dist/lib/upgrade-runner.js.map +1 -0
- package/dist/lib/workPackageList.d.ts +138 -0
- package/dist/lib/workPackageList.d.ts.map +1 -0
- package/dist/lib/workPackageList.js +139 -0
- package/dist/lib/workPackageList.js.map +1 -0
- package/dist/lib/workspace-probe.d.ts +28 -0
- package/dist/lib/workspace-probe.d.ts.map +1 -0
- package/dist/lib/workspace-probe.js +20 -0
- package/dist/lib/workspace-probe.js.map +1 -0
- package/dist/lib/workspaceNotice.d.ts +201 -0
- package/dist/lib/workspaceNotice.d.ts.map +1 -0
- package/dist/lib/workspaceNotice.js +346 -0
- package/dist/lib/workspaceNotice.js.map +1 -0
- package/dist/lib/workspaceVocabCache.d.ts +54 -0
- package/dist/lib/workspaceVocabCache.d.ts.map +1 -0
- package/dist/lib/workspaceVocabCache.js +92 -0
- package/dist/lib/workspaceVocabCache.js.map +1 -0
- package/dist/registerEntryCommands.d.ts +18 -0
- package/dist/registerEntryCommands.d.ts.map +1 -0
- package/dist/registerEntryCommands.js +146 -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 +43 -0
- package/dist/registerRoleCommands.js.map +1 -0
- package/dist/registerTensionsCommands.d.ts +11 -0
- package/dist/registerTensionsCommands.d.ts.map +1 -0
- package/dist/registerTensionsCommands.js +28 -0
- package/dist/registerTensionsCommands.js.map +1 -0
- package/dist/scoreboard/diagnose.d.ts +133 -0
- package/dist/scoreboard/diagnose.d.ts.map +1 -0
- package/dist/scoreboard/diagnose.js +150 -0
- package/dist/scoreboard/diagnose.js.map +1 -0
- package/dist/scoreboard/diagnose.test.d.ts +15 -0
- package/dist/scoreboard/diagnose.test.d.ts.map +1 -0
- package/dist/scoreboard/diagnose.test.js +189 -0
- package/dist/scoreboard/diagnose.test.js.map +1 -0
- package/dist/scoreboard/floors.d.ts +34 -0
- package/dist/scoreboard/floors.d.ts.map +1 -0
- package/dist/scoreboard/floors.js +11 -0
- package/dist/scoreboard/floors.js.map +1 -0
- package/dist/served-doors.test.d.ts +2 -0
- package/dist/served-doors.test.d.ts.map +1 -0
- package/dist/served-doors.test.js +169 -0
- package/dist/served-doors.test.js.map +1 -0
- package/package.json +16 -8
- package/dist/__tests__/audit.test.d.ts +0 -2
- package/dist/__tests__/audit.test.d.ts.map +0 -1
- package/dist/__tests__/audit.test.js +0 -394
- package/dist/__tests__/audit.test.js.map +0 -1
- package/dist/__tests__/handshake.test.d.ts +0 -2
- package/dist/__tests__/handshake.test.d.ts.map +0 -1
- package/dist/__tests__/handshake.test.js +0 -187
- package/dist/__tests__/handshake.test.js.map +0 -1
- package/dist/__tests__/ingest.test.d.ts +0 -2
- package/dist/__tests__/ingest.test.d.ts.map +0 -1
- package/dist/__tests__/ingest.test.js +0 -185
- package/dist/__tests__/ingest.test.js.map +0 -1
- package/dist/__tests__/promote.test.d.ts +0 -2
- package/dist/__tests__/promote.test.d.ts.map +0 -1
- package/dist/__tests__/promote.test.js +0 -139
- package/dist/__tests__/promote.test.js.map +0 -1
- package/dist/__tests__/proposals.test.d.ts +0 -2
- package/dist/__tests__/proposals.test.d.ts.map +0 -1
- package/dist/__tests__/proposals.test.js +0 -190
- package/dist/__tests__/proposals.test.js.map +0 -1
- package/dist/__tests__/repo-detect.test.d.ts +0 -2
- package/dist/__tests__/repo-detect.test.d.ts.map +0 -1
- package/dist/__tests__/repo-detect.test.js +0 -119
- package/dist/__tests__/repo-detect.test.js.map +0 -1
- package/dist/commands/accept.d.ts +0 -18
- package/dist/commands/accept.d.ts.map +0 -1
- package/dist/commands/accept.js +0 -72
- package/dist/commands/accept.js.map +0 -1
- package/dist/commands/audit.d.ts +0 -25
- package/dist/commands/audit.d.ts.map +0 -1
- package/dist/commands/audit.js +0 -188
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/brand-pack.d.ts +0 -2
- package/dist/commands/brand-pack.d.ts.map +0 -1
- package/dist/commands/brand-pack.js +0 -25
- package/dist/commands/brand-pack.js.map +0 -1
- package/dist/commands/handshake.d.ts +0 -18
- package/dist/commands/handshake.d.ts.map +0 -1
- package/dist/commands/handshake.js +0 -378
- package/dist/commands/handshake.js.map +0 -1
- package/dist/commands/ingest.d.ts +0 -14
- package/dist/commands/ingest.d.ts.map +0 -1
- package/dist/commands/ingest.js +0 -181
- package/dist/commands/ingest.js.map +0 -1
- package/dist/commands/promote.d.ts +0 -12
- package/dist/commands/promote.d.ts.map +0 -1
- package/dist/commands/promote.js +0 -48
- package/dist/commands/promote.js.map +0 -1
- package/dist/commands/proposals.d.ts +0 -9
- package/dist/commands/proposals.d.ts.map +0 -1
- package/dist/commands/proposals.js +0 -24
- package/dist/commands/proposals.js.map +0 -1
- package/dist/commands/reject.d.ts +0 -14
- package/dist/commands/reject.d.ts.map +0 -1
- package/dist/commands/reject.js +0 -37
- package/dist/commands/reject.js.map +0 -1
- package/dist/formatters/audit.d.ts +0 -46
- package/dist/formatters/audit.d.ts.map +0 -1
- package/dist/formatters/audit.js +0 -81
- package/dist/formatters/audit.js.map +0 -1
- package/dist/formatters/handshake.d.ts +0 -17
- package/dist/formatters/handshake.d.ts.map +0 -1
- package/dist/formatters/handshake.js +0 -51
- package/dist/formatters/handshake.js.map +0 -1
- package/dist/formatters/promote.d.ts +0 -29
- package/dist/formatters/promote.d.ts.map +0 -1
- package/dist/formatters/promote.js +0 -38
- package/dist/formatters/promote.js.map +0 -1
- package/dist/formatters/proposals.d.ts +0 -45
- package/dist/formatters/proposals.d.ts.map +0 -1
- package/dist/formatters/proposals.js +0 -62
- package/dist/formatters/proposals.js.map +0 -1
- package/dist/generators/adapters.d.ts +0 -10
- package/dist/generators/adapters.d.ts.map +0 -1
- package/dist/generators/adapters.js +0 -102
- package/dist/generators/adapters.js.map +0 -1
- package/dist/generators/briefing-md.d.ts +0 -8
- package/dist/generators/briefing-md.d.ts.map +0 -1
- package/dist/generators/briefing-md.js +0 -51
- package/dist/generators/briefing-md.js.map +0 -1
- package/dist/generators/context-md.d.ts +0 -8
- package/dist/generators/context-md.d.ts.map +0 -1
- package/dist/generators/context-md.js +0 -123
- package/dist/generators/context-md.js.map +0 -1
- package/dist/generators/portable-knowledge.d.ts +0 -72
- package/dist/generators/portable-knowledge.d.ts.map +0 -1
- package/dist/generators/portable-knowledge.js +0 -246
- package/dist/generators/portable-knowledge.js.map +0 -1
- package/dist/generators/portable-knowledge.test.d.ts +0 -2
- package/dist/generators/portable-knowledge.test.d.ts.map +0 -1
- package/dist/generators/portable-knowledge.test.js +0 -399
- package/dist/generators/portable-knowledge.test.js.map +0 -1
- package/dist/lib/repo-detect.d.ts +0 -14
- package/dist/lib/repo-detect.d.ts.map +0 -1
- package/dist/lib/repo-detect.js +0 -58
- package/dist/lib/repo-detect.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI setup state resolution — determines where the user is in the setup journey
|
|
3
|
+
* and what render tier to use for output.
|
|
4
|
+
*
|
|
5
|
+
* WP-325 S1: Foundation utilities consumed by S2 (index.ts) and S3 (connect.ts).
|
|
6
|
+
* No callers wired in this slice — this is the shared substrate.
|
|
7
|
+
*
|
|
8
|
+
* Stage model:
|
|
9
|
+
* unconfigured → no API key found anywhere
|
|
10
|
+
* authenticated → API key present, but workspace unreachable (offline or not yet connected)
|
|
11
|
+
* workspace-bound → key + workspace reachable, but no active session
|
|
12
|
+
* active → key + workspace + active session
|
|
13
|
+
*/
|
|
14
|
+
import { type ConfigFailureKind } from './config.js';
|
|
15
|
+
/** Four-stage setup journey from cold start to active use. */
|
|
16
|
+
export type SetupStage = 'unconfigured' | 'authenticated' | 'workspace-bound' | 'active';
|
|
17
|
+
export interface SetupState {
|
|
18
|
+
stage: SetupStage;
|
|
19
|
+
/** Human-readable list of what is still missing. Empty when stage === 'active'. */
|
|
20
|
+
missingSteps: string[];
|
|
21
|
+
/** Single most important next command to run. */
|
|
22
|
+
nextAction: string;
|
|
23
|
+
/** Workspace name — populated when workspace probe succeeds. */
|
|
24
|
+
workspaceName?: string;
|
|
25
|
+
/** Total entry count from the workspace — populated when workspace probe succeeds. */
|
|
26
|
+
entryCount?: number;
|
|
27
|
+
/** Whether a write session is currently active. */
|
|
28
|
+
sessionActive?: boolean;
|
|
29
|
+
/** Exact local-binding failure, when this is more specific than ordinary first-time setup. */
|
|
30
|
+
configurationIssue?: {
|
|
31
|
+
kind: ConfigFailureKind;
|
|
32
|
+
reason: string;
|
|
33
|
+
guidance: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** Output render tier for the current runtime context. */
|
|
37
|
+
export type RenderTier = 'json' | 'plain' | 'ink';
|
|
38
|
+
/**
|
|
39
|
+
* Determine the user's current setup stage and surface what's missing.
|
|
40
|
+
*
|
|
41
|
+
* Resolution order mirrors the config cascade (getConfigSafe → probeWorkspace → readSession).
|
|
42
|
+
* Each step is attempted only if the previous one succeeded, matching how the system
|
|
43
|
+
* actually behaves when a command runs.
|
|
44
|
+
*
|
|
45
|
+
* Network calls: probeWorkspace() makes one lightweight orient call. If the caller is in a
|
|
46
|
+
* context where network is unavailable, this returns 'authenticated' rather than throwing.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveSetupState(): Promise<SetupState>;
|
|
49
|
+
/**
|
|
50
|
+
* Determine the appropriate output rendering tier for the current process context.
|
|
51
|
+
*
|
|
52
|
+
* Priority:
|
|
53
|
+
* json → isJsonMode() is true (explicit --json flag or PB_JSON=1 env var — piping alone does
|
|
54
|
+
* NOT switch modes, WP-744 / 1e-B; formerly `!process.stdout.isTTY` alone)
|
|
55
|
+
* plain → stdout is not a TTY (but isJsonMode() was false — e.g. piped output with no --json/
|
|
56
|
+
* PB_JSON=1, or --pretty on a pipe)
|
|
57
|
+
* ink → interactive TTY, Ink React rendering is safe
|
|
58
|
+
*/
|
|
59
|
+
export declare function detectRenderTier(): RenderTier;
|
|
60
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/lib/state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASpE,8DAA8D;AAC9D,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,eAAe,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAEzF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB,mFAAmF;IACnF,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8FAA8F;IAC9F,kBAAkB,CAAC,EAAE;QACnB,IAAI,EAAE,iBAAiB,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,0DAA0D;AAC1D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAMlD;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,UAAU,CAAC,CAgD7D;AAMD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,CAI7C"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI setup state resolution — determines where the user is in the setup journey
|
|
3
|
+
* and what render tier to use for output.
|
|
4
|
+
*
|
|
5
|
+
* WP-325 S1: Foundation utilities consumed by S2 (index.ts) and S3 (connect.ts).
|
|
6
|
+
* No callers wired in this slice — this is the shared substrate.
|
|
7
|
+
*
|
|
8
|
+
* Stage model:
|
|
9
|
+
* unconfigured → no API key found anywhere
|
|
10
|
+
* authenticated → API key present, but workspace unreachable (offline or not yet connected)
|
|
11
|
+
* workspace-bound → key + workspace reachable, but no active session
|
|
12
|
+
* active → key + workspace + active session
|
|
13
|
+
*/
|
|
14
|
+
import { getConfigSafe } from './config.js';
|
|
15
|
+
import { probeWorkspace } from './workspace-probe.js';
|
|
16
|
+
import { readSession } from './session.js';
|
|
17
|
+
import { isJsonMode } from './runner.js';
|
|
18
|
+
// ---------------------------------------------------------------------------
|
|
19
|
+
// resolveSetupState
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
/**
|
|
22
|
+
* Determine the user's current setup stage and surface what's missing.
|
|
23
|
+
*
|
|
24
|
+
* Resolution order mirrors the config cascade (getConfigSafe → probeWorkspace → readSession).
|
|
25
|
+
* Each step is attempted only if the previous one succeeded, matching how the system
|
|
26
|
+
* actually behaves when a command runs.
|
|
27
|
+
*
|
|
28
|
+
* Network calls: probeWorkspace() makes one lightweight orient call. If the caller is in a
|
|
29
|
+
* context where network is unavailable, this returns 'authenticated' rather than throwing.
|
|
30
|
+
*/
|
|
31
|
+
export async function resolveSetupState() {
|
|
32
|
+
// Step 1 — is an API key configured?
|
|
33
|
+
const configResult = getConfigSafe();
|
|
34
|
+
if (!configResult.ok) {
|
|
35
|
+
return {
|
|
36
|
+
stage: 'unconfigured',
|
|
37
|
+
missingSteps: [configResult.reason],
|
|
38
|
+
nextAction: configResult.nextCommand,
|
|
39
|
+
configurationIssue: {
|
|
40
|
+
kind: configResult.kind,
|
|
41
|
+
reason: configResult.reason,
|
|
42
|
+
guidance: configResult.guidance,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
// Step 2 — can we reach the workspace?
|
|
47
|
+
const wsInfo = await probeWorkspace();
|
|
48
|
+
if (!wsInfo) {
|
|
49
|
+
return {
|
|
50
|
+
stage: 'authenticated',
|
|
51
|
+
missingSteps: ['Workspace not connected or unreachable'],
|
|
52
|
+
nextAction: 'pb connect',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
// Step 3 — is there an active write session?
|
|
56
|
+
const session = readSession();
|
|
57
|
+
if (!session) {
|
|
58
|
+
return {
|
|
59
|
+
stage: 'workspace-bound',
|
|
60
|
+
missingSteps: ['No active write session'],
|
|
61
|
+
nextAction: 'pb session start',
|
|
62
|
+
workspaceName: wsInfo.name,
|
|
63
|
+
entryCount: wsInfo.entryCount,
|
|
64
|
+
sessionActive: false,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
// All steps satisfied — fully active
|
|
68
|
+
return {
|
|
69
|
+
stage: 'active',
|
|
70
|
+
missingSteps: [],
|
|
71
|
+
nextAction: 'pb orient -b',
|
|
72
|
+
workspaceName: wsInfo.name,
|
|
73
|
+
entryCount: wsInfo.entryCount,
|
|
74
|
+
sessionActive: true,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
// ---------------------------------------------------------------------------
|
|
78
|
+
// detectRenderTier
|
|
79
|
+
// ---------------------------------------------------------------------------
|
|
80
|
+
/**
|
|
81
|
+
* Determine the appropriate output rendering tier for the current process context.
|
|
82
|
+
*
|
|
83
|
+
* Priority:
|
|
84
|
+
* json → isJsonMode() is true (explicit --json flag or PB_JSON=1 env var — piping alone does
|
|
85
|
+
* NOT switch modes, WP-744 / 1e-B; formerly `!process.stdout.isTTY` alone)
|
|
86
|
+
* plain → stdout is not a TTY (but isJsonMode() was false — e.g. piped output with no --json/
|
|
87
|
+
* PB_JSON=1, or --pretty on a pipe)
|
|
88
|
+
* ink → interactive TTY, Ink React rendering is safe
|
|
89
|
+
*/
|
|
90
|
+
export function detectRenderTier() {
|
|
91
|
+
if (isJsonMode())
|
|
92
|
+
return 'json';
|
|
93
|
+
if (!process.stdout.isTTY)
|
|
94
|
+
return 'plain';
|
|
95
|
+
return 'ink';
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/lib/state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,aAAa,EAA0B,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAgCzC,8EAA8E;AAC9E,oBAAoB;AACpB,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,qCAAqC;IACrC,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC;IACrC,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC;QACrB,OAAO;YACL,KAAK,EAAE,cAAc;YACrB,YAAY,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;YACnC,UAAU,EAAE,YAAY,CAAC,WAAW;YACpC,kBAAkB,EAAE;gBAClB,IAAI,EAAE,YAAY,CAAC,IAAI;gBACvB,MAAM,EAAE,YAAY,CAAC,MAAM;gBAC3B,QAAQ,EAAE,YAAY,CAAC,QAAQ;aAChC;SACF,CAAC;IACJ,CAAC;IAED,uCAAuC;IACvC,MAAM,MAAM,GAAG,MAAM,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;YACL,KAAK,EAAE,eAAe;YACtB,YAAY,EAAE,CAAC,wCAAwC,CAAC;YACxD,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,6CAA6C;IAC7C,MAAM,OAAO,GAAG,WAAW,EAAE,CAAC;IAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;YACL,KAAK,EAAE,iBAAiB;YACxB,YAAY,EAAE,CAAC,yBAAyB,CAAC;YACzC,UAAU,EAAE,kBAAkB;YAC9B,aAAa,EAAE,MAAM,CAAC,IAAI;YAC1B,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,aAAa,EAAE,KAAK;SACrB,CAAC;IACJ,CAAC;IAED,qCAAqC;IACrC,OAAO;QACL,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,cAAc;QAC1B,aAAa,EAAE,MAAM,CAAC,IAAI;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI;KACpB,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB;IAC9B,IAAI,UAAU,EAAE;QAAE,OAAO,MAAM,CAAC;IAChC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;QAAE,OAAO,OAAO,CAAC;IAC1C,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status category axis (T2, TASK-386, WP-779, DEC-1622 kickoff-final §5). Split out of
|
|
3
|
+
* statusStateMachine.ts (round-2 review) to keep that file under its 500-line module-health
|
|
4
|
+
* ceiling — a real split, never a comment trim; re-exported from statusStateMachine.ts so every
|
|
5
|
+
* existing import path (`kernel/entries/statusStateMachine`) keeps resolving unchanged.
|
|
6
|
+
*
|
|
7
|
+
* The kernel's four status CATEGORIES — RULE-630 step 1 adds this union beside
|
|
8
|
+
* statusStateMachine.ts's existing draft/accepted/active/deprecated/archived trust literals,
|
|
9
|
+
* removing nothing (T9a2 removes `active`/`deprecated` from the schema union only after T9a1's
|
|
10
|
+
* deploy step has emptied them fleet-wide). A category is NEVER supplied by a caller: it is
|
|
11
|
+
* looked up from the entry's collection's declared `statusList` (below) by the entry's stored
|
|
12
|
+
* `workflowStatus` LABEL. T3a (TASK-388, WP-779, DEC-1788) wired the one write door
|
|
13
|
+
* (`convex/lib/writeEntryStatus.ts`) through `resolveStatusCategory` — a writer whose
|
|
14
|
+
* destination collection declares a `statusList` now gets `current`/`past`/`discarded` written
|
|
15
|
+
* into `entries.status` alongside the label; an undeclared collection, or an unmapped label,
|
|
16
|
+
* still leaves `entries.status` holding one of the 5 legacy trust words. `entries.status` stores
|
|
17
|
+
* the category once derivable; `entries.workflowStatus` stores the label. No new column.
|
|
18
|
+
*/
|
|
19
|
+
export declare const STATUS_CATEGORIES: readonly ["draft", "current", "past", "discarded"];
|
|
20
|
+
export type StatusCategory = (typeof STATUS_CATEGORIES)[number];
|
|
21
|
+
export declare function isStatusCategory(value: string): value is StatusCategory;
|
|
22
|
+
/** The draft word, for an index range that must name it (TASK-776: the creator index); every other reader asks isDraftCategory. */
|
|
23
|
+
export declare const DRAFT_CATEGORY = "draft";
|
|
24
|
+
export declare function isDraftCategory(value: string): boolean;
|
|
25
|
+
export declare function isCurrentCategory(value: string): boolean;
|
|
26
|
+
export declare function isPastCategory(value: string): boolean;
|
|
27
|
+
export declare function isDiscardedCategory(value: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Round 1 review (P1, PR #652 threads 1 + 2): the write-compat bridge means
|
|
30
|
+
* 'accepted' and legacy 'active' are the SAME trust level, permanently — not a
|
|
31
|
+
* transitional state. Every reader that gates on "is this entry live/accepted"
|
|
32
|
+
* (orientation, authority resolution, question routing, governance-promotion
|
|
33
|
+
* gates) MUST accept both words, or a migrated/mixed workspace silently loses
|
|
34
|
+
* — or under-gates — entries depending on which literal they happen to carry.
|
|
35
|
+
* This is the ONE shared predicate; do not re-hand-roll `=== 'active'`.
|
|
36
|
+
*/
|
|
37
|
+
export declare const TRUST_ACCEPTED_WORDS: readonly ["accepted", "active", "current"];
|
|
38
|
+
export declare function isTrustAccepted(status: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* WP-664 Lane 2 S2 reduction leaf 3 — the mirror predicate on the OTHER trust-word pair: legacy
|
|
41
|
+
* 'deprecated' is the same trust level as canonical 'archived', permanently (same DEC-1571 fold
|
|
42
|
+
* as isTrustAccepted's active/accepted pairing above, just on the retired side). Every reader
|
|
43
|
+
* that means "is this entry retired" (skip a dead reference in an enumeration, exclude from a
|
|
44
|
+
* subtree/anchor recovery pass) MUST accept both words, or a not-yet-migrated 'deprecated' row
|
|
45
|
+
* silently survives a filter written only against 'archived'. This is the shared predicate for
|
|
46
|
+
* that axis — do not re-hand-roll `=== 'archived' || === 'deprecated'` (a pattern already
|
|
47
|
+
* duplicated across a dozen-plus call sites at the time this helper was added; widening those
|
|
48
|
+
* onto it is future-leaf work, not this leaf's scope).
|
|
49
|
+
*/
|
|
50
|
+
export declare const TRUST_ARCHIVED_WORDS: readonly ["archived", "deprecated", "past", "discarded"];
|
|
51
|
+
/**
|
|
52
|
+
* Every stored trust-axis literal (canonical + legacy) gets exactly one label. Lives in this zero-import copy source,
|
|
53
|
+
* not statusLabels.ts, so the CLI and MCP copies print the same word as the web for one state; statusLabels.ts
|
|
54
|
+
* re-exports it for the web. A legacy pre-fold word reads as its canonical counterpart.
|
|
55
|
+
*/
|
|
56
|
+
export declare const TRUST_STATUS_LABELS: Readonly<Record<'draft' | 'archived' | 'deprecated' | (typeof TRUST_ACCEPTED_WORDS)[number], string>>;
|
|
57
|
+
/** One row of a collection's declared, ORDERED status vocabulary — the catalog's `statusList`
|
|
58
|
+
* field (`dev-system-collections.json`), synced onto both `system_collection_definitions` and
|
|
59
|
+
* per-workspace `collections` rows. `label` is stored in `entries.workflowStatus`; `category`
|
|
60
|
+
* is what `entries.status` resolves to for that label.
|
|
61
|
+
*
|
|
62
|
+
* T4b (TASK-389, DEC-1813): `archiveDefault` marks the ONE Past-category label an archive (which
|
|
63
|
+
* never knows the specific outcome an entry ended at) writes — see `archiveLabelFor` below.
|
|
64
|
+
* Optional on the type so a category with no Past label at all stays representable;
|
|
65
|
+
* `validateStatusList` makes it mandatory in practice by refusing a Past label set with anything
|
|
66
|
+
* other than exactly one `archiveDefault`. */
|
|
67
|
+
export interface StatusListEntry {
|
|
68
|
+
label: string;
|
|
69
|
+
category: StatusCategory;
|
|
70
|
+
archiveDefault?: boolean;
|
|
71
|
+
/** TASK-490 (TEN-4160): the ONE Past label `pb entry resolve` writes (tensions: resolved, tasks: done). Optional, and only
|
|
72
|
+
* ever on a Past label; a collection with none resolves to its archiveDefault. */
|
|
73
|
+
resolveDefault?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Validates a collection's declared `statusList` (kickoff-final §5 ruling #2, round-2 review):
|
|
77
|
+
* the FIRST label is literally "draft" AND category 'draft'; exactly ONE label is category
|
|
78
|
+
* 'draft'; exactly ONE label is category 'discarded' and that label is itself literally
|
|
79
|
+
* "discarded"; every OTHER label is category 'current' or 'past'; labels are unique (case-folded
|
|
80
|
+
* — "Draft" and "draft" collide); no label is empty or whitespace-padded; DEC-1813: among the
|
|
81
|
+
* Past-category labels (if any), exactly one is marked `archiveDefault: true` — the word an
|
|
82
|
+
* archive (which never knows the specific outcome) writes. Accepts `unknown` (this is called on
|
|
83
|
+
* raw catalog JSON before it is known to be shaped) — mirrors `validateAxisContract`
|
|
84
|
+
* (convex/lib/axisContract.ts)'s defensive-input posture, not just `validateStageLabelMap`'s
|
|
85
|
+
* already-typed one. Returns every violation found; empty = valid. Pure, never throws.
|
|
86
|
+
*/
|
|
87
|
+
export declare function validateStatusList(statusList: unknown): readonly string[];
|
|
88
|
+
/** Looks up a label's category from a collection's declared statusList. Never throws — an
|
|
89
|
+
* unmapped label (statusList absent, or the label isn't declared) resolves to `undefined` so
|
|
90
|
+
* the caller (the one write door, `convex/lib/writeEntryStatus.ts`) decides whether that is a
|
|
91
|
+
* hard failure — this module stays neutral, same posture as `resolveProgress`
|
|
92
|
+
* (statusStateMachine.ts) does for the progress axis. */
|
|
93
|
+
export declare function resolveStatusCategory(label: string, statusList: readonly StatusListEntry[] | undefined): StatusCategory | undefined;
|
|
94
|
+
/** A category's trust-LEVEL equivalent — draft/current/past/discarded, projected onto the
|
|
95
|
+
* three-level axis kernel/entries/statusStateMachine.ts's TRUST_TRANSITIONS speaks
|
|
96
|
+
* (`'draft' | 'current' | 'archived'`). TASK-587 (WP-779, TEN-4295): the live level is `current`,
|
|
97
|
+
* the word every accept door stores, never the retired `accepted`. */
|
|
98
|
+
export type CategoryTrustLevel = 'draft' | 'current' | 'archived';
|
|
99
|
+
export declare const CATEGORY_TRUST_LEVEL: Record<StatusCategory, CategoryTrustLevel>;
|
|
100
|
+
/** T3b (TASK-388, WP-779, DEC-1788): the ONE derivation, shared by every writer that turns a
|
|
101
|
+
* `workflowStatus` label into a `status` category — the patch door (`writeEntryStatus.ts`) and
|
|
102
|
+
* a future create path both call this instead of each re-implementing the
|
|
103
|
+
* `resolveStatusCategory` + trust-level lookup pair. Pure: no `ctx.db`, no guard, no write —
|
|
104
|
+
* callers run their OWN guards (creation has its own; writeEntryStatus.ts's guard block is
|
|
105
|
+
* unchanged) against the `trustWord` this returns, exactly as they would a caller-supplied
|
|
106
|
+
* trust word. `undefined` covers two cases identically (no derivation to report): an undeclared
|
|
107
|
+
* statusList, and a declared statusList whose label isn't listed. TASK-389/DEC-1789 governs when
|
|
108
|
+
* the second case becomes a hard failure at the write door. */
|
|
109
|
+
export declare function deriveStatusPair(collection: {
|
|
110
|
+
statusList?: readonly StatusListEntry[];
|
|
111
|
+
} | null | undefined, workflowStatus: string | undefined): {
|
|
112
|
+
category: StatusCategory;
|
|
113
|
+
trustWord: CategoryTrustLevel;
|
|
114
|
+
} | undefined;
|
|
115
|
+
/** T3b round-2 review: the ONE reconciliation both writeEntryStatus.ts and _patchEntry run
|
|
116
|
+
* against `deriveStatusPair`'s result — never throws (this module stays Convex-free, same
|
|
117
|
+
* posture as `validateStatusList`); the caller turns `disagreementError` into its own
|
|
118
|
+
* VALIDATION_FAILED. `explicitTrustWord` is the caller's OWN status, already canonicalized to
|
|
119
|
+
* a trust word (or `null` for an unrecognized word, or `undefined` when no status was
|
|
120
|
+
* supplied at all) — the caller resolves that BEFORE calling, since canonicalWriteTarget lives
|
|
121
|
+
* in statusStateMachine.ts, not here (no import cycle: this file is re-exported THROUGH that
|
|
122
|
+
* one). `derivedPair` is undefined for both cases `deriveStatusPair` already covers. */
|
|
123
|
+
export declare function reconcileStatusDerivation(explicitTrustWord: CategoryTrustLevel | null | undefined, workflowStatus: string | undefined, collection: {
|
|
124
|
+
statusList?: readonly StatusListEntry[];
|
|
125
|
+
} | null | undefined): {
|
|
126
|
+
derivedPair: {
|
|
127
|
+
category: StatusCategory;
|
|
128
|
+
trustWord: CategoryTrustLevel;
|
|
129
|
+
} | undefined;
|
|
130
|
+
disagreementError: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* DEC-1813/DEC-1814 (T4b, TASK-389, TASK-466): `archiveLabelFor` turns an archive CATEGORY into the
|
|
134
|
+
* status WORD to write. There is no archive reason: the category is decided by the caller alone
|
|
135
|
+
* (a draft archives to Discarded, anything else to Past, or a door passes 'discarded' explicitly)
|
|
136
|
+
* and the word carries only that category. Production callers (`rg -n "archiveLabelFor\(" convex`):
|
|
137
|
+
* `convex/agentKnowledge/archiveEntry.ts` (the Rail delete door) calls it directly, and
|
|
138
|
+
* `convex/lib/archiveWorkflowStatus.ts` calls it through `resolveArchiveWorkflowStatusOrThrow`, the one
|
|
139
|
+
* resolver updateEntry's archive door, the supersede, glossary-merge and deprecate doors and the
|
|
140
|
+
* hygiene sweep all use. Both land on the identical word for the same category.
|
|
141
|
+
*
|
|
142
|
+
* Discarded always writes the literal 'discarded' (every statusList declares it,
|
|
143
|
+
* `validateStatusList`'s own rule) REGARDLESS of whether a statusList is even declared; Past writes
|
|
144
|
+
* the collection's one `archiveDefault` Past label, or `undefined` when the collection has no
|
|
145
|
+
* statusList at all, or (should `validateStatusList` ever have been skipped) no Past label is marked
|
|
146
|
+
* `archiveDefault` — the caller decides whether that `undefined` is a hard failure, this module
|
|
147
|
+
* stays neutral, same posture as `resolveStatusCategory`.
|
|
148
|
+
*/
|
|
149
|
+
/** DEC-1813: the ONE label a CATEGORY of archive writes.
|
|
150
|
+
* 'discarded' always writes the literal 'discarded' (every statusList declares it,
|
|
151
|
+
* `validateStatusList`'s own rule); 'past' writes the collection's one `archiveDefault` Past
|
|
152
|
+
* label, or `undefined` when none is marked (`validateStatusList` refuses a list without exactly
|
|
153
|
+
* one, but an older, pre-validation row can still lack it). */
|
|
154
|
+
export declare function archiveLabelFor(statusList: readonly StatusListEntry[] | undefined, category: Extract<StatusCategory, 'past' | 'discarded'>): string | undefined;
|
|
155
|
+
export declare const ENTRY_STATUS_READ_WORDS: readonly ["draft", "accepted", "active", "current", "archived", "deprecated", "past", "discarded"];
|
|
156
|
+
export declare const ENTRY_STATUS_WRITE_WORDS: readonly ["draft", "archived"];
|
|
157
|
+
/** Display-word fold for a stored `entries.status`/lifecycle value: legacy `active` displays as
|
|
158
|
+
* the canonical `accepted` word (DEC-1575 — the two are the same trust level), so the CLI never
|
|
159
|
+
* shows a fresh accept and a legacy row under different labels. F2 (PR review, kickoff-final
|
|
160
|
+
* §5): `current` is a CATEGORY, not the same thing as the `accepted` LABEL one collection's own
|
|
161
|
+
* `statusList` happens to use for its live state — `pb get`/formatters/entry.ts shows the raw
|
|
162
|
+
* stored word ("Status: current"), so folding `current` here would make `search` disagree with
|
|
163
|
+
* `get` for the exact same entry. Every value besides legacy `active` (including `accepted`
|
|
164
|
+
* itself and the category words `current`/`past`/`discarded`) displays as-is. Deliberately NOT
|
|
165
|
+
* a `deprecated`→`archived` fold, which would collapse two genuinely distinct stored values into
|
|
166
|
+
* one shown word, which a display column must not do. */
|
|
167
|
+
export declare function displayEntryStatus(status: string): string;
|
|
168
|
+
//# sourceMappingURL=statusCategories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusCategories.d.ts","sourceRoot":"","sources":["../../src/lib/statusCategories.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,oDAAqD,CAAC;AAEpF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAIhE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEvE;AAED,mIAAmI;AACnI,eAAO,MAAM,cAAc,UAAmC,CAAC;AAC/D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAqC;AAC5F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAgC;AACzF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAA6B;AACnF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAkC;AAU7F;;;;;;;;GAQG;AASH,eAAO,MAAM,oBAAoB,4CAA6C,CAAC;AAE/E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;;;;;;;;GAUG;AASH,eAAO,MAAM,oBAAoB,0DAA2D,CAAC;AAE7F;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAOrI,CAAC;AAEF;;;;;;;;;+CAS+C;AAC/C,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;uFACmF;IACnF,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CA+EzE;AAED;;;;0DAI0D;AAC1D,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,GAChD,cAAc,GAAG,SAAS,CAE5B;AAED;;;uEAGuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAElE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAE3E,CAAC;AAEF;;;;;;;;gEAQgE;AAChE,wBAAgB,gBAAgB,CAC/B,UAAU,EAAE;IAAE,UAAU,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAC1E,cAAc,EAAE,MAAM,GAAG,SAAS,GAChC;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,SAAS,EAAE,kBAAkB,CAAA;CAAE,GAAG,SAAS,CAKzE;AAED;;;;;;;yFAOyF;AACzF,wBAAgB,yBAAyB,CACxC,iBAAiB,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,EACxD,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,UAAU,EAAE;IAAE,UAAU,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACxE;IAAE,WAAW,EAAE;QAAE,QAAQ,EAAE,cAAc,CAAC;QAAC,SAAS,EAAE,kBAAkB,CAAA;KAAE,GAAG,SAAS,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAOjI;AAED;;;;;;;;;;;;;;;;GAgBG;AACH;;;;gEAIgE;AAChE,wBAAgB,eAAe,CAC9B,UAAU,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,EAClD,QAAQ,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,WAAW,CAAC,GACrD,MAAM,GAAG,SAAS,CAGpB;AAyBD,eAAO,MAAM,uBAAuB,oGAAuE,CAAC;AAC5G,eAAO,MAAM,wBAAwB,gCAAiC,CAAC;AAEvE;;;;;;;;;0DAS0D;AAC1D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
// GENERATED by scripts/generate-mcp-embedded-copies.mjs from kernel/entries/statusCategories.ts.
|
|
2
|
+
// DO NOT EDIT. Run `npm run mcp:embedded-copies` to regenerate.
|
|
3
|
+
// Local runtime copy for the isolated connector build.
|
|
4
|
+
/**
|
|
5
|
+
* Status category axis (T2, TASK-386, WP-779, DEC-1622 kickoff-final §5). Split out of
|
|
6
|
+
* statusStateMachine.ts (round-2 review) to keep that file under its 500-line module-health
|
|
7
|
+
* ceiling — a real split, never a comment trim; re-exported from statusStateMachine.ts so every
|
|
8
|
+
* existing import path (`kernel/entries/statusStateMachine`) keeps resolving unchanged.
|
|
9
|
+
*
|
|
10
|
+
* The kernel's four status CATEGORIES — RULE-630 step 1 adds this union beside
|
|
11
|
+
* statusStateMachine.ts's existing draft/accepted/active/deprecated/archived trust literals,
|
|
12
|
+
* removing nothing (T9a2 removes `active`/`deprecated` from the schema union only after T9a1's
|
|
13
|
+
* deploy step has emptied them fleet-wide). A category is NEVER supplied by a caller: it is
|
|
14
|
+
* looked up from the entry's collection's declared `statusList` (below) by the entry's stored
|
|
15
|
+
* `workflowStatus` LABEL. T3a (TASK-388, WP-779, DEC-1788) wired the one write door
|
|
16
|
+
* (`convex/lib/writeEntryStatus.ts`) through `resolveStatusCategory` — a writer whose
|
|
17
|
+
* destination collection declares a `statusList` now gets `current`/`past`/`discarded` written
|
|
18
|
+
* into `entries.status` alongside the label; an undeclared collection, or an unmapped label,
|
|
19
|
+
* still leaves `entries.status` holding one of the 5 legacy trust words. `entries.status` stores
|
|
20
|
+
* the category once derivable; `entries.workflowStatus` stores the label. No new column.
|
|
21
|
+
*/
|
|
22
|
+
export const STATUS_CATEGORIES = ['draft', 'current', 'past', 'discarded'];
|
|
23
|
+
const STATUS_CATEGORY_SET = new Set(STATUS_CATEGORIES);
|
|
24
|
+
export function isStatusCategory(value) {
|
|
25
|
+
return STATUS_CATEGORY_SET.has(value);
|
|
26
|
+
}
|
|
27
|
+
/** The draft word, for an index range that must name it (TASK-776: the creator index); every other reader asks isDraftCategory. */
|
|
28
|
+
export const DRAFT_CATEGORY = 'draft';
|
|
29
|
+
export function isDraftCategory(value) { return value === DRAFT_CATEGORY; }
|
|
30
|
+
export function isCurrentCategory(value) { return value === 'current'; }
|
|
31
|
+
export function isPastCategory(value) { return value === 'past'; }
|
|
32
|
+
export function isDiscardedCategory(value) { return value === 'discarded'; }
|
|
33
|
+
// ─── Trust-word axis (F1, PR review, TASK-393, WP-779) ─────────────────────────────────────────
|
|
34
|
+
// Moved from statusStateMachine.ts, which imports both arrays + isTrustAccepted back and
|
|
35
|
+
// re-exports them unchanged (`export * from './statusCategories'`) — every existing
|
|
36
|
+
// `from '.../statusStateMachine'` importer keeps resolving. Moved here (not left in place)
|
|
37
|
+
// because this is the connector-copy source (T2) and every existing generated-copy target is
|
|
38
|
+
// dependency-free (see e.g. spineVerdictRead.ts's header) — statusStateMachine.ts imports
|
|
39
|
+
// `./patchFieldPolicy` for one unrelated function, so it can't be the copy source itself.
|
|
40
|
+
/**
|
|
41
|
+
* Round 1 review (P1, PR #652 threads 1 + 2): the write-compat bridge means
|
|
42
|
+
* 'accepted' and legacy 'active' are the SAME trust level, permanently — not a
|
|
43
|
+
* transitional state. Every reader that gates on "is this entry live/accepted"
|
|
44
|
+
* (orientation, authority resolution, question routing, governance-promotion
|
|
45
|
+
* gates) MUST accept both words, or a migrated/mixed workspace silently loses
|
|
46
|
+
* — or under-gates — entries depending on which literal they happen to carry.
|
|
47
|
+
* This is the ONE shared predicate; do not re-hand-roll `=== 'active'`.
|
|
48
|
+
*/
|
|
49
|
+
// WP-735 S5 review round (Codex P1, "Derive live-status filtering from the canonical helper"):
|
|
50
|
+
// a DB-level pre-filter (Convex .filter() takes literal q.eq comparisons, never an arbitrary JS
|
|
51
|
+
// predicate) needs the actual words, not just isTrustAccepted's boolean — exporting them here
|
|
52
|
+
// keeps every such pre-filter derived from the SAME list this predicate reads, instead of a
|
|
53
|
+
// second hand-typed literal pair that could silently drift if a future trust-word is added.
|
|
54
|
+
// T3a (TASK-388, WP-779, DEC-1788): 'current' joins the pair once writeEntryStatus.ts derives it
|
|
55
|
+
// into `status` for a collection with a declared statusList — the category axis's "live" word is
|
|
56
|
+
// the SAME trust level as 'accepted'/'active', not a fourth thing a reader must learn separately.
|
|
57
|
+
export const TRUST_ACCEPTED_WORDS = ['accepted', 'active', 'current'];
|
|
58
|
+
export function isTrustAccepted(status) {
|
|
59
|
+
return TRUST_ACCEPTED_WORDS.includes(status);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* WP-664 Lane 2 S2 reduction leaf 3 — the mirror predicate on the OTHER trust-word pair: legacy
|
|
63
|
+
* 'deprecated' is the same trust level as canonical 'archived', permanently (same DEC-1571 fold
|
|
64
|
+
* as isTrustAccepted's active/accepted pairing above, just on the retired side). Every reader
|
|
65
|
+
* that means "is this entry retired" (skip a dead reference in an enumeration, exclude from a
|
|
66
|
+
* subtree/anchor recovery pass) MUST accept both words, or a not-yet-migrated 'deprecated' row
|
|
67
|
+
* silently survives a filter written only against 'archived'. This is the shared predicate for
|
|
68
|
+
* that axis — do not re-hand-roll `=== 'archived' || === 'deprecated'` (a pattern already
|
|
69
|
+
* duplicated across a dozen-plus call sites at the time this helper was added; widening those
|
|
70
|
+
* onto it is future-leaf work, not this leaf's scope).
|
|
71
|
+
*/
|
|
72
|
+
// T3a (TASK-388, WP-779, DEC-1788): 'past' and 'discarded' join the pair — the category axis's
|
|
73
|
+
// two retired words are the SAME trust level as 'archived'/'deprecated', same reasoning as
|
|
74
|
+
// TRUST_ACCEPTED_WORDS's 'current' addition above.
|
|
75
|
+
// T4a1 (TASK-387, WP-779): exported as an array too, mirroring TRUST_ACCEPTED_WORDS — a DB-level
|
|
76
|
+
// pre-filter or an aggregate-bounds reader on the archived side needs the actual words, not just
|
|
77
|
+
// isTrustArchived's boolean, and this is the ONE list both derive from (never a second hand-typed
|
|
78
|
+
// four-word literal). `isTrustArchived` itself now reads this array instead of an inline literal
|
|
79
|
+
// chain — one list, not two copies that could silently drift.
|
|
80
|
+
export const TRUST_ARCHIVED_WORDS = ['archived', 'deprecated', 'past', 'discarded'];
|
|
81
|
+
/**
|
|
82
|
+
* Every stored trust-axis literal (canonical + legacy) gets exactly one label. Lives in this zero-import copy source,
|
|
83
|
+
* not statusLabels.ts, so the CLI and MCP copies print the same word as the web for one state; statusLabels.ts
|
|
84
|
+
* re-exports it for the web. A legacy pre-fold word reads as its canonical counterpart.
|
|
85
|
+
*/
|
|
86
|
+
export const TRUST_STATUS_LABELS = {
|
|
87
|
+
draft: 'Draft',
|
|
88
|
+
current: 'Current', // the live word every accept now stores
|
|
89
|
+
accepted: 'Accepted',
|
|
90
|
+
archived: 'Archived',
|
|
91
|
+
active: 'Accepted',
|
|
92
|
+
deprecated: 'Archived',
|
|
93
|
+
};
|
|
94
|
+
function isPlainStatusListEntry(value) {
|
|
95
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Validates a collection's declared `statusList` (kickoff-final §5 ruling #2, round-2 review):
|
|
99
|
+
* the FIRST label is literally "draft" AND category 'draft'; exactly ONE label is category
|
|
100
|
+
* 'draft'; exactly ONE label is category 'discarded' and that label is itself literally
|
|
101
|
+
* "discarded"; every OTHER label is category 'current' or 'past'; labels are unique (case-folded
|
|
102
|
+
* — "Draft" and "draft" collide); no label is empty or whitespace-padded; DEC-1813: among the
|
|
103
|
+
* Past-category labels (if any), exactly one is marked `archiveDefault: true` — the word an
|
|
104
|
+
* archive (which never knows the specific outcome) writes. Accepts `unknown` (this is called on
|
|
105
|
+
* raw catalog JSON before it is known to be shaped) — mirrors `validateAxisContract`
|
|
106
|
+
* (convex/lib/axisContract.ts)'s defensive-input posture, not just `validateStageLabelMap`'s
|
|
107
|
+
* already-typed one. Returns every violation found; empty = valid. Pure, never throws.
|
|
108
|
+
*/
|
|
109
|
+
export function validateStatusList(statusList) {
|
|
110
|
+
if (!Array.isArray(statusList)) {
|
|
111
|
+
return ['statusList must be an array.'];
|
|
112
|
+
}
|
|
113
|
+
if (statusList.length === 0) {
|
|
114
|
+
return ['statusList must declare at least one label.'];
|
|
115
|
+
}
|
|
116
|
+
const shapeErrors = [];
|
|
117
|
+
const entries = [];
|
|
118
|
+
for (const raw of statusList) {
|
|
119
|
+
if (!isPlainStatusListEntry(raw) || typeof raw.label !== 'string' || typeof raw.category !== 'string') {
|
|
120
|
+
shapeErrors.push(`every statusList entry must be an object with a string "label" and a string "category", got ${JSON.stringify(raw)}.`);
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
entries.push({ label: raw.label, category: raw.category, archiveDefault: raw.archiveDefault === true, resolveDefault: raw.resolveDefault === true });
|
|
124
|
+
}
|
|
125
|
+
if (shapeErrors.length > 0)
|
|
126
|
+
return shapeErrors; // can't meaningfully check the rules below on malformed entries
|
|
127
|
+
const errors = [];
|
|
128
|
+
for (const entry of entries) {
|
|
129
|
+
if (entry.label.length === 0 || entry.label.trim() !== entry.label) {
|
|
130
|
+
errors.push(`label "${entry.label}" is empty or whitespace-padded — labels must be non-empty and trimmed.`);
|
|
131
|
+
}
|
|
132
|
+
if (!isStatusCategory(entry.category)) {
|
|
133
|
+
errors.push(`label "${entry.label}" declares category "${entry.category}", which is not one of the four kernel categories (${STATUS_CATEGORIES.join('|')}).`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (entries[0].label !== 'draft') {
|
|
137
|
+
errors.push(`statusList[0] must be literally labeled "draft", found "${entries[0].label}".`);
|
|
138
|
+
}
|
|
139
|
+
if (entries[0].category !== 'draft') {
|
|
140
|
+
errors.push(`statusList[0] ("${entries[0].label}") must be category 'draft' — the first declared label is always the collection's draft state.`);
|
|
141
|
+
}
|
|
142
|
+
const draftCount = entries.filter((e) => e.category === 'draft').length;
|
|
143
|
+
if (draftCount !== 1) {
|
|
144
|
+
errors.push(`statusList must declare exactly one 'draft' category label, found ${draftCount}.`);
|
|
145
|
+
}
|
|
146
|
+
const discarded = entries.filter((e) => e.category === 'discarded');
|
|
147
|
+
if (discarded.length !== 1) {
|
|
148
|
+
errors.push(`statusList must declare exactly one 'discarded' category label, found ${discarded.length}.`);
|
|
149
|
+
}
|
|
150
|
+
else if (discarded[0].label !== 'discarded') {
|
|
151
|
+
errors.push(`the 'discarded' category label must itself be named "discarded", found "${discarded[0].label}".`);
|
|
152
|
+
}
|
|
153
|
+
// DEC-1813: among the Past-category labels (if this collection declares any), exactly one must
|
|
154
|
+
// be the archive default — the word `archiveLabelFor` writes for an archive, which never knows
|
|
155
|
+
// the specific outcome (done/achieved/answered/etc. are written only by the verb that knows it).
|
|
156
|
+
const pastLabels = entries.filter((e) => e.category === 'past');
|
|
157
|
+
const pastArchiveDefaults = pastLabels.filter((e) => e.archiveDefault === true);
|
|
158
|
+
if (pastLabels.length > 0 && pastArchiveDefaults.length !== 1) {
|
|
159
|
+
errors.push(`statusList must mark exactly one Past-category label archiveDefault: true, found ${pastArchiveDefaults.length} among ${pastLabels.length} Past label(s).`);
|
|
160
|
+
}
|
|
161
|
+
// archiveDefault only ever means anything on a Past-category label (archiveLabelFor never reads
|
|
162
|
+
// it on any other category) — a non-Past label marked true would advertise (and
|
|
163
|
+
// describeCollection would render) two "archive defaults" while archiveLabelFor only ever
|
|
164
|
+
// honors the Past one. Reject the non-Past marker outright rather than let the stored contract
|
|
165
|
+
// and the advertised vocabulary disagree.
|
|
166
|
+
for (const entry of entries) {
|
|
167
|
+
if (entry.category !== 'past' && entry.archiveDefault === true) {
|
|
168
|
+
errors.push(`label "${entry.label}" (category "${entry.category}") declares archiveDefault: true — archiveDefault is only meaningful on a Past-category label.`);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
// TASK-490: resolveDefault is optional, only on a Past label, at most one, and never the archiveDefault itself.
|
|
172
|
+
const resolveDefaults = entries.filter((e) => e.resolveDefault === true);
|
|
173
|
+
if (resolveDefaults.length > 1)
|
|
174
|
+
errors.push(`statusList may mark at most one label resolveDefault: true, found ${resolveDefaults.length}.`);
|
|
175
|
+
for (const entry of resolveDefaults) {
|
|
176
|
+
if (entry.category !== 'past' || entry.archiveDefault === true)
|
|
177
|
+
errors.push(`label "${entry.label}" declares resolveDefault: true — it is only meaningful on a Past-category label that is not the archiveDefault.`);
|
|
178
|
+
}
|
|
179
|
+
const seen = new Set();
|
|
180
|
+
for (const entry of entries) {
|
|
181
|
+
const key = entry.label.toLowerCase();
|
|
182
|
+
if (seen.has(key)) {
|
|
183
|
+
errors.push(`label "${entry.label}" collides with another label after case-folding — statusList labels must be unique regardless of case.`);
|
|
184
|
+
}
|
|
185
|
+
seen.add(key);
|
|
186
|
+
}
|
|
187
|
+
return errors;
|
|
188
|
+
}
|
|
189
|
+
/** Looks up a label's category from a collection's declared statusList. Never throws — an
|
|
190
|
+
* unmapped label (statusList absent, or the label isn't declared) resolves to `undefined` so
|
|
191
|
+
* the caller (the one write door, `convex/lib/writeEntryStatus.ts`) decides whether that is a
|
|
192
|
+
* hard failure — this module stays neutral, same posture as `resolveProgress`
|
|
193
|
+
* (statusStateMachine.ts) does for the progress axis. */
|
|
194
|
+
export function resolveStatusCategory(label, statusList) {
|
|
195
|
+
return statusList?.find((e) => e.label === label)?.category;
|
|
196
|
+
}
|
|
197
|
+
export const CATEGORY_TRUST_LEVEL = {
|
|
198
|
+
draft: 'draft', current: 'current', past: 'archived', discarded: 'archived',
|
|
199
|
+
};
|
|
200
|
+
/** T3b (TASK-388, WP-779, DEC-1788): the ONE derivation, shared by every writer that turns a
|
|
201
|
+
* `workflowStatus` label into a `status` category — the patch door (`writeEntryStatus.ts`) and
|
|
202
|
+
* a future create path both call this instead of each re-implementing the
|
|
203
|
+
* `resolveStatusCategory` + trust-level lookup pair. Pure: no `ctx.db`, no guard, no write —
|
|
204
|
+
* callers run their OWN guards (creation has its own; writeEntryStatus.ts's guard block is
|
|
205
|
+
* unchanged) against the `trustWord` this returns, exactly as they would a caller-supplied
|
|
206
|
+
* trust word. `undefined` covers two cases identically (no derivation to report): an undeclared
|
|
207
|
+
* statusList, and a declared statusList whose label isn't listed. TASK-389/DEC-1789 governs when
|
|
208
|
+
* the second case becomes a hard failure at the write door. */
|
|
209
|
+
export function deriveStatusPair(collection, workflowStatus) {
|
|
210
|
+
if (typeof workflowStatus !== 'string' || collection?.statusList === undefined)
|
|
211
|
+
return undefined;
|
|
212
|
+
const category = resolveStatusCategory(workflowStatus, collection.statusList);
|
|
213
|
+
if (category === undefined)
|
|
214
|
+
return undefined;
|
|
215
|
+
return { category, trustWord: CATEGORY_TRUST_LEVEL[category] };
|
|
216
|
+
}
|
|
217
|
+
/** T3b round-2 review: the ONE reconciliation both writeEntryStatus.ts and _patchEntry run
|
|
218
|
+
* against `deriveStatusPair`'s result — never throws (this module stays Convex-free, same
|
|
219
|
+
* posture as `validateStatusList`); the caller turns `disagreementError` into its own
|
|
220
|
+
* VALIDATION_FAILED. `explicitTrustWord` is the caller's OWN status, already canonicalized to
|
|
221
|
+
* a trust word (or `null` for an unrecognized word, or `undefined` when no status was
|
|
222
|
+
* supplied at all) — the caller resolves that BEFORE calling, since canonicalWriteTarget lives
|
|
223
|
+
* in statusStateMachine.ts, not here (no import cycle: this file is re-exported THROUGH that
|
|
224
|
+
* one). `derivedPair` is undefined for both cases `deriveStatusPair` already covers. */
|
|
225
|
+
export function reconcileStatusDerivation(explicitTrustWord, workflowStatus, collection) {
|
|
226
|
+
const derivedPair = deriveStatusPair(collection, workflowStatus);
|
|
227
|
+
if (derivedPair === undefined)
|
|
228
|
+
return { derivedPair: undefined, disagreementError: undefined };
|
|
229
|
+
if (explicitTrustWord != null && explicitTrustWord !== derivedPair.trustWord) {
|
|
230
|
+
return { derivedPair, disagreementError: `expected trust level "${derivedPair.trustWord}" (category "${derivedPair.category}"), got "${explicitTrustWord}"` };
|
|
231
|
+
}
|
|
232
|
+
return { derivedPair, disagreementError: undefined };
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* DEC-1813/DEC-1814 (T4b, TASK-389, TASK-466): `archiveLabelFor` turns an archive CATEGORY into the
|
|
236
|
+
* status WORD to write. There is no archive reason: the category is decided by the caller alone
|
|
237
|
+
* (a draft archives to Discarded, anything else to Past, or a door passes 'discarded' explicitly)
|
|
238
|
+
* and the word carries only that category. Production callers (`rg -n "archiveLabelFor\(" convex`):
|
|
239
|
+
* `convex/agentKnowledge/archiveEntry.ts` (the Rail delete door) calls it directly, and
|
|
240
|
+
* `convex/lib/archiveWorkflowStatus.ts` calls it through `resolveArchiveWorkflowStatusOrThrow`, the one
|
|
241
|
+
* resolver updateEntry's archive door, the supersede, glossary-merge and deprecate doors and the
|
|
242
|
+
* hygiene sweep all use. Both land on the identical word for the same category.
|
|
243
|
+
*
|
|
244
|
+
* Discarded always writes the literal 'discarded' (every statusList declares it,
|
|
245
|
+
* `validateStatusList`'s own rule) REGARDLESS of whether a statusList is even declared; Past writes
|
|
246
|
+
* the collection's one `archiveDefault` Past label, or `undefined` when the collection has no
|
|
247
|
+
* statusList at all, or (should `validateStatusList` ever have been skipped) no Past label is marked
|
|
248
|
+
* `archiveDefault` — the caller decides whether that `undefined` is a hard failure, this module
|
|
249
|
+
* stays neutral, same posture as `resolveStatusCategory`.
|
|
250
|
+
*/
|
|
251
|
+
/** DEC-1813: the ONE label a CATEGORY of archive writes.
|
|
252
|
+
* 'discarded' always writes the literal 'discarded' (every statusList declares it,
|
|
253
|
+
* `validateStatusList`'s own rule); 'past' writes the collection's one `archiveDefault` Past
|
|
254
|
+
* label, or `undefined` when none is marked (`validateStatusList` refuses a list without exactly
|
|
255
|
+
* one, but an older, pre-validation row can still lack it). */
|
|
256
|
+
export function archiveLabelFor(statusList, category) {
|
|
257
|
+
if (category === 'discarded')
|
|
258
|
+
return 'discarded';
|
|
259
|
+
return statusList?.find((e) => e.category === 'past' && e.archiveDefault === true)?.label;
|
|
260
|
+
}
|
|
261
|
+
// ─── Connector-facing entries.status vocabulary (T8, TASK-393, WP-779) ────────────────────────
|
|
262
|
+
//
|
|
263
|
+
// The isolated CLI/MCP connector builds cannot import `kernel/` live (same Railway/standalone-
|
|
264
|
+
// package isolation `scripts/generate-mcp-embedded-copies.mjs`'s header documents for
|
|
265
|
+
// flags_core.ts/logo-markup.ts) — this file is their generated-copy source for the status
|
|
266
|
+
// vocabulary instead of each connector hand-typing its own word list, which had already
|
|
267
|
+
// drifted: `entriesContract.ts`'s filter enum, `knowledge.ts`'s `updateEntrySchema.status` enum
|
|
268
|
+
// and `LifecycleStatus` type, and the CLI's `formatters/search.ts` display fold each hard-coded
|
|
269
|
+
// the pre-T2 5-word trust set (`draft|active|accepted|deprecated|archived`) and would silently
|
|
270
|
+
// reject or mis-render an entry once T3a/T3b (DEC-1788, already merged) start deriving
|
|
271
|
+
// `current`/`past`/`discarded` onto entries whose collection declares a `statusList`.
|
|
272
|
+
//
|
|
273
|
+
// F1 (PR review): DERIVED from TRUST_ACCEPTED_WORDS/TRUST_ARCHIVED_WORDS above, not a third,
|
|
274
|
+
// independently-typed list — a real ratchet against the exact drift this slice exists to close.
|
|
275
|
+
//
|
|
276
|
+
// Two lists, not one: a READ (list/search filter) must still recognize the two pre-fold legacy
|
|
277
|
+
// trust words on a not-yet-migrated row (DEC-1575) — it only ever widens. A WRITE
|
|
278
|
+
// (`pb update --status` / MCP `entries` action=update) must not advertise `active`/`deprecated`
|
|
279
|
+
// as fresh input: `writeEntryStatus.ts`'s `canonicalWriteTarget` write-compat bridge exists for
|
|
280
|
+
// pre-existing internal callers, not for a caller typing a legacy word today. `accepted` is
|
|
281
|
+
// deliberately absent from the write set — unchanged pre-existing policy (`commit` is the accept
|
|
282
|
+
// path, never `update`; the MCP `updateEntrySchema` comment already said so before this file
|
|
283
|
+
// generated it).
|
|
284
|
+
export const ENTRY_STATUS_READ_WORDS = ['draft', ...TRUST_ACCEPTED_WORDS, ...TRUST_ARCHIVED_WORDS];
|
|
285
|
+
export const ENTRY_STATUS_WRITE_WORDS = ['draft', 'archived'];
|
|
286
|
+
/** Display-word fold for a stored `entries.status`/lifecycle value: legacy `active` displays as
|
|
287
|
+
* the canonical `accepted` word (DEC-1575 — the two are the same trust level), so the CLI never
|
|
288
|
+
* shows a fresh accept and a legacy row under different labels. F2 (PR review, kickoff-final
|
|
289
|
+
* §5): `current` is a CATEGORY, not the same thing as the `accepted` LABEL one collection's own
|
|
290
|
+
* `statusList` happens to use for its live state — `pb get`/formatters/entry.ts shows the raw
|
|
291
|
+
* stored word ("Status: current"), so folding `current` here would make `search` disagree with
|
|
292
|
+
* `get` for the exact same entry. Every value besides legacy `active` (including `accepted`
|
|
293
|
+
* itself and the category words `current`/`past`/`discarded`) displays as-is. Deliberately NOT
|
|
294
|
+
* a `deprecated`→`archived` fold, which would collapse two genuinely distinct stored values into
|
|
295
|
+
* one shown word, which a display column must not do. */
|
|
296
|
+
export function displayEntryStatus(status) {
|
|
297
|
+
return status === 'active' ? 'accepted' : status;
|
|
298
|
+
}
|
|
299
|
+
//# sourceMappingURL=statusCategories.js.map
|