@openrig/cli 0.1.12 → 0.2.0
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/daemon/assets/openrig-activity-hook-relay.cjs +104 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts +14 -6
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +183 -65
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +5 -0
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +13 -0
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +8 -1
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +74 -5
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +9 -5
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +255 -28
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/terminal-adapter.d.ts +2 -1
- package/daemon/dist/adapters/terminal-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/terminal-adapter.js +7 -1
- package/daemon/dist/adapters/terminal-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +53 -5
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/db/migrations/021_seat_handover_observability.d.ts +3 -0
- package/daemon/dist/db/migrations/021_seat_handover_observability.d.ts.map +1 -0
- package/daemon/dist/db/migrations/021_seat_handover_observability.js +11 -0
- package/daemon/dist/db/migrations/021_seat_handover_observability.js.map +1 -0
- package/daemon/dist/db/migrations/022_node_codex_config_profile.d.ts +3 -0
- package/daemon/dist/db/migrations/022_node_codex_config_profile.d.ts.map +1 -0
- package/daemon/dist/db/migrations/022_node_codex_config_profile.js +7 -0
- package/daemon/dist/db/migrations/022_node_codex_config_profile.js.map +1 -0
- package/daemon/dist/db/migrations/023_stream_items.d.ts +16 -0
- package/daemon/dist/db/migrations/023_stream_items.d.ts.map +1 -0
- package/daemon/dist/db/migrations/023_stream_items.js +37 -0
- package/daemon/dist/db/migrations/023_stream_items.js.map +1 -0
- package/daemon/dist/db/migrations/024_queue_items.d.ts +19 -0
- package/daemon/dist/db/migrations/024_queue_items.d.ts.map +1 -0
- package/daemon/dist/db/migrations/024_queue_items.js +52 -0
- package/daemon/dist/db/migrations/024_queue_items.js.map +1 -0
- package/daemon/dist/db/migrations/025_queue_transitions.d.ts +13 -0
- package/daemon/dist/db/migrations/025_queue_transitions.d.ts.map +1 -0
- package/daemon/dist/db/migrations/025_queue_transitions.js +28 -0
- package/daemon/dist/db/migrations/025_queue_transitions.js.map +1 -0
- package/daemon/dist/db/migrations/026_inbox_entries.d.ts +14 -0
- package/daemon/dist/db/migrations/026_inbox_entries.d.ts.map +1 -0
- package/daemon/dist/db/migrations/026_inbox_entries.js +35 -0
- package/daemon/dist/db/migrations/026_inbox_entries.js.map +1 -0
- package/daemon/dist/db/migrations/027_outbox_entries.d.ts +12 -0
- package/daemon/dist/db/migrations/027_outbox_entries.d.ts.map +1 -0
- package/daemon/dist/db/migrations/027_outbox_entries.js +30 -0
- package/daemon/dist/db/migrations/027_outbox_entries.js.map +1 -0
- package/daemon/dist/db/migrations/028_project_classifications.d.ts +26 -0
- package/daemon/dist/db/migrations/028_project_classifications.d.ts.map +1 -0
- package/daemon/dist/db/migrations/028_project_classifications.js +44 -0
- package/daemon/dist/db/migrations/028_project_classifications.js.map +1 -0
- package/daemon/dist/db/migrations/029_classifier_leases.d.ts +22 -0
- package/daemon/dist/db/migrations/029_classifier_leases.d.ts.map +1 -0
- package/daemon/dist/db/migrations/029_classifier_leases.js +41 -0
- package/daemon/dist/db/migrations/029_classifier_leases.js.map +1 -0
- package/daemon/dist/db/migrations/030_views_custom.d.ts +15 -0
- package/daemon/dist/db/migrations/030_views_custom.d.ts.map +1 -0
- package/daemon/dist/db/migrations/030_views_custom.js +27 -0
- package/daemon/dist/db/migrations/030_views_custom.js.map +1 -0
- package/daemon/dist/db/migrations/031_watchdog_jobs.d.ts +34 -0
- package/daemon/dist/db/migrations/031_watchdog_jobs.d.ts.map +1 -0
- package/daemon/dist/db/migrations/031_watchdog_jobs.js +59 -0
- package/daemon/dist/db/migrations/031_watchdog_jobs.js.map +1 -0
- package/daemon/dist/db/migrations/032_watchdog_history.d.ts +28 -0
- package/daemon/dist/db/migrations/032_watchdog_history.d.ts.map +1 -0
- package/daemon/dist/db/migrations/032_watchdog_history.js +46 -0
- package/daemon/dist/db/migrations/032_watchdog_history.js.map +1 -0
- package/daemon/dist/db/migrations/033_workflow_specs.d.ts +30 -0
- package/daemon/dist/db/migrations/033_workflow_specs.d.ts.map +1 -0
- package/daemon/dist/db/migrations/033_workflow_specs.js +50 -0
- package/daemon/dist/db/migrations/033_workflow_specs.js.map +1 -0
- package/daemon/dist/db/migrations/034_workflow_instances.d.ts +42 -0
- package/daemon/dist/db/migrations/034_workflow_instances.d.ts.map +1 -0
- package/daemon/dist/db/migrations/034_workflow_instances.js +63 -0
- package/daemon/dist/db/migrations/034_workflow_instances.js.map +1 -0
- package/daemon/dist/db/migrations/035_workflow_step_trails.d.ts +29 -0
- package/daemon/dist/db/migrations/035_workflow_step_trails.d.ts.map +1 -0
- package/daemon/dist/db/migrations/035_workflow_step_trails.js +48 -0
- package/daemon/dist/db/migrations/035_workflow_step_trails.js.map +1 -0
- package/daemon/dist/db/migrations/036_watchdog_policy_enum_extension.d.ts +35 -0
- package/daemon/dist/db/migrations/036_watchdog_policy_enum_extension.d.ts.map +1 -0
- package/daemon/dist/db/migrations/036_watchdog_policy_enum_extension.js +43 -0
- package/daemon/dist/db/migrations/036_watchdog_policy_enum_extension.js.map +1 -0
- package/daemon/dist/domain/agent-activity-store.d.ts +42 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -0
- package/daemon/dist/domain/agent-activity-store.js +177 -0
- package/daemon/dist/domain/agent-activity-store.js.map +1 -0
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +3 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/agent-starter-resolver.d.ts +100 -0
- package/daemon/dist/domain/agent-starter-resolver.d.ts.map +1 -0
- package/daemon/dist/domain/agent-starter-resolver.js +200 -0
- package/daemon/dist/domain/agent-starter-resolver.js.map +1 -0
- package/daemon/dist/domain/classifier-lease-manager.d.ts +130 -0
- package/daemon/dist/domain/classifier-lease-manager.d.ts.map +1 -0
- package/daemon/dist/domain/classifier-lease-manager.js +285 -0
- package/daemon/dist/domain/classifier-lease-manager.js.map +1 -0
- package/daemon/dist/domain/context-usage-store.d.ts +1 -1
- package/daemon/dist/domain/context-usage-store.js +1 -1
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +45 -0
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -0
- package/daemon/dist/domain/hot-potato-enforcer.js +94 -0
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -0
- package/daemon/dist/domain/inbox-handler.d.ts +68 -0
- package/daemon/dist/domain/inbox-handler.d.ts.map +1 -0
- package/daemon/dist/domain/inbox-handler.js +177 -0
- package/daemon/dist/domain/inbox-handler.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +67 -0
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +29 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +160 -38
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +2 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +14 -2
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +48 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -0
- package/daemon/dist/domain/outbox-handler.js +106 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -0
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts +64 -0
- package/daemon/dist/domain/policies/artifact-pool-helpers.d.ts.map +1 -0
- package/daemon/dist/domain/policies/artifact-pool-helpers.js +226 -0
- package/daemon/dist/domain/policies/artifact-pool-helpers.js.map +1 -0
- package/daemon/dist/domain/policies/artifact-pool-ready.d.ts +3 -0
- package/daemon/dist/domain/policies/artifact-pool-ready.d.ts.map +1 -0
- package/daemon/dist/domain/policies/artifact-pool-ready.js +41 -0
- package/daemon/dist/domain/policies/artifact-pool-ready.js.map +1 -0
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts +3 -0
- package/daemon/dist/domain/policies/edge-artifact-required.d.ts.map +1 -0
- package/daemon/dist/domain/policies/edge-artifact-required.js +90 -0
- package/daemon/dist/domain/policies/edge-artifact-required.js.map +1 -0
- package/daemon/dist/domain/policies/periodic-reminder.d.ts +3 -0
- package/daemon/dist/domain/policies/periodic-reminder.d.ts.map +1 -0
- package/daemon/dist/domain/policies/periodic-reminder.js +30 -0
- package/daemon/dist/domain/policies/periodic-reminder.js.map +1 -0
- package/daemon/dist/domain/policies/types.d.ts +51 -0
- package/daemon/dist/domain/policies/types.d.ts.map +1 -0
- package/daemon/dist/domain/policies/types.js +9 -0
- package/daemon/dist/domain/policies/types.js.map +1 -0
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts +7 -0
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -0
- package/daemon/dist/domain/policies/workflow-keepalive.js +123 -0
- package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -0
- package/daemon/dist/domain/project-classifier.d.ts +75 -0
- package/daemon/dist/domain/project-classifier.d.ts.map +1 -0
- package/daemon/dist/domain/project-classifier.js +132 -0
- package/daemon/dist/domain/project-classifier.js.map +1 -0
- package/daemon/dist/domain/projection-planner.d.ts +1 -0
- package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
- package/daemon/dist/domain/projection-planner.js +3 -0
- package/daemon/dist/domain/projection-planner.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +31 -0
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +38 -0
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +322 -0
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -0
- package/daemon/dist/domain/queue-repository.js +686 -0
- package/daemon/dist/domain/queue-repository.js.map +1 -0
- package/daemon/dist/domain/queue-transition-log.d.ts +38 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transition-log.js +52 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -0
- package/daemon/dist/domain/restore-check-service.d.ts +203 -0
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -0
- package/daemon/dist/domain/restore-check-service.js +1047 -0
- package/daemon/dist/domain/restore-check-service.js.map +1 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts +49 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +460 -62
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +13 -0
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +17 -1
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +63 -5
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +13 -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 +2 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +61 -1
- 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 +196 -0
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +27 -2
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +5 -0
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/seat-handover-planner.d.ts +84 -0
- package/daemon/dist/domain/seat-handover-planner.d.ts.map +1 -0
- package/daemon/dist/domain/seat-handover-planner.js +188 -0
- package/daemon/dist/domain/seat-handover-planner.js.map +1 -0
- package/daemon/dist/domain/seat-handover-service.d.ts +104 -0
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -0
- package/daemon/dist/domain/seat-handover-service.js +343 -0
- package/daemon/dist/domain/seat-handover-service.js.map +1 -0
- package/daemon/dist/domain/seat-status-service.d.ts +50 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -0
- package/daemon/dist/domain/seat-status-service.js +66 -0
- package/daemon/dist/domain/seat-status-service.js.map +1 -0
- package/daemon/dist/domain/session-source-rebuild-resolver.d.ts +53 -0
- package/daemon/dist/domain/session-source-rebuild-resolver.d.ts.map +1 -0
- package/daemon/dist/domain/session-source-rebuild-resolver.js +59 -0
- package/daemon/dist/domain/session-source-rebuild-resolver.js.map +1 -0
- package/daemon/dist/domain/session-transport.d.ts +30 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +322 -12
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/snapshot-repository.d.ts +18 -0
- package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-repository.js +77 -0
- package/daemon/dist/domain/snapshot-repository.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +22 -3
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +31 -5
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/stream-store.d.ts +56 -0
- package/daemon/dist/domain/stream-store.d.ts.map +1 -0
- package/daemon/dist/domain/stream-store.js +108 -0
- package/daemon/dist/domain/stream-store.js.map +1 -0
- package/daemon/dist/domain/transcript-redaction.d.ts +13 -0
- package/daemon/dist/domain/transcript-redaction.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-redaction.js +34 -0
- package/daemon/dist/domain/transcript-redaction.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +15 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +57 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +316 -3
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/view-event-bridge.d.ts +12 -0
- package/daemon/dist/domain/view-event-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/view-event-bridge.js +92 -0
- package/daemon/dist/domain/view-event-bridge.js.map +1 -0
- package/daemon/dist/domain/view-projector.d.ts +83 -0
- package/daemon/dist/domain/view-projector.d.ts.map +1 -0
- package/daemon/dist/domain/view-projector.js +296 -0
- package/daemon/dist/domain/view-projector.js.map +1 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts +49 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-history-log.js +67 -0
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +81 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js +164 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +92 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-policy-engine.js +442 -0
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -0
- package/daemon/dist/domain/watchdog-scheduler.d.ts +76 -0
- package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-scheduler.js +112 -0
- package/daemon/dist/domain/watchdog-scheduler.js.map +1 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts +46 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-instance-store.js +116 -0
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -0
- package/daemon/dist/domain/workflow-projector.d.ts +64 -0
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-projector.js +424 -0
- package/daemon/dist/domain/workflow-projector.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +63 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-runtime.js +150 -0
- package/daemon/dist/domain/workflow-runtime.js.map +1 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts +35 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-spec-cache.js +171 -0
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -0
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +27 -0
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-step-trail-log.js +73 -0
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -0
- package/daemon/dist/domain/workflow-types.d.ts +108 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-types.js +11 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -0
- package/daemon/dist/domain/workflow-validator.d.ts +31 -0
- package/daemon/dist/domain/workflow-validator.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-validator.js +115 -0
- package/daemon/dist/domain/workflow-validator.js.map +1 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +21 -2
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts +3 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -0
- package/daemon/dist/routes/activity.js +47 -0
- package/daemon/dist/routes/activity.js.map +1 -0
- package/daemon/dist/routes/projects.d.ts +12 -0
- package/daemon/dist/routes/projects.d.ts.map +1 -0
- package/daemon/dist/routes/projects.js +178 -0
- package/daemon/dist/routes/projects.js.map +1 -0
- package/daemon/dist/routes/queue.d.ts +10 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -0
- package/daemon/dist/routes/queue.js +374 -0
- package/daemon/dist/routes/queue.js.map +1 -0
- package/daemon/dist/routes/restore-check.d.ts +3 -0
- package/daemon/dist/routes/restore-check.d.ts.map +1 -0
- package/daemon/dist/routes/restore-check.js +200 -0
- package/daemon/dist/routes/restore-check.js.map +1 -0
- package/daemon/dist/routes/rigs.d.ts.map +1 -1
- package/daemon/dist/routes/rigs.js +60 -4
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts +3 -0
- package/daemon/dist/routes/seat.d.ts.map +1 -0
- package/daemon/dist/routes/seat.js +69 -0
- package/daemon/dist/routes/seat.js.map +1 -0
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +25 -4
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/snapshots.js +66 -29
- package/daemon/dist/routes/snapshots.js.map +1 -1
- package/daemon/dist/routes/stream.d.ts +9 -0
- package/daemon/dist/routes/stream.d.ts.map +1 -0
- package/daemon/dist/routes/stream.js +119 -0
- package/daemon/dist/routes/stream.js.map +1 -0
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +38 -0
- 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 +21 -0
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +24 -3
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/views.d.ts +13 -0
- package/daemon/dist/routes/views.d.ts.map +1 -0
- package/daemon/dist/routes/views.js +120 -0
- package/daemon/dist/routes/views.js.map +1 -0
- package/daemon/dist/routes/watchdog.d.ts +18 -0
- package/daemon/dist/routes/watchdog.d.ts.map +1 -0
- package/daemon/dist/routes/watchdog.js +148 -0
- package/daemon/dist/routes/watchdog.js.map +1 -0
- package/daemon/dist/routes/workflow.d.ts +20 -0
- package/daemon/dist/routes/workflow.d.ts.map +1 -0
- package/daemon/dist/routes/workflow.js +184 -0
- package/daemon/dist/routes/workflow.js.map +1 -0
- package/daemon/dist/server.d.ts +30 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +33 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +202 -8
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +12 -5
- package/daemon/docs/reference/agent-startup-guide.md +9 -9
- package/daemon/specs/agents/apps/vault-specialist/agent.yaml +1 -1
- package/daemon/specs/agents/design/product-designer/agent.yaml +1 -1
- package/daemon/specs/agents/development/implementer/agent.yaml +1 -1
- package/daemon/specs/agents/development/qa/agent.yaml +1 -1
- package/daemon/specs/agents/orchestration/orchestrator/agent.yaml +1 -1
- package/daemon/specs/agents/product-management/pm/agent.yaml +4 -0
- package/daemon/specs/agents/research/analyst/agent.yaml +1 -1
- package/daemon/specs/agents/research/synthesizer/agent.yaml +1 -1
- package/daemon/specs/agents/review/independent-reviewer/agent.yaml +1 -1
- package/daemon/specs/agents/shared/agent.yaml +17 -0
- package/daemon/specs/agents/shared/runtime/claude-mcp.fragment.json +12 -0
- package/daemon/specs/agents/shared/runtime/claude-settings.fragment.json +16 -0
- package/daemon/specs/agents/shared/runtime/codex-config.fragment.toml +5 -0
- package/daemon/specs/agents/shared/skills/claude-compact-in-place/SKILL.md +100 -0
- package/daemon/specs/agents/shared/skills/core/openrig-operator/SKILL.md +110 -0
- package/daemon/specs/agents/shared/skills/core/openrig-user/SKILL.md +44 -1
- package/daemon/specs/agents/shared/skills/mental-model-ha/SKILL.md +3 -0
- package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +3 -0
- package/daemon/specs/agents/shared/skills/rig-architect/SKILL.md +11 -1
- package/dist/bin-wrapper.js +0 -0
- package/dist/commands/capture.d.ts +7 -1
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +59 -1
- package/dist/commands/capture.js.map +1 -1
- package/dist/commands/compact-plan.d.ts +9 -0
- package/dist/commands/compact-plan.d.ts.map +1 -0
- package/dist/commands/compact-plan.js +354 -0
- package/dist/commands/compact-plan.js.map +1 -0
- package/dist/commands/context.d.ts +9 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/context.js +220 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/expand.d.ts.map +1 -1
- package/dist/commands/expand.js +15 -4
- package/dist/commands/expand.js.map +1 -1
- package/dist/commands/heartbeat.d.ts +99 -0
- package/dist/commands/heartbeat.d.ts.map +1 -0
- package/dist/commands/heartbeat.js +393 -0
- package/dist/commands/heartbeat.js.map +1 -0
- package/dist/commands/project.d.ts +14 -0
- package/dist/commands/project.d.ts.map +1 -0
- package/dist/commands/project.js +157 -0
- package/dist/commands/project.js.map +1 -0
- package/dist/commands/ps.d.ts +20 -3
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +455 -33
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +16 -0
- package/dist/commands/queue.d.ts.map +1 -0
- package/dist/commands/queue.js +401 -0
- package/dist/commands/queue.js.map +1 -0
- package/dist/commands/restore-check.d.ts +9 -0
- package/dist/commands/restore-check.d.ts.map +1 -0
- package/dist/commands/restore-check.js +234 -0
- package/dist/commands/restore-check.js.map +1 -0
- package/dist/commands/restore-packet.d.ts +9 -0
- package/dist/commands/restore-packet.d.ts.map +1 -0
- package/dist/commands/restore-packet.js +383 -0
- package/dist/commands/restore-packet.js.map +1 -0
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +44 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/seat.d.ts +5 -0
- package/dist/commands/seat.d.ts.map +1 -0
- package/dist/commands/seat.js +170 -0
- package/dist/commands/seat.js.map +1 -0
- package/dist/commands/send.d.ts +12 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +93 -5
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +3 -3
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/specs.d.ts.map +1 -1
- package/dist/commands/specs.js +99 -16
- package/dist/commands/specs.js.map +1 -1
- package/dist/commands/stream.d.ts +12 -0
- package/dist/commands/stream.d.ts.map +1 -0
- package/dist/commands/stream.js +111 -0
- package/dist/commands/stream.js.map +1 -0
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +63 -3
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/view.d.ts +12 -0
- package/dist/commands/view.d.ts.map +1 -0
- package/dist/commands/view.js +82 -0
- package/dist/commands/view.js.map +1 -0
- package/dist/commands/watchdog.d.ts +15 -0
- package/dist/commands/watchdog.d.ts.map +1 -0
- package/dist/commands/watchdog.js +120 -0
- package/dist/commands/watchdog.js.map +1 -0
- package/dist/commands/whoami.d.ts +8 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +60 -1
- package/dist/commands/whoami.js.map +1 -1
- package/dist/commands/workflow.d.ts +17 -0
- package/dist/commands/workflow.d.ts.map +1 -0
- package/dist/commands/workflow.js +138 -0
- package/dist/commands/workflow.js.map +1 -0
- package/dist/cross-host-cli-helpers.d.ts +12 -0
- package/dist/cross-host-cli-helpers.d.ts.map +1 -0
- package/dist/cross-host-cli-helpers.js +48 -0
- package/dist/cross-host-cli-helpers.js.map +1 -0
- package/dist/cross-host-executor.d.ts +84 -0
- package/dist/cross-host-executor.d.ts.map +1 -0
- package/dist/cross-host-executor.js +138 -0
- package/dist/cross-host-executor.js.map +1 -0
- package/dist/host-registry.d.ts +50 -0
- package/dist/host-registry.d.ts.map +1 -0
- package/dist/host-registry.js +116 -0
- package/dist/host-registry.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +22 -2
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/claude-transcript-parser.d.ts +12 -0
- package/dist/restore-packet/claude-transcript-parser.d.ts.map +1 -0
- package/dist/restore-packet/claude-transcript-parser.js +221 -0
- package/dist/restore-packet/claude-transcript-parser.js.map +1 -0
- package/dist/restore-packet/codex-jsonl-parser.d.ts +11 -0
- package/dist/restore-packet/codex-jsonl-parser.d.ts.map +1 -0
- package/dist/restore-packet/codex-jsonl-parser.js +159 -0
- package/dist/restore-packet/codex-jsonl-parser.js.map +1 -0
- package/dist/restore-packet/omitted-records.d.ts +60 -0
- package/dist/restore-packet/omitted-records.d.ts.map +1 -0
- package/dist/restore-packet/omitted-records.js +116 -0
- package/dist/restore-packet/omitted-records.js.map +1 -0
- package/dist/restore-packet/packet-writer.d.ts +59 -0
- package/dist/restore-packet/packet-writer.d.ts.map +1 -0
- package/dist/restore-packet/packet-writer.js +224 -0
- package/dist/restore-packet/packet-writer.js.map +1 -0
- package/dist/restore-packet/redaction.d.ts +30 -0
- package/dist/restore-packet/redaction.d.ts.map +1 -0
- package/dist/restore-packet/redaction.js +71 -0
- package/dist/restore-packet/redaction.js.map +1 -0
- package/dist/restore-packet/runtime-detect.d.ts +19 -0
- package/dist/restore-packet/runtime-detect.d.ts.map +1 -0
- package/dist/restore-packet/runtime-detect.js +81 -0
- package/dist/restore-packet/runtime-detect.js.map +1 -0
- package/dist/restore-packet/schema-validator.d.ts +13 -0
- package/dist/restore-packet/schema-validator.d.ts.map +1 -0
- package/dist/restore-packet/schema-validator.js +245 -0
- package/dist/restore-packet/schema-validator.js.map +1 -0
- package/dist/restore-packet/types.d.ts +76 -0
- package/dist/restore-packet/types.d.ts.map +1 -0
- package/dist/restore-packet/types.js +15 -0
- package/dist/restore-packet/types.js.map +1 -0
- package/dist/schemas/restore-summary.schema.json +98 -0
- package/package.json +10 -3
- package/scripts/check-abi.mjs +123 -0
- package/ui/dist/assets/{index-DlMH-REm.css → index-Dec25siz.css} +1 -1
- package/ui/dist/assets/{index-Ccd-jwRN.js → index-GNYaWmBj.js} +2 -2
- package/ui/dist/index.html +2 -2
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-compact-in-place
|
|
3
|
+
description: Use when a Claude Code seat in an OpenRig topology needs compact-in-place recovery or marshal verification after compaction.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Claude Compact In Place
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Use this skill when a Claude Code seat keeps the same OpenRig seat/session after `/compact` and must rebuild enough working context to continue safely. This is not succession, not seat handover, and not a generic memory note.
|
|
11
|
+
|
|
12
|
+
Keep two layers separate:
|
|
13
|
+
|
|
14
|
+
- **Restore mechanism:** seed from PreCompact output when present, Claude JSONL, touched-files inventory, active queue/session transcript or logs, root docs, and relevant source docs.
|
|
15
|
+
- **Acceptance mechanism:** a marshal or peer audits the rebuilt mental model and gives explicit marshal acceptance before the seat resumes real work.
|
|
16
|
+
|
|
17
|
+
Do not collapse these layers. A compacted Claude can sound coherent while important files were only injected, grepped, partially read, or not read.
|
|
18
|
+
|
|
19
|
+
## Runtime Boundary
|
|
20
|
+
|
|
21
|
+
This protocol is for Claude Code compact-in-place. It is not for Codex by default. Codex context management is different; do not intervene on Codex context percentage unless there are behavioral failure signals.
|
|
22
|
+
|
|
23
|
+
## Policy Boundary
|
|
24
|
+
|
|
25
|
+
The 400k token threshold is a policy target for considering preemptive Claude compaction on a 1M-context session. It is not an automatic action. Unattended compaction requires installed and dogfooded hooks, an audit path, and explicit policy or human authorization.
|
|
26
|
+
|
|
27
|
+
Compact one Claude seat at a time unless a human or policy explicitly confirms spare marshal capacity. Do not compact multiple Claude seats at once as a convenience move.
|
|
28
|
+
|
|
29
|
+
## Preflight
|
|
30
|
+
|
|
31
|
+
Before restoring or auditing, recover canonical identity:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
rig whoami --json
|
|
35
|
+
rig whoami --session <target-seat> --json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The marshal verifies the target identity, seat name, runtime, active queue state, and transcript path before accepting any restore proof.
|
|
39
|
+
|
|
40
|
+
## Required Evidence
|
|
41
|
+
|
|
42
|
+
The target Claude should rebuild from concrete evidence, not just the compaction summary:
|
|
43
|
+
|
|
44
|
+
- Claude JSONL transcript for the session.
|
|
45
|
+
- Generated restore packet or PreCompact output, if present.
|
|
46
|
+
- Touched-files inventory and recent git state.
|
|
47
|
+
- Active queue file, queue packet body, session transcript, or session logs.
|
|
48
|
+
- Rig bootstrap files such as `AGENTS.md`, `CLAUDE.md`, `CULTURE.md`, role guidance, and startup skills.
|
|
49
|
+
- Relevant source docs, as-built docs, codemaps, and workstream trackers.
|
|
50
|
+
|
|
51
|
+
If a required surface is absent, record it as `NOT-PRESENT`. If it exists but was skipped, record it as `NOT-READ`.
|
|
52
|
+
|
|
53
|
+
## Required Proof
|
|
54
|
+
|
|
55
|
+
The target must return an asked-vs-read-depth table before claiming readiness:
|
|
56
|
+
|
|
57
|
+
| Surface | Source Of Ask | Read Depth | Evidence |
|
|
58
|
+
|---|---|---|---|
|
|
59
|
+
| `rig whoami --json` | marshal | FULL | canonical seat verified |
|
|
60
|
+
| `<path>` | hook/marshal/touched-files | FULL / TARGETED / GREP / INJECTED / NOT-READ / NOT-PRESENT | lines, chunks, command, or reason |
|
|
61
|
+
|
|
62
|
+
Allowed depth labels:
|
|
63
|
+
|
|
64
|
+
- `FULL`: the whole surface was read after compaction.
|
|
65
|
+
- `TARGETED`: selected ranges, head/tail, or named sections were read.
|
|
66
|
+
- `GREP`: search excerpts were read.
|
|
67
|
+
- `INJECTED`: content was present from hook, system, summary, or prior context, but not freshly read from disk.
|
|
68
|
+
- `NOT-READ`: the surface exists but was not read.
|
|
69
|
+
- `NOT-PRESENT`: the requested surface does not exist.
|
|
70
|
+
|
|
71
|
+
The proof must also include canonical identity, JSONL or restore packet path, active queue items, selected touched files, skipped files with rationale, blockers, and exact next action.
|
|
72
|
+
|
|
73
|
+
## Acceptance Rule
|
|
74
|
+
|
|
75
|
+
The target may say `awaiting marshal acceptance` or `blocked`. It must not claim `RESTORED`, resume implementation, review, release, architecture, or orchestration work until marshal acceptance is explicit.
|
|
76
|
+
|
|
77
|
+
Reject any proof that hides read depth, treats injection as a fresh read, omits queue reconciliation, or says "all docs read" without evidence.
|
|
78
|
+
|
|
79
|
+
Accept only when:
|
|
80
|
+
|
|
81
|
+
- The seat identity matches the target.
|
|
82
|
+
- JSONL or restore artifacts were used, or their absence is explicitly explained.
|
|
83
|
+
- Important recent-work files are either `FULL` or explicitly waived.
|
|
84
|
+
- `INJECTED`, `TARGETED`, `GREP`, `NOT-READ`, and `NOT-PRESENT` surfaces are named honestly.
|
|
85
|
+
- Active queue/session state is reconciled from durable evidence.
|
|
86
|
+
- The target did not resume real work before marshal acceptance.
|
|
87
|
+
|
|
88
|
+
## Marshal Follow-Up
|
|
89
|
+
|
|
90
|
+
Ask these before accepting a clean-sounding proof:
|
|
91
|
+
|
|
92
|
+
1. Which files were explicitly assigned, and which did you read in full after compaction?
|
|
93
|
+
2. Which files were only injected by hook, summary, system context, or prior context?
|
|
94
|
+
3. Which files were partial reads? Give line ranges or chunks.
|
|
95
|
+
4. Which touched-files entries were important, and which were skipped?
|
|
96
|
+
5. Did any read fail due to size? If yes, did you retry by chunk until complete?
|
|
97
|
+
6. Which queue items changed between checkpoint and now?
|
|
98
|
+
7. What would be unsafe for you to do before additional reads?
|
|
99
|
+
|
|
100
|
+
If a mandatory surface is partial or injected only, ask for a corrected audit before acceptance.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openrig-operator
|
|
3
|
+
description: Use when operating or debugging host-side OpenRig runtime issues including daemon reachability, partial identity, unified-exec warnings, stale helper-process cleanup, or when distinguishing harness/process issues from live topology health.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# OpenRig Operator
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
This skill covers host/runtime/operator triage around OpenRig itself.
|
|
11
|
+
Use it when the problem may be the daemon, the shell/runtime surface, or stale helper processes rather than the product workflow you are trying to run.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
Use this skill when you see:
|
|
16
|
+
- `rig whoami --json` returning partial identity
|
|
17
|
+
- `rig ps --nodes --json` failing while some other `rig` commands still work
|
|
18
|
+
- `Sent to ...` plus `Verified: no`
|
|
19
|
+
- repeated unified-exec-process warnings
|
|
20
|
+
- suspicion that stale helper processes are accumulating
|
|
21
|
+
|
|
22
|
+
Do not use this skill for normal product workflow routing, queue handling, or ordinary peer communication. Use `openrig-user` for that.
|
|
23
|
+
|
|
24
|
+
## First Checks
|
|
25
|
+
|
|
26
|
+
Start with the minimum truthful operator read:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
rig whoami --json
|
|
30
|
+
rig daemon status
|
|
31
|
+
rig ps --nodes --json
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Interpret them together, not in isolation:
|
|
35
|
+
- partial `whoami` can mean identity is inferable while daemon-backed surfaces are degraded
|
|
36
|
+
- `daemon status` tells you whether the host daemon is up, not whether every seat can reach it cleanly
|
|
37
|
+
- `ps --nodes --json` is the best machine-readable topology check when it works
|
|
38
|
+
|
|
39
|
+
## Verification Drift Vs Send Failure
|
|
40
|
+
|
|
41
|
+
For `rig send`:
|
|
42
|
+
- `Sent to ...` + `Verified: yes` = strong positive delivery evidence
|
|
43
|
+
- `Sent to ...` + `Verified: no` = ambiguous delivery, not automatic failure
|
|
44
|
+
- no `Sent to ...` line or a hard error = send failure
|
|
45
|
+
|
|
46
|
+
When verification is ambiguous, check:
|
|
47
|
+
- direct reply
|
|
48
|
+
- `rig capture <session>`
|
|
49
|
+
- transcript evidence
|
|
50
|
+
- queue/outbox state if the message asked for a durable handoff
|
|
51
|
+
|
|
52
|
+
Do not blindly retry until you have checked one of those.
|
|
53
|
+
|
|
54
|
+
## Unified Exec Warning
|
|
55
|
+
|
|
56
|
+
If you see:
|
|
57
|
+
|
|
58
|
+
- `Warning: The maximum number of unified exec processes you can keep open is 60 ...`
|
|
59
|
+
|
|
60
|
+
treat it first as a host/tooling-layer warning, not as automatic proof that the OpenRig topology is unhealthy.
|
|
61
|
+
|
|
62
|
+
This warning can coexist with a healthy live topology.
|
|
63
|
+
|
|
64
|
+
## Safe Process Triage
|
|
65
|
+
|
|
66
|
+
Inspect the process surface first:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
ps -axo pid,ppid,command | rg 'tmux send-keys|rig queue create|tmux attach|codex|claude'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Think in layers:
|
|
73
|
+
- host/tooling layer: stale one-shot wrappers, session bookkeeping, helper shells
|
|
74
|
+
- topology layer: live `tmux attach` seats, live `codex` / `claude` runtimes, daemon health
|
|
75
|
+
|
|
76
|
+
Do not diagnose topology failure from tooling-layer warnings alone.
|
|
77
|
+
|
|
78
|
+
## Safe Cleanup Boundary
|
|
79
|
+
|
|
80
|
+
Usually safe to reap when clearly orphaned / one-shot:
|
|
81
|
+
- `tmux send-keys ...`
|
|
82
|
+
- short-lived shell wrappers created only to enqueue or send one message
|
|
83
|
+
|
|
84
|
+
Do not mass-kill:
|
|
85
|
+
- `tmux attach ...`
|
|
86
|
+
- `codex ...`
|
|
87
|
+
- `claude ...`
|
|
88
|
+
- other long-lived daemon/runtime processes
|
|
89
|
+
|
|
90
|
+
The point is to remove garbage, not workers.
|
|
91
|
+
|
|
92
|
+
## Common Mistakes
|
|
93
|
+
|
|
94
|
+
- treating `Verified: no` as if it proves the message did not land
|
|
95
|
+
- treating the unified-exec warning as if it proves the rig is overloaded
|
|
96
|
+
- killing live seats when only stale helper wrappers needed cleanup
|
|
97
|
+
- concluding "daemon down" from one seat's failure without checking host-level daemon status
|
|
98
|
+
|
|
99
|
+
## Practical Rule
|
|
100
|
+
|
|
101
|
+
Clean the smallest safe surface that matches the evidence.
|
|
102
|
+
|
|
103
|
+
If the warning or failure remains after stale-wrapper cleanup, re-check:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
rig daemon status
|
|
107
|
+
rig ps --nodes --json
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
If those remain healthy, the residual issue may still be in the host/tool/session layer rather than in OpenRig topology state.
|
|
@@ -123,6 +123,17 @@ rig send <session> "message" --json
|
|
|
123
123
|
|
|
124
124
|
Use `--verify` when you want delivery evidence. Use `--force` only when you intentionally want to bypass activity-risk checks.
|
|
125
125
|
|
|
126
|
+
Observed operator nuance for `--verify`:
|
|
127
|
+
- `Sent to ...` + `Verified: yes` = strong positive delivery evidence.
|
|
128
|
+
- `Sent to ...` + `Verified: no` = ambiguous delivery, not automatic failure. The message may still land; treat this as verification drift until disproven.
|
|
129
|
+
- no `Sent to ...` line or a hard error = send failure.
|
|
130
|
+
|
|
131
|
+
When you get `Verified: no`, do not immediately retry blindly. First check one of:
|
|
132
|
+
- a direct reply from the target
|
|
133
|
+
- `rig capture <session>`
|
|
134
|
+
- transcript evidence
|
|
135
|
+
- queue/outbox state if the message asked for a durable handoff
|
|
136
|
+
|
|
126
137
|
### Capture terminal output
|
|
127
138
|
|
|
128
139
|
```bash
|
|
@@ -217,6 +228,7 @@ Current behavior notes:
|
|
|
217
228
|
- `rig up --cwd` is shipped. `rig up --cwd <path>` sends a per-run cwd override for all members in that launch.
|
|
218
229
|
- `local:` `agent_ref` values resolve relative to the rig spec directory, not your shell cwd.
|
|
219
230
|
- if you copy a built-in spec elsewhere, keep its `agents/` tree beside the YAML or rewrite those refs to `path:/absolute/path`
|
|
231
|
+
- `rig specs add <directory>` installs a full spec tree when the directory contains `rig.yaml` or `agent.yaml`.
|
|
220
232
|
|
|
221
233
|
Legacy/spec-specific surfaces still ship too:
|
|
222
234
|
|
|
@@ -465,7 +477,7 @@ rig agent validate <path> [--json]
|
|
|
465
477
|
rig specs ls [--kind <kind>] [--json]
|
|
466
478
|
rig specs show <name-or-id> [--json]
|
|
467
479
|
rig specs preview <name-or-id> [--json]
|
|
468
|
-
rig specs add <
|
|
480
|
+
rig specs add <yaml-or-directory> [--json]
|
|
469
481
|
rig specs sync [--json]
|
|
470
482
|
rig specs remove <name-or-id> [--json]
|
|
471
483
|
rig specs rename <name-or-id> <new-name> [--json]
|
|
@@ -496,6 +508,37 @@ Current shipped MCP tools:
|
|
|
496
508
|
- `rig_chatroom_send`
|
|
497
509
|
- `rig_chatroom_watch`
|
|
498
510
|
|
|
511
|
+
## Troubleshooting and Weird States
|
|
512
|
+
|
|
513
|
+
When the CLI behaves strangely, use the smallest truthful check first:
|
|
514
|
+
|
|
515
|
+
```bash
|
|
516
|
+
rig whoami --json
|
|
517
|
+
rig daemon status
|
|
518
|
+
rig ps --nodes --json
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
Specific operator rules:
|
|
522
|
+
- `Sent to ...` + `Verified: no` is ambiguous delivery, not automatic failure. Check reply, `rig capture`, transcript evidence, or queue/outbox state before retrying.
|
|
523
|
+
- partial `rig whoami --json` can happen when identity is still inferable but the daemon-backed path is degraded.
|
|
524
|
+
- the unified-exec-process warning is a host/tooling-layer signal, not automatic proof that the OpenRig topology is unhealthy.
|
|
525
|
+
|
|
526
|
+
If you hit the unified-exec warning, inspect for stale one-shot helpers before touching live seats:
|
|
527
|
+
|
|
528
|
+
```bash
|
|
529
|
+
ps -axo pid,ppid,command | rg 'tmux send-keys|rig queue create|tmux attach|codex|claude'
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
Safe cleanup target:
|
|
533
|
+
- orphaned one-shot wrappers like `tmux send-keys ...`
|
|
534
|
+
|
|
535
|
+
Do not mass-kill:
|
|
536
|
+
- `tmux attach ...`
|
|
537
|
+
- `codex ...`
|
|
538
|
+
- `claude ...`
|
|
539
|
+
|
|
540
|
+
For deeper host/runtime triage, use the companion `openrig-operator` skill if it is available in your seat.
|
|
541
|
+
|
|
499
542
|
## JSON and Error Posture
|
|
500
543
|
|
|
501
544
|
Design assumptions that hold in the shipped CLI:
|
|
@@ -397,6 +397,8 @@ A peer has already compacted and is active but confused. The durable artifacts s
|
|
|
397
397
|
|
|
398
398
|
**Behavior:** Follow the Phased Restore Protocol below. Point to files, don't send contents via tmux. Run the quiz. Verify the restore.
|
|
399
399
|
|
|
400
|
+
**Claude compact-in-place:** For an OpenRig Claude Code seat that keeps the same session after `/compact`, use `claude-compact-in-place` for the seat-specific read-depth audit and marshal acceptance rule. This skill remains the general durable-memory, session-log, and HA restore framework.
|
|
401
|
+
|
|
400
402
|
### Mode 4: Quick Restore (unexpected compaction, no pre-save)
|
|
401
403
|
|
|
402
404
|
Compaction happened without preparation. No restore file exists or it's stale.
|
|
@@ -783,6 +785,7 @@ Claude and Codex handle compaction completely differently. The orchestrator MUST
|
|
|
783
785
|
- When Claude compacts, it's all-or-nothing — the full conversation summary replaces context.
|
|
784
786
|
- This is the catastrophe that mental-model-ha exists to manage.
|
|
785
787
|
- The full pre-compaction save, peer restore, and quiz protocol applies.
|
|
788
|
+
- For compact-in-place in an OpenRig seat, use `claude-compact-in-place` before accepting a `RESTORED` claim.
|
|
786
789
|
- The orchestrator actively helps manage Claude's context lifecycle.
|
|
787
790
|
|
|
788
791
|
### Codex: Automatic Partial Compaction
|
|
@@ -183,6 +183,7 @@ For destructive operations (git push, rm, daemon stop, npm publish): DO NOT auto
|
|
|
183
183
|
- After being told to slow down, over-corrects to "wait for permission for everything"
|
|
184
184
|
- Compaction is catastrophic — full context loss, needs preparation
|
|
185
185
|
- After compaction: must re-read ALL skills from disk (skill names survive in system reminders but content is truncated)
|
|
186
|
+
- For Claude compact-in-place, use `claude-compact-in-place` and require marshal acceptance before treating a `RESTORED` claim as real
|
|
186
187
|
|
|
187
188
|
### Codex agents (QA, peer, R2)
|
|
188
189
|
- Self-manages its own context window — do NOT intervene based on context percentage
|
|
@@ -221,6 +222,8 @@ Before any destructive operation: "If this goes wrong, can I undo it?" If no, co
|
|
|
221
222
|
4. Read your restore file and session log if available
|
|
222
223
|
5. Ask your peer for a quiz to verify your mental model
|
|
223
224
|
|
|
225
|
+
For Claude Code seats in OpenRig, marshals/orchestrators should use `claude-compact-in-place` for the asked-vs-read-depth audit before accepting recovery. Preserve the Codex boundary: do not intervene on Codex context percentage or apply Claude compact-in-place by default.
|
|
226
|
+
|
|
224
227
|
## What you do not do
|
|
225
228
|
|
|
226
229
|
- write production code just because it would be faster
|
|
@@ -33,11 +33,21 @@ Load these before starting any design work. The quality of your output depends o
|
|
|
33
33
|
- `implementation-pair` — the smallest effective development unit (2 agents)
|
|
34
34
|
- `secrets-manager` — a managed-app rig with services integration and a specialist agent
|
|
35
35
|
|
|
36
|
+
**Read if present on this host:**
|
|
37
|
+
|
|
38
|
+
4. **Host-level doctrine** at `~/code/substrate/shared-docs/HOST-TOPOLOGY.md` (or wherever substrate lives on this host). If this file exists, it supersedes the baseline process below for complex or high-stakes rigs. Specifically:
|
|
39
|
+
- §3 defines the canonical rig classes (kernel, project, ephemeral, infra-build, managed-app). Classify before designing.
|
|
40
|
+
- §4 defines context-sharing patterns (pods as context domains, pair pattern, HA via mental-model-ha skill + substrate session logs, terminal nodes as common-room, chatroom/substrate/transcripts/Corpus).
|
|
41
|
+
- **§7 is the canonical 12-step rig-spec authoring SOP for high-stakes rigs — use it instead of the baseline "Design Process" below when the rig is ≥4 members, uses HA, is a managed-app, or will be shared/copied.** The baseline below still applies to small/focused rigs.
|
|
42
|
+
- §10 contains the host's bootstrap sequence so you know where your new rig fits.
|
|
43
|
+
- §12 has the naming canon and vocabulary mapping to shipped terms.
|
|
44
|
+
5. **Building-agent-software skill** at `~/code/substrate/shared-docs/skills/building-agent-software/` if present. Design principles for agent-facing tools and surfaces. Relevant when your rig ships a new CLI, service, or managed app.
|
|
45
|
+
|
|
36
46
|
**Load as needed:**
|
|
37
47
|
- Domain-specific skills when designing specialist agents — find shipped skills inside the OpenRig installation under the `specs/agents/` tree
|
|
38
48
|
- If the design session is long and you're running inside a managed rig, use `rig whoami --json` to recover your identity after compaction
|
|
39
49
|
|
|
40
|
-
Do not skip the required reading. A rig architect who doesn't know the spec format will produce specs that don't validate. An architect who doesn't know the startup layering model will produce agents that boot without knowing their role.
|
|
50
|
+
Do not skip the required reading. A rig architect who doesn't know the spec format will produce specs that don't validate. An architect who doesn't know the startup layering model will produce agents that boot without knowing their role. An architect who doesn't check for host-level doctrine will reinvent conventions the host has already established.
|
|
41
51
|
|
|
42
52
|
## The Design Process
|
|
43
53
|
|
package/dist/bin-wrapper.js
CHANGED
|
File without changes
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import type { StatusDeps } from "./status.js";
|
|
3
|
-
|
|
3
|
+
import { loadHostRegistry } from "../host-registry.js";
|
|
4
|
+
import { runCrossHostCommand, type RunCrossHostCommandOpts } from "../cross-host-executor.js";
|
|
5
|
+
export interface CaptureDeps extends StatusDeps {
|
|
6
|
+
hostRegistryLoader?: () => ReturnType<typeof loadHostRegistry>;
|
|
7
|
+
crossHostRun?: (host: Parameters<typeof runCrossHostCommand>[0], argv: readonly string[], opts?: RunCrossHostCommandOpts) => ReturnType<typeof runCrossHostCommand>;
|
|
8
|
+
}
|
|
9
|
+
export declare function captureCommand(depsOverride?: CaptureDeps): Command;
|
|
4
10
|
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/commands/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/commands/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAe,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAG9F,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,kBAAkB,CAAC,EAAE,MAAM,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,CACb,IAAI,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC/C,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,CAAC,EAAE,uBAAuB,KAC3B,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;CAC7C;AAED,wBAAgB,cAAc,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CA0FlE"}
|
package/dist/commands/capture.js
CHANGED
|
@@ -2,6 +2,9 @@ import { Command } from "commander";
|
|
|
2
2
|
import { DaemonClient } from "../client.js";
|
|
3
3
|
import { getDaemonStatus, getDaemonUrl } from "../daemon-lifecycle.js";
|
|
4
4
|
import { realDeps } from "./daemon.js";
|
|
5
|
+
import { loadHostRegistry, resolveHost } from "../host-registry.js";
|
|
6
|
+
import { runCrossHostCommand } from "../cross-host-executor.js";
|
|
7
|
+
import { emitCrossHostError, emitCrossHostFailure } from "../cross-host-cli-helpers.js";
|
|
5
8
|
export function captureCommand(depsOverride) {
|
|
6
9
|
const cmd = new Command("capture").description("Capture terminal output from agent sessions");
|
|
7
10
|
const getDeps = () => depsOverride ?? {
|
|
@@ -13,6 +16,7 @@ export function captureCommand(depsOverride) {
|
|
|
13
16
|
.option("--rig <name>", "Capture all sessions in a rig")
|
|
14
17
|
.option("--pod <name>", "Capture all sessions in a pod")
|
|
15
18
|
.option("--lines <n>", "Number of lines to capture (default: 20)", "20")
|
|
19
|
+
.option("--host <id>", "Run on a remote host declared in ~/.openrig/hosts.yaml (CLI-side ssh shell-out)")
|
|
16
20
|
.option("--json", "JSON output for agents")
|
|
17
21
|
.addHelpText("after", `
|
|
18
22
|
Examples:
|
|
@@ -21,12 +25,20 @@ Examples:
|
|
|
21
25
|
rig capture --rig my-rig
|
|
22
26
|
rig capture --pod dev --rig my-rig
|
|
23
27
|
rig capture --rig my-rig --json
|
|
28
|
+
rig capture --host vm-claude-test dev-impl@my-rig --lines 50
|
|
24
29
|
|
|
25
30
|
Supported notes:
|
|
26
31
|
- Multi-target capture reports unsupported external_cli nodes as explicit per-target failures.
|
|
27
|
-
- For outbound-only external_cli nodes, use rig whoami/rig ps instead of rig capture
|
|
32
|
+
- For outbound-only external_cli nodes, use rig whoami/rig ps instead of rig capture.
|
|
33
|
+
- --host runs the same command on a remote host declared in ~/.openrig/hosts.yaml
|
|
34
|
+
via single-hop ssh. The remote rig is authoritative on what it can capture.`)
|
|
28
35
|
.action(async (session, opts) => {
|
|
29
36
|
const deps = getDeps();
|
|
37
|
+
// --- Cross-host short-circuit (CLI-side ssh shell-out; daemon untouched) ---
|
|
38
|
+
if (opts.host) {
|
|
39
|
+
await runCrossHostCapture(opts.host, session, opts, deps);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
30
42
|
const status = await getDaemonStatus(deps.lifecycleDeps);
|
|
31
43
|
if (status.state !== "running" || status.healthy === false) {
|
|
32
44
|
console.error("Daemon not running. Start it with: rig daemon start");
|
|
@@ -77,4 +89,50 @@ Supported notes:
|
|
|
77
89
|
});
|
|
78
90
|
return cmd;
|
|
79
91
|
}
|
|
92
|
+
async function runCrossHostCapture(hostId, session, opts, deps) {
|
|
93
|
+
const loader = deps.hostRegistryLoader ?? loadHostRegistry;
|
|
94
|
+
const runner = deps.crossHostRun ?? runCrossHostCommand;
|
|
95
|
+
const registry = loader();
|
|
96
|
+
if (!registry.ok) {
|
|
97
|
+
emitCrossHostError(hostId, "registry-load-failed", registry.error, opts.json);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const resolved = resolveHost(registry.registry, hostId);
|
|
101
|
+
if (!resolved.ok) {
|
|
102
|
+
emitCrossHostError(hostId, "unknown-host", resolved.error, opts.json);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const host = resolved.host;
|
|
106
|
+
// Reconstruct argv. Order: positional first, then flags.
|
|
107
|
+
const argv = ["rig", "capture"];
|
|
108
|
+
if (session)
|
|
109
|
+
argv.push(session);
|
|
110
|
+
if (opts.rig)
|
|
111
|
+
argv.push("--rig", opts.rig);
|
|
112
|
+
if (opts.pod)
|
|
113
|
+
argv.push("--pod", opts.pod);
|
|
114
|
+
if (opts.lines !== undefined)
|
|
115
|
+
argv.push("--lines", opts.lines);
|
|
116
|
+
if (opts.json)
|
|
117
|
+
argv.push("--json");
|
|
118
|
+
const result = await runner(host, argv);
|
|
119
|
+
if (opts.json) {
|
|
120
|
+
console.log(JSON.stringify({
|
|
121
|
+
cross_host: { host: host.id, target: host.target },
|
|
122
|
+
result,
|
|
123
|
+
}));
|
|
124
|
+
if (!result.ok)
|
|
125
|
+
process.exitCode = 1;
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
console.log(`[via host=${host.id} (${host.target})]`);
|
|
129
|
+
if (result.ok) {
|
|
130
|
+
if (result.stdout)
|
|
131
|
+
process.stdout.write(result.stdout);
|
|
132
|
+
if (result.stderr)
|
|
133
|
+
process.stderr.write(result.stderr);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
emitCrossHostFailure(host.id, host.target, result, opts.json);
|
|
137
|
+
}
|
|
80
138
|
//# sourceMappingURL=capture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../src/commands/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../src/commands/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,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AAI,CAAC,EAAE,KAAK,IAAI,CAAC,MAAM,IAAI,CAAC,CAAC;IACtD,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;QACd,IAAI,MAAM,CAAC,MAAM;YAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,IAAI,MAAM,CAAC,MAAM;YAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO;IACT,CAAC;IACD,oBAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { DaemonClient } from "../client.js";
|
|
3
|
+
import { type LifecycleDeps } from "../daemon-lifecycle.js";
|
|
4
|
+
export interface CompactPlanDeps {
|
|
5
|
+
lifecycleDeps: LifecycleDeps;
|
|
6
|
+
clientFactory: (url: string) => DaemonClient;
|
|
7
|
+
}
|
|
8
|
+
export declare function compactPlanCommand(depsOverride?: CompactPlanDeps): Command;
|
|
9
|
+
//# sourceMappingURL=compact-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-plan.d.ts","sourceRoot":"","sources":["../../src/commands/compact-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAiC,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG3F,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,YAAY,CAAC;CAC9C;AAuXD,wBAAgB,kBAAkB,CAAC,YAAY,CAAC,EAAE,eAAe,GAAG,OAAO,CA0F1E"}
|