@openrig/cli 0.7.3 → 0.7.5
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-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/hooks/claude.json +11 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +13 -9
- package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +9 -1
- package/daemon/context-packs/help/help.md +6 -3
- 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 +53 -7
- package/daemon/context-packs/reference/getting-started.md +17 -5
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +10 -3
- package/daemon/context-packs/reference/whats-new.md +153 -155
- 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/SKILL.md +11 -0
- 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/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/SKILL.md +9 -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 +3 -3
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +52 -22
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +18 -6
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +9 -3
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +1 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +7 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.js +3 -0
- package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +11 -2
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +10 -2
- package/daemon/dist/adapters/tmux.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 +4 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts +4 -0
- package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts.map +1 -0
- package/daemon/dist/db/migrations/126_escalation_target_refs.js +30 -0
- package/daemon/dist/db/migrations/126_escalation_target_refs.js.map +1 -0
- package/daemon/dist/db/migrations/140_identity_principal.d.ts +12 -0
- package/daemon/dist/db/migrations/140_identity_principal.d.ts.map +1 -0
- package/daemon/dist/db/migrations/140_identity_principal.js +20 -0
- package/daemon/dist/db/migrations/140_identity_principal.js.map +1 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +3 -1
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/composer-prompts.d.ts +13 -0
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +32 -0
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/current-restore-snapshot.d.ts +8 -0
- package/daemon/dist/domain/current-restore-snapshot.d.ts.map +1 -0
- package/daemon/dist/domain/current-restore-snapshot.js +26 -0
- package/daemon/dist/domain/current-restore-snapshot.js.map +1 -0
- package/daemon/dist/domain/draft-aware-delivery.js +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +13 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -0
- package/daemon/dist/domain/escalation-owner.js +92 -0
- package/daemon/dist/domain/escalation-owner.js.map +1 -0
- package/daemon/dist/domain/escalation-target-ref.d.ts +3 -0
- package/daemon/dist/domain/escalation-target-ref.d.ts.map +1 -0
- package/daemon/dist/domain/escalation-target-ref.js +6 -0
- package/daemon/dist/domain/escalation-target-ref.js.map +1 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +8 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +17 -1
- package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +3 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
- package/daemon/dist/domain/graph-projection.js +2 -1
- package/daemon/dist/domain/graph-projection.js.map +1 -1
- package/daemon/dist/domain/hosted-wake.d.ts +19 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -0
- package/daemon/dist/domain/hosted-wake.js +56 -0
- package/daemon/dist/domain/hosted-wake.js.map +1 -0
- package/daemon/dist/domain/kernel-boot.d.ts +10 -4
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +14 -7
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-ntfy.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js +2 -0
- package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-webhook.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-webhook.js +2 -0
- package/daemon/dist/domain/mission-control/notification-adapter-webhook.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +3 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +7 -0
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +12 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +5 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +35 -1
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +3 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +10 -4
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts +3 -0
- package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts.map +1 -1
- package/daemon/dist/domain/periodic-snapshot-scheduler.js +15 -11
- package/daemon/dist/domain/periodic-snapshot-scheduler.js.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +3 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.js +1 -1
- package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -1
- package/daemon/dist/domain/policies/edge-artifact-required.js +3 -0
- package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +3 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -0
- package/daemon/dist/domain/provider/claude-interruption.js +5 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -0
- package/daemon/dist/domain/provider/host-usage-rollup.js +18 -8
- package/daemon/dist/domain/provider/host-usage-rollup.js.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +12 -5
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +31 -8
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts +4 -4
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +20 -4
- package/daemon/dist/domain/provider/reactive-tap.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 +7 -3
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +18 -1
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +83 -12
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -2
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +166 -16
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +11 -2
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +5 -4
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +2 -2
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +173 -45
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +2 -0
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +5 -2
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +17 -2
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +169 -42
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +27 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +51 -29
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/review/gather.d.ts +11 -0
- package/daemon/dist/domain/review/gather.d.ts.map +1 -1
- package/daemon/dist/domain/review/gather.js +64 -26
- package/daemon/dist/domain/review/gather.js.map +1 -1
- package/daemon/dist/domain/rig-edge-ops.d.ts +1 -1
- package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -1
- package/daemon/dist/domain/rig-edge-ops.js +8 -6
- package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +12 -4
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +2 -2
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +9 -5
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +3 -3
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +8 -7
- 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 +8 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +48 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -0
- package/daemon/dist/domain/rosters.js +86 -0
- package/daemon/dist/domain/rosters.js.map +1 -0
- 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/scope/scope-audit.d.ts +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +4 -0
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +2 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +10 -1
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +11 -2
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +6 -0
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +83 -2
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +3 -0
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +5 -0
- package/daemon/dist/domain/session-registry.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 +50 -23
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-history-selection.d.ts +34 -0
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -0
- package/daemon/dist/domain/shared-history-selection.js +74 -0
- package/daemon/dist/domain/shared-history-selection.js.map +1 -0
- package/daemon/dist/domain/snapshot-capture.d.ts +1 -0
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +43 -1
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +2 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +9 -5
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +6 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +6 -0
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +13 -5
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +55 -79
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +28 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.js +338 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +32 -8
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts +69 -0
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-viewer.js +285 -0
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -0
- package/daemon/dist/domain/terminal/task-terminal-view.d.ts +51 -0
- package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/task-terminal-view.js +227 -0
- package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts +65 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.js +93 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-following.d.ts +39 -0
- package/daemon/dist/domain/terminal/terminal-following.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/terminal-following.js +135 -0
- package/daemon/dist/domain/terminal/terminal-following.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +19 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.js +0 -15
- package/daemon/dist/domain/terminal/terminal-provider.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +27 -2
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +133 -37
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +1 -1
- package/daemon/dist/domain/terminal/view-composer.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/usage-series.d.ts.map +1 -1
- package/daemon/dist/domain/usage-series.js +17 -3
- package/daemon/dist/domain/usage-series.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +5 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/rosters-surface.d.ts +2 -0
- package/daemon/dist/rosters-surface.d.ts.map +1 -0
- package/daemon/dist/rosters-surface.js +4 -0
- package/daemon/dist/rosters-surface.js.map +1 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +7 -6
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +26 -0
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +54 -0
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +2 -2
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +269 -3
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts +3 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +57 -1
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +12 -3
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/server.js +1 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +25 -3
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +9 -0
- package/daemon/docs/reference/agent-state-taxonomy.md +7 -0
- package/daemon/docs/reference/claude-status-line.md +42 -0
- package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +1 -1
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +100 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/pi-tui.yaml +15 -0
- package/daemon/docs/reference/community-harness-presets.md +90 -3
- package/daemon/docs/reference/edge-types.md +40 -11
- package/daemon/docs/reference/getting-started.md +17 -5
- package/daemon/docs/reference/help.md +6 -3
- package/daemon/docs/reference/hosted-members.md +114 -0
- package/daemon/docs/reference/publishing-a-rig-bundle.md +5 -0
- package/daemon/docs/reference/quickstart.md +3 -3
- package/daemon/docs/reference/rig-spec.md +10 -3
- package/daemon/docs/reference/rosters.md +6 -0
- package/daemon/docs/reference/sdlc-conventions.md +6 -0
- package/daemon/docs/reference/seat-delivery.md +6 -0
- package/daemon/docs/reference/terminal-sessions.md +152 -0
- package/daemon/docs/reference/whats-new.md +153 -155
- package/daemon/specs/agents/shared/skills/core/rig-bundles-and-shareable-artifacts/SKILL.md +11 -0
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +53 -25
- package/dist/client.js.map +1 -1
- package/dist/commands/attach.d.ts.map +1 -1
- package/dist/commands/attach.js +9 -9
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +12 -4
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +6 -1
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/edge.d.ts.map +1 -1
- package/dist/commands/edge.js +2 -1
- package/dist/commands/edge.js.map +1 -1
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +17 -2
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +62 -15
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +4 -2
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +7 -27
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +17 -52
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.js +3 -3
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +41 -0
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +16 -21
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +10 -6
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/terminal.d.ts +32 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +31 -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/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +2 -1
- package/dist/commands/whoami.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +4 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +11 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts +1 -0
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +4 -0
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/mcp-http.d.ts +38 -2
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +303 -36
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-presence.d.ts +14 -0
- package/dist/mcp-presence.d.ts.map +1 -0
- package/dist/mcp-presence.js +50 -0
- package/dist/mcp-presence.js.map +1 -0
- package/dist/mcp-server.d.ts +12 -2
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +621 -204
- package/dist/mcp-server.js.map +1 -1
- package/dist/rig-handle.d.ts +1 -0
- package/dist/rig-handle.d.ts.map +1 -1
- package/dist/rig-handle.js +9 -0
- package/dist/rig-handle.js.map +1 -1
- package/dist/terminal-window.d.ts +3 -3
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +33 -5
- package/dist/terminal-window.js.map +1 -1
- package/package.json +5 -2
- package/tui/dist/daemon-client.d.ts +3 -1
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +4 -3
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +10 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +7 -3
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +8 -5
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/render.d.ts +6 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +12 -5
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +2 -1
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/terminals/open-window.js +2 -2
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/topology/host-label.d.ts +7 -0
- package/tui/dist/topology/host-label.d.ts.map +1 -0
- package/tui/dist/topology/host-label.js +34 -0
- package/tui/dist/topology/host-label.js.map +1 -0
- package/tui/dist/types.d.ts +3 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-DV0UNxFw.js → index-ozBodLrS.js} +168 -168
- package/ui/dist/index.html +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# A reference launcher for Pi's own terminal UI (interactive `pi`) as an OpenRig community harness. Copy it, own it, and
|
|
3
|
+
# change it: OpenRig doesn't ship or run it. It's written for Pi 1.4.0 from its source and not yet checked with a real Pi.
|
|
4
|
+
# It follows docs/reference/community-harness-presets.md (`names_conversation`, `first_input`):
|
|
5
|
+
# - a new launch (OPENRIG_CONVERSATION set): Pi creates the session whose id is that name, in the seat's own session
|
|
6
|
+
# folder, and takes the first input as its first prompt;
|
|
7
|
+
# - a resume (OPENRIG_RESUME_REF set): the launcher opens the one session file whose id is that name, and starts nothing
|
|
8
|
+
# when there isn't exactly one. Pi's --session-id creates a new session for an id it doesn't find, and --session with
|
|
9
|
+
# an id can open another session whose id starts the same way, so neither is used to resume.
|
|
10
|
+
set -eu
|
|
11
|
+
|
|
12
|
+
pi="${OPENRIG_PI:-pi}"
|
|
13
|
+
state="${OPENRIG_HOME:-$HOME/.openrig}/state/pi-tui/${OPENRIG_NODE_ID:-${OPENRIG_SESSION_NAME:-default}}"
|
|
14
|
+
sessions="$state/sessions"
|
|
15
|
+
|
|
16
|
+
# Each seat gets its own Pi agent folder (settings, logins, skills) unless PI_CODING_AGENT_DIR is already set, so seats
|
|
17
|
+
# don't share settings and a person's ~/.pi/agent isn't touched. Give the seat its provider key in its environment, or its
|
|
18
|
+
# login and settings in this folder, before its first start.
|
|
19
|
+
PI_CODING_AGENT_DIR="${PI_CODING_AGENT_DIR:-$state/agent}"
|
|
20
|
+
# Pi expands a leading ~ in this folder; do the same, so the skills land where Pi looks.
|
|
21
|
+
case "$PI_CODING_AGENT_DIR" in
|
|
22
|
+
"~") PI_CODING_AGENT_DIR="$HOME" ;;
|
|
23
|
+
"~/"*) PI_CODING_AGENT_DIR="$HOME/${PI_CODING_AGENT_DIR#"~/"}" ;;
|
|
24
|
+
esac
|
|
25
|
+
export PI_CODING_AGENT_DIR
|
|
26
|
+
mkdir -p "$PI_CODING_AGENT_DIR/skills" "$sessions"
|
|
27
|
+
|
|
28
|
+
# Copy the installed OpenRig's coordination skills in at each launch, so an upgrade reaches the seat. Pi lists the skills
|
|
29
|
+
# in <agent folder>/skills/ by itself; the seat's first input should still name queue-handoff (see the recipe).
|
|
30
|
+
skills_from="${OPENRIG_PI_SKILLS_FROM:-${OPENRIG_HOME:-$HOME/.openrig}/plugins/openrig-core/skills}"
|
|
31
|
+
set -f
|
|
32
|
+
for skill in ${OPENRIG_PI_SKILLS:-queue-handoff}; do
|
|
33
|
+
case "$skill" in
|
|
34
|
+
*[!a-z0-9-]*|-*) echo "openrig-pi-tui-launch: skipping '$skill': not a skill name" >&2; continue ;;
|
|
35
|
+
esac
|
|
36
|
+
if [ -d "$skills_from/$skill" ]; then
|
|
37
|
+
rm -rf "$PI_CODING_AGENT_DIR/skills/$skill"
|
|
38
|
+
cp -Rp "$skills_from/$skill" "$PI_CODING_AGENT_DIR/skills/"
|
|
39
|
+
else
|
|
40
|
+
echo "openrig-pi-tui-launch: no $skill skill in $skills_from; starting without it" >&2
|
|
41
|
+
fi
|
|
42
|
+
done
|
|
43
|
+
set +f
|
|
44
|
+
|
|
45
|
+
# Pi's session ids: letters, digits, '.', '_' and '-', starting and ending with a letter or digit.
|
|
46
|
+
valid_id() {
|
|
47
|
+
case "$1" in
|
|
48
|
+
"" | *[!A-Za-z0-9._-]* | [!A-Za-z0-9]* | *[!A-Za-z0-9]) return 1 ;;
|
|
49
|
+
esac
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
# The first input goes over as Pi's first prompt, byte for byte, after `--`. OpenRig's starts with its identity-context
|
|
53
|
+
# line; Pi would read one starting with @ as a file even after `--`, and may run one starting with / as a command.
|
|
54
|
+
set --
|
|
55
|
+
if [ -n "${OPENRIG_FIRST_INPUT:-}" ]; then
|
|
56
|
+
first_input=$(cat "$OPENRIG_FIRST_INPUT" && printf '.')
|
|
57
|
+
first_input="${first_input%.}"
|
|
58
|
+
if [ -n "$first_input" ]; then set -- -- "$first_input"; fi
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
if [ -n "${OPENRIG_RESUME_REF:-}" ]; then
|
|
62
|
+
id="$OPENRIG_RESUME_REF"
|
|
63
|
+
if ! valid_id "$id"; then
|
|
64
|
+
echo "openrig-pi-tui-launch: '$id' isn't a Pi session id; starting nothing" >&2
|
|
65
|
+
exit 2
|
|
66
|
+
fi
|
|
67
|
+
# Pi names a session file <time>_<id>.jsonl, but the file's first line, its header, is what says which session it is:
|
|
68
|
+
# its top-level type and id, read as JSON as Pi reads it. Pi writes the file only once the conversation has a message, so
|
|
69
|
+
# a session that never got one can't be reopened. Pi runs on Node, so node reads the header.
|
|
70
|
+
node="${OPENRIG_PI_NODE:-node}"
|
|
71
|
+
if ! command -v "$node" >/dev/null 2>&1; then
|
|
72
|
+
echo "openrig-pi-tui-launch: $node isn't on PATH to read Pi's session headers; starting nothing" >&2
|
|
73
|
+
exit 1
|
|
74
|
+
fi
|
|
75
|
+
found="" count=0
|
|
76
|
+
for file in "$sessions"/*_"$id".jsonl; do
|
|
77
|
+
[ -s "$file" ] || continue
|
|
78
|
+
if head -n 1 "$file" | "$node" -e '
|
|
79
|
+
let text = ""; process.stdin.on("data", c => { text += c; }).on("end", () => {
|
|
80
|
+
try { const h = JSON.parse(text); process.exit(h && h.type === "session" && h.id === process.argv[1] ? 0 : 1); }
|
|
81
|
+
catch { process.exit(1); }
|
|
82
|
+
});' "$id"; then
|
|
83
|
+
found="$file" count=$((count + 1))
|
|
84
|
+
fi
|
|
85
|
+
done
|
|
86
|
+
if [ "$count" -ne 1 ]; then
|
|
87
|
+
echo "openrig-pi-tui-launch: expected one Pi session $id in $sessions, found $count; starting nothing" >&2
|
|
88
|
+
exit 1
|
|
89
|
+
fi
|
|
90
|
+
exec "$pi" --session-dir "$sessions" --session "$found" "$@"
|
|
91
|
+
fi
|
|
92
|
+
if [ -n "${OPENRIG_CONVERSATION:-}" ]; then
|
|
93
|
+
if ! valid_id "$OPENRIG_CONVERSATION"; then
|
|
94
|
+
echo "openrig-pi-tui-launch: '$OPENRIG_CONVERSATION' isn't a Pi session id; starting nothing" >&2
|
|
95
|
+
exit 2
|
|
96
|
+
fi
|
|
97
|
+
exec "$pi" --session-dir "$sessions" --session-id "$OPENRIG_CONVERSATION" "$@"
|
|
98
|
+
fi
|
|
99
|
+
echo "openrig-pi-tui-launch: OpenRig passed no conversation name; is names_conversation set in the preset?" >&2
|
|
100
|
+
exit 2
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Install as $OPENRIG_HOME/community-harnesses/pi-tui.yaml, with openrig-pi-tui-launch on the seat's PATH.
|
|
2
|
+
# "pi" itself is the built-in managed Pi runtime, so this preset for Pi's own terminal UI takes another name.
|
|
3
|
+
format: 1
|
|
4
|
+
name: pi-tui
|
|
5
|
+
command: openrig-pi-tui-launch # no model or provider here: they go in the seat's Pi settings or environment
|
|
6
|
+
maintainer: Your name or team
|
|
7
|
+
limits:
|
|
8
|
+
- checked once with Pi 1.4.0 and OpenRig 0.7.4 (one run, one model); other Pi versions aren't checked
|
|
9
|
+
- resume not declared until reopening a named session, and a missing one, have been checked with a real Pi
|
|
10
|
+
- with the default typing guard, a wake submits a person's half-typed draft in Pi's editor together with the wake; run the seat unattended, not where a person also types
|
|
11
|
+
- a send while a Pi dialog OpenRig doesn't recognize is open, such as /settings, types into the dialog
|
|
12
|
+
- how Pi takes a wake that arrives while it's busy isn't shown
|
|
13
|
+
- only the listed openrig-core skills are copied into the seat's Pi agent folder; no guidance or startup files are placed
|
|
14
|
+
names_conversation: true
|
|
15
|
+
first_input: true
|
|
@@ -24,6 +24,13 @@ it never reads an unsupported capability as idle, working, ready or verified.
|
|
|
24
24
|
**Not placed:** guidance, skills and startup files (a launch warns that they weren't delivered), and the model: set it in the harness's own
|
|
25
25
|
configuration.
|
|
26
26
|
|
|
27
|
+
**Check that the harness answers on its own first.** Before writing a preset, start the harness in a terminal outside OpenRig, with the
|
|
28
|
+
same configuration and credentials your launcher will give it, and send it one prompt. Use the folder your launcher gives the seat, not
|
|
29
|
+
the harness's default one: the example launchers keep one per seat under `$OPENRIG_HOME/state/<harness>/` (`HERMES_HOME`,
|
|
30
|
+
`OPENCLAW_STATE_DIR` or `CURSOR_CONFIG_DIR`), so a check with your own defaults can pass while the seat's setup fails. If no answer comes
|
|
31
|
+
back, the problem is in the harness's own setup, such as its model, provider or login, and relaunching an OpenRig seat won't fix it. Fix
|
|
32
|
+
it in the harness, then connect it.
|
|
33
|
+
|
|
27
34
|
## The preset
|
|
28
35
|
|
|
29
36
|
One YAML file per harness: `$OPENRIG_HOME/community-harnesses/<name>.yaml`. `rig community-harness list` shows what's
|
|
@@ -161,7 +168,8 @@ Agent's CLI.
|
|
|
161
168
|
- **The preset:** it declares `names_conversation` but not `resume`, until reopening a named session, and a missing one,
|
|
162
169
|
have been checked with a real Hermes.
|
|
163
170
|
- **Stopping:** Hermes's CLI is a client of a gateway, so closing a seat's pane detaches it. Hermes finishes any turn it
|
|
164
|
-
accepted
|
|
171
|
+
accepted. Whether the seat's gateway then exits once idle hasn't been checked: check with `ps` that a stopped seat's
|
|
172
|
+
gateway has gone before relying on it. The preset says so in its limits.
|
|
165
173
|
|
|
166
174
|
Copy them and maintain them as your own.
|
|
167
175
|
|
|
@@ -182,7 +190,8 @@ OpenClaw's CLI.
|
|
|
182
190
|
Copy the launcher and the preset for your mode, and maintain them as your own.
|
|
183
191
|
|
|
184
192
|
**Stopping a community seat stops its pane.** `rig down` names those seats ("Pane stopped: …"), since a harness's own
|
|
185
|
-
processes, a gateway say, may keep running after it. OpenRig doesn't stop them
|
|
193
|
+
processes, a gateway say, may keep running after it. OpenRig doesn't stop them, and whether they survive isn't exercised
|
|
194
|
+
by OpenRig's tests, so check the harness's own processes after `rig down`. Each preset's limits say what to expect.
|
|
186
195
|
|
|
187
196
|
**Not supported for community harnesses:** restarting a seat in place (`rig seat restart` is for Codex seats) and
|
|
188
197
|
switching harness on a running seat. Each says so before anything changes.
|
|
@@ -205,6 +214,33 @@ CLI.
|
|
|
205
214
|
|
|
206
215
|
Copy both and maintain them as your own.
|
|
207
216
|
|
|
217
|
+
## An example: Pi's terminal UI
|
|
218
|
+
|
|
219
|
+
[`community-harness-examples/pi-tui/`](community-harness-examples/pi-tui/) has a preset and a small launcher that run Pi's
|
|
220
|
+
own terminal UI as a community harness. `pi` is the built-in managed Pi runtime, so the preset is named `pi-tui`. OpenRig
|
|
221
|
+
delivers to this seat as to any community seat (the Delivery row above), not as to a plain `runtime: terminal` seat, which
|
|
222
|
+
queue wakes don't reach. Checked once, on Pi 1.4.0 with OpenRig 0.7.4 and one model: a parked row's wake reached Pi in
|
|
223
|
+
the same session (the same session file) and Pi resumed the work, and a handoff reached a second `pi-tui` seat, which
|
|
224
|
+
picked it up unattended. The first seat's task named the commands to use, so this shows a wake reaching Pi and Pi acting
|
|
225
|
+
on it, not Pi choosing by itself to park or hand work on.
|
|
226
|
+
- **The launcher:** each seat gets its own Pi agent folder (`$OPENRIG_HOME/state/pi-tui/<node>/agent`, unless
|
|
227
|
+
`PI_CODING_AGENT_DIR` is set) and its own session folder. At each launch it copies the installed `openrig-core` skills
|
|
228
|
+
it's given (`queue-handoff` by default) into that agent folder. A new launch starts `pi --session-id <the name OpenRig
|
|
229
|
+
gave>` and passes the first input as Pi's first prompt, byte for byte.
|
|
230
|
+
- **Resume isn't declared.** The launcher can reopen a named session: it opens the one session file whose header has that
|
|
231
|
+
id, and starts nothing when there isn't exactly one, because Pi's own `--session-id` creates a session for an id it
|
|
232
|
+
doesn't find. Declare `resume: true` only after a real Pi has reopened a named session and refused a missing one.
|
|
233
|
+
- **Its limits:** run a `pi-tui` seat unattended, not where a person also types into it.
|
|
234
|
+
- With the seat's [typing guard](seat-delivery.md) at its default, a wake submits a person's half-typed draft in Pi's
|
|
235
|
+
editor together with the wake. The guard's draft-aware mode isn't a known fix for this.
|
|
236
|
+
- A send while a Pi dialog OpenRig doesn't recognize is open, such as `/settings`, types into the dialog.
|
|
237
|
+
- Not shown: how Pi takes a wake that arrives while it's busy (a message sent during a busy turn was answered after
|
|
238
|
+
it), and other Pi versions.
|
|
239
|
+
- **Give the seat a model** before its first start: its provider key in its environment, or its login and settings in its
|
|
240
|
+
agent folder.
|
|
241
|
+
|
|
242
|
+
Copy both and maintain them as your own.
|
|
243
|
+
|
|
208
244
|
The launcher is the contributor's code, in the contributor's package. OpenRig runs no code from a preset and loads no
|
|
209
245
|
module into its daemon. A preset that sets `launch_result`, `names_conversation`, `startup_assisted` or `first_input` is refused by an older
|
|
210
246
|
OpenRig that doesn't know the field.
|
|
@@ -219,9 +255,60 @@ OpenRig records `node.startup_first_input_passed` with the path and `submission:
|
|
|
219
255
|
|
|
220
256
|
Presets without `first_input` and built-in runtimes keep their existing behavior. Older OpenRig versions reject this new field as unknown. The private input file remains for diagnostics; it can contain private startup context. A launcher that turns its contents into one argument is subject to the platform’s argument-size limit; the launcher must report a launch error rather than silently truncate the turn. The examples’ argument transport is covered with stand-ins; native unattended startup still requires qualification with the installed harness.
|
|
221
257
|
|
|
258
|
+
## Interactive Pi in a terminal seat: the coordination skills
|
|
259
|
+
|
|
260
|
+
This is for a seat that runs interactive `pi` from a `runtime: terminal` member's startup, or from a community preset's
|
|
261
|
+
launcher. It isn't for a managed `runtime: pi` seat, which already copies its selected skill directories into the seat's own
|
|
262
|
+
Pi agent directory (`$OPENRIG_HOME/state/pi/<session>/agent/skills/`), or for Workshop, whose Pi profiles carry pinned skill
|
|
263
|
+
copies (openrig-world's `PI-SKILLS.md`). The [`pi-tui` example](#an-example-pis-terminal-ui) above does step 1 for its
|
|
264
|
+
seats in its launcher.
|
|
265
|
+
|
|
266
|
+
OpenRig installs no skills for a terminal or community seat: it skips their resources and startup files, and `rig skill
|
|
267
|
+
loadout` covers Claude Code and Codex only. Without the coordination skills, the agent there doesn't know the queue's habits,
|
|
268
|
+
such as parking a row that waits on CI instead of leaving it in progress, or handing work on so the next row names its
|
|
269
|
+
source. The seat's setup does two things.
|
|
270
|
+
|
|
271
|
+
1. **Make the released skills readable.** The installed OpenRig's own plugin carries them, matching the installed release:
|
|
272
|
+
`rig plugin list` shows `openrig-core` and its path (usually `$OPENRIG_HOME/plugins/openrig-core`), and the skills are in
|
|
273
|
+
its `skills/` folder. Copy whole skill directories, keeping their helper files and modes, into the `skills/` folder of the
|
|
274
|
+
Pi agent directory that seat uses (`PI_CODING_AGENT_DIR`, or `~/.pi/agent` by default). At least `queue-handoff`:
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
CORE="$(rig plugin list | awk '$1 == "openrig-core" {print $NF}')"
|
|
278
|
+
PI_AGENT_DIR="${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}"
|
|
279
|
+
mkdir -p "$PI_AGENT_DIR/skills"
|
|
280
|
+
cp -Rp "$CORE/skills/queue-handoff" "$PI_AGENT_DIR/skills/"
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
Copy again after each OpenRig upgrade: a copy doesn't follow the plugin.
|
|
284
|
+
2. **Point the agent at it when it starts.** Don't count on Pi finding the skill by itself; name it in the seat's first turn.
|
|
285
|
+
For example:
|
|
286
|
+
|
|
287
|
+
> Before you work your queue, read `<Pi agent directory>/skills/queue-handoff/SKILL.md` in full: it's how this team hands
|
|
288
|
+
> work on, parks it and waits. When you wait on CI or a long job, park the row with `rig queue block <id> --on
|
|
289
|
+
> external:<what> --wake-after <duration> --continuation "<what resumes>"`.
|
|
290
|
+
|
|
291
|
+
- A community preset with `first_input: true` carries it in the seat's first input when the file is declared with
|
|
292
|
+
`delivery_hint: send_text` (see "Pass the first startup input at launch" above). A `.md` file left at the `auto` hint
|
|
293
|
+
counts as guidance, which a community seat doesn't take.
|
|
294
|
+
- A plain terminal seat can pass it as Pi's initial message in the command its startup runs. Check `pi --help` for that
|
|
295
|
+
argument in your Pi version.
|
|
296
|
+
- `first_input` carries text, not files: it doesn't install the skills.
|
|
297
|
+
|
|
298
|
+
**In a plain terminal seat, a queue wake doesn't reach Pi.** OpenRig doesn't treat a `runtime: terminal` seat as an agent
|
|
299
|
+
seat. When a parked row's wake fires, OpenRig doesn't type it into Pi, and a handoff to that seat records a failed wake
|
|
300
|
+
(`failed:terminal-seat`). Parking still records the wait, but `--wake-after` won't bring Pi back. Check the seat's parked
|
|
301
|
+
rows yourself (`rig queue whoami --session <seat>`, or `rig queue show <id>`), or tell Pi to continue the named row.
|
|
302
|
+
|
|
303
|
+
**What this shows, and what it doesn't.** A copied folder and a startup line put the text in front of the agent. They don't
|
|
304
|
+
show that Pi discovered the skill by itself, or that the agent follows it. Check those separately: that the agent read the
|
|
305
|
+
whole file (its tool trace), and what its rows record, such as a CI wait parked on `external:` with a wake, and a handoff
|
|
306
|
+
made with `handoff-and-complete`, whose next row names it as its source.
|
|
307
|
+
|
|
222
308
|
## Write your own
|
|
223
309
|
|
|
224
|
-
Start from the example closest to your harness, and change it.
|
|
310
|
+
Start from the example closest to your harness, and change it. First check that the harness answers a prompt on its own
|
|
311
|
+
([above](#what-a-community-harness-gets)).
|
|
225
312
|
|
|
226
313
|
1. **Choose how the conversation is named.**
|
|
227
314
|
- **Your harness creates an id you can read before it starts,** as Cursor's `create-chat` does: declare `launch_result: true`, and the
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Edge Types Reference
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Historical whole-document validation: 2026-10-07, at the 0.6.6 cut `2620dea8` (whole document at `fcaf1f8e`).
|
|
4
|
+
The fallback escalation section and deferred-target exceptions below describe #605.
|
|
5
|
+
Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/rigspec-instantiator.ts`, `packages/daemon/src/domain/queue-owner.ts`, `packages/daemon/src/domain/escalation-owner.ts`
|
|
5
6
|
|
|
6
7
|
---
|
|
7
8
|
|
|
@@ -16,8 +17,7 @@ See `docs/reference/rig-spec.md` for the YAML syntax.
|
|
|
16
17
|
|
|
17
18
|
## Edge Kinds
|
|
18
19
|
|
|
19
|
-
Five edge kinds are accepted by the pod-aware
|
|
20
|
-
`spawned_by` and `can_observe`):
|
|
20
|
+
Five edge kinds are accepted by both the pod-aware and legacy flat-node validators:
|
|
21
21
|
|
|
22
22
|
| Kind | Accepted | Has Runtime Behavior | Description |
|
|
23
23
|
|------|----------|---------------------|-------------|
|
|
@@ -25,13 +25,13 @@ Five edge kinds are accepted by the pod-aware validator (the legacy flat-node fo
|
|
|
25
25
|
| `spawned_by` | yes | **yes — affects launch order** | Source was spawned by target |
|
|
26
26
|
| `can_observe` | yes | no | Source can observe target's output |
|
|
27
27
|
| `collaborates_with` | yes | no | Peer collaboration |
|
|
28
|
-
| `escalates_to` | yes |
|
|
28
|
+
| `escalates_to` | yes | **yes — fallback queue escalation** | Source escalates to target |
|
|
29
29
|
|
|
30
30
|
## What Edges Actually Do Today
|
|
31
31
|
|
|
32
32
|
### Launch ordering
|
|
33
33
|
|
|
34
|
-
Only `delegates_to` and `spawned_by`
|
|
34
|
+
Only `delegates_to` and `spawned_by` constrain the order in which nodes are launched:
|
|
35
35
|
|
|
36
36
|
- **`delegates_to`**: source launches BEFORE target. The delegator must be up before the delegate.
|
|
37
37
|
- **`spawned_by`**: target (parent) launches BEFORE source (child). The parent must be up before the child it spawned.
|
|
@@ -46,13 +46,42 @@ All other edge kinds (`can_observe`, `collaborates_with`, `escalates_to`) do NOT
|
|
|
46
46
|
wake ladder escalates an unacknowledged row to that orchestrator, and stuck-row findings and recovery go to it. A seat
|
|
47
47
|
with no incoming `delegates_to` edge has no default orchestrator. `spawned_by` plays no part here.
|
|
48
48
|
|
|
49
|
+
### Fallback escalation across rigs
|
|
50
|
+
|
|
51
|
+
A seat with **no declared `delegates_to` parent** may declare one `escalates_to` destination. The wake ladder and
|
|
52
|
+
stuck sweep use it for new recovery rows; they do not move the original obligation or reassign an already-open recovery. A stopped or unbound declared
|
|
53
|
+
parent still takes precedence, preserving the existing parent route and its fallback.
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
edges:
|
|
57
|
+
- kind: escalates_to
|
|
58
|
+
from: work.lead
|
|
59
|
+
to: review-advisor@coord
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The target is a canonical same-daemon seat address (`pod-member@rig`), or an existing local member using the usual
|
|
63
|
+
edge syntax. Named targets are stored without requiring the other rig to exist and resolved when needed. A matching
|
|
64
|
+
physical session name takes precedence over a derived canonical address. Deferred declarations survive export and
|
|
65
|
+
snapshots; they don't constrain launch order or make the rigs depend on each other's lifecycle.
|
|
66
|
+
|
|
67
|
+
Delivery is one hop. Recovery rows carry `escalation-route:one-hop`, so a destination's own `escalates_to` declaration
|
|
68
|
+
does not forward the recovery again. A missing or stopped destination, multiple matches or declarations, self route,
|
|
69
|
+
or declared cycle preserves the existing fallback: the wake ladder proceeds to its operator rung; the sweep retains
|
|
70
|
+
its existing owner fallback. The recovery body/transition explains the result. Cycle inspection includes stopped
|
|
71
|
+
seats and delegation parents; an unresolved downstream endpoint is reported as unknown, never as proof of no cycle.
|
|
72
|
+
Queue address admission is unchanged. Cross-host and synthetic destinations are not supported.
|
|
73
|
+
|
|
74
|
+
On an existing rig, use `rig edge add <rig> work.lead review-advisor@coord --kind escalates_to`; `--plan` writes nothing.
|
|
75
|
+
The receipt's target node ID is null for a deferred address. Remove it with the exact edge ID returned by add.
|
|
76
|
+
A rig-local graph omits deferred targets, since those seats are outside that graph; the raw topology and export retain them.
|
|
77
|
+
|
|
49
78
|
### Graph visualization
|
|
50
79
|
|
|
51
|
-
|
|
80
|
+
Local-node edges are rendered in the UI topology graph; deferred cross-rig targets are omitted. They create visual connections between nodes, helping the operator understand the team structure. Pod-local edges appear within the pod group; cross-pod edges connect across groups.
|
|
52
81
|
|
|
53
82
|
### Identity projection
|
|
54
83
|
|
|
55
|
-
|
|
84
|
+
Local-node edges appear in `rig whoami --json` output under `edges.outgoing` and `edges.incoming`, with their kind and the connected peer's identity. This lets an agent know its relationship to other members — but the agent interprets this information, it's not enforced by the runtime.
|
|
56
85
|
|
|
57
86
|
### Attach hint heuristic
|
|
58
87
|
|
|
@@ -64,7 +93,7 @@ node, in creation order, whose session is running, or else the first node with a
|
|
|
64
93
|
Edges do NOT currently:
|
|
65
94
|
|
|
66
95
|
- **Route messages** — `rig send` can target any session, regardless of edges (queue escalation, above, is the one
|
|
67
|
-
daemon path that follows `delegates_to`)
|
|
96
|
+
daemon path that follows `delegates_to` or fallback `escalates_to`)
|
|
68
97
|
- **Enforce delegation** — an agent can communicate with any peer, not just its edge targets
|
|
69
98
|
- **Control permissions** — there's no edge-based access control
|
|
70
99
|
- **Affect transport** — `rig capture`, `rig broadcast`, etc. work based on session identity, not edge topology
|
|
@@ -128,7 +157,7 @@ If none fit, `can_observe` is the safest default — it documents the relationsh
|
|
|
128
157
|
## Validation Rules
|
|
129
158
|
|
|
130
159
|
1. Edge kinds must be one of: `delegates_to`, `spawned_by`, `can_observe`, `collaborates_with`, `escalates_to`
|
|
131
|
-
2. Pod-local edges use unqualified member IDs — both
|
|
132
|
-
3. Cross-pod edges use `pod.member` format — both endpoints must resolve to actual members
|
|
160
|
+
2. Pod-local edges use unqualified member IDs — both endpoints must exist in the same pod, except a named `escalates_to` target as above.
|
|
161
|
+
3. Cross-pod edges use `pod.member` format — both endpoints must resolve to actual members, except a named `escalates_to` target as above.
|
|
133
162
|
4. Cross-pod edges must reference different pods (same-pod edges should use the pod-local syntax)
|
|
134
163
|
5. Self-edges are not validated at the schema level but are not meaningful
|
|
@@ -191,11 +191,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
|
|
|
191
191
|
script will do and changes nothing:
|
|
192
192
|
|
|
193
193
|
```sh
|
|
194
|
-
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
194
|
+
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.5/scripts/install.sh | sh -s -- --dry-run
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
The same command without `--dry-run`,
|
|
198
|
-
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
198
|
+
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.5/scripts/install.sh | sh`, installs the
|
|
199
199
|
latest published `@openrig/cli` with `npm install -g`,
|
|
200
200
|
runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
|
|
201
201
|
Codex and may install a missing one, as described below. A failed step prints
|
|
@@ -331,6 +331,16 @@ every seat while those seats still run the sessions it started, reports that
|
|
|
331
331
|
restore's outcome instead of starting another. Explicitly repeating the saved
|
|
332
332
|
`--non-interruptive` or `--no-non-interruptive` choice also joins that restore.
|
|
333
333
|
|
|
334
|
+
`rig start --last` restores a rig unless every seat it launched was stopped on
|
|
335
|
+
purpose with `rig down` or `rig seat stop`. A rig whose stop was never recorded
|
|
336
|
+
counts as last running: one taken down with `rig down` before OpenRig 0.6.12, or
|
|
337
|
+
one whose seats exited or were lost without `rig down`. So does a rig with no snapshot
|
|
338
|
+
whose saved state can be restored. To keep such a rig down, run `rig down <rig>`
|
|
339
|
+
once, by rig id when names are shared; it records the stop, and `--last` then
|
|
340
|
+
leaves the rig down. `--last` never selects the kernel. Under `--no-kernel`
|
|
341
|
+
(`OPENRIG_NO_KERNEL=1`) the daemon skips the kernel's automatic restore too;
|
|
342
|
+
bring it back with `rig up kernel --existing`.
|
|
343
|
+
|
|
334
344
|
An explicit `rig up kernel --existing --fresh <seat...>` waits for startup's
|
|
335
345
|
restore to finish, then replaces only the named seats that still hold the exact
|
|
336
346
|
sessions startup launched. Other seats keep running. An operator's conversation
|
|
@@ -841,14 +851,16 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
|
|
|
841
851
|
| Shared terminal is absent | Inspect the existing kernel binding and recovery state; use standalone `rig tui` while resolving it. |
|
|
842
852
|
| Viewing terminal was closed | Open the conversations again with `rig terminal open saved:kernel --window`; `rig tui --shared` is only the dashboard fallback if that window cannot open. Do not relaunch the team. |
|
|
843
853
|
| Daemon restarted but tmux survived | Re-read `rig status` and the existing queue; a daemon restart is not a fresh project. |
|
|
844
|
-
| Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when all of its seats
|
|
854
|
+
| Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when that start finds all of its seats lost; a kernel that was already down before the reboot stays down, and `rig start` names `rig up kernel --existing`. Check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. |
|
|
845
855
|
| Launch reports no usable snapshot | Inspect the existing rig and retained project files, then follow the same-seat recovery below. |
|
|
846
856
|
| Work is waiting on a prompt or decision | Read the row, transition and named prompt; preserve the obligation until the missing decision arrives. |
|
|
847
857
|
|
|
848
858
|
**When the kernel's seats all fail at the first start.** A report on Oracle Linux 10
|
|
849
859
|
([#980](https://github.com/mvschwarz/openrig/issues/980)) traced this to the distribution's packaged tmux, whose
|
|
850
|
-
`tmux -V` prints `next-3.4`: its server exited on every `capture-pane -p`, also outside OpenRig.
|
|
851
|
-
a throwaway
|
|
860
|
+
`tmux -V` prints `next-3.4`: its server exited on every `capture-pane -p`, also outside OpenRig. `rig setup` (its tmux
|
|
861
|
+
step) and `rig doctor` (`tmux_capture` in `rig doctor --json`) run this check for you on a throwaway server and name the
|
|
862
|
+
fix when capture fails; they test what tmux does, not its version. To run it by hand, without touching your own
|
|
863
|
+
sessions:
|
|
852
864
|
|
|
853
865
|
```sh
|
|
854
866
|
tmux -L "openrig-check-$$" -f /dev/null new-session -d -s check
|
|
@@ -139,7 +139,9 @@ issue's current status; a similar symptom alone is not a diagnosis.
|
|
|
139
139
|
|
|
140
140
|
- Claude seats reported as needing attention after a restore: [#86](https://github.com/mvschwarz/openrig/issues/86),
|
|
141
141
|
[#273](https://github.com/mvschwarz/openrig/issues/273).
|
|
142
|
-
- Claude usage limits may not be detected
|
|
142
|
+
- Claude usage limits may not be detected when neither a status line window nor a current
|
|
143
|
+
`StopFailure/rate_limit` hook is available: [#99](https://github.com/mvschwarz/openrig/issues/99).
|
|
144
|
+
See [Claude usage-limit detection](claude-status-line.md#claude-usage-limit-detection) for the inputs and retry behavior.
|
|
143
145
|
- Codex prompt variants not recognised as idle: [#79](https://github.com/mvschwarz/openrig/issues/79).
|
|
144
146
|
- Codex asks about hook trust at first launch: [#17](https://github.com/mvschwarz/openrig/issues/17), not reproduced
|
|
145
147
|
by the team.
|
|
@@ -147,8 +149,9 @@ issue's current status; a similar symptom alone is not a diagnosis.
|
|
|
147
149
|
daemon, when its Codex configuration sets network access off, a managed requirement could restrict it, or Codex
|
|
148
150
|
doesn't answer OpenRig's configuration read in time: [#275](https://github.com/mvschwarz/openrig/issues/275).
|
|
149
151
|
- Kernel seats fail within a second of the first start on a distribution tmux whose server exits on `capture-pane`
|
|
150
|
-
(`tmux -V` prints `next-3.4`): [#980](https://github.com/mvschwarz/openrig/issues/980).
|
|
151
|
-
|
|
152
|
+
(`tmux -V` prints `next-3.4`): [#980](https://github.com/mvschwarz/openrig/issues/980). `rig doctor` checks for
|
|
153
|
+
it (`tmux_capture`); the manual check and recovery are in
|
|
154
|
+
[Incomplete setup and restart](getting-started.md#incomplete-setup-and-restart).
|
|
152
155
|
|
|
153
156
|
For everything else, search [open issues](https://github.com/mvschwarz/openrig/issues).
|
|
154
157
|
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# Hosted members: a tool outside the terminal on your team
|
|
2
|
+
|
|
3
|
+
A hosted member is a tool that lives outside a terminal, such as an assistant, a chat bot or a cloud routine, and works as a member of a rig. You
|
|
4
|
+
address work to it like any seat. It reaches the team through OpenRig's MCP server under a grant you issue and can revoke. It never gets a pane.
|
|
5
|
+
|
|
6
|
+
Assistants that run on your machine can reach OpenRig's MCP server locally. Many assistants live in a vendor's cloud, and those can only reach a server on the internet.
|
|
7
|
+
|
|
8
|
+
> **Experimental and unsupported. Off by default.** Nothing in OpenRig listens on the internet unless you set it up yourself. You serve `rig mcp serve --http`, put it behind your own TLS tunnel or proxy, and issue a token. Doing that is like opening a port in your firewall. Anyone with the URL and a valid token can act as that member within its grant. Treat the token like a password, give the member the narrowest grant, and revoke it when you're done (`rig mcp token revoke <name>`). We don't support, and take no responsibility for, an OpenRig reachable from the internet, just as with running OpenRig itself on the open internet. Use at your own risk.
|
|
9
|
+
|
|
10
|
+
## Set one up
|
|
11
|
+
|
|
12
|
+
1. **Pick its address** on an existing rig: `<member>@<rig>`, for example `grok@research`. No node is added; the queue takes rows for it.
|
|
13
|
+
2. **Say what it's good at, and its limits,** in a roster: an entry in `<workspace.root>/rosters/<file>.json` with its seat, this machine's host id
|
|
14
|
+
(`hostSelfId` from `rig ps --nodes -A --json`), `capabilities`, `use_when`, `why`, a `caveat` for its limits, and `"hosted": true` (see
|
|
15
|
+
[Rosters](rosters.md)).
|
|
16
|
+
3. **Issue its grant:**
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
rig mcp token add grok --seat grok@research --rig research
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
It prints the token once. The member acts as `grok@research`: every row it creates or changes is attributed to that seat, and it reaches only
|
|
23
|
+
that rig's seats and work.
|
|
24
|
+
4. **Serve the MCP server over HTTP** behind a tunnel or proxy that adds TLS: `rig mcp serve --http`. See `rig mcp serve --help` for binding and
|
|
25
|
+
for how authentication works. If the proxy runs browser checks (such as Cloudflare's Browser Integrity Check), skip them for `/mcp`:
|
|
26
|
+
MCP clients aren't browsers.
|
|
27
|
+
5. **Add the server in the tool:** its `https://…/mcp` URL and the token as a bearer credential.
|
|
28
|
+
|
|
29
|
+
## How it works its rows
|
|
30
|
+
|
|
31
|
+
- **Hand it work** as you would any seat: `rig queue create --destination grok@research …`.
|
|
32
|
+
- **The member works it** through the MCP tools:
|
|
33
|
+
- `rig_queue_list` with `owned` lists its rows;
|
|
34
|
+
- `rig_queue_claim` takes one;
|
|
35
|
+
- `rig_queue_update` closes it done with the answer in `resolution`, or `rig_queue_handoff` hands it on to a seat in its rig.
|
|
36
|
+
- **It can send work too:** `rig_queue_create` to its rig's seats.
|
|
37
|
+
- **Its rows outlive the conversation.** A new conversation with the same grant reaches the same work.
|
|
38
|
+
- **`rig_whoami`** answers the seat its grant names, though the member has no session.
|
|
39
|
+
|
|
40
|
+
## Asking a person while keeping the work
|
|
41
|
+
|
|
42
|
+
When a row needs a person's approval before the member can finish it, the member keeps the row and asks:
|
|
43
|
+
- **The row came from a person:** the member sets it `blocked` with `blockedOn` that person, and puts the question, with a short form of
|
|
44
|
+
what it will do, in the row's `summary`. The person is asked with the summary and the row; a transition note stays in the row's history
|
|
45
|
+
and isn't part of the ask. A longer draft goes at an https link in `evidenceRef`, which the ask carries. The person's answer returns the
|
|
46
|
+
row to the member in progress.
|
|
47
|
+
- **The row came from a seat, or from a shared channel:** the member asks as a new row, to that seat, or for a channel's row to its rig's
|
|
48
|
+
lead (a shared channel takes correspondence and can't answer an ask). Then it sets its own row `blocked` on the new row's id. When the
|
|
49
|
+
question closes, the member's row returns to pending.
|
|
50
|
+
- **Keep the question and action summary short.** A long row body continues as numbered thread replies, within the existing delivery
|
|
51
|
+
limits. Use an https `evidenceRef` for a longer approval draft. The summary and framing can still be too large, so nothing promises
|
|
52
|
+
unlimited delivery.
|
|
53
|
+
|
|
54
|
+
Either way the row reads blocked, not done, while it waits, and the member finishes that same row. Nothing promises to wake the
|
|
55
|
+
member, so it checks its rows again.
|
|
56
|
+
|
|
57
|
+
The server tells the member this in its MCP instructions. The text is versioned, so you can check which version a tool received:
|
|
58
|
+
|
|
59
|
+
> Member workflow (member-workflow/v2). Your inbox is the items addressed to your seat: rig_queue_list with owned set. It's yours, not the team's queue. A wake, a ring or a message only points at it: list your inbox, then act. For each item: claim it (rig_queue_claim), do it, then close it done with closure reason no-follow-on and the answer in resolution (rig_queue_update), or hand it on (rig_queue_handoff). Listing or reading an item doesn't take it. Say what you can reach from your grant, not from the tool list: a listed tool isn't access. rig_artifact_read's answer for an item names the shared roots you may read, and none means no shared files. If the person connected you, that's basically authorized: claim the items in your inbox and do them without asking whether you may. When an item needs a person's approval before you can finish it, don't close it and don't take the action: keep the item and ask. If it came from a person (an address ending in @external that isn't a shared channel; the item's 'Shared channel:' line names one), set it blocked with blockedOn that person and, as its summary, the question with a short form of what you'll do: the person sees the summary and the item, not your note, which keeps the record. Link a longer draft as an https evidenceRef. Their answer returns the item to you in progress. Otherwise ask as a new item, to the seat it came from or, for a shared channel's item, to your rig's lead (rig_team shows it), with your question and draft. Then set yours blocked with blockedOn that new qitemId: when that item closes, yours returns to pending, to claim again. Nothing promises to wake you, so check your inbox again. Then finish the same item; don't open a new one.
|
|
60
|
+
|
|
61
|
+
## Ring it when work lands
|
|
62
|
+
|
|
63
|
+
If the tool has a trigger that starts it from outside, such as a webhook on a scheduled routine, add it to the member's roster
|
|
64
|
+
entry. The entry holds secret names, never values:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
"wake": { "webhook": { "url_ref": "GROK_WAKE_URL", "authorization_ref": "GROK_WAKE_AUTH", "secrets_env_file": "/abs/path/grok-wake.env" } }
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- **The secrets:**
|
|
71
|
+
- `url_ref` names the secret holding the webhook URL.
|
|
72
|
+
- `authorization_ref`, when the tool needs one, names the secret holding the `Authorization` header value.
|
|
73
|
+
- Credentials in the URL itself (`https://user:pass@host/…`) are sent as Basic `Authorization` instead, unless
|
|
74
|
+
`authorization_ref` is set: then its value is sent, and the URL's credentials are dropped.
|
|
75
|
+
- The daemon reads each from its environment (the name, or `OPENRIG_<NAME>`), else from `secrets_env_file`, an env file kept at mode 0600.
|
|
76
|
+
- **The ring:** when a row lands for the member, the daemon POSTs
|
|
77
|
+
`{"source":"openrig.queue","schema_version":1,"event":"work-waiting","qitem_id":…,"destination":…,"summary":…,"from":…}`.
|
|
78
|
+
- It's a pointer, not the row's body: the member reads the row under its grant.
|
|
79
|
+
- A receiver should tolerate a repeated `qitem_id`. A ring accepted just before the daemon stops, before it's recorded,
|
|
80
|
+
is rung again on recovery, the same at-least-once window a terminal wake has.
|
|
81
|
+
- It waits up to 10 seconds and doesn't follow redirects.
|
|
82
|
+
- **What the trigger should do:** start a run that lists the member's rows (`rig_queue_list` with `owned`) and claims its work.
|
|
83
|
+
|
|
84
|
+
## What the record says, and doesn't
|
|
85
|
+
|
|
86
|
+
These facts stay separate on the row:
|
|
87
|
+
- **Wake:** with a trigger, the row's wake result is `wake-accepted:webhook (<url_ref>) answered <status>` when the trigger took the
|
|
88
|
+
ring, or `failed:webhook …`. Accepted means the tool's trigger answered, not that the member read the row.
|
|
89
|
+
- With no trigger, the result is `unroutable`, and OpenRig tells the person: the operator seat when it's a person, else whoever
|
|
90
|
+
created the row.
|
|
91
|
+
- It tells the person too when the member was rung but hasn't claimed the work by the stuck sweep's unclaimed age
|
|
92
|
+
(`queue.stuck_sweep_unclaimed_age_minutes`, 60 by default).
|
|
93
|
+
- The member sees new work when it checks: when it's rung, when its person asks it to, or on a schedule the tool runs.
|
|
94
|
+
- **Pickup:** its claim, a transition by its seat. Listing or reading a row isn't pickup.
|
|
95
|
+
- **Result:** the closing transition and its resolution, or the handoff.
|
|
96
|
+
- **Notification:** where a person asked, Slack's posted receipt. A posted notice isn't the person's acknowledgment.
|
|
97
|
+
|
|
98
|
+
**On the team:** `rig_team` lists the rig's hosted members (roster entries marked hosted that aren't one of its nodes), with their capabilities and caveat, no pane, and activity `unknown`.
|
|
99
|
+
OpenRig doesn't observe a hosted member between its calls, so it never reads idle. `rig roster find` shows it the same way.
|
|
100
|
+
- **Presence:** each entry carries `presence`, which says what OpenRig last saw of the member. It isn't pickup, and `null` means unknown:
|
|
101
|
+
- `lastCallAt`: its last authenticated call to this host's `rig mcp serve --http`, recorded at most once a minute in
|
|
102
|
+
`<OPENRIG_HOME>/mcp-http-presence.json`, beside the token file;
|
|
103
|
+
- `lastWake`: its latest ring and the result, among its 50 most recent rows.
|
|
104
|
+
- `rig roster show` and `find` show the last call; the last ring is in `rig_team`.
|
|
105
|
+
|
|
106
|
+
## Revoke
|
|
107
|
+
|
|
108
|
+
`rig mcp token revoke grok` refuses its next request. The rows it worked, and their answers, stay.
|
|
109
|
+
|
|
110
|
+
## Limits today
|
|
111
|
+
|
|
112
|
+
- **Webhook triggers only:** OpenRig rings a webhook. Email and other triggers aren't supported yet. A member without a trigger
|
|
113
|
+
isn't rung, and its person is told instead.
|
|
114
|
+
- **It can't act as a person:** it works rows addressed to its seat, a person's request to it included. It can't settle an ask addressed to a person, or hand work to one.
|
|
@@ -120,6 +120,11 @@ or **"Not tested by OpenRig"**, which means exactly that. You're welcome to run
|
|
|
120
120
|
|
|
121
121
|
## 6. Submit it to openrig.dev/rigs
|
|
122
122
|
|
|
123
|
+
Before you submit, run `rig bundle check` on the folder at the commit you'll submit. openrig-registry's registry check
|
|
124
|
+
runs the same check, with the latest published OpenRig, on the folder at your `ref`, and any finding fails it. A team
|
|
125
|
+
made with `rig export` has no README of its own: add one and declare it in `rig.yaml` as `docs: [{ path: README.md }]`
|
|
126
|
+
(see [section 1](#1-lay-out-the-folder)).
|
|
127
|
+
|
|
123
128
|
Open a pull request to [mvschwarz/openrig-registry](https://github.com/mvschwarz/openrig-registry) that adds one file,
|
|
124
129
|
`registry/submissions/<your-team>.yaml`, with three fields: `repository` (your GitHub repository URL), `folder` (the
|
|
125
130
|
folder holding `rig.yaml`, or `.` for the repository root) and `ref` (a branch, tag or commit). No pull requests? Open
|
|
@@ -17,7 +17,7 @@ npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/ri
|
|
|
17
17
|
npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs --skill rigs --agent codex
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
For a new install, use the latest release's tag, for example `v0.7.
|
|
20
|
+
For a new install, use the latest release's tag, for example `v0.7.5`. If OpenRig is already installed, use the tag
|
|
21
21
|
that matches `rig --version`, or upgrade first. If the command fails with `npx: command not found`, Node.js isn't
|
|
22
22
|
installed or isn't on your PATH yet (see [What you need](#what-you-need)). Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what
|
|
23
23
|
you want built.
|
|
@@ -195,13 +195,13 @@ it as the step to finish: sign in, then continue at step 3.
|
|
|
195
195
|
|
|
196
196
|
## Learn it in this order
|
|
197
197
|
|
|
198
|
-
1. **How OpenRig works:** [the world and its purpose](
|
|
198
|
+
1. **How OpenRig works:** [the world and its purpose](../../packages/daemon/assets/onboarding/01-world-and-purpose.md),
|
|
199
199
|
the first page a new agent in a team gets. It's written to agents, and it's the shortest account of rigs, seats and
|
|
200
200
|
queued work. Your install has the same page under `$(npm root -g)/@openrig/cli/daemon/assets/onboarding/`.
|
|
201
201
|
2. **First use:** this page, and [what these words mean](#what-these-words-mean).
|
|
202
202
|
3. **One command:** `rig <command> --help` is the exact answer for the version you have installed, and `rig --help`
|
|
203
203
|
lists every command.
|
|
204
|
-
4. **Every command and flag:** the [CLI reference](
|
|
204
|
+
4. **Every command and flag:** the [CLI reference](../as-built/cli-reference.md).
|
|
205
205
|
It describes the source commit it names, so where it and your installed `--help` disagree, `--help` is right for
|
|
206
206
|
your version.
|
|
207
207
|
|
|
@@ -314,8 +314,11 @@ ambient `OPENRIG_YOLO` it replaces. With workspace-write, OpenRig still adds its
|
|
|
314
314
|
and, on a fresh launch, git metadata folders; with read-only it adds no writable roots. It adds
|
|
315
315
|
no network setting of its own. Codex's implicit roots (the working directory and temporary
|
|
316
316
|
folders) still apply: this is a native sandbox and approval selection, not a complete
|
|
317
|
-
filesystem or credential-isolation guarantee.
|
|
318
|
-
Codex
|
|
317
|
+
filesystem or credential-isolation guarantee. OpenRig's tests prove these launch flags, not
|
|
318
|
+
that Codex enforces them, so check the seat's actual behaviour before relying on a narrower
|
|
319
|
+
envelope. An OpenRig older than 0.7.3 doesn't read a recorded envelope, so after a downgrade
|
|
320
|
+
the seat launches without it. The field is also supported on legacy flat Codex nodes; other
|
|
321
|
+
runtimes reject it.
|
|
319
322
|
|
|
320
323
|
For an existing seat, put the envelope in a JSON file, or change its profile, with the existing
|
|
321
324
|
audited permission command:
|
|
@@ -715,7 +718,11 @@ This is human-authored (you choose the pod/member IDs) and system-validated (the
|
|
|
715
718
|
| `spawned_by` | Source was spawned by target; the target launches first. Constrains launch order. | Child → parent in hierarchical topologies |
|
|
716
719
|
| `can_observe` | Source can observe target's output. Does NOT constrain launch order. | Reviewer → implementer, monitor → worker |
|
|
717
720
|
| `collaborates_with` | Peer collaboration relationship. Does NOT constrain launch order. | Co-equal peers working together |
|
|
718
|
-
| `escalates_to` |
|
|
721
|
+
| `escalates_to` | Fallback queue escalation for a seat without a declared delegation parent. Does NOT constrain launch order. | Local member or same-daemon `pod-member@rig` address |
|
|
722
|
+
|
|
723
|
+
A named `escalates_to` target may be in another rig on the same daemon and need not exist at import time.
|
|
724
|
+
See [fallback escalation across rigs](edge-types.md#fallback-escalation-across-rigs) for precedence, single-hop delivery,
|
|
725
|
+
cycle detection and visible fallback outcomes.
|
|
719
726
|
|
|
720
727
|
### Pod-Local Edges
|
|
721
728
|
|
|
@@ -86,3 +86,9 @@ UNKNOWN is `{ "status": "unknown", "reason": "..." }`; older daemons may yield
|
|
|
86
86
|
`null`. `--full` and `--fields modelObservation` retain the full object, including
|
|
87
87
|
its status and occupant generation. Human output and roster reports use the full
|
|
88
88
|
labelled observation.
|
|
89
|
+
|
|
90
|
+
A member marked `"hosted": true` is a hosted member: a tool outside the terminal that reaches the team over MCP, with no node or pane.
|
|
91
|
+
`rig_team` lists it with its capabilities and caveat, no pane and activity unknown, unless its seat is one of the rig's nodes.
|
|
92
|
+
`show` and `find` say it's hosted rather than unmatched. See [Hosted members](hosted-members.md).
|
|
93
|
+
Its entry can declare `wake.webhook`, the secret names for a trigger OpenRig rings when work lands for it
|
|
94
|
+
(see [Ring it when work lands](hosted-members.md#ring-it-when-work-lands)).
|