@openrig/cli 0.7.2 → 0.7.3
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/skills/claude-compaction-restore/SKILL.md +2 -2
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +37 -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 +64 -11
- package/daemon/context-packs/reference/getting-started.md +7 -5
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +86 -3
- package/daemon/context-packs/reference/whats-new.md +147 -281
- 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/SKILL.md +2 -2
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +37 -3
- 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/SKILL.md +5 -2
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/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/SKILL.md +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/systematic-debugging/root-cause-tracing.md +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/codex-resume.d.ts +2 -1
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +12 -6
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +9 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +374 -49
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +1 -1
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +3 -3
- package/daemon/dist/adapters/pi-runner-protocol.js +2 -2
- package/daemon/dist/adapters/pi-runner.d.ts +1 -1
- package/daemon/dist/adapters/pi-runner.js +2 -2
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +0 -3
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +0 -5
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +13 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +53 -3
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +16 -1
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/context-pack-taxonomy-surface.js +1 -1
- package/daemon/dist/context-pack-taxonomy-surface.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +2 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts +3 -0
- package/daemon/dist/db/migrations/137_node_codex_permissions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/137_node_codex_permissions.js +7 -0
- package/daemon/dist/db/migrations/137_node_codex_permissions.js.map +1 -0
- package/daemon/dist/domain/active-occupant.js +1 -1
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +1 -1
- package/daemon/dist/domain/agent-activity-store.js +2 -2
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-resolver.js +1 -1
- package/daemon/dist/domain/agent-resolver.js.map +1 -1
- package/daemon/dist/domain/bind-plan.js +1 -1
- package/daemon/dist/domain/bind-plan.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-skills-router.js +2 -2
- package/daemon/dist/domain/bundle-skills-router.js.map +1 -1
- package/daemon/dist/domain/codex-member-permissions.d.ts +56 -0
- package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/codex-member-permissions.js +140 -0
- package/daemon/dist/domain/codex-member-permissions.js.map +1 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-library-service.js +2 -2
- package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +16 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -0
- package/daemon/dist/domain/execution-candidate-reader.js +77 -0
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -0
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +16 -6
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/feed-perspective.d.ts +14 -0
- package/daemon/dist/domain/feed-perspective.d.ts.map +1 -0
- package/daemon/dist/domain/feed-perspective.js +36 -0
- package/daemon/dist/domain/feed-perspective.js.map +1 -0
- package/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
- package/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +11 -4
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +36 -5
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +5 -2
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +180 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/participants.js +434 -0
- package/daemon/dist/domain/gateway/participants.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts +2 -2
- package/daemon/dist/domain/gateway/slack/inbound-admission.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound-admission.js +73 -6
- package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +18 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +27 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +14 -6
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts +50 -0
- package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/open-asks.js +215 -0
- package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/outbound-driver.js +1 -0
- package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +98 -29
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.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 +56 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.d.ts +3 -0
- package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/state-store.js +18 -0
- package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
- package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-read-layer.js +3 -1
- package/daemon/dist/domain/mission-control/mission-control-read-layer.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +16 -0
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -16
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-permission-store.d.ts +3 -2
- package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
- package/daemon/dist/domain/native-permission-store.js +14 -1
- package/daemon/dist/domain/native-permission-store.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +37 -2
- 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/permission-account.d.ts.map +1 -1
- package/daemon/dist/domain/permission-account.js +44 -9
- package/daemon/dist/domain/permission-account.js.map +1 -1
- package/daemon/dist/domain/permission-drift-observer.js +1 -1
- package/daemon/dist/domain/permission-drift-observer.js.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.d.ts +6 -2
- package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
- package/daemon/dist/domain/policies/delivery-digest-flush.js +34 -9
- package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.d.ts +14 -0
- package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
- package/daemon/dist/domain/policies/quiet-release.js +13 -2
- package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
- package/daemon/dist/domain/profile-resolution-worker.d.ts +1 -1
- package/daemon/dist/domain/profile-resolution-worker.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolution-worker.js +5 -5
- package/daemon/dist/domain/profile-resolution-worker.js.map +1 -1
- package/daemon/dist/domain/queue-destination-check.d.ts +5 -0
- package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
- package/daemon/dist/domain/queue-destination-check.js +5 -1
- package/daemon/dist/domain/queue-destination-check.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +23 -5
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +49 -23
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +4 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +17 -5
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/review/compose.js +1 -1
- package/daemon/dist/domain/review/compose.js.map +1 -1
- package/daemon/dist/domain/review/gather.js +1 -1
- package/daemon/dist/domain/review/gather.js.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +1 -0
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +1 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +15 -0
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +3 -0
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +3 -0
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +4 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +12 -1
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +2 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +150 -128
- 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 +24 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +2 -0
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/scope/dot-id.js +2 -2
- package/daemon/dist/domain/scope/dot-id.js.map +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.d.ts +1 -1
- package/daemon/dist/domain/scope/scaffold-placeholder.js +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +1 -1
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +2 -3
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +6 -2
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +23 -8
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +153 -12
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +2 -2
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +2 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +9 -2
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +53 -5
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +1 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +11 -0
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +2 -0
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +3 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +43 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +195 -25
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/skill-library-discovery.js +2 -2
- package/daemon/dist/domain/skill-library-discovery.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +4 -4
- package/daemon/dist/domain/slices/slice-indexer.js +17 -17
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +0 -16
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +7 -60
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +26 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +54 -0
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +1 -0
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/toml-tables.d.ts +20 -0
- package/daemon/dist/domain/toml-tables.d.ts.map +1 -0
- package/daemon/dist/domain/toml-tables.js +101 -0
- package/daemon/dist/domain/toml-tables.js.map +1 -0
- package/daemon/dist/domain/types.d.ts +25 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +5 -6
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/view-projector.d.ts +1 -0
- package/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/daemon/dist/domain/view-projector.js +15 -2
- package/daemon/dist/domain/view-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-human-destination.js +5 -3
- package/daemon/dist/domain/workflow-human-destination.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +1 -0
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +19 -3
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +2 -2
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +6 -4
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/gateway-human-registry-surface.d.ts +1 -0
- package/daemon/dist/gateway-human-registry-surface.d.ts.map +1 -1
- package/daemon/dist/gateway-human-registry-surface.js +1 -0
- package/daemon/dist/gateway-human-registry-surface.js.map +1 -1
- package/daemon/dist/index.js +2 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +4 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +1 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/routes/activity.js +1 -1
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/agent-images.d.ts.map +1 -1
- package/daemon/dist/routes/agent-images.js +10 -0
- package/daemon/dist/routes/agent-images.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +15 -3
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/bundles.js +1 -1
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +42 -0
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +5 -2
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/mission-control.d.ts.map +1 -1
- package/daemon/dist/routes/mission-control.js +5 -1
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/plugins.js +1 -1
- package/daemon/dist/routes/plugins.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +34 -8
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/runtime-switch-custody.js +1 -1
- package/daemon/dist/routes/scope-audit.js +1 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +49 -15
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +15 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/skills.js +1 -1
- package/daemon/dist/routes/skills.js.map +1 -1
- package/daemon/dist/routes/slices.js +1 -1
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/transcripts.js +2 -2
- package/daemon/dist/routes/transcripts.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/routes/workflow.js +1 -1
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/startup.js +1 -1
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +18 -2
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +55 -9
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/terminal/window-pin.d.ts +41 -0
- package/daemon/dist/terminal/window-pin.d.ts.map +1 -0
- package/daemon/dist/terminal/window-pin.js +103 -0
- package/daemon/dist/terminal/window-pin.js.map +1 -0
- package/daemon/docs/reference/a2a-agents.md +16 -4
- package/daemon/docs/reference/agent-startup-guide.md +34 -2
- package/daemon/docs/reference/community-harness-examples/hermes/config.yaml.example +2 -1
- package/daemon/docs/reference/community-harness-presets.md +72 -2
- package/daemon/docs/reference/gateway-participants.md +165 -0
- package/daemon/docs/reference/getting-started.md +7 -5
- package/daemon/docs/reference/quickstart.md +13 -1
- package/daemon/docs/reference/rig-spec.md +86 -3
- package/daemon/docs/reference/seat-delivery.md +10 -1
- package/daemon/docs/reference/seat-node-targeting.md +17 -0
- package/daemon/docs/reference/slack-app-setup.md +20 -2
- package/daemon/docs/reference/whats-new.md +147 -281
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +37 -3
- package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +5 -2
- package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/root-cause-tracing.md +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/commands/acp.js +1 -1
- package/dist/commands/capture.d.ts +27 -0
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +62 -4
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/doctor.d.ts +9 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +18 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +3 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +10 -5
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +309 -23
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +26 -8
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/rig-mode.d.ts +1 -2
- package/dist/commands/rig-mode.d.ts.map +1 -1
- package/dist/commands/rig-mode.js +2 -2
- package/dist/commands/rig-mode.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +12 -4
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +35 -5
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +3 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +16 -18
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +10 -2
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.js +1 -1
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/slack.d.ts +10 -0
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +70 -2
- package/dist/commands/slack.js.map +1 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +3 -2
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +1 -1
- package/dist/daemon-lifecycle.js +2 -2
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/fetch-with-timeout.d.ts.map +1 -1
- package/dist/fetch-with-timeout.js +3 -1
- package/dist/fetch-with-timeout.js.map +1 -1
- package/dist/lib/scope/dot-id.js +2 -2
- package/dist/lib/scope/dot-id.js.map +1 -1
- package/dist/lib/scope/scaffold-placeholder.d.ts +1 -1
- package/dist/lib/scope/scaffold-placeholder.js +1 -1
- package/dist/lib/scope/scope-audit.js +1 -1
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +2 -3
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/long-request-fetch.d.ts +9 -0
- package/dist/long-request-fetch.d.ts.map +1 -0
- package/dist/long-request-fetch.js +48 -0
- package/dist/long-request-fetch.js.map +1 -0
- package/dist/mcp-server.js +1 -1
- package/dist/mcp-server.js.map +1 -1
- package/dist/release-surface/affected-skills.d.ts.map +1 -1
- package/dist/release-surface/affected-skills.js +1 -2
- package/dist/release-surface/affected-skills.js.map +1 -1
- package/dist/remote-host-ops.d.ts +1 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +2 -2
- package/dist/remote-host-ops.js.map +1 -1
- package/dist/tmux-health.d.ts +26 -0
- package/dist/tmux-health.d.ts.map +1 -1
- package/dist/tmux-health.js +42 -0
- package/dist/tmux-health.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts +19 -0
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +38 -6
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/commands/registry.d.ts.map +1 -1
- package/tui/dist/commands/registry.js +4 -1
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +13 -8
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +18 -10
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/demo-data.js +17 -17
- package/tui/dist/demo-data.js.map +1 -1
- package/tui/dist/hydrate.d.ts +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +31 -10
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/live-events.js +1 -1
- package/tui/dist/live-events.js.map +1 -1
- package/tui/dist/main.js +27 -7
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/page-read.js +1 -1
- package/tui/dist/page-read.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +51 -7
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +5 -1
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/terminals/open-window.d.ts +8 -3
- package/tui/dist/terminals/open-window.d.ts.map +1 -1
- package/tui/dist/terminals/open-window.js +21 -6
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +1 -1
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +10 -1
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-DLP1ipGq.js → index-DV0UNxFw.js} +1 -1
- package/ui/dist/index.html +1 -1
|
@@ -2,6 +2,7 @@ import * as fs from "node:fs";
|
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { StringDecoder } from "node:string_decoder";
|
|
5
|
+
import { newPinHolder, readPinSizing, recordPin, releasePin, WINDOW_SIZE_PRIOR_OPTION, withWindowPin } from "./window-pin.js";
|
|
5
6
|
// OPR.0.4.0.38 - real-terminal session broker.
|
|
6
7
|
//
|
|
7
8
|
// The product invariant from the founder is: NO LIVE TERMINAL LIES. A live
|
|
@@ -130,6 +131,10 @@ export class TerminalSessionBroker {
|
|
|
130
131
|
// async open/seed) to find the broker already torn down. Set on every
|
|
131
132
|
// teardown path so a late/racing attach never goes silently live.
|
|
132
133
|
lastClose = null;
|
|
134
|
+
// The window this broker pinned, by its immutable id, and listed itself as a holder of. When the last live holder lets
|
|
135
|
+
// go, the window gets back its own `window-size`, so native clients (Herdr, attach) size it again. Null: nothing held.
|
|
136
|
+
pinnedWindow = null;
|
|
137
|
+
holder = newPinHolder();
|
|
133
138
|
constructor(sessionName, tmux, opts = {}) {
|
|
134
139
|
this.sessionName = sessionName;
|
|
135
140
|
this.tmux = tmux;
|
|
@@ -182,6 +187,7 @@ export class TerminalSessionBroker {
|
|
|
182
187
|
this.lastClose = { code: open.code, reason: open.reason };
|
|
183
188
|
this.torndown = true;
|
|
184
189
|
this.teardownResources();
|
|
190
|
+
await this.restoreWindowSize();
|
|
185
191
|
this.onEmpty?.(this.sessionName);
|
|
186
192
|
sub.close(open.code, open.reason);
|
|
187
193
|
return;
|
|
@@ -323,8 +329,8 @@ export class TerminalSessionBroker {
|
|
|
323
329
|
void this.teardown();
|
|
324
330
|
}
|
|
325
331
|
}
|
|
326
|
-
/** Force teardown (used by the registry/route on shutdown and by tests). */
|
|
327
|
-
dispose() {
|
|
332
|
+
/** Force teardown (used by the registry/route on shutdown and by tests). Resolves once the sizing is given back. */
|
|
333
|
+
async dispose() {
|
|
328
334
|
if (this.torndown)
|
|
329
335
|
return;
|
|
330
336
|
this.lastClose = { code: 1011, reason: "terminal broker unavailable" };
|
|
@@ -336,6 +342,10 @@ export class TerminalSessionBroker {
|
|
|
336
342
|
void this.tmux.stopPipePane(this.sessionName).catch(() => { });
|
|
337
343
|
}
|
|
338
344
|
this.teardownResources();
|
|
345
|
+
// An open still in flight finishes its pin first, so the release below sees it. Then, before onEmpty as in
|
|
346
|
+
// teardown, the release: a broker created next reads the given-back value, not this one's pin.
|
|
347
|
+
await this.openPromise?.catch(() => { });
|
|
348
|
+
await this.restoreWindowSize();
|
|
339
349
|
this.onEmpty?.(this.sessionName);
|
|
340
350
|
}
|
|
341
351
|
async openPipe() {
|
|
@@ -347,9 +357,18 @@ export class TerminalSessionBroker {
|
|
|
347
357
|
return { ok: false, code: 1008, reason: `session not found: ${this.sessionName}` };
|
|
348
358
|
// FR-7 fixed geometry: window-size manual so tmux will NOT auto-shrink the
|
|
349
359
|
// window to the smallest attached client; then the canonical width/height
|
|
350
|
-
// ONCE. Deliberately NOT aggressive-resize, which does the opposite.
|
|
351
|
-
|
|
352
|
-
|
|
360
|
+
// ONCE. Deliberately NOT aggressive-resize, which does the opposite. The
|
|
361
|
+
// window's own value is read first and recorded on the window with this
|
|
362
|
+
// broker as a holder, and given back when the last holder lets go. The window
|
|
363
|
+
// is named by its id, so the pin and the give-back reach the same window even
|
|
364
|
+
// after a client switches windows, and the read, record and pin run in its
|
|
365
|
+
// queue (window-pin.ts), so a readable capture in this daemon takes its turn.
|
|
366
|
+
// Without a window id or a readable value, the session's window is pinned as
|
|
367
|
+
// before with nothing to give back.
|
|
368
|
+
const window = (await this.tmux.readWindow?.(this.sessionName, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.id ?? null;
|
|
369
|
+
const pinned = await (window ? withWindowPin(window, () => this.pinWindow(window)) : this.pinWindow(null));
|
|
370
|
+
if (!pinned || this.torndown)
|
|
371
|
+
return { ok: false, code: 1011, reason: "terminal broker unavailable" }; // dispose gives it back
|
|
353
372
|
const outputPath = path.join(os.tmpdir(), `openrig-term-${this.sessionName.replace(/[^a-zA-Z0-9@-]/g, "_")}-${Date.now()}.log`);
|
|
354
373
|
try {
|
|
355
374
|
fs.writeFileSync(outputPath, "", "utf-8");
|
|
@@ -368,6 +387,20 @@ export class TerminalSessionBroker {
|
|
|
368
387
|
await this.tmux.sendKeys(this.sessionName, ["", ""]).catch(() => { });
|
|
369
388
|
return { ok: true };
|
|
370
389
|
}
|
|
390
|
+
/** Read the window's sizing, record this broker as a holder, then pin the window (FR-7). False: disposed first. */
|
|
391
|
+
async pinWindow(window) {
|
|
392
|
+
const sizing = window ? await readPinSizing(this.tmux, window) : null;
|
|
393
|
+
if (this.torndown)
|
|
394
|
+
return false; // disposed: pin nothing
|
|
395
|
+
if (sizing) {
|
|
396
|
+
this.pinnedWindow = sizing.window;
|
|
397
|
+
await recordPin(this.tmux, sizing, this.holder);
|
|
398
|
+
}
|
|
399
|
+
const target = sizing?.window ?? this.sessionName;
|
|
400
|
+
await this.tmux.setWindowOption(target, "window-size", "manual").catch(() => { });
|
|
401
|
+
await this.tmux.resizeWindow(target, this.cols, this.rows).catch(() => { });
|
|
402
|
+
return true;
|
|
403
|
+
}
|
|
371
404
|
async seed(sub) {
|
|
372
405
|
// AC-5: replay the broker-owned recent-output ring FIRST so the late
|
|
373
406
|
// subscriber's xterm builds the same scrollback the earlier subscribers
|
|
@@ -482,15 +515,15 @@ export class TerminalSessionBroker {
|
|
|
482
515
|
.hasSession(this.sessionName)
|
|
483
516
|
.then((alive) => {
|
|
484
517
|
if (!alive)
|
|
485
|
-
this.handleSessionDeath();
|
|
518
|
+
void this.handleSessionDeath();
|
|
486
519
|
})
|
|
487
520
|
.catch(() => {
|
|
488
|
-
this.handleSessionDeath();
|
|
521
|
+
void this.handleSessionDeath();
|
|
489
522
|
});
|
|
490
523
|
}, this.livenessMs);
|
|
491
524
|
}
|
|
492
525
|
/** FR-5: a dead session closes ALL subscribers honestly - never silent stale-live. */
|
|
493
|
-
handleSessionDeath() {
|
|
526
|
+
async handleSessionDeath() {
|
|
494
527
|
if (this.torndown)
|
|
495
528
|
return;
|
|
496
529
|
this.lastClose = { code: 1001, reason: "tmux session terminated" };
|
|
@@ -510,6 +543,9 @@ export class TerminalSessionBroker {
|
|
|
510
543
|
// already-closed subscriber is fine
|
|
511
544
|
}
|
|
512
545
|
}
|
|
546
|
+
// A probe that couldn't reach tmux isn't proof the window is gone, so give the sizing back anyway. It acts only on a
|
|
547
|
+
// window that still lists this broker, so a gone window or one on a restarted tmux server is left alone.
|
|
548
|
+
await this.restoreWindowSize();
|
|
513
549
|
this.onEmpty?.(this.sessionName);
|
|
514
550
|
}
|
|
515
551
|
async teardown() {
|
|
@@ -521,9 +557,19 @@ export class TerminalSessionBroker {
|
|
|
521
557
|
this.pipeActive = false;
|
|
522
558
|
await this.tmux.stopPipePane(this.sessionName).catch(() => { });
|
|
523
559
|
}
|
|
560
|
+
// Before onEmpty: a later broker for this window then reads the restored value, not this one's pin.
|
|
561
|
+
await this.restoreWindowSize();
|
|
524
562
|
this.teardownResources();
|
|
525
563
|
this.onEmpty?.(this.sessionName);
|
|
526
564
|
}
|
|
565
|
+
/** Let go of the pinned window, once: drop this broker from its holders, and when no live holder is left, give back
|
|
566
|
+
* the `window-size` it had before the first pin. */
|
|
567
|
+
async restoreWindowSize() {
|
|
568
|
+
const window = this.pinnedWindow;
|
|
569
|
+
this.pinnedWindow = null;
|
|
570
|
+
if (window)
|
|
571
|
+
await releasePin(this.tmux, window, this.holder);
|
|
572
|
+
}
|
|
527
573
|
teardownResources() {
|
|
528
574
|
if (this.tailInterval) {
|
|
529
575
|
clearInterval(this.tailInterval);
|
|
@@ -592,7 +638,7 @@ export class TerminalBrokerRegistry {
|
|
|
592
638
|
catch (error) {
|
|
593
639
|
// A rejected open never registers the subscriber, so detach cannot evict
|
|
594
640
|
// this broker or remove a partially created output file.
|
|
595
|
-
broker.dispose();
|
|
641
|
+
await broker.dispose();
|
|
596
642
|
throw error;
|
|
597
643
|
}
|
|
598
644
|
return broker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerminalSessionBroker.js","sourceRoot":"","sources":["../../src/terminal/TerminalSessionBroker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,+EAA+E;AAC/E,qDAAqD;AACrD,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,wEAAwE;AACxE,8EAA8E;AAC9E,8EAA8E;AAC9E,gFAAgF;AAChF,oDAAoD;AAEpD,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,CAAC;AACpC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AACjC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AAgDjC,wFAAwF;AACxF,MAAM,UAAU,oBAAoB,CAAC,CAAS,EAAE,CAAS;IACvD,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACnC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAClC,QAAgB,EAChB,MAAwD;IAExD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACxE,MAAM,2BAA2B,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC3D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,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;IAED,GAAG,CAAC,WAAmB;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED,wFAAwF;IACxF,KAAK,CAAC,MAAM,CAAC,WAAmB,EAAE,GAAuB;QACvD,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,GAAG,IAAI,qBAAqB,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE;gBACzD,GAAG,IAAI,CAAC,IAAI;gBACZ,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;oBAChB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;aACF,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,yEAAyE;YACzE,yDAAyD;YACzD,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;YACvB,MAAM,KAAK,CAAC;QACd,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { TmuxResult } from "../adapters/tmux.js";
|
|
2
|
+
/** A window user option recording a pin: the window's own `window-size` from before it ("inherit" for none), then the
|
|
3
|
+
* holders of the pin (`<pid>.<n>`). It lives on the window, so a pin whose holders are gone (a daemon restart or crash)
|
|
4
|
+
* is given back by the next holder for that window, and a pin another live holder has is kept until it lets go. */
|
|
5
|
+
export declare const WINDOW_SIZE_PRIOR_OPTION = "@openrig-window-size-prior";
|
|
6
|
+
/** The window options a pin reads and writes; TmuxAdapter has them all. */
|
|
7
|
+
export interface PinTmux {
|
|
8
|
+
readWindow?(target: string, userOption: string): Promise<{
|
|
9
|
+
id: string;
|
|
10
|
+
userOption: string;
|
|
11
|
+
} | null>;
|
|
12
|
+
getWindowLocalOption?(target: string, option: string): Promise<string | null | undefined>;
|
|
13
|
+
setWindowOption(target: string, option: string, value: string): Promise<TmuxResult>;
|
|
14
|
+
restoreWindowOption?(target: string, option: string, value: string | null): Promise<TmuxResult>;
|
|
15
|
+
}
|
|
16
|
+
/** A window, its own `window-size` now (`live`), the value to give back (`prior`), and the live holders of a pin. */
|
|
17
|
+
export interface PinSizing {
|
|
18
|
+
window: string;
|
|
19
|
+
live: string | null;
|
|
20
|
+
prior: string | null;
|
|
21
|
+
holders: string[];
|
|
22
|
+
}
|
|
23
|
+
/** Run `step` (a read, record and pin, or a release) on `window` after any step already queued for it in this process. */
|
|
24
|
+
export declare function withWindowPin<T>(window: string, step: () => Promise<T>): Promise<T>;
|
|
25
|
+
export declare function newPinHolder(): string;
|
|
26
|
+
/** The window `target` names (a session's current window, or `@N`), by its immutable id, with its sizing. A `manual`
|
|
27
|
+
* window with a record is pinned: its prior is the recorded one, kept for its live holders, or taken over from holders
|
|
28
|
+
* a crash left behind. Otherwise the live value is the prior. Null without a window id or a readable value. */
|
|
29
|
+
export declare function readPinSizing(tmux: PinTmux, target: string): Promise<PinSizing | null>;
|
|
30
|
+
/** Record `holder` as holding a pin on the window read by readPinSizing, keeping its prior. Before the pin itself.
|
|
31
|
+
* False when the record didn't land: there's then nothing to give the window back from. */
|
|
32
|
+
export declare function recordPin(tmux: PinTmux, sizing: PinSizing, holder: string): Promise<boolean>;
|
|
33
|
+
/** What letting go did: the window got its prior back; another live holder keeps the pin; the window no longer lists
|
|
34
|
+
* this holder; or the give-back failed (the record is kept for the next holder). */
|
|
35
|
+
export type PinRelease = "given-back" | "kept-by-another-holder" | "not-listed" | "failed";
|
|
36
|
+
/** Let go of `holder`'s pin on `window`, once. While another live holder remains, only drop this one. As the last one,
|
|
37
|
+
* run `beforeGiveBack` (a readable capture puts the size back), then give back the prior and drop the record. A window
|
|
38
|
+
* that no longer lists this holder (the record was cleared, or the tmux server restarted and `@N` is another window)
|
|
39
|
+
* is left alone. */
|
|
40
|
+
export declare function releasePin(tmux: PinTmux, window: string, holder: string, beforeGiveBack?: () => Promise<void>): Promise<PinRelease>;
|
|
41
|
+
//# sourceMappingURL=window-pin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-pin.d.ts","sourceRoot":"","sources":["../../src/terminal/window-pin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD;;oHAEoH;AACpH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AAGrE,2EAA2E;AAC3E,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IACpG,oBAAoB,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAC1F,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACpF,mBAAmB,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACjG;AAED,qHAAqH;AACrH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAYD,0HAA0H;AAC1H,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMnF;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAuBD;;gHAEgH;AAChH,wBAAsB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAQ5F;AAED;4FAC4F;AAC5F,wBAAsB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMlG;AAED;qFACqF;AACrF,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,wBAAwB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAE3F;;;qBAGqB;AACrB,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAoBnI"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// A window pin: OpenRig sets a window's `window-size` to manual for a while (the web terminal's fixed geometry, a
|
|
2
|
+
// readable capture's resize) and gives the window its own value back after. resize-window and window-size manual stop
|
|
3
|
+
// the window's clients (Herdr, attach) sizing it, so a pin never given back leaves native clients a narrow window.
|
|
4
|
+
/** A window user option recording a pin: the window's own `window-size` from before it ("inherit" for none), then the
|
|
5
|
+
* holders of the pin (`<pid>.<n>`). It lives on the window, so a pin whose holders are gone (a daemon restart or crash)
|
|
6
|
+
* is given back by the next holder for that window, and a pin another live holder has is kept until it lets go. */
|
|
7
|
+
export const WINDOW_SIZE_PRIOR_OPTION = "@openrig-window-size-prior";
|
|
8
|
+
const INHERITED_WINDOW_SIZE = "inherit";
|
|
9
|
+
// This process's holders. A holder from this process is live while listed here; one from another process (another
|
|
10
|
+
// daemon on the same tmux server) while that process runs.
|
|
11
|
+
const heldHere = new Set();
|
|
12
|
+
let holderCount = 0;
|
|
13
|
+
// One queue per window in this process, so a readable capture and a web terminal on the same window take and give back
|
|
14
|
+
// a pin one at a time: each reads the record, writes it and changes the window's size before the next one reads. Another
|
|
15
|
+
// process isn't covered (tmux has no compare-and-set), and nothing waits on another process.
|
|
16
|
+
const windowQueues = new Map();
|
|
17
|
+
/** Run `step` (a read, record and pin, or a release) on `window` after any step already queued for it in this process. */
|
|
18
|
+
export function withWindowPin(window, step) {
|
|
19
|
+
const run = (windowQueues.get(window) ?? Promise.resolve()).then(step);
|
|
20
|
+
const settled = run.then(() => { }, () => { });
|
|
21
|
+
windowQueues.set(window, settled);
|
|
22
|
+
void settled.then(() => { if (windowQueues.get(window) === settled)
|
|
23
|
+
windowQueues.delete(window); });
|
|
24
|
+
return run;
|
|
25
|
+
}
|
|
26
|
+
export function newPinHolder() {
|
|
27
|
+
return `${process.pid}.${++holderCount}`;
|
|
28
|
+
}
|
|
29
|
+
function holderLive(holder) {
|
|
30
|
+
const pid = Number(holder.split(".")[0]);
|
|
31
|
+
if (!Number.isInteger(pid) || pid <= 0)
|
|
32
|
+
return false;
|
|
33
|
+
if (pid === process.pid)
|
|
34
|
+
return heldHere.has(holder);
|
|
35
|
+
try {
|
|
36
|
+
process.kill(pid, 0);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
return err.code === "EPERM"; // running, as another user
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function parsePinRecord(value) {
|
|
44
|
+
const [prior, ...holders] = value.split(" ").filter(Boolean);
|
|
45
|
+
return prior ? { prior: prior === INHERITED_WINDOW_SIZE ? null : prior, holders } : null;
|
|
46
|
+
}
|
|
47
|
+
function pinRecord(prior, holders) {
|
|
48
|
+
return [prior ?? INHERITED_WINDOW_SIZE, ...holders].join(" ");
|
|
49
|
+
}
|
|
50
|
+
/** The window `target` names (a session's current window, or `@N`), by its immutable id, with its sizing. A `manual`
|
|
51
|
+
* window with a record is pinned: its prior is the recorded one, kept for its live holders, or taken over from holders
|
|
52
|
+
* a crash left behind. Otherwise the live value is the prior. Null without a window id or a readable value. */
|
|
53
|
+
export async function readPinSizing(tmux, target) {
|
|
54
|
+
const current = await tmux.readWindow?.(target, WINDOW_SIZE_PRIOR_OPTION).catch(() => null);
|
|
55
|
+
if (!current)
|
|
56
|
+
return null;
|
|
57
|
+
const live = await tmux.getWindowLocalOption?.(current.id, "window-size").catch(() => undefined);
|
|
58
|
+
if (live === undefined)
|
|
59
|
+
return null;
|
|
60
|
+
const record = parsePinRecord(current.userOption);
|
|
61
|
+
if (live === "manual" && record)
|
|
62
|
+
return { window: current.id, live, prior: record.prior, holders: record.holders.filter(holderLive) };
|
|
63
|
+
return { window: current.id, live, prior: live, holders: [] };
|
|
64
|
+
}
|
|
65
|
+
/** Record `holder` as holding a pin on the window read by readPinSizing, keeping its prior. Before the pin itself.
|
|
66
|
+
* False when the record didn't land: there's then nothing to give the window back from. */
|
|
67
|
+
export async function recordPin(tmux, sizing, holder) {
|
|
68
|
+
heldHere.add(holder);
|
|
69
|
+
const written = await tmux.setWindowOption(sizing.window, WINDOW_SIZE_PRIOR_OPTION, pinRecord(sizing.prior, [...sizing.holders, holder]))
|
|
70
|
+
.catch(() => null);
|
|
71
|
+
if (!written?.ok)
|
|
72
|
+
heldHere.delete(holder);
|
|
73
|
+
return written?.ok === true;
|
|
74
|
+
}
|
|
75
|
+
/** Let go of `holder`'s pin on `window`, once. While another live holder remains, only drop this one. As the last one,
|
|
76
|
+
* run `beforeGiveBack` (a readable capture puts the size back), then give back the prior and drop the record. A window
|
|
77
|
+
* that no longer lists this holder (the record was cleared, or the tmux server restarted and `@N` is another window)
|
|
78
|
+
* is left alone. */
|
|
79
|
+
export function releasePin(tmux, window, holder, beforeGiveBack) {
|
|
80
|
+
return withWindowPin(window, async () => {
|
|
81
|
+
try {
|
|
82
|
+
const record = parsePinRecord((await tmux.readWindow?.(window, WINDOW_SIZE_PRIOR_OPTION).catch(() => null))?.userOption ?? "");
|
|
83
|
+
if (!record?.holders.includes(holder))
|
|
84
|
+
return "not-listed";
|
|
85
|
+
const others = record.holders.filter((other) => other !== holder && holderLive(other));
|
|
86
|
+
if (others.length > 0) {
|
|
87
|
+
await tmux.setWindowOption(window, WINDOW_SIZE_PRIOR_OPTION, pinRecord(record.prior, others)).catch(() => { });
|
|
88
|
+
return "kept-by-another-holder";
|
|
89
|
+
}
|
|
90
|
+
await beforeGiveBack?.().catch(() => { });
|
|
91
|
+
const restored = await tmux.restoreWindowOption?.(window, "window-size", record.prior).catch(() => null);
|
|
92
|
+
// Kept when the give-back failed: this holder is then no longer live, so the next one gives it back instead.
|
|
93
|
+
if (!restored?.ok)
|
|
94
|
+
return "failed";
|
|
95
|
+
await tmux.restoreWindowOption?.(window, WINDOW_SIZE_PRIOR_OPTION, null).catch(() => { });
|
|
96
|
+
return "given-back";
|
|
97
|
+
}
|
|
98
|
+
finally {
|
|
99
|
+
heldHere.delete(holder);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=window-pin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-pin.js","sourceRoot":"","sources":["../../src/terminal/window-pin.ts"],"names":[],"mappings":"AAEA,kHAAkH;AAClH,sHAAsH;AACtH,mHAAmH;AAEnH;;oHAEoH;AACpH,MAAM,CAAC,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AACrE,MAAM,qBAAqB,GAAG,S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|
|
|
55
55
|
|
|
56
56
|
You need the peer's base URL and a row assigned to your seat. For a no-model peer, the official
|
|
57
57
|
[Hello World sample](https://github.com/a2aproject/a2a-samples/tree/6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3/samples/python/agents/helloworld)
|
|
58
|
-
returns an echo artifact.
|
|
59
|
-
|
|
58
|
+
returns an echo artifact. Fetch that revision:
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
git clone https://github.com/a2aproject/a2a-samples.git
|
|
62
|
+
git -C a2a-samples checkout --detach 6603ba3f2c31a7ef33e70b9d8b5b5f8be42ac9a3
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Start the peer yourself in a separate terminal, following `a2a-samples/samples/python/agents/helloworld/README.md`.
|
|
66
|
+
Its default URL is `http://127.0.0.1:9999`, used below; it is available only while you run the sample.
|
|
67
|
+
The sample does not implement the input-required and cancellation controls described later. Use a peer that
|
|
68
|
+
supports those operations when testing them.
|
|
60
69
|
|
|
61
70
|
Save as `a2a_client.py`. This client also works without an OpenRig row, for the inbound recipe below.
|
|
62
71
|
Streaming reads have no deadline so quiet worker waits keep their stream; connection, write and pool waits are bounded to 10 seconds.
|
|
@@ -128,7 +137,8 @@ async def main():
|
|
|
128
137
|
asyncio.run(main())
|
|
129
138
|
```
|
|
130
139
|
|
|
131
|
-
|
|
140
|
+
When `A2A_TEXT` is unset, the row body becomes the peer's message verbatim. Write the body as the peer's input,
|
|
141
|
+
or set `A2A_TEXT` to the exact text you want to send. Run it from your seat, replacing the row and peer URL:
|
|
132
142
|
|
|
133
143
|
```sh
|
|
134
144
|
export A2A_URL=http://127.0.0.1:9999
|
|
@@ -260,7 +270,7 @@ export A2A_SEAT=<worker-session-from-rig-ps>
|
|
|
260
270
|
# Client terminal, in the folder with the example scripts and venv:
|
|
261
271
|
unset A2A_ROW A2A_TASK A2A_CONTEXT
|
|
262
272
|
export A2A_URL=http://127.0.0.1:19092
|
|
263
|
-
export A2A_TEXT='Return
|
|
273
|
+
export A2A_TEXT='Return exactly these words: "hello from the receiving seat".'
|
|
264
274
|
.venv/bin/python a2a_client.py
|
|
265
275
|
```
|
|
266
276
|
|
|
@@ -277,6 +287,8 @@ rig queue update "$ROW" --state done --closure-reason no-follow-on --resolution
|
|
|
277
287
|
The client should receive that exact resolution as an artifact, followed by completed. Compare the artifact with
|
|
278
288
|
`rig queue show "$ROW" --full --json`, including the task/context IDs in the row body. The sample uses `--no-nudge`:
|
|
279
289
|
the worker must be watching its queue; merely starting the front does not start or wake an agent.
|
|
290
|
+
To wake a model worker after the row appears, run `rig send <worker-session> 'Check your queue and process the new A2A task.'`
|
|
291
|
+
from the custodian's environment, or remove `--no-nudge` from the front's queue-create call to request the normal queue wake.
|
|
280
292
|
|
|
281
293
|
For input-required, the worker instead records `--note 'A2A question: <question>'` and leaves the row in progress.
|
|
282
294
|
The client reruns with the same `A2A_TASK`, `A2A_CONTEXT` and its answer as `A2A_TEXT`. The worker reads the
|
|
@@ -355,10 +355,37 @@ declaration isn't changed either; update it separately if a future recreation sh
|
|
|
355
355
|
Each startup file and action specifies when it applies:
|
|
356
356
|
- `fresh_start` — delivered when a new conversation starts: the first launch, `rig seat launch --fresh`,
|
|
357
357
|
`rig seat continue`, and seats restored with `--fresh`
|
|
358
|
-
- `restore` — delivered when a seat is restored
|
|
358
|
+
- `restore` — delivered when a seat is restored without its earlier conversation: a restore whose resume falls back to a fresh conversation, or a retried start
|
|
359
359
|
- Default: `[fresh_start, restore]` (both)
|
|
360
360
|
|
|
361
|
-
|
|
361
|
+
**An exact resume delivers neither.** When a restore reopens the seat's saved conversation (`rig up <rig> --existing` with a resume token), OpenRig types no startup actions and delivers no startup files, `restore` ones included: the conversation already has them, and typing them again would add turns to it. The one exception: a managed guidance block missing from the guidance file is put back before the harness starts.
|
|
362
|
+
|
|
363
|
+
Use this to avoid re-sending context that a fresh conversation doesn't need twice. For example, a one-time project briefing might only apply on `fresh_start`, while identity grounding should apply on both, so a seat that comes back fresh gets it again.
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## What a seat is set to, and what it's running
|
|
368
|
+
|
|
369
|
+
A seat's settings can disagree with its running agent: what's saved for the next launch, what the running process
|
|
370
|
+
actually uses, and what its conversation has already read are three separate things. OpenRig reports each one
|
|
371
|
+
separately. Without live evidence it says unknown (or not verified), never the saved value. A saved change reaches the
|
|
372
|
+
running seat only through the action in the last column.
|
|
373
|
+
|
|
374
|
+
| What | Saved for the next launch | What the running seat has | How the running seat gets it |
|
|
375
|
+
|---|---|---|---|
|
|
376
|
+
| Model | `rig seat set-model` | `rig ps --nodes` shows the configured model beside the last observed one, or `UNKNOWN (<reason>)` | The next managed resume or successor launch |
|
|
377
|
+
| Reasoning effort | `rig seat set-effort` | `rig seat effort <seat>`: requested, saved, sent at launch, and what the session recorded, which is not verified until it takes a turn | Its next managed continuation; nothing restarts |
|
|
378
|
+
| Permissions | `rig seat set-permissions` (`--mode`, `--rules`, or for Codex `--codex-permissions` or `--codex-profile`), shown by `rig seat status` | What it launched with; a status read doesn't prove the running process enforces the selection | Its next managed launch or resume ([per-seat permission mode](getting-started.md#per-seat-permission-mode)) |
|
|
379
|
+
| Working directory | `rig seat set-cwd`, shown by `rig seat status` as **Working directory for future launches** | The directory it started in | `rig seat launch --fresh --stop` (a blank conversation) or `rig handover --source rebuild` (durable context); [details](#change-an-existing-seats-working-directory) |
|
|
380
|
+
| Startup files and skills | The spec's startup files, skills and actions | What its conversation read when it started; editing a file afterwards doesn't reach it | A fresh launch or a handover delivers them again; for the running seat, send or walk the change (`rig walk <seat> --through <files>`) |
|
|
381
|
+
| Tools (MCP servers, plugins) | Selected fragments, merged into the harness's own config (`.mcp.json` for Claude, `config.toml` for Codex) | Unknown to OpenRig: registered isn't active, Claude asks before it uses a new server, and no OpenRig command reports which tools a running harness loaded | Check in the harness itself (Claude Code's `/mcp`); a running session may need a restart to pick up newly written config ([runtime config disclosure](#runtime-config-disclosure)) |
|
|
382
|
+
|
|
383
|
+
Per harness: Claude Code's and Codex's permission choices are in the setup reference
|
|
384
|
+
([Claude Code](getting-started.md#claude-code-a-different-launch-flag),
|
|
385
|
+
[Codex](getting-started.md#codex-select-sandbox-and-approvals-together)), Codex homes are
|
|
386
|
+
[below](#separate-codex-homes-for-separate-installations), community harnesses' limits are in
|
|
387
|
+
[their presets](community-harness-presets.md), and moving a live seat to the other runtime is in the
|
|
388
|
+
[setup reference](getting-started.md#move-a-seat-to-the-other-runtime).
|
|
362
389
|
|
|
363
390
|
---
|
|
364
391
|
|
|
@@ -398,6 +425,11 @@ Types are `send_text`, `slash_command` and `startup_proof` (see "Startup proof"
|
|
|
398
425
|
`idempotent` is required, and an action that isn't idempotent must not list `restore` in `applies_on`. Both phases
|
|
399
426
|
run after the harness is ready: `after_files` (the default) after the post-launch files, then `after_ready`.
|
|
400
427
|
|
|
428
|
+
**Don't rename a managed Claude seat.** OpenRig starts every Claude seat with `--name <session>`, on a fresh start and on
|
|
429
|
+
every resume, and its own reads of the seat use that name: context usage and managed compaction read the status-line
|
|
430
|
+
record Claude saves under it, and the input box is recognized by the name on its border. A startup `/rename` to another
|
|
431
|
+
name breaks those reads until the next resume puts the session name back.
|
|
432
|
+
|
|
401
433
|
### Current Support Matrix
|
|
402
434
|
|
|
403
435
|
| Capability | Status | Notes |
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Merge this into each Hermes seat's config.yaml, in that seat's Hermes home ($OPENRIG_HOME/state/hermes/<node id> with
|
|
2
2
|
# the example launcher), before the seat's first start.
|
|
3
3
|
#
|
|
4
|
-
# Hermes runs every tool command in
|
|
4
|
+
# Hermes runs every tool command in its gateway (one per Hermes home, so one per seat with the example launcher), with
|
|
5
|
+
# the gateway's environment. For each session it swaps
|
|
5
6
|
# in the client's own values only for its toolchain names and the names listed here. Without this list, `rig` inside
|
|
6
7
|
# Hermes runs as whichever seat started the gateway, or as no seat. With it, each seat runs `rig` as itself.
|
|
7
8
|
# These are the seat's own OpenRig variables; none is a secret, and Hermes refuses credential-like names anyway.
|
|
@@ -4,6 +4,26 @@ A community harness is a coding harness an outside contributor maintains. You in
|
|
|
4
4
|
rig member runs it by naming it as its `runtime`. OpenRig doesn't test these harnesses. It shows them as community
|
|
5
5
|
harnesses, and it reads their activity only from what the screen shows.
|
|
6
6
|
|
|
7
|
+
## What a community harness gets
|
|
8
|
+
|
|
9
|
+
What OpenRig does for a community-harness seat, capability by capability. **Partly** and **no** mean OpenRig shows that it doesn't know;
|
|
10
|
+
it never reads an unsupported capability as idle, working, ready or verified.
|
|
11
|
+
|
|
12
|
+
| Capability | Supported | How it works, or what you see instead |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| Launch | yes | OpenRig types the preset's `command` into the seat's pane, with its variables passed through `/usr/bin/env`. The seat reads as ready once something other than a shell runs in the pane; that's a process check, not proof of which conversation it runs. With `startup_assisted`, the seat reports attention required until a person checks it. |
|
|
15
|
+
| Delivery | yes | `rig send` and queue wakes paste the text into the pane and press Enter, as for any seat. A pane that's back at a shell is refused (`target_runtime_unverified`) and nothing is typed. OpenRig doesn't confirm the harness took the message; `rig send --verify` checks the pane afterwards. |
|
|
16
|
+
| Identity | when declared | With `launch_result`, the conversation is shown as reported by its launcher; with `names_conversation`, as named by OpenRig. Neither is observed by OpenRig. Without either, the identity is unavailable. |
|
|
17
|
+
| Resume | when declared | `resume: true` with one of the two above (see [Reopening a conversation](#reopening-a-conversation-resume-true)). Without it, a resume says `Resume is unsupported: community harness "<name>" is launch-only`, and a restore stops and asks. |
|
|
18
|
+
| Activity | partly | Read from the screen only; there are no activity hooks. Work and attention the screen shows are kept, but a screen that looks idle reads `unknown`, never idle, because a quiet prompt can be an approval or a pause. |
|
|
19
|
+
| Attention | partly | Read from the screen: a permission question or numbered choice that OpenRig recognizes reads as needing attention, and `rig send` won't type into it. A prompt it doesn't recognize reads `unknown`. |
|
|
20
|
+
| Approval | no | Approvals stay in the harness's own pane. OpenRig relays none, so a person answers them there. |
|
|
21
|
+
| Cancel | no | OpenRig has no verb that cancels a running turn. `rig seat stop` and `rig down` end the seat's tmux session; anything the harness runs outside its pane, such as a gateway, is its own, and the preset's `limits` should say what keeps running. Restarting in place and switching harness are refused. |
|
|
22
|
+
| Transport | yes | The seat is a tmux pane like any other, so `rig capture`, `rig send` and `--host` work as they do for any seat. |
|
|
23
|
+
|
|
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
|
+
configuration.
|
|
26
|
+
|
|
7
27
|
## The preset
|
|
8
28
|
|
|
9
29
|
One YAML file per harness: `$OPENRIG_HOME/community-harnesses/<name>.yaml`. `rig community-harness list` shows what's
|
|
@@ -128,7 +148,9 @@ Agent's CLI.
|
|
|
128
148
|
flags and then reopens it, refusing any creation flag (model, provider, `--max-turns`) that differs. So the preset's
|
|
129
149
|
command carries none, and each seat's `config.yaml`, in its Hermes home, sets them before the seat's first start:
|
|
130
150
|
the model and provider, and `agent.max_turns` if you want a cap (nothing else sets it once the flag is gone).
|
|
131
|
-
- **Let Hermes run `rig` as the seat:** Hermes runs every tool command in
|
|
151
|
+
- **Let Hermes run `rig` as the seat:** Hermes runs every tool command in its gateway, one per Hermes home, so with
|
|
152
|
+
this launcher one per seat (a two-seat run showed separate gateways, homes and sockets, and stopping one seat left
|
|
153
|
+
the other's running). It runs them with that gateway's
|
|
132
154
|
environment, and swaps in a session's own values only for its toolchain names and the names its profile lists in
|
|
133
155
|
`terminal.client_env_passthrough`. So put the seat's OpenRig variables in that list, in each seat's `config.yaml`
|
|
134
156
|
([`config.yaml.example`](community-harness-examples/hermes/config.yaml.example)). Without it, `rig` inside Hermes
|
|
@@ -151,13 +173,17 @@ OpenClaw's CLI.
|
|
|
151
173
|
- **The conversation:** both examples use only agent `main`, mapping OpenRig's name to the full native key `agent:main:<OpenRig name>`. Each seat has its own client state folder.
|
|
152
174
|
- **Its resume check:** local mode checks `sessions --agent main --json --limit all`; Gateway mode calls the selected Gateway's `sessions.describe`. Both require the exact canonical key. An unavailable lookup stops the launch; a confirmed missing key is never recreated. A client's local cache cannot authorize Gateway resume.
|
|
153
175
|
- **Stopping:** a Gateway client's pane closing detaches it. The Gateway and an accepted turn can keep running; stopping that service is separate. Local mode runs its embedded agent in the pane.
|
|
154
|
-
- **
|
|
176
|
+
- **Unattended seats:** prefer Gateway mode within the capabilities qualified for your installed version. Local interrupted-turn recovery is not supported by these launchers.
|
|
177
|
+
- **Local interruption:** Finish the current local turn before stopping; an interrupted local turn may retain native recovery work and refuse the next request. This launcher does not repair or retry it. OpenRig recognizes the recorded local “changed while starting work” error frame as needing attention: “OpenClaw turn not recovered; inspect the pane before retrying”. Use `rig capture <session>` to inspect the native conversation. An ordinary send still submits a new turn, with an advisory that the last local turn was not recovered; it is not an automatic replay of that turn. It does not clear native recovery records, repeat the request or start a fresh conversation; a successful process launch is not proof that the turn recovered.
|
|
155
178
|
- **Local startup after resume:** OpenClaw may run its database integrity check during startup. A reported resumed process does not confirm readiness for the next request; check that the TUI has finished starting before sending work.
|
|
156
179
|
- **Resets must stay off:** automatic session resets can create a new conversation under the same key. Typing `/new` also moves to a fresh key while the seat keeps the name OpenRig gave it.
|
|
157
180
|
- **The presets:** both declare `names_conversation`, `resume` and `first_input`. The launcher passes the generated first startup text through OpenClaw's `--message` option. OpenRig labels the saved name as passed, not observed by its adapter.
|
|
158
181
|
|
|
159
182
|
Copy the launcher and the preset for your mode, and maintain them as your own.
|
|
160
183
|
|
|
184
|
+
**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; each preset's limits say what to expect.
|
|
186
|
+
|
|
161
187
|
**Not supported for community harnesses:** restarting a seat in place (`rig seat restart` is for Codex seats) and
|
|
162
188
|
switching harness on a running seat. Each says so before anything changes.
|
|
163
189
|
|
|
@@ -192,3 +218,47 @@ The contributor-owned launcher reads the file and uses its harness’s supported
|
|
|
192
218
|
OpenRig records `node.startup_first_input_passed` with the path and `submission: unconfirmed`. This says the input was passed at launch, not that the native harness submitted or read it. An uncertain launch is not permission to replay it. Readiness remains process-only. `startup_assisted` is independent: when declared, startup still requires a person’s acknowledgement, including when the first input was passed at launch.
|
|
193
219
|
|
|
194
220
|
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
|
+
|
|
222
|
+
## Write your own
|
|
223
|
+
|
|
224
|
+
Start from the example closest to your harness, and change it.
|
|
225
|
+
|
|
226
|
+
1. **Choose how the conversation is named.**
|
|
227
|
+
- **Your harness creates an id you can read before it starts,** as Cursor's `create-chat` does: declare `launch_result: true`, and the
|
|
228
|
+
launcher writes the record.
|
|
229
|
+
- **Your harness takes a name from its caller and creates or reopens it,** as Hermes's `-c <name>` and OpenClaw's session key do: declare
|
|
230
|
+
`names_conversation: true`, and the launcher passes `OPENRIG_CONVERSATION` on.
|
|
231
|
+
- **Neither:** leave both out. The seat starts and works, its identity shows as unavailable, and it can't be resumed.
|
|
232
|
+
2. **Write the launcher:** a small script your package installs on the seat's `PATH`. It reads OpenRig's variables, starts the harness with
|
|
233
|
+
`exec`, and does nothing else.
|
|
234
|
+
- `OPENRIG_CONVERSATION` with `names_conversation`, or `OPENRIG_LAUNCH_RESULT` and `OPENRIG_LAUNCH_ATTEMPT` with `launch_result`.
|
|
235
|
+
- **On a resume,** `OPENRIG_RESUME_REF`: reopen exactly that conversation. Check that it exists first, and when it doesn't, end with an
|
|
236
|
+
error (or report `error: "missing"`) instead of creating one.
|
|
237
|
+
- **With `first_input: true`,** `OPENRIG_FIRST_INPUT`: pass the file's exact bytes through your harness's own first-prompt route.
|
|
238
|
+
- **Keep each seat's harness state apart** (Cursor's config folder, Hermes's home, OpenClaw's state folder), so two seats never share a
|
|
239
|
+
conversation.
|
|
240
|
+
3. **Write the preset** at `$OPENRIG_HOME/community-harnesses/<name>.yaml`, and check it with `rig community-harness list`.
|
|
241
|
+
- Declare `resume` only after checking, with the real harness, that a reopen works and that a missing conversation is refused.
|
|
242
|
+
- List what doesn't work under `limits`.
|
|
243
|
+
4. **Try it in a rig:** give a member `runtime: <name>`, then go through the checks in the promotion test below.
|
|
244
|
+
5. **Publish the preset and the launcher in your own package,** and maintain them. OpenRig runs no code from a preset, so the launcher is
|
|
245
|
+
yours.
|
|
246
|
+
|
|
247
|
+
## The promotion test
|
|
248
|
+
|
|
249
|
+
A community harness stays a community harness: you maintain it, and OpenRig shows it as one. **Promotion** means OpenRig takes a harness on
|
|
250
|
+
as a built-in runtime that it maintains and tests itself. **Promotion is decided by the OpenRig maintainers, on evidence from OpenRig's own
|
|
251
|
+
testing.** Passing these checks isn't automatic promotion, and it isn't a promise of upstream support.
|
|
252
|
+
|
|
253
|
+
What the maintainers look at:
|
|
254
|
+
1. **Everything the preset declares works on a real install,** end to end through OpenRig:
|
|
255
|
+
- a seat starts and takes its first turn (`rig up`);
|
|
256
|
+
- a message arrives (`rig send`), and the reply can be read (`rig capture`);
|
|
257
|
+
- the seat stops (`rig down`) without leaving work running that the person can't see, or the preset's `limits` say what keeps running;
|
|
258
|
+
- with `resume`, `rig up <rig> --existing` reopens the same conversation, and a missing one is refused, never replaced.
|
|
259
|
+
2. **What it doesn't support reads as not known,** never as idle, working, ready or verified.
|
|
260
|
+
3. **Its `limits` are true,** and name anything a person would otherwise be surprised by.
|
|
261
|
+
4. **The built-in runtimes are unchanged.**
|
|
262
|
+
5. **It's maintained:** a named maintainer, and a launcher that keeps working with the harness's current release.
|
|
263
|
+
|
|
264
|
+
There's no score or threshold. The maintainers weigh the evidence.
|