@openrig/cli 0.7.12 → 0.7.13
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/icon.png +0 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +4 -2
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +2 -2
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +5 -3
- package/daemon/assets/plugins/openrig-core/README.md +6 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +125 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -1
- package/daemon/assets/skills/rigs/SKILL.md +7 -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 +28 -7
- package/daemon/context-packs/reference/getting-started.md +25 -13
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +14 -0
- package/daemon/context-packs/reference/tmux-servers.md +4 -1
- package/daemon/context-packs/reference/whats-new.md +164 -179
- 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/SKILL.md +5 -0
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/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/pi-runner.d.ts +49 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +343 -28
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +9 -1
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +36 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/connection-contract-surface.d.ts +2 -0
- package/daemon/dist/connection-contract-surface.d.ts.map +1 -0
- package/daemon/dist/connection-contract-surface.js +4 -0
- package/daemon/dist/connection-contract-surface.js.map +1 -0
- 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/160_network_bindings.d.ts +7 -0
- package/daemon/dist/db/migrations/160_network_bindings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/160_network_bindings.js +26 -0
- package/daemon/dist/db/migrations/160_network_bindings.js.map +1 -0
- package/daemon/dist/db/migrations/161_network_receipts.d.ts +8 -0
- package/daemon/dist/db/migrations/161_network_receipts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/161_network_receipts.js +25 -0
- package/daemon/dist/db/migrations/161_network_receipts.js.map +1 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts +5 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.js +12 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.js.map +1 -0
- package/daemon/dist/domain/agent-activity-store.d.ts +8 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +14 -0
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +5 -0
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/connection-contract.d.ts +111 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -0
- package/daemon/dist/domain/connection-contract.js +113 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -0
- package/daemon/dist/domain/execution-view.js +2 -2
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/install-engine.d.ts +5 -0
- package/daemon/dist/domain/install-engine.d.ts.map +1 -1
- package/daemon/dist/domain/install-engine.js +28 -26
- package/daemon/dist/domain/install-engine.js.map +1 -1
- package/daemon/dist/domain/install-verifier.d.ts +5 -1
- package/daemon/dist/domain/install-verifier.d.ts.map +1 -1
- package/daemon/dist/domain/install-verifier.js +12 -1
- package/daemon/dist/domain/install-verifier.js.map +1 -1
- package/daemon/dist/domain/managed-block-records.d.ts +9 -3
- package/daemon/dist/domain/managed-block-records.d.ts.map +1 -1
- package/daemon/dist/domain/managed-block-records.js +43 -8
- package/daemon/dist/domain/managed-block-records.js.map +1 -1
- package/daemon/dist/domain/managed-blocks.d.ts +40 -3
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +151 -39
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +3 -2
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +40 -0
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -0
- package/daemon/dist/domain/network/hub-client.js +102 -0
- package/daemon/dist/domain/network/hub-client.js.map +1 -0
- package/daemon/dist/domain/network/network-bindings.d.ts +74 -0
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-bindings.js +235 -0
- package/daemon/dist/domain/network/network-bindings.js.map +1 -0
- package/daemon/dist/domain/network/network-connector.d.ts +77 -0
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-connector.js +380 -0
- package/daemon/dist/domain/network/network-connector.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +6 -5
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/package-install-service.d.ts +1 -0
- package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
- package/daemon/dist/domain/package-install-service.js +2 -1
- package/daemon/dist/domain/package-install-service.js.map +1 -1
- package/daemon/dist/domain/plugin-vendor-service.d.ts +9 -0
- package/daemon/dist/domain/plugin-vendor-service.d.ts.map +1 -1
- package/daemon/dist/domain/plugin-vendor-service.js +50 -8
- package/daemon/dist/domain/plugin-vendor-service.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +12 -13
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +14 -0
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +45 -22
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts +3 -3
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.js +16 -5
- package/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js +2 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +6 -0
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +9 -3
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +6 -0
- package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +16 -1
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +55 -2
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +75 -20
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +45 -27
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +6 -0
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/receiver-context.d.ts +9 -0
- package/daemon/dist/domain/receiver-context.d.ts.map +1 -0
- package/daemon/dist/domain/receiver-context.js +24 -0
- package/daemon/dist/domain/receiver-context.js.map +1 -0
- package/daemon/dist/domain/reconciler.d.ts +15 -6
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +26 -26
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +6 -4
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +38 -27
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +11 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +24 -1
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +9 -2
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +9 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +55 -7
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +18 -2
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +13 -8
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +46 -26
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +7 -4
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +16 -5
- 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 +7 -4
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +5 -2
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +60 -16
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts +0 -3
- package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.js +5 -34
- package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js +22 -13
- package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +5 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +11 -6
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/tmux-option-defaults.d.ts +4 -4
- package/daemon/dist/domain/tmux-option-defaults.d.ts.map +1 -1
- package/daemon/dist/domain/tmux-option-defaults.js +25 -12
- package/daemon/dist/domain/tmux-option-defaults.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +3 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +8 -3
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +8 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +34 -10
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +2 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +12 -0
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +8 -33
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +9 -0
- package/daemon/dist/routes/network.d.ts.map +1 -0
- package/daemon/dist/routes/network.js +58 -0
- package/daemon/dist/routes/network.js.map +1 -0
- package/daemon/dist/routes/packages.js +3 -1
- package/daemon/dist/routes/packages.js.map +1 -1
- package/daemon/dist/routes/proof.d.ts.map +1 -1
- package/daemon/dist/routes/proof.js +6 -4
- package/daemon/dist/routes/proof.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +4 -0
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts +1 -0
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +66 -16
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/spec-library.d.ts.map +1 -1
- package/daemon/dist/routes/spec-library.js +7 -3
- package/daemon/dist/routes/spec-library.js.map +1 -1
- package/daemon/dist/server.d.ts +2 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +5 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +16 -26
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +21 -13
- package/daemon/docs/reference/claude-status-line.md +25 -9
- package/daemon/docs/reference/getting-started.md +25 -13
- package/daemon/docs/reference/herdr-app.md +3 -2
- package/daemon/docs/reference/hosted-members.md +32 -2
- package/daemon/docs/reference/keeping-a-watch.md +28 -0
- package/daemon/docs/reference/network-connector.md +114 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/rig-spec.md +14 -0
- package/daemon/docs/reference/rosters.md +5 -0
- package/daemon/docs/reference/tmux-servers.md +4 -1
- package/daemon/docs/reference/whats-new.md +164 -179
- package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +5 -0
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +42 -16
- package/dist/build-info.js +3 -3
- package/dist/commands/daemon.d.ts +8 -2
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +46 -4
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/host.d.ts +4 -10
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +7 -34
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/network.d.ts +12 -0
- package/dist/commands/network.d.ts.map +1 -0
- package/dist/commands/network.js +95 -0
- package/dist/commands/network.js.map +1 -0
- package/dist/commands/package.d.ts.map +1 -1
- package/dist/commands/package.js +5 -0
- package/dist/commands/package.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +7 -0
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +17 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +47 -2
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +4 -3
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/watchdog.d.ts.map +1 -1
- package/dist/commands/watchdog.js +22 -2
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +6 -1
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +11 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +61 -9
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.js +1 -1
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +1 -0
- package/dist/lazy-program.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +10 -5
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +8 -4
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.js +1 -1
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +44 -29
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/state.js +2 -2
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +4 -0
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/topology/host-label.d.ts +2 -0
- package/tui/dist/topology/host-label.d.ts.map +1 -1
- package/tui/dist/topology/host-label.js +7 -1
- package/tui/dist/topology/host-label.js.map +1 -1
- package/tui/dist/types.d.ts +2 -1
- package/tui/dist/types.d.ts.map +1 -1
|
@@ -1,4 +1,163 @@
|
|
|
1
|
-
# What changed in OpenRig 0.7.
|
|
1
|
+
# What changed in OpenRig 0.7.13
|
|
2
|
+
|
|
3
|
+
This note is for an agent on an install that was just upgraded to 0.7.13.
|
|
4
|
+
OpenRig 0.7.13 writes a person a note after they answer a runner's permission
|
|
5
|
+
request and wakes the waiting runner on the decision. It tells a receiving agent
|
|
6
|
+
what an answer typed at the machine means and how to ask the person back.
|
|
7
|
+
`rig daemon start` tells the setup agent to offer to register the person when nobody is registered,
|
|
8
|
+
and a usage-limited Claude seat waits for the reset its message states. It adds
|
|
9
|
+
three database migrations. If you upgraded from 0.7.11 or earlier, also read
|
|
10
|
+
"What changed in OpenRig 0.7.12" below, and so on back. For the full capability
|
|
11
|
+
map, read `rig context get onboarding-width/public-what-you-can-do.md`. After the
|
|
12
|
+
upgraded daemon starts, `rig context get reference/whats-new.md` describes this
|
|
13
|
+
version. Without a running daemon, read the packaged
|
|
14
|
+
`daemon/docs/reference/whats-new.md`.
|
|
15
|
+
|
|
16
|
+
## After the upgrade
|
|
17
|
+
|
|
18
|
+
- **Back up the database, then restart the daemon.** Three migrations run on the
|
|
19
|
+
daemon's first start: 160 and 161 (network bindings and receipts, for the
|
|
20
|
+
experimental hub connector) and 162 (indexes for current-session reads). If
|
|
21
|
+
`$OPENRIG_DB` isn't backed up yet: `rig daemon stop` (seats keep running, so
|
|
22
|
+
don't use `rig down`), copy that file (`rig config get db.path` shows it),
|
|
23
|
+
then `rig daemon start`. Going back to 0.7.12 after these migrations isn't
|
|
24
|
+
established.
|
|
25
|
+
- **The plugins:** openrig-core moves from 0.1.28 to 0.1.29 (its activity relay
|
|
26
|
+
and refocus hooks changed). The `openrig` plugin's manifests now carry the
|
|
27
|
+
CLI's version, 0.7.13. A Codex session kept running across the upgrade can ask
|
|
28
|
+
for hook approval until it's relaunched.
|
|
29
|
+
|
|
30
|
+
## Answers, setup and seats
|
|
31
|
+
|
|
32
|
+
- **A runner's permission answer gets a note back to the person:** who decides
|
|
33
|
+
it and in what state, or that it's kept and the tool hasn't run. A runner
|
|
34
|
+
already waiting sees the decision at once. If a person asks what happened to
|
|
35
|
+
an answer, read that note before asking them to answer again. If it says the
|
|
36
|
+
answer couldn't be passed on, follow its retry instruction or use the
|
|
37
|
+
`rig seat decide-permission` command it names.
|
|
38
|
+
([#3001](https://github.com/mvschwarz/openrig/pull/3001))
|
|
39
|
+
- **If you receive a person's answer**, the text you read now says what an answer
|
|
40
|
+
typed at this machine's terminal or TUI means (recorded as `human@host`): act
|
|
41
|
+
on a clear one with the request's own decision command, and don't ask them to
|
|
42
|
+
confirm. When it's unclear, ask them back with a new ask to them
|
|
43
|
+
(`rig queue create --destination <person> …`), never to `human@host`. When the
|
|
44
|
+
default receiving agent asks back, the question reaches the person's Feed and
|
|
45
|
+
their reply decides. Closing a runner's request without deciding permits nothing.
|
|
46
|
+
([#3030](https://github.com/mvschwarz/openrig/pull/3030))
|
|
47
|
+
- **Setup:** when the person registry can be read and holds nobody,
|
|
48
|
+
`rig daemon start` ends by telling the setup agent to offer to register the
|
|
49
|
+
person, with the command to run only on their yes; pass it on. Asking to be
|
|
50
|
+
reachable registers the person as the default directly. In fresh-install
|
|
51
|
+
tests the setup agent passed the offer on in 5 of 6 installs, and a no
|
|
52
|
+
registered nothing. `rig up`, `rig start` and `rig context` start the daemon
|
|
53
|
+
without printing it. A person who talks to the
|
|
54
|
+
kernel operator first isn't offered registration in this release: offer
|
|
55
|
+
`rig gateway human add` yourself. ([#3028](https://github.com/mvschwarz/openrig/pull/3028))
|
|
56
|
+
- **A first team's permissions:** in the change's own tests, before launch, the
|
|
57
|
+
kernel operator names the commands the team will ask for, reuses a choice the
|
|
58
|
+
person made, or makes one project-scoped offer, applied on their yes. Don't
|
|
59
|
+
tell the person it means fewer asks: that hasn't been shown. Chained commands
|
|
60
|
+
and OpenRig's own lifecycle commands still ask on Claude seats. ([#3029](https://github.com/mvschwarz/openrig/pull/3029))
|
|
61
|
+
- **A usage-limited Claude seat** whose limit message states a reset time parks
|
|
62
|
+
its pending work until then. Don't release it on a timer.
|
|
63
|
+
([#2917](https://github.com/mvschwarz/openrig/pull/2917))
|
|
64
|
+
|
|
65
|
+
## Other changes to act on
|
|
66
|
+
|
|
67
|
+
- **Handover:** a handover whose successor launched but isn't ready says it may
|
|
68
|
+
be running. Look at the pane (`rig capture '<seat>'`) before another handover
|
|
69
|
+
or a fresh launch, either of which ends it. A handover also cleans up the
|
|
70
|
+
retiring occupant's own claims and jobs. ([#3003](https://github.com/mvschwarz/openrig/pull/3003), [#3024](https://github.com/mvschwarz/openrig/pull/3024))
|
|
71
|
+
- **Adopted sessions:** release one with `rig unclaim <session>`, then end its
|
|
72
|
+
process and its tmux session. Closing its viewing window only detaches it. A
|
|
73
|
+
fresh launch after that ended the server's last session reopens the server.
|
|
74
|
+
([#2996](https://github.com/mvschwarz/openrig/pull/2996), [#3006](https://github.com/mvschwarz/openrig/pull/3006), [#3009](https://github.com/mvschwarz/openrig/pull/3009))
|
|
75
|
+
- **Connected assistants** show a check-in status against the cadence their
|
|
76
|
+
roster entry states (`check_in_minutes` or `check_in_on_request: true`), as a
|
|
77
|
+
Check-in line in `rig roster show` and `find`. It's a status, not a delivery
|
|
78
|
+
gate, and a cadence is the person's statement, not proof the assistant ran.
|
|
79
|
+
([#3023](https://github.com/mvschwarz/openrig/pull/3023))
|
|
80
|
+
- **Passive SSH host status reads `unknown`** now that routine listings don't
|
|
81
|
+
probe SSH hosts. Use `rig host doctor` to check one. ([#2979](https://github.com/mvschwarz/openrig/pull/2979))
|
|
82
|
+
- **Guidance files:** cleanup removes redundant recognized copies of a managed
|
|
83
|
+
block and keeps distinct edited copies. A saved write record lets OpenRig keep
|
|
84
|
+
a person's edits; on a fresh start, a differing block with no write record is
|
|
85
|
+
refreshed and named, while an exact resume or restore keeps it. A recognized
|
|
86
|
+
block whose marker pair is incomplete is named
|
|
87
|
+
(`guidance_block_markers_damaged`) and left as it is; repair the marker by
|
|
88
|
+
hand. If both marker words were changed, it can read as no block. ([#3020](https://github.com/mvschwarz/openrig/pull/3020))
|
|
89
|
+
- **Delivery reads truer:** Claude's auto-update failure footers (one clipped form
|
|
90
|
+
too) no longer hold a send, an unrecognised wake result reads unknown, and an
|
|
91
|
+
ordinary one-time park wake is kept and retried while its park is
|
|
92
|
+
current and the failed attempt typed nothing (an unknown effect needs checking;
|
|
93
|
+
repeating waits and usage-limit expiry keep their own lifecycle). ([#2948](https://github.com/mvschwarz/openrig/pull/2948), [#3016](https://github.com/mvschwarz/openrig/pull/3016), [#3011](https://github.com/mvschwarz/openrig/pull/3011), [#3038](https://github.com/mvschwarz/openrig/pull/3038))
|
|
94
|
+
- **The TUI:** for a quiet seat the daemon explicitly reads as unknown, the
|
|
95
|
+
list, explorer and agent-detail status rows show unknown. Screen motion still
|
|
96
|
+
shows active, a daemon that serves no activity keeps the screen fallback, and
|
|
97
|
+
the topology graph is unchanged. Feed times use `ui.timezone`. ([#3012](https://github.com/mvschwarz/openrig/pull/3012), [#3022](https://github.com/mvschwarz/openrig/pull/3022))
|
|
98
|
+
- **Experimental, at the person's own risk:** `rig network` connects one local
|
|
99
|
+
seat to a hub they already have. The connector uses the MCP SDK, which the
|
|
100
|
+
installed package already included in 0.7.12. The daemon starts it even with
|
|
101
|
+
no binding.
|
|
102
|
+
([#2993](https://github.com/mvschwarz/openrig/pull/2993))
|
|
103
|
+
|
|
104
|
+
## Limits to keep in view
|
|
105
|
+
|
|
106
|
+
- **Not in this release:** a Codex snapshot restore or `rig up --existing` can
|
|
107
|
+
write OpenRig's managed guidance into a tracked `AGENTS.md`, leaving the
|
|
108
|
+
worktree modified; check `git status` after either operation.
|
|
109
|
+
- **Not in this release:** the kernel operator's own registration offer, as above
|
|
110
|
+
([#3041](https://github.com/mvschwarz/openrig/pull/3041)). While nobody is registered, `rig daemon start` repeats its offer
|
|
111
|
+
even after a no; nothing is registered without a yes.
|
|
112
|
+
- **Speed and memory:** On one performance host, whole `rig queue create`
|
|
113
|
+
invocations had a median about 10.4% slower than 0.7.12 (about +29 ms). Send
|
|
114
|
+
latency stayed within the comparison's unchanged range. The cause remains
|
|
115
|
+
unidentified. The standard idle-memory comparison was inconclusive. A post-hoc
|
|
116
|
+
analysis of the same six runs found 7.9–8.6 MiB (4.2–5.3%) higher daemon RSS
|
|
117
|
+
across three matched idle windows, using the median of three arm medians per
|
|
118
|
+
version. The cause and steady-state behavior remain unestablished.
|
|
119
|
+
- **Draft-aware delivery ([#3076](https://github.com/mvschwarz/openrig/issues/3076)):** an automatic OpenRig notice can be left beside a
|
|
120
|
+
draft started during delivery. This also concerns notices admitted by
|
|
121
|
+
openrig-urgent and urgent-only modes. In the reproduced 0.7.12 Claude Code and
|
|
122
|
+
Codex cases, the person's draft remained intact and no Enter was sent, but
|
|
123
|
+
OpenRig's text stayed in the input. The guard and paste path are unchanged in
|
|
124
|
+
this cut; a native 0.7.13 reproduction has not run.
|
|
125
|
+
- **Native model pickers:** with a /model picker open, an ordinary send can act
|
|
126
|
+
on the picker instead of delivering the message. In 0.7.12 tests it confirmed
|
|
127
|
+
Claude Code's already-selected default and advanced Codex's model selection;
|
|
128
|
+
neither message reached the model. Close or deliberately resolve the picker
|
|
129
|
+
before ordinary delivery. The native 0.7.13 case has not run.
|
|
130
|
+
- **Codex hook review after an upgrade:** in one test whose Codex home already
|
|
131
|
+
held earlier hook approvals, `rig up --existing` stopped for hook review in
|
|
132
|
+
each Codex pane; approving the hooks resumed all three conversations. A
|
|
133
|
+
separate test of the same upgrade on a fresh Codex home, on another host,
|
|
134
|
+
restored without review. The cause of the difference is not established.
|
|
135
|
+
- **A first team with Codex installed but signed out:** a Claude person's starter
|
|
136
|
+
team includes a Codex reviewer that waits for a Codex sign-in, and the person
|
|
137
|
+
isn't told beforehand. If Codex is installed, have them sign in first.
|
|
138
|
+
- **The hub connector isn't inert:** it starts, sweeps leftover credential
|
|
139
|
+
folders and schedules local rounds even with no binding; only the hub pass is
|
|
140
|
+
absent. Don't describe it as off. ([#2993](https://github.com/mvschwarz/openrig/pull/2993))
|
|
141
|
+
- **The recorder:** a queued begin record can be lost before the durable append,
|
|
142
|
+
and a stalled worker has no acknowledgement timeout. ([#3019](https://github.com/mvschwarz/openrig/pull/3019))
|
|
143
|
+
- **Proof reads** are much more responsive, but still pause briefly, and a whole
|
|
144
|
+
read takes slightly longer. It isn't a hard latency bound or an atomic snapshot. ([#2970](https://github.com/mvschwarz/openrig/pull/2970))
|
|
145
|
+
- **Usage-limit parking** was tested with `claude -p`'s message; if an
|
|
146
|
+
interactive seat's report lacks it, the seat is retried as before. ([#2917](https://github.com/mvschwarz/openrig/pull/2917))
|
|
147
|
+
- **Handover:** a context delivery failure, and a Codex launch failure after an
|
|
148
|
+
undismissed update prompt, can still say "retry" while a successor runs.
|
|
149
|
+
([#3003](https://github.com/mvschwarz/openrig/pull/3003))
|
|
150
|
+
- **Answers:** an ask-back can stop at Claude Code's own permission prompt,
|
|
151
|
+
which the person doesn't see. A receiving agent the person chose can still
|
|
152
|
+
decline to act on a clear answer. A pairing requester's description is quoted
|
|
153
|
+
for the receiving agent but not yet in the request's summary or notices.
|
|
154
|
+
([#3030](https://github.com/mvschwarz/openrig/pull/3030))
|
|
155
|
+
- **0.7.12's limits below** still apply, except that [#2970](https://github.com/mvschwarz/openrig/pull/2970) and [#2948](https://github.com/mvschwarz/openrig/pull/2948)
|
|
156
|
+
are now in this release, runner answers are confirmed and reach a waiting
|
|
157
|
+
runner at once ([#3001](https://github.com/mvschwarz/openrig/pull/3001)), and `rig seat stop` no longer suggests `rig down`
|
|
158
|
+
for an adopted session ([#3006](https://github.com/mvschwarz/openrig/pull/3006)). 0.7.12's not-run list was for that release.
|
|
159
|
+
|
|
160
|
+
## What changed in OpenRig 0.7.12
|
|
2
161
|
|
|
3
162
|
This note is for an agent on an install that was just upgraded to 0.7.12.
|
|
4
163
|
OpenRig 0.7.12 routes a person's typed, clicked or qualified answers with the
|
|
@@ -12,7 +171,7 @@ OpenRig 0.7.11" below, and so on back. For the full capability map, read
|
|
|
12
171
|
daemon starts, `rig context get reference/whats-new.md` describes this version.
|
|
13
172
|
Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`.
|
|
14
173
|
|
|
15
|
-
|
|
174
|
+
### After the upgrade
|
|
16
175
|
|
|
17
176
|
- **Back up the database, then restart the daemon.** Five migrations run on the
|
|
18
177
|
daemon's first start: 155, 156 and 157 (queue erasure and its batches), 158
|
|
@@ -38,7 +197,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
|
|
|
38
197
|
Tell the person, and stop those by hand if they're theirs to stop.
|
|
39
198
|
([#2962](https://github.com/mvschwarz/openrig/pull/2962))
|
|
40
199
|
|
|
41
|
-
|
|
200
|
+
### Answers from a person reach an agent
|
|
42
201
|
|
|
43
202
|
- Answers nothing else reads, such as a host pairing request or a mode's
|
|
44
203
|
scheduled end, use the configured receiving agent or the kernel operator.
|
|
@@ -67,7 +226,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
|
|
|
67
226
|
that waited for it. When it needed to ask back in testing, the question
|
|
68
227
|
appeared in its own conversation, not in the Feed or Steering.
|
|
69
228
|
|
|
70
|
-
|
|
229
|
+
### Other changes to act on
|
|
71
230
|
|
|
72
231
|
- **Setup's guidance** asks the agent to offer to register the person; in
|
|
73
232
|
testing it didn't reliably make the offer (0 of 5 runs). Registering works
|
|
@@ -95,7 +254,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
|
|
|
95
254
|
- **A start reservation left after a reboot** is archived by `rig daemon start`;
|
|
96
255
|
don't clear it by hand. ([#2915](https://github.com/mvschwarz/openrig/pull/2915))
|
|
97
256
|
|
|
98
|
-
|
|
257
|
+
### Limits to keep in view
|
|
99
258
|
|
|
100
259
|
- **Not in this release:** daemon pauses of up to about a second while reading
|
|
101
260
|
proof on large mission trees ([#2970](https://github.com/mvschwarz/openrig/pull/2970)), and a delivery stall to a Claude seat
|
|
@@ -580,177 +739,3 @@ daemon's main API port (normally 7433)."
|
|
|
580
739
|
apply.
|
|
581
740
|
|
|
582
741
|
---
|
|
583
|
-
|
|
584
|
-
## What changed in OpenRig 0.7.9
|
|
585
|
-
|
|
586
|
-
The changes from 0.7.8 to 0.7.9, published on 2026-11-06, for an install
|
|
587
|
-
upgrading from 0.7.8 or earlier.
|
|
588
|
-
|
|
589
|
-
### After the upgrade
|
|
590
|
-
|
|
591
|
-
- **Restart the daemon** to load the new code: `rig daemon stop`, then
|
|
592
|
-
`rig daemon start`.
|
|
593
|
-
- **Migrations 146 to 149** record a Pi seat's guidance file, what OpenRig last
|
|
594
|
-
wrote in each managed guidance block, an index for reading a rig's outbox,
|
|
595
|
-
and the stream intake position.
|
|
596
|
-
- **Tell the person that stream intake is on.** Each `rig stream emit` now opens
|
|
597
|
-
an intake row for the kernel queue worker (`queue.worker`), or adds a note to
|
|
598
|
-
the one still unclaimed, and the row wakes the queue worker like any queue row.
|
|
599
|
-
Earlier stream history isn't replayed. If they want 0.7.8's behaviour, with no
|
|
600
|
-
intake rows, run `rig config set stream.intake off`.
|
|
601
|
-
- **The bundled openrig-core plugin goes from 0.1.24 to 0.1.25.** Its
|
|
602
|
-
seat-continuity-and-handover skill changed. Managed refresh preserves replaced
|
|
603
|
-
files under `$OPENRIG_HOME/backups/managed-refresh/<id>/`; reapply local edits
|
|
604
|
-
you still need from the preserved copy.
|
|
605
|
-
- **Where seat guidance goes now:**
|
|
606
|
-
- a fresh Pi seat gets OpenRig's guidance in its own agent folder's
|
|
607
|
-
`AGENTS.md`, unless that file or folder is a link;
|
|
608
|
-
- a fresh Codex seat on Codex 0.164.0 or later gets it as launch developer
|
|
609
|
-
instructions, not in the repository `AGENTS.md`, when no config layer
|
|
610
|
-
OpenRig reads sets `developer_instructions`;
|
|
611
|
-
- a Codex resume, fork, restore or handover successor, an older or unknown
|
|
612
|
-
Codex, and a config layer that sets `developer_instructions` or can't be read
|
|
613
|
-
still use the repository `AGENTS.md`;
|
|
614
|
-
- if only the person's shell startup sets `CODEX_HOME`, OpenRig reads
|
|
615
|
-
`~/.codex`, so a `developer_instructions` set in their home is replaced for
|
|
616
|
-
that session. Declare the same absolute path as `CODEX_HOME` in the member's
|
|
617
|
-
or rig's `env:` to have it checked. `docs/reference/agent-startup-guide.md`
|
|
618
|
-
("Codex guidance at launch") is the rule;
|
|
619
|
-
- a managed block a person edited by hand is kept and named
|
|
620
|
-
(`guidance_block_edited`), not replaced. Read the warning before you change
|
|
621
|
-
the block.
|
|
622
|
-
- **Slack:** on the first start after upgrading, the connector edits the asks
|
|
623
|
-
that ended earlier to show they were handled, at Slack's edit rate: about an
|
|
624
|
-
hour for 450 asks. `rig slack status` shows pending edits.
|
|
625
|
-
- **OpenShell:** rebuild a guest image built for 0.7.8 with this release's
|
|
626
|
-
helper; an older helper rejects the new startup step, and the error names the
|
|
627
|
-
rebuild.
|
|
628
|
-
|
|
629
|
-
### Runner seats
|
|
630
|
-
|
|
631
|
-
Section 7 of `docs/reference/harness-runner-contract.md` is the rule for
|
|
632
|
-
permissions, and section 4 for activity. Read them before writing or changing a
|
|
633
|
-
runner.
|
|
634
|
-
- **Typed words:** a reply of just yes or no counts as the agent's allow or
|
|
635
|
-
reject. Any other words choose nothing: OpenRig's default permits the request
|
|
636
|
-
when the agent offered an allow option, and the read result carries the words
|
|
637
|
-
whole as `said`. A runner may queue them for the agent as an ordinary prompt
|
|
638
|
-
after the current turn, never as the answer; one that drops them still keeps
|
|
639
|
-
the contract. The ask now tells the person this.
|
|
640
|
-
- **Permit records:** each permit OpenRig decides by default (no one to ask, or
|
|
641
|
-
an ask closed without a choice, including a row passed to an agent seat) is
|
|
642
|
-
recorded once, as a stream item from the seat, naming the tool call, why no
|
|
643
|
-
person answered and the option given. Read them with
|
|
644
|
-
`rig stream list --tag runner-permission-permit` or `--source <seat>`. A record
|
|
645
|
-
has no destination and never changes the permit. Stream intake reads past it, so
|
|
646
|
-
it opens no intake row and wakes no one.
|
|
647
|
-
- **The working beat:** while a prompt is outstanding and the agent is alive, a
|
|
648
|
-
runner may post `active` / `liveness` so a long call keeps reading working.
|
|
649
|
-
After delivering an answer or permit, it posts `active` /
|
|
650
|
-
`permission_resolved`. A runner that sends no beats behaves as before. The Pi
|
|
651
|
-
runner and the dsh example post it.
|
|
652
|
-
- **Check a runner** with
|
|
653
|
-
`node daemon/docs/reference/runner-conformance/check-runner.mjs --runner '<command with {agent}>' --name <harness>`.
|
|
654
|
-
It now covers the beat, and no longer falsely fails a correct runner on a busy
|
|
655
|
-
machine.
|
|
656
|
-
- **The dsh example** reads `DSH_SEAT_BIN` and `DSH_SEAT_HOME` from the member's
|
|
657
|
-
`env:`, and section 8 names ACP's `session/resume`.
|
|
658
|
-
|
|
659
|
-
### OpenShell workers
|
|
660
|
-
|
|
661
|
-
0.7.9 includes a repair for the OpenShell worker that wasn't usable in 0.7.8,
|
|
662
|
-
but the worker still doesn't work in 0.7.9. Don't rely on this path in 0.7.9.
|
|
663
|
-
Startup reaches the guest through a hash-checked first-input file, and nothing
|
|
664
|
-
is typed through the host viewer. Readiness checks the guest's own execution,
|
|
665
|
-
and a failed owned delete reports the stage that failed. Release testing on
|
|
666
|
-
0.7.9 then found two more problems: the guest's Claude couldn't reach its model
|
|
667
|
-
(`SELF_SIGNED_CERT_IN_CHAIN`), because the guest launcher left out the CA
|
|
668
|
-
settings the OpenShell exec supplies, and deleting an owned environment never
|
|
669
|
-
sent the delete, because its inventory step misread a "Not Found" reply. 0.7.10's
|
|
670
|
-
fixes for both are described above. "Never grant the guest access to the
|
|
671
|
-
daemon's main API port (normally 7433)."
|
|
672
|
-
|
|
673
|
-
### Assistants connected through a grant service (experimental)
|
|
674
|
-
|
|
675
|
-
Experimental, unsupported, off by default, and at the person's own risk. With
|
|
676
|
-
`rig mcp serve --http --grant-service <url>` and a grant service the person
|
|
677
|
-
supplies and runs, a connected assistant can claim, update and park the rows
|
|
678
|
-
addressed to its own seat, and see its team with `rig_team`, within the scope its
|
|
679
|
-
existing tools have. Nothing wakes it: an item stays queued until its receiver
|
|
680
|
-
claims it. Name the outside service, and the exposure of serving MCP over HTTP,
|
|
681
|
-
to the person before you set this up. `docs/reference/hosted-members.md` is the
|
|
682
|
-
rule.
|
|
683
|
-
|
|
684
|
-
### Other changes to act on
|
|
685
|
-
|
|
686
|
-
- **Held messages:** a seat that starts, or takes over a seat, with held
|
|
687
|
-
messages is told how many there are. Read them with
|
|
688
|
-
`rig seat held-messages <seat>`.
|
|
689
|
-
- **Unconfirmed sends:** `rig send --verify` now reports unconfirmed and exits 1
|
|
690
|
-
when it can't see what its Enter did, and `rig walk` reports unconfirmed
|
|
691
|
-
instead of lost. Inspect the recipient before any resend.
|
|
692
|
-
- **Deadlines:** to accept a re-estimate without unclaiming the work, run
|
|
693
|
-
`rig queue update <id> --closure-required-at <ISO>`.
|
|
694
|
-
- **Shared workspaces:** any registered person can settle another's ask as
|
|
695
|
-
themselves, and the first committed answer wins; a later answer gets 409
|
|
696
|
-
`qitem_already_terminal` and records nothing. A person registered with no
|
|
697
|
-
connector binding is asked on Steering and in the Feed only.
|
|
698
|
-
- **Handover:** a fresh or rebuild successor's first turn lists its startup
|
|
699
|
-
files, role first. A successor that started without a required startup file is
|
|
700
|
-
marked in the seat list.
|
|
701
|
-
- **Ambiguous rig names:** when an active rig name matches more than one rig,
|
|
702
|
-
`rig env down`, `status` and `logs` list the matching rig IDs and stop, and
|
|
703
|
-
`rig doctor --spec` reports conformance as unknown. Use the rig ID.
|
|
704
|
-
- **Seat activity:** window samples older than their bound no longer decide a
|
|
705
|
-
seat's activity, so a seat whose pane can't be read reads unknown rather than
|
|
706
|
-
its last verdict. Treat unknown as unknown, not idle.
|
|
707
|
-
- **Launch options:** `specs.builtins_visible: false` hides built-in specs
|
|
708
|
-
(`rig specs ls --include-builtins` still lists them); `plugin_channels` gives
|
|
709
|
-
one Claude member its own `--channels`, untested with a real channel plugin.
|
|
710
|
-
- **Files:** `rig down` removes OpenRig's own additions from a working folder
|
|
711
|
-
once no live seat uses them. `rig export` with no `-o` writes
|
|
712
|
-
`rig-export.yaml` beside an existing `rig.yaml`. `rig workspace validate` exits
|
|
713
|
-
1 for malformed optional frontmatter.
|
|
714
|
-
- **Kernels:** a new default kernel starts in `<workspace.root>/kernel`.
|
|
715
|
-
Existing kernels stay where they are. `docs/reference/agent-startup-guide.md`
|
|
716
|
-
explains the optional move; a fresh launch there starts a new native
|
|
717
|
-
conversation, so ask the person before moving.
|
|
718
|
-
- **PATH:** if preflight warns that a Codex seat's login shell can't find `rig`,
|
|
719
|
-
follow its fix. `getting-started.md` explains the `~/.profile` line and how to
|
|
720
|
-
check it with `bash -lc 'command -v node rig'`.
|
|
721
|
-
|
|
722
|
-
### Limits to keep in view
|
|
723
|
-
|
|
724
|
-
- **OpenShell:** the worker doesn't work in 0.7.9 (above). A same-generation
|
|
725
|
-
reconciled launch opens no viewer, so run `rig environment connect` yourself;
|
|
726
|
-
non-text startup actions aren't supported on environment seats.
|
|
727
|
-
- **Open updates for a person** read a 1,001-row window, so a page can come back
|
|
728
|
-
short, marked `truncated`.
|
|
729
|
-
- **Slack:** a private channel needs the documented route, which isn't tested,
|
|
730
|
-
and direct messages aren't supported. The channel and people reads haven't
|
|
731
|
-
been run against a live Slack workspace. Redaction of the bot token from a
|
|
732
|
-
transport error can still leave a malformed token fragment shorter than six
|
|
733
|
-
characters, so review an error before sharing it.
|
|
734
|
-
- **SSH host status** reads `unknown` behind a ProxyJump or ProxyCommand; that
|
|
735
|
-
isn't proof the connection is broken. `rig host ls` reads the ssh config with
|
|
736
|
-
`ssh -G`, which runs any `Match exec` command in it.
|
|
737
|
-
- **Shared asks:** a click's option written before its answer row can stand
|
|
738
|
-
beside or inside the closer's answer without the first clicker's authorship.
|
|
739
|
-
- **Permit records** last as long as stream retention keeps them. A permit a
|
|
740
|
-
runner makes on its own, when it can't reach OpenRig, is in its pane only. For
|
|
741
|
-
an ask opened before 0.7.9, a record may omit the option's kind.
|
|
742
|
-
- **Existing seats** pick up Codex launch instructions and the single
|
|
743
|
-
openrig-core skill load at their next fresh launch. A `CLAUDE.md` or
|
|
744
|
-
`AGENTS.md` that already grew a line per launch isn't trimmed.
|
|
745
|
-
- **Codex hooks after an upgrade:** Codex sessions kept running across the
|
|
746
|
-
upgrade show "Hook failed — plugin contents changed; hook approval required"
|
|
747
|
-
until relaunched.
|
|
748
|
-
- **0.7.8's limits** on the dsh `env:` names, conformance false failures, typed
|
|
749
|
-
words, the README's operator address, a symlinked rebuild, the rebuild receipt,
|
|
750
|
-
a re-parked click and unrecorded default permits are fixed or changed. The
|
|
751
|
-
other 0.7.8 limits below, and the
|
|
752
|
-
[0.7.7](https://github.com/mvschwarz/openrig/releases/tag/v0.7.7) and
|
|
753
|
-
[0.7.6](https://github.com/mvschwarz/openrig/releases/tag/v0.7.6) limits, still
|
|
754
|
-
apply.
|
|
755
|
-
|
|
756
|
-
---
|
|
@@ -94,6 +94,11 @@ pools and missing edge artifacts.
|
|
|
94
94
|
|
|
95
95
|
## Active surface
|
|
96
96
|
|
|
97
|
+
For a worked `periodic-reminder` YAML spec, full registration command and required
|
|
98
|
+
flags, read `rig context get reference/keeping-a-watch.md#recurring-reminders-for-agents`.
|
|
99
|
+
This is an agent's recurring reminder. A person's watch uses the one-shot queue
|
|
100
|
+
pattern in `rig context get reference/keeping-a-watch.md#setting-a-watch`.
|
|
101
|
+
|
|
97
102
|
Daemon `rig watchdog` is the active host coordination surface for new
|
|
98
103
|
work. History records only loud evaluations (`sent` / `terminal`);
|
|
99
104
|
quiet skip reasons are NOT recorded — POC parity so agents are not
|
|
@@ -119,7 +119,8 @@ configurations, as below; do not take the pin from a cached page summary.
|
|
|
119
119
|
from the installing agent; do not ask for them again. If the goal is missing,
|
|
120
120
|
ask once: "What would you like to build or change?" If they already named a
|
|
121
121
|
team, use it and skip the questions it answers. Keep any choice the
|
|
122
|
-
handoff carries, such as a trust or hook-review prompt they declined
|
|
122
|
+
handoff carries, such as a trust or hook-review prompt they declined or
|
|
123
|
+
a permission choice they made.
|
|
123
124
|
2. **Where it works.** If the folder is missing, ask which folder the team should
|
|
124
125
|
work in (usually a clone of their repository) and use its absolute path. Your
|
|
125
126
|
own working directory is OpenRig's: the workspace's `kernel` folder (on an older
|
|
@@ -249,11 +250,30 @@ configurations, as below; do not take the pin from a cached page summary.
|
|
|
249
250
|
separates project files, not that Codex home. `rig setup` lists these writes. If they'd rather keep
|
|
250
251
|
their folder as it is, offer a separate copy, such as a git worktree.
|
|
251
252
|
If the plan declares non-interruptive or broad access, say so plainly before asking for their yes.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
Before their yes, explain the team's permission defaults. Claude's team
|
|
254
|
+
default adds allowances for ordinary `rig` commands, project reads and
|
|
255
|
+
common tests. Branches, commits, running their program, installs and other
|
|
256
|
+
shell commands may ask, depending on existing native rules. A Codex seat
|
|
257
|
+
uses its configured writable roots and may ask for broader access. When a
|
|
258
|
+
prompt appears, they can answer in that seat's terminal or through you.
|
|
259
|
+
Their own agent's mode isn't the team's; existing user and project rules
|
|
260
|
+
can still affect the seats. Their yes starts the team; it isn't a yes to
|
|
261
|
+
later prompts.
|
|
262
|
+
- **A permission choice already made** (in the handoff or to you: fewer
|
|
263
|
+
prompts for this project, a mode, a rule, or keep prompts on): use it,
|
|
264
|
+
and don't ask again.
|
|
265
|
+
- **Otherwise, one offer if they want fewer interruptions:** name the
|
|
266
|
+
command families this goal will repeat in their folder (for example
|
|
267
|
+
`git switch`, `git add`, `git commit` and the project's test command)
|
|
268
|
+
and offer to allow just those, for this project only. For Claude seats
|
|
269
|
+
that's allow rules in the project's `.claude/settings.local.json`,
|
|
270
|
+
normally loaded by Claude sessions in that folder, including their own,
|
|
271
|
+
under the default setting sources; for a Codex seat, follow the same
|
|
272
|
+
skill's Codex rules. On their yes, apply it with
|
|
273
|
+
`applying-a-permission-policy`. Say what still asks: a command joined
|
|
274
|
+
with `&&`, `;` or a pipe asks unless every part is allowed, and on Claude
|
|
275
|
+
seats OpenRig's lifecycle commands still ask. On a no, keep the team
|
|
276
|
+
default and don't offer again.
|
|
257
277
|
For a team that already exists, `rig seat status <seat>` shows each seat's
|
|
258
278
|
planned permissions: the native mode, where it comes from, what OpenRig
|
|
259
279
|
adds and what isn't known. Read it to them as planned, not observed.
|
|
@@ -339,10 +359,14 @@ configurations, as below; do not take the pin from a cached page summary.
|
|
|
339
359
|
names. Tell them it's a usage limit, which seat, and when it resets, with
|
|
340
360
|
the menu's choices in its own words. One of them may spend usage credits,
|
|
341
361
|
so the choice is theirs.
|
|
342
|
-
When you see one, tell them where they
|
|
343
|
-
prompt asks (`rig capture <session>` with the seat's
|
|
344
|
-
`canonicalSessionName` shows it) and
|
|
345
|
-
|
|
362
|
+
When you see one, tell them where it is and where they can answer: which
|
|
363
|
+
seat, what its prompt asks (`rig capture <session>` with the seat's
|
|
364
|
+
`canonicalSessionName` shows it), and that seat's terminal in the team's
|
|
365
|
+
space from step 8, or through you. Only when no space is open, give the
|
|
366
|
+
seat's `tmuxAttachCommand` as a command for a new terminal, with one
|
|
367
|
+
line on what it does (it shows that seat; closing the window leaves the
|
|
368
|
+
seat running), or just its name if it has none. Never send them to a
|
|
369
|
+
bare `tmux attach`. Don't answer another seat's prompt yourself.
|
|
346
370
|
With prompts on, several seats may wait at once. Gather them, then tell
|
|
347
371
|
the person in one message, one line per prompt: the seat, the exact
|
|
348
372
|
action it asks to take (the command or file), and the choices the prompt
|
|
@@ -366,12 +390,14 @@ configurations, as below; do not take the pin from a cached page summary.
|
|
|
366
390
|
and check the result before sending anything more; never resend an answer
|
|
367
391
|
whose effect you can't see. Otherwise they answer in the seat's pane.
|
|
368
392
|
Grouping can shorten the asking, not the number of prompts. If they find
|
|
369
|
-
the prompts too many
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
393
|
+
the prompts too many and haven't already chosen, make step 6's one offer,
|
|
394
|
+
named from the commands that actually asked: allow those command families
|
|
395
|
+
for this project, applied on their yes with `applying-a-permission-policy`,
|
|
396
|
+
which says how to check it took effect in the seats. Their other choices
|
|
397
|
+
stay open: keep prompts on; take a prompt's own standing approval for one
|
|
398
|
+
command when it offers one; `rig seat set-permissions` for later launches;
|
|
399
|
+
or Workshop's broad-access bundle. An answer to a prompt never changes a
|
|
400
|
+
permission mode.
|
|
375
401
|
|
|
376
402
|
Avoid these:
|
|
377
403
|
- launching a team without the person's yes;
|
package/dist/build-info.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// GENERATED by scripts/build-package.sh — the packaged build-identity stamp.
|
|
2
2
|
export const BUILD_INFO = {
|
|
3
|
-
semver: "0.7.
|
|
4
|
-
commit: "
|
|
3
|
+
semver: "0.7.13",
|
|
4
|
+
commit: "b69cc9295f94a7485a5aab8e1f0b29d8ec5cc6b6",
|
|
5
5
|
dirty: false,
|
|
6
|
-
builtAt: "2026-11-
|
|
6
|
+
builtAt: "2026-11-12T18:32:14Z",
|
|
7
7
|
};
|
|
8
8
|
export function stampFields(info = BUILD_INFO) {
|
|
9
9
|
if (!info.commit) return {};
|
|
@@ -6,8 +6,10 @@ interface ProcessAliveDeps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function createIsProcessAlive(deps: ProcessAliveDeps): (pid: number) => boolean;
|
|
8
8
|
export type SignalOutcome = "sent" | "missing" | "not-permitted";
|
|
9
|
-
/** kill(pid, 0) as an outcome. POSIX: only ESRCH
|
|
10
|
-
* EXISTS but this shell may not signal it
|
|
9
|
+
/** kill(pid, 0) as an outcome. POSIX: kill(pid, 0) fails only with ESRCH (no such process) or EPERM
|
|
10
|
+
* (the process EXISTS but this shell may not signal it: another user's process, or a sandbox such as
|
|
11
|
+
* Codex's). Only ESRCH is "missing"; any other error is not evidence of death, so it reads as
|
|
12
|
+
* "not-permitted" (uninspectable), never as a dead process. */
|
|
11
13
|
export declare function signalProbe(pid: number, kill?: (pid: number, signal: 0) => unknown): SignalOutcome;
|
|
12
14
|
/** #275 — three-state liveness for status reads. Only a missing process (ESRCH) or a zombie is
|
|
13
15
|
* dead. A process that exists but cannot be inspected (EPERM, or `ps` cannot run, as inside
|
|
@@ -22,6 +24,10 @@ type ExecFile = (file: string, args: string[], options: {
|
|
|
22
24
|
}) => string;
|
|
23
25
|
export declare function readProcessState(pid: number, platform?: NodeJS.Platform, run?: ExecFile): string | null;
|
|
24
26
|
export declare function realDeps(): LifecycleDeps;
|
|
27
|
+
/** What `daemon start` tells the agent setting OpenRig up when the person registry holds nobody: the offer, in the
|
|
28
|
+
* output it reads at that moment. Empty when a person is registered, or when the registry can't be read, since an
|
|
29
|
+
* unreadable registry isn't evidence that nobody is registered. */
|
|
30
|
+
export declare function personRegistrationOffer(): Promise<string[]>;
|
|
25
31
|
export declare function daemonCommand(depsOverride?: LifecycleDeps): Command;
|
|
26
32
|
export {};
|
|
27
33
|
//# sourceMappingURL=daemon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../src/commands/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../src/commands/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,eAAe,EAKrB,MAAM,wBAAwB,CAAC;AAEhC,UAAU,gBAAgB;IACxB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAClD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CASrF;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,eAAe,CAAC;AAEjE;;;gEAGgE;AAChE,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,OAAsB,GAAG,aAAa,CAOhH;AAED;;;mGAGmG;AACnG,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,aAAa,CAAC;IACvC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAClD,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,eAAe,CASnC;AAED,KAAK,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KAAK,MAAM,CAAC;AAGzF,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,MAAM,CAAC,QAA2B,EAC5C,GAAG,GAAE,QAAuB,GAC3B,MAAM,GAAG,IAAI,CAOf;AAED,wBAAgB,QAAQ,IAAI,aAAa,CAmFxC;AAED;;oEAEoE;AACpE,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAajE;AAED,wBAAgB,aAAa,CAAC,YAAY,CAAC,EAAE,aAAa,GAAG,OAAO,CAiPnE"}
|
package/dist/commands/daemon.js
CHANGED
|
@@ -6,7 +6,7 @@ import { acquireDaemonStartLock, bootedAtMs, currentBootId } from "../daemon-sta
|
|
|
6
6
|
import { formatDaemonHostForUrl } from "../client.js";
|
|
7
7
|
import { execFileSync, spawn } from "node:child_process";
|
|
8
8
|
import { fetchWithTimeout } from "../fetch-with-timeout.js";
|
|
9
|
-
import { startDaemon, stopDaemon, getDaemonStatus, readLogs, tailLogs, OPENRIG_DIR, STATE_FILE, resolveBindIntent, } from "../daemon-lifecycle.js";
|
|
9
|
+
import { startDaemon, stopDaemon, getDaemonStatus, readLogs, tailLogs, OPENRIG_DIR, STATE_FILE, resolveBindIntent, statusGuardMessage, } from "../daemon-lifecycle.js";
|
|
10
10
|
export function createIsProcessAlive(deps) {
|
|
11
11
|
return (pid) => {
|
|
12
12
|
if (!deps.signalCheck(pid))
|
|
@@ -19,15 +19,17 @@ export function createIsProcessAlive(deps) {
|
|
|
19
19
|
return true;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
/** kill(pid, 0) as an outcome. POSIX: only ESRCH
|
|
23
|
-
* EXISTS but this shell may not signal it
|
|
22
|
+
/** kill(pid, 0) as an outcome. POSIX: kill(pid, 0) fails only with ESRCH (no such process) or EPERM
|
|
23
|
+
* (the process EXISTS but this shell may not signal it: another user's process, or a sandbox such as
|
|
24
|
+
* Codex's). Only ESRCH is "missing"; any other error is not evidence of death, so it reads as
|
|
25
|
+
* "not-permitted" (uninspectable), never as a dead process. */
|
|
24
26
|
export function signalProbe(pid, kill = process.kill) {
|
|
25
27
|
try {
|
|
26
28
|
kill(pid, 0);
|
|
27
29
|
return "sent";
|
|
28
30
|
}
|
|
29
31
|
catch (error) {
|
|
30
|
-
return error.code === "
|
|
32
|
+
return error.code === "ESRCH" ? "missing" : "not-permitted";
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
/** #275 — three-state liveness for status reads. Only a missing process (ESRCH) or a zombie is
|
|
@@ -175,8 +177,38 @@ export function realDeps() {
|
|
|
175
177
|
catch {
|
|
176
178
|
return [];
|
|
177
179
|
} },
|
|
180
|
+
// #2860: where the OS has pid namespaces (Linux), a missing pid is only proof from the daemon's own.
|
|
181
|
+
pidNamespace: () => {
|
|
182
|
+
if (process.platform !== "linux")
|
|
183
|
+
return "host";
|
|
184
|
+
try {
|
|
185
|
+
return fs.readlinkSync("/proc/self/ns/pid");
|
|
186
|
+
}
|
|
187
|
+
catch {
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
},
|
|
178
191
|
};
|
|
179
192
|
}
|
|
193
|
+
/** What `daemon start` tells the agent setting OpenRig up when the person registry holds nobody: the offer, in the
|
|
194
|
+
* output it reads at that moment. Empty when a person is registered, or when the registry can't be read, since an
|
|
195
|
+
* unreadable registry isn't evidence that nobody is registered. */
|
|
196
|
+
export async function personRegistrationOffer() {
|
|
197
|
+
try {
|
|
198
|
+
const { participantsView } = await import("../../daemon/dist/gateway-human-registry-surface.js");
|
|
199
|
+
const view = participantsView();
|
|
200
|
+
if (!view.ok || view.participants.some((p) => p.kind === "person"))
|
|
201
|
+
return [];
|
|
202
|
+
}
|
|
203
|
+
catch {
|
|
204
|
+
return [];
|
|
205
|
+
}
|
|
206
|
+
return [
|
|
207
|
+
"No person is registered yet, so OpenRig's questions to a person, such as another machine asking to pair, can't reach anyone.",
|
|
208
|
+
"If you're setting OpenRig up for someone, offer to register them now. Ask the name to use, and only on their yes run:",
|
|
209
|
+
' rig gateway human add <id> --display-name "<name>" --delivery-class B --default',
|
|
210
|
+
];
|
|
211
|
+
}
|
|
180
212
|
export function daemonCommand(depsOverride) {
|
|
181
213
|
const getDeps = () => depsOverride ?? realDeps();
|
|
182
214
|
const cmd = new Command("daemon").description("Manage the OpenRig daemon");
|
|
@@ -313,6 +345,9 @@ export function daemonCommand(depsOverride) {
|
|
|
313
345
|
process.exitCode = 1;
|
|
314
346
|
}
|
|
315
347
|
}
|
|
348
|
+
if (process.exitCode !== 1)
|
|
349
|
+
for (const line of await personRegistrationOffer())
|
|
350
|
+
console.log(line);
|
|
316
351
|
}
|
|
317
352
|
catch (err) {
|
|
318
353
|
console.error(err instanceof Error ? err.message : String(err));
|
|
@@ -381,6 +416,13 @@ export function daemonCommand(depsOverride) {
|
|
|
381
416
|
console.log(` sibling: ${status.siblingHint.siblingHome}`);
|
|
382
417
|
console.log(" Fix: point OPENRIG_HOME at the right home (or check your shell env) — this CLI is likely resolving the wrong home.");
|
|
383
418
|
}
|
|
419
|
+
else if (status.pidUnseen) {
|
|
420
|
+
// #2860: the same words as the command guard.
|
|
421
|
+
const unseen = statusGuardMessage(status);
|
|
422
|
+
console.log(unseen.fact);
|
|
423
|
+
console.log(` ${unseen.consequence}`);
|
|
424
|
+
console.log(` ${unseen.action}`);
|
|
425
|
+
}
|
|
384
426
|
else if (!status.startPending) {
|
|
385
427
|
// A pending start's probe was refused, not inconclusive; its line above says what is known.
|
|
386
428
|
console.log("Daemon state UNVERIFIED — the probe timed out or was inconclusive (this is NOT evidence the daemon is down).");
|