@openrig/cli 0.7.17 → 0.7.19
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 +7 -6
- package/daemon/assets/claude-hook-bridge.cjs +146 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +6 -0
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/assets/skills/rigs/SKILL.md +68 -33
- package/daemon/assets/skills/rigs/references/installing-for-someone.md +2 -2
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +57 -14
- package/daemon/context-packs/reference/getting-started.md +9 -4
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +197 -1
- package/daemon/context-packs/reference/whats-new.md +187 -15
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/SKILL.md +11 -0
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +95 -7
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +9 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +57 -9
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +4 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +15 -5
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +8 -1
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +45 -10
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +5 -7
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +47 -0
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +84 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +799 -16
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
- package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
- package/daemon/dist/adapters/tmux-credential-env.js +14 -0
- package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +4 -3
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +2 -2
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +12 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +242 -14
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +966 -34
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +4 -1
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +14 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
- package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
- package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
- package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
- package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
- package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
- package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
- package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
- package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +8 -4
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +59 -1
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +250 -4
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
- package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
- package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
- package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
- package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
- package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
- package/daemon/dist/domain/builtin-startup-files.js +73 -34
- package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +5 -3
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
- package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
- package/daemon/dist/domain/claude-auto-mode.js +114 -0
- package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +66 -3
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +214 -10
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
- package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-continuation-launch.js +51 -2
- package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
- package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
- package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
- package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
- package/daemon/dist/domain/codex-daemon-support.js +6 -1
- package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
- package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-launch-result.js +5 -1
- package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +22 -3
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/configured-account.d.ts +3 -0
- package/daemon/dist/domain/configured-account.d.ts.map +1 -0
- package/daemon/dist/domain/configured-account.js +10 -0
- package/daemon/dist/domain/configured-account.js.map +1 -0
- package/daemon/dist/domain/connection-contract.d.ts +91 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
- package/daemon/dist/domain/connection-contract.js +73 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +5 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +37 -2
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/core-app-access.d.ts +51 -0
- package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-access.js +107 -0
- package/daemon/dist/domain/core-app-access.js.map +1 -0
- package/daemon/dist/domain/core-app-job.d.ts +411 -0
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-job.js +537 -0
- package/daemon/dist/domain/core-app-job.js.map +1 -0
- package/daemon/dist/domain/current-park-arm.d.ts +4 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
- package/daemon/dist/domain/current-park-arm.js +14 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -0
- package/daemon/dist/domain/current-work.d.ts +6 -1
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +41 -8
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/cwd-resolution.d.ts +14 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +28 -3
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +5 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/errors.d.ts +4 -0
- package/daemon/dist/domain/errors.d.ts.map +1 -1
- package/daemon/dist/domain/errors.js +7 -0
- package/daemon/dist/domain/errors.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +17 -4
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +1 -0
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +107 -3
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +2 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +5 -1
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
- package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
- package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
- package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
- package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +41 -18
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +6 -5
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
- package/daemon/dist/domain/harness-not-started-notice.js +81 -0
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
- package/daemon/dist/domain/hook-bridge.d.ts +345 -0
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/hook-bridge.js +547 -0
- package/daemon/dist/domain/hook-bridge.js.map +1 -0
- package/daemon/dist/domain/hosted-wake.d.ts +9 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +45 -6
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
- package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
- package/daemon/dist/domain/human-ask-attention.js +22 -0
- package/daemon/dist/domain/human-ask-attention.js.map +1 -0
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/instance-initialization.d.ts +2 -0
- package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
- package/daemon/dist/domain/instance-initialization.js +2 -1
- package/daemon/dist/domain/instance-initialization.js.map +1 -1
- package/daemon/dist/domain/member-connection.d.ts +14 -0
- package/daemon/dist/domain/member-connection.d.ts.map +1 -0
- package/daemon/dist/domain/member-connection.js +34 -0
- package/daemon/dist/domain/member-connection.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +8 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +10 -0
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -12
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
- package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
- package/daemon/dist/domain/native-continuation-notice.js +79 -0
- package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
- package/daemon/dist/domain/native-permission-store.d.ts +6 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +12 -5
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +48 -3
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +94 -10
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +11 -2
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +55 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +14 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +35 -6
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +69 -1
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +337 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/park-wake-text.d.ts +18 -0
- package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
- package/daemon/dist/domain/park-wake-text.js +44 -0
- package/daemon/dist/domain/park-wake-text.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +3 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/permission-account.d.ts +28 -1
- package/daemon/dist/domain/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +55 -11
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift.d.ts +2 -0
- package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
- package/daemon/dist/domain/permission-drift.js.map +1 -1
- package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
- package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
- package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
- package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
- package/daemon/dist/domain/pi-compaction-service.js +229 -0
- package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-limits.d.ts +47 -0
- package/daemon/dist/domain/process-limits.d.ts.map +1 -0
- package/daemon/dist/domain/process-limits.js +123 -0
- package/daemon/dist/domain/process-limits.js.map +1 -0
- package/daemon/dist/domain/process-table.d.ts +24 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +60 -4
- package/daemon/dist/domain/process-table.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +7 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +27 -1
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +2 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +6 -1
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +11 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +47 -21
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +122 -21
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +448 -101
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +74 -13
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -6
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +28 -3
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +264 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +10 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +79 -12
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +18 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +40 -0
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +10 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js +76 -3
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +65 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +311 -55
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +17 -5
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts +24 -0
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +61 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +7 -1
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
- package/daemon/dist/domain/restore-topology.js +21 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
- package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
- package/daemon/dist/domain/resume-token-validation.js +6 -3
- package/daemon/dist/domain/resume-token-validation.js.map +1 -1
- package/daemon/dist/domain/return-route.d.ts +73 -0
- package/daemon/dist/domain/return-route.d.ts.map +1 -0
- package/daemon/dist/domain/return-route.js +124 -0
- package/daemon/dist/domain/return-route.js.map +1 -0
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +12 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +74 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +20 -5
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +105 -22
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +9 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +30 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +27 -2
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +95 -26
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +44 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +23 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +37 -5
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +65 -0
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
- package/daemon/dist/domain/runner-channel.js +348 -0
- package/daemon/dist/domain/runner-channel.js.map +1 -0
- package/daemon/dist/domain/runner-grant-launch.js +2 -2
- package/daemon/dist/domain/runner-permissions.d.ts +26 -3
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +160 -39
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +4 -3
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
- package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-parent.js +134 -0
- package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +63 -3
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +5 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +55 -15
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +210 -65
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +12 -4
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +92 -17
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +31 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +172 -24
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +38 -3
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +11 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +3 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +4 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +31 -6
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +5 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +12 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +56 -4
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +344 -18
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-conversation.d.ts +58 -0
- package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/shared-conversation.js +98 -0
- package/daemon/dist/domain/shared-conversation.js.map +1 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +9 -5
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +6 -4
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
- package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
- package/daemon/dist/domain/startup-phase-timing.js +23 -0
- package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +33 -10
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +6 -6
- package/daemon/dist/domain/team-operations.d.ts.map +1 -1
- package/daemon/dist/domain/team-operations.js +2 -4
- package/daemon/dist/domain/team-operations.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
- package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
- package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +99 -4
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +556 -36
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
- package/daemon/dist/domain/terminal-policy.js +1 -1
- package/daemon/dist/domain/terminal-policy.js.map +1 -1
- package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.js +108 -0
- package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
- package/daemon/dist/domain/transcript-grep.d.ts +26 -0
- package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep.js +90 -0
- package/daemon/dist/domain/transcript-grep.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +8 -2
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +10 -60
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +149 -5
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +45 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +66 -5
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +19 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +79 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +22 -3
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +33 -9
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +13 -1
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +68 -9
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +3 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/gateway-slack-surface.d.ts +2 -2
- package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-slack-surface.js +1 -1
- package/daemon/dist/gateway-slack-surface.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/mission-parent-surface.d.ts +2 -0
- package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
- package/daemon/dist/mission-parent-surface.js +2 -0
- package/daemon/dist/mission-parent-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +18 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +150 -9
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +6 -1
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +194 -176
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +46 -7
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/core-app.d.ts +10 -0
- package/daemon/dist/routes/core-app.d.ts.map +1 -0
- package/daemon/dist/routes/core-app.js +175 -0
- package/daemon/dist/routes/core-app.js.map +1 -0
- package/daemon/dist/routes/hook-bridge.d.ts +3 -0
- package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/routes/hook-bridge.js +158 -0
- package/daemon/dist/routes/hook-bridge.js.map +1 -0
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +14 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +4 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +239 -38
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +1 -0
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +24 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +7 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +133 -6
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +14 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +21 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.js +9 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +47 -6
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +16 -1
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +14 -4
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +21 -3
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +5 -0
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +5 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +22 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +140 -48
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
- package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +5 -1
- package/daemon/docs/reference/claude-status-line.md +3 -2
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +310 -20
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
- package/daemon/docs/reference/community-harness-presets.md +7 -4
- package/daemon/docs/reference/core-app.md +212 -0
- package/daemon/docs/reference/daemon-http-clients.md +67 -12
- package/daemon/docs/reference/getting-started.md +9 -4
- package/daemon/docs/reference/harness-runner-contract.md +140 -4
- package/daemon/docs/reference/herdr-app.md +6 -0
- package/daemon/docs/reference/hosted-members.md +21 -1
- package/daemon/docs/reference/quickstart.md +4 -3
- package/daemon/docs/reference/rig-spec.md +197 -1
- package/daemon/docs/reference/rosters.md +17 -0
- package/daemon/docs/reference/sdlc-conventions.md +47 -6
- package/daemon/docs/reference/seat-delivery.md +87 -6
- package/daemon/docs/reference/slack-app-setup.md +39 -21
- package/daemon/docs/reference/terminal-sessions.md +99 -1
- package/daemon/docs/reference/whats-new.md +187 -15
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +27 -5
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +32 -8
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +1 -1
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +27 -5
- package/dist/acp/connector.js +1 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/ask-wake.d.ts.map +1 -1
- package/dist/ask-wake.js +8 -1
- package/dist/ask-wake.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +7 -1
- package/dist/cli-error.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/commands/archive.js +1 -1
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/ask.d.ts.map +1 -1
- package/dist/commands/ask.js +92 -11
- package/dist/commands/ask.js.map +1 -1
- package/dist/commands/broadcast.js +9 -5
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts +3 -4
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +76 -16
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +3 -0
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +8 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +2 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/fork.d.ts.map +1 -1
- package/dist/commands/fork.js +2 -0
- package/dist/commands/fork.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +11 -3
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/ps.d.ts +30 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +85 -6
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +309 -21
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig.d.ts +2 -0
- package/dist/commands/rig.d.ts.map +1 -1
- package/dist/commands/rig.js +36 -2
- package/dist/commands/rig.js.map +1 -1
- package/dist/commands/roster.d.ts +8 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +346 -9
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +213 -12
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +50 -7
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +2 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts +2 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +38 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/terminal.d.ts +56 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +199 -9
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/unarchive.js +1 -1
- package/dist/commands/unarchive.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +3 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts +3 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +25 -6
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +5 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +18 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +12 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/model-observation.d.ts.map +1 -1
- package/dist/lib/model-observation.js +9 -3
- package/dist/lib/model-observation.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +1 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -1
- package/dist/lib/scope/mission-composition.js +14 -0
- package/dist/lib/scope/mission-composition.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +63 -3
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +10 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +60 -0
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +5 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/local-db.d.ts +5 -0
- package/dist/local-db.d.ts.map +1 -0
- package/dist/local-db.js +23 -0
- package/dist/local-db.js.map +1 -0
- package/dist/local-origin.d.ts.map +1 -1
- package/dist/local-origin.js +2 -17
- package/dist/local-origin.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +138 -24
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/packet-writer.d.ts.map +1 -1
- package/dist/restore-packet/packet-writer.js +8 -5
- package/dist/restore-packet/packet-writer.js.map +1 -1
- package/dist/sender-identity.d.ts +18 -6
- package/dist/sender-identity.d.ts.map +1 -1
- package/dist/sender-identity.js +67 -7
- package/dist/sender-identity.js.map +1 -1
- package/dist/terminal-window-rex.d.ts +1 -1
- package/dist/terminal-window-rex.d.ts.map +1 -1
- package/dist/terminal-window-rex.js +3 -2
- package/dist/terminal-window-rex.js.map +1 -1
- package/dist/terminal-window.d.ts +2 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +570 -44
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +2 -1
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +22 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -3
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +4 -2
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
- package/tui/dist/pulse/render-pulse.js +7 -14
- package/tui/dist/pulse/render-pulse.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +29 -21
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +4 -2
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +1 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +3 -0
- package/tui/dist/visual-layout.d.ts.map +1 -1
- package/tui/dist/visual-layout.js +17 -0
- package/tui/dist/visual-layout.js.map +1 -1
- package/ui/dist/assets/{index-BvUEh33d.js → index-B-sMy02c.js} +116 -116
- package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
- package/ui/dist/index.html +2 -2
|
@@ -13,7 +13,9 @@ export interface ResumeTokenValidationErr {
|
|
|
13
13
|
/** Resume-id type for a runtime, or null when the runtime has no resume token
|
|
14
14
|
* (terminal / unknown). */
|
|
15
15
|
export declare function resumeTypeForRuntime(runtime: string | null): ResumeType | null;
|
|
16
|
-
export declare function validateSessionFileFormat(rawToken: unknown, label?: string
|
|
16
|
+
export declare function validateSessionFileFormat(rawToken: unknown, label?: string, options?: {
|
|
17
|
+
allowFormatCharacters?: boolean;
|
|
18
|
+
}): {
|
|
17
19
|
ok: true;
|
|
18
20
|
token: string;
|
|
19
21
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume-token-validation.d.ts","sourceRoot":"","sources":["../../src/domain/resume-token-validation.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;AAE3F,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,IAAI,CAAC;IACT,UAAU,EAAE,UAAU,CAAC;IACvB,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,KAAK,CAAC;IACV,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACf;AAoBD;4BAC4B;AAC5B,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CAM9E;AAeD,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,SAAO,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"resume-token-validation.d.ts","sourceRoot":"","sources":["../../src/domain/resume-token-validation.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;AAE3F,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,IAAI,CAAC;IACT,UAAU,EAAE,UAAU,CAAC;IACvB,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,KAAK,CAAC;IACV,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACf;AAoBD;4BAC4B;AAC5B,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CAM9E;AAeD,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,SAAO,EAAE,OAAO,GAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA2BxL;AASD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,EAAE,OAAO,GAChB,uBAAuB,GAAG,wBAAwB,CAmBpD"}
|
|
@@ -49,7 +49,7 @@ function validateIdShapedToken(resumeType, token) {
|
|
|
49
49
|
}
|
|
50
50
|
return { ok: true, resumeType, token };
|
|
51
51
|
}
|
|
52
|
-
export function validateSessionFileFormat(rawToken, label = "Pi") {
|
|
52
|
+
export function validateSessionFileFormat(rawToken, label = "Pi", options = {}) {
|
|
53
53
|
if (typeof rawToken !== "string") {
|
|
54
54
|
return { ok: false, error: `${label} session file must be a string.` };
|
|
55
55
|
}
|
|
@@ -63,10 +63,13 @@ export function validateSessionFileFormat(rawToken, label = "Pi") {
|
|
|
63
63
|
if (token.split("/").includes("..")) {
|
|
64
64
|
return { ok: false, error: `${label} session-file token must not contain a '..' path segment.` };
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
// Observation-only reports retain the original spelling; ordinary launch/resume callers keep their existing floor.
|
|
67
|
+
const charset = options.allowFormatCharacters ? /^[A-Za-z0-9._/@\p{Cf}-]+$/u : SESSION_FILE_CHARSET_RE;
|
|
68
|
+
if (!charset.test(token)) {
|
|
67
69
|
return {
|
|
68
70
|
ok: false,
|
|
69
|
-
error: `${label} session-file token contains disallowed characters
|
|
71
|
+
error: options.allowFormatCharacters ? `${label} observation session-file token contains disallowed characters.`
|
|
72
|
+
: `${label} session-file token contains disallowed characters (allowed: letters, digits, '.', '_', '/', '@', '-').`,
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
if (!token.endsWith(SESSION_FILE_SUFFIX)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume-token-validation.js","sourceRoot":"","sources":["../../src/domain/resume-token-validation.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,uEAAuE;AACvE,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,oEAAoE;AACpE,uEAAuE;AACvE,yEAAyE;AACzE,6EAA6E;AAgB7E,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,2EAA2E;AAC3E,yEAAyE;AACzE,gEAAgE;AAChE,EAAE;AACF,iEAAiE;AACjE,4EAA4E;AAC5E,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,4EAA4E;AAC5E,uCAAuC;AACvC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AACtD,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAClC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC;4BAC4B;AAC5B,MAAM,UAAU,oBAAoB,CAAC,OAAsB;IACzD,IAAI,OAAO,KAAK,aAAa;QAAE,OAAO,WAAW,CAAC;IAClD,IAAI,OAAO,KAAK,OAAO;QAAE,OAAO,UAAU,CAAC;IAC3C,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,iBAAiB,CAAC;IAC/C,IAAI,OAAO,KAAK,KAAK;QAAE,OAAO,kBAAkB,CAAC;IACjD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,qBAAqB,CAAC,UAAsB,EAAE,KAAa;IAClE,IAAI,KAAK,CAAC,MAAM,GAAG,aAAa,EAAE,CAAC;QACjC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,iCAAiC,aAAa,eAAe,EAAE,CAAC;IAC7F,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,wFAAwF;SAChG,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,QAAiB,EAAE,KAAK,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"resume-token-validation.js","sourceRoot":"","sources":["../../src/domain/resume-token-validation.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,uEAAuE;AACvE,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,oEAAoE;AACpE,uEAAuE;AACvE,yEAAyE;AACzE,6EAA6E;AAgB7E,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,2EAA2E;AAC3E,yEAAyE;AACzE,gEAAgE;AAChE,EAAE;AACF,iEAAiE;AACjE,4EAA4E;AAC5E,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,4EAA4E;AAC5E,uCAAuC;AACvC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AACtD,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAClC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC;4BAC4B;AAC5B,MAAM,UAAU,oBAAoB,CAAC,OAAsB;IACzD,IAAI,OAAO,KAAK,aAAa;QAAE,OAAO,WAAW,CAAC;I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B,CACjC,OAAsB,EACtB,QAAiB;IAEjB,MAAM,UAAU,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACjD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,kDAAkD,OAAO,IAAI,SAAS,8DAA8D;SAC5I,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,0CAA0C,EAAE,CAAC;IAC1E,CAAC;IACD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,wBAAwB,EAAE,CAAC;IACxD,CAAC;IACD,IAAI,UAAU,KAAK,iBAAiB,IAAI,UAAU,KAAK,kBAAkB,EAAE,CAAC;QAC1E,OAAO,wBAAwB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,qBAAqB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type Database from "better-sqlite3";
|
|
2
|
+
/** How a row's return route was established:
|
|
3
|
+
* - `issued`: OpenRig issued it for this create, and the caller's own identity is still the row's source;
|
|
4
|
+
* - `issued-actor`: OpenRig issued it for a caller with no identity, so it's also the row's declared source (claimed:v1);
|
|
5
|
+
* - `caller`: the caller's own identity (`self`);
|
|
6
|
+
* - `named`: an address the caller named. */
|
|
7
|
+
export type ReturnRouteBasis = "issued" | "issued-actor" | "caller" | "named";
|
|
8
|
+
export declare const RETURN_ROUTE_BASES: readonly ReturnRouteBasis[];
|
|
9
|
+
/** The rig an issued conversation address names: the kernel's, as the rigs skill's agreed addresses do. Nothing is launched
|
|
10
|
+
* or written for it; the queue takes tasks for any canonical address. */
|
|
11
|
+
export declare const RETURN_ROUTE_RIG = "kernel";
|
|
12
|
+
/** The address `--return-route auto` issues for one create. It's derived from the create's own id, so an exact retry (the
|
|
13
|
+
* CLI's `--id`) and a restarted daemon issue the same address, and two creates never share one. */
|
|
14
|
+
export declare function issuedReturnAddress(qitemId: string): string;
|
|
15
|
+
/** Every route note starts with this. They're delivery machinery, never someone picking the row up. */
|
|
16
|
+
export declare const RETURN_ROUTE_NOTE_PREFIX = "return-route ";
|
|
17
|
+
/** Recorded on the escalation a relay task carries, when an agent at the route claims that task: pickup only. */
|
|
18
|
+
export declare const RELAY_CLAIMED_PREFIX = "return-route relay-claimed";
|
|
19
|
+
export declare const RELAY_TAG = "return-route-relay";
|
|
20
|
+
export declare const RELAY_FOR_PREFIX = "relay-for:";
|
|
21
|
+
export declare const RELAY_KEY_PREFIX = "relay-notification-key:";
|
|
22
|
+
/** A prompt alert raised for routed work stuck at a seat's prompt (held by the seat, or waiting on it) names that row. */
|
|
23
|
+
export declare const PROMPT_ROUTED_WORK_PREFIX = "prompt-routed-work:";
|
|
24
|
+
/** One relay task per delivery episode: the id comes from the episode's notification key. */
|
|
25
|
+
export declare function relayTaskId(notificationKey: string): string;
|
|
26
|
+
/** Whether a row is this episode's relay task: at the episode's relay id, from OpenRig, and tagged for this escalation and
|
|
27
|
+
* key. Any other row that happens to hold the id isn't the relay, and it's never treated as one. */
|
|
28
|
+
export declare function isEpisodeRelay(row: {
|
|
29
|
+
qitemId: string;
|
|
30
|
+
sourceSession: string;
|
|
31
|
+
tags?: string[] | null;
|
|
32
|
+
} | null, escalationId: string, notificationKey: string, openRigSender: string): boolean;
|
|
33
|
+
/** Said on a cross-host create or handoff whose return route couldn't go with it: the work goes, without the route. */
|
|
34
|
+
export declare const RETURN_ROUTE_NOT_CARRIED = "return_route_not_carried";
|
|
35
|
+
export declare const RETURN_ROUTE_NOT_CARRIED_TAG = "return-route-not-carried";
|
|
36
|
+
export declare function routeNotCarriedMessage(route: string): string;
|
|
37
|
+
/** Said on a create whose named or self return route is a registered person's address: the work goes, without the route. */
|
|
38
|
+
export declare function routeIsPersonMessage(route: string): string;
|
|
39
|
+
/** What kind of prompt a seat's activity reports: a choice (a selection menu, such as a usage-limit dialog), a permission
|
|
40
|
+
* prompt, or a kind it doesn't say. Read from the reason the activity already records; nothing new is probed. */
|
|
41
|
+
export type PromptKind = "choice" | "permission" | "unknown";
|
|
42
|
+
export declare function promptKindFromReason(reason: string | null | undefined): PromptKind;
|
|
43
|
+
/** A route's address, and the host it names when it was carried from another host (`member@rig@host`). */
|
|
44
|
+
export declare function splitRoute(route: string): {
|
|
45
|
+
address: string;
|
|
46
|
+
host: string | null;
|
|
47
|
+
};
|
|
48
|
+
/** A route's address when the conversation is on this host; null when it names another host, which this daemon doesn't
|
|
49
|
+
* deliver to. */
|
|
50
|
+
export declare function routeOnThisHost(route: string): string | null;
|
|
51
|
+
/** An agent conversation's queue address (member@rig, or member@rig@host carried from another host). A person's address
|
|
52
|
+
* isn't one: a person is reached through the gateway. */
|
|
53
|
+
export declare function isRouteAddress(value: string): boolean;
|
|
54
|
+
export type RouteResolution = {
|
|
55
|
+
kind: "route";
|
|
56
|
+
route: string;
|
|
57
|
+
anchors: string[];
|
|
58
|
+
} | {
|
|
59
|
+
kind: "conflict";
|
|
60
|
+
routes: string[];
|
|
61
|
+
anchors: string[];
|
|
62
|
+
} | {
|
|
63
|
+
kind: "none";
|
|
64
|
+
};
|
|
65
|
+
/** The return route an escalation reaches through its actual work. It reads the rows the escalation concerns (itself, the rows
|
|
66
|
+
* its `recovery-for:` tags carry, and routed work stuck at the prompted seat), each by its own route or else by the routed
|
|
67
|
+
* rows blocked on it. No other row is read, so two conversations on one team stay distinct whatever else is open. Several
|
|
68
|
+
* distinct routes are a conflict, never a choice. */
|
|
69
|
+
export declare function resolveEscalationReturnRoute(db: Database.Database, row: {
|
|
70
|
+
qitemId: string;
|
|
71
|
+
tags?: string[] | null;
|
|
72
|
+
}): RouteResolution;
|
|
73
|
+
//# sourceMappingURL=return-route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"return-route.d.ts","sourceRoot":"","sources":["../../src/domain/return-route.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAI3C;;;;8CAI8C;AAC9C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9E,eAAO,MAAM,kBAAkB,EAAE,SAAS,gBAAgB,EAAkD,CAAC;AAE7G;0EAC0E;AAC1E,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC;oGACoG;AACpG,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,uGAAuG;AACvG,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AACxD,iHAAiH;AACjH,eAAO,MAAM,oBAAoB,+BAA6C,CAAC;AAC/E,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,0HAA0H;AAC1H,eAAO,MAAM,yBAAyB,wBAAwB,CAAC;AAE/D,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;qGACqG;AACrG,wBAAgB,cAAc,CAAC,GAAG,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,EAC3G,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAI/E;AAED,uHAAuH;AACvH,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,4BA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|
|
2
|
+
// `rig queue create --return-route`, the successors its handoffs carry it to, and the escalations that deliver to it.
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
4
|
+
import { isHumanSeatSessionRef, parseSessionName } from "./session-name.js";
|
|
5
|
+
import { getSelfHostId } from "./hosts/fanout-contract.js";
|
|
6
|
+
export const RETURN_ROUTE_BASES = ["issued", "issued-actor", "caller", "named"];
|
|
7
|
+
/** The rig an issued conversation address names: the kernel's, as the rigs skill's agreed addresses do. Nothing is launched
|
|
8
|
+
* or written for it; the queue takes tasks for any canonical address. */
|
|
9
|
+
export const RETURN_ROUTE_RIG = "kernel";
|
|
10
|
+
/** The address `--return-route auto` issues for one create. It's derived from the create's own id, so an exact retry (the
|
|
11
|
+
* CLI's `--id`) and a restarted daemon issue the same address, and two creates never share one. */
|
|
12
|
+
export function issuedReturnAddress(qitemId) {
|
|
13
|
+
return `conversation-${createHash("sha256").update(qitemId).digest("hex").slice(0, 12)}@${RETURN_ROUTE_RIG}`;
|
|
14
|
+
}
|
|
15
|
+
/** Every route note starts with this. They're delivery machinery, never someone picking the row up. */
|
|
16
|
+
export const RETURN_ROUTE_NOTE_PREFIX = "return-route ";
|
|
17
|
+
/** Recorded on the escalation a relay task carries, when an agent at the route claims that task: pickup only. */
|
|
18
|
+
export const RELAY_CLAIMED_PREFIX = `${RETURN_ROUTE_NOTE_PREFIX}relay-claimed`;
|
|
19
|
+
export const RELAY_TAG = "return-route-relay";
|
|
20
|
+
export const RELAY_FOR_PREFIX = "relay-for:";
|
|
21
|
+
export const RELAY_KEY_PREFIX = "relay-notification-key:";
|
|
22
|
+
/** A prompt alert raised for routed work stuck at a seat's prompt (held by the seat, or waiting on it) names that row. */
|
|
23
|
+
export const PROMPT_ROUTED_WORK_PREFIX = "prompt-routed-work:";
|
|
24
|
+
/** One relay task per delivery episode: the id comes from the episode's notification key. */
|
|
25
|
+
export function relayTaskId(notificationKey) {
|
|
26
|
+
return `qitem-route-relay-${createHash("sha256").update(notificationKey).digest("hex").slice(0, 24)}`;
|
|
27
|
+
}
|
|
28
|
+
/** Whether a row is this episode's relay task: at the episode's relay id, from OpenRig, and tagged for this escalation and
|
|
29
|
+
* key. Any other row that happens to hold the id isn't the relay, and it's never treated as one. */
|
|
30
|
+
export function isEpisodeRelay(row, escalationId, notificationKey, openRigSender) {
|
|
31
|
+
if (!row || row.qitemId !== relayTaskId(notificationKey) || row.sourceSession !== openRigSender)
|
|
32
|
+
return false;
|
|
33
|
+
const tags = row.tags ?? [];
|
|
34
|
+
return tags.includes(RELAY_TAG) && tags.includes(`${RELAY_FOR_PREFIX}${escalationId}`) && tags.includes(`${RELAY_KEY_PREFIX}${notificationKey}`);
|
|
35
|
+
}
|
|
36
|
+
/** Said on a cross-host create or handoff whose return route couldn't go with it: the work goes, without the route. */
|
|
37
|
+
export const RETURN_ROUTE_NOT_CARRIED = "return_route_not_carried";
|
|
38
|
+
export const RETURN_ROUTE_NOT_CARRIED_TAG = "return-route-not-carried";
|
|
39
|
+
export function routeNotCarriedMessage(route) {
|
|
40
|
+
return `The return route ${route} wasn't carried: this daemon doesn't know its own host id, so the route couldn't say which ` +
|
|
41
|
+
`host the conversation is on. The work went on without it, and its escalations there take that host's usual route.`;
|
|
42
|
+
}
|
|
43
|
+
/** Said on a create whose named or self return route is a registered person's address: the work goes, without the route. */
|
|
44
|
+
export function routeIsPersonMessage(route) {
|
|
45
|
+
return `The return route ${route} wasn't kept: it's a registered person's address, and a person is reached through the ` +
|
|
46
|
+
`gateway, not a return route. The work went on without it, and its escalations take this host's usual route. For a ` +
|
|
47
|
+
`return route, use auto or an agent conversation's address.`;
|
|
48
|
+
}
|
|
49
|
+
export function promptKindFromReason(reason) {
|
|
50
|
+
return reason === "selection_prompt" ? "choice" : reason === "permission_prompt" ? "permission" : "unknown";
|
|
51
|
+
}
|
|
52
|
+
/** A route's address, and the host it names when it was carried from another host (`member@rig@host`). */
|
|
53
|
+
export function splitRoute(route) {
|
|
54
|
+
const parts = route.split("@");
|
|
55
|
+
return parts.length === 3 ? { address: `${parts[0]}@${parts[1]}`, host: parts[2] } : { address: route, host: null };
|
|
56
|
+
}
|
|
57
|
+
/** A route's address when the conversation is on this host; null when it names another host, which this daemon doesn't
|
|
58
|
+
* deliver to. */
|
|
59
|
+
export function routeOnThisHost(route) {
|
|
60
|
+
const { address, host } = splitRoute(route);
|
|
61
|
+
return host === null || host === getSelfHostId() ? address : null;
|
|
62
|
+
}
|
|
63
|
+
/** An agent conversation's queue address (member@rig, or member@rig@host carried from another host). A person's address
|
|
64
|
+
* isn't one: a person is reached through the gateway. */
|
|
65
|
+
export function isRouteAddress(value) {
|
|
66
|
+
if (value !== value.trim() || /\s/.test(value))
|
|
67
|
+
return false;
|
|
68
|
+
const parts = value.split("@");
|
|
69
|
+
if (parts.length === 3 && !parts[2])
|
|
70
|
+
return false;
|
|
71
|
+
if (parts.length < 2 || parts.length > 3)
|
|
72
|
+
return false;
|
|
73
|
+
const { address } = splitRoute(value);
|
|
74
|
+
return parseSessionName(address).kind === "canonical" && !isHumanSeatSessionRef(address);
|
|
75
|
+
}
|
|
76
|
+
/** The open rows blocked on one row that carry a route: the work that waits on it. */
|
|
77
|
+
const WAITERS_SQL = "SELECT qitem_id, return_route FROM queue_items WHERE blocked_on = ? AND state = 'blocked' AND return_route IS NOT NULL";
|
|
78
|
+
/** The return route an escalation reaches through its actual work. It reads the rows the escalation concerns (itself, the rows
|
|
79
|
+
* its `recovery-for:` tags carry, and routed work stuck at the prompted seat), each by its own route or else by the routed
|
|
80
|
+
* rows blocked on it. No other row is read, so two conversations on one team stay distinct whatever else is open. Several
|
|
81
|
+
* distinct routes are a conflict, never a choice. */
|
|
82
|
+
export function resolveEscalationReturnRoute(db, row) {
|
|
83
|
+
try {
|
|
84
|
+
if (!db.prepare("SELECT 1 FROM pragma_table_info('queue_items') WHERE name = 'return_route'").get())
|
|
85
|
+
return { kind: "none" };
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
return { kind: "none" };
|
|
89
|
+
}
|
|
90
|
+
const concerned = [row.qitemId];
|
|
91
|
+
for (const tag of row.tags ?? []) {
|
|
92
|
+
if (typeof tag !== "string")
|
|
93
|
+
continue;
|
|
94
|
+
if (tag.startsWith("recovery-for:"))
|
|
95
|
+
concerned.push(tag.slice("recovery-for:".length));
|
|
96
|
+
if (tag.startsWith(PROMPT_ROUTED_WORK_PREFIX))
|
|
97
|
+
concerned.push(tag.slice(PROMPT_ROUTED_WORK_PREFIX.length));
|
|
98
|
+
}
|
|
99
|
+
const own = db.prepare("SELECT return_route FROM queue_items WHERE qitem_id = ?");
|
|
100
|
+
const waiters = db.prepare(WAITERS_SQL);
|
|
101
|
+
const routes = new Map();
|
|
102
|
+
const add = (route, anchor) => {
|
|
103
|
+
if (!routes.has(route))
|
|
104
|
+
routes.set(route, []);
|
|
105
|
+
if (!routes.get(route).includes(anchor))
|
|
106
|
+
routes.get(route).push(anchor);
|
|
107
|
+
};
|
|
108
|
+
for (const id of [...new Set(concerned)]) {
|
|
109
|
+
const route = own.get(id)?.return_route;
|
|
110
|
+
if (route) {
|
|
111
|
+
add(route, id);
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
for (const waiter of waiters.all(id))
|
|
115
|
+
add(waiter.return_route, waiter.qitem_id);
|
|
116
|
+
}
|
|
117
|
+
if (routes.size === 0)
|
|
118
|
+
return { kind: "none" };
|
|
119
|
+
const anchors = [...new Set([...routes.values()].flat())];
|
|
120
|
+
if (routes.size > 1)
|
|
121
|
+
return { kind: "conflict", routes: [...routes.keys()].sort(), anchors };
|
|
122
|
+
return { kind: "route", route: [...routes.keys()][0], anchors };
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=return-route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"return-route.js","sourceRoot":"","sources":["../../src/domain/return-route.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,sHAAsH;AACtH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa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,CAAC,EAAE,CAAC;QACzC,MAAM,KAAK,GAAI,GAAG,CAAC,GAAG,CAAC,EAAE,CAAiD,EAAE,YAAY,CAAC;QACzF,IAAI,KAAK,EAAE,CAAC;YAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAAC,SAAS;QAAC,CAAC;QACxC,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAsD;YAAE,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IACvI,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC/C,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1D,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC;IAC7F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAE,EAAE,OAAO,EAAE,CAAC;AACnE,CAAC"}
|
|
@@ -104,7 +104,7 @@ export class RigExpansionService {
|
|
|
104
104
|
if (!member || typeof member !== "object" || Array.isArray(member))
|
|
105
105
|
return member;
|
|
106
106
|
const raw = { ...member };
|
|
107
|
-
for (const alias of ["agentRef", "codexConfigProfile", "claudePermissions", "claudeToken", "claudeMcp", "codexPermissions",
|
|
107
|
+
for (const alias of ["agentRef", "codexConfigProfile", "claudePermissions", "claudeAutoMode", "claudeToken", "claudeMcp", "codexPermissions",
|
|
108
108
|
"permissionPolicy", "restorePolicy", "sessionSource", "starterRef"]) {
|
|
109
109
|
// These aliases historically select a string, otherwise the raw
|
|
110
110
|
// canonical value wins. Permission/session-source aliases use presence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rig-expansion-service.js","sourceRoot":"","sources":["../../src/domain/rig-expansion-service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAWxE;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IACtB,IAAI,CAA0B;IAEtC,YAAY,IAA6B;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAyB;QACpC,yBAAyB;QACzB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACpD,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,OAAO,CAAC,KAAK,aAAa,EAAE,CAAC;QACzF,CAAC;QAED,qEAAqE;QACrE,oEAAoE;QACpE,4EAA4E;QAC5E,iBAAiB;QACjB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;QACxB,MAAM,UAAU,GAAG,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;QAE3F,wDAAwD;QACxD,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAC7E,UAAU,EACV,OAAO,CAAC,OAAO,IAAI,GAAG,EACtB,EAAE,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAC3D,CAAC;QAEF,IAAI,CAAC,iBAAiB,CAAC,EAAE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AI,EAAE,EAAE,CAAC,CAAC;gBAC1C,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ,CAAC,CAAC;SACJ,CAAC;QAEF,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ClaudeMcp } from "./claude-mcp.js";
|
|
2
|
+
import { type ProcessLimits } from "./process-limits.js";
|
|
2
3
|
import type Database from "better-sqlite3";
|
|
3
4
|
import type { ClaudeManagedBlockFile } from "./managed-blocks.js";
|
|
4
5
|
import { type SeatEnv } from "./seat-env.js";
|
|
@@ -58,10 +59,13 @@ interface NodeOptions {
|
|
|
58
59
|
/** OPR.0.4.8.3 Seam B: per-seat permission_policy REF (builtin:<name> or spec-relative path). */
|
|
59
60
|
permissionPolicy?: string;
|
|
60
61
|
claudePermissions?: import("./claude-permission-rules.js").ClaudePermissionRules;
|
|
62
|
+
claudeAutoMode?: import("./claude-auto-mode.js").ClaudeAutoMode;
|
|
61
63
|
/** A Claude seat's own subscription token file, by reference (spec `claude_token`). */
|
|
62
64
|
claudeTokenRef?: ClaudeSeatTokenRef;
|
|
63
65
|
claudeMcp?: ClaudeMcp;
|
|
64
66
|
launchWrapper?: readonly string[] | null;
|
|
67
|
+
/** The seat's own process limits (spec `process_limits`); null/absent = none. */
|
|
68
|
+
processLimits?: ProcessLimits | null;
|
|
65
69
|
codexPermissions?: import("./codex-member-permissions.js").CodexMemberPermissions;
|
|
66
70
|
/** The member's declared launch environment (spec `env:`); not merged with the rig's. */
|
|
67
71
|
env?: SeatEnv;
|
|
@@ -180,6 +184,8 @@ export declare class RigRepository {
|
|
|
180
184
|
addNode(rigId: string, logicalId: string, opts?: NodeOptions): Node;
|
|
181
185
|
/** Return the durable source for rebuilding a pod-aware seat, if available. */
|
|
182
186
|
getNodeLaunchRecipe(nodeId: string): NodeLaunchRecipe | null;
|
|
187
|
+
getNodeInputRoute(nodeId: string): "typed" | "native";
|
|
188
|
+
setNodeInputRoute(nodeId: string, route: "typed" | "native"): boolean;
|
|
183
189
|
/** S5 (OPR.0.5.4.7) — the first supported nodes.model write (the inventory was insert-only;
|
|
184
190
|
* KI-5.3-9). Every managed resume/successor launch reads node.model at call time, so this
|
|
185
191
|
* UPDATE is the complete persistence half of set-model. Returns whether a row changed. */
|
|
@@ -203,6 +209,12 @@ export declare class RigRepository {
|
|
|
203
209
|
setNodeClaudeMcp(nodeId: string, value: ClaudeMcp | null): boolean;
|
|
204
210
|
/** Persist or clear (null or []) a seat's launch_wrapper argv prefix. */
|
|
205
211
|
setNodeLaunchWrapper(nodeId: string, value: readonly string[] | null): boolean;
|
|
212
|
+
/** Persist or clear (null) a seat's process limits (spec `process_limits`, #3253). The terminal reads them as it
|
|
213
|
+
* creates the seat's pane, so a re-applied spec must write them before that launch. */
|
|
214
|
+
setNodeProcessLimits(nodeId: string, value: ProcessLimits | null): boolean;
|
|
215
|
+
/** A seat's stored process limits, read at each new launch of its pane; undefined = none. A malformed stored value
|
|
216
|
+
* throws: a limit the operator set is never silently dropped. */
|
|
217
|
+
getNodeProcessLimits(nodeId: string): ProcessLimits | undefined;
|
|
206
218
|
setNodeAdvisor(nodeId: string, advisor: string | null): boolean;
|
|
207
219
|
addEdge(rigId: string, sourceId: string, targetId: string, kind: string): Edge;
|
|
208
220
|
/** Removes exactly one edge row within the target rig; true when it existed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rig-repository.d.ts","sourceRoot":"","sources":["../../src/domain/rig-repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rig-repository.d.ts","sourceRoot":"","sources":["../../src/domain/rig-repository.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAA2E,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAElI,OAA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AC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAYjG,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI;IAK1D,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB,GAAG,IAAI;IAchG,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,SAAS;IAuDjB,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,aAAa;CAItB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { isEscalationTargetRef } from "./escalation-target-ref.js";
|
|
2
2
|
import { validateClaudePermissionRules } from "./claude-permission-rules.js";
|
|
3
|
+
import { validateClaudeAutoMode } from "./claude-auto-mode.js";
|
|
3
4
|
import { validateClaudeMcp } from "./claude-mcp.js";
|
|
4
5
|
import { isLaunchWrapperRuntime, parseStoredLaunchWrapper, validateLaunchWrapper } from "./launch-wrapper.js";
|
|
6
|
+
import { parseStoredProcessLimits, serializeProcessLimits, validateProcessLimits } from "./process-limits.js";
|
|
5
7
|
import { validateCodexMemberPermissions } from "./codex-member-permissions.js";
|
|
6
8
|
import { resolveActiveOccupantRow } from "./active-occupant.js";
|
|
7
9
|
import { decodeStoredSnapshotData } from "./snapshot-repository.js";
|
|
@@ -557,6 +559,12 @@ export class RigRepository {
|
|
|
557
559
|
if (!this.db.inTransaction)
|
|
558
560
|
return this.db.transaction(() => this.addNode(rigId, logicalId, opts))();
|
|
559
561
|
}
|
|
562
|
+
if (opts?.processLimits) {
|
|
563
|
+
validateProcessLimits({ tasks_max: opts.processLimits.tasksMax, memory_max: opts.processLimits.memoryMax });
|
|
564
|
+
// Written atomically with creation: a seat never exists without the limit it was created with.
|
|
565
|
+
if (!this.db.inTransaction)
|
|
566
|
+
return this.db.transaction(() => this.addNode(rigId, logicalId, opts))();
|
|
567
|
+
}
|
|
560
568
|
if (opts?.claudePermissions !== undefined) {
|
|
561
569
|
if (opts.runtime !== "claude-code")
|
|
562
570
|
throw new Error("claude_permissions requires a claude-code seat");
|
|
@@ -565,6 +573,13 @@ export class RigRepository {
|
|
|
565
573
|
if (!this.db.inTransaction)
|
|
566
574
|
return this.db.transaction(() => this.addNode(rigId, logicalId, opts))();
|
|
567
575
|
}
|
|
576
|
+
if (opts?.claudeAutoMode !== undefined) {
|
|
577
|
+
if (opts.runtime !== "claude-code")
|
|
578
|
+
throw new Error("claude_auto_mode requires a claude-code seat");
|
|
579
|
+
validateClaudeAutoMode(opts.claudeAutoMode);
|
|
580
|
+
if (!this.db.inTransaction)
|
|
581
|
+
return this.db.transaction(() => this.addNode(rigId, logicalId, opts))();
|
|
582
|
+
}
|
|
568
583
|
if (opts?.codexPermissions !== undefined) {
|
|
569
584
|
if (opts.runtime !== "codex")
|
|
570
585
|
throw new Error("codex_permissions requires a codex seat");
|
|
@@ -624,6 +639,12 @@ export class RigRepository {
|
|
|
624
639
|
this.db.prepare("UPDATE nodes SET claude_permissions_json = ? WHERE id = ?")
|
|
625
640
|
.run(JSON.stringify(validateClaudePermissionRules(opts.claudePermissions)), id);
|
|
626
641
|
}
|
|
642
|
+
if (opts?.claudeAutoMode !== undefined) {
|
|
643
|
+
if (opts.runtime !== "claude-code")
|
|
644
|
+
throw new Error("claude_auto_mode requires a claude-code seat");
|
|
645
|
+
this.db.prepare("UPDATE nodes SET claude_auto_mode_json = ? WHERE id = ?")
|
|
646
|
+
.run(JSON.stringify(validateClaudeAutoMode(opts.claudeAutoMode)), id);
|
|
647
|
+
}
|
|
627
648
|
if (opts?.codexPermissions !== undefined) {
|
|
628
649
|
if (opts.runtime !== "codex")
|
|
629
650
|
throw new Error("codex_permissions requires a codex seat");
|
|
@@ -645,6 +666,8 @@ export class RigRepository {
|
|
|
645
666
|
if (opts?.launchWrapper !== undefined && opts.launchWrapper !== null && opts.launchWrapper.length > 0) {
|
|
646
667
|
this.setNodeLaunchWrapper(id, opts.launchWrapper);
|
|
647
668
|
}
|
|
669
|
+
if (opts?.processLimits)
|
|
670
|
+
this.setNodeProcessLimits(id, opts.processLimits);
|
|
648
671
|
if (opts?.env && this.hasNodeColumn("env_json")) {
|
|
649
672
|
this.db.prepare("UPDATE nodes SET env_json = ? WHERE id = ?")
|
|
650
673
|
.run(JSON.stringify(opts.env), id);
|
|
@@ -674,6 +697,17 @@ export class RigRepository {
|
|
|
674
697
|
return null;
|
|
675
698
|
}
|
|
676
699
|
}
|
|
700
|
+
getNodeInputRoute(nodeId) {
|
|
701
|
+
if (!this.hasNodeColumn("input_route"))
|
|
702
|
+
return "typed";
|
|
703
|
+
const row = this.db.prepare("SELECT input_route FROM nodes WHERE id=?").get(nodeId);
|
|
704
|
+
return row?.input_route === "native" ? "native" : "typed";
|
|
705
|
+
}
|
|
706
|
+
setNodeInputRoute(nodeId, route) {
|
|
707
|
+
if (!["typed", "native"].includes(route))
|
|
708
|
+
throw new Error("Invalid input route.");
|
|
709
|
+
return this.db.prepare("UPDATE nodes SET input_route=? WHERE id=?").run(route, nodeId).changes > 0;
|
|
710
|
+
}
|
|
677
711
|
/** S5 (OPR.0.5.4.7) — the first supported nodes.model write (the inventory was insert-only;
|
|
678
712
|
* KI-5.3-9). Every managed resume/successor launch reads node.model at call time, so this
|
|
679
713
|
* UPDATE is the complete persistence half of set-model. Returns whether a row changed. */
|
|
@@ -763,6 +797,33 @@ export class RigRepository {
|
|
|
763
797
|
}
|
|
764
798
|
return this.db.prepare("UPDATE nodes SET launch_wrapper = ? WHERE id = ?").run(stored, nodeId).changes > 0;
|
|
765
799
|
}
|
|
800
|
+
/** Persist or clear (null) a seat's process limits (spec `process_limits`, #3253). The terminal reads them as it
|
|
801
|
+
* creates the seat's pane, so a re-applied spec must write them before that launch. */
|
|
802
|
+
setNodeProcessLimits(nodeId, value) {
|
|
803
|
+
let stored = null;
|
|
804
|
+
if (value !== null) {
|
|
805
|
+
// A value with neither key would store `{}`, which reads back as invalid: null is the only way to clear.
|
|
806
|
+
const checked = validateProcessLimits({ tasks_max: value.tasksMax, memory_max: value.memoryMax });
|
|
807
|
+
if (checked.tasksMax === undefined && checked.memoryMax === undefined) {
|
|
808
|
+
throw new Error("process_limits: tasks_max or memory_max is required (pass null to clear)");
|
|
809
|
+
}
|
|
810
|
+
stored = serializeProcessLimits(checked);
|
|
811
|
+
}
|
|
812
|
+
if (!this.hasNodeColumn("process_limits")) {
|
|
813
|
+
if (stored !== null)
|
|
814
|
+
throw new Error("Cannot persist process_limits: database migration is required");
|
|
815
|
+
return false;
|
|
816
|
+
}
|
|
817
|
+
return this.db.prepare("UPDATE nodes SET process_limits = ? WHERE id = ?").run(stored, nodeId).changes > 0;
|
|
818
|
+
}
|
|
819
|
+
/** A seat's stored process limits, read at each new launch of its pane; undefined = none. A malformed stored value
|
|
820
|
+
* throws: a limit the operator set is never silently dropped. */
|
|
821
|
+
getNodeProcessLimits(nodeId) {
|
|
822
|
+
if (!this.hasNodeColumn("process_limits"))
|
|
823
|
+
return undefined;
|
|
824
|
+
const row = this.db.prepare("SELECT process_limits FROM nodes WHERE id = ?").get(nodeId);
|
|
825
|
+
return parseStoredProcessLimits(row?.process_limits, `Seat ${nodeId} process_limits`);
|
|
826
|
+
}
|
|
766
827
|
setNodeAdvisor(nodeId, advisor) {
|
|
767
828
|
if (!this.hasNodeColumn("advisor"))
|
|
768
829
|
return false;
|
|
@@ -988,6 +1049,16 @@ export class RigRepository {
|
|
|
988
1049
|
}
|
|
989
1050
|
rowToNode(row) {
|
|
990
1051
|
const launchWrapper = parseStoredLaunchWrapper(row.launch_wrapper, `Seat ${row.id} launch_wrapper`);
|
|
1052
|
+
// #3253: a malformed stored limit stays local to its seat: the rig read goes on, the node says why, and the stored
|
|
1053
|
+
// value is kept (that seat's launch and status read it as invalid).
|
|
1054
|
+
let processLimits;
|
|
1055
|
+
let processLimitsError;
|
|
1056
|
+
try {
|
|
1057
|
+
processLimits = parseStoredProcessLimits(row.process_limits, `Seat ${row.id} process_limits`);
|
|
1058
|
+
}
|
|
1059
|
+
catch (error) {
|
|
1060
|
+
processLimitsError = error.message;
|
|
1061
|
+
}
|
|
991
1062
|
if (launchWrapper && !isLaunchWrapperRuntime(row.runtime)) {
|
|
992
1063
|
throw new Error(`Seat ${row.id} launch_wrapper: only valid when runtime is "pi", "codex", "claude-code" or a supported community harness`);
|
|
993
1064
|
}
|
|
@@ -998,10 +1069,13 @@ export class RigRepository {
|
|
|
998
1069
|
role: row.role,
|
|
999
1070
|
runtime: row.runtime,
|
|
1000
1071
|
model: row.model,
|
|
1072
|
+
inputRoute: row.input_route ?? "typed",
|
|
1001
1073
|
effort: row.effort ?? null,
|
|
1002
1074
|
advisor: row.advisor ?? null,
|
|
1003
1075
|
claudeMcp: row.claude_mcp ?? null,
|
|
1004
1076
|
...(launchWrapper ? { launchWrapper } : {}),
|
|
1077
|
+
...(processLimits ? { processLimits } : {}),
|
|
1078
|
+
...(processLimitsError ? { processLimitsError } : {}),
|
|
1005
1079
|
effortChoice: row.effort_choice ?? null,
|
|
1006
1080
|
codexConfigProfile: row.codex_config_profile ?? null,
|
|
1007
1081
|
claudeTokenRef: parseClaudeSeatTokenRef(row.claude_token_ref),
|