@openrig/cli 0.7.7 → 0.7.9
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 +6 -6
- package/daemon/assets/openshell/Dockerfile +15 -0
- package/daemon/assets/openshell/README.md +139 -0
- package/daemon/assets/openshell/agents/coordinator/agent.yaml +20 -0
- package/daemon/assets/openshell/agents/coordinator/role.md +1 -0
- package/daemon/assets/openshell/agents/worker/agent.yaml +20 -0
- package/daemon/assets/openshell/agents/worker/role.md +3 -0
- package/daemon/assets/openshell/claude-code-provider.yaml +55 -0
- package/daemon/assets/openshell/driver-v1.schema.json +81 -0
- package/daemon/assets/openshell/guest.py +319 -0
- package/daemon/assets/openshell/policy.yaml +33 -0
- package/daemon/assets/openshell/preset.yaml +13 -0
- package/daemon/assets/openshell/rig.yaml +20 -0
- 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/seat-continuity-and-handover/SKILL.md +13 -4
- 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 +110 -30
- package/daemon/context-packs/reference/getting-started.md +36 -9
- package/daemon/context-packs/reference/instance-layout.md +11 -0
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +130 -14
- package/daemon/context-packs/reference/whats-new.md +294 -132
- 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/SKILL.md +4 -3
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/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/SKILL.md +13 -4
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +6 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +51 -74
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +19 -7
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +33 -7
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +204 -45
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +13 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +31 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/omp-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/omp-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/omp-runtime-adapter.js +4 -0
- package/daemon/dist/adapters/omp-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/openshell-driver.d.ts +39 -0
- package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -0
- package/daemon/dist/adapters/openshell-driver.js +145 -0
- package/daemon/dist/adapters/openshell-driver.js.map +1 -0
- package/daemon/dist/adapters/openshell-podman-observer.d.ts +30 -0
- package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -0
- package/daemon/dist/adapters/openshell-podman-observer.js +94 -0
- package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -0
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts +1 -0
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.js +17 -3
- package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +39 -5
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +97 -19
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +22 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +39 -8
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/preflight-exec.d.ts +2 -0
- package/daemon/dist/adapters/preflight-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/preflight-exec.js +3 -1
- package/daemon/dist/adapters/preflight-exec.js.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.js +7 -4
- package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-control.d.ts +12 -6
- package/daemon/dist/adapters/tmux-control.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-control.js +42 -21
- package/daemon/dist/adapters/tmux-control.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts +3 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +35 -1
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +6 -3
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +13 -8
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +11 -2
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +66 -14
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +16 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts +3 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts.map +1 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.js +5 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.js.map +1 -0
- package/daemon/dist/db/migrations/143_activity_grants.d.ts +8 -0
- package/daemon/dist/db/migrations/143_activity_grants.d.ts.map +1 -0
- package/daemon/dist/db/migrations/143_activity_grants.js +22 -0
- package/daemon/dist/db/migrations/143_activity_grants.js.map +1 -0
- package/daemon/dist/db/migrations/144_environment_bindings.d.ts +4 -0
- package/daemon/dist/db/migrations/144_environment_bindings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/144_environment_bindings.js +31 -0
- package/daemon/dist/db/migrations/144_environment_bindings.js.map +1 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.d.ts +5 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.d.ts.map +1 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.js +7 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.js.map +1 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts +6 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts.map +1 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.js +8 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.js.map +1 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.d.ts +9 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.js +19 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.js.map +1 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts +8 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.js +12 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.js.map +1 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts +4 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.js +14 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +2 -0
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +9 -1
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/activity-grants.d.ts +63 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -0
- package/daemon/dist/domain/activity-grants.js +106 -0
- package/daemon/dist/domain/activity-grants.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.js +5 -2
- package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +3 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-archive.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-archive.js +40 -4
- package/daemon/dist/domain/bundle-archive.js.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.js +7 -0
- package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.d.ts +1 -0
- package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.js +3 -1
- package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
- package/daemon/dist/domain/bundle-source-resolver.d.ts +2 -0
- package/daemon/dist/domain/bundle-source-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-source-resolver.js +4 -4
- package/daemon/dist/domain/bundle-source-resolver.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +12 -5
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +47 -18
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-mcp.d.ts +10 -0
- package/daemon/dist/domain/claude-mcp.d.ts.map +1 -0
- package/daemon/dist/domain/claude-mcp.js +19 -0
- package/daemon/dist/domain/claude-mcp.js.map +1 -0
- package/daemon/dist/domain/claude-owned-settings.d.ts +19 -0
- package/daemon/dist/domain/claude-owned-settings.d.ts.map +1 -0
- package/daemon/dist/domain/claude-owned-settings.js +160 -0
- package/daemon/dist/domain/claude-owned-settings.js.map +1 -0
- package/daemon/dist/domain/claude-plugin-channels.d.ts +2 -0
- package/daemon/dist/domain/claude-plugin-channels.d.ts.map +1 -0
- package/daemon/dist/domain/claude-plugin-channels.js +12 -0
- package/daemon/dist/domain/claude-plugin-channels.js.map +1 -0
- package/daemon/dist/domain/claude-theme-menu.d.ts +5 -0
- package/daemon/dist/domain/claude-theme-menu.d.ts.map +1 -0
- package/daemon/dist/domain/claude-theme-menu.js +43 -0
- package/daemon/dist/domain/claude-theme-menu.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/codex-pane-patterns.d.ts +1 -0
- package/daemon/dist/domain/codex-pane-patterns.d.ts.map +1 -1
- package/daemon/dist/domain/codex-pane-patterns.js +2 -0
- package/daemon/dist/domain/codex-pane-patterns.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +2 -1
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +3 -2
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/composer-prompts.d.ts +2 -0
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +3 -2
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/context-monitor.d.ts +2 -2
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +8 -2
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/desired-claude-activity-hooks.d.ts +25 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.d.ts.map +1 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.js +86 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.js.map +1 -0
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +14 -4
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/environment-artifacts.d.ts +49 -0
- package/daemon/dist/domain/environment-artifacts.d.ts.map +1 -0
- package/daemon/dist/domain/environment-artifacts.js +158 -0
- package/daemon/dist/domain/environment-artifacts.js.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts +126 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.js +474 -0
- package/daemon/dist/domain/environment-lifecycle.js.map +1 -0
- package/daemon/dist/domain/environment-platform.d.ts +121 -0
- package/daemon/dist/domain/environment-platform.d.ts.map +1 -0
- package/daemon/dist/domain/environment-platform.js +280 -0
- package/daemon/dist/domain/environment-platform.js.map +1 -0
- package/daemon/dist/domain/environment-startup.d.ts +43 -0
- package/daemon/dist/domain/environment-startup.d.ts.map +1 -0
- package/daemon/dist/domain/environment-startup.js +307 -0
- package/daemon/dist/domain/environment-startup.js.map +1 -0
- package/daemon/dist/domain/expected-conversation.d.ts +20 -0
- package/daemon/dist/domain/expected-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/expected-conversation.js +101 -0
- package/daemon/dist/domain/expected-conversation.js.map +1 -0
- package/daemon/dist/domain/gateway/human-readiness.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-readiness.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-readiness.js +6 -0
- package/daemon/dist/domain/gateway/human-readiness.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +9 -7
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +8 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +61 -4
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +26 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +15 -0
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +59 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +19 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +219 -9
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +24 -5
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/recovery-budget.js +1 -0
- package/daemon/dist/domain/gateway/slack/recovery-budget.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts +37 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.js +276 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +32 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +40 -2
- package/daemon/dist/domain/gateway/slack/slack-api.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 +9 -4
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +35 -6
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts +22 -0
- package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/hosts-registry-writer.js +116 -0
- package/daemon/dist/domain/hosts/hosts-registry-writer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +3 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.d.ts +3 -2
- package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.js +2 -1
- package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +11 -6
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +27 -5
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/kernel-hook-review.d.ts +18 -0
- package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -0
- package/daemon/dist/domain/kernel-hook-review.js +58 -0
- package/daemon/dist/domain/kernel-hook-review.js.map +1 -0
- package/daemon/dist/domain/managed-block-records.d.ts +54 -0
- package/daemon/dist/domain/managed-block-records.d.ts.map +1 -0
- package/daemon/dist/domain/managed-block-records.js +130 -0
- package/daemon/dist/domain/managed-block-records.js.map +1 -0
- package/daemon/dist/domain/managed-blocks.d.ts +14 -0
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +24 -4
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +29 -10
- 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 +116 -29
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +10 -6
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +5 -1
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +91 -6
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +2 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +4 -2
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +1 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +42 -10
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +3 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +6 -0
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +17 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +60 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +10 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +60 -4
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -1
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts +9 -3
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.js +100 -17
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +32 -2
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.js +6 -2
- package/daemon/dist/domain/queue-recovery.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +64 -8
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +309 -76
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +59 -4
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +2 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +124 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +2 -7
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +70 -7
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +181 -18
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +40 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +276 -33
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +20 -6
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +14 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +57 -1
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +18 -0
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +73 -17
- 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 +6 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +8 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +66 -3
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +7 -4
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +38 -11
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +4 -0
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +35 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +56 -6
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +150 -0
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/runner-permissions.js +383 -0
- package/daemon/dist/domain/runner-permissions.js.map +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts +28 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +3 -0
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/runtime-verifier.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-verifier.js +9 -4
- package/daemon/dist/domain/runtime-verifier.js.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -0
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +7 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +47 -7
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +8 -1
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +22 -4
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +80 -11
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-effort.d.ts +6 -0
- package/daemon/dist/domain/seat-effort.d.ts.map +1 -1
- package/daemon/dist/domain/seat-effort.js +0 -2
- package/daemon/dist/domain/seat-effort.js.map +1 -1
- package/daemon/dist/domain/seat-handover-planner.js +1 -1
- package/daemon/dist/domain/seat-handover-planner.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +25 -10
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +164 -31
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.d.ts +6 -0
- package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.js +41 -11
- package/daemon/dist/domain/seat-launch-additions.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +24 -2
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +65 -2
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +6 -1
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +21 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.d.ts +8 -6
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +27 -7
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +5 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +9 -0
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +15 -5
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +21 -7
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/self-attach-service.d.ts +8 -1
- package/daemon/dist/domain/self-attach-service.d.ts.map +1 -1
- package/daemon/dist/domain/self-attach-service.js +26 -0
- package/daemon/dist/domain/self-attach-service.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +17 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +247 -31
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +15 -0
- package/daemon/dist/domain/snapshot-capture.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 +5 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +106 -8
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/stream-intake.d.ts +51 -0
- package/daemon/dist/domain/stream-intake.d.ts.map +1 -0
- package/daemon/dist/domain/stream-intake.js +438 -0
- package/daemon/dist/domain/stream-intake.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +3 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +2 -0
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +4 -3
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.js +22 -4
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.js +8 -4
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
- package/daemon/dist/domain/terminal/login-shell.d.ts +10 -0
- package/daemon/dist/domain/terminal/login-shell.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/login-shell.js +37 -0
- package/daemon/dist/domain/terminal/login-shell.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-layout.js +2 -1
- package/daemon/dist/domain/terminal/rex-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +12 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +120 -18
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -2
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +18 -27
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +15 -5
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +6 -3
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +15 -5
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/tmux-server-selection.d.ts +47 -0
- package/daemon/dist/domain/tmux-server-selection.d.ts.map +1 -0
- package/daemon/dist/domain/tmux-server-selection.js +220 -0
- package/daemon/dist/domain/tmux-server-selection.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +19 -10
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +54 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +23 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +11 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.js +134 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -0
- package/daemon/dist/domain/watchdog-delivery.d.ts +7 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +24 -8
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +21 -2
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +52 -23
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +3 -3
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
- package/daemon/dist/domain/workflow-runtime.js +3 -3
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/working-liveness.d.ts +66 -0
- package/daemon/dist/domain/working-liveness.d.ts.map +1 -0
- package/daemon/dist/domain/working-liveness.js +94 -0
- package/daemon/dist/domain/working-liveness.js.map +1 -0
- package/daemon/dist/domain/workspace/frontmatter-validator.js +4 -2
- package/daemon/dist/domain/workspace/frontmatter-validator.js.map +1 -1
- package/daemon/dist/index.d.ts +4 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +9 -3
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/middleware/auth-bearer-token.js +2 -2
- package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts +6 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +317 -22
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +17 -5
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/bundles.js +3 -1
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/compaction.js +4 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/environments.d.ts +3 -0
- package/daemon/dist/routes/environments.d.ts.map +1 -0
- package/daemon/dist/routes/environments.js +104 -0
- package/daemon/dist/routes/environments.js.map +1 -0
- package/daemon/dist/routes/gateway.d.ts +6 -0
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +39 -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 +106 -8
- 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 +6 -1
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +53 -7
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +21 -2
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +5 -19
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigs.js +3 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +8 -3
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +30 -0
- 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 +32 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +66 -20
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/spec-library.d.ts.map +1 -1
- package/daemon/dist/routes/spec-library.js +60 -5
- package/daemon/dist/routes/spec-library.js.map +1 -1
- package/daemon/dist/routes/startup.js +2 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +31 -5
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +57 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +2 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +90 -37
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +119 -3
- package/daemon/docs/reference/agent-state-taxonomy.md +23 -2
- package/daemon/docs/reference/author-contracts.md +9 -9
- package/daemon/docs/reference/checked-seat-stop.md +12 -1
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +96 -0
- package/daemon/docs/reference/community-harness-examples/dsh/dsh.yaml +20 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +626 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +5 -0
- package/daemon/docs/reference/community-harness-presets.md +25 -1
- package/daemon/docs/reference/daemon-http-clients.md +203 -0
- package/daemon/docs/reference/execution-platform-contract.md +1 -1
- package/daemon/docs/reference/gateway-participants.md +29 -17
- package/daemon/docs/reference/getting-started.md +36 -9
- package/daemon/docs/reference/harness-runner-contract.md +235 -26
- package/daemon/docs/reference/hosted-members.md +32 -0
- package/daemon/docs/reference/instance-layout.md +11 -0
- package/daemon/docs/reference/keeping-a-watch.md +22 -0
- package/daemon/docs/reference/pi-tool-selection-recovery.md +84 -0
- package/daemon/docs/reference/quickstart.md +9 -4
- package/daemon/docs/reference/rig-bundle.md +2 -2
- package/daemon/docs/reference/rig-spec.md +130 -14
- package/daemon/docs/reference/runner-conformance/README.md +77 -0
- package/daemon/docs/reference/runner-conformance/check-runner.mjs +818 -0
- package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +150 -0
- package/daemon/docs/reference/sdlc-conventions.md +22 -3
- package/daemon/docs/reference/seat-delivery.md +31 -6
- package/daemon/docs/reference/slack-app-setup.md +55 -5
- package/daemon/docs/reference/terminal-sessions.md +100 -14
- package/daemon/docs/reference/tmux-servers.md +166 -0
- package/daemon/docs/reference/whats-new.md +294 -132
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +4 -3
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +1 -1
- package/dist/acp/connector.d.ts.map +1 -1
- package/dist/acp/connector.js +6 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/atomic-text-write.d.ts +2 -0
- package/dist/atomic-text-write.d.ts.map +1 -1
- package/dist/atomic-text-write.js +17 -0
- package/dist/atomic-text-write.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +28 -0
- package/dist/client.js.map +1 -1
- package/dist/commands/attach.d.ts +1 -0
- package/dist/commands/attach.d.ts.map +1 -1
- package/dist/commands/attach.js +8 -2
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/broadcast.js +2 -1
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +7 -4
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +9 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +1 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -1
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/destroy.d.ts.map +1 -1
- package/dist/commands/destroy.js +2 -0
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/doctor.d.ts +8 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +126 -10
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +10 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +10 -4
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/environment.d.ts +8 -0
- package/dist/commands/environment.d.ts.map +1 -0
- package/dist/commands/environment.js +197 -0
- package/dist/commands/environment.js.map +1 -0
- package/dist/commands/export.d.ts +2 -0
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +31 -7
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.js +15 -11
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.d.ts +13 -6
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +112 -15
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/project-jev.js +1 -1
- package/dist/commands/project-jev.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +12 -5
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +2 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +12 -3
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +1 -0
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +50 -6
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +36 -2
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +85 -8
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +46 -16
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +18 -0
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +5 -0
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/specs.d.ts +1 -1
- package/dist/commands/specs.d.ts.map +1 -1
- package/dist/commands/specs.js +44 -10
- package/dist/commands/specs.js.map +1 -1
- package/dist/commands/stream.d.ts.map +1 -1
- package/dist/commands/stream.js +6 -1
- package/dist/commands/stream.js.map +1 -1
- package/dist/commands/terminal.d.ts +2 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +31 -2
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/topology-default-agent.js +1 -1
- package/dist/commands/topology-default-agent.js.map +1 -1
- package/dist/commands/tui.d.ts +3 -2
- package/dist/commands/tui.d.ts.map +1 -1
- package/dist/commands/tui.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +27 -10
- package/dist/commands/walk.js.map +1 -1
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +8 -1
- package/dist/commands/workspace.js.map +1 -1
- package/dist/config-store.d.ts +9 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +33 -2
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-target.d.ts.map +1 -1
- package/dist/cross-host-target.js +3 -1
- package/dist/cross-host-target.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +6 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +66 -4
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.d.ts +2 -1
- package/dist/daemon-reachability.d.ts.map +1 -1
- package/dist/daemon-reachability.js +3 -2
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/destroy-helpers.d.ts +3 -2
- package/dist/destroy-helpers.d.ts.map +1 -1
- package/dist/destroy-helpers.js +6 -3
- package/dist/destroy-helpers.js.map +1 -1
- package/dist/host-bindings.js +1 -1
- package/dist/host-bindings.js.map +1 -1
- package/dist/host-registry.d.ts +22 -0
- package/dist/host-registry.d.ts.map +1 -1
- package/dist/host-registry.js +121 -0
- package/dist/host-registry.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/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +37 -7
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +3 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +39 -53
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -0
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +89 -18
- package/dist/mcp-server.js.map +1 -1
- package/dist/openrig-compat.d.ts +1 -1
- package/dist/openrig-compat.d.ts.map +1 -1
- package/dist/openrig-compat.js +2 -2
- package/dist/openrig-compat.js.map +1 -1
- package/dist/seat-launch-additions-lines.d.ts +2 -0
- package/dist/seat-launch-additions-lines.d.ts.map +1 -1
- package/dist/seat-launch-additions-lines.js +1 -0
- package/dist/seat-launch-additions-lines.js.map +1 -1
- package/dist/shared-tui.d.ts +4 -2
- package/dist/shared-tui.d.ts.map +1 -1
- package/dist/shared-tui.js +4 -11
- package/dist/shared-tui.js.map +1 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +34 -29
- package/dist/terminal-window.js.map +1 -1
- package/dist/tmux-attachment.d.ts +17 -0
- package/dist/tmux-attachment.d.ts.map +1 -0
- package/dist/tmux-attachment.js +89 -0
- package/dist/tmux-attachment.js.map +1 -0
- package/package.json +2 -2
- package/tui/dist/attention/attention-model.d.ts +3 -2
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +7 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +4 -4
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +6 -5
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +16 -5
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/pulse/pulse-model.d.ts +1 -1
- package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
- package/tui/dist/pulse/pulse-model.js +6 -17
- package/tui/dist/pulse/pulse-model.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +8 -2
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +2 -1
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/theme.d.ts.map +1 -1
- package/tui/dist/theme.js +7 -2
- package/tui/dist/theme.js.map +1 -1
- package/tui/dist/time.d.ts +2 -0
- package/tui/dist/time.d.ts.map +1 -1
- package/tui/dist/time.js +5 -0
- package/tui/dist/time.js.map +1 -1
- package/tui/dist/types.d.ts +2 -3
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-BFOs3ejL.css +32 -0
- package/ui/dist/assets/{index-CMBgYrS7.js → index-CdkFwtld.js} +92 -92
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-DNU3XZr_.css +0 -32
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// A scriptable fake ACP agent for the runner conformance check (check-runner.mjs). It speaks just enough of ACP v1 over
|
|
3
|
+
// stdio, newline-delimited JSON-RPC, to exercise a runner without a model, credentials or the network. It was written
|
|
4
|
+
// after the fake agent in bpamiri/dsh-seat (Apache-2.0), which showed the approach.
|
|
5
|
+
//
|
|
6
|
+
// node fake-acp-agent.mjs --scenario <file.json> --log <file.jsonl> [any arguments the runner adds are ignored]
|
|
7
|
+
//
|
|
8
|
+
// The scenario says how to answer; the log records every message in and out, so the check can compare them.
|
|
9
|
+
// sessionId the id `session/new` returns (default "fake-session-1")
|
|
10
|
+
// initialize "error" or "exit" to fail the handshake there
|
|
11
|
+
// newSession "error" or "exit" to fail `session/new`
|
|
12
|
+
// newDelayMs wait this long before answering `session/new`
|
|
13
|
+
// knownSessions ids `session/load` and `session/resume` reopen
|
|
14
|
+
// reopenError "missing" (the agent's own "no such session") or "error", for an id it doesn't know
|
|
15
|
+
// unknownRequest send the runner a request with a method it can't know, once, after `initialize`
|
|
16
|
+
// stubborn keep running after a hangup or after input closes; only SIGTERM or SIGKILL ends it
|
|
17
|
+
// turns one entry per `session/prompt`, in order (the last one repeats):
|
|
18
|
+
// holdMs keep the turn open this long; `session/cancel` ends it early as "cancelled"
|
|
19
|
+
// silent send no message chunk for this turn, so a held turn is entirely quiet (a long tool or model call)
|
|
20
|
+
// ignoreCancel on `session/cancel`, keep the turn open and end it with stopReason (default end_turn) anyway, when
|
|
21
|
+
// holdMs runs out or, with endAfterCancelMs, that long after the first cancel if that's sooner
|
|
22
|
+
// permission ask `session/request_permission` first, then carry on whatever the answer. As an object:
|
|
23
|
+
// options the options offered (default: allow-once, allow_once; reject-once, reject_once)
|
|
24
|
+
// waitMs stop waiting for the answer after this long, and end the turn
|
|
25
|
+
// exitAfterMs exit with status 3 this long after asking, while the request waits
|
|
26
|
+
// A `session/cancel` while the request waits ends the turn "cancelled" once it's answered.
|
|
27
|
+
// error answer the prompt with a JSON-RPC error
|
|
28
|
+
// exit exit with status 3 instead of answering
|
|
29
|
+
// stopReason the stop reason to return (default "end_turn")
|
|
30
|
+
import { appendFileSync, readFileSync } from "node:fs";
|
|
31
|
+
import { createInterface } from "node:readline";
|
|
32
|
+
|
|
33
|
+
const arg = (name) => { const i = process.argv.indexOf(name); return i > 0 ? process.argv[i + 1] : undefined; };
|
|
34
|
+
const scenarioFile = arg("--scenario") ?? process.env.RUNNER_CHECK_SCENARIO;
|
|
35
|
+
const logFile = arg("--log") ?? process.env.RUNNER_CHECK_AGENT_LOG;
|
|
36
|
+
const scenario = scenarioFile ? JSON.parse(readFileSync(scenarioFile, "utf8")) : {};
|
|
37
|
+
|
|
38
|
+
const log = (entry) => { if (logFile) appendFileSync(logFile, `${JSON.stringify({ at: Date.now(), ...entry })}\n`); };
|
|
39
|
+
const send = (msg) => { log({ dir: "out", msg }); process.stdout.write(`${JSON.stringify(msg)}\n`); };
|
|
40
|
+
const reply = (id, result) => send({ jsonrpc: "2.0", id, result });
|
|
41
|
+
const fail = (id, code, message) => send({ jsonrpc: "2.0", id, error: { code, message } });
|
|
42
|
+
const exit = (status, why) => { log({ dir: "event", event: "exit", status, why }); process.exit(status); };
|
|
43
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
44
|
+
|
|
45
|
+
log({ dir: "event", event: "started", pid: process.pid, cwd: process.cwd(), argv: process.argv.slice(2) });
|
|
46
|
+
// Ctrl-C is the runner's to handle, so the agent never takes it as a signal. A stubborn agent also outlives a hangup and
|
|
47
|
+
// its input closing, as some real agents do: only the runner ending it (SIGTERM or SIGKILL) stops it.
|
|
48
|
+
process.on("SIGINT", () => log({ dir: "event", event: "signal", signal: "SIGINT" }));
|
|
49
|
+
process.on("SIGHUP", () => scenario.stubborn ? log({ dir: "event", event: "signal", signal: "SIGHUP" }) : exit(0, "SIGHUP"));
|
|
50
|
+
process.on("SIGTERM", () => exit(0, "SIGTERM"));
|
|
51
|
+
|
|
52
|
+
let sessionId;
|
|
53
|
+
let turn = 0;
|
|
54
|
+
let nextId = 1;
|
|
55
|
+
const answers = new Map();
|
|
56
|
+
let cancelTurn = null;
|
|
57
|
+
|
|
58
|
+
// Numbers, as JSON-RPC agents commonly use. A runner passes one on unchanged, and OpenRig reads it as its decimal string.
|
|
59
|
+
function ask(method, params) {
|
|
60
|
+
const id = 1000 + nextId++;
|
|
61
|
+
send({ jsonrpc: "2.0", id, method, params });
|
|
62
|
+
return new Promise((resolve) => answers.set(id, resolve));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async function prompt(id, params) {
|
|
66
|
+
const spec = (scenario.turns ?? [])[Math.min(turn, (scenario.turns?.length ?? 1) - 1)] ?? {};
|
|
67
|
+
turn += 1;
|
|
68
|
+
if (spec.exit) exit(3, `turn ${turn}`);
|
|
69
|
+
if (spec.error) { fail(id, -32603, "fake agent: this turn fails"); return; }
|
|
70
|
+
if (!spec.silent) send({ jsonrpc: "2.0", method: "session/update",
|
|
71
|
+
params: { sessionId: params.sessionId, update: { sessionUpdate: "agent_message_chunk", content: { type: "text", text: `turn ${turn}` } } } });
|
|
72
|
+
let stopReason = spec.stopReason ?? "end_turn";
|
|
73
|
+
if (spec.permission) {
|
|
74
|
+
const p = typeof spec.permission === "object" ? spec.permission : {};
|
|
75
|
+
const asked = ask("session/request_permission", {
|
|
76
|
+
sessionId: params.sessionId,
|
|
77
|
+
toolCall: { toolCallId: `call-${turn}`, title: "Edit notes.txt", kind: "edit" },
|
|
78
|
+
options: p.options ?? [
|
|
79
|
+
{ optionId: "allow-once", name: "Allow once", kind: "allow_once" },
|
|
80
|
+
{ optionId: "reject-once", name: "Reject", kind: "reject_once" },
|
|
81
|
+
],
|
|
82
|
+
});
|
|
83
|
+
if (p.exitAfterMs) setTimeout(() => exit(3, "while a permission request waits"), p.exitAfterMs);
|
|
84
|
+
let cancelled = false;
|
|
85
|
+
cancelTurn = () => { cancelled = true; };
|
|
86
|
+
const answer = await (p.waitMs ? Promise.race([asked, sleep(p.waitMs).then(() => null)]) : asked);
|
|
87
|
+
cancelTurn = null;
|
|
88
|
+
if (!answer) log({ dir: "event", event: "permission-wait-ended" });
|
|
89
|
+
if (cancelled) { reply(id, { stopReason: "cancelled" }); return; }
|
|
90
|
+
}
|
|
91
|
+
if (spec.holdMs) {
|
|
92
|
+
const cancelled = await new Promise((resolve) => {
|
|
93
|
+
const timer = setTimeout(() => { cancelTurn = null; resolve(false); }, spec.holdMs);
|
|
94
|
+
cancelTurn = () => {
|
|
95
|
+
if (!spec.ignoreCancel) { clearTimeout(timer); cancelTurn = null; resolve(true); return; }
|
|
96
|
+
if (spec.endAfterCancelMs === undefined) return;
|
|
97
|
+
cancelTurn = null;
|
|
98
|
+
setTimeout(() => { clearTimeout(timer); resolve(false); }, spec.endAfterCancelMs);
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
if (cancelled) stopReason = "cancelled";
|
|
102
|
+
}
|
|
103
|
+
reply(id, { stopReason });
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async function reopen(id, params) {
|
|
107
|
+
if ((scenario.knownSessions ?? []).includes(params.sessionId)) { sessionId = params.sessionId; reply(id, null); return; }
|
|
108
|
+
if (scenario.reopenError === "missing") fail(id, -32002, `Session not found: ${params.sessionId}`);
|
|
109
|
+
else fail(id, -32603, "fake agent: reopen failed");
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
async function handle(msg) {
|
|
113
|
+
if (msg.id !== undefined && msg.method === undefined) { answers.get(msg.id)?.(msg); answers.delete(msg.id); return; }
|
|
114
|
+
switch (msg.method) {
|
|
115
|
+
case "initialize":
|
|
116
|
+
if (scenario.initialize === "exit") exit(2, "initialize");
|
|
117
|
+
if (scenario.initialize === "error") { fail(msg.id, -32603, "fake agent: initialize fails"); return; }
|
|
118
|
+
reply(msg.id, { protocolVersion: 1, agentCapabilities: { loadSession: true }, authMethods: [] });
|
|
119
|
+
if (scenario.unknownRequest) await ask("fake/unknown_method", { note: "a method no runner knows" });
|
|
120
|
+
return;
|
|
121
|
+
case "session/new":
|
|
122
|
+
if (scenario.newDelayMs) await sleep(scenario.newDelayMs);
|
|
123
|
+
if (scenario.newSession === "exit") exit(2, "session/new");
|
|
124
|
+
if (scenario.newSession === "error") { fail(msg.id, -32603, "fake agent: session/new fails"); return; }
|
|
125
|
+
sessionId = scenario.sessionId ?? "fake-session-1";
|
|
126
|
+
reply(msg.id, { sessionId });
|
|
127
|
+
return;
|
|
128
|
+
case "session/load":
|
|
129
|
+
case "session/resume":
|
|
130
|
+
await reopen(msg.id, msg.params ?? {});
|
|
131
|
+
return;
|
|
132
|
+
case "session/prompt":
|
|
133
|
+
await prompt(msg.id, msg.params ?? {});
|
|
134
|
+
return;
|
|
135
|
+
case "session/cancel":
|
|
136
|
+
cancelTurn?.();
|
|
137
|
+
return;
|
|
138
|
+
default:
|
|
139
|
+
if (msg.id !== undefined) fail(msg.id, -32601, `Method not found: ${msg.method}`);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const lines = createInterface({ input: process.stdin });
|
|
144
|
+
lines.on("line", (line) => {
|
|
145
|
+
let msg;
|
|
146
|
+
try { msg = JSON.parse(line); } catch { log({ dir: "event", event: "garbage", line }); return; }
|
|
147
|
+
log({ dir: "in", msg });
|
|
148
|
+
void handle(msg);
|
|
149
|
+
});
|
|
150
|
+
lines.on("close", () => { if (scenario.stubborn) { log({ dir: "event", event: "stdin-closed" }); setInterval(() => {}, 60_000); } else exit(0, "stdin closed"); });
|
|
@@ -144,6 +144,23 @@ changes either. `rig scope` reads an `established` or `canonical` slice whose
|
|
|
144
144
|
`verified:` is missing, has no source, names a tool-scaffolded placeholder, or is
|
|
145
145
|
older than 90 days as `provisional`.
|
|
146
146
|
|
|
147
|
+
A slice's frontmatter may also carry `status:`. `GET /api/slices` reports the
|
|
148
|
+
bucket each word falls in as the slice's `status`, and its
|
|
149
|
+
`?filter=all|active|done|blocked` filters on that bucket:
|
|
150
|
+
|
|
151
|
+
| `status:` word | Bucket |
|
|
152
|
+
| --- | --- |
|
|
153
|
+
| `active`, `in-flight`, `ratified` | `active` |
|
|
154
|
+
| `draft`, `draft-pending-orch-ratification`, `placeholder` | `draft` |
|
|
155
|
+
| `done`, `shipped`, `promoted`, `closed` | `done` |
|
|
156
|
+
| `blocked`, `parked-with-evidence` | `blocked` |
|
|
157
|
+
|
|
158
|
+
Words are matched ignoring case. Any other word is matched by what it contains:
|
|
159
|
+
`done`, `ship` or `close` makes it `done`; `block` or `park`, `blocked`; `draft`
|
|
160
|
+
or `pending`, `draft`. A word that matches none of these counts as `active`, so a
|
|
161
|
+
slice marked `complete` counts as `active`. A slice with no `status:` counts as
|
|
162
|
+
`draft`.
|
|
163
|
+
|
|
147
164
|
When the owning scope selects `proofPolicy.judges`, use `rig proof judge` to
|
|
148
165
|
record an attributed accept, reject or withdraw decision on a contract item,
|
|
149
166
|
and `rig proof show` to read derived readiness up through slice, mission and
|
|
@@ -178,9 +195,11 @@ missions whose `mission.yaml` carries `metadata.status: active` or
|
|
|
178
195
|
a mission does not change the project's readiness. A `planned` mission stays
|
|
179
196
|
outside the rollup, even after its slices are accepted, until someone changes
|
|
180
197
|
its status to `active` (or `release-candidate` for a release that is ready to
|
|
181
|
-
judge). Nothing changes the status automatically.
|
|
182
|
-
|
|
183
|
-
|
|
198
|
+
judge). Nothing changes the status automatically. A mission can also carry
|
|
199
|
+
`metadata.status: complete`, which only `POST /api/missions/:missionId/complete`
|
|
200
|
+
writes (no `rig` verb does); a `complete` mission is outside the rollup too.
|
|
201
|
+
Missions created before this default carry no status and are not counted either;
|
|
202
|
+
add the line by hand to include them. It also writes `metadata.name`, the mission's folder name, which
|
|
184
203
|
the project lifecycle compiler requires; a mission created without it refuses to
|
|
185
204
|
compile with `lifecycle_field_missing` until you add that line.
|
|
186
205
|
|
|
@@ -10,7 +10,7 @@ type: `openrig-urgent`, `urgent-only` and `sends-only`. Sibling seats keep their
|
|
|
10
10
|
| `off` (default) | Existing delivery and prompt checks | Existing send result |
|
|
11
11
|
| `draft-aware` | Paste into a recognized empty composer; check ownership again before Enter | Hold input and retain this attempt for inspection when bookkeeping is available |
|
|
12
12
|
| `openrig-urgent` | OpenRig's own messages (watchdogs, scheduled wakes, notices) and anything marked urgent type, never over a draft | Other agents' messages are held, the sender is told, and held messages stay readable |
|
|
13
|
-
| `urgent-only` | Only messages marked urgent type (`rig send --urgent`, or a queue item at priority urgent or critical), never over a draft | Everything else is held, the sender is told, and held messages stay readable |
|
|
13
|
+
| `urgent-only` | Only messages marked urgent type (`rig send --urgent`, `urgent: true` on `POST /api/transport/send`, or a queue item at priority urgent or critical), never over a draft | Everything else is held, the sender is told, and held messages stay readable |
|
|
14
14
|
| `sends-only` | Deliberate sends from people and agents type, as with `off`; a terminal member's typing isn't protected, because its shell input can't be read | OpenRig's own notices are held. A terminal member defaults to this level |
|
|
15
15
|
| `hold` | No automatic terminal input, even at an empty prompt | Retain for inspection outside the pane |
|
|
16
16
|
|
|
@@ -111,8 +111,18 @@ their existing behaviour.
|
|
|
111
111
|
|
|
112
112
|
### Terminal delivery
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
`rig seat set-typing-guard` works from an ordinary terminal as well as from a
|
|
115
|
+
seat's shell. The daemon takes the recorded actor from transport identity only:
|
|
116
|
+
|
|
117
|
+
- From a managed seat's shell (`OPENRIG_SESSION_NAME` set), the preference and
|
|
118
|
+
its audit entry name that seat.
|
|
119
|
+
- From a terminal with no seat identity, the change applies the same way, and
|
|
120
|
+
the preference and its audit entry record the actor as
|
|
121
|
+
`unattributed (no seat identity)`.
|
|
122
|
+
|
|
123
|
+
Neither case takes an actor from the request body or from the target seat's name.
|
|
124
|
+
`rig seat retire-held-message` still records the seat that retired a message, so
|
|
125
|
+
run it from a seat's shell.
|
|
116
126
|
|
|
117
127
|
~~~sh
|
|
118
128
|
rig seat set-typing-guard dev-impl@my-rig --mode draft-aware \
|
|
@@ -131,8 +141,21 @@ to finish. The API may return HTTP 202 with `pending: true`; wait for
|
|
|
131
141
|
and effective modes and retains the text `Typing guard: on (hold)` for hold.
|
|
132
142
|
|
|
133
143
|
A held send immediately returns `outcome: "retained"`, `sent: false`, its exact
|
|
134
|
-
reason
|
|
135
|
-
retry is scheduled.
|
|
144
|
+
reason and the saved attempt's `outboxIds`. No automatic
|
|
145
|
+
retry is scheduled. The reasons are:
|
|
146
|
+
|
|
147
|
+
- `typing_guard_enabled`: the seat's mode holds this send (`hold`, or a level that
|
|
148
|
+
holds this kind of message).
|
|
149
|
+
- `runtime_switch_in_progress`: the seat is switching runtime.
|
|
150
|
+
- In `draft-aware` mode, a refusal before any input was written:
|
|
151
|
+
`draft_input_busy` (the input holds unsubmitted text), `draft_input_unknown` (the
|
|
152
|
+
input can't be read), `draft_input_changed` (the input or its target changed during
|
|
153
|
+
the delivery), `draft_wake_superseded`, `target_needs_input`,
|
|
154
|
+
`wait_for_idle_timeout`, `target_activity_unknown`, `target_runtime_unverified`,
|
|
155
|
+
`target_runtime_not_running`, `target_runtime_conflict`, `invalid_wait_for_idle`,
|
|
156
|
+
`invalid_dangerously_interact`, `dangerously_interact_requires_reason`,
|
|
157
|
+
`prompt_override_audit_unavailable`, `transport_unavailable`, `session_missing` or
|
|
158
|
+
`tmux_unavailable`. Each explicit draft-aware request is a new attempt, including
|
|
136
159
|
one with a reused `deliveryId`; the result warns older callers that this field no
|
|
137
160
|
longer deduplicates input. The CLI does not generate a deduplication key.
|
|
138
161
|
|
|
@@ -230,7 +253,9 @@ refuses Enter and is not replayed. Unsupported provider layouts remain held.
|
|
|
230
253
|
Use off when that tradeoff is unsuitable.
|
|
231
254
|
|
|
232
255
|
HTTP configuration uses `POST /api/seat/set-typing-guard/:seatRef` with
|
|
233
|
-
`{mode, reason}` or `{enabled, reason}`.
|
|
256
|
+
`{mode, reason}` or `{enabled, reason}`. The `X-OpenRig-Session` header, when
|
|
257
|
+
present, is the recorded actor; without it the change is recorded as
|
|
258
|
+
`unattributed (no seat identity)`. Status and held-message routes are
|
|
234
259
|
unchanged; no RigSpec field is required.
|
|
235
260
|
|
|
236
261
|
## Verification scope
|
|
@@ -99,8 +99,24 @@ So after installing, compare the granted scopes Slack shows for the app with all
|
|
|
99
99
|
`rig slack manifest --json` lists.
|
|
100
100
|
|
|
101
101
|
The app subscribes to messages in public channels it is a member of (`message.channels`), to
|
|
102
|
-
mentions of the app (`app_mention`), and to emoji reactions (`reaction_added`).
|
|
103
|
-
direct-message or private-channel access.
|
|
102
|
+
mentions of the app (`app_mention`), and to emoji reactions (`reaction_added`). The manifest does
|
|
103
|
+
not request direct-message or private-channel access.
|
|
104
|
+
|
|
105
|
+
### Using a private channel
|
|
106
|
+
|
|
107
|
+
The connector doesn't check whether a channel is public or private, so a private channel can be
|
|
108
|
+
the default channel or a mapped one once the app can read it. OpenRig doesn't test this setup. In
|
|
109
|
+
the app's settings:
|
|
110
|
+
|
|
111
|
+
1. Under **OAuth & Permissions**, add the bot scopes `groups:history` (read messages in private
|
|
112
|
+
channels the app is in) and `groups:read` (read a private channel's details; `rig slack verify`
|
|
113
|
+
needs it to confirm the app is a member).
|
|
114
|
+
2. Under **Event Subscriptions**, subscribe to the bot event `message.groups`.
|
|
115
|
+
3. Reinstall the app to the workspace, then invite it to the private channel.
|
|
116
|
+
4. To have `rig slack verify` require the new scopes too, run
|
|
117
|
+
`rig slack setup --required-scopes chat:write,channels:history,channels:read,groups:history,groups:read`.
|
|
118
|
+
|
|
119
|
+
Direct messages are not supported.
|
|
104
120
|
|
|
105
121
|
A reaction added to an ask reaches the agent that asked, as a note naming who reacted and with
|
|
106
122
|
which emoji; the agent decides what it means. Every message OpenRig posted for the ask counts:
|
|
@@ -166,6 +182,9 @@ rig slack channel-map list
|
|
|
166
182
|
rig slack channel-map remove pr@my-rig
|
|
167
183
|
```
|
|
168
184
|
|
|
185
|
+
A client can offer the channels to choose from with `GET /api/gateway/slack/channels`, which lists the public
|
|
186
|
+
channels the bot token can see, with their ids ([Writing a daemon client](daemon-http-clients.md#route-details)).
|
|
187
|
+
|
|
169
188
|
- **Which channel an item posts to.** The item's seat is matched exactly first (`pr@my-rig`),
|
|
170
189
|
then its rig (`my-rig`). Anything unmapped posts to the default channel, so a config
|
|
171
190
|
without a map behaves exactly as before. Aggregate delivery digests have no single seat and
|
|
@@ -207,7 +226,7 @@ rig slack channel-map remove pr@my-rig
|
|
|
207
226
|
their routing also keeps the conversations separate: new messages in a seat's own channel
|
|
208
227
|
still go to the inbound destination unless its entry names `--inbound`. A conversation shared
|
|
209
228
|
on purpose is fine.
|
|
210
|
-
- Missed-message recovery (below) covers the default channel
|
|
229
|
+
- Missed-message recovery (below) covers the default channel and every mapped channel, except a channel relayed to another machine.
|
|
211
230
|
|
|
212
231
|
Invite the app to every mapped channel (`/invite @OpenRig`). `rig slack verify` checks
|
|
213
232
|
membership in the default channel and every mapped channel, and reports NOT ready until the
|
|
@@ -221,8 +240,9 @@ configuration matches the file.
|
|
|
221
240
|
|
|
222
241
|
The map is stored as `channelMap` in `slack-connector.json`, as a list of `{ "match", "channel" }`
|
|
223
242
|
entries, each with an optional `"inbound"` seat. Saving refuses any other field. A field written by a newer OpenRig is ignored when the
|
|
224
|
-
connector reads the file, and `rig slack status` names it.
|
|
225
|
-
|
|
243
|
+
connector reads the file, and `rig slack status` names it. A private channel can be a target once
|
|
244
|
+
the app has the private-channel scopes ([Using a private channel](#using-a-private-channel)).
|
|
245
|
+
Direct messages are not supported targets.
|
|
226
246
|
|
|
227
247
|
## Named bots (optional)
|
|
228
248
|
|
|
@@ -366,6 +386,36 @@ Quiet hours hold a person's routine asks while they're on, and post them once th
|
|
|
366
386
|
|
|
367
387
|
## Reconnect recovery and status
|
|
368
388
|
|
|
389
|
+
When a posted ask is answered, closed, canceled or replaced elsewhere, the connector edits its
|
|
390
|
+
original primary message with the status, time, actor and closure note. Buttons become option
|
|
391
|
+
text and the answer hint disappears; the remaining content and reconciliation marker stay as
|
|
392
|
+
posted. Supplemental messages are unchanged. This adds no post or reaction and needs no agent
|
|
393
|
+
turn. Separate resolution notices retain their existing behavior.
|
|
394
|
+
|
|
395
|
+
A deliberately reopened direct ask says **Open again**; its options remain as text. If it has
|
|
396
|
+
no committed answer, it tells the person to reply in its thread. Otherwise it says **Earlier
|
|
397
|
+
answer retained**: reopening does not accept a second answer. Earlier replaced parks remain
|
|
398
|
+
historical; **Asked again** does not claim that the later ask has been posted. Edits reconcile
|
|
399
|
+
the current state again after awaited Slack calls, so an obsolete close is not recorded as the
|
|
400
|
+
current result after a reopen.
|
|
401
|
+
|
|
402
|
+
Edits follow committed queue changes, with a startup catch-up for posted asks on retained queue
|
|
403
|
+
rows. Each primary costs one exact-message read and one `chat.update`. The serial edit worker
|
|
404
|
+
uses the recovery budget helpers (four calls, 100 entries, 15 seconds) and waits for the next
|
|
405
|
+
budget window when exhausted. Slack's per-method `Retry-After` is retained across restarts.
|
|
406
|
+
Only an acknowledged edit gets a success receipt. `rig slack status` shows queued reconciliation
|
|
407
|
+
and the last edit failure. Transient failures retry with increasing waits, capped at an hour,
|
|
408
|
+
behind other queued work. Permanent Slack failures (such as missing scope, a deleted original,
|
|
409
|
+
an archived channel or an uneditable message) remain unfinished and are retried only on the next
|
|
410
|
+
connector start. They do not keep consuming edit capacity. These edit calls have their own
|
|
411
|
+
budget, separate from missed-message scanning below.
|
|
412
|
+
|
|
413
|
+
The baseline already includes public-channel history access and `chat:write`. Private-channel
|
|
414
|
+
reads may require `groups:history`, which the baseline does not grant; a refused read never
|
|
415
|
+
counts as an edit. An unavailable/deleted original cannot be replaced by a new post. Startup
|
|
416
|
+
catch-up cannot edit rows already removed by queue retention or posts without their original
|
|
417
|
+
notification receipt and channel stamp.
|
|
418
|
+
|
|
369
419
|
The daemon scans available top-level messages and replies broadcast with **Also send to
|
|
370
420
|
channel** in the channels this machine owns: its default channel and its channel map's, except a
|
|
371
421
|
channel it relays to another machine. It also scans replies in the threads it tracks in those
|
|
@@ -300,15 +300,25 @@ small presentation provenance, separate from queue membership. Herdr display
|
|
|
300
300
|
labels are not that provenance. Other providers/platforms remain unsupported
|
|
301
301
|
for ensure-viewer until qualified; ordinary open retains its existing behavior.
|
|
302
302
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
A writable tile attaches with `tmux attach -f ignore-size` when its session
|
|
304
|
+
already has a client that sizes it, so the tile doesn't fight that client over
|
|
305
|
+
the agent window's dimensions. When the session has no sizing client, as with a
|
|
306
|
+
freshly launched seat, the tile attaches without the flag and sizes the window
|
|
307
|
+
itself: tmux applies ignore-size across the whole server, so a session viewed
|
|
308
|
+
only by ignore-size clients would otherwise keep its 80x24 creation size while
|
|
309
|
+
any other session has a sizing client. Read-only clients keep `-r` (which also
|
|
310
|
+
implies ignore-size), and the printed manual attach commands keep
|
|
311
|
+
`-f ignore-size`. This is **not resize isolation**: opening a tile can change
|
|
312
|
+
the agent's terminal size. Observers of a Herdr terminal do not themselves resize it;
|
|
308
313
|
a controlling browser can. No cross-version resize guarantee is implied.
|
|
309
314
|
|
|
315
|
+
To type into a seat without changing its size, send the text through OpenRig
|
|
316
|
+
(`rig send`, or `POST /api/transport/send`): it is written to the pane with tmux
|
|
317
|
+
buffers and keys, and no client attaches. There is no supported way to attach a
|
|
318
|
+
writable client that is sure never to resize the agent's window.
|
|
310
319
|
|
|
311
|
-
|
|
320
|
+
|
|
321
|
+
## Following a slice or mission's current work
|
|
312
322
|
|
|
313
323
|
Use `rig terminal open slice:<name-or-id> --follow --provider herdr` to keep
|
|
314
324
|
one workspace following the current destination owners of that slice's active
|
|
@@ -329,9 +339,30 @@ unplaceable mission/alias tags make the snapshot incomplete, retaining previous
|
|
|
329
339
|
viewers. A unique alias on its own retains exact matching. Flat legacy slices
|
|
330
340
|
without an indexed parent mission cannot disambiguate a colliding alias.
|
|
331
341
|
|
|
332
|
-
|
|
342
|
+
Mission views use `mission:<directory-id>`, from the same configured index.
|
|
343
|
+
A mission is known when its directory contains `slices/` (even empty) or a
|
|
344
|
+
readable `mission.yaml` declaration. Its directory ID is its exact identity;
|
|
345
|
+
mission frontmatter is not an alias. Membership is the union of active rows
|
|
346
|
+
with that exact `mission:` tag and rows associated with any physically indexed
|
|
347
|
+
child slice by its exact name or unique ID. Each row counts once even when it
|
|
348
|
+
has both tags. Flat legacy slices without that parent association are not
|
|
349
|
+
inferred into a mission. A child's historical status or composition activation
|
|
350
|
+
flag does not remove its current obligations from the union. Duplicate mission
|
|
351
|
+
IDs are ambiguous. Shared child names/IDs are omitted from bare slice matching;
|
|
352
|
+
rows with one indexed claimant mission are placed through their mission tag.
|
|
353
|
+
A direct mission tag takes precedence, including work tagged to both missions.
|
|
354
|
+
Without that direct tag, a shared-key row with missing, contradictory or
|
|
355
|
+
non-claimant mission tags is named in `issues` and makes the snapshot incomplete;
|
|
356
|
+
known owners remain.
|
|
357
|
+
The launcher reads this same terminal preview and submits its `expectedPlan`
|
|
358
|
+
when opening, rather than using the review-agent roster.
|
|
359
|
+
|
|
360
|
+
Slice and mission keys are case-sensitive and can include Unicode, plus signs and internal
|
|
333
361
|
spaces. They cannot be empty or contain slash, backslash, control characters,
|
|
334
|
-
or leading/trailing whitespace
|
|
362
|
+
or leading/trailing whitespace in the scope reader. The service trims the whole
|
|
363
|
+
selector before composition, so a trailing selector space is accepted by
|
|
364
|
+
preview/ensure with the same plan; ensure rejects a leading selector space.
|
|
365
|
+
Prefer the exact canonical selector in every call. Pass it in JSON or a quoted
|
|
335
366
|
CLI argument; encode it once as a GET query value. Do not double-decode it.
|
|
336
367
|
|
|
337
368
|
Slice previews and open results use `task: {kind:"slice", id, name, complete,
|
|
@@ -343,21 +374,25 @@ view/provider implements ensure; the existing member, completeness, owner and
|
|
|
343
374
|
`expectedPlan` checks still apply. A missing capability/task on an older daemon
|
|
344
375
|
is unsupported scoped membership, not an empty team.
|
|
345
376
|
|
|
346
|
-
|
|
377
|
+
Mission results use the same shape with `task.kind:"mission"`; `task.id` and
|
|
378
|
+
`task.name` are the directory ID, with no synthetic `qitemId`. Ordinary mission
|
|
379
|
+
preview/open uses this current-obligation membership too: past participants
|
|
380
|
+
without active obligations are excluded, while unavailable current owners
|
|
381
|
+
remain named. Follow, preview and ensure share the same authority.
|
|
382
|
+
|
|
383
|
+
New slice and mission workspaces default to four automatic tiles; `--max-tiles` overrides
|
|
347
384
|
that. Qitem views retain their eight-tile default. The full membership and
|
|
348
385
|
obligation list remains available when tiles exceed capacity. Pins, drafts,
|
|
349
386
|
unknown input and focus retention still protect departed viewers. Closing a
|
|
350
387
|
viewer never stops its agent. Opening a tile can change the agent's dimensions.
|
|
351
388
|
|
|
352
|
-
A known empty slice remains enabled in the same workspace; later associated
|
|
389
|
+
A known empty slice or mission remains enabled in the same workspace; later associated
|
|
353
390
|
work can join it. An incomplete queue read (`task.complete:false` plus `issues`)
|
|
354
391
|
retains previous viewers. A missing scope is `scope_not_found`, duplicate scope
|
|
355
392
|
identity is `scope_ambiguous`, unreadable/capped index data is `scope_unavailable`,
|
|
356
393
|
and an unavailable resolver is `scope_unsupported`. None is authoritative empty.
|
|
357
394
|
Ensure of an incomplete snapshot returns `viewer_unconfirmed`; changed plans
|
|
358
|
-
return `preview_changed` before provisioning.
|
|
359
|
-
increment; the existing mission display projection is not authoritative follow
|
|
360
|
-
or ensure capability.
|
|
395
|
+
return `preview_changed` before provisioning.
|
|
361
396
|
|
|
362
397
|
Ordinary ownership changes follow queue/session/node events. Node and directory
|
|
363
398
|
changes under the primary configured index use the existing filesystem watcher,
|
|
@@ -390,5 +425,56 @@ ensure view kinds now return `view_required` (400), where they previously return
|
|
|
390
425
|
200 with an error body. Unsupported follow view kinds
|
|
391
426
|
retain `follow_view_required` in a 200 `ok:false` body, as before. A changed
|
|
392
427
|
preview remains `preview_changed` (409). During automatic refresh a missing or
|
|
393
|
-
ambiguous
|
|
428
|
+
ambiguous scope retains the existing tiles and names the source problem in the
|
|
394
429
|
explanation strip; refresh or reopen it under the current unambiguous key.
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
## Reading or sending to an expected native conversation
|
|
433
|
+
|
|
434
|
+
An application that selects an original Claude Code or Codex conversation can opt
|
|
435
|
+
into an expected-identity check. The identity is the exact tuple `nodeId`, canonical
|
|
436
|
+
`sessionName`, `runtime` (`claude-code` or `codex`) and native `nativeId`. A registry
|
|
437
|
+
resume token by itself is not a current-process identity observation.
|
|
438
|
+
|
|
439
|
+
Read `GET /api/sessions/:sessionName/generation-record-expected` with query fields
|
|
440
|
+
`expectedNodeId`, `expectedRuntime`, `expectedNativeId` and optional `sinceBytes`.
|
|
441
|
+
It resolves the verified current occupant and native process, opens that native
|
|
442
|
+
record, checks its identity, and returns identity and bounded suffix bytes from
|
|
443
|
+
the same opened file. Its existing byte cursor and `generationId` semantics match
|
|
444
|
+
`generation-record`. Success adds `identityContract:1` and `checkedIdentity`, the
|
|
445
|
+
exact expected tuple. Check both before displaying the suffix as that conversation.
|
|
446
|
+
|
|
447
|
+
Send `POST /api/transport/send-expected` with the ordinary send body and a required
|
|
448
|
+
`expectedIdentity` object containing those four fields. The check runs again after
|
|
449
|
+
buffer preparation immediately before paste, and before Enter after any wait.
|
|
450
|
+
A retained input stores the constraint in its outbox receipt; committed dispatch
|
|
451
|
+
and reuse of its delivery ID cannot select a different original conversation or
|
|
452
|
+
omit the stored constraint. Delivery IDs still do not deduplicate explicit input.
|
|
453
|
+
Success adds `identityContract:1` and `checkedIdentity`. Retained is not sent;
|
|
454
|
+
`checkedIdentity` is an observation at an input boundary, not model consumption.
|
|
455
|
+
If replacement is observed after paste, the result reports `inputPhase:"written"`
|
|
456
|
+
and `sent:true`, with Enter refused. Inspect that input before deciding what to do.
|
|
457
|
+
|
|
458
|
+
Malformed expectations return 400 (`invalid_expected_identity`). A different
|
|
459
|
+
observed identity returns 409 (`expected_identity_mismatch`); a missing or
|
|
460
|
+
unverified identity returns 409 (`expected_identity_unavailable`). Conflicting
|
|
461
|
+
reuse of a delivery ID returns 409 (`delivery_identity_conflict`). No conditional
|
|
462
|
+
operation falls back to the replacement. Use these dedicated paths when detecting
|
|
463
|
+
support: older daemons return 404 instead of silently ignoring an unknown field.
|
|
464
|
+
Ordinary reads and sends without an expectation or an ID bound by an earlier
|
|
465
|
+
conditional send keep their existing behavior. Reusing a bound ID also carries
|
|
466
|
+
its stored constraint when the caller omits the expectation.
|
|
467
|
+
|
|
468
|
+
While a runtime switch is preparing or confirmed, a conditional send returns
|
|
469
|
+
409 `expected_identity_unavailable` with `sent:false` and `inputPhase:"not_reached"`.
|
|
470
|
+
It retains neither the input nor the expectation. Retry the conditional endpoint
|
|
471
|
+
with the original `expectedIdentity`; an ordinary send is not an identity-bound
|
|
472
|
+
retry unless its ID already has a stored constraint. Ordinary sends during the
|
|
473
|
+
switch keep their existing retained response.
|
|
474
|
+
|
|
475
|
+
This is a finite process/record observation followed by a terminal write; tmux has
|
|
476
|
+
no atomic native-conversation compare-and-write operation. A native conversation
|
|
477
|
+
change after the final observation remains a race. The check does not turn a
|
|
478
|
+
terminal attachment into a conversation pin: existing terminal viewers follow
|
|
479
|
+
managed pane/session bindings and may display their replacement. Applications
|
|
480
|
+
must keep that attachment limit separate from checked record reads and sends.
|