@openrig/cli 0.7.13 → 0.7.14
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 +5 -5
- 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/skills/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/assets/skills/rigs/SKILL.md +5 -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 +65 -21
- package/daemon/context-packs/reference/getting-started.md +13 -8
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +4 -0
- package/daemon/context-packs/reference/tmux-servers.md +8 -2
- package/daemon/context-packs/reference/whats-new.md +153 -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/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/SKILL.md +7 -0
- 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/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- 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/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.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +27 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +11 -2
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +32 -9
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts +4 -4
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +37 -8
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +9 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +23 -3
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +8 -0
- 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 +6 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/163_network_installations.d.ts +7 -0
- package/daemon/dist/db/migrations/163_network_installations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/163_network_installations.js +23 -0
- package/daemon/dist/db/migrations/163_network_installations.js.map +1 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts +5 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js +9 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js.map +1 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts +4 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.js +17 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.js.map +1 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +5 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +12 -3
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +8 -3
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +2 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/hosts/pairing-ask.d.ts +8 -0
- package/daemon/dist/domain/hosts/pairing-ask.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/pairing-ask.js +20 -0
- package/daemon/dist/domain/hosts/pairing-ask.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.d.ts +30 -0
- package/daemon/dist/domain/input-read-diagnostic.d.ts.map +1 -0
- package/daemon/dist/domain/input-read-diagnostic.js +32 -0
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -0
- package/daemon/dist/domain/native-model-picker.d.ts +8 -0
- package/daemon/dist/domain/native-model-picker.d.ts.map +1 -0
- package/daemon/dist/domain/native-model-picker.js +35 -0
- package/daemon/dist/domain/native-model-picker.js.map +1 -0
- package/daemon/dist/domain/native-process-lineage.d.ts +6 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +34 -29
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +6 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +124 -2
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +32 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +65 -28
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts +97 -0
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-installations.js +371 -0
- package/daemon/dist/domain/network/network-installations.js.map +1 -0
- package/daemon/dist/domain/operation-correlation.d.ts +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
- package/daemon/dist/domain/operation-correlation.js +1 -1
- package/daemon/dist/domain/operation-correlation.js.map +1 -1
- package/daemon/dist/domain/process-observation-pass.d.ts +20 -0
- package/daemon/dist/domain/process-observation-pass.d.ts.map +1 -0
- package/daemon/dist/domain/process-observation-pass.js +80 -0
- package/daemon/dist/domain/process-observation-pass.js.map +1 -0
- package/daemon/dist/domain/queue-erasure.d.ts +10 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +31 -18
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +10 -1
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.js +25 -3
- package/daemon/dist/domain/queue-recovery.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +23 -2
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +77 -4
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +1 -0
- package/daemon/dist/domain/queue-retention.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 +335 -50
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/receiver-context.d.ts.map +1 -1
- package/daemon/dist/domain/receiver-context.js +3 -2
- package/daemon/dist/domain/receiver-context.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +3 -0
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +5 -0
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +6 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +69 -5
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +2 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +2 -1
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +9 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +2 -0
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +3 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +8 -5
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +20 -2
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +2 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +37 -6
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +8 -3
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +20 -0
- package/daemon/dist/domain/team-operations.d.ts.map +1 -0
- package/daemon/dist/domain/team-operations.js +23 -0
- package/daemon/dist/domain/team-operations.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +12 -2
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +52 -2
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts +42 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.js +118 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +3 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-adapter.d.ts +3 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-adapter.js +10 -1
- package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts +76 -0
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-agent-status.js +168 -0
- package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +12 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +3 -2
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +9 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts +8 -2
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +5 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +15 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +108 -44
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.js +4 -2
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-validator.js +16 -0
- package/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/daemon/dist/herdr-live-workspace-surface.d.ts +2 -0
- package/daemon/dist/herdr-live-workspace-surface.d.ts.map +1 -0
- package/daemon/dist/herdr-live-workspace-surface.js +2 -0
- package/daemon/dist/herdr-live-workspace-surface.js.map +1 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +1 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +5 -1
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +23 -14
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +7 -3
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +52 -17
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +9 -0
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigspec.js +13 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +24 -5
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/terminal.js +1 -1
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/server.d.ts +1 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +2 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +19 -5
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/tmux-server-start-surface.d.ts +2 -0
- package/daemon/dist/tmux-server-start-surface.d.ts.map +1 -0
- package/daemon/dist/tmux-server-start-surface.js +2 -0
- package/daemon/dist/tmux-server-start-surface.js.map +1 -0
- package/daemon/dist/tmux-server-start.d.ts +13 -0
- package/daemon/dist/tmux-server-start.d.ts.map +1 -0
- package/daemon/dist/tmux-server-start.js +36 -0
- package/daemon/dist/tmux-server-start.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +34 -7
- package/daemon/docs/reference/agent-state-taxonomy.md +2 -1
- package/daemon/docs/reference/daemon-http-clients.md +42 -0
- package/daemon/docs/reference/getting-started.md +13 -8
- package/daemon/docs/reference/hosted-members.md +29 -3
- package/daemon/docs/reference/network-connector.md +76 -5
- package/daemon/docs/reference/operation-correlation.md +18 -2
- package/daemon/docs/reference/queue-erasure.md +7 -5
- package/daemon/docs/reference/quickstart.md +2 -2
- package/daemon/docs/reference/rig-spec.md +4 -0
- package/daemon/docs/reference/seat-delivery.md +16 -1
- package/daemon/docs/reference/terminal-sessions.md +12 -0
- package/daemon/docs/reference/tmux-servers.md +8 -2
- package/daemon/docs/reference/whats-new.md +153 -15
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +27 -11
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +11 -3
- package/dist/build-info.js +3 -3
- package/dist/commands/broadcast.js +7 -3
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +8 -3
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +50 -10
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts +0 -4
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +1 -19
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +2 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +5 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.js +2 -2
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +96 -3
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +72 -17
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +44 -0
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +61 -3
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +2 -4
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +3 -12
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/seat.js +2 -2
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +4 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +6 -1
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +9 -7
- package/dist/commands/terminal.js.map +1 -1
- package/dist/config-store.d.ts +14 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +34 -5
- package/dist/config-store.js.map +1 -1
- package/dist/lib/check-in.d.ts +7 -0
- package/dist/lib/check-in.d.ts.map +1 -0
- package/dist/lib/check-in.js +13 -0
- package/dist/lib/check-in.js.map +1 -0
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +25 -2
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +12 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +185 -57
- package/dist/mcp-server.js.map +1 -1
- package/dist/person-registration-offer.d.ts +10 -0
- package/dist/person-registration-offer.d.ts.map +1 -0
- package/dist/person-registration-offer.js +25 -0
- package/dist/person-registration-offer.js.map +1 -0
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +20 -102
- package/dist/terminal-window.js.map +1 -1
- package/dist/tmux-attachment.d.ts.map +1 -1
- package/dist/tmux-attachment.js +3 -1
- package/dist/tmux-attachment.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/config/pairing.d.ts.map +1 -1
- package/tui/dist/config/pairing.js +8 -3
- package/tui/dist/config/pairing.js.map +1 -1
- package/tui/dist/connected-assistants.d.ts +20 -0
- package/tui/dist/connected-assistants.d.ts.map +1 -0
- package/tui/dist/connected-assistants.js +51 -0
- package/tui/dist/connected-assistants.js.map +1 -0
- package/tui/dist/daemon-client.d.ts +8 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +8 -0
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +13 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +4 -0
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/topology/glyphs.d.ts.map +1 -1
- package/tui/dist/topology/glyphs.js +4 -0
- package/tui/dist/topology/glyphs.js.map +1 -1
- package/tui/dist/types.d.ts +11 -0
- package/tui/dist/types.d.ts.map +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** tmux 3.3a–3.6 inherits its creating client's limits. This runs in that child only:
|
|
2
|
+
* never lower an already higher soft limit, change the hard limit, or restart a server. */
|
|
3
|
+
export const TMUX_SERVER_LIMIT_WARNING = "[tmux] Could not raise the open-file limit for a new terminal server; continuing with the inherited limit.";
|
|
4
|
+
export const TMUX_SERVER_LIMIT_PREFIX = `
|
|
5
|
+
openrig_tmux_nofile() {
|
|
6
|
+
openrig_tmux_soft=$(ulimit -S -n) || return 1
|
|
7
|
+
case "$openrig_tmux_soft" in unlimited) return 0;; ''|*[!0-9]*) return 1;; esac
|
|
8
|
+
openrig_tmux_hard=$(ulimit -H -n) || return 1
|
|
9
|
+
openrig_tmux_target=8192
|
|
10
|
+
case "$openrig_tmux_hard" in
|
|
11
|
+
unlimited) ;;
|
|
12
|
+
''|*[!0-9]*) return 1;;
|
|
13
|
+
*) if [ "$openrig_tmux_hard" -lt "$openrig_tmux_target" ]; then openrig_tmux_target=$openrig_tmux_hard; fi;;
|
|
14
|
+
esac
|
|
15
|
+
[ "$openrig_tmux_soft" -ge "$openrig_tmux_target" ] || ulimit -S -n "$openrig_tmux_target"
|
|
16
|
+
}
|
|
17
|
+
openrig_tmux_nofile 2>/dev/null || printf '%s\\n' '${TMUX_SERVER_LIMIT_WARNING}' >&2
|
|
18
|
+
`;
|
|
19
|
+
/** Production callers use full command names. A matching data argument merely gets the same harmless child limit. */
|
|
20
|
+
export function mayStartTmuxServer(args) {
|
|
21
|
+
return args.some(arg => ["new-session", "start-server", "attach-session", "-D"].includes(arg));
|
|
22
|
+
}
|
|
23
|
+
export function tmuxServerStartCommand(file, args) {
|
|
24
|
+
if (process.platform === "win32" || !mayStartTmuxServer(args))
|
|
25
|
+
return { file, args };
|
|
26
|
+
return { file: "/bin/sh", args: ["-c", TMUX_SERVER_LIMIT_PREFIX + 'exec "$0" "$@"', file, ...args] };
|
|
27
|
+
}
|
|
28
|
+
let warned = false;
|
|
29
|
+
/** execFile captures stderr even on success; surface this advisory once per process. */
|
|
30
|
+
export function reportTmuxServerLimit(stderr) {
|
|
31
|
+
if (!warned && String(stderr ?? "").includes(TMUX_SERVER_LIMIT_WARNING)) {
|
|
32
|
+
warned = true;
|
|
33
|
+
console.warn(TMUX_SERVER_LIMIT_WARNING);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=tmux-server-start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tmux-server-start.js","sourceRoot":"","sources":["../src/tmux-server-start.ts"],"names":[],"mappings":"AAAA;2FAC2F;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,4GAA4G,CAAC;AACtJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;qDAaa,yBAAyB;CAC7E,CAAC;AAEF,qHAAqH;AACrH,MAAM,UAAU,kBAAkB,CAAC,IAAuB;IACxD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAY,EAAE,IAAc;IACjE,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,gBAAgB,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;AACvG,CAAC;AAED,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,wFAAwF;AACxF,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CAAC;QACxE,MAAM,GAAG,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -35,8 +35,17 @@ command. `rig ps --nodes` shows it under "Startup details (<seat>)", and
|
|
|
35
35
|
|
|
36
36
|
The attention codes that stop startup this way are `trust_gate`,
|
|
37
37
|
`hook_trust_gate`, `update_gate`, `login_required`, `mcp_gate`,
|
|
38
|
-
`bypass_consent_gate`, `
|
|
38
|
+
`bypass_consent_gate`, `claude_resume_selection_prompt`,
|
|
39
|
+
`claude_gated_grants_gate`, `codex_auth_refusal` and `codex_client_incompatible`.
|
|
39
40
|
They are recognized from each harness's English prompt text.
|
|
41
|
+
`claude_gated_grants_gate` is Claude Code's workspace trust check that warns "This folder
|
|
42
|
+
pre-approves N tool permissions" (from the folder's `.claude/settings.json`): OpenRig never
|
|
43
|
+
answers it, not even with `recovery.auto_drive_provider_prompts`, because its default choice
|
|
44
|
+
declines those permissions (or exits) and approving them is your call. With that setting on,
|
|
45
|
+
the plain workspace trust prompt is answered only when its options are exactly "No, exit" and
|
|
46
|
+
"Yes, I trust this folder": Claude Code 2.1.322 opens it on "No, exit", so OpenRig moves the
|
|
47
|
+
selection down once and presses Enter only after it reads the focus on "Yes". Any other option
|
|
48
|
+
set, a prompt drawn without a cursor or a focus that does not reach "Yes" gets no confirmation.
|
|
40
49
|
|
|
41
50
|
## Continue a Codex fork whose child ID arrived late
|
|
42
51
|
|
|
@@ -360,6 +369,15 @@ not the destination's file contents.)
|
|
|
360
369
|
- `rig seat launch <seat> --fresh --stop --reason <text>`, which starts a blank conversation; or
|
|
361
370
|
- `rig handover <seat> --source rebuild --reason <text>`, which carries durable context.
|
|
362
371
|
|
|
372
|
+
A rebuild lists the current recap, lineage lessons and restore packet as required
|
|
373
|
+
priming. Superseded recaps are optional history, newest first. The briefing shows
|
|
374
|
+
the newest `output.rebuild_recaps` paths (default 3) and their shared
|
|
375
|
+
`recap-superseded/` folder when that pointer covers the complete history. Other
|
|
376
|
+
layouts retain the full list. Set `rig config set output.rebuild_recaps 0` to
|
|
377
|
+
always list every path; `OPENRIG_OUTPUT_REBUILD_RECAPS` overrides the setting.
|
|
378
|
+
This changes only the briefing: the handover result still records every resolved
|
|
379
|
+
artifact, and no recap file is removed.
|
|
380
|
+
|
|
363
381
|
For Codex rebuilds, OpenRig also carries a complete supported native permission policy read from the live
|
|
364
382
|
predecessor's own conversation and process, without adding fresh-launch grants. A later recorded seat permission
|
|
365
383
|
or policy choice, or a differing declared successor profile, takes precedence. Missing, stale or unsupported observations keep the existing launch
|
|
@@ -405,10 +423,10 @@ Each startup file and action specifies when it applies:
|
|
|
405
423
|
- a launch replaces it, as launches always did, and names it (`guidance_block_refreshed_unrecorded`);
|
|
406
424
|
- an exact resume or a handover leaves it, and names it as possibly stale (`guidance_block_may_be_stale`).
|
|
407
425
|
|
|
408
|
-
**A file keeps one copy of each block.**
|
|
426
|
+
**A file keeps one copy of each distinct block text, and nothing you wrote is removed.**
|
|
409
427
|
- **Touched markers:** a marker an editor or formatter rewrapped, with spaces or line breaks inside the comment, still reads as its block, and the next write puts it back in OpenRig's form.
|
|
410
|
-
- **Collected copies:**
|
|
411
|
-
- **A marker that lost its pair:** OpenRig can't tell where that block starts or ends, so it adds no copy beside it and names it (`guidance_block_markers_damaged`). Put back the missing marker or remove the partial block, and OpenRig's next write
|
|
428
|
+
- **Collected copies:** a copy that repeats an earlier one exactly is removed. Beside a copy you edited, OpenRig's own unedited copies are removed too, and every different edited copy stays (`guidance_block_copies_removed`).
|
|
429
|
+
- **A marker that lost its pair:** OpenRig can't tell where that block starts or ends, so it adds no copy beside it and names it (`guidance_block_markers_damaged`). Put back the missing marker or remove the partial block, and OpenRig's next write treats that block like any other. `rig package install` leaves such a file as it is, names it in its result (`notes`), and installs the rest. A marker without its pair beside a complete block is named too (`guidance_block_marker_unpaired`), and the block is written.
|
|
412
430
|
|
|
413
431
|
An exact resume doesn't type anything into the resumed conversation. So there, the restore result names the block (`guidanceNotes`), but the seat isn't told.
|
|
414
432
|
|
|
@@ -615,14 +633,23 @@ daemon's `CODEX_HOME`, else `~/.codex`.
|
|
|
615
633
|
The guidance still goes to the repository `AGENTS.md`, as before, when:
|
|
616
634
|
|
|
617
635
|
- a layer OpenRig reads sets `developer_instructions`, or can't be read. A launch warning names the file;
|
|
618
|
-
- the launch
|
|
619
|
-
|
|
620
|
-
- the seat is restored, even when the restore starts a new conversation. A restore keeps the guidance file its launch
|
|
636
|
+
- the launch forks a conversation. Developer instructions on a fork haven't been tested;
|
|
637
|
+
- the seat is restored and the restore starts a new conversation. A restore keeps the guidance file its launch
|
|
621
638
|
recorded, which for Codex is the repository `AGENTS.md`;
|
|
622
639
|
- a handover successor starts (fresh, fork or rebuild). Its launch carries no guidance of its own, so the handover
|
|
623
640
|
first puts the seat's missing blocks back in the repository `AGENTS.md` from its saved startup context;
|
|
624
641
|
- Codex is older than 0.164.0, or its version is unknown.
|
|
625
642
|
|
|
643
|
+
A resume of the seat's own conversation, on a snapshot restore or `rig up --existing`, chooses as a fresh launch
|
|
644
|
+
does: on Codex 0.164.0 or later with none configured, the guidance blocks the repository `AGENTS.md` doesn't hold go
|
|
645
|
+
with the resume as `-c developer_instructions=…` instead of being put back in that file, and the guidance file its
|
|
646
|
+
launch recorded isn't changed. A file that already holds blocks keeps them: a block OpenRig wrote whose source has
|
|
647
|
+
changed is refreshed, and one edited by hand, or with no record of OpenRig writing it, is left as it is and named. A
|
|
648
|
+
block whose source is gone or can't be read isn't sent, and the restore reports it as missing. A seat in a rig without
|
|
649
|
+
pods starts its resumed conversation before its startup runs, so its missing blocks are still put back in the
|
|
650
|
+
repository `AGENTS.md`. Whether Codex keeps the earlier session's developer instructions as well isn't documented
|
|
651
|
+
by Codex; the text sent with the resume is the current one.
|
|
652
|
+
|
|
626
653
|
A seat's role still arrives as startup text, and the seat-skills line, after the person's yes, still goes to
|
|
627
654
|
`AGENTS.md`.
|
|
628
655
|
|
|
@@ -202,7 +202,8 @@ LIFECYCLE); see the
|
|
|
202
202
|
its startup context is still pending for `rig seat continue`.
|
|
203
203
|
- **Oriented:** `verified`, `missing`, `rejected`, `n-a`, from the startup proof.
|
|
204
204
|
- **Attention codes:** `trust_gate`, `hook_trust_gate`, `update_gate`, `login_required`,
|
|
205
|
-
`mcp_gate`, `bypass_consent_gate`, `
|
|
205
|
+
`mcp_gate`, `bypass_consent_gate`, `claude_resume_selection_prompt`,
|
|
206
|
+
`claude_gated_grants_gate`, `codex_auth_refusal`, `codex_client_incompatible`.
|
|
206
207
|
- **Restore outcome:** `resumed`, `fresh-primed`, `awaiting-decision`, `attention_required`,
|
|
207
208
|
`failed` (plus `rebuilt`, `operator_recovered` and the legacy `fresh`). A seat joined with
|
|
208
209
|
`rig attach` as an external CLI reads `left_attached`: restore leaves it as it is.
|
|
@@ -82,6 +82,13 @@ All of them are server-sent events (`text/event-stream`):
|
|
|
82
82
|
`?replay=all`, no `replay`, or any other value sends the whole log first. A `Last-Event-ID` header (what
|
|
83
83
|
`EventSource` sends when it reconnects) sends the events after that id instead, whatever `replay` says.
|
|
84
84
|
Live events that arrive during the replay follow it, without duplicates.
|
|
85
|
+
When a person clicks an answer on an ask with questions (in Steering, the Feed, Slack or an MCP client), the stream
|
|
86
|
+
carries `queue.answer_recorded`: `{ qitemId, actorSession, questionId, answered, questions, complete, summary }`.
|
|
87
|
+
`complete: false` means the set is still partial: the ask stays open, and its answers haven't gone back yet. The
|
|
88
|
+
event carries ids and counts, not the choice; read the ask for its `humanAnswers`. A click that changes nothing (the
|
|
89
|
+
same option again) has no event, and neither does a typed reply, which settles the ask through its own
|
|
90
|
+
`queue.updated`. The event is recorded after the answer: if it can't be recorded, the answer still stands, so a
|
|
91
|
+
client that re-reads the ask after a gap still sees it.
|
|
85
92
|
- **`GET /api/activity/events`**: live only, no replay or ids. Each message is named after its event type:
|
|
86
93
|
`seat.activity_changed`, `seat.rung_health`, `proof.judged` or `proof.sources_changed`. It tells a view to read
|
|
87
94
|
again; it carries no derived state.
|
|
@@ -151,6 +158,41 @@ An outbox entry's `deliveryState` reports the send attempt; only `delivered` con
|
|
|
151
158
|
an open FYI, or a closed ask is not that receipt. The rig-wide reads and their limits are described below; the existing
|
|
152
159
|
`outbox/list?senderSession=<session>` read remains available.
|
|
153
160
|
|
|
161
|
+
### What needs a person, and how their answers link back (`team-operations.v1`)
|
|
162
|
+
|
|
163
|
+
`GET /api/team-operations/capabilities` says which team-operations jobs this daemon supports, separately from its
|
|
164
|
+
build:
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{ "contract": "team-operations.v1",
|
|
168
|
+
"capabilities": { "needs-me.read": "supported", "needs-me.answer": "not-supported", "needs-me.follow": "not-supported" },
|
|
169
|
+
"build": { "semver": "…", "commit": "…" } }
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
A capability reads `supported`, `not-supported` or `unknown`, and a missing key means `unknown`. A daemon without the
|
|
173
|
+
route (HTTP 404) predates the contract: keep reading what it already returns. In a source run, `build` is
|
|
174
|
+
`{ semver: null, commit: null }`.
|
|
175
|
+
|
|
176
|
+
With `needs-me.read` supported:
|
|
177
|
+
|
|
178
|
+
- **What needs the person:** `GET /api/attention?view=<person-id>` (the same read as the Feed). Each queue item adds
|
|
179
|
+
`revision` and `about`. `revision` is the request's opaque decision revision: the same value as that row's
|
|
180
|
+
`decisionRevision`, and what an answer can name as `expectedRevision` so it applies only to the version the person
|
|
181
|
+
read. `about` lists the requests it concerns by id: a row parked on the person is itself the request, and an ask is
|
|
182
|
+
about the open rows blocked on it (at most 100; empty when none are recorded).
|
|
183
|
+
- **A snapshot watermark:** the response's `watermark` is the newest event `seq` read before the snapshot. Follow
|
|
184
|
+
`GET /api/events` from it with `Last-Event-ID: <watermark>`: every event after the snapshot is replayed, some possibly
|
|
185
|
+
already reflected in it. A click that records or changes an answer emits `queue.answer_recorded` even while the set
|
|
186
|
+
is partial. An identical repeated choice, or a later click after a pending ask's answer set is complete, records
|
|
187
|
+
nothing new and emits none. Events are best effort; re-read the snapshot or row after a stream gap.
|
|
188
|
+
- **The answers returned to a request:** `GET /api/queue/<qitemId>` adds `answers`, oldest first, each
|
|
189
|
+
`{ qitemId, by, at, text, episode, recordedIdentity }`. They are found by the answer row's link to the request, not
|
|
190
|
+
by its text, so don't parse the `In reply to:` line in an answer's body. `text` is the person's answer without that
|
|
191
|
+
footer. `episode` names the park an answer belongs to, or is null. `recordedIdentity` is the identity provenance
|
|
192
|
+
recorded when the answer row was created. An answer row's own read has `replyTo`, the request it answers. A partial
|
|
193
|
+
set of choices stays on the request's `humanAnswers` until the whole set is returned. A runner's permission request
|
|
194
|
+
or a host pairing request is answered in place, with no answer row.
|
|
195
|
+
|
|
154
196
|
## Route details
|
|
155
197
|
|
|
156
198
|
- **A rig's queue history:** `GET /api/queue/list?rig=<rig>&updatedSince=<ISO time>&sort=updated` returns the
|
|
@@ -185,10 +185,10 @@ agent doing the setup. Both use this release's tag:
|
|
|
185
185
|
|
|
186
186
|
```sh
|
|
187
187
|
# Claude Code
|
|
188
|
-
npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
188
|
+
npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs" --skill rigs --agent claude-code
|
|
189
189
|
|
|
190
190
|
# Codex
|
|
191
|
-
npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
191
|
+
npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs" --skill rigs --agent codex
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
|
|
@@ -203,11 +203,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
|
|
|
203
203
|
script will do and changes nothing:
|
|
204
204
|
|
|
205
205
|
```sh
|
|
206
|
-
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
206
|
+
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.14/scripts/install.sh | sh -s -- --dry-run
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
The same command without `--dry-run`,
|
|
210
|
-
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
210
|
+
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.14/scripts/install.sh | sh`, installs the
|
|
211
211
|
latest published `@openrig/cli` with `npm install -g`,
|
|
212
212
|
runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
|
|
213
213
|
Codex and may install a missing one, as described below. A failed step prints
|
|
@@ -349,8 +349,13 @@ with `rig up kernel --existing`. A seat you stopped or unclaimed also stays down
|
|
|
349
349
|
While the kernel's other seats are running, `rig up kernel --existing` refuses
|
|
350
350
|
(it restores only a kernel with no live session), so start one stopped seat with
|
|
351
351
|
`rig launch kernel <logical id>` (`--plan` first). It restores that seat from the
|
|
352
|
-
kernel
|
|
353
|
-
|
|
352
|
+
kernel snapshot that restore ranks first: the newest usable automatic one (taken
|
|
353
|
+
before `rig down`, on the periodic schedule, or at a runtime switch), even when a
|
|
354
|
+
manual one is newer, and otherwise the newest usable one. `--plan` names the
|
|
355
|
+
snapshot it picked and any newer usable one, and `--snapshot-id <id>` picks one
|
|
356
|
+
yourself. Under the default restore policy, which the kernel's seats keep, it
|
|
357
|
+
resumes the seat's saved conversation; a seat it can't resume is reported as
|
|
358
|
+
waiting for a decision, not as started.
|
|
354
359
|
`rig seat launch <seat> --fresh --reason "…"` instead starts a new conversation
|
|
355
360
|
with no continuity source: use it only when you want a fresh occupant, since the
|
|
356
361
|
seat's earlier conversation isn't carried.
|
|
@@ -875,8 +880,8 @@ What it costs:
|
|
|
875
880
|
## Stop your teams
|
|
876
881
|
|
|
877
882
|
`rig down <rig-name>` ends that rig's agent sessions and work in progress.
|
|
878
|
-
A terminal OpenRig didn't start, such as a seat joined with `rig attach --self
|
|
879
|
-
is left running: `rig down` names it with the commands to stop it by hand, and
|
|
883
|
+
A terminal OpenRig didn't start, such as a seat joined with `rig attach --self`
|
|
884
|
+
from a tmux pane, is left running: `rig down` names it with the commands to stop it by hand, and
|
|
880
885
|
exits 2.
|
|
881
886
|
Read `rig ps --nodes --rig <rig-name>` first so you can see who will stop;
|
|
882
887
|
`rig down` also prints the rig's recorded agent sessions and their activity
|
|
@@ -109,7 +109,9 @@ OpenRig doesn't observe a hosted member between its calls, so it never reads idl
|
|
|
109
109
|
- **Presence:** each entry carries `presence`, which says what OpenRig last saw of the member. It isn't pickup, and `null` means unknown:
|
|
110
110
|
- `lastCallAt`: its last authenticated call to this host's `rig mcp serve --http`, recorded at most once a minute in
|
|
111
111
|
`<OPENRIG_HOME>/mcp-http-presence.json`, beside the token file;
|
|
112
|
-
- `lastWake`: its latest ring and the result, among its 50 most recent rows
|
|
112
|
+
- `lastWake`: its latest ring and the result, among its 50 most recent rows;
|
|
113
|
+
- `checkIn`: its check-in status, last check-in and stated cadence, as described in [Check-in status](#check-in-status)
|
|
114
|
+
(unknown, with the reason, when the daemon gives none).
|
|
113
115
|
- `rig roster show` and `find` show the last call; the last ring is in `rig_team`.
|
|
114
116
|
|
|
115
117
|
### Check-in status
|
|
@@ -135,7 +137,13 @@ A stated cadence is its person's statement: neither reading proves the assistant
|
|
|
135
137
|
anything up. It's a status only. Work addressed to a member that isn't checking in still queues and is rung as before, a check-in
|
|
136
138
|
isn't pickup (pickup is its claim), and no check-in doesn't mean it's idle, failed or safe. `GET /api/queue/hosted-members`
|
|
137
139
|
gives this daemon's host id and each member on this host with its status, last check-in and stated cadence (with the
|
|
138
|
-
reason when it's unknown); `rig roster show` and `find` show it as `Check-in:`, for a team with or without terminal seats
|
|
140
|
+
reason when it's unknown); `rig roster show` and `find` show it as `Check-in:`, for a team with or without terminal seats, and `rig ps` (with or
|
|
141
|
+
without `--nodes`, and when it has no rigs or nodes to show) lists every connected assistant after its table, one line
|
|
142
|
+
each. That's on this host, and in the node view of an HTTP host; an SSH host's `rig ps` prints its own. An HTTP host's
|
|
143
|
+
rig view and the multi-host fan-out leave the section out. When the list can't be read, for example from an older
|
|
144
|
+
daemon, it says check-in is unavailable instead. Its `--json` output is unchanged. The TUI's
|
|
145
|
+
instance and rig tables list them the same way after their seats, with times in the viewer's zone; when the list can't be read,
|
|
146
|
+
they say check-in is unavailable, as `rig ps` does.
|
|
139
147
|
When the member has unclaimed work, the standing notice described above states the same status in its `check-ins:`
|
|
140
148
|
line; when that notice is filed doesn't change.
|
|
141
149
|
|
|
@@ -169,10 +177,28 @@ and nothing else is offered:
|
|
|
169
177
|
`rig_queue_create` that leaves out `destination` goes to that receiver. The operator sets it; a caller can't. It must be
|
|
170
178
|
exactly one existing local node within that request's grant, or nothing is written. An explicit `destination` works as
|
|
171
179
|
before.
|
|
180
|
+
- **A seat by its name:** a `destination` with no `@` names a seat as its team shows it: its session's own name, then its
|
|
181
|
+
pod-member form, then that name's slug, in the connection's one rig or the configured receiver's. Only seats the grant
|
|
182
|
+
can address count, and the first of these that any of them matches decides, so another seat's slug never makes an exact
|
|
183
|
+
name ambiguous and a seat the grant can't address never shadows one it can. The item is stored under that
|
|
184
|
+
seat's actual session. A slug two seats match returns `destination_ambiguous` with the candidates, and a name that no
|
|
185
|
+
seat the grant can reach has returns `destination_not_found`. A name the grant can't address as written (its own seat,
|
|
186
|
+
or another assistant's without `team`/`list`) stays `out_of_scope`, whether or not that seat exists.
|
|
172
187
|
- **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
|
|
173
188
|
another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
|
|
174
189
|
(`cus-<id>-<connection>@<rig>`), so an existing connection keeps the reach it had.
|
|
175
|
-
- **Messages are items:** a message is an item the receiver reads and closes,
|
|
190
|
+
- **Messages are items:** a message is an item the receiver reads and closes, with any reply in its `resolution`. The
|
|
191
|
+
sender reads that reply on the same item. Nothing wakes the sender or posts a new item for it. A separate new message is
|
|
192
|
+
new work.
|
|
193
|
+
- **A fair-use limit on new work:** the service can add `throttle: { new_work: true, retry_after_seconds: <n> }` to an
|
|
194
|
+
active answer.
|
|
195
|
+
- While it does, a `rig_queue_create` that would open a new item writes nothing. It returns `fair_use_retry_later` with
|
|
196
|
+
`retryAfterSeconds` (1 to 600) and the `qitemId` to retry with.
|
|
197
|
+
- A retry of a create that already landed is answered from the stored item, as before.
|
|
198
|
+
- Everything else is served: reading, claiming and closing existing items (a reply in `resolution` included), and
|
|
199
|
+
answering the team's questions. A separate new message or revision waits like any other new item.
|
|
200
|
+
- It's never a credential refusal, and a `throttle` that can't be read is ignored.
|
|
201
|
+
- The service is asked once per HTTP request (initialize and tool listing included), not once per tool call.
|
|
176
202
|
- **What the sender can tell, from the item it reads:**
|
|
177
203
|
- **Queued:** the item exists and is `pending` with no claim.
|
|
178
204
|
- **Picked up:** the receiver's claim (`in-progress`).
|
|
@@ -8,7 +8,73 @@ with one grant per participant. The network connector puts one selected local se
|
|
|
8
8
|
The connector opens no port: your daemon makes every connection outward, and the hub never connects to your machine. Work the hub
|
|
9
9
|
sends that participant runs on your seat, under your accounts, and the result goes back to the hub item.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**The network connector is experimental and unsupported.** Use it only if you choose to, at your own risk.
|
|
12
|
+
|
|
13
|
+
## Enroll in an account, then connect by name
|
|
14
|
+
|
|
15
|
+
When your hub is an account's network, enroll this daemon once with the one-time code its page shows, then connect
|
|
16
|
+
seats by name:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
rig network enroll <code> --site <site URL>
|
|
20
|
+
rig network connect <seat> --as <name>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- `enroll` trades the code, with this daemon's host id, for an installation key. The key is stored like a participant's
|
|
24
|
+
token, under `<OpenRig home>/network-secrets/<installation>/key.json`, and is never returned or shown. A code is
|
|
25
|
+
single-use and short-lived; a refused one says why, so get a new one from the page. If the account doesn't answer,
|
|
26
|
+
whether it took the code is unknown: try again with the same code, and get a new one if that's refused.
|
|
27
|
+
- Enrolling trusts the site with where your connected seats' work goes: for each name, the account answers the front
|
|
28
|
+
and rig the binding reaches.
|
|
29
|
+
- The installation key goes only to the site you enrolled at: a redirect from it isn't followed. Each `enroll`,
|
|
30
|
+
`connect` or `disconnect` spends at most 30 seconds with the account in all, and the command waits 45 seconds for the
|
|
31
|
+
daemon, so you see the account's own answer or error.
|
|
32
|
+
- The account keeps one list of the installation's names, and every change sends the whole list. Changes to it run one
|
|
33
|
+
at a time on this daemon, each reading the names to keep in its turn, so two connects started together both stay
|
|
34
|
+
connected.
|
|
35
|
+
- `connect --as <name>` lists the name with the account, which answers that participant's bearer, its MCP front and its
|
|
36
|
+
rig. The binding then reaches that front as `<name>@<rig>`, the same as a direct connect. A name is lowercase letters,
|
|
37
|
+
digits and inner dashes, up to 32. One that another connection to the account uses is refused.
|
|
38
|
+
- If the answer to a connect is lost, the next connect drops the name and lists it again, which gets a fresh bearer and
|
|
39
|
+
ends the old one.
|
|
40
|
+
- If the account listed the name but the binding can't be made here, OpenRig asks the account to drop the name again.
|
|
41
|
+
That's best effort: if it fails too, the error says the account may still list the name.
|
|
42
|
+
- `disconnect` ends the binding here, then has the account stop listing the name, which revokes it there. Once the
|
|
43
|
+
account's answer no longer lists the name, `disconnect` says the account stopped listing it. If the account can't be
|
|
44
|
+
reached or its answer is lost, the binding is still ended, the error says OpenRig couldn't confirm the account dropped
|
|
45
|
+
the name and names the `rig network disconnect <binding id>` to run again, and `rig network status` keeps showing it
|
|
46
|
+
as unconfirmed. A later answer from the same account installation that no longer lists the name marks it dropped.
|
|
47
|
+
- `rig network status` shows the enrollment above the bindings.
|
|
48
|
+
|
|
49
|
+
### Enroll again after a lost key or a removed installation
|
|
50
|
+
|
|
51
|
+
When the installation key is missing, or the account no longer recognizes the installation, the error says to enroll
|
|
52
|
+
again with a new code from the account page:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
rig network enroll <code> --site <site URL> --replace
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Without `--replace`, a second enroll at the same site is refused and the code isn't spent. With it, the replace first
|
|
59
|
+
waits for any other change to this enrollment to finish, within the same 30 seconds; one that runs out of time while
|
|
60
|
+
waiting says so and doesn't send the code. The account makes a new installation, with a new key, for the new code. Here,
|
|
61
|
+
that key takes the old one's place and the bindings made through the old installation end, in one step:
|
|
62
|
+
|
|
63
|
+
- If that step fails after the account accepted the code, the enrollment's record here doesn't change, and the error
|
|
64
|
+
says so. The key is put back too, but moving key files happens outside that record's rollback. If putting it back also
|
|
65
|
+
fails (on a full or read-only disk, for example), the old key is left as `key.json.prev` beside `key.json` in the
|
|
66
|
+
installation's folder under `network-secrets/` in the OpenRig home: move it back to `key.json` before you go on. A
|
|
67
|
+
`key.json.next` there is a staged new key, and the next replace removes it. The old enrollment keeps working only
|
|
68
|
+
while the account keeps the old installation, and the account now has a new installation whose key nothing here
|
|
69
|
+
holds: remove it on the account page, then enroll again with a new code.
|
|
70
|
+
- Once the step is done, `enroll` names the bindings it ended. The old installation may still list their names, and the
|
|
71
|
+
new key can't drop them, so remove them on the account page. `rig network status` marks each of them as possibly still
|
|
72
|
+
listed under the old installation, as it does a binding that ended earlier without the account confirming the drop:
|
|
73
|
+
only the installation a name was listed under can confirm it.
|
|
74
|
+
- If cleanup after the step doesn't finish (removing the old key's backup, or an ended binding's credential), `enroll`
|
|
75
|
+
reports it, and the replace still stands.
|
|
76
|
+
|
|
77
|
+
## Connect with a hub URL and a token
|
|
12
78
|
|
|
13
79
|
```bash
|
|
14
80
|
rig network connect <seat> --hub <url> --as <participant> --token-file <path>
|
|
@@ -69,8 +135,9 @@ rig queue update <local item> --state done --closure-reason no-follow-on --resol
|
|
|
69
135
|
rig network status [--json]
|
|
70
136
|
```
|
|
71
137
|
|
|
72
|
-
Each binding shows its seat, participant, hub, state, and its last contact or last error.
|
|
73
|
-
|
|
138
|
+
Each binding shows its seat, participant, hub, state, and its last contact or last error. An ended binding made through
|
|
139
|
+
the account also says when the account hasn't confirmed it dropped the name, or when the name may still be listed under
|
|
140
|
+
a replaced installation. `--json` adds the connector's view: each binding's next pass, backoff and last pass.
|
|
74
141
|
|
|
75
142
|
## When things go wrong
|
|
76
143
|
|
|
@@ -88,7 +155,8 @@ rig network disconnect <binding-or-seat> [--reason "<why>"]
|
|
|
88
155
|
```
|
|
89
156
|
|
|
90
157
|
The binding ends here, so no new work comes in through it, and its credential is removed. Local items and results
|
|
91
|
-
stay.
|
|
158
|
+
stay. A binding made through the account is then dropped there too (see above). For a binding made with a hub URL and
|
|
159
|
+
a token, the hub still lists the participant until it's removed there too.
|
|
92
160
|
|
|
93
161
|
If the credential can't be removed, the binding still ends, and the error names the
|
|
94
162
|
`rig network disconnect <binding id>` to run again. The daemon also removes credentials whose binding isn't active
|
|
@@ -104,11 +172,14 @@ each time it starts.
|
|
|
104
172
|
An atomic close-if-open needs the hub to offer a conditional close.
|
|
105
173
|
- After a disconnect or a revocation, work already taken keeps running here, but its pickup and result no longer reach
|
|
106
174
|
the hub item, which stays at its last reported stage.
|
|
175
|
+
- If the daemon stops between storing a new installation key and recording the enrollment, that key's folder under
|
|
176
|
+
`network-secrets/` stays with no enrollment, and nothing removes it. It's private to you and unused, so remove it by
|
|
177
|
+
hand.
|
|
107
178
|
- **Plain http needs your choice.** `rig network connect` refuses an `http:` hub URL until you add `--allow-http`, because
|
|
108
179
|
the participant's token and its work then cross the network unencrypted, where they can be read. Use the hub's
|
|
109
180
|
`https:` URL where it has one. The choice is recorded on that binding, so the connector doesn't ask again, and
|
|
110
181
|
`rig network status` (and its `--json`) marks the binding unencrypted. OpenRig doesn't judge the address: a private or
|
|
111
|
-
tailnet address doesn't prove the connection is protected.
|
|
182
|
+
tailnet address doesn't prove the connection is protected. `rig network enroll` asks the same for a plain-http site.
|
|
112
183
|
- **Redirects:** the connector follows a hub's redirect only within its own origin, or to its `https:` form on the same
|
|
113
184
|
host. Any other redirect stops the connection with its target named, and the token isn't sent there. Connect the
|
|
114
185
|
binding to the hub's own URL.
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
# HTTP operation correlation
|
|
2
2
|
|
|
3
|
-
`GET /api/operations/capabilities` advertises `operation-correlation.v1` and the supported kinds: `rig.create`, `rig.import`, and `member.add`. A client should check
|
|
3
|
+
`GET /api/operations/capabilities` advertises `operation-correlation.v1` and the supported kinds: `rig.create`, `rig.import`, `rig.materialize`, and `member.add`. A client should check the required kind before relying on correlation; an older daemon may ignore an unfamiliar request header.
|
|
4
4
|
|
|
5
|
-
For `POST /api/rigs`, `POST /api/rigs/import`, and `POST /api/rigs/:rigId/pods/:podNamespace/members`, send a UUID in `X-OpenRig-Operation-Id`. Keep the same daemon, route targets, original request text, and behavior-changing headers for a retry. IDs are case-normalized. An ID that isn't an RFC UUID receives HTTP 400 `Invalid X-OpenRig-Operation-Id` before the route does anything else. Once a request passes the route's own validation, a different request using the same ID receives HTTP 409 `operation_id_conflict`. Matching compares the exact request text, so a change in whitespace or key order is a different request, not an equivalent one; an exact replay receives HTTP 200 with `replayed: true` and current database state. A first request retains its usual status and response fields and adds `operation`.
|
|
5
|
+
For `POST /api/rigs`, `POST /api/rigs/import`, `POST /api/rigs/import/materialize`, and `POST /api/rigs/:rigId/pods/:podNamespace/members`, send a UUID in `X-OpenRig-Operation-Id`. Keep the same daemon, route targets, original request text, and behavior-changing headers for a retry. Materialization binds the target rig (when expanding), source root and cwd override as well as the spec text; it is distinct from launching import. IDs are case-normalized. An ID that isn't an RFC UUID receives HTTP 400 `Invalid X-OpenRig-Operation-Id` before the route does anything else. Once a request passes the route's own validation, a different request using the same ID receives HTTP 409 `operation_id_conflict`. Matching compares the exact request text, so a change in whitespace or key order is a different request, not an equivalent one; an exact replay receives HTTP 200 with `replayed: true` and current database state. A first request retains its usual status and response fields and adds `operation`.
|
|
6
6
|
|
|
7
7
|
The operation contains the rig and node IDs committed by that request. Its `current` field reads the database at response time, including whether recorded resources still exist and the latest recorded session for each node. It does not inspect tmux or prove a launch finished. A reservation with no IDs can mean that execution is still underway or that it failed before creating resources. Replaying an exact request that failed before creating resources returns HTTP 200 with `operation.rigId: null` and `operation.nodeIds: []`; inspect those fields to distinguish it from a replay that recorded resources. Replays never execute the mutation again, retry a launch, or recreate deleted resources. Use a new UUID only when deliberately starting a new execution.
|
|
8
8
|
|
|
9
9
|
This contract stores neither the original response nor a recovery verdict. An HTTP response can be lost after a database commit. External launch effects are outside the database transaction, so the contract is correlation rather than exactly-once execution of external effects.
|
|
10
|
+
|
|
11
|
+
## CLI no-launch preparation
|
|
12
|
+
|
|
13
|
+
`rig import ./team.yaml --materialize-only --operation-id <uuid> --json` prepares topology without starting sessions.
|
|
14
|
+
Save the UUID before running the command and reuse the exact command after a lost response. The CLI checks that the
|
|
15
|
+
daemon advertises `rig.materialize` before writing; a daemon without that capability refuses the explicit retry request.
|
|
16
|
+
`--operation-id` and `--json` apply only to `--materialize-only`, without other import modes. Omitting the operation id
|
|
17
|
+
keeps ordinary materialization behavior; it does not make repeated imports idempotent.
|
|
18
|
+
|
|
19
|
+
JSON output is the native receipt. Both initial and replay receipts carry the same committed ids in
|
|
20
|
+
`operation.rigId` and `operation.nodeIds`. Replays report current database state, not a cached first result. An empty
|
|
21
|
+
receipt leaves the CLI nonzero: it cannot confirm preparation while the original execution is still running or failed
|
|
22
|
+
before creating resources. Text-mode replays still print recorded rig and node IDs when resources are archived or
|
|
23
|
+
missing, with a warning and a nonzero exit status. JSON mode retains the native receipt and the same nonzero status.
|
|
24
|
+
The receipt's ids do not authorize launching anything; use the normal owner-authorized
|
|
25
|
+
[first start of a materialized seat](rig-spec.md#starting-one-materialized-seat) afterward.
|
|
@@ -24,7 +24,7 @@ A queue row is erased in one of two ways:
|
|
|
24
24
|
- events whose payload names it;
|
|
25
25
|
- its mission-control audit rows.
|
|
26
26
|
|
|
27
|
-
**Copies held with someone else go only when they're the owner's.** These are outbox and inbox entries that point at the row or wake for it, and stream reader actions and dispositions that name it (including `duplicate_of`). For account deletion, the owner is the account: both of a copy's sessions must be members. Otherwise the owner is the row's own source and destination. Any other copy is kept and listed under `keptCopies`:
|
|
27
|
+
**Copies held with someone else go only when they're the owner's.** These are outbox and inbox entries that point at the row or wake for it, and stream reader actions and dispositions that name it (including `duplicate_of`). For account deletion, the owner is the account: both of a copy's sessions must be members. Otherwise the owner is the row's own source and destination. OpenRig's own sessions (`daemon@kernel`, and any session starting `system:`), which send its wakes and notices, aren't counted when a copy has another session, so OpenRig's wake to the owner is the owner's. Any other copy is kept and listed under `keptCopies`:
|
|
28
28
|
- `mixed`: one of its sessions is the owner's;
|
|
29
29
|
- `foreign`: none of them are.
|
|
30
30
|
|
|
@@ -36,7 +36,7 @@ Name exactly one.
|
|
|
36
36
|
|
|
37
37
|
| Scope | Erases | Action |
|
|
38
38
|
|---|---|---|
|
|
39
|
-
| `--members <file>` | Account deletion. Every row whose source and destination are both in the file, in any state, open work included. Add `--rig <id>` for the account rig's own records | delete |
|
|
39
|
+
| `--members <file>` | Account deletion. Every row whose source and destination are both in the file, or one in the file and the other OpenRig's own session, in any state, open work included. Add `--rig <id>` for the account rig's own records | delete |
|
|
40
40
|
| `--ids <file>` | Exactly the listed rows. A report's `qitems` entries, or a ledger's lines, keep each entry's own action. A ledger's entries are replayed only for the batches that committed (below) | `--action delete` (default for plain ids) or `--action scrub` |
|
|
41
41
|
| `--routine` | Closed rows past this daemon's retention windows (below) | scrub, then delete |
|
|
42
42
|
|
|
@@ -44,8 +44,10 @@ A file is one entry per line (blank lines and `#` comments are skipped; a line s
|
|
|
44
44
|
|
|
45
45
|
**Account deletion is exact.**
|
|
46
46
|
- The members file is the account's recorded membership: the exact session names of its seats, including departed ones. List every address form the account used, such as a host-suffixed form. Names are compared as given, never by pattern, so a row addressed through an unlisted form is neither erased nor reported.
|
|
47
|
-
- **
|
|
48
|
-
- **
|
|
47
|
+
- **OpenRig's own sessions:** `daemon@kernel` and any `system:` session send OpenRig's own wakes and notices, such as the wake for a sweep finding, a wake escalation or a health finding. They belong to no account, so a row or entry between one of them and a member is the member's and is erased. One with no member endpoint, such as an OpenRig wake to another account's seat or an entry between two of OpenRig's own sessions, is never touched.
|
|
48
|
+
- **Mixed rows:** a row with one member endpoint and the other outside the account is reported under `mixed` (with which endpoint is the member) and left untouched. Deciding who owns it is a separate decision. A row rerouted out of the account while the run is under way (by a fallback, say) is kept too, and reported as `changed-during-run`.
|
|
49
|
+
- **After the rows:** account deletion also removes outbox and inbox entries that no row owns between two members, or between a member and OpenRig's own session, and the members' stream items. An entry with one member endpoint and the other outside the account, or a stream item something still references, is counted and left.
|
|
50
|
+
- **Runs on earlier versions** kept OpenRig's wake for a row they erased (as a mixed copy, then a mixed entry) and reported OpenRig's rows to a member as mixed. Rerunning the same command removes them.
|
|
49
51
|
|
|
50
52
|
**The account's rig.** A rig's own records outlive the rig. Events are kept past rig and node deletion by design, and snapshots, node and seat records and watchdog jobs have no key that cascades. `--rig <id>`, given with `--members`, erases them:
|
|
51
53
|
- the rig's events, including those of its nodes;
|
|
@@ -94,7 +96,7 @@ The command prints one JSON report (`--json` makes it a single line):
|
|
|
94
96
|
| `clean` | `complete`, and nothing was left: no `mixed` rows, mixed `keptCopies`, `gaps`, `unreadableEvents`, left-over entries, or rig records left or unknown. Only a clean report means the scope is fully erased. It's about this run's scope: a routine or members run's `clean` isn't affected by the ledger's other batches, and only a replay (`--ids` with a ledger) reports a batch it can't show committed, as the gap `ledger-unresolved` |
|
|
95
97
|
| `error` | why the run stopped (`stage` and `message`). Everything listed in `qitems` was committed before it; the command exits 2 |
|
|
96
98
|
| `qitems` | each row erased (or that would be), with its `action` and `state` |
|
|
97
|
-
| `mixed` | members scope: rows with one member endpoint, left untouched |
|
|
99
|
+
| `mixed` | members scope: rows with one member endpoint and the other outside the account, left untouched |
|
|
98
100
|
| `keptCopies` | copies of erased rows held with someone else, kept: `table`, `id`, `qitemId`, `ownership` (`mixed` or `foreign`) |
|
|
99
101
|
| `gaps` | rows not erased and why: `workflow-reference`; `not-found` for an id to scrub that doesn't exist; `changed-during-run` for a row that no longer qualified when its batch ran (reopened, rerouted out of the account, or written to so it left its window) or an absent id created since selection; `unreadable-event` for a row an unreadable event names; `ledger-unresolved` for a replayed entry whose batch can't be shown to have committed |
|
|
100
102
|
| `skipped` | ids scope, a ledger replay: entries whose batch rolled back, with the batch id; not replayed |
|
|
@@ -12,9 +12,9 @@ In your project folder, add OpenRig's `rigs` skill to the agent you use:
|
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
# Claude Code
|
|
15
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
15
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs --skill rigs --agent claude-code
|
|
16
16
|
# Codex
|
|
17
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
17
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs --skill rigs --agent codex
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
These use this release's tag, for a new install. If OpenRig is already installed, replace the tag after `tree/` with
|
|
@@ -193,6 +193,10 @@ edges:
|
|
|
193
193
|
### Starting one materialized seat
|
|
194
194
|
|
|
195
195
|
`rig import ./team.yaml --materialize-only` records the team without starting its harnesses.
|
|
196
|
+
For an automated preparation that may retry, save a UUID first and pass
|
|
197
|
+
`--operation-id <uuid> --json`; keep that same UUID, spec text, source root and other options on a retry.
|
|
198
|
+
Both receipts identify the original rig and nodes through `operation`; see
|
|
199
|
+
[HTTP operation correlation](operation-correlation.md#cli-no-launch-preparation) for capability checks and incomplete receipts.
|
|
196
200
|
For a seat that has never started, use its positional logical ID:
|
|
197
201
|
|
|
198
202
|
```bash
|
|
@@ -209,7 +209,10 @@ and effective modes and retains the text `Typing guard: on (hold)` for hold.
|
|
|
209
209
|
|
|
210
210
|
A held send immediately returns `outcome: "retained"`, `sent: false`, its exact
|
|
211
211
|
reason and the saved attempt's `outboxIds`. No automatic
|
|
212
|
-
retry is scheduled.
|
|
212
|
+
retry is scheduled. `rig send` to several seats and `rig broadcast` print a held
|
|
213
|
+
recipient as `retained, not delivered; inspect with rig seat held-messages`, never
|
|
214
|
+
as sent, and their summary adds the held count (`1/3 delivered, 1 held`). A held
|
|
215
|
+
recipient alone doesn't make the command fail. The reasons are:
|
|
213
216
|
|
|
214
217
|
- `typing_guard_enabled`: the seat's mode holds this send (`hold`, or a level that
|
|
215
218
|
holds this kind of message).
|
|
@@ -226,6 +229,18 @@ retry is scheduled. The reasons are:
|
|
|
226
229
|
one with a reused `deliveryId`; the result warns older callers that this field no
|
|
227
230
|
longer deduplicates input. The CLI does not generate a deduplication key.
|
|
228
231
|
|
|
232
|
+
The last recorded managed-compaction input refusal appears as `inputReadFailure` in the attempt
|
|
233
|
+
record and `rig compact --state`: the preparation or compact stage, `composer`
|
|
234
|
+
(the explicit composer hold) or `draft-aware` check, reader status, confidence,
|
|
235
|
+
a fixed read-failure reason and cursor flags. An owed restore step reports it in
|
|
236
|
+
`owedRestore.lastDelivery`. These fields contain no input text, suggestions,
|
|
237
|
+
terminal frames or exception messages. Confidence and timeout fields are `null`
|
|
238
|
+
when that reader does not supply them; a known composer read timeout reports
|
|
239
|
+
`timedOut: true`. A generic `capture_unavailable` does not identify the failed
|
|
240
|
+
capture operation. Older records lack this diagnostic. It neither changes the
|
|
241
|
+
refusal nor retries an attempt; missing metadata cannot establish which check
|
|
242
|
+
caused a historical refusal.
|
|
243
|
+
|
|
229
244
|
Clearing a draft, changing modes or restarting does not flush saved messages or
|
|
230
245
|
callbacks. To try again, send a current request: it rechecks the recipient and input.
|
|
231
246
|
A caller abort before paste cancels input; after a write may have started, the
|
|
@@ -182,6 +182,18 @@ When no app can be chosen, or the app refuses the switch, the result names the
|
|
|
182
182
|
session to select by hand. A Rex app accepts the switch only with Remote Control
|
|
183
183
|
turned on in its Settings, under Rex Server.
|
|
184
184
|
|
|
185
|
+
Each local seat's tile shows the seat's runtime (such as Claude Code or Codex) and
|
|
186
|
+
its activity: working, idle, or blocked (with a permission kind for a permission
|
|
187
|
+
prompt). The tile gets the current activity once it opens and each change after
|
|
188
|
+
that, as `rig ps --nodes` resolves it. A Rex tile attached to the seat some other way, by
|
|
189
|
+
hand or by Rex after an app restart, is caught up within about ten seconds, or within
|
|
190
|
+
five minutes when no Rex tile was showing the seat before.
|
|
191
|
+
Rarely, a report can arrive in the middle of tmux's own output and garble part of a
|
|
192
|
+
Rex tile until it redraws. When OpenRig doesn't know a seat's activity,
|
|
193
|
+
the tile shows none rather than idle. OpenRig writes these reports only to the
|
|
194
|
+
tmux clients attached to the seat that identify themselves as Rex, so other
|
|
195
|
+
terminals attached to the seat get nothing and no tmux option changes.
|
|
196
|
+
|
|
185
197
|
The daemon finds `rex` in `$REX_BIN_DIR`, then on `PATH`, then inside the Rex
|
|
186
198
|
app on macOS, and uses its own `REX_SERVER` when set. It never starts a Rex
|
|
187
199
|
server. An open view is not reused: opening it again adds a numbered session,
|
|
@@ -61,6 +61,12 @@ Existing OpenRig session options, such as `terminal.status_bar`, still apply.
|
|
|
61
61
|
An existing server does not reread its configuration merely because the daemon
|
|
62
62
|
restarts. Settings and sessions in a separate personal server are left alone.
|
|
63
63
|
|
|
64
|
+
When OpenRig creates a tmux server on macOS or Linux, its creating client tries
|
|
65
|
+
to raise the soft open-file limit to 8192, bounded by the inherited hard limit.
|
|
66
|
+
An already higher soft limit is preserved. A failed raise produces an advisory
|
|
67
|
+
and the start continues with the inherited limit. Connecting to an existing
|
|
68
|
+
server does not change that server's limit or restart its sessions.
|
|
69
|
+
|
|
64
70
|
## Existing teams and deferred migration
|
|
65
71
|
|
|
66
72
|
At startup, the daemon checks the previously selected server before switching.
|
|
@@ -110,8 +116,8 @@ To move a team that runs on an older server:
|
|
|
110
116
|
on it, yours included, has ended.
|
|
111
117
|
3. Stop each rig deliberately with `rig down <rig>`. Its seats' sessions end, and a
|
|
112
118
|
turn in progress stops. Queue rows, rigs and seats stay as they are. A session
|
|
113
|
-
OpenRig didn't start, such as a seat joined with `rig attach --self
|
|
114
|
-
running and `rig down` exits 2; stop it with the commands it prints, or it stays on
|
|
119
|
+
OpenRig didn't start, such as a seat joined with `rig attach --self` from a tmux
|
|
120
|
+
pane, is left running and `rig down` exits 2; stop it with the commands it prints, or it stays on
|
|
115
121
|
the old server.
|
|
116
122
|
4. Restart the daemon with `OPENRIG_TMUX_CONTROL=1` in its environment.
|
|
117
123
|
`rig terminal status --json` should show `migrationPending: false`. If it's still
|