@openrig/cli 0.5.8 → 0.5.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/daemon/assets/claude-statusline-context.cjs +1 -0
- package/daemon/assets/plugins/openrig-core/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md +92 -0
- package/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.md +79 -0
- package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +2 -2
- package/daemon/assets/plugins/openrig-core/skills/openrig-skills/SKILL.md +4 -2
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +12 -16
- package/daemon/assets/plugins/openrig-core/skills/software-for-agents/SKILL.md +11 -179
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +63 -19
- package/daemon/context-packs/skills/agent-operated-software/SKILL.md +92 -0
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +10 -0
- package/daemon/context-packs/skills/agent-operated-workflows/SKILL.md +79 -0
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +10 -0
- 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/SKILL.md +4 -2
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +81 -0
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +3 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/scripts/migrate-telemetry-state-0.5.9.mjs +1419 -0
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +2 -2
- 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/SKILL.md +12 -16
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/SKILL.md +11 -179
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +3 -3
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/your-world.md +1 -1
- package/daemon/context-packs/world-public/build-your-world.md +19 -0
- package/daemon/context-packs/world-public/claims.yaml +5 -1
- package/daemon/context-packs/world-public/manifest.yaml +40 -1
- package/daemon/context-packs/world-public/verify-world.sh +25 -9
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +4 -2
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +3 -1
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/046_seat_identity_verdicts.d.ts +8 -5
- package/daemon/dist/db/migrations/046_seat_identity_verdicts.d.ts.map +1 -1
- package/daemon/dist/db/migrations/046_seat_identity_verdicts.js +8 -5
- package/daemon/dist/db/migrations/046_seat_identity_verdicts.js.map +1 -1
- package/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.d.ts +8 -0
- package/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.d.ts.map +1 -0
- package/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.js +50 -0
- package/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +6 -1
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +47 -0
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +8 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-context-packs-router.d.ts +3 -3
- package/daemon/dist/domain/bundle-context-packs-router.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-skills-router.d.ts +3 -0
- package/daemon/dist/domain/bundle-skills-router.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-skills-router.js +5 -1
- package/daemon/dist/domain/bundle-skills-router.js.map +1 -1
- package/daemon/dist/domain/claim-service.d.ts +2 -0
- package/daemon/dist/domain/claim-service.d.ts.map +1 -1
- package/daemon/dist/domain/claim-service.js +33 -12
- package/daemon/dist/domain/claim-service.js.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-library-service.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-library-service.js +9 -1
- package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-types.d.ts +25 -0
- package/daemon/dist/domain/context-packs/context-pack-types.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/context-pack-types.js +3 -1
- package/daemon/dist/domain/context-packs/context-pack-types.js.map +1 -1
- package/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/manifest-parser.js +143 -3
- package/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
- package/daemon/dist/domain/context-packs/profile-composer.d.ts +22 -1
- package/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
- package/daemon/dist/domain/context-packs/profile-composer.js +105 -40
- package/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +4 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +8 -4
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/crash-cart-conductor.d.ts +13 -0
- package/daemon/dist/domain/crash-cart-conductor.d.ts.map +1 -1
- package/daemon/dist/domain/crash-cart-conductor.js +3 -1
- package/daemon/dist/domain/crash-cart-conductor.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +145 -16
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/instance-initialization.d.ts +25 -0
- package/daemon/dist/domain/instance-initialization.d.ts.map +1 -0
- package/daemon/dist/domain/instance-initialization.js +81 -0
- package/daemon/dist/domain/instance-initialization.js.map +1 -0
- package/daemon/dist/domain/lifecycle-manifest.d.ts +19 -0
- package/daemon/dist/domain/lifecycle-manifest.d.ts.map +1 -0
- package/daemon/dist/domain/lifecycle-manifest.js +73 -0
- package/daemon/dist/domain/lifecycle-manifest.js.map +1 -0
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts +36 -36
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +104 -135
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +10 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -0
- package/daemon/dist/domain/native-process-lineage.js +86 -0
- package/daemon/dist/domain/native-process-lineage.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.js +12 -1
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +2 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +3 -1
- 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 +21 -8
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/pane-binding-observation.d.ts +22 -0
- package/daemon/dist/domain/pane-binding-observation.d.ts.map +1 -0
- package/daemon/dist/domain/pane-binding-observation.js +54 -0
- package/daemon/dist/domain/pane-binding-observation.js.map +1 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.js +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.js +16 -2
- package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +12 -0
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +60 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts +35 -0
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -0
- package/daemon/dist/domain/project-lifecycle-compiler.js +190 -0
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -0
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.js +28 -18
- package/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +5 -1
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +6 -0
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +3 -4
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +5 -8
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +28 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +124 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts +34 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.js +59 -0
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts +57 -24
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +152 -26
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +14 -0
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -0
- package/daemon/dist/domain/restore-topology.js +27 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -0
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +9 -0
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +19 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +65 -1
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +8 -0
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +4 -0
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +23 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +97 -46
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +15 -6
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +525 -29
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +8 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +19 -0
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/skill-catalog.d.ts +81 -0
- package/daemon/dist/domain/skill-catalog.d.ts.map +1 -0
- package/daemon/dist/domain/skill-catalog.js +827 -0
- package/daemon/dist/domain/skill-catalog.js.map +1 -0
- package/daemon/dist/domain/skill-discovery.d.ts +3 -0
- package/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/skill-discovery.js +1 -1
- package/daemon/dist/domain/skill-discovery.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +38 -2
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/snapshot-repository.d.ts +15 -1
- package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-repository.js +103 -1
- package/daemon/dist/domain/snapshot-repository.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +2 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +12 -0
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/system-world.d.ts +45 -0
- package/daemon/dist/domain/system-world.d.ts.map +1 -0
- package/daemon/dist/domain/system-world.js +123 -0
- package/daemon/dist/domain/system-world.js.map +1 -0
- package/daemon/dist/domain/telemetry-state-paths.d.ts +7 -0
- package/daemon/dist/domain/telemetry-state-paths.d.ts.map +1 -0
- package/daemon/dist/domain/telemetry-state-paths.js +20 -0
- package/daemon/dist/domain/telemetry-state-paths.js.map +1 -0
- package/daemon/dist/domain/types.d.ts +103 -4
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +8 -3
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +65 -29
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +7 -23
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +44 -226
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-boot-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-boot-sweep.js +20 -6
- package/daemon/dist/domain/workflow-boot-sweep.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +33 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +127 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-keepalive-arming.d.ts +7 -5
- package/daemon/dist/domain/workflow-keepalive-arming.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-keepalive-arming.js +27 -16
- package/daemon/dist/domain/workflow-keepalive-arming.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +6 -2
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +271 -2
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +62 -2
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +334 -18
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +9 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +85 -0
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +38 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-validator.js +20 -3
- package/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +38 -9
- package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js +93 -347
- package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +13 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/instance-initialization-surface.d.ts +3 -0
- package/daemon/dist/instance-initialization-surface.d.ts.map +1 -0
- package/daemon/dist/instance-initialization-surface.js +3 -0
- package/daemon/dist/instance-initialization-surface.js.map +1 -0
- package/daemon/dist/project-lifecycle-surface.d.ts +3 -0
- package/daemon/dist/project-lifecycle-surface.d.ts.map +1 -0
- package/daemon/dist/project-lifecycle-surface.js +3 -0
- package/daemon/dist/project-lifecycle-surface.js.map +1 -0
- package/daemon/dist/routes/bundles.js +10 -9
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/config.d.ts.map +1 -1
- package/daemon/dist/routes/config.js +27 -49
- package/daemon/dist/routes/config.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +114 -16
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/crash-cart.js +3 -0
- package/daemon/dist/routes/crash-cart.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +20 -0
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigs.js +12 -1
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/rigspec.js +9 -2
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/seat.js +21 -1
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +16 -6
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/snapshots.d.ts.map +1 -1
- package/daemon/dist/routes/snapshots.js +41 -3
- package/daemon/dist/routes/snapshots.js.map +1 -1
- package/daemon/dist/routes/up.js +12 -1
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +7 -6
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +104 -39
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +2 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +1 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/skill-loadout-surface.d.ts +3 -0
- package/daemon/dist/skill-loadout-surface.d.ts.map +1 -0
- package/daemon/dist/skill-loadout-surface.js +2 -0
- package/daemon/dist/skill-loadout-surface.js.map +1 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +72 -65
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/system-world-surface.d.ts +2 -0
- package/daemon/dist/system-world-surface.d.ts.map +1 -0
- package/daemon/dist/system-world-surface.js +2 -0
- package/daemon/dist/system-world-surface.js.map +1 -0
- package/daemon/docs/reference/getting-started.md +2 -1
- package/daemon/docs/reference/instance-layout.md +106 -0
- package/daemon/docs/reference/mission-install.md +12 -2
- package/daemon/docs/reference/project-workspace.md +66 -40
- package/daemon/specs/agents/shared/skills/core/openrig-skills/SKILL.md +4 -2
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +81 -0
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/scripts/migrate-telemetry-state-0.5.9.mjs +1419 -0
- package/dist/build-info.js +3 -3
- package/dist/commands/config-init-workspace.d.ts +4 -23
- package/dist/commands/config-init-workspace.d.ts.map +1 -1
- package/dist/commands/config-init-workspace.js +14 -576
- package/dist/commands/config-init-workspace.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +6 -4
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +114 -8
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +16 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +51 -4
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +43 -3
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +169 -79
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +30 -0
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +61 -0
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/snapshot.d.ts.map +1 -1
- package/dist/commands/snapshot.js +4 -2
- package/dist/commands/snapshot.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +3 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +3 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +3 -0
- package/dist/commands/walk.js.map +1 -1
- package/dist/commands/workflow-render.d.ts +31 -0
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +84 -6
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +96 -8
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +9 -4
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +67 -30
- package/dist/config-store.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +8 -15
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +24 -31
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +16 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -0
- package/dist/lib/scope/mission-composition.js +110 -0
- package/dist/lib/scope/mission-composition.js.map +1 -0
- package/dist/lib/scope/scope-fs.d.ts +5 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +34 -4
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/work-install.d.ts +17 -0
- package/dist/lib/work-install.d.ts.map +1 -1
- package/dist/lib/work-install.js +49 -6
- package/dist/lib/work-install.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/claude-code-adapter.js +4 -2
- package/node_modules/@openrig/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/build-info.js +3 -3
- package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts +1 -1
- package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/db/all-migrations.js +3 -1
- package/node_modules/@openrig/daemon/dist/db/all-migrations.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/db/migrations/046_seat_identity_verdicts.d.ts +8 -5
- package/node_modules/@openrig/daemon/dist/db/migrations/046_seat_identity_verdicts.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/db/migrations/046_seat_identity_verdicts.js +8 -5
- package/node_modules/@openrig/daemon/dist/db/migrations/046_seat_identity_verdicts.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.d.ts +8 -0
- package/node_modules/@openrig/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.js +50 -0
- package/node_modules/@openrig/daemon/dist/db/migrations/079_workflow_lifecycle_parallel.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.d.ts +6 -1
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.js +47 -0
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/bootstrap-orchestrator.js +8 -1
- package/node_modules/@openrig/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/bundle-context-packs-router.d.ts +3 -3
- package/node_modules/@openrig/daemon/dist/domain/bundle-context-packs-router.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/bundle-skills-router.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/bundle-skills-router.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/bundle-skills-router.js +5 -1
- package/node_modules/@openrig/daemon/dist/domain/bundle-skills-router.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/claim-service.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/claim-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/claim-service.js +33 -12
- package/node_modules/@openrig/daemon/dist/domain/claim-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-library-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-library-service.js +9 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.d.ts +25 -0
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.js +3 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js +143 -3
- package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts +22 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js +105 -40
- package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.d.ts +4 -0
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.js +8 -4
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-conductor.d.ts +13 -0
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-conductor.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-conductor.js +3 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-conductor.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/execution-view.js +145 -16
- package/node_modules/@openrig/daemon/dist/domain/execution-view.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/instance-initialization.d.ts +25 -0
- package/node_modules/@openrig/daemon/dist/domain/instance-initialization.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/instance-initialization.js +81 -0
- package/node_modules/@openrig/daemon/dist/domain/instance-initialization.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-manifest.d.ts +19 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-manifest.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-manifest.js +73 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-manifest.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.d.ts +36 -36
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.js +104 -135
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/native-process-lineage.d.ts +10 -0
- package/node_modules/@openrig/daemon/dist/domain/native-process-lineage.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/native-process-lineage.js +86 -0
- package/node_modules/@openrig/daemon/dist/domain/native-process-lineage.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/native-resume-probe.js +12 -1
- package/node_modules/@openrig/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/node-inventory.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/node-inventory.js +3 -1
- package/node_modules/@openrig/daemon/dist/domain/node-inventory.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/node-launcher.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/node-launcher.js +21 -8
- package/node_modules/@openrig/daemon/dist/domain/node-launcher.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/pane-binding-observation.d.ts +22 -0
- package/node_modules/@openrig/daemon/dist/domain/pane-binding-observation.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/pane-binding-observation.js +54 -0
- package/node_modules/@openrig/daemon/dist/domain/pane-binding-observation.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.js +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.js +16 -2
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/profile-resolver.d.ts +12 -0
- package/node_modules/@openrig/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/profile-resolver.js +60 -0
- package/node_modules/@openrig/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.d.ts +35 -0
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.js +190 -0
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/provider/claude-usage-reader.d.ts +1 -1
- package/node_modules/@openrig/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/provider/claude-usage-reader.js +28 -18
- package/node_modules/@openrig/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.d.ts +5 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.js +6 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-retention.d.ts +3 -4
- package/node_modules/@openrig/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-retention.js +5 -8
- package/node_modules/@openrig/daemon/dist/domain/queue-retention.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.d.ts +28 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.js +124 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-attempt-receipt.d.ts +34 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-attempt-receipt.js +59 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-attempt-receipt.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.d.ts +57 -24
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.js +152 -26
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-topology.d.ts +14 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-topology.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-topology.js +27 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-topology.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js +9 -0
- package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts +19 -0
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js +65 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-preflight.d.ts +8 -0
- package/node_modules/@openrig/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rigspec-preflight.js +4 -0
- package/node_modules/@openrig/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-attention-reconciler.d.ts +23 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-attention-reconciler.js +97 -46
- package/node_modules/@openrig/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-identity-reconciler.js +15 -6
- package/node_modules/@openrig/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.js +525 -29
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/session-registry.d.ts +8 -1
- package/node_modules/@openrig/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/session-registry.js +19 -0
- package/node_modules/@openrig/daemon/dist/domain/session-registry.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/skill-catalog.d.ts +81 -0
- package/node_modules/@openrig/daemon/dist/domain/skill-catalog.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/skill-catalog.js +827 -0
- package/node_modules/@openrig/daemon/dist/domain/skill-catalog.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/skill-discovery.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/skill-discovery.js +1 -1
- package/node_modules/@openrig/daemon/dist/domain/skill-discovery.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.d.ts +4 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.js +38 -2
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-repository.d.ts +15 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-repository.js +103 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-repository.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.js +12 -0
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/system-world.d.ts +45 -0
- package/node_modules/@openrig/daemon/dist/domain/system-world.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/system-world.js +123 -0
- package/node_modules/@openrig/daemon/dist/domain/system-world.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/telemetry-state-paths.d.ts +7 -0
- package/node_modules/@openrig/daemon/dist/domain/telemetry-state-paths.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/telemetry-state-paths.js +20 -0
- package/node_modules/@openrig/daemon/dist/domain/telemetry-state-paths.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/types.d.ts +103 -4
- package/node_modules/@openrig/daemon/dist/domain/types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/types.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.d.ts +8 -3
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.js +65 -29
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.d.ts +7 -23
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.js +44 -226
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.js +20 -6
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.d.ts +33 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.js +127 -2
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-keepalive-arming.d.ts +7 -5
- package/node_modules/@openrig/daemon/dist/domain/workflow-keepalive-arming.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-keepalive-arming.js +27 -16
- package/node_modules/@openrig/daemon/dist/domain/workflow-keepalive-arming.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.d.ts +6 -2
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.js +271 -2
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.d.ts +62 -2
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.js +334 -18
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-spec-cache.d.ts +9 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-spec-cache.js +85 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-types.d.ts +38 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-types.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-validator.js +20 -3
- package/node_modules/@openrig/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +38 -9
- package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js +93 -347
- package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/index.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/index.js +13 -0
- package/node_modules/@openrig/daemon/dist/index.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/instance-initialization-surface.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/instance-initialization-surface.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/instance-initialization-surface.js +3 -0
- package/node_modules/@openrig/daemon/dist/instance-initialization-surface.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/project-lifecycle-surface.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/project-lifecycle-surface.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/project-lifecycle-surface.js +3 -0
- package/node_modules/@openrig/daemon/dist/project-lifecycle-surface.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/routes/bundles.js +10 -9
- package/node_modules/@openrig/daemon/dist/routes/bundles.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/config.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/config.js +27 -49
- package/node_modules/@openrig/daemon/dist/routes/config.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/context-packs.js +114 -16
- package/node_modules/@openrig/daemon/dist/routes/context-packs.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/crash-cart.js +3 -0
- package/node_modules/@openrig/daemon/dist/routes/crash-cart.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/queue.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/queue.js +20 -0
- package/node_modules/@openrig/daemon/dist/routes/queue.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/rigs.js +12 -1
- package/node_modules/@openrig/daemon/dist/routes/rigs.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/rigspec.js +9 -2
- package/node_modules/@openrig/daemon/dist/routes/rigspec.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.js +21 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/sessions.js +16 -6
- package/node_modules/@openrig/daemon/dist/routes/sessions.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/snapshots.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/snapshots.js +41 -3
- package/node_modules/@openrig/daemon/dist/routes/snapshots.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/up.js +12 -1
- package/node_modules/@openrig/daemon/dist/routes/up.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/watchdog.js +7 -6
- package/node_modules/@openrig/daemon/dist/routes/watchdog.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/workflow.js +104 -39
- package/node_modules/@openrig/daemon/dist/routes/workflow.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/server.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/server.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/server.js +1 -0
- package/node_modules/@openrig/daemon/dist/server.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/skill-loadout-surface.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/skill-loadout-surface.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/skill-loadout-surface.js +2 -0
- package/node_modules/@openrig/daemon/dist/skill-loadout-surface.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/startup.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/startup.js +72 -65
- package/node_modules/@openrig/daemon/dist/startup.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/system-world-surface.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/system-world-surface.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/system-world-surface.js +2 -0
- package/node_modules/@openrig/daemon/dist/system-world-surface.js.map +1 -0
- package/node_modules/@openrig/daemon/package.json +17 -1
- package/package.json +1 -1
- package/tui/dist/commands/registry.d.ts.map +1 -1
- package/tui/dist/commands/registry.js +10 -1
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +11 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +15 -0
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/demo-data.d.ts.map +1 -1
- package/tui/dist/demo-data.js +65 -9
- package/tui/dist/demo-data.js.map +1 -1
- package/tui/dist/detail.d.ts +9 -0
- package/tui/dist/detail.d.ts.map +1 -1
- package/tui/dist/detail.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts +8 -2
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +482 -119
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts +3 -2
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +66 -8
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/input.d.ts +6 -1
- package/tui/dist/input.d.ts.map +1 -1
- package/tui/dist/input.js +20 -10
- package/tui/dist/input.js.map +1 -1
- package/tui/dist/main.js +39 -8
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +10 -6
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +596 -155
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/scopes/scopes-model.d.ts +14 -8
- package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
- package/tui/dist/scopes/scopes-model.js +218 -46
- package/tui/dist/scopes/scopes-model.js.map +1 -1
- package/tui/dist/socket-server.d.ts +13 -0
- package/tui/dist/socket-server.d.ts.map +1 -1
- package/tui/dist/socket-server.js +24 -0
- package/tui/dist/socket-server.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +20 -6
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +22 -28
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/theme.d.ts +1 -1
- package/tui/dist/theme.d.ts.map +1 -1
- package/tui/dist/theme.js +5 -4
- package/tui/dist/theme.js.map +1 -1
- package/tui/dist/types.d.ts +97 -1
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +6 -0
- package/tui/dist/visual-layout.d.ts.map +1 -0
- package/tui/dist/visual-layout.js +8 -0
- package/tui/dist/visual-layout.js.map +1 -0
- package/ui/dist/assets/{index-B_wqzP0D.js → index-wyX378xb.js} +15 -15
- package/ui/dist/index.html +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { detailPage, listItem, sectionRule } from "../detail.js";
|
|
2
|
-
|
|
2
|
+
import { scopeContractLines, scopeIdentityLines } from "../scopes/scopes-model.js";
|
|
3
3
|
const INDETERMINATE = "INDETERMINATE";
|
|
4
4
|
const RUNGS = ["locked", "built", "reviewed", "folded", "adopted"];
|
|
5
5
|
/** Ordinary words for the ladder rungs. */
|
|
@@ -21,6 +21,137 @@ function clock(iso) {
|
|
|
21
21
|
function clip(text, room) {
|
|
22
22
|
return text.length > room ? `${text.slice(0, Math.max(room - 1, 0))}…` : text;
|
|
23
23
|
}
|
|
24
|
+
/** Keep lifecycle commands complete in the scrollable pane. Shell continuations make the
|
|
25
|
+
* visual wrap usable as one command instead of turning the hidden suffix into guesswork. */
|
|
26
|
+
function shellWords(command) {
|
|
27
|
+
const words = [];
|
|
28
|
+
let word = "";
|
|
29
|
+
let quote = null;
|
|
30
|
+
let escaped = false;
|
|
31
|
+
for (const char of command) {
|
|
32
|
+
if (escaped) {
|
|
33
|
+
word += char;
|
|
34
|
+
escaped = false;
|
|
35
|
+
}
|
|
36
|
+
else if (char === "\\" && quote !== "'") {
|
|
37
|
+
word += char;
|
|
38
|
+
escaped = true;
|
|
39
|
+
}
|
|
40
|
+
else if ((char === "'" || char === '"') && (quote === null || quote === char)) {
|
|
41
|
+
word += char;
|
|
42
|
+
quote = quote === char ? null : char;
|
|
43
|
+
}
|
|
44
|
+
else if (/\s/.test(char) && quote === null) {
|
|
45
|
+
if (word)
|
|
46
|
+
words.push(word);
|
|
47
|
+
word = "";
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
word += char;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (word)
|
|
54
|
+
words.push(word);
|
|
55
|
+
return words;
|
|
56
|
+
}
|
|
57
|
+
function quoteShell(value) {
|
|
58
|
+
return `'${value.replace(/'/g, `'"'"'`)}'`;
|
|
59
|
+
}
|
|
60
|
+
/** Split only words emitted by the daemon's shellQuote helper. A continuation directly
|
|
61
|
+
* between adjacent quoted chunks is one shell argument; option-to-option continuations
|
|
62
|
+
* retain a separating space. */
|
|
63
|
+
function splitQuotedWord(word, maxWidth) {
|
|
64
|
+
if (!word.startsWith("'") || !word.endsWith("'"))
|
|
65
|
+
return null;
|
|
66
|
+
const value = word.slice(1, -1).replaceAll(`'"'"'`, "'");
|
|
67
|
+
if (quoteShell(value) !== word)
|
|
68
|
+
return null;
|
|
69
|
+
const chunks = [];
|
|
70
|
+
let chunk = "";
|
|
71
|
+
for (const char of value) {
|
|
72
|
+
if (chunk && quoteShell(chunk + char).length > maxWidth) {
|
|
73
|
+
chunks.push(quoteShell(chunk));
|
|
74
|
+
chunk = char;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
chunk += char;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
chunks.push(quoteShell(chunk));
|
|
81
|
+
return chunks;
|
|
82
|
+
}
|
|
83
|
+
function actionLines(action, width) {
|
|
84
|
+
const firstIndent = " action ";
|
|
85
|
+
const nextIndent = " ";
|
|
86
|
+
const room = Math.max(width, 24);
|
|
87
|
+
const parts = shellWords(action);
|
|
88
|
+
const lines = [];
|
|
89
|
+
let current = `${firstIndent}${parts.shift() ?? ""}`;
|
|
90
|
+
for (let index = 0; index < parts.length; index++) {
|
|
91
|
+
const part = parts[index];
|
|
92
|
+
const more = index < parts.length - 1;
|
|
93
|
+
if (current && `${current} ${part}${more ? " \\" : ""}`.length <= room) {
|
|
94
|
+
current += ` ${part}`;
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
if (current)
|
|
98
|
+
lines.push({ text: `${current} \\` });
|
|
99
|
+
const chunks = splitQuotedWord(part, room - 2);
|
|
100
|
+
if (chunks && `${nextIndent}${part}${more ? " \\" : ""}`.length > room) {
|
|
101
|
+
for (let chunkIndex = 0; chunkIndex < chunks.length - 1; chunkIndex++) {
|
|
102
|
+
lines.push({ text: `${chunks[chunkIndex]}\\` });
|
|
103
|
+
}
|
|
104
|
+
const last = chunks[chunks.length - 1];
|
|
105
|
+
if (more) {
|
|
106
|
+
lines.push({ text: `${last} \\` });
|
|
107
|
+
current = "";
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
current = last;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
current = `${nextIndent}${part}`;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (current)
|
|
118
|
+
lines.push({ text: current });
|
|
119
|
+
return lines;
|
|
120
|
+
}
|
|
121
|
+
function fitSegs(parts, width) {
|
|
122
|
+
const out = [];
|
|
123
|
+
let room = Math.max(0, width);
|
|
124
|
+
for (const part of parts) {
|
|
125
|
+
if (room <= 0)
|
|
126
|
+
break;
|
|
127
|
+
if (part.text.length <= room) {
|
|
128
|
+
out.push(part);
|
|
129
|
+
room -= part.text.length;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
out.push({ ...part, text: room === 1 ? "…" : `${part.text.slice(0, room - 1)}…` });
|
|
133
|
+
room = 0;
|
|
134
|
+
}
|
|
135
|
+
return out;
|
|
136
|
+
}
|
|
137
|
+
function semantic(parts, width, action) {
|
|
138
|
+
const segs = fitSegs(parts, width);
|
|
139
|
+
return { text: segs.map((part) => part.text).join(""), segs, ...(action ? { action } : {}) };
|
|
140
|
+
}
|
|
141
|
+
function semanticAction(parts, action, width) {
|
|
142
|
+
const suffix = { text: " (open ▸)", token: "accent", bold: true };
|
|
143
|
+
const body = fitSegs(parts, Math.max(0, width - suffix.text.length));
|
|
144
|
+
return semantic([...body, suffix], width, action);
|
|
145
|
+
}
|
|
146
|
+
function stateToken(word) {
|
|
147
|
+
if (word === "working" || word === "done" || word === "active")
|
|
148
|
+
return "ok";
|
|
149
|
+
if (word === "needs input" || word === "blocked" || word === "parked")
|
|
150
|
+
return "warn";
|
|
151
|
+
if (word === "failed")
|
|
152
|
+
return "error";
|
|
153
|
+
return "dim";
|
|
154
|
+
}
|
|
24
155
|
function open(key) {
|
|
25
156
|
return { type: "execution-open", key };
|
|
26
157
|
}
|
|
@@ -175,32 +306,8 @@ function waveOf(slice) {
|
|
|
175
306
|
}
|
|
176
307
|
// ---- rows ----------------------------------------------------------------------
|
|
177
308
|
function sliceAction(execution, slice) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
: open(`slice:${slice.id}`);
|
|
181
|
-
}
|
|
182
|
-
function sliceRow(execution, slice, width, stateWidth, idWidth) {
|
|
183
|
-
// facts in priority order; a narrow pane drops from the END (proof, evidence, next…) and
|
|
184
|
-
// the assignee's decider before it ever clips a fact mid-word
|
|
185
|
-
const facts = [
|
|
186
|
-
assigneeText(slice),
|
|
187
|
-
problemText(slice),
|
|
188
|
-
slice.lane ? null : nextText(slice),
|
|
189
|
-
evidenceText(slice.cells, slice.rank),
|
|
190
|
-
proofText(slice.scope),
|
|
191
|
-
].filter((fact) => !!fact);
|
|
192
|
-
const prefix = `${stateWord(slice).padEnd(stateWidth)} ${slice.id.padEnd(idWidth)} `;
|
|
193
|
-
const budget = Math.max(width - 13, 24) - prefix.length;
|
|
194
|
-
let shown = facts;
|
|
195
|
-
while (shown.join(" · ").length > budget && shown.length > 1) {
|
|
196
|
-
const decider = shown.findIndex((fact) => / \(.+\)$/.test(fact) && fact === assigneeText(slice));
|
|
197
|
-
shown = decider >= 0 ? shown.map((fact, i) => (i === decider ? fact.replace(/ \(.+\)$/, "") : fact)) : shown.slice(0, -1);
|
|
198
|
-
}
|
|
199
|
-
const factsText = shown.join(" · ");
|
|
200
|
-
const room = budget - factsText.length - 3;
|
|
201
|
-
// the name gets whatever room the facts leave; below twelve cells it is dropped, not stubbed
|
|
202
|
-
const name = room >= 12 ? `${clip(slice.name, room)} · ` : "";
|
|
203
|
-
return actionRow(`${prefix}${name}${factsText}`, sliceAction(execution, slice), width);
|
|
309
|
+
void execution;
|
|
310
|
+
return open(`slice:${slice.id}`);
|
|
204
311
|
}
|
|
205
312
|
function countWords(slices) {
|
|
206
313
|
const counts = new Map();
|
|
@@ -209,16 +316,120 @@ function countWords(slices) {
|
|
|
209
316
|
return [...counts.entries()].sort((a, b) => b[1] - a[1]).map(([word, n]) => `${n} ${word}`).join(", ");
|
|
210
317
|
}
|
|
211
318
|
function waveTitle(wave, members) {
|
|
212
|
-
return `
|
|
319
|
+
return `WAVE ${wave} · ${members.length} slice${members.length === 1 ? "" : "s"} · ${countWords(members)}`;
|
|
320
|
+
}
|
|
321
|
+
function stateMark(word) {
|
|
322
|
+
if (word === "working")
|
|
323
|
+
return "●";
|
|
324
|
+
if (word === "needs input")
|
|
325
|
+
return "◐";
|
|
326
|
+
if (word === "blocked")
|
|
327
|
+
return "⚑";
|
|
328
|
+
if (word === "done")
|
|
329
|
+
return "✓";
|
|
330
|
+
if (word === "failed")
|
|
331
|
+
return "✕";
|
|
332
|
+
return "○";
|
|
333
|
+
}
|
|
334
|
+
function padCell(text, width) {
|
|
335
|
+
const value = clip(text, width);
|
|
336
|
+
return value + " ".repeat(Math.max(0, width - value.length));
|
|
337
|
+
}
|
|
338
|
+
function graphNode(slice, width) {
|
|
339
|
+
const inside = width - 2;
|
|
340
|
+
const title = ` ${slice.id} `;
|
|
341
|
+
const topTail = `${"─".repeat(Math.max(0, inside - title.length - 1))}┐`;
|
|
342
|
+
const nameText = padCell(` ${slice.name}`, inside);
|
|
343
|
+
const state = `${stateMark(stateWord(slice))} ${stateWord(slice)}`;
|
|
344
|
+
const owner = assigneeText(slice);
|
|
345
|
+
const ownerRoom = Math.max(0, inside - 1 - state.length);
|
|
346
|
+
const rawOwner = owner ? ` · ${owner}` : "";
|
|
347
|
+
const ownerText = ownerRoom > 0 ? clip(rawOwner, ownerRoom) : "";
|
|
348
|
+
const statusPad = " ".repeat(Math.max(0, inside - 1 - state.length - ownerText.length));
|
|
349
|
+
return [
|
|
350
|
+
semantic([{ text: "┌─", token: "chrome" }, { text: title, token: "accentBright", bold: true }, { text: topTail, token: "chrome" }], width),
|
|
351
|
+
semantic([{ text: "│", token: "chrome" }, { text: nameText, token: "bright" }, { text: "│", token: "chrome" }], width),
|
|
352
|
+
semantic([
|
|
353
|
+
{ text: "│ ", token: "chrome" },
|
|
354
|
+
{ text: state, token: stateToken(stateWord(slice)), bold: true },
|
|
355
|
+
{ text: ownerText, token: "dim" },
|
|
356
|
+
{ text: statusPad },
|
|
357
|
+
{ text: "│", token: "chrome" },
|
|
358
|
+
], width),
|
|
359
|
+
semantic([{ text: `└${"─".repeat(inside)}┘`, token: "chrome" }], width),
|
|
360
|
+
];
|
|
213
361
|
}
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
const
|
|
362
|
+
function graphChunk(execution, members, width) {
|
|
363
|
+
const gap = 2;
|
|
364
|
+
const perRow = width >= 108 ? 3 : 2;
|
|
365
|
+
const nodeWidth = Math.min(34, Math.max(18, Math.floor((width - gap * (Math.min(perRow, members.length) - 1)) / Math.min(perRow, members.length))));
|
|
366
|
+
const out = [];
|
|
367
|
+
for (let start = 0; start < members.length; start += perRow) {
|
|
368
|
+
const chunk = members.slice(start, start + perRow);
|
|
369
|
+
const boxes = chunk.map((slice) => graphNode(slice, nodeWidth));
|
|
370
|
+
const zones = chunk.map((slice, index) => ({
|
|
371
|
+
start: index * (nodeWidth + gap),
|
|
372
|
+
end: index * (nodeWidth + gap) + nodeWidth,
|
|
373
|
+
action: sliceAction(execution, slice),
|
|
374
|
+
}));
|
|
375
|
+
for (let line = 0; line < 4; line += 1) {
|
|
376
|
+
const segs = boxes.flatMap((box, index) => [
|
|
377
|
+
...(index > 0 ? [{ text: " ".repeat(gap) }] : []),
|
|
378
|
+
...(box[line].segs ?? [{ text: box[line].text }]),
|
|
379
|
+
]);
|
|
380
|
+
out.push({ text: segs.map((seg) => seg.text).join(""), segs, zones });
|
|
381
|
+
}
|
|
382
|
+
const centers = chunk.map((_, index) => index * (nodeWidth + gap) + Math.floor(nodeWidth / 2));
|
|
383
|
+
const busWidth = Math.min(width, chunk.length * nodeWidth + Math.max(0, chunk.length - 1) * gap);
|
|
384
|
+
const stubs = Array.from({ length: busWidth }, () => " ");
|
|
385
|
+
for (const center of centers)
|
|
386
|
+
if (center < stubs.length)
|
|
387
|
+
stubs[center] = "│";
|
|
388
|
+
out.push({ text: stubs.join("").trimEnd() });
|
|
389
|
+
if (chunk.length === 1) {
|
|
390
|
+
const arrow = Array.from({ length: busWidth }, () => " ");
|
|
391
|
+
if (centers[0] < arrow.length)
|
|
392
|
+
arrow[centers[0]] = "▼";
|
|
393
|
+
out.push(semantic([{ text: arrow.join("").trimEnd(), token: "chrome" }], width));
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
const bus = Array.from({ length: busWidth }, () => " ");
|
|
397
|
+
const lo = centers[0] ?? 0;
|
|
398
|
+
const hi = centers.at(-1) ?? lo;
|
|
399
|
+
for (let x = lo; x <= hi && x < bus.length; x += 1)
|
|
400
|
+
bus[x] = "━";
|
|
401
|
+
for (const center of centers)
|
|
402
|
+
if (center < bus.length)
|
|
403
|
+
bus[center] = "┴";
|
|
404
|
+
const mid = Math.floor((lo + hi) / 2);
|
|
405
|
+
if (mid < bus.length)
|
|
406
|
+
bus[mid] = centers.includes(mid) ? "┼" : "┬";
|
|
407
|
+
out.push(semantic([{ text: bus.join("").trimEnd(), token: "chrome" }], width));
|
|
408
|
+
const arrow = Array.from({ length: busWidth }, () => " ");
|
|
409
|
+
if (mid < arrow.length)
|
|
410
|
+
arrow[mid] = "▼";
|
|
411
|
+
out.push(semantic([{ text: arrow.join("").trimEnd(), token: "chrome" }], width));
|
|
412
|
+
}
|
|
413
|
+
return out;
|
|
414
|
+
}
|
|
415
|
+
function waveRows(execution, wave, members, width) {
|
|
416
|
+
const title = waveTitle(wave, members);
|
|
417
|
+
const header = semantic([
|
|
418
|
+
{ text: "━ ", token: "chrome" },
|
|
419
|
+
{ text: title, token: "bright", bold: true },
|
|
420
|
+
{ text: ` ${"━".repeat(width)}`, token: "chrome" },
|
|
421
|
+
], width);
|
|
422
|
+
if (width < 70)
|
|
423
|
+
return [
|
|
424
|
+
{ text: "" }, header,
|
|
425
|
+
...members.map((slice) => semanticAction([
|
|
426
|
+
{ text: `${stateMark(stateWord(slice))} ${stateWord(slice).padEnd(11)}`, token: stateToken(stateWord(slice)), bold: true },
|
|
427
|
+
{ text: `${slice.id} `, token: "accentBright" },
|
|
428
|
+
{ text: slice.name, token: "bright" },
|
|
429
|
+
], sliceAction(execution, slice), width)),
|
|
430
|
+
];
|
|
217
431
|
return [
|
|
218
|
-
{ text: "" },
|
|
219
|
-
sectionRule(waveTitle(wave, members), width),
|
|
220
|
-
...shown.map((slice) => sliceRow(execution, slice, width, stateWidth, idWidth)),
|
|
221
|
-
...(overflow > 0 ? [row(`+${overflow} more — open all ${members.length} rows in wave ${wave}`, `group:wave:${wave}`, width)] : []),
|
|
432
|
+
{ text: "" }, header, ...graphChunk(execution, members, width),
|
|
222
433
|
];
|
|
223
434
|
}
|
|
224
435
|
function collectIndeterminate(execution, slices) {
|
|
@@ -246,20 +457,6 @@ function collectIndeterminate(execution, slices) {
|
|
|
246
457
|
}
|
|
247
458
|
return [...groups.values()].sort((a, b) => b.members.length - a.members.length);
|
|
248
459
|
}
|
|
249
|
-
/** The mission-level gap, stated once as two short lines (the first is the drill), or
|
|
250
|
-
* nothing when every rung is determined for every slice. */
|
|
251
|
-
function evidenceGapLines(execution, slices, width) {
|
|
252
|
-
const undetermined = slices.filter((slice) => RUNGS.some((rung) => slice.cells[rung].state === "undetermined"));
|
|
253
|
-
if (undetermined.length === 0)
|
|
254
|
-
return [];
|
|
255
|
-
const gitBasis = str(record(execution.sources?.["git"])["basis"], "");
|
|
256
|
-
const noRepo = /no reachable repo|no repo/i.test(gitBasis);
|
|
257
|
-
const cause = noRepo ? "no repository reachable" : gitBasis || "evidence sources missing";
|
|
258
|
-
return [
|
|
259
|
-
row(`evidence gap — ${cause}; declared state shown`, "evidence", width),
|
|
260
|
-
{ text: ` evidence unconfirmed for ${undetermined.length} of ${slices.length} slices (unknown, not waiting)` },
|
|
261
|
-
];
|
|
262
|
-
}
|
|
263
460
|
function evidenceDetail(execution, slices, width) {
|
|
264
461
|
const gitBasis = str(record(execution.sources?.["git"])["basis"], "(no git source cell)");
|
|
265
462
|
const lines = [
|
|
@@ -284,41 +481,114 @@ function evidenceDetail(execution, slices, width) {
|
|
|
284
481
|
// ---- overview ----------------------------------------------------------------------
|
|
285
482
|
function overviewLines(execution, scopes, width) {
|
|
286
483
|
const slices = sliceFacts(execution, scopes);
|
|
287
|
-
const declared = new Map();
|
|
288
|
-
for (const slice of slices)
|
|
289
|
-
declared.set(declaredText(slice), (declared.get(declaredText(slice)) ?? 0) + 1);
|
|
290
|
-
const declaredText_ = [...declared.entries()].sort((a, b) => b[1] - a[1]).map(([word, n]) => `${n} ${word}`).join(", ");
|
|
291
484
|
const live = slices.filter((slice) => stateWord(slice) === "working").length;
|
|
292
485
|
const problems = slices.filter((slice) => problemText(slice)).length;
|
|
293
486
|
const build = shortSha(record(execution.sources?.["build_info"])["commit"]);
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
487
|
+
const now = slices.filter((slice) => stateWord(slice) === "working").map((slice) => slice.id);
|
|
488
|
+
const needsHuman = slices.filter((slice) => problemText(slice));
|
|
489
|
+
const done = slices.filter((slice) => declaredText(slice) === "done").length;
|
|
490
|
+
const next = slices.find((slice) => nextText(slice) === "ready to start");
|
|
491
|
+
const unknown = slices.filter((slice) => RUNGS.some((rung) => slice.cells[rung].state === "undetermined")).length;
|
|
492
|
+
const missionState = problems > 0 ? "NEEDS ATTENTION" : live > 0 ? "ACTIVE" : done === slices.length && slices.length > 0 ? "COMPLETE" : "QUIET";
|
|
493
|
+
const missionToken = problems > 0 ? "warn" : live > 0 || missionState === "COMPLETE" ? "ok" : "dim";
|
|
494
|
+
const nowText = now.length ? now.join(", ") : "no live slice";
|
|
495
|
+
const nextValue = next ? `${next.id} · ready to start` : "no sequenced next transition";
|
|
496
|
+
const progress = `${done}/${slices.length} declared done · ${live} working${problems ? ` · ${problems} with a problem` : ""}`;
|
|
497
|
+
const fact = (label, value, token) => semantic([
|
|
498
|
+
{ text: ` ${label.padEnd(10)}`, token: "dim", bold: true },
|
|
499
|
+
{ text: value, token },
|
|
500
|
+
], width);
|
|
501
|
+
const narrowFact = (label, value, token) => [
|
|
502
|
+
semantic([{ text: ` ${label}`, token: "dim", bold: true }], width),
|
|
503
|
+
semantic([{ text: ` ${value}`, token }], width),
|
|
299
504
|
];
|
|
505
|
+
const lines = [semantic([
|
|
506
|
+
{ text: execution.mission, token: "accentBright", bold: true },
|
|
507
|
+
{ text: " · ", token: "chrome" },
|
|
508
|
+
{ text: missionState, token: missionToken, bold: true },
|
|
509
|
+
{ text: " · ", token: "chrome" },
|
|
510
|
+
{ text: `${slices.length} slice${slices.length === 1 ? "" : "s"}`, token: "bright" },
|
|
511
|
+
], width)];
|
|
512
|
+
if (width < 70) {
|
|
513
|
+
lines.push(...narrowFact("NOW", nowText, now.length ? "ok" : "dim"));
|
|
514
|
+
lines.push(...narrowFact("NEXT", nextValue, next ? "accentBright" : "dim"));
|
|
515
|
+
lines.push(...narrowFact("PROGRESS", progress, "bright"));
|
|
516
|
+
}
|
|
517
|
+
else {
|
|
518
|
+
lines.push(fact("NOW", nowText, now.length ? "ok" : "dim"));
|
|
519
|
+
lines.push(fact("NEXT", nextValue, next ? "accentBright" : "dim"));
|
|
520
|
+
lines.push(fact("PROGRESS", progress, "bright"));
|
|
521
|
+
}
|
|
522
|
+
if (needsHuman.length) {
|
|
523
|
+
const first = needsHuman[0];
|
|
524
|
+
lines.push(semanticAction([
|
|
525
|
+
{ text: " ⚑ NEEDS HUMAN ", token: "warn", bold: true },
|
|
526
|
+
{ text: `${needsHuman.map((slice) => slice.id).join(", ")} · ${problemText(first)}`, token: "bright" },
|
|
527
|
+
], sliceAction(execution, first), width));
|
|
528
|
+
}
|
|
529
|
+
const provenanceAction = unknown > 0 ? open("evidence") : open("sources");
|
|
530
|
+
const provenance = width < 70 && unknown > 0
|
|
531
|
+
? [{ text: " provenance · ", token: "dim" }, { text: `evidence gap ${unknown}/${slices.length}`, token: "warn" }]
|
|
532
|
+
: [
|
|
533
|
+
{ text: " provenance ", token: "dim" },
|
|
534
|
+
{ text: "·", token: "chrome" },
|
|
535
|
+
{ text: ` ${clock(execution.derived_at) || "?"} · build ${build}`, token: "dim" },
|
|
536
|
+
...(unknown > 0 ? [
|
|
537
|
+
{ text: " · ", token: "chrome" },
|
|
538
|
+
{ text: `evidence gap ${unknown}/${slices.length} unknown`, token: "warn" },
|
|
539
|
+
] : []),
|
|
540
|
+
];
|
|
541
|
+
lines.push(semanticAction(provenance, provenanceAction, width));
|
|
542
|
+
lines.push(...lifecycleLines(execution, width));
|
|
300
543
|
const waves = new Map();
|
|
301
544
|
for (const slice of slices)
|
|
302
545
|
waves.set(waveOf(slice), [...(waves.get(waveOf(slice)) ?? []), slice]);
|
|
303
|
-
const stateWidth = Math.max(...slices.map((slice) => stateWord(slice).length), 4);
|
|
304
|
-
const idWidth = Math.max(...slices.map((slice) => slice.id.length), 1);
|
|
305
546
|
for (const [wave, members] of waves)
|
|
306
|
-
lines.push(...waveRows(execution, wave, members, width
|
|
547
|
+
lines.push(...waveRows(execution, wave, members, width));
|
|
307
548
|
if (slices.length === 0)
|
|
308
549
|
lines.push({ text: " (no slices on this mission)" });
|
|
309
550
|
return lines;
|
|
310
551
|
}
|
|
552
|
+
function lifecycleLines(execution, width) {
|
|
553
|
+
const instances = execution.lifecycle_instances ?? [];
|
|
554
|
+
if (instances.length === 0)
|
|
555
|
+
return [];
|
|
556
|
+
const lines = [{ text: "" }, sectionRule(`LIFECYCLE · ${instances.length} instance${instances.length === 1 ? "" : "s"}`, width)];
|
|
557
|
+
for (const raw of instances) {
|
|
558
|
+
const instance = record(raw);
|
|
559
|
+
const instanceId = str(instance["instance_id"], INDETERMINATE);
|
|
560
|
+
lines.push({ text: ` ${instanceId} · ${str(instance["status"], INDETERMINATE)} · key ${str(instance["operation_key"], INDETERMINATE)}` });
|
|
561
|
+
const packets = Array.isArray(instance["frontier_packets"]) ? instance["frontier_packets"] : [];
|
|
562
|
+
for (const rawPacket of packets) {
|
|
563
|
+
const packet = record(rawPacket);
|
|
564
|
+
lines.push({ text: clip(` ▸ ${str(packet["step_id"], INDETERMINATE)} · ${str(packet["owner"], INDETERMINATE)} · ${str(packet["queue_state"], INDETERMINATE)} · packet ${str(packet["packet_id"], INDETERMINATE)}`, width) });
|
|
565
|
+
if (packet["blocked_on"])
|
|
566
|
+
lines.push({ text: clip(` blocked on ${str(packet["blocked_on"])}`, width) });
|
|
567
|
+
lines.push(...actionLines(str(packet["targeted_action"], INDETERMINATE), width));
|
|
568
|
+
}
|
|
569
|
+
const failures = Array.isArray(instance["failure_occurrences"]) ? instance["failure_occurrences"] : [];
|
|
570
|
+
for (const rawFailure of failures) {
|
|
571
|
+
const failure = record(rawFailure);
|
|
572
|
+
if (failure["status"] !== "unresolved")
|
|
573
|
+
continue;
|
|
574
|
+
lines.push({ text: clip(` ▲ ${str(failure["step_id"], INDETERMINATE)} · occurrence ${str(failure["occurrence_id"], INDETERMINATE)}${failure["failure_reason"] ? ` · ${str(failure["failure_reason"])}` : ""}`, width) });
|
|
575
|
+
lines.push(...actionLines(str(failure["targeted_action"], INDETERMINATE), width));
|
|
576
|
+
}
|
|
577
|
+
const unknowns = Array.isArray(instance["unknowns"]) ? instance["unknowns"] : [];
|
|
578
|
+
for (const unknown of unknowns)
|
|
579
|
+
lines.push({ text: clip(` ? ${str(unknown, INDETERMINATE)}`, width) });
|
|
580
|
+
}
|
|
581
|
+
return lines;
|
|
582
|
+
}
|
|
311
583
|
function waveDetail(execution, scopes, width, key) {
|
|
312
584
|
const wave = key.slice("group:wave:".length);
|
|
313
585
|
const slices = sliceFacts(execution, scopes);
|
|
314
586
|
const members = slices.filter((slice) => waveOf(slice) === wave);
|
|
315
587
|
if (members.length === 0)
|
|
316
588
|
return null;
|
|
317
|
-
const stateWidth = Math.max(...members.map((slice) => stateWord(slice).length), 4);
|
|
318
|
-
const idWidth = Math.max(...members.map((slice) => slice.id.length), 1);
|
|
319
589
|
return [
|
|
320
590
|
{ text: `${execution.mission} · wave ${wave} · all ${members.length} rows` },
|
|
321
|
-
...waveRows(execution, wave, members, width
|
|
591
|
+
...waveRows(execution, wave, members, width),
|
|
322
592
|
{ text: "" },
|
|
323
593
|
back(),
|
|
324
594
|
];
|
|
@@ -330,70 +600,163 @@ function back() {
|
|
|
330
600
|
function laneKey(lane) {
|
|
331
601
|
return `lane:${str(lane["qitem_id"], "unknown")}`;
|
|
332
602
|
}
|
|
333
|
-
function
|
|
334
|
-
const
|
|
603
|
+
function card(title, rows, width) {
|
|
604
|
+
const w = Math.max(28, width);
|
|
605
|
+
const label = ` ${title} `;
|
|
606
|
+
const top = `┌─${label}${"─".repeat(Math.max(0, w - label.length - 3))}┐`;
|
|
607
|
+
return [
|
|
608
|
+
{ text: clip(top, w) },
|
|
609
|
+
...rows.map((item) => {
|
|
610
|
+
const suffix = item.action ? " (open ▸)" : "";
|
|
611
|
+
const value = clip(item.text.trim(), Math.max(1, w - 4 - suffix.length));
|
|
612
|
+
return { ...item, text: `│ ${padCell(value + suffix, w - 4)} │` };
|
|
613
|
+
}),
|
|
614
|
+
{ text: `└${"─".repeat(w - 2)}┘` },
|
|
615
|
+
];
|
|
616
|
+
}
|
|
617
|
+
function cardField(label, value, action) {
|
|
618
|
+
return { text: `${`${label}:`.padEnd(13)} ${value}`, ...(action ? { action } : {}) };
|
|
619
|
+
}
|
|
620
|
+
function wrapWords(text, width) {
|
|
621
|
+
const room = Math.max(1, width);
|
|
622
|
+
const out = [];
|
|
623
|
+
let line = "";
|
|
624
|
+
for (const raw of text.split(/\s+/).filter(Boolean)) {
|
|
625
|
+
let word = raw;
|
|
626
|
+
while (word.length > room) {
|
|
627
|
+
if (line) {
|
|
628
|
+
out.push(line);
|
|
629
|
+
line = "";
|
|
630
|
+
}
|
|
631
|
+
out.push(word.slice(0, room));
|
|
632
|
+
word = word.slice(room);
|
|
633
|
+
}
|
|
634
|
+
if (!word)
|
|
635
|
+
continue;
|
|
636
|
+
if (!line)
|
|
637
|
+
line = word;
|
|
638
|
+
else if (line.length + word.length + 1 <= room)
|
|
639
|
+
line += ` ${word}`;
|
|
640
|
+
else {
|
|
641
|
+
out.push(line);
|
|
642
|
+
line = word;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
if (line)
|
|
646
|
+
out.push(line);
|
|
647
|
+
return out.length ? out : [""];
|
|
648
|
+
}
|
|
649
|
+
function wrappedCardField(label, value, width) {
|
|
650
|
+
const prefix = `${`${label}:`.padEnd(13)} `;
|
|
651
|
+
const continuation = " ".repeat(prefix.length);
|
|
652
|
+
const firstRoom = Math.max(8, width - 4 - prefix.length);
|
|
653
|
+
const chunks = wrapWords(value, firstRoom);
|
|
654
|
+
return chunks.map((chunk, index) => ({ text: `${index === 0 ? prefix : continuation}${chunk}` }));
|
|
655
|
+
}
|
|
656
|
+
function touchedRows(detail, width) {
|
|
657
|
+
if (!detail)
|
|
658
|
+
return [cardField("served data", "slice detail not loaded for this selection")];
|
|
659
|
+
const latest = new Map();
|
|
660
|
+
for (const event of detail.story.events)
|
|
661
|
+
if (event.actorSession)
|
|
662
|
+
latest.set(event.actorSession, event);
|
|
663
|
+
if (latest.size === 0)
|
|
664
|
+
return [cardField("actors", "none in the served slice event history")];
|
|
665
|
+
const limit = width < 70 ? 1 : 3;
|
|
666
|
+
const shown = [...latest.entries()].sort((a, b) => b[1].ts.localeCompare(a[1].ts)).slice(0, limit);
|
|
667
|
+
return [
|
|
668
|
+
...shown.flatMap(([actor, event]) => [
|
|
669
|
+
...wrappedCardField("actor", actor, width),
|
|
670
|
+
...wrappedCardField("last change", `${clock(event.ts) || event.ts} · ${event.kind}${event.qitemId ? ` · ${event.qitemId}` : ""}`, width),
|
|
671
|
+
]),
|
|
672
|
+
cardField("history", `${latest.size} served actor${latest.size === 1 ? "" : "s"} · latest ${shown.length} shown`),
|
|
673
|
+
];
|
|
674
|
+
}
|
|
675
|
+
function rulingRows(detail, width) {
|
|
676
|
+
if (!detail)
|
|
677
|
+
return [cardField("served data", "slice detail not loaded for this selection")];
|
|
678
|
+
const latest = [...detail.decisions.rows].sort((a, b) => b.ts.localeCompare(a.ts))[0];
|
|
679
|
+
if (!latest)
|
|
680
|
+
return [cardField("decision", "none in the served slice decision history")];
|
|
681
|
+
return [
|
|
682
|
+
...wrappedCardField("actor", `${latest.actor} · ${clock(latest.ts) || latest.ts} · ${latest.verb}`, width),
|
|
683
|
+
...wrappedCardField("qitem", latest.qitemId, width),
|
|
684
|
+
...wrappedCardField("decision", latest.reason ?? "no decision reason served", width),
|
|
685
|
+
cardField("history", `${detail.decisions.rows.length} served decision${detail.decisions.rows.length === 1 ? "" : "s"} · latest shown`),
|
|
686
|
+
];
|
|
687
|
+
}
|
|
688
|
+
function sliceDetail(execution, slices, id, width, richDetail, scopeOpts = { collapseReqs: false, narrative: false }) {
|
|
689
|
+
const slice = slices.find((item) => item.id === id || item.dir === id);
|
|
335
690
|
if (!slice)
|
|
336
691
|
return null;
|
|
337
|
-
const
|
|
338
|
-
const
|
|
692
|
+
const detail = richDetail?.name === slice.dir ? richDetail : null;
|
|
693
|
+
const activity = record(slice.lane?.["activity"]);
|
|
694
|
+
const needs = problemText(slice);
|
|
695
|
+
const deps = Array.isArray(slice.sequencing?.["depends_on"]) ? slice.sequencing["depends_on"].map(String) : [];
|
|
696
|
+
const unlocks = slices.filter((candidate) => {
|
|
697
|
+
const candidateDeps = candidate.sequencing?.["depends_on"];
|
|
698
|
+
return Array.isArray(candidateDeps) && candidateDeps.map(String).includes(slice.id);
|
|
699
|
+
}).map((candidate) => candidate.id);
|
|
700
|
+
const ownership = [
|
|
701
|
+
cardField("seat", slice.lane ? str(slice.lane["seat"]) : "none — no claimed lane", slice.lane ? open(laneKey(slice.lane)) : undefined),
|
|
702
|
+
cardField("activity", slice.lane ? str(activity["activity"], INDETERMINATE) : "not assigned"),
|
|
703
|
+
cardField("decided by", slice.lane ? str(activity["decided_by"] ?? activity["basis"], "basis unavailable") : "—"),
|
|
704
|
+
cardField("changed", slice.lane ? str(activity["changed_at"], "—") : "—"),
|
|
705
|
+
];
|
|
706
|
+
const evidence = [];
|
|
339
707
|
for (const rung of RUNGS) {
|
|
340
708
|
const cell = slice.cells[rung];
|
|
341
709
|
const value = rung === "built" ? (cell.state === "yes" ? shortSha(cell.value) : "undetermined") : cell.state;
|
|
342
|
-
|
|
343
|
-
ladderLines.push({ text: ` basis: ${cell.basis}` });
|
|
710
|
+
evidence.push(cardField(RUNG_WORD[rung], `${value} · ${cell.basis}`));
|
|
344
711
|
}
|
|
345
712
|
const legs = record(slice.ladder["reviewed"])["legs"];
|
|
346
713
|
if (Array.isArray(legs))
|
|
347
714
|
for (const leg of legs) {
|
|
348
715
|
const l = record(leg);
|
|
349
|
-
|
|
716
|
+
evidence.push(cardField("review leg", `${str(l["verdict"], "?")} · ${str(l["artifact_type"], "?")} · ${str(l["path"])}`));
|
|
350
717
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
})
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
{ label: "wave map", value: str(source["wave_map_row"], "(not named)") },
|
|
394
|
-
],
|
|
395
|
-
});
|
|
396
|
-
return [...detailPage({ text: `${slice.id} — ${slice.name}` }, sections), { text: "" }, back()];
|
|
718
|
+
const typedRows = slice.lane ? [
|
|
719
|
+
cardField("qitem", str(slice.lane["qitem_id"]), open(laneKey(slice.lane))),
|
|
720
|
+
cardField("pickup", str(record(slice.lane["pickup"])["state"], str(slice.park?.["pickup_state"], INDETERMINATE))),
|
|
721
|
+
cardField("needs input", Number(record(activity["needs_input"])["count"] ?? 0) > 0 ? str(record(activity["needs_input"])["reason"], "input") : "none"),
|
|
722
|
+
cardField("repo join", `${str(slice.lane["worktree_path"], INDETERMINATE)} · ${str(slice.lane["branch"], INDETERMINATE)}`),
|
|
723
|
+
] : [cardField("rows", "none — no typed queue row for this slice")];
|
|
724
|
+
if (slice.park)
|
|
725
|
+
typedRows.push(cardField("park", `${str(slice.park["pickup_state"], INDETERMINATE)} · wake ${str(slice.park["wake_target"], "none armed")}`));
|
|
726
|
+
const dependencies = [
|
|
727
|
+
cardField("wave", waveOf(slice)),
|
|
728
|
+
cardField("depends on", deps.join(", ") || "none"),
|
|
729
|
+
cardField("unlocks", unlocks.join(", ") || "none"),
|
|
730
|
+
cardField("next", nextText(slice) ?? "no next transition derived"),
|
|
731
|
+
cardField("blocked on", blockerText(slice.sequencing?.["blocked_on_rows"]) || "none"),
|
|
732
|
+
];
|
|
733
|
+
const source = record(slice.sequencing?.["source"]);
|
|
734
|
+
const sourceRows = [
|
|
735
|
+
cardField("spec", str(source["spec_path"], "not named")),
|
|
736
|
+
cardField("arrangement", str(source["arrangement_path"], "not named")),
|
|
737
|
+
cardField("wave map", str(source["wave_map_row"], "not named")),
|
|
738
|
+
];
|
|
739
|
+
const identity = slice.scope
|
|
740
|
+
? scopeIdentityLines(slice.scope, execution.mission, width)
|
|
741
|
+
: [
|
|
742
|
+
{ text: clip(`${slice.id} · ${slice.name} · ${stateMark(stateWord(slice))} ${stateWord(slice)} · wave ${waveOf(slice)}`, width) },
|
|
743
|
+
];
|
|
744
|
+
const authored = slice.scope
|
|
745
|
+
? scopeContractLines(slice.scope, { ...scopeOpts, width })
|
|
746
|
+
: [{ text: "" }, ...card("AUTHORED CONTRACT", [cardField("state", "scope detail not served")], width)];
|
|
747
|
+
return [
|
|
748
|
+
...identity,
|
|
749
|
+
{ text: "" }, ...card("OWNERSHIP", ownership, width),
|
|
750
|
+
{ text: "" }, ...card("TOUCHED", touchedRows(detail, width), width),
|
|
751
|
+
{ text: "" }, ...card(`EVIDENCE · declared ${declaredText(slice)} · ${evidenceText(slice.cells, slice.rank)}`, evidence, width),
|
|
752
|
+
{ text: "" }, ...card("RULING", rulingRows(detail, width), width),
|
|
753
|
+
{ text: "" }, ...card("NEEDS YOU", [cardField("state", needs ?? "none on current projection")], width),
|
|
754
|
+
{ text: "" }, ...card("TYPED ROWS", typedRows, width),
|
|
755
|
+
{ text: "" }, ...card("DEPENDENCIES", dependencies, width),
|
|
756
|
+
...authored,
|
|
757
|
+
{ text: "" }, ...card("SOURCES", sourceRows, width),
|
|
758
|
+
{ text: "" }, back(),
|
|
759
|
+
];
|
|
397
760
|
}
|
|
398
761
|
function laneDetail(execution, key) {
|
|
399
762
|
const lane = (execution.q1_lanes ?? []).find((item) => laneKey(item) === key);
|
|
@@ -460,7 +823,7 @@ function sourcesDetail(execution) {
|
|
|
460
823
|
lines.push(back());
|
|
461
824
|
return lines;
|
|
462
825
|
}
|
|
463
|
-
export function executionContentLines(execution, scopes, readErrors, opened, width = 96, pending = false) {
|
|
826
|
+
export function executionContentLines(execution, scopes, readErrors, opened, width = 96, pending = false, sliceDetailRead, scopeOpts = { collapseReqs: false, narrative: false }) {
|
|
464
827
|
if (!execution) {
|
|
465
828
|
const failure = readErrors.find((entry) => entry.startsWith("execution:"));
|
|
466
829
|
// three different truths, never one message: the read failed (named), the read has
|
|
@@ -480,7 +843,7 @@ export function executionContentLines(execution, scopes, readErrors, opened, wid
|
|
|
480
843
|
: opened.startsWith("group:wave:")
|
|
481
844
|
? waveDetail(execution, scopes, width, opened)
|
|
482
845
|
: opened.startsWith("slice:")
|
|
483
|
-
? sliceDetail(execution, slices, opened.slice("slice:".length))
|
|
846
|
+
? sliceDetail(execution, slices, opened.slice("slice:".length), width, sliceDetailRead, scopeOpts)
|
|
484
847
|
: opened.startsWith("lane:") || opened.startsWith("park:")
|
|
485
848
|
? laneDetail(execution, opened)
|
|
486
849
|
: null;
|