oh-my-codex-pennix 0.18.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/Cargo.lock +185 -0
- package/Cargo.toml +24 -0
- package/README.md +445 -0
- package/crates/omx-api/Cargo.toml +19 -0
- package/crates/omx-api/src/lib.rs +2997 -0
- package/crates/omx-api/src/main.rs +10 -0
- package/crates/omx-api/tests/cli.rs +558 -0
- package/crates/omx-explore/Cargo.toml +14 -0
- package/crates/omx-explore/src/main.rs +2972 -0
- package/crates/omx-mux/Cargo.toml +11 -0
- package/crates/omx-mux/src/lib.rs +91 -0
- package/crates/omx-mux/src/tmux.rs +282 -0
- package/crates/omx-mux/src/types.rs +306 -0
- package/crates/omx-runtime/Cargo.toml +13 -0
- package/crates/omx-runtime/src/main.rs +125 -0
- package/crates/omx-runtime/tests/execution.rs +212 -0
- package/crates/omx-runtime-core/Cargo.toml +13 -0
- package/crates/omx-runtime-core/src/authority.rs +239 -0
- package/crates/omx-runtime-core/src/dispatch.rs +330 -0
- package/crates/omx-runtime-core/src/engine.rs +853 -0
- package/crates/omx-runtime-core/src/lib.rs +653 -0
- package/crates/omx-runtime-core/src/mailbox.rs +261 -0
- package/crates/omx-runtime-core/src/replay.rs +104 -0
- package/crates/omx-sparkshell/Cargo.lock +7 -0
- package/crates/omx-sparkshell/Cargo.toml +14 -0
- package/crates/omx-sparkshell/src/codex_bridge.rs +768 -0
- package/crates/omx-sparkshell/src/error.rs +45 -0
- package/crates/omx-sparkshell/src/exec.rs +241 -0
- package/crates/omx-sparkshell/src/main.rs +1133 -0
- package/crates/omx-sparkshell/src/prompt.rs +364 -0
- package/crates/omx-sparkshell/src/redaction.rs +241 -0
- package/crates/omx-sparkshell/src/registry/c_cpp.rs +9 -0
- package/crates/omx-sparkshell/src/registry/csharp.rs +10 -0
- package/crates/omx-sparkshell/src/registry/generic_shell.rs +11 -0
- package/crates/omx-sparkshell/src/registry/git.rs +10 -0
- package/crates/omx-sparkshell/src/registry/go.rs +9 -0
- package/crates/omx-sparkshell/src/registry/java_kotlin.rs +9 -0
- package/crates/omx-sparkshell/src/registry/mod.rs +85 -0
- package/crates/omx-sparkshell/src/registry/node_js.rs +9 -0
- package/crates/omx-sparkshell/src/registry/python.rs +9 -0
- package/crates/omx-sparkshell/src/registry/ruby.rs +9 -0
- package/crates/omx-sparkshell/src/registry/rust.rs +9 -0
- package/crates/omx-sparkshell/src/registry/swift.rs +10 -0
- package/crates/omx-sparkshell/src/test_support.rs +10 -0
- package/crates/omx-sparkshell/src/threshold.rs +75 -0
- package/crates/omx-sparkshell/tests/execution.rs +986 -0
- package/crates/omx-sparkshell/tests/registry.rs +99 -0
- package/dist/adapt/__tests__/foundation.test.d.ts +2 -0
- package/dist/adapt/__tests__/foundation.test.d.ts.map +1 -0
- package/dist/adapt/__tests__/foundation.test.js +171 -0
- package/dist/adapt/__tests__/foundation.test.js.map +1 -0
- package/dist/adapt/__tests__/hermes.test.d.ts +2 -0
- package/dist/adapt/__tests__/hermes.test.d.ts.map +1 -0
- package/dist/adapt/__tests__/hermes.test.js +137 -0
- package/dist/adapt/__tests__/hermes.test.js.map +1 -0
- package/dist/adapt/contracts.d.ts +157 -0
- package/dist/adapt/contracts.d.ts.map +1 -0
- package/dist/adapt/contracts.js +10 -0
- package/dist/adapt/contracts.js.map +1 -0
- package/dist/adapt/hermes.d.ts +83 -0
- package/dist/adapt/hermes.d.ts.map +1 -0
- package/dist/adapt/hermes.js +371 -0
- package/dist/adapt/hermes.js.map +1 -0
- package/dist/adapt/index.d.ts +14 -0
- package/dist/adapt/index.d.ts.map +1 -0
- package/dist/adapt/index.js +293 -0
- package/dist/adapt/index.js.map +1 -0
- package/dist/adapt/openclaw.d.ts +7 -0
- package/dist/adapt/openclaw.d.ts.map +1 -0
- package/dist/adapt/openclaw.js +299 -0
- package/dist/adapt/openclaw.js.map +1 -0
- package/dist/adapt/paths.d.ts +3 -0
- package/dist/adapt/paths.d.ts.map +1 -0
- package/dist/adapt/paths.js +15 -0
- package/dist/adapt/paths.js.map +1 -0
- package/dist/adapt/registry.d.ts +4 -0
- package/dist/adapt/registry.d.ts.map +1 -0
- package/dist/adapt/registry.js +48 -0
- package/dist/adapt/registry.js.map +1 -0
- package/dist/agents/__tests__/definitions.test.d.ts +2 -0
- package/dist/agents/__tests__/definitions.test.d.ts.map +1 -0
- package/dist/agents/__tests__/definitions.test.js +96 -0
- package/dist/agents/__tests__/definitions.test.js.map +1 -0
- package/dist/agents/__tests__/native-config.test.d.ts +2 -0
- package/dist/agents/__tests__/native-config.test.d.ts.map +1 -0
- package/dist/agents/__tests__/native-config.test.js +398 -0
- package/dist/agents/__tests__/native-config.test.js.map +1 -0
- package/dist/agents/definitions.d.ts +35 -0
- package/dist/agents/definitions.d.ts.map +1 -0
- package/dist/agents/definitions.js +371 -0
- package/dist/agents/definitions.js.map +1 -0
- package/dist/agents/native-config.d.ts +56 -0
- package/dist/agents/native-config.d.ts.map +1 -0
- package/dist/agents/native-config.js +285 -0
- package/dist/agents/native-config.js.map +1 -0
- package/dist/agents/policy.d.ts +10 -0
- package/dist/agents/policy.d.ts.map +1 -0
- package/dist/agents/policy.js +61 -0
- package/dist/agents/policy.js.map +1 -0
- package/dist/auth/__tests__/config-sessions.test.d.ts +2 -0
- package/dist/auth/__tests__/config-sessions.test.d.ts.map +1 -0
- package/dist/auth/__tests__/config-sessions.test.js +48 -0
- package/dist/auth/__tests__/config-sessions.test.js.map +1 -0
- package/dist/auth/__tests__/quota-rotation.test.d.ts +2 -0
- package/dist/auth/__tests__/quota-rotation.test.d.ts.map +1 -0
- package/dist/auth/__tests__/quota-rotation.test.js +33 -0
- package/dist/auth/__tests__/quota-rotation.test.js.map +1 -0
- package/dist/auth/__tests__/redact.test.d.ts +2 -0
- package/dist/auth/__tests__/redact.test.d.ts.map +1 -0
- package/dist/auth/__tests__/redact.test.js +20 -0
- package/dist/auth/__tests__/redact.test.js.map +1 -0
- package/dist/auth/__tests__/storage.test.d.ts +2 -0
- package/dist/auth/__tests__/storage.test.d.ts.map +1 -0
- package/dist/auth/__tests__/storage.test.js +108 -0
- package/dist/auth/__tests__/storage.test.js.map +1 -0
- package/dist/auth/config.d.ts +9 -0
- package/dist/auth/config.d.ts.map +1 -0
- package/dist/auth/config.js +77 -0
- package/dist/auth/config.js.map +1 -0
- package/dist/auth/hotswap.d.ts +36 -0
- package/dist/auth/hotswap.d.ts.map +1 -0
- package/dist/auth/hotswap.js +159 -0
- package/dist/auth/hotswap.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +8 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/paths.d.ts +12 -0
- package/dist/auth/paths.d.ts.map +1 -0
- package/dist/auth/paths.js +78 -0
- package/dist/auth/paths.js.map +1 -0
- package/dist/auth/quota-detector.d.ts +10 -0
- package/dist/auth/quota-detector.d.ts.map +1 -0
- package/dist/auth/quota-detector.js +40 -0
- package/dist/auth/quota-detector.js.map +1 -0
- package/dist/auth/redact.d.ts +2 -0
- package/dist/auth/redact.d.ts.map +1 -0
- package/dist/auth/redact.js +26 -0
- package/dist/auth/redact.js.map +1 -0
- package/dist/auth/rotation.d.ts +9 -0
- package/dist/auth/rotation.d.ts.map +1 -0
- package/dist/auth/rotation.js +26 -0
- package/dist/auth/rotation.js.map +1 -0
- package/dist/auth/sessions.d.ts +15 -0
- package/dist/auth/sessions.d.ts.map +1 -0
- package/dist/auth/sessions.js +62 -0
- package/dist/auth/sessions.js.map +1 -0
- package/dist/auth/storage.d.ts +27 -0
- package/dist/auth/storage.d.ts.map +1 -0
- package/dist/auth/storage.js +111 -0
- package/dist/auth/storage.js.map +1 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.d.ts +2 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.d.ts.map +1 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.js +215 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.js.map +1 -0
- package/dist/autopilot/__tests__/fsm.test.d.ts +2 -0
- package/dist/autopilot/__tests__/fsm.test.d.ts.map +1 -0
- package/dist/autopilot/__tests__/fsm.test.js +78 -0
- package/dist/autopilot/__tests__/fsm.test.js.map +1 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.d.ts +2 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.d.ts.map +1 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.js +274 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.js.map +1 -0
- package/dist/autopilot/completion-gate.d.ts +10 -0
- package/dist/autopilot/completion-gate.d.ts.map +1 -0
- package/dist/autopilot/completion-gate.js +154 -0
- package/dist/autopilot/completion-gate.js.map +1 -0
- package/dist/autopilot/deep-interview-gate.d.ts +18 -0
- package/dist/autopilot/deep-interview-gate.d.ts.map +1 -0
- package/dist/autopilot/deep-interview-gate.js +396 -0
- package/dist/autopilot/deep-interview-gate.js.map +1 -0
- package/dist/autopilot/fsm.d.ts +13 -0
- package/dist/autopilot/fsm.d.ts.map +1 -0
- package/dist/autopilot/fsm.js +70 -0
- package/dist/autopilot/fsm.js.map +1 -0
- package/dist/autopilot/ralplan-gate.d.ts +17 -0
- package/dist/autopilot/ralplan-gate.d.ts.map +1 -0
- package/dist/autopilot/ralplan-gate.js +68 -0
- package/dist/autopilot/ralplan-gate.js.map +1 -0
- package/dist/autoresearch/__tests__/contracts.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/contracts.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/contracts.test.js +127 -0
- package/dist/autoresearch/__tests__/contracts.test.js.map +1 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.js +349 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.js.map +1 -0
- package/dist/autoresearch/__tests__/runtime.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/runtime.test.js +211 -0
- package/dist/autoresearch/__tests__/runtime.test.js.map +1 -0
- package/dist/autoresearch/__tests__/skill-validation.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/skill-validation.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/skill-validation.test.js +91 -0
- package/dist/autoresearch/__tests__/skill-validation.test.js.map +1 -0
- package/dist/autoresearch/contracts.d.ts +31 -0
- package/dist/autoresearch/contracts.d.ts.map +1 -0
- package/dist/autoresearch/contracts.js +197 -0
- package/dist/autoresearch/contracts.js.map +1 -0
- package/dist/autoresearch/goal.d.ts +90 -0
- package/dist/autoresearch/goal.d.ts.map +1 -0
- package/dist/autoresearch/goal.js +237 -0
- package/dist/autoresearch/goal.js.map +1 -0
- package/dist/autoresearch/runtime.d.ts +132 -0
- package/dist/autoresearch/runtime.d.ts.map +1 -0
- package/dist/autoresearch/runtime.js +1022 -0
- package/dist/autoresearch/runtime.js.map +1 -0
- package/dist/autoresearch/skill-validation.d.ts +14 -0
- package/dist/autoresearch/skill-validation.d.ts.map +1 -0
- package/dist/autoresearch/skill-validation.js +172 -0
- package/dist/autoresearch/skill-validation.js.map +1 -0
- package/dist/catalog/__tests__/generator.test.d.ts +2 -0
- package/dist/catalog/__tests__/generator.test.d.ts.map +1 -0
- package/dist/catalog/__tests__/generator.test.js +60 -0
- package/dist/catalog/__tests__/generator.test.js.map +1 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.d.ts +2 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.d.ts.map +1 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js +108 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js.map +1 -0
- package/dist/catalog/__tests__/schema.test.d.ts +2 -0
- package/dist/catalog/__tests__/schema.test.d.ts.map +1 -0
- package/dist/catalog/__tests__/schema.test.js +84 -0
- package/dist/catalog/__tests__/schema.test.js.map +1 -0
- package/dist/catalog/installable.d.ts +5 -0
- package/dist/catalog/installable.d.ts.map +1 -0
- package/dist/catalog/installable.js +13 -0
- package/dist/catalog/installable.js.map +1 -0
- package/dist/catalog/reader.d.ts +19 -0
- package/dist/catalog/reader.d.ts.map +1 -0
- package/dist/catalog/reader.js +63 -0
- package/dist/catalog/reader.js.map +1 -0
- package/dist/catalog/schema.d.ts +32 -0
- package/dist/catalog/schema.d.ts.map +1 -0
- package/dist/catalog/schema.js +107 -0
- package/dist/catalog/schema.js.map +1 -0
- package/dist/catalog/skill-mirror.d.ts +20 -0
- package/dist/catalog/skill-mirror.d.ts.map +1 -0
- package/dist/catalog/skill-mirror.js +104 -0
- package/dist/catalog/skill-mirror.js.map +1 -0
- package/dist/cli/__tests__/adapt-help.test.d.ts +2 -0
- package/dist/cli/__tests__/adapt-help.test.d.ts.map +1 -0
- package/dist/cli/__tests__/adapt-help.test.js +39 -0
- package/dist/cli/__tests__/adapt-help.test.js.map +1 -0
- package/dist/cli/__tests__/adapt.test.d.ts +2 -0
- package/dist/cli/__tests__/adapt.test.d.ts.map +1 -0
- package/dist/cli/__tests__/adapt.test.js +62 -0
- package/dist/cli/__tests__/adapt.test.js.map +1 -0
- package/dist/cli/__tests__/agents-init.test.d.ts +2 -0
- package/dist/cli/__tests__/agents-init.test.d.ts.map +1 -0
- package/dist/cli/__tests__/agents-init.test.js +184 -0
- package/dist/cli/__tests__/agents-init.test.js.map +1 -0
- package/dist/cli/__tests__/agents.test.d.ts +2 -0
- package/dist/cli/__tests__/agents.test.d.ts.map +1 -0
- package/dist/cli/__tests__/agents.test.js +137 -0
- package/dist/cli/__tests__/agents.test.js.map +1 -0
- package/dist/cli/__tests__/api.test.d.ts +2 -0
- package/dist/cli/__tests__/api.test.d.ts.map +1 -0
- package/dist/cli/__tests__/api.test.js +175 -0
- package/dist/cli/__tests__/api.test.js.map +1 -0
- package/dist/cli/__tests__/ask.test.d.ts +2 -0
- package/dist/cli/__tests__/ask.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ask.test.js +332 -0
- package/dist/cli/__tests__/ask.test.js.map +1 -0
- package/dist/cli/__tests__/auth.test.d.ts +2 -0
- package/dist/cli/__tests__/auth.test.d.ts.map +1 -0
- package/dist/cli/__tests__/auth.test.js +203 -0
- package/dist/cli/__tests__/auth.test.js.map +1 -0
- package/dist/cli/__tests__/autoresearch-goal.test.d.ts +2 -0
- package/dist/cli/__tests__/autoresearch-goal.test.d.ts.map +1 -0
- package/dist/cli/__tests__/autoresearch-goal.test.js +207 -0
- package/dist/cli/__tests__/autoresearch-goal.test.js.map +1 -0
- package/dist/cli/__tests__/autoresearch-guided.test.d.ts +2 -0
- package/dist/cli/__tests__/autoresearch-guided.test.d.ts.map +1 -0
- package/dist/cli/__tests__/autoresearch-guided.test.js +365 -0
- package/dist/cli/__tests__/autoresearch-guided.test.js.map +1 -0
- package/dist/cli/__tests__/autoresearch.test.d.ts +2 -0
- package/dist/cli/__tests__/autoresearch.test.d.ts.map +1 -0
- package/dist/cli/__tests__/autoresearch.test.js +155 -0
- package/dist/cli/__tests__/autoresearch.test.js.map +1 -0
- package/dist/cli/__tests__/catalog-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/catalog-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/catalog-contract.test.js +18 -0
- package/dist/cli/__tests__/catalog-contract.test.js.map +1 -0
- package/dist/cli/__tests__/cleanup.test.d.ts +2 -0
- package/dist/cli/__tests__/cleanup.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cleanup.test.js +527 -0
- package/dist/cli/__tests__/cleanup.test.js.map +1 -0
- package/dist/cli/__tests__/codex-feature-probe.test.d.ts +2 -0
- package/dist/cli/__tests__/codex-feature-probe.test.d.ts.map +1 -0
- package/dist/cli/__tests__/codex-feature-probe.test.js +46 -0
- package/dist/cli/__tests__/codex-feature-probe.test.js.map +1 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.d.ts +2 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.d.ts.map +1 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.js +778 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.js +122 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.js +52 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.js +79 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-team.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-team.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-team.test.js +299 -0
- package/dist/cli/__tests__/doctor-team.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.js +1312 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.js.map +1 -0
- package/dist/cli/__tests__/error-handling-warnings.test.d.ts +2 -0
- package/dist/cli/__tests__/error-handling-warnings.test.d.ts.map +1 -0
- package/dist/cli/__tests__/error-handling-warnings.test.js +52 -0
- package/dist/cli/__tests__/error-handling-warnings.test.js.map +1 -0
- package/dist/cli/__tests__/exec.test.d.ts +2 -0
- package/dist/cli/__tests__/exec.test.d.ts.map +1 -0
- package/dist/cli/__tests__/exec.test.js +213 -0
- package/dist/cli/__tests__/exec.test.js.map +1 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.d.ts +2 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.d.ts.map +1 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.js +17 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.js.map +1 -0
- package/dist/cli/__tests__/explore.test.d.ts +2 -0
- package/dist/cli/__tests__/explore.test.d.ts.map +1 -0
- package/dist/cli/__tests__/explore.test.js +104 -0
- package/dist/cli/__tests__/explore.test.js.map +1 -0
- package/dist/cli/__tests__/hooks.test.d.ts +2 -0
- package/dist/cli/__tests__/hooks.test.d.ts.map +1 -0
- package/dist/cli/__tests__/hooks.test.js +55 -0
- package/dist/cli/__tests__/hooks.test.js.map +1 -0
- package/dist/cli/__tests__/imagegen-continuation.test.d.ts +2 -0
- package/dist/cli/__tests__/imagegen-continuation.test.d.ts.map +1 -0
- package/dist/cli/__tests__/imagegen-continuation.test.js +135 -0
- package/dist/cli/__tests__/imagegen-continuation.test.js.map +1 -0
- package/dist/cli/__tests__/index.test.d.ts +2 -0
- package/dist/cli/__tests__/index.test.d.ts.map +1 -0
- package/dist/cli/__tests__/index.test.js +3619 -0
- package/dist/cli/__tests__/index.test.js.map +1 -0
- package/dist/cli/__tests__/install-docs-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/install-docs-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/install-docs-contract.test.js +55 -0
- package/dist/cli/__tests__/install-docs-contract.test.js.map +1 -0
- package/dist/cli/__tests__/launch-fallback.test.d.ts +2 -0
- package/dist/cli/__tests__/launch-fallback.test.d.ts.map +1 -0
- package/dist/cli/__tests__/launch-fallback.test.js +1285 -0
- package/dist/cli/__tests__/launch-fallback.test.js.map +1 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.d.ts +2 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.d.ts.map +1 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.js +48 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.js.map +1 -0
- package/dist/cli/__tests__/list.test.d.ts +2 -0
- package/dist/cli/__tests__/list.test.d.ts.map +1 -0
- package/dist/cli/__tests__/list.test.js +38 -0
- package/dist/cli/__tests__/list.test.js.map +1 -0
- package/dist/cli/__tests__/mcp-parity.test.d.ts +2 -0
- package/dist/cli/__tests__/mcp-parity.test.d.ts.map +1 -0
- package/dist/cli/__tests__/mcp-parity.test.js +228 -0
- package/dist/cli/__tests__/mcp-parity.test.js.map +1 -0
- package/dist/cli/__tests__/mcp-serve.test.d.ts +2 -0
- package/dist/cli/__tests__/mcp-serve.test.d.ts.map +1 -0
- package/dist/cli/__tests__/mcp-serve.test.js +68 -0
- package/dist/cli/__tests__/mcp-serve.test.js.map +1 -0
- package/dist/cli/__tests__/native-assets.test.d.ts +2 -0
- package/dist/cli/__tests__/native-assets.test.d.ts.map +1 -0
- package/dist/cli/__tests__/native-assets.test.js +296 -0
- package/dist/cli/__tests__/native-assets.test.js.map +1 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.js +11 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.js.map +1 -0
- package/dist/cli/__tests__/nested-help-routing.test.d.ts +2 -0
- package/dist/cli/__tests__/nested-help-routing.test.d.ts.map +1 -0
- package/dist/cli/__tests__/nested-help-routing.test.js +63 -0
- package/dist/cli/__tests__/nested-help-routing.test.js.map +1 -0
- package/dist/cli/__tests__/package-bin-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/package-bin-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/package-bin-contract.test.js +190 -0
- package/dist/cli/__tests__/package-bin-contract.test.js.map +1 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.d.ts +3 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.d.ts.map +1 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.js +67 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.js.map +1 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.d.ts +2 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.d.ts.map +1 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.js +19 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.js.map +1 -0
- package/dist/cli/__tests__/performance-goal.test.d.ts +2 -0
- package/dist/cli/__tests__/performance-goal.test.d.ts.map +1 -0
- package/dist/cli/__tests__/performance-goal.test.js +144 -0
- package/dist/cli/__tests__/performance-goal.test.js.map +1 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.d.ts +2 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.d.ts.map +1 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.js +48 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.js.map +1 -0
- package/dist/cli/__tests__/question.test.d.ts +2 -0
- package/dist/cli/__tests__/question.test.d.ts.map +1 -0
- package/dist/cli/__tests__/question.test.js +850 -0
- package/dist/cli/__tests__/question.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.js +28 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.js +49 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.js +25 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.js +174 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.js.map +1 -0
- package/dist/cli/__tests__/ralph.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph.test.js +256 -0
- package/dist/cli/__tests__/ralph.test.js.map +1 -0
- package/dist/cli/__tests__/resume.test.d.ts +2 -0
- package/dist/cli/__tests__/resume.test.d.ts.map +1 -0
- package/dist/cli/__tests__/resume.test.js +133 -0
- package/dist/cli/__tests__/resume.test.js.map +1 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.d.ts +2 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.d.ts.map +1 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.js +247 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.js.map +1 -0
- package/dist/cli/__tests__/session-search-help.test.d.ts +2 -0
- package/dist/cli/__tests__/session-search-help.test.d.ts.map +1 -0
- package/dist/cli/__tests__/session-search-help.test.js +37 -0
- package/dist/cli/__tests__/session-search-help.test.js.map +1 -0
- package/dist/cli/__tests__/session-search.test.d.ts +2 -0
- package/dist/cli/__tests__/session-search.test.d.ts.map +1 -0
- package/dist/cli/__tests__/session-search.test.js +77 -0
- package/dist/cli/__tests__/session-search.test.js.map +1 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.js +776 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.js.map +1 -0
- package/dist/cli/__tests__/setup-gh-star.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-gh-star.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-gh-star.test.js +67 -0
- package/dist/cli/__tests__/setup-gh-star.test.js.map +1 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js +202 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js.map +1 -0
- package/dist/cli/__tests__/setup-install-mode.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-install-mode.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-install-mode.test.js +2103 -0
- package/dist/cli/__tests__/setup-install-mode.test.js.map +1 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.js +191 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.js.map +1 -0
- package/dist/cli/__tests__/setup-refresh.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-refresh.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-refresh.test.js +779 -0
- package/dist/cli/__tests__/setup-refresh.test.js.map +1 -0
- package/dist/cli/__tests__/setup-scope.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-scope.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-scope.test.js +367 -0
- package/dist/cli/__tests__/setup-scope.test.js.map +1 -0
- package/dist/cli/__tests__/setup-skill-validation.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-skill-validation.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-skill-validation.test.js +44 -0
- package/dist/cli/__tests__/setup-skill-validation.test.js.map +1 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.js +292 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.js.map +1 -0
- package/dist/cli/__tests__/sidecar.test.d.ts +2 -0
- package/dist/cli/__tests__/sidecar.test.d.ts.map +1 -0
- package/dist/cli/__tests__/sidecar.test.js +24 -0
- package/dist/cli/__tests__/sidecar.test.js.map +1 -0
- package/dist/cli/__tests__/sparkshell-cli.test.d.ts +2 -0
- package/dist/cli/__tests__/sparkshell-cli.test.d.ts.map +1 -0
- package/dist/cli/__tests__/sparkshell-cli.test.js +471 -0
- package/dist/cli/__tests__/sparkshell-cli.test.js.map +1 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.d.ts +2 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.d.ts.map +1 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.js +105 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.js.map +1 -0
- package/dist/cli/__tests__/star-prompt.test.d.ts +2 -0
- package/dist/cli/__tests__/star-prompt.test.d.ts.map +1 -0
- package/dist/cli/__tests__/star-prompt.test.js +172 -0
- package/dist/cli/__tests__/star-prompt.test.js.map +1 -0
- package/dist/cli/__tests__/state.test.d.ts +2 -0
- package/dist/cli/__tests__/state.test.d.ts.map +1 -0
- package/dist/cli/__tests__/state.test.js +160 -0
- package/dist/cli/__tests__/state.test.js.map +1 -0
- package/dist/cli/__tests__/team-decompose.test.d.ts +2 -0
- package/dist/cli/__tests__/team-decompose.test.d.ts.map +1 -0
- package/dist/cli/__tests__/team-decompose.test.js +138 -0
- package/dist/cli/__tests__/team-decompose.test.js.map +1 -0
- package/dist/cli/__tests__/team.test.d.ts +2 -0
- package/dist/cli/__tests__/team.test.d.ts.map +1 -0
- package/dist/cli/__tests__/team.test.js +2897 -0
- package/dist/cli/__tests__/team.test.js.map +1 -0
- package/dist/cli/__tests__/ultragoal.test.d.ts +2 -0
- package/dist/cli/__tests__/ultragoal.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ultragoal.test.js +599 -0
- package/dist/cli/__tests__/ultragoal.test.js.map +1 -0
- package/dist/cli/__tests__/uninstall.test.d.ts +2 -0
- package/dist/cli/__tests__/uninstall.test.d.ts.map +1 -0
- package/dist/cli/__tests__/uninstall.test.js +865 -0
- package/dist/cli/__tests__/uninstall.test.js.map +1 -0
- package/dist/cli/__tests__/update.test.d.ts +2 -0
- package/dist/cli/__tests__/update.test.d.ts.map +1 -0
- package/dist/cli/__tests__/update.test.js +1182 -0
- package/dist/cli/__tests__/update.test.js.map +1 -0
- package/dist/cli/__tests__/version-sync-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/version-sync-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/version-sync-contract.test.js +47 -0
- package/dist/cli/__tests__/version-sync-contract.test.js.map +1 -0
- package/dist/cli/__tests__/version.test.d.ts +2 -0
- package/dist/cli/__tests__/version.test.d.ts.map +1 -0
- package/dist/cli/__tests__/version.test.js +21 -0
- package/dist/cli/__tests__/version.test.js.map +1 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.js +31 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.js.map +1 -0
- package/dist/cli/adapt.d.ts +6 -0
- package/dist/cli/adapt.d.ts.map +1 -0
- package/dist/cli/adapt.js +135 -0
- package/dist/cli/adapt.js.map +1 -0
- package/dist/cli/agents-init.d.ts +14 -0
- package/dist/cli/agents-init.d.ts.map +1 -0
- package/dist/cli/agents-init.js +274 -0
- package/dist/cli/agents-init.js.map +1 -0
- package/dist/cli/agents.d.ts +14 -0
- package/dist/cli/agents.d.ts.map +1 -0
- package/dist/cli/agents.js +267 -0
- package/dist/cli/agents.js.map +1 -0
- package/dist/cli/api.d.ts +26 -0
- package/dist/cli/api.d.ts.map +1 -0
- package/dist/cli/api.js +153 -0
- package/dist/cli/api.js.map +1 -0
- package/dist/cli/ask.d.ts +13 -0
- package/dist/cli/ask.d.ts.map +1 -0
- package/dist/cli/ask.js +178 -0
- package/dist/cli/ask.js.map +1 -0
- package/dist/cli/auth.d.ts +4 -0
- package/dist/cli/auth.d.ts.map +1 -0
- package/dist/cli/auth.js +113 -0
- package/dist/cli/auth.js.map +1 -0
- package/dist/cli/autoresearch-goal.d.ts +3 -0
- package/dist/cli/autoresearch-goal.d.ts.map +1 -0
- package/dist/cli/autoresearch-goal.js +175 -0
- package/dist/cli/autoresearch-goal.js.map +1 -0
- package/dist/cli/autoresearch-guided.d.ts +43 -0
- package/dist/cli/autoresearch-guided.d.ts.map +1 -0
- package/dist/cli/autoresearch-guided.js +282 -0
- package/dist/cli/autoresearch-guided.js.map +1 -0
- package/dist/cli/autoresearch-intake.d.ts +62 -0
- package/dist/cli/autoresearch-intake.d.ts.map +1 -0
- package/dist/cli/autoresearch-intake.js +336 -0
- package/dist/cli/autoresearch-intake.js.map +1 -0
- package/dist/cli/autoresearch.d.ts +16 -0
- package/dist/cli/autoresearch.d.ts.map +1 -0
- package/dist/cli/autoresearch.js +91 -0
- package/dist/cli/autoresearch.js.map +1 -0
- package/dist/cli/catalog-contract.d.ts +10 -0
- package/dist/cli/catalog-contract.d.ts.map +1 -0
- package/dist/cli/catalog-contract.js +34 -0
- package/dist/cli/catalog-contract.js.map +1 -0
- package/dist/cli/cleanup.d.ts +58 -0
- package/dist/cli/cleanup.d.ts.map +1 -0
- package/dist/cli/cleanup.js +444 -0
- package/dist/cli/cleanup.js.map +1 -0
- package/dist/cli/codex-feature-probe.d.ts +17 -0
- package/dist/cli/codex-feature-probe.d.ts.map +1 -0
- package/dist/cli/codex-feature-probe.js +50 -0
- package/dist/cli/codex-feature-probe.js.map +1 -0
- package/dist/cli/codex-home.d.ts +7 -0
- package/dist/cli/codex-home.d.ts.map +1 -0
- package/dist/cli/codex-home.js +26 -0
- package/dist/cli/codex-home.js.map +1 -0
- package/dist/cli/constants.d.ts +11 -0
- package/dist/cli/constants.d.ts.map +1 -0
- package/dist/cli/constants.js +11 -0
- package/dist/cli/constants.js.map +1 -0
- package/dist/cli/doctor.d.ts +43 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +1956 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/explore.d.ts +14 -0
- package/dist/cli/explore.d.ts.map +1 -0
- package/dist/cli/explore.js +72 -0
- package/dist/cli/explore.js.map +1 -0
- package/dist/cli/hooks.d.ts +4 -0
- package/dist/cli/hooks.d.ts.map +1 -0
- package/dist/cli/hooks.js +201 -0
- package/dist/cli/hooks.js.map +1 -0
- package/dist/cli/index.d.ts +247 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +4590 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/list.d.ts +2 -0
- package/dist/cli/list.d.ts.map +1 -0
- package/dist/cli/list.js +40 -0
- package/dist/cli/list.js.map +1 -0
- package/dist/cli/mcp-parity.d.ts +22 -0
- package/dist/cli/mcp-parity.d.ts.map +1 -0
- package/dist/cli/mcp-parity.js +251 -0
- package/dist/cli/mcp-parity.js.map +1 -0
- package/dist/cli/mcp-serve.d.ts +13 -0
- package/dist/cli/mcp-serve.d.ts.map +1 -0
- package/dist/cli/mcp-serve.js +75 -0
- package/dist/cli/mcp-serve.js.map +1 -0
- package/dist/cli/native-assets.d.ts +52 -0
- package/dist/cli/native-assets.d.ts.map +1 -0
- package/dist/cli/native-assets.js +302 -0
- package/dist/cli/native-assets.js.map +1 -0
- package/dist/cli/omx.d.ts +3 -0
- package/dist/cli/omx.d.ts.map +1 -0
- package/dist/cli/omx.js +25 -0
- package/dist/cli/omx.js.map +1 -0
- package/dist/cli/performance-goal.d.ts +3 -0
- package/dist/cli/performance-goal.d.ts.map +1 -0
- package/dist/cli/performance-goal.js +186 -0
- package/dist/cli/performance-goal.js.map +1 -0
- package/dist/cli/plugin-marketplace.d.ts +54 -0
- package/dist/cli/plugin-marketplace.d.ts.map +1 -0
- package/dist/cli/plugin-marketplace.js +369 -0
- package/dist/cli/plugin-marketplace.js.map +1 -0
- package/dist/cli/question.d.ts +3 -0
- package/dist/cli/question.d.ts.map +1 -0
- package/dist/cli/question.js +376 -0
- package/dist/cli/question.js.map +1 -0
- package/dist/cli/ralph.d.ts +17 -0
- package/dist/cli/ralph.d.ts.map +1 -0
- package/dist/cli/ralph.js +330 -0
- package/dist/cli/ralph.js.map +1 -0
- package/dist/cli/session-search.d.ts +8 -0
- package/dist/cli/session-search.d.ts.map +1 -0
- package/dist/cli/session-search.js +133 -0
- package/dist/cli/session-search.js.map +1 -0
- package/dist/cli/setup-preferences.d.ts +26 -0
- package/dist/cli/setup-preferences.d.ts.map +1 -0
- package/dist/cli/setup-preferences.js +82 -0
- package/dist/cli/setup-preferences.js.map +1 -0
- package/dist/cli/setup.d.ts +60 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +2748 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/sparkshell.d.ts +39 -0
- package/dist/cli/sparkshell.d.ts.map +1 -0
- package/dist/cli/sparkshell.js +299 -0
- package/dist/cli/sparkshell.js.map +1 -0
- package/dist/cli/star-prompt.d.ts +31 -0
- package/dist/cli/star-prompt.d.ts.map +1 -0
- package/dist/cli/star-prompt.js +97 -0
- package/dist/cli/star-prompt.js.map +1 -0
- package/dist/cli/state.d.ts +8 -0
- package/dist/cli/state.d.ts.map +1 -0
- package/dist/cli/state.js +149 -0
- package/dist/cli/state.js.map +1 -0
- package/dist/cli/team.d.ts +49 -0
- package/dist/cli/team.d.ts.map +1 -0
- package/dist/cli/team.js +1453 -0
- package/dist/cli/team.js.map +1 -0
- package/dist/cli/tmux-hook.d.ts +3 -0
- package/dist/cli/tmux-hook.d.ts.map +1 -0
- package/dist/cli/tmux-hook.js +403 -0
- package/dist/cli/tmux-hook.js.map +1 -0
- package/dist/cli/ultragoal.d.ts +3 -0
- package/dist/cli/ultragoal.d.ts.map +1 -0
- package/dist/cli/ultragoal.js +494 -0
- package/dist/cli/ultragoal.js.map +1 -0
- package/dist/cli/uninstall.d.ts +15 -0
- package/dist/cli/uninstall.d.ts.map +1 -0
- package/dist/cli/uninstall.js +476 -0
- package/dist/cli/uninstall.js.map +1 -0
- package/dist/cli/update.d.ts +86 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +754 -0
- package/dist/cli/update.js.map +1 -0
- package/dist/cli/version.d.ts +2 -0
- package/dist/cli/version.d.ts.map +1 -0
- package/dist/cli/version.js +13 -0
- package/dist/cli/version.js.map +1 -0
- package/dist/compat/__tests__/doctor-contract.test.d.ts +2 -0
- package/dist/compat/__tests__/doctor-contract.test.d.ts.map +1 -0
- package/dist/compat/__tests__/doctor-contract.test.js +122 -0
- package/dist/compat/__tests__/doctor-contract.test.js.map +1 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.d.ts +2 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.d.ts.map +1 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.js +218 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.js.map +1 -0
- package/dist/config/__tests__/codex-feature-flags.test.d.ts +2 -0
- package/dist/config/__tests__/codex-feature-flags.test.d.ts.map +1 -0
- package/dist/config/__tests__/codex-feature-flags.test.js +45 -0
- package/dist/config/__tests__/codex-feature-flags.test.js.map +1 -0
- package/dist/config/__tests__/codex-hooks.test.d.ts +2 -0
- package/dist/config/__tests__/codex-hooks.test.d.ts.map +1 -0
- package/dist/config/__tests__/codex-hooks.test.js +524 -0
- package/dist/config/__tests__/codex-hooks.test.js.map +1 -0
- package/dist/config/__tests__/commit-lore-guard.test.d.ts +2 -0
- package/dist/config/__tests__/commit-lore-guard.test.d.ts.map +1 -0
- package/dist/config/__tests__/commit-lore-guard.test.js +20 -0
- package/dist/config/__tests__/commit-lore-guard.test.js.map +1 -0
- package/dist/config/__tests__/deep-interview.test.d.ts +2 -0
- package/dist/config/__tests__/deep-interview.test.d.ts.map +1 -0
- package/dist/config/__tests__/deep-interview.test.js +240 -0
- package/dist/config/__tests__/deep-interview.test.js.map +1 -0
- package/dist/config/__tests__/generator-idempotent.test.d.ts +2 -0
- package/dist/config/__tests__/generator-idempotent.test.d.ts.map +1 -0
- package/dist/config/__tests__/generator-idempotent.test.js +1150 -0
- package/dist/config/__tests__/generator-idempotent.test.js.map +1 -0
- package/dist/config/__tests__/generator-notify.test.d.ts +2 -0
- package/dist/config/__tests__/generator-notify.test.d.ts.map +1 -0
- package/dist/config/__tests__/generator-notify.test.js +512 -0
- package/dist/config/__tests__/generator-notify.test.js.map +1 -0
- package/dist/config/__tests__/generator-status-line-presets.test.d.ts +2 -0
- package/dist/config/__tests__/generator-status-line-presets.test.d.ts.map +1 -0
- package/dist/config/__tests__/generator-status-line-presets.test.js +203 -0
- package/dist/config/__tests__/generator-status-line-presets.test.js.map +1 -0
- package/dist/config/__tests__/mcp-registry.test.d.ts +2 -0
- package/dist/config/__tests__/mcp-registry.test.d.ts.map +1 -0
- package/dist/config/__tests__/mcp-registry.test.js +190 -0
- package/dist/config/__tests__/mcp-registry.test.js.map +1 -0
- package/dist/config/__tests__/models.test.d.ts +2 -0
- package/dist/config/__tests__/models.test.d.ts.map +1 -0
- package/dist/config/__tests__/models.test.js +241 -0
- package/dist/config/__tests__/models.test.js.map +1 -0
- package/dist/config/__tests__/wiki-config-contract.test.d.ts +2 -0
- package/dist/config/__tests__/wiki-config-contract.test.d.ts.map +1 -0
- package/dist/config/__tests__/wiki-config-contract.test.js +23 -0
- package/dist/config/__tests__/wiki-config-contract.test.js.map +1 -0
- package/dist/config/codex-feature-flags.d.ts +25 -0
- package/dist/config/codex-feature-flags.d.ts.map +1 -0
- package/dist/config/codex-feature-flags.js +60 -0
- package/dist/config/codex-feature-flags.js.map +1 -0
- package/dist/config/codex-hooks.d.ts +79 -0
- package/dist/config/codex-hooks.d.ts.map +1 -0
- package/dist/config/codex-hooks.js +578 -0
- package/dist/config/codex-hooks.js.map +1 -0
- package/dist/config/commit-lore-guard.d.ts +4 -0
- package/dist/config/commit-lore-guard.d.ts.map +1 -0
- package/dist/config/commit-lore-guard.js +35 -0
- package/dist/config/commit-lore-guard.js.map +1 -0
- package/dist/config/deep-interview.d.ts +22 -0
- package/dist/config/deep-interview.d.ts.map +1 -0
- package/dist/config/deep-interview.js +161 -0
- package/dist/config/deep-interview.js.map +1 -0
- package/dist/config/generator.d.ts +141 -0
- package/dist/config/generator.d.ts.map +1 -0
- package/dist/config/generator.js +1845 -0
- package/dist/config/generator.js.map +1 -0
- package/dist/config/mcp-registry.d.ts +35 -0
- package/dist/config/mcp-registry.d.ts.map +1 -0
- package/dist/config/mcp-registry.js +159 -0
- package/dist/config/mcp-registry.js.map +1 -0
- package/dist/config/models.d.ts +80 -0
- package/dist/config/models.d.ts.map +1 -0
- package/dist/config/models.js +251 -0
- package/dist/config/models.js.map +1 -0
- package/dist/config/omx-first-party-mcp.d.ts +21 -0
- package/dist/config/omx-first-party-mcp.d.ts.map +1 -0
- package/dist/config/omx-first-party-mcp.js +86 -0
- package/dist/config/omx-first-party-mcp.js.map +1 -0
- package/dist/config/team-mode.d.ts +12 -0
- package/dist/config/team-mode.d.ts.map +1 -0
- package/dist/config/team-mode.js +91 -0
- package/dist/config/team-mode.js.map +1 -0
- package/dist/document-refresh/__tests__/enforcer.test.d.ts +2 -0
- package/dist/document-refresh/__tests__/enforcer.test.d.ts.map +1 -0
- package/dist/document-refresh/__tests__/enforcer.test.js +128 -0
- package/dist/document-refresh/__tests__/enforcer.test.js.map +1 -0
- package/dist/document-refresh/config.d.ts +9 -0
- package/dist/document-refresh/config.d.ts.map +1 -0
- package/dist/document-refresh/config.js +70 -0
- package/dist/document-refresh/config.js.map +1 -0
- package/dist/document-refresh/enforcer.d.ts +43 -0
- package/dist/document-refresh/enforcer.d.ts.map +1 -0
- package/dist/document-refresh/enforcer.js +329 -0
- package/dist/document-refresh/enforcer.js.map +1 -0
- package/dist/exec/followup.d.ts +45 -0
- package/dist/exec/followup.d.ts.map +1 -0
- package/dist/exec/followup.js +355 -0
- package/dist/exec/followup.js.map +1 -0
- package/dist/goal-workflows/__tests__/artifacts.test.d.ts +2 -0
- package/dist/goal-workflows/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/goal-workflows/__tests__/artifacts.test.js +96 -0
- package/dist/goal-workflows/__tests__/artifacts.test.js.map +1 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.d.ts +2 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.d.ts.map +1 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.js +75 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.js.map +1 -0
- package/dist/goal-workflows/artifacts.d.ts +62 -0
- package/dist/goal-workflows/artifacts.d.ts.map +1 -0
- package/dist/goal-workflows/artifacts.js +132 -0
- package/dist/goal-workflows/artifacts.js.map +1 -0
- package/dist/goal-workflows/codex-goal-snapshot.d.ts +32 -0
- package/dist/goal-workflows/codex-goal-snapshot.d.ts.map +1 -0
- package/dist/goal-workflows/codex-goal-snapshot.js +157 -0
- package/dist/goal-workflows/codex-goal-snapshot.js.map +1 -0
- package/dist/goal-workflows/handoff.d.ts +10 -0
- package/dist/goal-workflows/handoff.d.ts.map +1 -0
- package/dist/goal-workflows/handoff.js +31 -0
- package/dist/goal-workflows/handoff.js.map +1 -0
- package/dist/goal-workflows/validation.d.ts +13 -0
- package/dist/goal-workflows/validation.d.ts.map +1 -0
- package/dist/goal-workflows/validation.js +36 -0
- package/dist/goal-workflows/validation.js.map +1 -0
- package/dist/hooks/__tests__/agents-overlay.test.d.ts +8 -0
- package/dist/hooks/__tests__/agents-overlay.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/agents-overlay.test.js +761 -0
- package/dist/hooks/__tests__/agents-overlay.test.js.map +1 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.js +45 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.js +48 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.d.ts +2 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.js +165 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.js.map +1 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.js +90 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.js +39 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.js +37 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.js +77 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/codebase-map.test.d.ts +8 -0
- package/dist/hooks/__tests__/codebase-map.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/codebase-map.test.js +218 -0
- package/dist/hooks/__tests__/codebase-map.test.js.map +1 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts +18 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.js +266 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.js.map +1 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.js +20 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.js +309 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/design-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/design-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/design-skill.test.js +55 -0
- package/dist/hooks/__tests__/design-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.js +43 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.js +38 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/explore-routing.test.d.ts +2 -0
- package/dist/hooks/__tests__/explore-routing.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explore-routing.test.js +38 -0
- package/dist/hooks/__tests__/explore-routing.test.js.map +1 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js +67 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.js +28 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/keyword-detector.test.d.ts +2 -0
- package/dist/hooks/__tests__/keyword-detector.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/keyword-detector.test.js +3323 -0
- package/dist/hooks/__tests__/keyword-detector.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.js +3956 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js +786 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js +2602 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js +161 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js +1178 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.d.ts +9 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.js +529 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.js +14 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.js +176 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js +890 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.d.ts +9 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.js +255 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.js +162 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.js +304 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js +1511 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js +2911 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js +261 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js +35 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js +1854 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.d.ts +10 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.js +0 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.d.ts +11 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.js +266 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.js +895 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.js.map +1 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.js +61 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.d.ts +2 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.js +40 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.js.map +1 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.js +320 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.js +11 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.js +38 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.js +48 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.js +11 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.d.ts +5 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.js +34 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js +81 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.js +38 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.js +22 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.js +49 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.js.map +1 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.d.ts +2 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.js +35 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.js.map +1 -0
- package/dist/hooks/__tests__/session.test.d.ts +2 -0
- package/dist/hooks/__tests__/session.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/session.test.js +504 -0
- package/dist/hooks/__tests__/session.test.js.map +1 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.d.ts +2 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.js +84 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.js.map +1 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.js +89 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/task-size-detector.test.d.ts +2 -0
- package/dist/hooks/__tests__/task-size-detector.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/task-size-detector.test.js +330 -0
- package/dist/hooks/__tests__/task-size-detector.test.js.map +1 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js +28 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.d.ts +2 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.js +24 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.js.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.d.ts +2 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.js +403 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.js.map +1 -0
- package/dist/hooks/__tests__/triage-config.test.d.ts +2 -0
- package/dist/hooks/__tests__/triage-config.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/triage-config.test.js +211 -0
- package/dist/hooks/__tests__/triage-config.test.js.map +1 -0
- package/dist/hooks/__tests__/triage-heuristic.test.d.ts +2 -0
- package/dist/hooks/__tests__/triage-heuristic.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/triage-heuristic.test.js +285 -0
- package/dist/hooks/__tests__/triage-heuristic.test.js.map +1 -0
- package/dist/hooks/__tests__/triage-state.test.d.ts +2 -0
- package/dist/hooks/__tests__/triage-state.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/triage-state.test.js +426 -0
- package/dist/hooks/__tests__/triage-state.test.js.map +1 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.js +44 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.d.ts +2 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.js +31 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.js.map +1 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.js +35 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.js.map +1 -0
- package/dist/hooks/agents-overlay.d.ts +51 -0
- package/dist/hooks/agents-overlay.d.ts.map +1 -0
- package/dist/hooks/agents-overlay.js +547 -0
- package/dist/hooks/agents-overlay.js.map +1 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.d.ts +2 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.d.ts.map +1 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.js +187 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.js.map +1 -0
- package/dist/hooks/code-simplifier/index.d.ts +80 -0
- package/dist/hooks/code-simplifier/index.d.ts.map +1 -0
- package/dist/hooks/code-simplifier/index.js +172 -0
- package/dist/hooks/code-simplifier/index.js.map +1 -0
- package/dist/hooks/codebase-map.d.ts +23 -0
- package/dist/hooks/codebase-map.d.ts.map +1 -0
- package/dist/hooks/codebase-map.js +234 -0
- package/dist/hooks/codebase-map.js.map +1 -0
- package/dist/hooks/deep-interview-config-instruction.d.ts +3 -0
- package/dist/hooks/deep-interview-config-instruction.d.ts.map +1 -0
- package/dist/hooks/deep-interview-config-instruction.js +47 -0
- package/dist/hooks/deep-interview-config-instruction.js.map +1 -0
- package/dist/hooks/explore-routing.d.ts +5 -0
- package/dist/hooks/explore-routing.d.ts.map +1 -0
- package/dist/hooks/explore-routing.js +37 -0
- package/dist/hooks/explore-routing.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.js +265 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/events.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/events.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/events.test.js +125 -0
- package/dist/hooks/extensibility/__tests__/events.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.js +153 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/loader.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/loader.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/loader.test.js +254 -0
- package/dist/hooks/extensibility/__tests__/loader.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/logging.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/logging.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/logging.test.js +74 -0
- package/dist/hooks/extensibility/__tests__/logging.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.js +344 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.js +198 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.js +32 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.js +479 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.js.map +1 -0
- package/dist/hooks/extensibility/dispatcher.d.ts +4 -0
- package/dist/hooks/extensibility/dispatcher.d.ts.map +1 -0
- package/dist/hooks/extensibility/dispatcher.js +302 -0
- package/dist/hooks/extensibility/dispatcher.js.map +1 -0
- package/dist/hooks/extensibility/events.d.ts +18 -0
- package/dist/hooks/extensibility/events.d.ts.map +1 -0
- package/dist/hooks/extensibility/events.js +53 -0
- package/dist/hooks/extensibility/events.js.map +1 -0
- package/dist/hooks/extensibility/index.d.ts +6 -0
- package/dist/hooks/extensibility/index.d.ts.map +1 -0
- package/dist/hooks/extensibility/index.js +6 -0
- package/dist/hooks/extensibility/index.js.map +1 -0
- package/dist/hooks/extensibility/loader.d.ts +14 -0
- package/dist/hooks/extensibility/loader.d.ts.map +1 -0
- package/dist/hooks/extensibility/loader.js +117 -0
- package/dist/hooks/extensibility/loader.js.map +1 -0
- package/dist/hooks/extensibility/logging.d.ts +4 -0
- package/dist/hooks/extensibility/logging.d.ts.map +1 -0
- package/dist/hooks/extensibility/logging.js +22 -0
- package/dist/hooks/extensibility/logging.js.map +1 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.d.ts +2 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.d.ts.map +1 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.js +16 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.js.map +1 -0
- package/dist/hooks/extensibility/plugin-runner.d.ts +2 -0
- package/dist/hooks/extensibility/plugin-runner.d.ts.map +1 -0
- package/dist/hooks/extensibility/plugin-runner.js +63 -0
- package/dist/hooks/extensibility/plugin-runner.js.map +1 -0
- package/dist/hooks/extensibility/runtime.d.ts +3 -0
- package/dist/hooks/extensibility/runtime.d.ts.map +1 -0
- package/dist/hooks/extensibility/runtime.js +42 -0
- package/dist/hooks/extensibility/runtime.js.map +1 -0
- package/dist/hooks/extensibility/sdk/logging.d.ts +6 -0
- package/dist/hooks/extensibility/sdk/logging.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/logging.js +32 -0
- package/dist/hooks/extensibility/sdk/logging.js.map +1 -0
- package/dist/hooks/extensibility/sdk/paths.d.ts +7 -0
- package/dist/hooks/extensibility/sdk/paths.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/paths.js +23 -0
- package/dist/hooks/extensibility/sdk/paths.js.map +1 -0
- package/dist/hooks/extensibility/sdk/plugin-state.d.ts +5 -0
- package/dist/hooks/extensibility/sdk/plugin-state.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/plugin-state.js +66 -0
- package/dist/hooks/extensibility/sdk/plugin-state.js.map +1 -0
- package/dist/hooks/extensibility/sdk/runtime-state.d.ts +3 -0
- package/dist/hooks/extensibility/sdk/runtime-state.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/runtime-state.js +47 -0
- package/dist/hooks/extensibility/sdk/runtime-state.js.map +1 -0
- package/dist/hooks/extensibility/sdk/tmux.d.ts +10 -0
- package/dist/hooks/extensibility/sdk/tmux.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/tmux.js +181 -0
- package/dist/hooks/extensibility/sdk/tmux.js.map +1 -0
- package/dist/hooks/extensibility/sdk.d.ts +11 -0
- package/dist/hooks/extensibility/sdk.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk.js +21 -0
- package/dist/hooks/extensibility/sdk.js.map +1 -0
- package/dist/hooks/extensibility/types.d.ts +175 -0
- package/dist/hooks/extensibility/types.d.ts.map +1 -0
- package/dist/hooks/extensibility/types.js +2 -0
- package/dist/hooks/extensibility/types.js.map +1 -0
- package/dist/hooks/keyword-detector.d.ts +170 -0
- package/dist/hooks/keyword-detector.d.ts.map +1 -0
- package/dist/hooks/keyword-detector.js +1363 -0
- package/dist/hooks/keyword-detector.js.map +1 -0
- package/dist/hooks/keyword-registry.d.ts +15 -0
- package/dist/hooks/keyword-registry.d.ts.map +1 -0
- package/dist/hooks/keyword-registry.js +56 -0
- package/dist/hooks/keyword-registry.js.map +1 -0
- package/dist/hooks/prompt-guidance-contract.d.ts +20 -0
- package/dist/hooks/prompt-guidance-contract.d.ts.map +1 -0
- package/dist/hooks/prompt-guidance-contract.js +380 -0
- package/dist/hooks/prompt-guidance-contract.js.map +1 -0
- package/dist/hooks/session.d.ts +83 -0
- package/dist/hooks/session.d.ts.map +1 -0
- package/dist/hooks/session.js +412 -0
- package/dist/hooks/session.js.map +1 -0
- package/dist/hooks/task-size-detector.d.ts +72 -0
- package/dist/hooks/task-size-detector.d.ts.map +1 -0
- package/dist/hooks/task-size-detector.js +203 -0
- package/dist/hooks/task-size-detector.js.map +1 -0
- package/dist/hooks/triage-config.d.ts +33 -0
- package/dist/hooks/triage-config.d.ts.map +1 -0
- package/dist/hooks/triage-config.js +87 -0
- package/dist/hooks/triage-config.js.map +1 -0
- package/dist/hooks/triage-heuristic.d.ts +20 -0
- package/dist/hooks/triage-heuristic.d.ts.map +1 -0
- package/dist/hooks/triage-heuristic.js +287 -0
- package/dist/hooks/triage-heuristic.js.map +1 -0
- package/dist/hooks/triage-state.d.ts +63 -0
- package/dist/hooks/triage-state.d.ts.map +1 -0
- package/dist/hooks/triage-state.js +139 -0
- package/dist/hooks/triage-state.js.map +1 -0
- package/dist/hud/__tests__/authority.test.d.ts +2 -0
- package/dist/hud/__tests__/authority.test.d.ts.map +1 -0
- package/dist/hud/__tests__/authority.test.js +527 -0
- package/dist/hud/__tests__/authority.test.js.map +1 -0
- package/dist/hud/__tests__/colors.test.d.ts +2 -0
- package/dist/hud/__tests__/colors.test.d.ts.map +1 -0
- package/dist/hud/__tests__/colors.test.js +92 -0
- package/dist/hud/__tests__/colors.test.js.map +1 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts +10 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts.map +1 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js +185 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js.map +1 -0
- package/dist/hud/__tests__/index.test.d.ts +2 -0
- package/dist/hud/__tests__/index.test.d.ts.map +1 -0
- package/dist/hud/__tests__/index.test.js +684 -0
- package/dist/hud/__tests__/index.test.js.map +1 -0
- package/dist/hud/__tests__/reconcile.test.d.ts +2 -0
- package/dist/hud/__tests__/reconcile.test.d.ts.map +1 -0
- package/dist/hud/__tests__/reconcile.test.js +1621 -0
- package/dist/hud/__tests__/reconcile.test.js.map +1 -0
- package/dist/hud/__tests__/render.test.d.ts +2 -0
- package/dist/hud/__tests__/render.test.d.ts.map +1 -0
- package/dist/hud/__tests__/render.test.js +983 -0
- package/dist/hud/__tests__/render.test.js.map +1 -0
- package/dist/hud/__tests__/resource-leak-watch.test.d.ts +2 -0
- package/dist/hud/__tests__/resource-leak-watch.test.d.ts.map +1 -0
- package/dist/hud/__tests__/resource-leak-watch.test.js +28 -0
- package/dist/hud/__tests__/resource-leak-watch.test.js.map +1 -0
- package/dist/hud/__tests__/state.test.d.ts +2 -0
- package/dist/hud/__tests__/state.test.d.ts.map +1 -0
- package/dist/hud/__tests__/state.test.js +1212 -0
- package/dist/hud/__tests__/state.test.js.map +1 -0
- package/dist/hud/__tests__/tmux.test.d.ts +2 -0
- package/dist/hud/__tests__/tmux.test.d.ts.map +1 -0
- package/dist/hud/__tests__/tmux.test.js +679 -0
- package/dist/hud/__tests__/tmux.test.js.map +1 -0
- package/dist/hud/__tests__/types.test.d.ts +2 -0
- package/dist/hud/__tests__/types.test.d.ts.map +1 -0
- package/dist/hud/__tests__/types.test.js +79 -0
- package/dist/hud/__tests__/types.test.js.map +1 -0
- package/dist/hud/__tests__/watch.test.d.ts +2 -0
- package/dist/hud/__tests__/watch.test.d.ts.map +1 -0
- package/dist/hud/__tests__/watch.test.js +63 -0
- package/dist/hud/__tests__/watch.test.js.map +1 -0
- package/dist/hud/authority.d.ts +22 -0
- package/dist/hud/authority.d.ts.map +1 -0
- package/dist/hud/authority.js +377 -0
- package/dist/hud/authority.js.map +1 -0
- package/dist/hud/colors.d.ts +20 -0
- package/dist/hud/colors.d.ts.map +1 -0
- package/dist/hud/colors.js +60 -0
- package/dist/hud/colors.js.map +1 -0
- package/dist/hud/constants.d.ts +16 -0
- package/dist/hud/constants.d.ts.map +1 -0
- package/dist/hud/constants.js +25 -0
- package/dist/hud/constants.js.map +1 -0
- package/dist/hud/index.d.ts +79 -0
- package/dist/hud/index.d.ts.map +1 -0
- package/dist/hud/index.js +384 -0
- package/dist/hud/index.js.map +1 -0
- package/dist/hud/reconcile.d.ts +37 -0
- package/dist/hud/reconcile.d.ts.map +1 -0
- package/dist/hud/reconcile.js +326 -0
- package/dist/hud/reconcile.js.map +1 -0
- package/dist/hud/render.d.ts +15 -0
- package/dist/hud/render.d.ts.map +1 -0
- package/dist/hud/render.js +453 -0
- package/dist/hud/render.js.map +1 -0
- package/dist/hud/state.d.ts +27 -0
- package/dist/hud/state.d.ts.map +1 -0
- package/dist/hud/state.js +477 -0
- package/dist/hud/state.js.map +1 -0
- package/dist/hud/tmux.d.ts +87 -0
- package/dist/hud/tmux.d.ts.map +1 -0
- package/dist/hud/tmux.js +572 -0
- package/dist/hud/tmux.js.map +1 -0
- package/dist/hud/types.d.ts +165 -0
- package/dist/hud/types.d.ts.map +1 -0
- package/dist/hud/types.js +14 -0
- package/dist/hud/types.js.map +1 -0
- package/dist/imagegen/continuation.d.ts +44 -0
- package/dist/imagegen/continuation.d.ts.map +1 -0
- package/dist/imagegen/continuation.js +220 -0
- package/dist/imagegen/continuation.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/__tests__/bootstrap.test.d.ts +2 -0
- package/dist/mcp/__tests__/bootstrap.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/bootstrap.test.js +372 -0
- package/dist/mcp/__tests__/bootstrap.test.js.map +1 -0
- package/dist/mcp/__tests__/code-intel-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/code-intel-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/code-intel-server.test.js +70 -0
- package/dist/mcp/__tests__/code-intel-server.test.js.map +1 -0
- package/dist/mcp/__tests__/hermes-bridge.test.d.ts +2 -0
- package/dist/mcp/__tests__/hermes-bridge.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/hermes-bridge.test.js +651 -0
- package/dist/mcp/__tests__/hermes-bridge.test.js.map +1 -0
- package/dist/mcp/__tests__/memory-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/memory-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/memory-server.test.js +36 -0
- package/dist/mcp/__tests__/memory-server.test.js.map +1 -0
- package/dist/mcp/__tests__/memory-validation.test.d.ts +2 -0
- package/dist/mcp/__tests__/memory-validation.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/memory-validation.test.js +29 -0
- package/dist/mcp/__tests__/memory-validation.test.js.map +1 -0
- package/dist/mcp/__tests__/path-traversal.test.d.ts +2 -0
- package/dist/mcp/__tests__/path-traversal.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/path-traversal.test.js +83 -0
- package/dist/mcp/__tests__/path-traversal.test.js.map +1 -0
- package/dist/mcp/__tests__/server-lifecycle.test.d.ts +2 -0
- package/dist/mcp/__tests__/server-lifecycle.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/server-lifecycle.test.js +308 -0
- package/dist/mcp/__tests__/server-lifecycle.test.js.map +1 -0
- package/dist/mcp/__tests__/state-paths.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-paths.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-paths.test.js +477 -0
- package/dist/mcp/__tests__/state-paths.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.js +109 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server-schema.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server-schema.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server-schema.test.js +29 -0
- package/dist/mcp/__tests__/state-server-schema.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.js +35 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server.test.js +1318 -0
- package/dist/mcp/__tests__/state-server.test.js.map +1 -0
- package/dist/mcp/__tests__/trace-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/trace-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/trace-server.test.js +119 -0
- package/dist/mcp/__tests__/trace-server.test.js.map +1 -0
- package/dist/mcp/__tests__/wiki-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/wiki-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/wiki-server.test.js +126 -0
- package/dist/mcp/__tests__/wiki-server.test.js.map +1 -0
- package/dist/mcp/bootstrap.d.ts +44 -0
- package/dist/mcp/bootstrap.d.ts.map +1 -0
- package/dist/mcp/bootstrap.js +520 -0
- package/dist/mcp/bootstrap.js.map +1 -0
- package/dist/mcp/code-intel-server.d.ts +333 -0
- package/dist/mcp/code-intel-server.d.ts.map +1 -0
- package/dist/mcp/code-intel-server.js +605 -0
- package/dist/mcp/code-intel-server.js.map +1 -0
- package/dist/mcp/hermes-bridge.d.ts +124 -0
- package/dist/mcp/hermes-bridge.d.ts.map +1 -0
- package/dist/mcp/hermes-bridge.js +549 -0
- package/dist/mcp/hermes-bridge.js.map +1 -0
- package/dist/mcp/hermes-server.d.ts +374 -0
- package/dist/mcp/hermes-server.d.ts.map +1 -0
- package/dist/mcp/hermes-server.js +158 -0
- package/dist/mcp/hermes-server.js.map +1 -0
- package/dist/mcp/lifecycle-telemetry.d.ts +16 -0
- package/dist/mcp/lifecycle-telemetry.d.ts.map +1 -0
- package/dist/mcp/lifecycle-telemetry.js +95 -0
- package/dist/mcp/lifecycle-telemetry.js.map +1 -0
- package/dist/mcp/memory-server.d.ts +201 -0
- package/dist/mcp/memory-server.d.ts.map +1 -0
- package/dist/mcp/memory-server.js +441 -0
- package/dist/mcp/memory-server.js.map +1 -0
- package/dist/mcp/memory-validation.d.ts +9 -0
- package/dist/mcp/memory-validation.d.ts.map +1 -0
- package/dist/mcp/memory-validation.js +11 -0
- package/dist/mcp/memory-validation.js.map +1 -0
- package/dist/mcp/state-paths.d.ts +91 -0
- package/dist/mcp/state-paths.d.ts.map +1 -0
- package/dist/mcp/state-paths.js +473 -0
- package/dist/mcp/state-paths.js.map +1 -0
- package/dist/mcp/state-server.d.ts +222 -0
- package/dist/mcp/state-server.d.ts.map +1 -0
- package/dist/mcp/state-server.js +181 -0
- package/dist/mcp/state-server.js.map +1 -0
- package/dist/mcp/trace-server.d.ts +81 -0
- package/dist/mcp/trace-server.d.ts.map +1 -0
- package/dist/mcp/trace-server.js +271 -0
- package/dist/mcp/trace-server.js.map +1 -0
- package/dist/mcp/wiki-server.d.ts +181 -0
- package/dist/mcp/wiki-server.d.ts.map +1 -0
- package/dist/mcp/wiki-server.js +244 -0
- package/dist/mcp/wiki-server.js.map +1 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.d.ts +2 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.js +154 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.js.map +1 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.d.ts +2 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.js +129 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.js.map +1 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.d.ts +2 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.js +38 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.js.map +1 -0
- package/dist/modes/__tests__/base-ralph-contract.test.d.ts +2 -0
- package/dist/modes/__tests__/base-ralph-contract.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-ralph-contract.test.js +64 -0
- package/dist/modes/__tests__/base-ralph-contract.test.js.map +1 -0
- package/dist/modes/__tests__/base-session-scope.test.d.ts +2 -0
- package/dist/modes/__tests__/base-session-scope.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-session-scope.test.js +146 -0
- package/dist/modes/__tests__/base-session-scope.test.js.map +1 -0
- package/dist/modes/__tests__/base-tmux-pane.test.d.ts +2 -0
- package/dist/modes/__tests__/base-tmux-pane.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-tmux-pane.test.js +100 -0
- package/dist/modes/__tests__/base-tmux-pane.test.js.map +1 -0
- package/dist/modes/base.d.ts +60 -0
- package/dist/modes/base.d.ts.map +1 -0
- package/dist/modes/base.js +346 -0
- package/dist/modes/base.js.map +1 -0
- package/dist/notifications/__tests__/config.test.d.ts +2 -0
- package/dist/notifications/__tests__/config.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/config.test.js +269 -0
- package/dist/notifications/__tests__/config.test.js.map +1 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.d.ts +2 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.js +84 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.js.map +1 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.d.ts +5 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.js +100 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.js.map +1 -0
- package/dist/notifications/__tests__/dispatcher.test.d.ts +2 -0
- package/dist/notifications/__tests__/dispatcher.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/dispatcher.test.js +202 -0
- package/dist/notifications/__tests__/dispatcher.test.js.map +1 -0
- package/dist/notifications/__tests__/formatter.test.d.ts +2 -0
- package/dist/notifications/__tests__/formatter.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/formatter.test.js +270 -0
- package/dist/notifications/__tests__/formatter.test.js.map +1 -0
- package/dist/notifications/__tests__/hook-config.test.d.ts +5 -0
- package/dist/notifications/__tests__/hook-config.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/hook-config.test.js +139 -0
- package/dist/notifications/__tests__/hook-config.test.js.map +1 -0
- package/dist/notifications/__tests__/http-client-resource.test.d.ts +2 -0
- package/dist/notifications/__tests__/http-client-resource.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/http-client-resource.test.js +41 -0
- package/dist/notifications/__tests__/http-client-resource.test.js.map +1 -0
- package/dist/notifications/__tests__/http-client.test.d.ts +2 -0
- package/dist/notifications/__tests__/http-client.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/http-client.test.js +90 -0
- package/dist/notifications/__tests__/http-client.test.js.map +1 -0
- package/dist/notifications/__tests__/idle-cooldown.test.d.ts +5 -0
- package/dist/notifications/__tests__/idle-cooldown.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/idle-cooldown.test.js +209 -0
- package/dist/notifications/__tests__/idle-cooldown.test.js.map +1 -0
- package/dist/notifications/__tests__/index.test.d.ts +2 -0
- package/dist/notifications/__tests__/index.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/index.test.js +188 -0
- package/dist/notifications/__tests__/index.test.js.map +1 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.d.ts +2 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.js +86 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.js.map +1 -0
- package/dist/notifications/__tests__/notifier.test.d.ts +2 -0
- package/dist/notifications/__tests__/notifier.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/notifier.test.js +201 -0
- package/dist/notifications/__tests__/notifier.test.js.map +1 -0
- package/dist/notifications/__tests__/profiles.test.d.ts +2 -0
- package/dist/notifications/__tests__/profiles.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/profiles.test.js +404 -0
- package/dist/notifications/__tests__/profiles.test.js.map +1 -0
- package/dist/notifications/__tests__/reply-config.test.d.ts +2 -0
- package/dist/notifications/__tests__/reply-config.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/reply-config.test.js +79 -0
- package/dist/notifications/__tests__/reply-config.test.js.map +1 -0
- package/dist/notifications/__tests__/reply-listener.test.d.ts +2 -0
- package/dist/notifications/__tests__/reply-listener.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/reply-listener.test.js +723 -0
- package/dist/notifications/__tests__/reply-listener.test.js.map +1 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.d.ts +2 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.js +93 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.js.map +1 -0
- package/dist/notifications/__tests__/session-registry.test.d.ts +2 -0
- package/dist/notifications/__tests__/session-registry.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/session-registry.test.js +234 -0
- package/dist/notifications/__tests__/session-registry.test.js.map +1 -0
- package/dist/notifications/__tests__/session-status.test.d.ts +2 -0
- package/dist/notifications/__tests__/session-status.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/session-status.test.js +249 -0
- package/dist/notifications/__tests__/session-status.test.js.map +1 -0
- package/dist/notifications/__tests__/temp-mode.test.d.ts +2 -0
- package/dist/notifications/__tests__/temp-mode.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/temp-mode.test.js +172 -0
- package/dist/notifications/__tests__/temp-mode.test.js.map +1 -0
- package/dist/notifications/__tests__/template-engine.test.d.ts +5 -0
- package/dist/notifications/__tests__/template-engine.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/template-engine.test.js +158 -0
- package/dist/notifications/__tests__/template-engine.test.js.map +1 -0
- package/dist/notifications/__tests__/tmux-detector.test.d.ts +2 -0
- package/dist/notifications/__tests__/tmux-detector.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/tmux-detector.test.js +204 -0
- package/dist/notifications/__tests__/tmux-detector.test.js.map +1 -0
- package/dist/notifications/__tests__/tmux.test.d.ts +2 -0
- package/dist/notifications/__tests__/tmux.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/tmux.test.js +285 -0
- package/dist/notifications/__tests__/tmux.test.js.map +1 -0
- package/dist/notifications/__tests__/verbosity.test.d.ts +2 -0
- package/dist/notifications/__tests__/verbosity.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/verbosity.test.js +257 -0
- package/dist/notifications/__tests__/verbosity.test.js.map +1 -0
- package/dist/notifications/config.d.ts +65 -0
- package/dist/notifications/config.d.ts.map +1 -0
- package/dist/notifications/config.js +615 -0
- package/dist/notifications/config.js.map +1 -0
- package/dist/notifications/dispatch-cooldown.d.ts +36 -0
- package/dist/notifications/dispatch-cooldown.d.ts.map +1 -0
- package/dist/notifications/dispatch-cooldown.js +109 -0
- package/dist/notifications/dispatch-cooldown.js.map +1 -0
- package/dist/notifications/dispatcher.d.ts +15 -0
- package/dist/notifications/dispatcher.d.ts.map +1 -0
- package/dist/notifications/dispatcher.js +385 -0
- package/dist/notifications/dispatcher.js.map +1 -0
- package/dist/notifications/formatter.d.ts +30 -0
- package/dist/notifications/formatter.d.ts.map +1 -0
- package/dist/notifications/formatter.js +234 -0
- package/dist/notifications/formatter.js.map +1 -0
- package/dist/notifications/hook-config-types.d.ts +43 -0
- package/dist/notifications/hook-config-types.d.ts.map +1 -0
- package/dist/notifications/hook-config-types.js +8 -0
- package/dist/notifications/hook-config-types.js.map +1 -0
- package/dist/notifications/hook-config.d.ts +40 -0
- package/dist/notifications/hook-config.d.ts.map +1 -0
- package/dist/notifications/hook-config.js +127 -0
- package/dist/notifications/hook-config.js.map +1 -0
- package/dist/notifications/http-client.d.ts +22 -0
- package/dist/notifications/http-client.d.ts.map +1 -0
- package/dist/notifications/http-client.js +349 -0
- package/dist/notifications/http-client.js.map +1 -0
- package/dist/notifications/idle-cooldown.d.ts +61 -0
- package/dist/notifications/idle-cooldown.d.ts.map +1 -0
- package/dist/notifications/idle-cooldown.js +207 -0
- package/dist/notifications/idle-cooldown.js.map +1 -0
- package/dist/notifications/index.d.ts +40 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +228 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/lifecycle-dedupe.d.ts +8 -0
- package/dist/notifications/lifecycle-dedupe.d.ts.map +1 -0
- package/dist/notifications/lifecycle-dedupe.js +112 -0
- package/dist/notifications/lifecycle-dedupe.js.map +1 -0
- package/dist/notifications/notifier.d.ts +45 -0
- package/dist/notifications/notifier.d.ts.map +1 -0
- package/dist/notifications/notifier.js +146 -0
- package/dist/notifications/notifier.js.map +1 -0
- package/dist/notifications/reply-listener.d.ts +123 -0
- package/dist/notifications/reply-listener.d.ts.map +1 -0
- package/dist/notifications/reply-listener.js +846 -0
- package/dist/notifications/reply-listener.js.map +1 -0
- package/dist/notifications/session-registry.d.ts +26 -0
- package/dist/notifications/session-registry.d.ts.map +1 -0
- package/dist/notifications/session-registry.js +293 -0
- package/dist/notifications/session-registry.js.map +1 -0
- package/dist/notifications/session-status.d.ts +25 -0
- package/dist/notifications/session-status.d.ts.map +1 -0
- package/dist/notifications/session-status.js +202 -0
- package/dist/notifications/session-status.js.map +1 -0
- package/dist/notifications/temp-contract.d.ts +22 -0
- package/dist/notifications/temp-contract.d.ts.map +1 -0
- package/dist/notifications/temp-contract.js +147 -0
- package/dist/notifications/temp-contract.js.map +1 -0
- package/dist/notifications/template-engine.d.ts +34 -0
- package/dist/notifications/template-engine.d.ts.map +1 -0
- package/dist/notifications/template-engine.js +249 -0
- package/dist/notifications/template-engine.js.map +1 -0
- package/dist/notifications/tmux-detector.d.ts +59 -0
- package/dist/notifications/tmux-detector.d.ts.map +1 -0
- package/dist/notifications/tmux-detector.js +126 -0
- package/dist/notifications/tmux-detector.js.map +1 -0
- package/dist/notifications/tmux.d.ts +44 -0
- package/dist/notifications/tmux.d.ts.map +1 -0
- package/dist/notifications/tmux.js +293 -0
- package/dist/notifications/tmux.js.map +1 -0
- package/dist/notifications/types.d.ts +226 -0
- package/dist/notifications/types.d.ts.map +1 -0
- package/dist/notifications/types.js +9 -0
- package/dist/notifications/types.js.map +1 -0
- package/dist/openclaw/__tests__/config.test.d.ts +6 -0
- package/dist/openclaw/__tests__/config.test.d.ts.map +1 -0
- package/dist/openclaw/__tests__/config.test.js +344 -0
- package/dist/openclaw/__tests__/config.test.js.map +1 -0
- package/dist/openclaw/__tests__/dispatcher.test.d.ts +5 -0
- package/dist/openclaw/__tests__/dispatcher.test.d.ts.map +1 -0
- package/dist/openclaw/__tests__/dispatcher.test.js +278 -0
- package/dist/openclaw/__tests__/dispatcher.test.js.map +1 -0
- package/dist/openclaw/__tests__/index.test.d.ts +6 -0
- package/dist/openclaw/__tests__/index.test.d.ts.map +1 -0
- package/dist/openclaw/__tests__/index.test.js +382 -0
- package/dist/openclaw/__tests__/index.test.js.map +1 -0
- package/dist/openclaw/config.d.ts +59 -0
- package/dist/openclaw/config.d.ts.map +1 -0
- package/dist/openclaw/config.js +400 -0
- package/dist/openclaw/config.js.map +1 -0
- package/dist/openclaw/dispatcher.d.ts +75 -0
- package/dist/openclaw/dispatcher.d.ts.map +1 -0
- package/dist/openclaw/dispatcher.js +223 -0
- package/dist/openclaw/dispatcher.js.map +1 -0
- package/dist/openclaw/index.d.ts +29 -0
- package/dist/openclaw/index.d.ts.map +1 -0
- package/dist/openclaw/index.js +149 -0
- package/dist/openclaw/index.js.map +1 -0
- package/dist/openclaw/types.d.ts +123 -0
- package/dist/openclaw/types.d.ts.map +1 -0
- package/dist/openclaw/types.js +12 -0
- package/dist/openclaw/types.js.map +1 -0
- package/dist/performance-goal/artifacts.d.ts +76 -0
- package/dist/performance-goal/artifacts.d.ts.map +1 -0
- package/dist/performance-goal/artifacts.js +221 -0
- package/dist/performance-goal/artifacts.js.map +1 -0
- package/dist/pipeline/__tests__/orchestrator.test.d.ts +2 -0
- package/dist/pipeline/__tests__/orchestrator.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/orchestrator.test.js +645 -0
- package/dist/pipeline/__tests__/orchestrator.test.js.map +1 -0
- package/dist/pipeline/__tests__/stages.test.d.ts +2 -0
- package/dist/pipeline/__tests__/stages.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/stages.test.js +1638 -0
- package/dist/pipeline/__tests__/stages.test.js.map +1 -0
- package/dist/pipeline/index.d.ts +25 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/index.js +17 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/pipeline/orchestrator.d.ts +52 -0
- package/dist/pipeline/orchestrator.d.ts.map +1 -0
- package/dist/pipeline/orchestrator.js +392 -0
- package/dist/pipeline/orchestrator.js.map +1 -0
- package/dist/pipeline/review-verdict.d.ts +3 -0
- package/dist/pipeline/review-verdict.d.ts.map +1 -0
- package/dist/pipeline/review-verdict.js +14 -0
- package/dist/pipeline/review-verdict.js.map +1 -0
- package/dist/pipeline/stages/code-review.d.ts +35 -0
- package/dist/pipeline/stages/code-review.d.ts.map +1 -0
- package/dist/pipeline/stages/code-review.js +55 -0
- package/dist/pipeline/stages/code-review.js.map +1 -0
- package/dist/pipeline/stages/deep-interview.d.ts +15 -0
- package/dist/pipeline/stages/deep-interview.d.ts.map +1 -0
- package/dist/pipeline/stages/deep-interview.js +32 -0
- package/dist/pipeline/stages/deep-interview.js.map +1 -0
- package/dist/pipeline/stages/ralph-verify.d.ts +53 -0
- package/dist/pipeline/stages/ralph-verify.d.ts.map +1 -0
- package/dist/pipeline/stages/ralph-verify.js +89 -0
- package/dist/pipeline/stages/ralph-verify.js.map +1 -0
- package/dist/pipeline/stages/ralplan.d.ts +26 -0
- package/dist/pipeline/stages/ralplan.d.ts.map +1 -0
- package/dist/pipeline/stages/ralplan.js +151 -0
- package/dist/pipeline/stages/ralplan.js.map +1 -0
- package/dist/pipeline/stages/team-exec.d.ts +52 -0
- package/dist/pipeline/stages/team-exec.d.ts.map +1 -0
- package/dist/pipeline/stages/team-exec.js +266 -0
- package/dist/pipeline/stages/team-exec.js.map +1 -0
- package/dist/pipeline/stages/ultragoal.d.ts +19 -0
- package/dist/pipeline/stages/ultragoal.d.ts.map +1 -0
- package/dist/pipeline/stages/ultragoal.js +38 -0
- package/dist/pipeline/stages/ultragoal.js.map +1 -0
- package/dist/pipeline/stages/ultraqa.d.ts +33 -0
- package/dist/pipeline/stages/ultraqa.d.ts.map +1 -0
- package/dist/pipeline/stages/ultraqa.js +49 -0
- package/dist/pipeline/stages/ultraqa.js.map +1 -0
- package/dist/pipeline/types.d.ts +124 -0
- package/dist/pipeline/types.d.ts.map +1 -0
- package/dist/pipeline/types.js +8 -0
- package/dist/pipeline/types.js.map +1 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.d.ts +2 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.d.ts.map +1 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js +158 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js.map +1 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.d.ts +2 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.d.ts.map +1 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.js +440 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.js.map +1 -0
- package/dist/planning/__tests__/artifacts.test.d.ts +2 -0
- package/dist/planning/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/planning/__tests__/artifacts.test.js +942 -0
- package/dist/planning/__tests__/artifacts.test.js.map +1 -0
- package/dist/planning/__tests__/markdown-structure.test.d.ts +2 -0
- package/dist/planning/__tests__/markdown-structure.test.d.ts.map +1 -0
- package/dist/planning/__tests__/markdown-structure.test.js +459 -0
- package/dist/planning/__tests__/markdown-structure.test.js.map +1 -0
- package/dist/planning/artifact-names.d.ts +13 -0
- package/dist/planning/artifact-names.d.ts.map +1 -0
- package/dist/planning/artifact-names.js +108 -0
- package/dist/planning/artifact-names.js.map +1 -0
- package/dist/planning/artifacts.d.ts +65 -0
- package/dist/planning/artifacts.d.ts.map +1 -0
- package/dist/planning/artifacts.js +561 -0
- package/dist/planning/artifacts.js.map +1 -0
- package/dist/planning/markdown-structure.d.ts +20 -0
- package/dist/planning/markdown-structure.d.ts.map +1 -0
- package/dist/planning/markdown-structure.js +137 -0
- package/dist/planning/markdown-structure.js.map +1 -0
- package/dist/question/__tests__/client.test.d.ts +2 -0
- package/dist/question/__tests__/client.test.d.ts.map +1 -0
- package/dist/question/__tests__/client.test.js +90 -0
- package/dist/question/__tests__/client.test.js.map +1 -0
- package/dist/question/__tests__/deep-interview.test.d.ts +2 -0
- package/dist/question/__tests__/deep-interview.test.d.ts.map +1 -0
- package/dist/question/__tests__/deep-interview.test.js +440 -0
- package/dist/question/__tests__/deep-interview.test.js.map +1 -0
- package/dist/question/__tests__/policy.test.d.ts +2 -0
- package/dist/question/__tests__/policy.test.d.ts.map +1 -0
- package/dist/question/__tests__/policy.test.js +273 -0
- package/dist/question/__tests__/policy.test.js.map +1 -0
- package/dist/question/__tests__/renderer.test.d.ts +2 -0
- package/dist/question/__tests__/renderer.test.d.ts.map +1 -0
- package/dist/question/__tests__/renderer.test.js +1461 -0
- package/dist/question/__tests__/renderer.test.js.map +1 -0
- package/dist/question/__tests__/state.test.d.ts +2 -0
- package/dist/question/__tests__/state.test.d.ts.map +1 -0
- package/dist/question/__tests__/state.test.js +541 -0
- package/dist/question/__tests__/state.test.js.map +1 -0
- package/dist/question/__tests__/types.test.d.ts +2 -0
- package/dist/question/__tests__/types.test.d.ts.map +1 -0
- package/dist/question/__tests__/types.test.js +65 -0
- package/dist/question/__tests__/types.test.js.map +1 -0
- package/dist/question/__tests__/ui.test.d.ts +2 -0
- package/dist/question/__tests__/ui.test.d.ts.map +1 -0
- package/dist/question/__tests__/ui.test.js +483 -0
- package/dist/question/__tests__/ui.test.js.map +1 -0
- package/dist/question/autopilot-wait.d.ts +21 -0
- package/dist/question/autopilot-wait.d.ts.map +1 -0
- package/dist/question/autopilot-wait.js +251 -0
- package/dist/question/autopilot-wait.js.map +1 -0
- package/dist/question/client.d.ts +64 -0
- package/dist/question/client.d.ts.map +1 -0
- package/dist/question/client.js +77 -0
- package/dist/question/client.js.map +1 -0
- package/dist/question/deep-interview.d.ts +33 -0
- package/dist/question/deep-interview.d.ts.map +1 -0
- package/dist/question/deep-interview.js +216 -0
- package/dist/question/deep-interview.js.map +1 -0
- package/dist/question/events.d.ts +53 -0
- package/dist/question/events.d.ts.map +1 -0
- package/dist/question/events.js +201 -0
- package/dist/question/events.js.map +1 -0
- package/dist/question/policy.d.ts +19 -0
- package/dist/question/policy.d.ts.map +1 -0
- package/dist/question/policy.js +95 -0
- package/dist/question/policy.js.map +1 -0
- package/dist/question/renderer.d.ts +66 -0
- package/dist/question/renderer.d.ts.map +1 -0
- package/dist/question/renderer.js +748 -0
- package/dist/question/renderer.js.map +1 -0
- package/dist/question/state.d.ts +56 -0
- package/dist/question/state.d.ts.map +1 -0
- package/dist/question/state.js +432 -0
- package/dist/question/state.js.map +1 -0
- package/dist/question/types.d.ts +92 -0
- package/dist/question/types.d.ts.map +1 -0
- package/dist/question/types.js +117 -0
- package/dist/question/types.js.map +1 -0
- package/dist/question/ui.d.ts +66 -0
- package/dist/question/ui.d.ts.map +1 -0
- package/dist/question/ui.js +458 -0
- package/dist/question/ui.js.map +1 -0
- package/dist/ralph/__tests__/completion-audit.test.d.ts +2 -0
- package/dist/ralph/__tests__/completion-audit.test.d.ts.map +1 -0
- package/dist/ralph/__tests__/completion-audit.test.js +160 -0
- package/dist/ralph/__tests__/completion-audit.test.js.map +1 -0
- package/dist/ralph/__tests__/persistence.test.d.ts +2 -0
- package/dist/ralph/__tests__/persistence.test.d.ts.map +1 -0
- package/dist/ralph/__tests__/persistence.test.js +116 -0
- package/dist/ralph/__tests__/persistence.test.js.map +1 -0
- package/dist/ralph/completion-audit.d.ts +8 -0
- package/dist/ralph/completion-audit.d.ts.map +1 -0
- package/dist/ralph/completion-audit.js +99 -0
- package/dist/ralph/completion-audit.js.map +1 -0
- package/dist/ralph/contract.d.ts +17 -0
- package/dist/ralph/contract.d.ts.map +1 -0
- package/dist/ralph/contract.js +108 -0
- package/dist/ralph/contract.js.map +1 -0
- package/dist/ralph/persistence.d.ts +29 -0
- package/dist/ralph/persistence.d.ts.map +1 -0
- package/dist/ralph/persistence.js +273 -0
- package/dist/ralph/persistence.js.map +1 -0
- package/dist/ralplan/__tests__/consensus-gate.test.d.ts +2 -0
- package/dist/ralplan/__tests__/consensus-gate.test.d.ts.map +1 -0
- package/dist/ralplan/__tests__/consensus-gate.test.js +192 -0
- package/dist/ralplan/__tests__/consensus-gate.test.js.map +1 -0
- package/dist/ralplan/__tests__/runtime.test.d.ts +2 -0
- package/dist/ralplan/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/ralplan/__tests__/runtime.test.js +548 -0
- package/dist/ralplan/__tests__/runtime.test.js.map +1 -0
- package/dist/ralplan/consensus-gate.d.ts +37 -0
- package/dist/ralplan/consensus-gate.d.ts.map +1 -0
- package/dist/ralplan/consensus-gate.js +422 -0
- package/dist/ralplan/consensus-gate.js.map +1 -0
- package/dist/ralplan/runtime.d.ts +86 -0
- package/dist/ralplan/runtime.d.ts.map +1 -0
- package/dist/ralplan/runtime.js +365 -0
- package/dist/ralplan/runtime.js.map +1 -0
- package/dist/runtime/__tests__/bridge.test.d.ts +2 -0
- package/dist/runtime/__tests__/bridge.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/bridge.test.js +194 -0
- package/dist/runtime/__tests__/bridge.test.js.map +1 -0
- package/dist/runtime/__tests__/process-tree.test.d.ts +2 -0
- package/dist/runtime/__tests__/process-tree.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/process-tree.test.js +107 -0
- package/dist/runtime/__tests__/process-tree.test.js.map +1 -0
- package/dist/runtime/__tests__/run-loop.test.d.ts +2 -0
- package/dist/runtime/__tests__/run-loop.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/run-loop.test.js +35 -0
- package/dist/runtime/__tests__/run-loop.test.js.map +1 -0
- package/dist/runtime/__tests__/run-outcome.test.d.ts +2 -0
- package/dist/runtime/__tests__/run-outcome.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/run-outcome.test.js +102 -0
- package/dist/runtime/__tests__/run-outcome.test.js.map +1 -0
- package/dist/runtime/__tests__/run-state.test.d.ts +2 -0
- package/dist/runtime/__tests__/run-state.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/run-state.test.js +37 -0
- package/dist/runtime/__tests__/run-state.test.js.map +1 -0
- package/dist/runtime/bridge.d.ts +214 -0
- package/dist/runtime/bridge.d.ts.map +1 -0
- package/dist/runtime/bridge.js +223 -0
- package/dist/runtime/bridge.js.map +1 -0
- package/dist/runtime/process-tree.d.ts +28 -0
- package/dist/runtime/process-tree.d.ts.map +1 -0
- package/dist/runtime/process-tree.js +230 -0
- package/dist/runtime/process-tree.js.map +1 -0
- package/dist/runtime/run-loop.d.ts +45 -0
- package/dist/runtime/run-loop.d.ts.map +1 -0
- package/dist/runtime/run-loop.js +51 -0
- package/dist/runtime/run-loop.js.map +1 -0
- package/dist/runtime/run-outcome.d.ts +46 -0
- package/dist/runtime/run-outcome.d.ts.map +1 -0
- package/dist/runtime/run-outcome.js +285 -0
- package/dist/runtime/run-outcome.js.map +1 -0
- package/dist/runtime/run-state.d.ts +40 -0
- package/dist/runtime/run-state.d.ts.map +1 -0
- package/dist/runtime/run-state.js +120 -0
- package/dist/runtime/run-state.js.map +1 -0
- package/dist/runtime/terminal-lifecycle.d.ts +11 -0
- package/dist/runtime/terminal-lifecycle.d.ts.map +1 -0
- package/dist/runtime/terminal-lifecycle.js +52 -0
- package/dist/runtime/terminal-lifecycle.js.map +1 -0
- package/dist/scripts/__tests__/codex-native-hook.test.d.ts +2 -0
- package/dist/scripts/__tests__/codex-native-hook.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/codex-native-hook.test.js +14253 -0
- package/dist/scripts/__tests__/codex-native-hook.test.js.map +1 -0
- package/dist/scripts/__tests__/docs-site-contract.test.d.ts +2 -0
- package/dist/scripts/__tests__/docs-site-contract.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/docs-site-contract.test.js +42 -0
- package/dist/scripts/__tests__/docs-site-contract.test.js.map +1 -0
- package/dist/scripts/__tests__/generate-release-body.test.d.ts +2 -0
- package/dist/scripts/__tests__/generate-release-body.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/generate-release-body.test.js +233 -0
- package/dist/scripts/__tests__/generate-release-body.test.js.map +1 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.d.ts +2 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.js +227 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.js.map +1 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.js +421 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.js.map +1 -0
- package/dist/scripts/__tests__/notify-state-io.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-state-io.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-state-io.test.js +111 -0
- package/dist/scripts/__tests__/notify-state-io.test.js.map +1 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.js +57 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.js.map +1 -0
- package/dist/scripts/__tests__/postinstall.test.d.ts +2 -0
- package/dist/scripts/__tests__/postinstall.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/postinstall.test.js +92 -0
- package/dist/scripts/__tests__/postinstall.test.js.map +1 -0
- package/dist/scripts/__tests__/prompt-inventory.test.d.ts +2 -0
- package/dist/scripts/__tests__/prompt-inventory.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/prompt-inventory.test.js +56 -0
- package/dist/scripts/__tests__/prompt-inventory.test.js.map +1 -0
- package/dist/scripts/__tests__/run-test-files.test.d.ts +2 -0
- package/dist/scripts/__tests__/run-test-files.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/run-test-files.test.js +365 -0
- package/dist/scripts/__tests__/run-test-files.test.js.map +1 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.d.ts +2 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.js +160 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.js.map +1 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.d.ts +2 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.js +82 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.js.map +1 -0
- package/dist/scripts/__tests__/verify-native-agents.test.d.ts +2 -0
- package/dist/scripts/__tests__/verify-native-agents.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/verify-native-agents.test.js +246 -0
- package/dist/scripts/__tests__/verify-native-agents.test.js.map +1 -0
- package/dist/scripts/build-api.d.ts +2 -0
- package/dist/scripts/build-api.d.ts.map +1 -0
- package/dist/scripts/build-api.js +44 -0
- package/dist/scripts/build-api.js.map +1 -0
- package/dist/scripts/build-explore-harness.d.ts +3 -0
- package/dist/scripts/build-explore-harness.d.ts.map +1 -0
- package/dist/scripts/build-explore-harness.js +50 -0
- package/dist/scripts/build-explore-harness.js.map +1 -0
- package/dist/scripts/build-sparkshell.d.ts +2 -0
- package/dist/scripts/build-sparkshell.d.ts.map +1 -0
- package/dist/scripts/build-sparkshell.js +46 -0
- package/dist/scripts/build-sparkshell.js.map +1 -0
- package/dist/scripts/check-runtime-syntax.d.ts +3 -0
- package/dist/scripts/check-runtime-syntax.d.ts.map +1 -0
- package/dist/scripts/check-runtime-syntax.js +57 -0
- package/dist/scripts/check-runtime-syntax.js.map +1 -0
- package/dist/scripts/check-version-sync.d.ts +3 -0
- package/dist/scripts/check-version-sync.d.ts.map +1 -0
- package/dist/scripts/check-version-sync.js +53 -0
- package/dist/scripts/check-version-sync.js.map +1 -0
- package/dist/scripts/cleanup-explore-harness.d.ts +3 -0
- package/dist/scripts/cleanup-explore-harness.d.ts.map +1 -0
- package/dist/scripts/cleanup-explore-harness.js +17 -0
- package/dist/scripts/cleanup-explore-harness.js.map +1 -0
- package/dist/scripts/codex-execution-surface.d.ts +16 -0
- package/dist/scripts/codex-execution-surface.d.ts.map +1 -0
- package/dist/scripts/codex-execution-surface.js +42 -0
- package/dist/scripts/codex-execution-surface.js.map +1 -0
- package/dist/scripts/codex-native-hook.d.ts +26 -0
- package/dist/scripts/codex-native-hook.d.ts.map +1 -0
- package/dist/scripts/codex-native-hook.js +3842 -0
- package/dist/scripts/codex-native-hook.js.map +1 -0
- package/dist/scripts/codex-native-pre-post.d.ts +46 -0
- package/dist/scripts/codex-native-pre-post.d.ts.map +1 -0
- package/dist/scripts/codex-native-pre-post.js +1186 -0
- package/dist/scripts/codex-native-pre-post.js.map +1 -0
- package/dist/scripts/eval/eval-candidate-handoff.d.ts +2 -0
- package/dist/scripts/eval/eval-candidate-handoff.d.ts.map +1 -0
- package/dist/scripts/eval/eval-candidate-handoff.js +11 -0
- package/dist/scripts/eval/eval-candidate-handoff.js.map +1 -0
- package/dist/scripts/eval/eval-cli-discoverability.d.ts +3 -0
- package/dist/scripts/eval/eval-cli-discoverability.d.ts.map +1 -0
- package/dist/scripts/eval/eval-cli-discoverability.js +37 -0
- package/dist/scripts/eval/eval-cli-discoverability.js.map +1 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.d.ts +2 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.d.ts.map +1 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.js +11 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.js.map +1 -0
- package/dist/scripts/eval/eval-help-consistency.d.ts +2 -0
- package/dist/scripts/eval/eval-help-consistency.d.ts.map +1 -0
- package/dist/scripts/eval/eval-help-consistency.js +12 -0
- package/dist/scripts/eval/eval-help-consistency.js.map +1 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.d.ts +2 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.d.ts.map +1 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.js +31 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.js.map +1 -0
- package/dist/scripts/eval/eval-parity-smoke.d.ts +2 -0
- package/dist/scripts/eval/eval-parity-smoke.d.ts.map +1 -0
- package/dist/scripts/eval/eval-parity-smoke.js +23 -0
- package/dist/scripts/eval/eval-parity-smoke.js.map +1 -0
- package/dist/scripts/eval/eval-parity-sweep.d.ts +2 -0
- package/dist/scripts/eval/eval-parity-sweep.d.ts.map +1 -0
- package/dist/scripts/eval/eval-parity-sweep.js +29 -0
- package/dist/scripts/eval/eval-parity-sweep.js.map +1 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.d.ts +2 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.d.ts.map +1 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.js +11 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.js.map +1 -0
- package/dist/scripts/eval/eval-security-path-traversal.d.ts +3 -0
- package/dist/scripts/eval/eval-security-path-traversal.d.ts.map +1 -0
- package/dist/scripts/eval/eval-security-path-traversal.js +35 -0
- package/dist/scripts/eval/eval-security-path-traversal.js.map +1 -0
- package/dist/scripts/fixtures/ask-advisor-stub.d.ts +3 -0
- package/dist/scripts/fixtures/ask-advisor-stub.d.ts.map +1 -0
- package/dist/scripts/fixtures/ask-advisor-stub.js +13 -0
- package/dist/scripts/fixtures/ask-advisor-stub.js.map +1 -0
- package/dist/scripts/generate-catalog-docs.d.ts +3 -0
- package/dist/scripts/generate-catalog-docs.d.ts.map +1 -0
- package/dist/scripts/generate-catalog-docs.js +99 -0
- package/dist/scripts/generate-catalog-docs.js.map +1 -0
- package/dist/scripts/generate-native-release-manifest.d.ts +3 -0
- package/dist/scripts/generate-native-release-manifest.d.ts.map +1 -0
- package/dist/scripts/generate-native-release-manifest.js +107 -0
- package/dist/scripts/generate-native-release-manifest.js.map +1 -0
- package/dist/scripts/generate-release-body.d.ts +35 -0
- package/dist/scripts/generate-release-body.d.ts.map +1 -0
- package/dist/scripts/generate-release-body.js +278 -0
- package/dist/scripts/generate-release-body.js.map +1 -0
- package/dist/scripts/hook-derived-watcher.d.ts +3 -0
- package/dist/scripts/hook-derived-watcher.d.ts.map +1 -0
- package/dist/scripts/hook-derived-watcher.js +557 -0
- package/dist/scripts/hook-derived-watcher.js.map +1 -0
- package/dist/scripts/hook-payload-guard.d.ts +9 -0
- package/dist/scripts/hook-payload-guard.d.ts.map +1 -0
- package/dist/scripts/hook-payload-guard.js +111 -0
- package/dist/scripts/hook-payload-guard.js.map +1 -0
- package/dist/scripts/notify-dispatcher.d.ts +7 -0
- package/dist/scripts/notify-dispatcher.d.ts.map +1 -0
- package/dist/scripts/notify-dispatcher.js +359 -0
- package/dist/scripts/notify-dispatcher.js.map +1 -0
- package/dist/scripts/notify-fallback-watcher.d.ts +3 -0
- package/dist/scripts/notify-fallback-watcher.d.ts.map +1 -0
- package/dist/scripts/notify-fallback-watcher.js +1771 -0
- package/dist/scripts/notify-fallback-watcher.js.map +1 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.d.ts +2 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.d.ts.map +1 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.js +24 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.js.map +1 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.d.ts +2 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.d.ts.map +1 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.js +39 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.js.map +1 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts +2 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts.map +1 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js +153 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js.map +1 -0
- package/dist/scripts/notify-hook/active-team.d.ts +9 -0
- package/dist/scripts/notify-hook/active-team.d.ts.map +1 -0
- package/dist/scripts/notify-hook/active-team.js +45 -0
- package/dist/scripts/notify-hook/active-team.js.map +1 -0
- package/dist/scripts/notify-hook/auto-nudge.d.ts +96 -0
- package/dist/scripts/notify-hook/auto-nudge.d.ts.map +1 -0
- package/dist/scripts/notify-hook/auto-nudge.js +698 -0
- package/dist/scripts/notify-hook/auto-nudge.js.map +1 -0
- package/dist/scripts/notify-hook/log.d.ts +6 -0
- package/dist/scripts/notify-hook/log.d.ts.map +1 -0
- package/dist/scripts/notify-hook/log.js +22 -0
- package/dist/scripts/notify-hook/log.js.map +1 -0
- package/dist/scripts/notify-hook/managed-tmux.d.ts +21 -0
- package/dist/scripts/notify-hook/managed-tmux.d.ts.map +1 -0
- package/dist/scripts/notify-hook/managed-tmux.js +541 -0
- package/dist/scripts/notify-hook/managed-tmux.js.map +1 -0
- package/dist/scripts/notify-hook/operational-events.d.ts +14 -0
- package/dist/scripts/notify-hook/operational-events.d.ts.map +1 -0
- package/dist/scripts/notify-hook/operational-events.js +255 -0
- package/dist/scripts/notify-hook/operational-events.js.map +1 -0
- package/dist/scripts/notify-hook/orchestration-intent.d.ts +17 -0
- package/dist/scripts/notify-hook/orchestration-intent.d.ts.map +1 -0
- package/dist/scripts/notify-hook/orchestration-intent.js +71 -0
- package/dist/scripts/notify-hook/orchestration-intent.js.map +1 -0
- package/dist/scripts/notify-hook/payload-parser.d.ts +13 -0
- package/dist/scripts/notify-hook/payload-parser.d.ts.map +1 -0
- package/dist/scripts/notify-hook/payload-parser.js +134 -0
- package/dist/scripts/notify-hook/payload-parser.js.map +1 -0
- package/dist/scripts/notify-hook/process-runner.d.ts +9 -0
- package/dist/scripts/notify-hook/process-runner.d.ts.map +1 -0
- package/dist/scripts/notify-hook/process-runner.js +74 -0
- package/dist/scripts/notify-hook/process-runner.js.map +1 -0
- package/dist/scripts/notify-hook/ralph-session-resume.d.ts +22 -0
- package/dist/scripts/notify-hook/ralph-session-resume.d.ts.map +1 -0
- package/dist/scripts/notify-hook/ralph-session-resume.js +381 -0
- package/dist/scripts/notify-hook/ralph-session-resume.js.map +1 -0
- package/dist/scripts/notify-hook/state-io.d.ts +21 -0
- package/dist/scripts/notify-hook/state-io.d.ts.map +1 -0
- package/dist/scripts/notify-hook/state-io.js +169 -0
- package/dist/scripts/notify-hook/state-io.js.map +1 -0
- package/dist/scripts/notify-hook/team-dispatch.d.ts +36 -0
- package/dist/scripts/notify-hook/team-dispatch.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-dispatch.js +1084 -0
- package/dist/scripts/notify-hook/team-dispatch.js.map +1 -0
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts +21 -0
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js +1029 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js.map +1 -0
- package/dist/scripts/notify-hook/team-tmux-guard.d.ts +15 -0
- package/dist/scripts/notify-hook/team-tmux-guard.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-tmux-guard.js +205 -0
- package/dist/scripts/notify-hook/team-tmux-guard.js.map +1 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.d.ts +34 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.js +434 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.js.map +1 -0
- package/dist/scripts/notify-hook/team-worker-stop.d.ts +15 -0
- package/dist/scripts/notify-hook/team-worker-stop.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker-stop.js +418 -0
- package/dist/scripts/notify-hook/team-worker-stop.js.map +1 -0
- package/dist/scripts/notify-hook/team-worker.d.ts +33 -0
- package/dist/scripts/notify-hook/team-worker.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker.js +705 -0
- package/dist/scripts/notify-hook/team-worker.js.map +1 -0
- package/dist/scripts/notify-hook/tmux-injection.d.ts +15 -0
- package/dist/scripts/notify-hook/tmux-injection.d.ts.map +1 -0
- package/dist/scripts/notify-hook/tmux-injection.js +673 -0
- package/dist/scripts/notify-hook/tmux-injection.js.map +1 -0
- package/dist/scripts/notify-hook/utils.d.ts +9 -0
- package/dist/scripts/notify-hook/utils.d.ts.map +1 -0
- package/dist/scripts/notify-hook/utils.js +36 -0
- package/dist/scripts/notify-hook/utils.js.map +1 -0
- package/dist/scripts/notify-hook/visual-verdict.d.ts +29 -0
- package/dist/scripts/notify-hook/visual-verdict.d.ts.map +1 -0
- package/dist/scripts/notify-hook/visual-verdict.js +145 -0
- package/dist/scripts/notify-hook/visual-verdict.js.map +1 -0
- package/dist/scripts/notify-hook.d.ts +20 -0
- package/dist/scripts/notify-hook.d.ts.map +1 -0
- package/dist/scripts/notify-hook.js +950 -0
- package/dist/scripts/notify-hook.js.map +1 -0
- package/dist/scripts/postinstall.d.ts +18 -0
- package/dist/scripts/postinstall.d.ts.map +1 -0
- package/dist/scripts/postinstall.js +66 -0
- package/dist/scripts/postinstall.js.map +1 -0
- package/dist/scripts/prompt-inventory.d.ts +29 -0
- package/dist/scripts/prompt-inventory.d.ts.map +1 -0
- package/dist/scripts/prompt-inventory.js +178 -0
- package/dist/scripts/prompt-inventory.js.map +1 -0
- package/dist/scripts/run-provider-advisor.d.ts +3 -0
- package/dist/scripts/run-provider-advisor.d.ts.map +1 -0
- package/dist/scripts/run-provider-advisor.js +177 -0
- package/dist/scripts/run-provider-advisor.js.map +1 -0
- package/dist/scripts/run-test-files.d.ts +2 -0
- package/dist/scripts/run-test-files.d.ts.map +1 -0
- package/dist/scripts/run-test-files.js +340 -0
- package/dist/scripts/run-test-files.js.map +1 -0
- package/dist/scripts/smoke-packed-install.d.ts +21 -0
- package/dist/scripts/smoke-packed-install.d.ts.map +1 -0
- package/dist/scripts/smoke-packed-install.js +221 -0
- package/dist/scripts/smoke-packed-install.js.map +1 -0
- package/dist/scripts/sync-plugin-mirror.d.ts +14 -0
- package/dist/scripts/sync-plugin-mirror.d.ts.map +1 -0
- package/dist/scripts/sync-plugin-mirror.js +306 -0
- package/dist/scripts/sync-plugin-mirror.js.map +1 -0
- package/dist/scripts/sync-prompt-guidance-fragments.d.ts +3 -0
- package/dist/scripts/sync-prompt-guidance-fragments.d.ts.map +1 -0
- package/dist/scripts/sync-prompt-guidance-fragments.js +50 -0
- package/dist/scripts/sync-prompt-guidance-fragments.js.map +1 -0
- package/dist/scripts/team-hardening-benchmark.d.ts +3 -0
- package/dist/scripts/team-hardening-benchmark.d.ts.map +1 -0
- package/dist/scripts/team-hardening-benchmark.js +91 -0
- package/dist/scripts/team-hardening-benchmark.js.map +1 -0
- package/dist/scripts/test-reply-listener-live.d.ts +24 -0
- package/dist/scripts/test-reply-listener-live.d.ts.map +1 -0
- package/dist/scripts/test-reply-listener-live.js +138 -0
- package/dist/scripts/test-reply-listener-live.js.map +1 -0
- package/dist/scripts/test-sparkshell.d.ts +2 -0
- package/dist/scripts/test-sparkshell.d.ts.map +1 -0
- package/dist/scripts/test-sparkshell.js +25 -0
- package/dist/scripts/test-sparkshell.js.map +1 -0
- package/dist/scripts/tmux-hook-engine.d.ts +45 -0
- package/dist/scripts/tmux-hook-engine.d.ts.map +1 -0
- package/dist/scripts/tmux-hook-engine.js +313 -0
- package/dist/scripts/tmux-hook-engine.js.map +1 -0
- package/dist/scripts/verify-native-agents.d.ts +16 -0
- package/dist/scripts/verify-native-agents.d.ts.map +1 -0
- package/dist/scripts/verify-native-agents.js +247 -0
- package/dist/scripts/verify-native-agents.js.map +1 -0
- package/dist/scripts/verify-native-release-assets.d.ts +3 -0
- package/dist/scripts/verify-native-release-assets.d.ts.map +1 -0
- package/dist/scripts/verify-native-release-assets.js +62 -0
- package/dist/scripts/verify-native-release-assets.js.map +1 -0
- package/dist/session-history/__tests__/search.test.d.ts +2 -0
- package/dist/session-history/__tests__/search.test.d.ts.map +1 -0
- package/dist/session-history/__tests__/search.test.js +150 -0
- package/dist/session-history/__tests__/search.test.js.map +1 -0
- package/dist/session-history/search.d.ts +31 -0
- package/dist/session-history/search.d.ts.map +1 -0
- package/dist/session-history/search.js +331 -0
- package/dist/session-history/search.js.map +1 -0
- package/dist/sidecar/__tests__/boundary.test.d.ts +2 -0
- package/dist/sidecar/__tests__/boundary.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/boundary.test.js +48 -0
- package/dist/sidecar/__tests__/boundary.test.js.map +1 -0
- package/dist/sidecar/__tests__/collector.test.d.ts +2 -0
- package/dist/sidecar/__tests__/collector.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/collector.test.js +162 -0
- package/dist/sidecar/__tests__/collector.test.js.map +1 -0
- package/dist/sidecar/__tests__/render.test.d.ts +2 -0
- package/dist/sidecar/__tests__/render.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/render.test.js +67 -0
- package/dist/sidecar/__tests__/render.test.js.map +1 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.d.ts +2 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.js +38 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.js.map +1 -0
- package/dist/sidecar/__tests__/tmux.test.d.ts +2 -0
- package/dist/sidecar/__tests__/tmux.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/tmux.test.js +30 -0
- package/dist/sidecar/__tests__/tmux.test.js.map +1 -0
- package/dist/sidecar/__tests__/watch.test.d.ts +2 -0
- package/dist/sidecar/__tests__/watch.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/watch.test.js +42 -0
- package/dist/sidecar/__tests__/watch.test.js.map +1 -0
- package/dist/sidecar/collector.d.ts +4 -0
- package/dist/sidecar/collector.d.ts.map +1 -0
- package/dist/sidecar/collector.js +377 -0
- package/dist/sidecar/collector.js.map +1 -0
- package/dist/sidecar/index.d.ts +25 -0
- package/dist/sidecar/index.d.ts.map +1 -0
- package/dist/sidecar/index.js +182 -0
- package/dist/sidecar/index.js.map +1 -0
- package/dist/sidecar/render.d.ts +3 -0
- package/dist/sidecar/render.d.ts.map +1 -0
- package/dist/sidecar/render.js +72 -0
- package/dist/sidecar/render.js.map +1 -0
- package/dist/sidecar/tmux.d.ts +13 -0
- package/dist/sidecar/tmux.d.ts.map +1 -0
- package/dist/sidecar/tmux.js +44 -0
- package/dist/sidecar/tmux.js.map +1 -0
- package/dist/sidecar/types.d.ts +125 -0
- package/dist/sidecar/types.d.ts.map +1 -0
- package/dist/sidecar/types.js +2 -0
- package/dist/sidecar/types.js.map +1 -0
- package/dist/state/__tests__/mode-state-context.test.d.ts +2 -0
- package/dist/state/__tests__/mode-state-context.test.d.ts.map +1 -0
- package/dist/state/__tests__/mode-state-context.test.js +35 -0
- package/dist/state/__tests__/mode-state-context.test.js.map +1 -0
- package/dist/state/__tests__/operations-ralph-phase.test.d.ts +2 -0
- package/dist/state/__tests__/operations-ralph-phase.test.d.ts.map +1 -0
- package/dist/state/__tests__/operations-ralph-phase.test.js +190 -0
- package/dist/state/__tests__/operations-ralph-phase.test.js.map +1 -0
- package/dist/state/__tests__/operations.test.d.ts +2 -0
- package/dist/state/__tests__/operations.test.d.ts.map +1 -0
- package/dist/state/__tests__/operations.test.js +2753 -0
- package/dist/state/__tests__/operations.test.js.map +1 -0
- package/dist/state/__tests__/path-traversal.test.d.ts +2 -0
- package/dist/state/__tests__/path-traversal.test.d.ts.map +1 -0
- package/dist/state/__tests__/path-traversal.test.js +49 -0
- package/dist/state/__tests__/path-traversal.test.js.map +1 -0
- package/dist/state/__tests__/planning-gate.test.d.ts +2 -0
- package/dist/state/__tests__/planning-gate.test.d.ts.map +1 -0
- package/dist/state/__tests__/planning-gate.test.js +219 -0
- package/dist/state/__tests__/planning-gate.test.js.map +1 -0
- package/dist/state/__tests__/skill-active.test.d.ts +2 -0
- package/dist/state/__tests__/skill-active.test.d.ts.map +1 -0
- package/dist/state/__tests__/skill-active.test.js +314 -0
- package/dist/state/__tests__/skill-active.test.js.map +1 -0
- package/dist/state/__tests__/workflow-transition.test.d.ts +2 -0
- package/dist/state/__tests__/workflow-transition.test.d.ts.map +1 -0
- package/dist/state/__tests__/workflow-transition.test.js +293 -0
- package/dist/state/__tests__/workflow-transition.test.js.map +1 -0
- package/dist/state/mode-state-context.d.ts +14 -0
- package/dist/state/mode-state-context.d.ts.map +1 -0
- package/dist/state/mode-state-context.js +49 -0
- package/dist/state/mode-state-context.js.map +1 -0
- package/dist/state/operations.d.ts +13 -0
- package/dist/state/operations.d.ts.map +1 -0
- package/dist/state/operations.js +544 -0
- package/dist/state/operations.js.map +1 -0
- package/dist/state/paths.d.ts +3 -0
- package/dist/state/paths.d.ts.map +1 -0
- package/dist/state/paths.js +2 -0
- package/dist/state/paths.js.map +1 -0
- package/dist/state/skill-active.d.ts +64 -0
- package/dist/state/skill-active.d.ts.map +1 -0
- package/dist/state/skill-active.js +375 -0
- package/dist/state/skill-active.js.map +1 -0
- package/dist/state/workflow-transition-reconcile.d.ts +22 -0
- package/dist/state/workflow-transition-reconcile.d.ts.map +1 -0
- package/dist/state/workflow-transition-reconcile.js +144 -0
- package/dist/state/workflow-transition-reconcile.js.map +1 -0
- package/dist/state/workflow-transition.d.ts +45 -0
- package/dist/state/workflow-transition.d.ts.map +1 -0
- package/dist/state/workflow-transition.js +268 -0
- package/dist/state/workflow-transition.js.map +1 -0
- package/dist/subagents/__tests__/tracker.test.d.ts +2 -0
- package/dist/subagents/__tests__/tracker.test.d.ts.map +1 -0
- package/dist/subagents/__tests__/tracker.test.js +255 -0
- package/dist/subagents/__tests__/tracker.test.js.map +1 -0
- package/dist/subagents/tracker.d.ts +60 -0
- package/dist/subagents/tracker.d.ts.map +1 -0
- package/dist/subagents/tracker.js +229 -0
- package/dist/subagents/tracker.js.map +1 -0
- package/dist/team/__tests__/allocation-policy.test.d.ts +2 -0
- package/dist/team/__tests__/allocation-policy.test.d.ts.map +1 -0
- package/dist/team/__tests__/allocation-policy.test.js +111 -0
- package/dist/team/__tests__/allocation-policy.test.js.map +1 -0
- package/dist/team/__tests__/api-interop.test.d.ts +2 -0
- package/dist/team/__tests__/api-interop.test.d.ts.map +1 -0
- package/dist/team/__tests__/api-interop.test.js +2321 -0
- package/dist/team/__tests__/api-interop.test.js.map +1 -0
- package/dist/team/__tests__/approved-execution.test.d.ts +2 -0
- package/dist/team/__tests__/approved-execution.test.d.ts.map +1 -0
- package/dist/team/__tests__/approved-execution.test.js +304 -0
- package/dist/team/__tests__/approved-execution.test.js.map +1 -0
- package/dist/team/__tests__/commit-hygiene.test.d.ts +2 -0
- package/dist/team/__tests__/commit-hygiene.test.d.ts.map +1 -0
- package/dist/team/__tests__/commit-hygiene.test.js +93 -0
- package/dist/team/__tests__/commit-hygiene.test.js.map +1 -0
- package/dist/team/__tests__/coordination-protocol.test.d.ts +2 -0
- package/dist/team/__tests__/coordination-protocol.test.d.ts.map +1 -0
- package/dist/team/__tests__/coordination-protocol.test.js +173 -0
- package/dist/team/__tests__/coordination-protocol.test.js.map +1 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.d.ts +2 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.d.ts.map +1 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.js +161 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.js.map +1 -0
- package/dist/team/__tests__/current-task-baseline.test.d.ts +2 -0
- package/dist/team/__tests__/current-task-baseline.test.d.ts.map +1 -0
- package/dist/team/__tests__/current-task-baseline.test.js +87 -0
- package/dist/team/__tests__/current-task-baseline.test.js.map +1 -0
- package/dist/team/__tests__/delegation-policy.test.d.ts +2 -0
- package/dist/team/__tests__/delegation-policy.test.d.ts.map +1 -0
- package/dist/team/__tests__/delegation-policy.test.js +69 -0
- package/dist/team/__tests__/delegation-policy.test.js.map +1 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.d.ts +2 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.d.ts.map +1 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.js +677 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.js.map +1 -0
- package/dist/team/__tests__/delivery-log.test.d.ts +2 -0
- package/dist/team/__tests__/delivery-log.test.d.ts.map +1 -0
- package/dist/team/__tests__/delivery-log.test.js +62 -0
- package/dist/team/__tests__/delivery-log.test.js.map +1 -0
- package/dist/team/__tests__/events.test.d.ts +2 -0
- package/dist/team/__tests__/events.test.d.ts.map +1 -0
- package/dist/team/__tests__/events.test.js +313 -0
- package/dist/team/__tests__/events.test.js.map +1 -0
- package/dist/team/__tests__/followup-planner.test.d.ts +2 -0
- package/dist/team/__tests__/followup-planner.test.d.ts.map +1 -0
- package/dist/team/__tests__/followup-planner.test.js +100 -0
- package/dist/team/__tests__/followup-planner.test.js.map +1 -0
- package/dist/team/__tests__/hardening-e2e.test.d.ts +2 -0
- package/dist/team/__tests__/hardening-e2e.test.d.ts.map +1 -0
- package/dist/team/__tests__/hardening-e2e.test.js +98 -0
- package/dist/team/__tests__/hardening-e2e.test.js.map +1 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts +2 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts.map +1 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.js +78 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.js.map +1 -0
- package/dist/team/__tests__/idle-nudge.test.d.ts +2 -0
- package/dist/team/__tests__/idle-nudge.test.d.ts.map +1 -0
- package/dist/team/__tests__/idle-nudge.test.js +230 -0
- package/dist/team/__tests__/idle-nudge.test.js.map +1 -0
- package/dist/team/__tests__/leader-activity.test.d.ts +2 -0
- package/dist/team/__tests__/leader-activity.test.d.ts.map +1 -0
- package/dist/team/__tests__/leader-activity.test.js +261 -0
- package/dist/team/__tests__/leader-activity.test.js.map +1 -0
- package/dist/team/__tests__/mcp-comm.test.d.ts +2 -0
- package/dist/team/__tests__/mcp-comm.test.d.ts.map +1 -0
- package/dist/team/__tests__/mcp-comm.test.js +289 -0
- package/dist/team/__tests__/mcp-comm.test.js.map +1 -0
- package/dist/team/__tests__/model-contract.test.d.ts +2 -0
- package/dist/team/__tests__/model-contract.test.d.ts.map +1 -0
- package/dist/team/__tests__/model-contract.test.js +187 -0
- package/dist/team/__tests__/model-contract.test.js.map +1 -0
- package/dist/team/__tests__/orchestrator.test.d.ts +2 -0
- package/dist/team/__tests__/orchestrator.test.d.ts.map +1 -0
- package/dist/team/__tests__/orchestrator.test.js +111 -0
- package/dist/team/__tests__/orchestrator.test.js.map +1 -0
- package/dist/team/__tests__/phase-controller.test.d.ts +2 -0
- package/dist/team/__tests__/phase-controller.test.d.ts.map +1 -0
- package/dist/team/__tests__/phase-controller.test.js +50 -0
- package/dist/team/__tests__/phase-controller.test.js.map +1 -0
- package/dist/team/__tests__/rebalance-policy.test.d.ts +2 -0
- package/dist/team/__tests__/rebalance-policy.test.d.ts.map +1 -0
- package/dist/team/__tests__/rebalance-policy.test.js +168 -0
- package/dist/team/__tests__/rebalance-policy.test.js.map +1 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.d.ts +2 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.d.ts.map +1 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.js +156 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.js.map +1 -0
- package/dist/team/__tests__/role-router.test.d.ts +2 -0
- package/dist/team/__tests__/role-router.test.d.ts.map +1 -0
- package/dist/team/__tests__/role-router.test.js +263 -0
- package/dist/team/__tests__/role-router.test.js.map +1 -0
- package/dist/team/__tests__/runtime-boxed-state.test.d.ts +2 -0
- package/dist/team/__tests__/runtime-boxed-state.test.d.ts.map +1 -0
- package/dist/team/__tests__/runtime-boxed-state.test.js +39 -0
- package/dist/team/__tests__/runtime-boxed-state.test.js.map +1 -0
- package/dist/team/__tests__/runtime-cli.test.d.ts +2 -0
- package/dist/team/__tests__/runtime-cli.test.d.ts.map +1 -0
- package/dist/team/__tests__/runtime-cli.test.js +320 -0
- package/dist/team/__tests__/runtime-cli.test.js.map +1 -0
- package/dist/team/__tests__/runtime.test.d.ts +2 -0
- package/dist/team/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/team/__tests__/runtime.test.js +6464 -0
- package/dist/team/__tests__/runtime.test.js.map +1 -0
- package/dist/team/__tests__/scaling.test.d.ts +2 -0
- package/dist/team/__tests__/scaling.test.d.ts.map +1 -0
- package/dist/team/__tests__/scaling.test.js +1664 -0
- package/dist/team/__tests__/scaling.test.js.map +1 -0
- package/dist/team/__tests__/shutdown-fallback.test.d.ts +2 -0
- package/dist/team/__tests__/shutdown-fallback.test.d.ts.map +1 -0
- package/dist/team/__tests__/shutdown-fallback.test.js +125 -0
- package/dist/team/__tests__/shutdown-fallback.test.js.map +1 -0
- package/dist/team/__tests__/state-root.test.d.ts +2 -0
- package/dist/team/__tests__/state-root.test.d.ts.map +1 -0
- package/dist/team/__tests__/state-root.test.js +208 -0
- package/dist/team/__tests__/state-root.test.js.map +1 -0
- package/dist/team/__tests__/state.test.d.ts +2 -0
- package/dist/team/__tests__/state.test.d.ts.map +1 -0
- package/dist/team/__tests__/state.test.js +1942 -0
- package/dist/team/__tests__/state.test.js.map +1 -0
- package/dist/team/__tests__/team-identity.test.d.ts +2 -0
- package/dist/team/__tests__/team-identity.test.d.ts.map +1 -0
- package/dist/team/__tests__/team-identity.test.js +166 -0
- package/dist/team/__tests__/team-identity.test.js.map +1 -0
- package/dist/team/__tests__/team-ops-contract.test.d.ts +2 -0
- package/dist/team/__tests__/team-ops-contract.test.d.ts.map +1 -0
- package/dist/team/__tests__/team-ops-contract.test.js +96 -0
- package/dist/team/__tests__/team-ops-contract.test.js.map +1 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.d.ts +2 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.js +191 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.js.map +1 -0
- package/dist/team/__tests__/tmux-session.test.d.ts +2 -0
- package/dist/team/__tests__/tmux-session.test.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-session.test.js +4546 -0
- package/dist/team/__tests__/tmux-session.test.js.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.d.ts +20 -0
- package/dist/team/__tests__/tmux-test-fixture.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.js +148 -0
- package/dist/team/__tests__/tmux-test-fixture.js.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.test.d.ts +2 -0
- package/dist/team/__tests__/tmux-test-fixture.test.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.test.js +114 -0
- package/dist/team/__tests__/tmux-test-fixture.test.js.map +1 -0
- package/dist/team/__tests__/worker-bootstrap.test.d.ts +2 -0
- package/dist/team/__tests__/worker-bootstrap.test.d.ts.map +1 -0
- package/dist/team/__tests__/worker-bootstrap.test.js +1122 -0
- package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -0
- package/dist/team/__tests__/worker-runtime-identity.test.d.ts +2 -0
- package/dist/team/__tests__/worker-runtime-identity.test.d.ts.map +1 -0
- package/dist/team/__tests__/worker-runtime-identity.test.js +258 -0
- package/dist/team/__tests__/worker-runtime-identity.test.js.map +1 -0
- package/dist/team/__tests__/worktree.test.d.ts +2 -0
- package/dist/team/__tests__/worktree.test.d.ts.map +1 -0
- package/dist/team/__tests__/worktree.test.js +317 -0
- package/dist/team/__tests__/worktree.test.js.map +1 -0
- package/dist/team/allocation-policy.d.ts +29 -0
- package/dist/team/allocation-policy.d.ts.map +1 -0
- package/dist/team/allocation-policy.js +153 -0
- package/dist/team/allocation-policy.js.map +1 -0
- package/dist/team/api-interop.d.ts +20 -0
- package/dist/team/api-interop.d.ts.map +1 -0
- package/dist/team/api-interop.js +1084 -0
- package/dist/team/api-interop.js.map +1 -0
- package/dist/team/approved-execution.d.ts +64 -0
- package/dist/team/approved-execution.d.ts.map +1 -0
- package/dist/team/approved-execution.js +242 -0
- package/dist/team/approved-execution.js.map +1 -0
- package/dist/team/commit-hygiene.d.ts +79 -0
- package/dist/team/commit-hygiene.d.ts.map +1 -0
- package/dist/team/commit-hygiene.js +364 -0
- package/dist/team/commit-hygiene.js.map +1 -0
- package/dist/team/contracts.d.ts +26 -0
- package/dist/team/contracts.d.ts.map +1 -0
- package/dist/team/contracts.js +103 -0
- package/dist/team/contracts.js.map +1 -0
- package/dist/team/coordination-protocol.d.ts +14 -0
- package/dist/team/coordination-protocol.d.ts.map +1 -0
- package/dist/team/coordination-protocol.js +244 -0
- package/dist/team/coordination-protocol.js.map +1 -0
- package/dist/team/current-task-baseline.d.ts +32 -0
- package/dist/team/current-task-baseline.d.ts.map +1 -0
- package/dist/team/current-task-baseline.js +85 -0
- package/dist/team/current-task-baseline.js.map +1 -0
- package/dist/team/dag-schema.d.ts +38 -0
- package/dist/team/dag-schema.d.ts.map +1 -0
- package/dist/team/dag-schema.js +221 -0
- package/dist/team/dag-schema.js.map +1 -0
- package/dist/team/delegation-policy.d.ts +3 -0
- package/dist/team/delegation-policy.d.ts.map +1 -0
- package/dist/team/delegation-policy.js +82 -0
- package/dist/team/delegation-policy.js.map +1 -0
- package/dist/team/delivery-log.d.ts +14 -0
- package/dist/team/delivery-log.d.ts.map +1 -0
- package/dist/team/delivery-log.js +43 -0
- package/dist/team/delivery-log.js.map +1 -0
- package/dist/team/followup-planner.d.ts +45 -0
- package/dist/team/followup-planner.d.ts.map +1 -0
- package/dist/team/followup-planner.js +200 -0
- package/dist/team/followup-planner.js.map +1 -0
- package/dist/team/goal-workflow.d.ts +20 -0
- package/dist/team/goal-workflow.d.ts.map +1 -0
- package/dist/team/goal-workflow.js +57 -0
- package/dist/team/goal-workflow.js.map +1 -0
- package/dist/team/idle-nudge.d.ts +53 -0
- package/dist/team/idle-nudge.d.ts.map +1 -0
- package/dist/team/idle-nudge.js +141 -0
- package/dist/team/idle-nudge.js.map +1 -0
- package/dist/team/leader-activity.d.ts +15 -0
- package/dist/team/leader-activity.d.ts.map +1 -0
- package/dist/team/leader-activity.js +224 -0
- package/dist/team/leader-activity.js.map +1 -0
- package/dist/team/mcp-comm.d.ts +73 -0
- package/dist/team/mcp-comm.d.ts.map +1 -0
- package/dist/team/mcp-comm.js +314 -0
- package/dist/team/mcp-comm.js.map +1 -0
- package/dist/team/model-contract.d.ts +26 -0
- package/dist/team/model-contract.d.ts.map +1 -0
- package/dist/team/model-contract.js +205 -0
- package/dist/team/model-contract.js.map +1 -0
- package/dist/team/orchestrator.d.ts +47 -0
- package/dist/team/orchestrator.d.ts.map +1 -0
- package/dist/team/orchestrator.js +131 -0
- package/dist/team/orchestrator.js.map +1 -0
- package/dist/team/pane-status.d.ts +149 -0
- package/dist/team/pane-status.d.ts.map +1 -0
- package/dist/team/pane-status.js +558 -0
- package/dist/team/pane-status.js.map +1 -0
- package/dist/team/phase-controller.d.ts +12 -0
- package/dist/team/phase-controller.d.ts.map +1 -0
- package/dist/team/phase-controller.js +142 -0
- package/dist/team/phase-controller.js.map +1 -0
- package/dist/team/progress-evidence.d.ts +2 -0
- package/dist/team/progress-evidence.d.ts.map +1 -0
- package/dist/team/progress-evidence.js +77 -0
- package/dist/team/progress-evidence.js.map +1 -0
- package/dist/team/rebalance-policy.d.ts +19 -0
- package/dist/team/rebalance-policy.d.ts.map +1 -0
- package/dist/team/rebalance-policy.js +48 -0
- package/dist/team/rebalance-policy.js.map +1 -0
- package/dist/team/reminder-intents.d.ts +11 -0
- package/dist/team/reminder-intents.d.ts.map +1 -0
- package/dist/team/reminder-intents.js +40 -0
- package/dist/team/reminder-intents.js.map +1 -0
- package/dist/team/repo-aware-decomposition.d.ts +68 -0
- package/dist/team/repo-aware-decomposition.d.ts.map +1 -0
- package/dist/team/repo-aware-decomposition.js +235 -0
- package/dist/team/repo-aware-decomposition.js.map +1 -0
- package/dist/team/role-router.d.ts +32 -0
- package/dist/team/role-router.d.ts.map +1 -0
- package/dist/team/role-router.js +298 -0
- package/dist/team/role-router.js.map +1 -0
- package/dist/team/runtime-cli.d.ts +78 -0
- package/dist/team/runtime-cli.d.ts.map +1 -0
- package/dist/team/runtime-cli.js +376 -0
- package/dist/team/runtime-cli.js.map +1 -0
- package/dist/team/runtime.d.ts +162 -0
- package/dist/team/runtime.d.ts.map +1 -0
- package/dist/team/runtime.js +4160 -0
- package/dist/team/runtime.js.map +1 -0
- package/dist/team/scaling.d.ts +59 -0
- package/dist/team/scaling.d.ts.map +1 -0
- package/dist/team/scaling.js +650 -0
- package/dist/team/scaling.js.map +1 -0
- package/dist/team/state/approvals.d.ts +25 -0
- package/dist/team/state/approvals.d.ts.map +1 -0
- package/dist/team/state/approvals.js +31 -0
- package/dist/team/state/approvals.js.map +1 -0
- package/dist/team/state/config.d.ts +2 -0
- package/dist/team/state/config.d.ts.map +1 -0
- package/dist/team/state/config.js +2 -0
- package/dist/team/state/config.js.map +1 -0
- package/dist/team/state/dispatch-lock.d.ts +3 -0
- package/dist/team/state/dispatch-lock.d.ts.map +1 -0
- package/dist/team/state/dispatch-lock.js +81 -0
- package/dist/team/state/dispatch-lock.js.map +1 -0
- package/dist/team/state/dispatch.d.ts +67 -0
- package/dist/team/state/dispatch.d.ts.map +1 -0
- package/dist/team/state/dispatch.js +302 -0
- package/dist/team/state/dispatch.js.map +1 -0
- package/dist/team/state/events.d.ts +26 -0
- package/dist/team/state/events.d.ts.map +1 -0
- package/dist/team/state/events.js +145 -0
- package/dist/team/state/events.js.map +1 -0
- package/dist/team/state/index.d.ts +11 -0
- package/dist/team/state/index.d.ts.map +1 -0
- package/dist/team/state/index.js +11 -0
- package/dist/team/state/index.js.map +1 -0
- package/dist/team/state/io.d.ts +2 -0
- package/dist/team/state/io.d.ts.map +1 -0
- package/dist/team/state/io.js +2 -0
- package/dist/team/state/io.js.map +1 -0
- package/dist/team/state/locks.d.ts +16 -0
- package/dist/team/state/locks.d.ts.map +1 -0
- package/dist/team/state/locks.js +201 -0
- package/dist/team/state/locks.js.map +1 -0
- package/dist/team/state/mailbox.d.ts +43 -0
- package/dist/team/state/mailbox.d.ts.map +1 -0
- package/dist/team/state/mailbox.js +222 -0
- package/dist/team/state/mailbox.js.map +1 -0
- package/dist/team/state/monitor.d.ts +108 -0
- package/dist/team/state/monitor.d.ts.map +1 -0
- package/dist/team/state/monitor.js +193 -0
- package/dist/team/state/monitor.js.map +1 -0
- package/dist/team/state/shutdown.d.ts +2 -0
- package/dist/team/state/shutdown.d.ts.map +1 -0
- package/dist/team/state/shutdown.js +2 -0
- package/dist/team/state/shutdown.js.map +1 -0
- package/dist/team/state/summary.d.ts +2 -0
- package/dist/team/state/summary.d.ts.map +1 -0
- package/dist/team/state/summary.js +2 -0
- package/dist/team/state/summary.js.map +1 -0
- package/dist/team/state/tasks.d.ts +53 -0
- package/dist/team/state/tasks.d.ts.map +1 -0
- package/dist/team/state/tasks.js +284 -0
- package/dist/team/state/tasks.js.map +1 -0
- package/dist/team/state/types.d.ts +356 -0
- package/dist/team/state/types.d.ts.map +1 -0
- package/dist/team/state/types.js +3 -0
- package/dist/team/state/types.js.map +1 -0
- package/dist/team/state/workers.d.ts +2 -0
- package/dist/team/state/workers.d.ts.map +1 -0
- package/dist/team/state/workers.js +2 -0
- package/dist/team/state/workers.js.map +1 -0
- package/dist/team/state-root.d.ts +40 -0
- package/dist/team/state-root.d.ts.map +1 -0
- package/dist/team/state-root.js +297 -0
- package/dist/team/state-root.js.map +1 -0
- package/dist/team/state.d.ts +471 -0
- package/dist/team/state.d.ts.map +1 -0
- package/dist/team/state.js +1418 -0
- package/dist/team/state.js.map +1 -0
- package/dist/team/team-identity.d.ts +26 -0
- package/dist/team/team-identity.d.ts.map +1 -0
- package/dist/team/team-identity.js +169 -0
- package/dist/team/team-identity.js.map +1 -0
- package/dist/team/team-ops.d.ts +66 -0
- package/dist/team/team-ops.d.ts.map +1 -0
- package/dist/team/team-ops.js +79 -0
- package/dist/team/team-ops.js.map +1 -0
- package/dist/team/tmux-session.d.ts +190 -0
- package/dist/team/tmux-session.d.ts.map +1 -0
- package/dist/team/tmux-session.js +2071 -0
- package/dist/team/tmux-session.js.map +1 -0
- package/dist/team/ultragoal-context.d.ts +47 -0
- package/dist/team/ultragoal-context.d.ts.map +1 -0
- package/dist/team/ultragoal-context.js +215 -0
- package/dist/team/ultragoal-context.js.map +1 -0
- package/dist/team/worker-bootstrap.d.ts +92 -0
- package/dist/team/worker-bootstrap.d.ts.map +1 -0
- package/dist/team/worker-bootstrap.js +860 -0
- package/dist/team/worker-bootstrap.js.map +1 -0
- package/dist/team/worktree.d.ts +69 -0
- package/dist/team/worktree.d.ts.map +1 -0
- package/dist/team/worktree.js +437 -0
- package/dist/team/worktree.js.map +1 -0
- package/dist/ultragoal/__tests__/artifacts.test.d.ts +2 -0
- package/dist/ultragoal/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/artifacts.test.js +1423 -0
- package/dist/ultragoal/__tests__/artifacts.test.js.map +1 -0
- package/dist/ultragoal/__tests__/docs-contract.test.d.ts +2 -0
- package/dist/ultragoal/__tests__/docs-contract.test.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/docs-contract.test.js +132 -0
- package/dist/ultragoal/__tests__/docs-contract.test.js.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.d.ts +68 -0
- package/dist/ultragoal/__tests__/steering-fixtures.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.js +259 -0
- package/dist/ultragoal/__tests__/steering-fixtures.js.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.d.ts +2 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.js +65 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.js.map +1 -0
- package/dist/ultragoal/artifacts.d.ts +249 -0
- package/dist/ultragoal/artifacts.d.ts.map +1 -0
- package/dist/ultragoal/artifacts.js +1349 -0
- package/dist/ultragoal/artifacts.js.map +1 -0
- package/dist/utils/__tests__/agents-md.test.d.ts +2 -0
- package/dist/utils/__tests__/agents-md.test.d.ts.map +1 -0
- package/dist/utils/__tests__/agents-md.test.js +96 -0
- package/dist/utils/__tests__/agents-md.test.js.map +1 -0
- package/dist/utils/__tests__/agents-model-table.test.d.ts +2 -0
- package/dist/utils/__tests__/agents-model-table.test.d.ts.map +1 -0
- package/dist/utils/__tests__/agents-model-table.test.js +108 -0
- package/dist/utils/__tests__/agents-model-table.test.js.map +1 -0
- package/dist/utils/__tests__/dep-versions.test.d.ts +2 -0
- package/dist/utils/__tests__/dep-versions.test.d.ts.map +1 -0
- package/dist/utils/__tests__/dep-versions.test.js +46 -0
- package/dist/utils/__tests__/dep-versions.test.js.map +1 -0
- package/dist/utils/__tests__/package.test.d.ts +2 -0
- package/dist/utils/__tests__/package.test.d.ts.map +1 -0
- package/dist/utils/__tests__/package.test.js +21 -0
- package/dist/utils/__tests__/package.test.js.map +1 -0
- package/dist/utils/__tests__/paths.test.d.ts +2 -0
- package/dist/utils/__tests__/paths.test.d.ts.map +1 -0
- package/dist/utils/__tests__/paths.test.js +647 -0
- package/dist/utils/__tests__/paths.test.js.map +1 -0
- package/dist/utils/__tests__/platform-command.test.d.ts +2 -0
- package/dist/utils/__tests__/platform-command.test.d.ts.map +1 -0
- package/dist/utils/__tests__/platform-command.test.js +399 -0
- package/dist/utils/__tests__/platform-command.test.js.map +1 -0
- package/dist/utils/__tests__/repo-deps.test.d.ts +2 -0
- package/dist/utils/__tests__/repo-deps.test.d.ts.map +1 -0
- package/dist/utils/__tests__/repo-deps.test.js +71 -0
- package/dist/utils/__tests__/repo-deps.test.js.map +1 -0
- package/dist/utils/__tests__/sleep-resource.test.d.ts +2 -0
- package/dist/utils/__tests__/sleep-resource.test.d.ts.map +1 -0
- package/dist/utils/__tests__/sleep-resource.test.js +39 -0
- package/dist/utils/__tests__/sleep-resource.test.js.map +1 -0
- package/dist/utils/__tests__/version.test.d.ts +2 -0
- package/dist/utils/__tests__/version.test.d.ts.map +1 -0
- package/dist/utils/__tests__/version.test.js +78 -0
- package/dist/utils/__tests__/version.test.js.map +1 -0
- package/dist/utils/agents-md.d.ts +10 -0
- package/dist/utils/agents-md.d.ts.map +1 -0
- package/dist/utils/agents-md.js +76 -0
- package/dist/utils/agents-md.js.map +1 -0
- package/dist/utils/agents-model-table.d.ts +16 -0
- package/dist/utils/agents-model-table.d.ts.map +1 -0
- package/dist/utils/agents-model-table.js +102 -0
- package/dist/utils/agents-model-table.js.map +1 -0
- package/dist/utils/git-layout.d.ts +8 -0
- package/dist/utils/git-layout.d.ts.map +1 -0
- package/dist/utils/git-layout.js +58 -0
- package/dist/utils/git-layout.js.map +1 -0
- package/dist/utils/package.d.ts +9 -0
- package/dist/utils/package.d.ts.map +1 -0
- package/dist/utils/package.js +31 -0
- package/dist/utils/package.js.map +1 -0
- package/dist/utils/paths.d.ts +101 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +314 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/platform-command.d.ts +29 -0
- package/dist/utils/platform-command.d.ts.map +1 -0
- package/dist/utils/platform-command.js +239 -0
- package/dist/utils/platform-command.js.map +1 -0
- package/dist/utils/repo-deps.d.ts +20 -0
- package/dist/utils/repo-deps.d.ts.map +1 -0
- package/dist/utils/repo-deps.js +78 -0
- package/dist/utils/repo-deps.js.map +1 -0
- package/dist/utils/safe-json.d.ts +3 -0
- package/dist/utils/safe-json.d.ts.map +1 -0
- package/dist/utils/safe-json.js +19 -0
- package/dist/utils/safe-json.js.map +1 -0
- package/dist/utils/sleep.d.ts +3 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +35 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/toml.d.ts +4 -0
- package/dist/utils/toml.d.ts.map +1 -0
- package/dist/utils/toml.js +75 -0
- package/dist/utils/toml.js.map +1 -0
- package/dist/utils/version.d.ts +7 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +72 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/verification/__tests__/ci-rust-gates.test.d.ts +2 -0
- package/dist/verification/__tests__/ci-rust-gates.test.d.ts.map +1 -0
- package/dist/verification/__tests__/ci-rust-gates.test.js +293 -0
- package/dist/verification/__tests__/ci-rust-gates.test.js.map +1 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.d.ts +2 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.d.ts.map +1 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.js +68 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.js.map +1 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.d.ts +2 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.d.ts.map +1 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.js +74 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.js.map +1 -0
- package/dist/verification/__tests__/native-release-manifest.test.d.ts +2 -0
- package/dist/verification/__tests__/native-release-manifest.test.d.ts.map +1 -0
- package/dist/verification/__tests__/native-release-manifest.test.js +80 -0
- package/dist/verification/__tests__/native-release-manifest.test.js.map +1 -0
- package/dist/verification/__tests__/pr-check-workflow.test.d.ts +2 -0
- package/dist/verification/__tests__/pr-check-workflow.test.d.ts.map +1 -0
- package/dist/verification/__tests__/pr-check-workflow.test.js +27 -0
- package/dist/verification/__tests__/pr-check-workflow.test.js.map +1 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.d.ts +2 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.d.ts.map +1 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.js +55 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.js.map +1 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.d.ts +2 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.d.ts.map +1 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.js +32 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.js.map +1 -0
- package/dist/verification/__tests__/verifier.test.d.ts +2 -0
- package/dist/verification/__tests__/verifier.test.d.ts.map +1 -0
- package/dist/verification/__tests__/verifier.test.js +113 -0
- package/dist/verification/__tests__/verifier.test.js.map +1 -0
- package/dist/verification/verifier.d.ts +37 -0
- package/dist/verification/verifier.d.ts.map +1 -0
- package/dist/verification/verifier.js +100 -0
- package/dist/verification/verifier.js.map +1 -0
- package/dist/visual/__tests__/verdict.test.d.ts +2 -0
- package/dist/visual/__tests__/verdict.test.d.ts.map +1 -0
- package/dist/visual/__tests__/verdict.test.js +81 -0
- package/dist/visual/__tests__/verdict.test.js.map +1 -0
- package/dist/visual/constants.d.ts +4 -0
- package/dist/visual/constants.d.ts.map +1 -0
- package/dist/visual/constants.js +3 -0
- package/dist/visual/constants.js.map +1 -0
- package/dist/visual/verdict.d.ts +17 -0
- package/dist/visual/verdict.d.ts.map +1 -0
- package/dist/visual/verdict.js +61 -0
- package/dist/visual/verdict.js.map +1 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.d.ts +12 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.js +139 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.js.map +1 -0
- package/dist/wiki/__tests__/crlf-parse.test.d.ts +2 -0
- package/dist/wiki/__tests__/crlf-parse.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/crlf-parse.test.js +24 -0
- package/dist/wiki/__tests__/crlf-parse.test.js.map +1 -0
- package/dist/wiki/__tests__/escape-newline.test.d.ts +2 -0
- package/dist/wiki/__tests__/escape-newline.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/escape-newline.test.js +45 -0
- package/dist/wiki/__tests__/escape-newline.test.js.map +1 -0
- package/dist/wiki/__tests__/ingest.test.d.ts +5 -0
- package/dist/wiki/__tests__/ingest.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/ingest.test.js +215 -0
- package/dist/wiki/__tests__/ingest.test.js.map +1 -0
- package/dist/wiki/__tests__/lint.test.d.ts +5 -0
- package/dist/wiki/__tests__/lint.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/lint.test.js +176 -0
- package/dist/wiki/__tests__/lint.test.js.map +1 -0
- package/dist/wiki/__tests__/query.test.d.ts +5 -0
- package/dist/wiki/__tests__/query.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/query.test.js +166 -0
- package/dist/wiki/__tests__/query.test.js.map +1 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.d.ts +2 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.js +44 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.js.map +1 -0
- package/dist/wiki/__tests__/session-hooks.test.d.ts +5 -0
- package/dist/wiki/__tests__/session-hooks.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/session-hooks.test.js +64 -0
- package/dist/wiki/__tests__/session-hooks.test.js.map +1 -0
- package/dist/wiki/__tests__/slug-nonascii.test.d.ts +2 -0
- package/dist/wiki/__tests__/slug-nonascii.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/slug-nonascii.test.js +30 -0
- package/dist/wiki/__tests__/slug-nonascii.test.js.map +1 -0
- package/dist/wiki/__tests__/storage.test.d.ts +5 -0
- package/dist/wiki/__tests__/storage.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/storage.test.js +318 -0
- package/dist/wiki/__tests__/storage.test.js.map +1 -0
- package/dist/wiki/__tests__/test-helpers.d.ts +31 -0
- package/dist/wiki/__tests__/test-helpers.d.ts.map +1 -0
- package/dist/wiki/__tests__/test-helpers.js +108 -0
- package/dist/wiki/__tests__/test-helpers.js.map +1 -0
- package/dist/wiki/index.d.ts +14 -0
- package/dist/wiki/index.d.ts.map +1 -0
- package/dist/wiki/index.js +17 -0
- package/dist/wiki/index.js.map +1 -0
- package/dist/wiki/ingest.d.ts +20 -0
- package/dist/wiki/ingest.d.ts.map +1 -0
- package/dist/wiki/ingest.js +115 -0
- package/dist/wiki/ingest.js.map +1 -0
- package/dist/wiki/lifecycle.d.ts +25 -0
- package/dist/wiki/lifecycle.d.ts.map +1 -0
- package/dist/wiki/lifecycle.js +239 -0
- package/dist/wiki/lifecycle.js.map +1 -0
- package/dist/wiki/lint.d.ts +25 -0
- package/dist/wiki/lint.d.ts.map +1 -0
- package/dist/wiki/lint.js +170 -0
- package/dist/wiki/lint.js.map +1 -0
- package/dist/wiki/query.d.ts +36 -0
- package/dist/wiki/query.d.ts.map +1 -0
- package/dist/wiki/query.js +139 -0
- package/dist/wiki/query.js.map +1 -0
- package/dist/wiki/storage.d.ts +37 -0
- package/dist/wiki/storage.d.ts.map +1 -0
- package/dist/wiki/storage.js +358 -0
- package/dist/wiki/storage.js.map +1 -0
- package/dist/wiki/types.d.ts +83 -0
- package/dist/wiki/types.d.ts.map +1 -0
- package/dist/wiki/types.js +15 -0
- package/dist/wiki/types.js.map +1 -0
- package/package.json +110 -0
- package/plugins/oh-my-codex/.app.json +3 -0
- package/plugins/oh-my-codex/.codex-plugin/plugin.json +31 -0
- package/plugins/oh-my-codex/.mcp.json +52 -0
- package/plugins/oh-my-codex/hooks/codex-native-hook.mjs +420 -0
- package/plugins/oh-my-codex/hooks/hooks.json +76 -0
- package/plugins/oh-my-codex/skills/ai-slop-cleaner/SKILL.md +148 -0
- package/plugins/oh-my-codex/skills/analyze/SKILL.md +146 -0
- package/plugins/oh-my-codex/skills/ask/SKILL.md +58 -0
- package/plugins/oh-my-codex/skills/autopilot/SKILL.md +215 -0
- package/plugins/oh-my-codex/skills/autoresearch/SKILL.md +72 -0
- package/plugins/oh-my-codex/skills/autoresearch-goal/SKILL.md +36 -0
- package/plugins/oh-my-codex/skills/best-practice-research/SKILL.md +88 -0
- package/plugins/oh-my-codex/skills/cancel/SKILL.md +399 -0
- package/plugins/oh-my-codex/skills/code-review/SKILL.md +292 -0
- package/plugins/oh-my-codex/skills/configure-notifications/SKILL.md +287 -0
- package/plugins/oh-my-codex/skills/deep-interview/SKILL.md +579 -0
- package/plugins/oh-my-codex/skills/design/SKILL.md +180 -0
- package/plugins/oh-my-codex/skills/doctor/SKILL.md +239 -0
- package/plugins/oh-my-codex/skills/hud/SKILL.md +98 -0
- package/plugins/oh-my-codex/skills/omx-setup/SKILL.md +135 -0
- package/plugins/oh-my-codex/skills/performance-goal/SKILL.md +65 -0
- package/plugins/oh-my-codex/skills/pipeline/SKILL.md +97 -0
- package/plugins/oh-my-codex/skills/plan/SKILL.md +277 -0
- package/plugins/oh-my-codex/skills/prometheus-strict/README.md +35 -0
- package/plugins/oh-my-codex/skills/prometheus-strict/SKILL.md +219 -0
- package/plugins/oh-my-codex/skills/ralph/SKILL.md +294 -0
- package/plugins/oh-my-codex/skills/ralplan/SKILL.md +203 -0
- package/plugins/oh-my-codex/skills/skill/SKILL.md +836 -0
- package/plugins/oh-my-codex/skills/team/SKILL.md +536 -0
- package/plugins/oh-my-codex/skills/ultragoal/SKILL.md +139 -0
- package/plugins/oh-my-codex/skills/ultraqa/SKILL.md +263 -0
- package/plugins/oh-my-codex/skills/ultrawork/SKILL.md +190 -0
- package/plugins/oh-my-codex/skills/visual-ralph/SKILL.md +161 -0
- package/plugins/oh-my-codex/skills/wiki/SKILL.md +57 -0
- package/plugins/oh-my-codex/skills/worker/SKILL.md +120 -0
- package/prompts/analyst.md +135 -0
- package/prompts/api-reviewer.md +113 -0
- package/prompts/architect.md +111 -0
- package/prompts/build-fixer.md +115 -0
- package/prompts/code-reviewer.md +139 -0
- package/prompts/code-simplifier.md +134 -0
- package/prompts/critic.md +80 -0
- package/prompts/debugger.md +117 -0
- package/prompts/dependency-expert.md +129 -0
- package/prompts/designer.md +126 -0
- package/prompts/executor.md +108 -0
- package/prompts/explore-harness.md +64 -0
- package/prompts/explore.md +85 -0
- package/prompts/git-master.md +114 -0
- package/prompts/information-architect.md +226 -0
- package/prompts/performance-reviewer.md +109 -0
- package/prompts/planner.md +110 -0
- package/prompts/product-analyst.md +304 -0
- package/prompts/product-manager.md +245 -0
- package/prompts/prometheus-strict-metis.md +274 -0
- package/prompts/prometheus-strict-momus.md +82 -0
- package/prompts/prometheus-strict-oracle.md +107 -0
- package/prompts/qa-tester.md +124 -0
- package/prompts/quality-reviewer.md +123 -0
- package/prompts/quality-strategist.md +274 -0
- package/prompts/researcher.md +122 -0
- package/prompts/scholastic.md +11 -0
- package/prompts/security-reviewer.md +143 -0
- package/prompts/sisyphus-lite.md +111 -0
- package/prompts/style-reviewer.md +102 -0
- package/prompts/team-executor.md +57 -0
- package/prompts/team-orchestrator.md +8 -0
- package/prompts/test-engineer.md +130 -0
- package/prompts/ux-researcher.md +327 -0
- package/prompts/verifier.md +85 -0
- package/prompts/vision.md +98 -0
- package/prompts/writer.md +109 -0
- package/skills/ai-slop-cleaner/SKILL.md +148 -0
- package/skills/analyze/SKILL.md +146 -0
- package/skills/ask/SKILL.md +58 -0
- package/skills/ask-claude/SKILL.md +12 -0
- package/skills/ask-gemini/SKILL.md +12 -0
- package/skills/autopilot/SKILL.md +215 -0
- package/skills/autoresearch/SKILL.md +72 -0
- package/skills/autoresearch-goal/SKILL.md +36 -0
- package/skills/best-practice-research/SKILL.md +88 -0
- package/skills/build-fix/SKILL.md +10 -0
- package/skills/cancel/SKILL.md +399 -0
- package/skills/code-review/SKILL.md +292 -0
- package/skills/configure-notifications/SKILL.md +287 -0
- package/skills/deep-interview/SKILL.md +579 -0
- package/skills/deepsearch/SKILL.md +10 -0
- package/skills/design/SKILL.md +180 -0
- package/skills/doctor/SKILL.md +239 -0
- package/skills/ecomode/SKILL.md +114 -0
- package/skills/frontend-ui-ux/SKILL.md +16 -0
- package/skills/git-master/SKILL.md +27 -0
- package/skills/help/SKILL.md +10 -0
- package/skills/hud/SKILL.md +98 -0
- package/skills/note/SKILL.md +10 -0
- package/skills/omx-setup/SKILL.md +135 -0
- package/skills/performance-goal/SKILL.md +65 -0
- package/skills/pipeline/SKILL.md +97 -0
- package/skills/plan/SKILL.md +277 -0
- package/skills/prometheus-strict/README.md +35 -0
- package/skills/prometheus-strict/SKILL.md +219 -0
- package/skills/ralph/SKILL.md +294 -0
- package/skills/ralph-init/SKILL.md +10 -0
- package/skills/ralplan/SKILL.md +203 -0
- package/skills/review/SKILL.md +10 -0
- package/skills/security-review/SKILL.md +10 -0
- package/skills/skill/SKILL.md +836 -0
- package/skills/swarm/SKILL.md +12 -0
- package/skills/tdd/SKILL.md +104 -0
- package/skills/team/SKILL.md +536 -0
- package/skills/trace/SKILL.md +10 -0
- package/skills/ultragoal/SKILL.md +139 -0
- package/skills/ultraqa/SKILL.md +263 -0
- package/skills/ultrawork/SKILL.md +190 -0
- package/skills/visual-ralph/SKILL.md +161 -0
- package/skills/visual-verdict/SKILL.md +10 -0
- package/skills/web-clone/SKILL.md +357 -0
- package/skills/wiki/SKILL.md +57 -0
- package/skills/worker/SKILL.md +120 -0
- package/src/scripts/__tests__/codex-native-hook.test.ts +17173 -0
- package/src/scripts/__tests__/docs-site-contract.test.ts +47 -0
- package/src/scripts/__tests__/generate-release-body.test.ts +275 -0
- package/src/scripts/__tests__/hook-derived-watcher.test.ts +285 -0
- package/src/scripts/__tests__/notify-dispatcher.test.ts +504 -0
- package/src/scripts/__tests__/notify-state-io.test.ts +168 -0
- package/src/scripts/__tests__/notify-tmux-injection.test.ts +82 -0
- package/src/scripts/__tests__/postinstall.test.ts +113 -0
- package/src/scripts/__tests__/prompt-inventory.test.ts +64 -0
- package/src/scripts/__tests__/run-test-files.test.ts +455 -0
- package/src/scripts/__tests__/smoke-packed-install.test.ts +192 -0
- package/src/scripts/__tests__/test-reply-listener-live.test.ts +101 -0
- package/src/scripts/__tests__/verify-native-agents.test.ts +299 -0
- package/src/scripts/ask-claude.sh +17 -0
- package/src/scripts/ask-gemini.sh +14 -0
- package/src/scripts/build-api.ts +48 -0
- package/src/scripts/build-explore-harness.ts +54 -0
- package/src/scripts/build-sparkshell.ts +52 -0
- package/src/scripts/check-runtime-syntax.ts +63 -0
- package/src/scripts/check-version-sync.ts +54 -0
- package/src/scripts/cleanup-explore-harness.ts +18 -0
- package/src/scripts/codex-execution-surface.ts +75 -0
- package/src/scripts/codex-native-hook.ts +4877 -0
- package/src/scripts/codex-native-pre-post.ts +1360 -0
- package/src/scripts/demo-claude-workers.sh +241 -0
- package/src/scripts/demo-team-e2e.sh +184 -0
- package/src/scripts/eval/eval-adaptive-sort-optimization.py +24 -0
- package/src/scripts/eval/eval-candidate-handoff.ts +8 -0
- package/src/scripts/eval/eval-cli-discoverability.ts +40 -0
- package/src/scripts/eval/eval-fresh-run-tagging.ts +8 -0
- package/src/scripts/eval/eval-help-consistency.ts +11 -0
- package/src/scripts/eval/eval-in-action-cat-shellout-demo.ts +31 -0
- package/src/scripts/eval/eval-ml-kaggle-model-optimization.py +29 -0
- package/src/scripts/eval/eval-noisy-bayesopt-highdim.py +44 -0
- package/src/scripts/eval/eval-noisy-latent-subspace-discovery.py +44 -0
- package/src/scripts/eval/eval-parity-smoke.ts +20 -0
- package/src/scripts/eval/eval-parity-sweep.ts +26 -0
- package/src/scripts/eval/eval-resume-dirty-guard.ts +8 -0
- package/src/scripts/eval/eval-security-path-traversal.ts +38 -0
- package/src/scripts/fixtures/ask-advisor-stub.ts +12 -0
- package/src/scripts/generate-catalog-docs.ts +112 -0
- package/src/scripts/generate-native-release-manifest.ts +147 -0
- package/src/scripts/generate-release-body.ts +327 -0
- package/src/scripts/hook-derived-watcher.ts +649 -0
- package/src/scripts/hook-payload-guard.ts +113 -0
- package/src/scripts/notify-dispatcher.ts +408 -0
- package/src/scripts/notify-fallback-watcher.ts +2022 -0
- package/src/scripts/notify-hook/__tests__/operational-events.test.ts +24 -0
- package/src/scripts/notify-hook/__tests__/payload-guard.test.ts +41 -0
- package/src/scripts/notify-hook/__tests__/team-worker-posttooluse.test.ts +180 -0
- package/src/scripts/notify-hook/active-team.ts +55 -0
- package/src/scripts/notify-hook/auto-nudge.ts +758 -0
- package/src/scripts/notify-hook/log.ts +30 -0
- package/src/scripts/notify-hook/managed-tmux.ts +568 -0
- package/src/scripts/notify-hook/operational-events.ts +282 -0
- package/src/scripts/notify-hook/orchestration-intent.ts +80 -0
- package/src/scripts/notify-hook/payload-parser.ts +143 -0
- package/src/scripts/notify-hook/process-runner.ts +75 -0
- package/src/scripts/notify-hook/ralph-session-resume.ts +465 -0
- package/src/scripts/notify-hook/state-io.ts +220 -0
- package/src/scripts/notify-hook/team-dispatch.ts +1162 -0
- package/src/scripts/notify-hook/team-leader-nudge.ts +1068 -0
- package/src/scripts/notify-hook/team-tmux-guard.ts +236 -0
- package/src/scripts/notify-hook/team-worker-posttooluse.ts +536 -0
- package/src/scripts/notify-hook/team-worker-stop.ts +438 -0
- package/src/scripts/notify-hook/team-worker.ts +709 -0
- package/src/scripts/notify-hook/tmux-injection.ts +740 -0
- package/src/scripts/notify-hook/utils.ts +31 -0
- package/src/scripts/notify-hook/visual-verdict.ts +158 -0
- package/src/scripts/notify-hook.ts +1033 -0
- package/src/scripts/postinstall.ts +107 -0
- package/src/scripts/prepare-build.js +83 -0
- package/src/scripts/prompt-inventory.ts +218 -0
- package/src/scripts/run-autoresearch-showcase.sh +75 -0
- package/src/scripts/run-provider-advisor.ts +213 -0
- package/src/scripts/run-test-files.ts +379 -0
- package/src/scripts/smoke-packed-install.ts +268 -0
- package/src/scripts/sync-plugin-mirror.ts +458 -0
- package/src/scripts/sync-prompt-guidance-fragments.ts +55 -0
- package/src/scripts/team-hardening-benchmark.ts +90 -0
- package/src/scripts/test-reply-listener-live.ts +188 -0
- package/src/scripts/test-sparkshell.ts +29 -0
- package/src/scripts/tmux-hook-engine.ts +349 -0
- package/src/scripts/verify-native-agents.ts +311 -0
- package/src/scripts/verify-native-release-assets.ts +68 -0
- package/templates/AGENTS.md +187 -0
- package/templates/catalog-manifest.json +547 -0
- package/templates/model-instructions/explore-lightweight-AGENTS.md +11 -0
- package/templates/model-instructions/sparkshell-lightweight-AGENTS.md +10 -0
|
@@ -0,0 +1,2897 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process';
|
|
2
|
+
import { createHash } from 'node:crypto';
|
|
3
|
+
import { afterEach, beforeEach, describe, it } from 'node:test';
|
|
4
|
+
import assert from 'node:assert/strict';
|
|
5
|
+
import { existsSync } from 'node:fs';
|
|
6
|
+
import { chmod, mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises';
|
|
7
|
+
import { spawn } from 'node:child_process';
|
|
8
|
+
import { join, relative } from 'node:path';
|
|
9
|
+
import { tmpdir } from 'node:os';
|
|
10
|
+
import { fileURLToPath } from 'node:url';
|
|
11
|
+
import { buildLeaderMonitoringHints, parseTeamStartArgs, teamCommand } from '../team.js';
|
|
12
|
+
import { readModeState } from '../../modes/base.js';
|
|
13
|
+
import { readApprovedExecutionLaunchHint } from '../../planning/artifacts.js';
|
|
14
|
+
import { buildRepoAwareTeamExecutionPlan } from '../../team/repo-aware-decomposition.js';
|
|
15
|
+
import { DEFAULT_MAX_WORKERS } from '../../team/state.js';
|
|
16
|
+
import { shutdownTeam } from '../../team/runtime.js';
|
|
17
|
+
import { sameFilePath } from '../../utils/paths.js';
|
|
18
|
+
import { appendTeamEvent, createTask, initTeamState, readTeamConfig, saveTeamConfig, updateWorkerHeartbeat, writeMonitorSnapshot, writeTaskApproval, writeWorkerStatus, } from '../../team/state.js';
|
|
19
|
+
import { buildApprovedTeamExecutionBinding, writePersistedApprovedTeamExecutionBinding, } from '../../team/approved-execution.js';
|
|
20
|
+
import { writePersistedTeamUltragoalContext } from '../../team/ultragoal-context.js';
|
|
21
|
+
import { isRealTmuxAvailable, withTempTmuxSession } from '../../team/__tests__/tmux-test-fixture.js';
|
|
22
|
+
const OMX_CLI_PATH = fileURLToPath(new URL('../omx.js', import.meta.url));
|
|
23
|
+
const ORIGINAL_OMX_TEAM_WORKER = process.env.OMX_TEAM_WORKER;
|
|
24
|
+
const ORIGINAL_OMX_TEAM_STATE_ROOT = process.env.OMX_TEAM_STATE_ROOT;
|
|
25
|
+
function encodeApprovedExecutionTask(task, quote) {
|
|
26
|
+
return quote === 'single'
|
|
27
|
+
? `'${task.replace(/'/g, "\\'")}'`
|
|
28
|
+
: `"${task.replace(/"/g, '\\"')}"`;
|
|
29
|
+
}
|
|
30
|
+
function computeGitBlobSha1(content) {
|
|
31
|
+
const buffer = Buffer.from(content, 'utf-8');
|
|
32
|
+
const header = Buffer.from(`blob ${buffer.length}\0`, 'utf-8');
|
|
33
|
+
return createHash('sha1').update(header).update(buffer).digest('hex');
|
|
34
|
+
}
|
|
35
|
+
function canonicalContextPackRelativePath(slug) {
|
|
36
|
+
return `.omx/context/context-20260507T120000Z-${slug}.json`;
|
|
37
|
+
}
|
|
38
|
+
function buildContextPackOutcome(relativePackPath) {
|
|
39
|
+
return [
|
|
40
|
+
'## Context Pack Outcome',
|
|
41
|
+
'',
|
|
42
|
+
`- pack: created \`${relativePackPath}\``,
|
|
43
|
+
].join('\n');
|
|
44
|
+
}
|
|
45
|
+
async function writeContextPack(cwd, slug, prdPath, testSpecPath, roles) {
|
|
46
|
+
const contextDir = join(cwd, '.omx', 'context');
|
|
47
|
+
const packPath = join(cwd, canonicalContextPackRelativePath(slug));
|
|
48
|
+
const prdContent = await readFile(prdPath, 'utf-8');
|
|
49
|
+
const testSpecContent = await readFile(testSpecPath, 'utf-8');
|
|
50
|
+
await mkdir(contextDir, { recursive: true });
|
|
51
|
+
await writeFile(packPath, JSON.stringify({
|
|
52
|
+
slug,
|
|
53
|
+
basis: {
|
|
54
|
+
prd: {
|
|
55
|
+
path: relative(cwd, prdPath).replaceAll('\\', '/'),
|
|
56
|
+
sha1: computeGitBlobSha1(prdContent),
|
|
57
|
+
},
|
|
58
|
+
testSpecs: [{
|
|
59
|
+
path: relative(cwd, testSpecPath).replaceAll('\\', '/'),
|
|
60
|
+
sha1: computeGitBlobSha1(testSpecContent),
|
|
61
|
+
}],
|
|
62
|
+
},
|
|
63
|
+
entries: roles.map((role, index) => ({
|
|
64
|
+
path: `src/${role}-${index}.ts`,
|
|
65
|
+
roles: [role],
|
|
66
|
+
})),
|
|
67
|
+
}, null, 2));
|
|
68
|
+
}
|
|
69
|
+
async function writeReadyContextPack(cwd, slug, prdPath, testSpecPath) {
|
|
70
|
+
await writeContextPack(cwd, slug, prdPath, testSpecPath, ['scope', 'build', 'verify']);
|
|
71
|
+
}
|
|
72
|
+
beforeEach(() => {
|
|
73
|
+
delete process.env.OMX_TEAM_WORKER;
|
|
74
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
75
|
+
});
|
|
76
|
+
afterEach(() => {
|
|
77
|
+
if (typeof ORIGINAL_OMX_TEAM_WORKER === 'string')
|
|
78
|
+
process.env.OMX_TEAM_WORKER = ORIGINAL_OMX_TEAM_WORKER;
|
|
79
|
+
else
|
|
80
|
+
delete process.env.OMX_TEAM_WORKER;
|
|
81
|
+
if (typeof ORIGINAL_OMX_TEAM_STATE_ROOT === 'string')
|
|
82
|
+
process.env.OMX_TEAM_STATE_ROOT = ORIGINAL_OMX_TEAM_STATE_ROOT;
|
|
83
|
+
else
|
|
84
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
85
|
+
});
|
|
86
|
+
function withoutTeamTestWorkerEnv(fn) {
|
|
87
|
+
const previousTeamWorker = process.env.OMX_TEAM_WORKER;
|
|
88
|
+
const previousTeamStateRoot = process.env.OMX_TEAM_STATE_ROOT;
|
|
89
|
+
delete process.env.OMX_TEAM_WORKER;
|
|
90
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
91
|
+
let restoreImmediately = true;
|
|
92
|
+
const restore = () => {
|
|
93
|
+
if (typeof previousTeamWorker === 'string')
|
|
94
|
+
process.env.OMX_TEAM_WORKER = previousTeamWorker;
|
|
95
|
+
else
|
|
96
|
+
delete process.env.OMX_TEAM_WORKER;
|
|
97
|
+
if (typeof previousTeamStateRoot === 'string')
|
|
98
|
+
process.env.OMX_TEAM_STATE_ROOT = previousTeamStateRoot;
|
|
99
|
+
else
|
|
100
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
101
|
+
};
|
|
102
|
+
try {
|
|
103
|
+
const result = fn();
|
|
104
|
+
if (result instanceof Promise) {
|
|
105
|
+
restoreImmediately = false;
|
|
106
|
+
return result.finally(restore);
|
|
107
|
+
}
|
|
108
|
+
return result;
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
if (restoreImmediately)
|
|
112
|
+
restore();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function withMockPromptModeCodexAllowed(fn) {
|
|
116
|
+
const previous = process.env.OMX_TEST_ALLOW_NONTTY_CODEX_PROMPT;
|
|
117
|
+
process.env.OMX_TEST_ALLOW_NONTTY_CODEX_PROMPT = '1';
|
|
118
|
+
let restoreImmediately = true;
|
|
119
|
+
const restore = () => {
|
|
120
|
+
if (typeof previous === 'string')
|
|
121
|
+
process.env.OMX_TEST_ALLOW_NONTTY_CODEX_PROMPT = previous;
|
|
122
|
+
else
|
|
123
|
+
delete process.env.OMX_TEST_ALLOW_NONTTY_CODEX_PROMPT;
|
|
124
|
+
};
|
|
125
|
+
try {
|
|
126
|
+
const result = fn();
|
|
127
|
+
if (result instanceof Promise) {
|
|
128
|
+
restoreImmediately = false;
|
|
129
|
+
return result.finally(restore);
|
|
130
|
+
}
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
finally {
|
|
134
|
+
if (restoreImmediately)
|
|
135
|
+
restore();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
async function runNodeCli(args, options) {
|
|
139
|
+
return await new Promise((resolve, reject) => {
|
|
140
|
+
const child = spawn(process.execPath, [OMX_CLI_PATH, ...args], {
|
|
141
|
+
cwd: options.cwd,
|
|
142
|
+
env: options.env,
|
|
143
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
144
|
+
});
|
|
145
|
+
let hardKillTimer = null;
|
|
146
|
+
const timeoutTimer = typeof options.timeoutMs === 'number' && options.timeoutMs > 0
|
|
147
|
+
? setTimeout(() => {
|
|
148
|
+
child.kill('SIGTERM');
|
|
149
|
+
hardKillTimer = setTimeout(() => {
|
|
150
|
+
child.kill('SIGKILL');
|
|
151
|
+
}, 1_000);
|
|
152
|
+
hardKillTimer.unref();
|
|
153
|
+
}, options.timeoutMs)
|
|
154
|
+
: null;
|
|
155
|
+
timeoutTimer?.unref();
|
|
156
|
+
let stdout = '';
|
|
157
|
+
let stderr = '';
|
|
158
|
+
child.stdout.setEncoding('utf-8');
|
|
159
|
+
child.stderr.setEncoding('utf-8');
|
|
160
|
+
child.stdout.on('data', (chunk) => {
|
|
161
|
+
stdout += chunk;
|
|
162
|
+
});
|
|
163
|
+
child.stderr.on('data', (chunk) => {
|
|
164
|
+
stderr += chunk;
|
|
165
|
+
});
|
|
166
|
+
child.on('error', (error) => {
|
|
167
|
+
if (timeoutTimer)
|
|
168
|
+
clearTimeout(timeoutTimer);
|
|
169
|
+
if (hardKillTimer)
|
|
170
|
+
clearTimeout(hardKillTimer);
|
|
171
|
+
reject(error);
|
|
172
|
+
});
|
|
173
|
+
child.on('close', (code, signal) => {
|
|
174
|
+
if (timeoutTimer)
|
|
175
|
+
clearTimeout(timeoutTimer);
|
|
176
|
+
if (hardKillTimer)
|
|
177
|
+
clearTimeout(hardKillTimer);
|
|
178
|
+
resolve({ code, signal, stdout, stderr });
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function skipUnlessTmux(t) {
|
|
183
|
+
if (!isRealTmuxAvailable()) {
|
|
184
|
+
t.skip('tmux is not available in this environment');
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function runFixtureTmux(fixture, args) {
|
|
188
|
+
return execFileSync('tmux', args, {
|
|
189
|
+
encoding: 'utf-8',
|
|
190
|
+
env: {
|
|
191
|
+
...process.env,
|
|
192
|
+
TMUX: fixture.env.TMUX,
|
|
193
|
+
TMUX_PANE: fixture.leaderPaneId,
|
|
194
|
+
},
|
|
195
|
+
}).trim();
|
|
196
|
+
}
|
|
197
|
+
function fixturePaneExists(fixture, paneId) {
|
|
198
|
+
try {
|
|
199
|
+
runFixtureTmux(fixture, ['display-message', '-p', '-t', paneId, '#{pane_id}']);
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
catch {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
async function waitForFileText(filePath, timeoutMs = 5_000) {
|
|
207
|
+
const deadline = Date.now() + timeoutMs;
|
|
208
|
+
while (Date.now() < deadline) {
|
|
209
|
+
if (existsSync(filePath)) {
|
|
210
|
+
const text = await readFile(filePath, 'utf-8');
|
|
211
|
+
if (text.trim() !== '')
|
|
212
|
+
return text;
|
|
213
|
+
}
|
|
214
|
+
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
215
|
+
}
|
|
216
|
+
throw new Error(`timed out waiting for ${filePath}`);
|
|
217
|
+
}
|
|
218
|
+
describe('parseTeamStartArgs', () => {
|
|
219
|
+
it('parses default team start args with automatic detached worktrees', () => {
|
|
220
|
+
const result = parseTeamStartArgs(['2:executor', 'build', 'feature']);
|
|
221
|
+
assert.deepEqual(result.worktreeMode, { enabled: true, detached: true, name: null });
|
|
222
|
+
assert.equal(result.parsed.workerCount, 2);
|
|
223
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
224
|
+
assert.equal(result.parsed.task, 'build feature');
|
|
225
|
+
assert.equal(result.parsed.teamName, 'build-feature');
|
|
226
|
+
});
|
|
227
|
+
it('parses detached worktree mode and strips the flag', () => {
|
|
228
|
+
const result = parseTeamStartArgs(['--worktree', '3:debugger', 'fix', 'bug']);
|
|
229
|
+
assert.deepEqual(result.worktreeMode, { enabled: true, detached: true, name: null });
|
|
230
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
231
|
+
assert.equal(result.parsed.agentType, 'debugger');
|
|
232
|
+
assert.equal(result.parsed.task, 'fix bug');
|
|
233
|
+
assert.equal(result.parsed.teamName, 'fix-bug');
|
|
234
|
+
});
|
|
235
|
+
it('keeps explicit --worktree detached mode as a legacy-compatible override', () => {
|
|
236
|
+
const result = parseTeamStartArgs(['--worktree', '3:debugger', 'fix', 'bug']);
|
|
237
|
+
assert.deepEqual(result.worktreeMode, { enabled: true, detached: true, name: null });
|
|
238
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
239
|
+
assert.equal(result.parsed.agentType, 'debugger');
|
|
240
|
+
});
|
|
241
|
+
it('rejects deprecated omx team ralph syntax', () => {
|
|
242
|
+
assert.throws(() => parseTeamStartArgs(['ralph', '--worktree=feature/demo', '4:executor', 'ship', 'it']), /Deprecated usage: `omx team ralph \.\.\.` has been removed/);
|
|
243
|
+
});
|
|
244
|
+
it('accepts the maximum supported worker count', () => {
|
|
245
|
+
const result = parseTeamStartArgs([`${DEFAULT_MAX_WORKERS}:executor`, 'ship', 'it']);
|
|
246
|
+
assert.equal(result.parsed.workerCount, DEFAULT_MAX_WORKERS);
|
|
247
|
+
});
|
|
248
|
+
it('rejects worker count above the supported maximum', () => {
|
|
249
|
+
assert.throws(() => parseTeamStartArgs([`${DEFAULT_MAX_WORKERS + 1}:executor`, 'ship', 'it']), new RegExp(`Expected 1-${DEFAULT_MAX_WORKERS}`));
|
|
250
|
+
});
|
|
251
|
+
it('reuses the approved team launch hint for a short English follow-up', async () => {
|
|
252
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-en-'));
|
|
253
|
+
const previousCwd = process.cwd();
|
|
254
|
+
try {
|
|
255
|
+
process.chdir(wd);
|
|
256
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
257
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-831.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 831 plan"\n');
|
|
258
|
+
await writeFile(join(wd, '.omx', 'plans', 'test-spec-issue-831.md'), '# Test spec\n');
|
|
259
|
+
const result = parseTeamStartArgs(['team']);
|
|
260
|
+
assert.equal(result.parsed.task, 'Execute approved issue 831 plan');
|
|
261
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
262
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
263
|
+
assert.equal(result.parsed.explicitWorkerCount, true);
|
|
264
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
265
|
+
}
|
|
266
|
+
finally {
|
|
267
|
+
process.chdir(previousCwd);
|
|
268
|
+
await rm(wd, { recursive: true, force: true });
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
it('reuses the approved team launch hint for a short Korean follow-up', async () => {
|
|
272
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-ko-'));
|
|
273
|
+
const previousCwd = process.cwd();
|
|
274
|
+
try {
|
|
275
|
+
process.chdir(wd);
|
|
276
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
277
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-831.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 831 plan"\n');
|
|
278
|
+
await writeFile(join(wd, '.omx', 'plans', 'test-spec-issue-831.md'), '# Test spec\n');
|
|
279
|
+
const result = parseTeamStartArgs(['team으로', '해줘']);
|
|
280
|
+
assert.equal(result.parsed.task, 'Execute approved issue 831 plan');
|
|
281
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
282
|
+
}
|
|
283
|
+
finally {
|
|
284
|
+
process.chdir(previousCwd);
|
|
285
|
+
await rm(wd, { recursive: true, force: true });
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
it('does not reuse an older approved team hint when the latest matching handoff is missing its baseline', async () => {
|
|
289
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-lineage-missing-baseline-'));
|
|
290
|
+
const previousCwd = process.cwd();
|
|
291
|
+
const approvedTask = 'Execute approved Team lineage follow-up';
|
|
292
|
+
try {
|
|
293
|
+
process.chdir(wd);
|
|
294
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
295
|
+
await mkdir(plansDir, { recursive: true });
|
|
296
|
+
await writeFile(join(plansDir, 'prd-alpha-team-lineage.md'), `# Approved plan\n\nLaunch via omx team 3:executor ${JSON.stringify(approvedTask)}\n`);
|
|
297
|
+
await writeFile(join(plansDir, 'test-spec-alpha-team-lineage.md'), '# Test spec\n');
|
|
298
|
+
await writeFile(join(plansDir, 'prd-zeta-team-lineage.md'), `# Approved plan\n\nLaunch via omx team 3:executor ${JSON.stringify(approvedTask)}\n`);
|
|
299
|
+
const result = parseTeamStartArgs(['team']);
|
|
300
|
+
assert.equal(result.parsed.task, 'team');
|
|
301
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
302
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
303
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
304
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
305
|
+
}
|
|
306
|
+
finally {
|
|
307
|
+
process.chdir(previousCwd);
|
|
308
|
+
await rm(wd, { recursive: true, force: true });
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
it('does not reuse an older ready Team handoff when the latest same-signature handoff lacks a baseline', async () => {
|
|
312
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-lineage-invalid-'));
|
|
313
|
+
const previousCwd = process.cwd();
|
|
314
|
+
const approvedTask = 'Execute approved Team invalid lineage follow-up';
|
|
315
|
+
const approvedCommand = `omx team 3:executor ${JSON.stringify(approvedTask)}`;
|
|
316
|
+
try {
|
|
317
|
+
process.chdir(wd);
|
|
318
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
319
|
+
await mkdir(plansDir, { recursive: true });
|
|
320
|
+
const alphaPrdPath = join(plansDir, 'prd-alpha-team-lineage-ready.md');
|
|
321
|
+
const alphaTestSpecPath = join(plansDir, 'test-spec-alpha-team-lineage-ready.md');
|
|
322
|
+
await writeFile(alphaPrdPath, [
|
|
323
|
+
'# Approved plan',
|
|
324
|
+
'',
|
|
325
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('alpha-team-lineage-ready')),
|
|
326
|
+
'',
|
|
327
|
+
`Launch via ${approvedCommand}`,
|
|
328
|
+
].join('\n'));
|
|
329
|
+
await writeFile(alphaTestSpecPath, '# Test spec\n');
|
|
330
|
+
await writeReadyContextPack(wd, 'alpha-team-lineage-ready', alphaPrdPath, alphaTestSpecPath);
|
|
331
|
+
await writeFile(join(plansDir, 'prd-zeta-team-lineage-invalid.md'), [
|
|
332
|
+
'# Approved plan',
|
|
333
|
+
'',
|
|
334
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('zeta-team-lineage-invalid')),
|
|
335
|
+
'',
|
|
336
|
+
`Launch via ${approvedCommand}`,
|
|
337
|
+
].join('\n'));
|
|
338
|
+
const result = parseTeamStartArgs(['team']);
|
|
339
|
+
assert.equal(result.parsed.task, 'team');
|
|
340
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
341
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
342
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
343
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
344
|
+
}
|
|
345
|
+
finally {
|
|
346
|
+
process.chdir(previousCwd);
|
|
347
|
+
await rm(wd, { recursive: true, force: true });
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
it('does not reuse an older ready Team handoff when the latest same-signature handoff is incomplete', async () => {
|
|
351
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-lineage-incomplete-'));
|
|
352
|
+
const previousCwd = process.cwd();
|
|
353
|
+
const approvedTask = 'Execute approved Team incomplete lineage follow-up';
|
|
354
|
+
const approvedCommand = `omx team 3:executor ${JSON.stringify(approvedTask)}`;
|
|
355
|
+
try {
|
|
356
|
+
process.chdir(wd);
|
|
357
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
358
|
+
await mkdir(plansDir, { recursive: true });
|
|
359
|
+
const alphaPrdPath = join(plansDir, 'prd-alpha-team-lineage-complete.md');
|
|
360
|
+
const alphaTestSpecPath = join(plansDir, 'test-spec-alpha-team-lineage-complete.md');
|
|
361
|
+
await writeFile(alphaPrdPath, [
|
|
362
|
+
'# Approved plan',
|
|
363
|
+
'',
|
|
364
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('alpha-team-lineage-complete')),
|
|
365
|
+
'',
|
|
366
|
+
`Launch via ${approvedCommand}`,
|
|
367
|
+
].join('\n'));
|
|
368
|
+
await writeFile(alphaTestSpecPath, '# Test spec\n');
|
|
369
|
+
await writeReadyContextPack(wd, 'alpha-team-lineage-complete', alphaPrdPath, alphaTestSpecPath);
|
|
370
|
+
const zetaPrdPath = join(plansDir, 'prd-zeta-team-lineage-incomplete.md');
|
|
371
|
+
await writeFile(zetaPrdPath, [
|
|
372
|
+
'# Approved plan',
|
|
373
|
+
'',
|
|
374
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('zeta-team-lineage-incomplete')),
|
|
375
|
+
'',
|
|
376
|
+
`Launch via ${approvedCommand}`,
|
|
377
|
+
].join('\n'));
|
|
378
|
+
const result = parseTeamStartArgs(['team']);
|
|
379
|
+
assert.equal(result.parsed.task, 'team');
|
|
380
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
381
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
382
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
383
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
384
|
+
}
|
|
385
|
+
finally {
|
|
386
|
+
process.chdir(previousCwd);
|
|
387
|
+
await rm(wd, { recursive: true, force: true });
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
it('prefers the persisted approved binding over a newer latest approved hint for a short follow-up', async () => {
|
|
391
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-bound-'));
|
|
392
|
+
const previousCwd = process.cwd();
|
|
393
|
+
try {
|
|
394
|
+
process.chdir(wd);
|
|
395
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
396
|
+
await mkdir(plansDir, { recursive: true });
|
|
397
|
+
const boundPrdPath = join(plansDir, 'prd-20260501T010203Z-issue-831.md');
|
|
398
|
+
const boundTestSpecPath = join(plansDir, 'test-spec-20260501T010203Z-issue-831.md');
|
|
399
|
+
await writeFile(boundPrdPath, [
|
|
400
|
+
'# Approved plan',
|
|
401
|
+
'',
|
|
402
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-831')),
|
|
403
|
+
'',
|
|
404
|
+
'Launch via omx team 2:executor "Execute approved issue 831 plan"',
|
|
405
|
+
].join('\n'));
|
|
406
|
+
await writeFile(boundTestSpecPath, '# Test spec\n');
|
|
407
|
+
await writeReadyContextPack(wd, 'issue-831', boundPrdPath, boundTestSpecPath);
|
|
408
|
+
await writeFile(join(plansDir, 'prd-20260502T010203Z-issue-999.md'), '# Approved plan\n\nLaunch via omx team 5:debugger "Execute newer approved issue 999 plan"\n');
|
|
409
|
+
await writeFile(join(plansDir, 'test-spec-20260502T010203Z-issue-999.md'), '# Test spec\n');
|
|
410
|
+
await mkdir(join(wd, '.omx', 'state'), { recursive: true });
|
|
411
|
+
await writeFile(join(wd, '.omx', 'state', 'team-state.json'), JSON.stringify({ active: true, team_name: 'bound-team' }, null, 2));
|
|
412
|
+
await writePersistedApprovedTeamExecutionBinding('bound-team', wd, {
|
|
413
|
+
prd_path: boundPrdPath,
|
|
414
|
+
task: 'Execute approved issue 831 plan',
|
|
415
|
+
command: 'omx team 2:executor "Execute approved issue 831 plan"',
|
|
416
|
+
});
|
|
417
|
+
const result = parseTeamStartArgs(['team']);
|
|
418
|
+
assert.equal(result.parsed.task, 'Execute approved issue 831 plan');
|
|
419
|
+
assert.equal(result.parsed.workerCount, 2);
|
|
420
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
421
|
+
assert.equal(result.parsed.approvedExecution?.task, 'Execute approved issue 831 plan');
|
|
422
|
+
assert.equal(result.parsed.approvedExecution?.command, 'omx team 2:executor "Execute approved issue 831 plan"');
|
|
423
|
+
assert.equal(sameFilePath(result.parsed.approvedExecution?.prd_path ?? '', boundPrdPath), true);
|
|
424
|
+
}
|
|
425
|
+
finally {
|
|
426
|
+
process.chdir(previousCwd);
|
|
427
|
+
await rm(wd, { recursive: true, force: true });
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
it('round-trips single-quoted approved follow-ups from launch hint encoding through persisted binding', async () => {
|
|
431
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-bound-quoted-'));
|
|
432
|
+
const previousCwd = process.cwd();
|
|
433
|
+
try {
|
|
434
|
+
process.chdir(wd);
|
|
435
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
436
|
+
await mkdir(plansDir, { recursive: true });
|
|
437
|
+
const boundTask = "Fix Bob's regression in C:\\\\tmp";
|
|
438
|
+
const boundCommand = `omx team 2:executor ${encodeApprovedExecutionTask(boundTask, 'single')}`;
|
|
439
|
+
const boundPrdPath = join(plansDir, 'prd-issue-831-quoted.md');
|
|
440
|
+
const boundTestSpecPath = join(plansDir, 'test-spec-issue-831-quoted.md');
|
|
441
|
+
await writeFile(boundPrdPath, [
|
|
442
|
+
'# Approved plan',
|
|
443
|
+
'',
|
|
444
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-831-quoted')),
|
|
445
|
+
'',
|
|
446
|
+
`Launch via ${boundCommand}`,
|
|
447
|
+
].join('\n'));
|
|
448
|
+
await writeFile(boundTestSpecPath, '# Test spec\n');
|
|
449
|
+
await writeReadyContextPack(wd, 'issue-831-quoted', boundPrdPath, boundTestSpecPath);
|
|
450
|
+
await mkdir(join(wd, '.omx', 'state'), { recursive: true });
|
|
451
|
+
await writeFile(join(wd, '.omx', 'state', 'team-state.json'), JSON.stringify({ active: true, team_name: 'bound-team-quoted' }, null, 2));
|
|
452
|
+
const approvedHint = readApprovedExecutionLaunchHint(wd, 'team');
|
|
453
|
+
assert.ok(approvedHint);
|
|
454
|
+
assert.equal(approvedHint?.task, boundTask);
|
|
455
|
+
assert.equal(approvedHint?.command, boundCommand);
|
|
456
|
+
await writePersistedApprovedTeamExecutionBinding('bound-team-quoted', wd, buildApprovedTeamExecutionBinding(approvedHint));
|
|
457
|
+
const result = parseTeamStartArgs(['team']);
|
|
458
|
+
assert.equal(result.parsed.task, boundTask);
|
|
459
|
+
assert.equal(result.parsed.workerCount, 2);
|
|
460
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
461
|
+
assert.equal(result.parsed.approvedExecution?.task, boundTask);
|
|
462
|
+
assert.equal(result.parsed.approvedExecution?.command, boundCommand);
|
|
463
|
+
}
|
|
464
|
+
finally {
|
|
465
|
+
process.chdir(previousCwd);
|
|
466
|
+
await rm(wd, { recursive: true, force: true });
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
it('round-trips double-quoted approved follow-ups from launch hint encoding through persisted binding', async () => {
|
|
470
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-bound-double-quoted-'));
|
|
471
|
+
const previousCwd = process.cwd();
|
|
472
|
+
try {
|
|
473
|
+
process.chdir(wd);
|
|
474
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
475
|
+
await mkdir(plansDir, { recursive: true });
|
|
476
|
+
const boundTask = String.raw `Use C:\tmp and keep \n literal plus "quotes"`;
|
|
477
|
+
const boundCommand = `omx team 2:executor ${encodeApprovedExecutionTask(boundTask, 'double')}`;
|
|
478
|
+
const boundPrdPath = join(plansDir, 'prd-issue-831-double-quoted.md');
|
|
479
|
+
const boundTestSpecPath = join(plansDir, 'test-spec-issue-831-double-quoted.md');
|
|
480
|
+
await writeFile(boundPrdPath, [
|
|
481
|
+
'# Approved plan',
|
|
482
|
+
'',
|
|
483
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-831-double-quoted')),
|
|
484
|
+
'',
|
|
485
|
+
`Launch via ${boundCommand}`,
|
|
486
|
+
].join('\n'));
|
|
487
|
+
await writeFile(boundTestSpecPath, '# Test spec\n');
|
|
488
|
+
await writeReadyContextPack(wd, 'issue-831-double-quoted', boundPrdPath, boundTestSpecPath);
|
|
489
|
+
await mkdir(join(wd, '.omx', 'state'), { recursive: true });
|
|
490
|
+
await writeFile(join(wd, '.omx', 'state', 'team-state.json'), JSON.stringify({ active: true, team_name: 'bound-team-double-quoted' }, null, 2));
|
|
491
|
+
const approvedHint = readApprovedExecutionLaunchHint(wd, 'team');
|
|
492
|
+
assert.ok(approvedHint);
|
|
493
|
+
assert.equal(approvedHint?.task, boundTask);
|
|
494
|
+
assert.equal(approvedHint?.command, boundCommand);
|
|
495
|
+
await writePersistedApprovedTeamExecutionBinding('bound-team-double-quoted', wd, buildApprovedTeamExecutionBinding(approvedHint));
|
|
496
|
+
const result = parseTeamStartArgs(['team']);
|
|
497
|
+
assert.equal(result.parsed.task, boundTask);
|
|
498
|
+
assert.equal(result.parsed.workerCount, 2);
|
|
499
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
500
|
+
assert.equal(result.parsed.approvedExecution?.task, boundTask);
|
|
501
|
+
assert.equal(result.parsed.approvedExecution?.command, boundCommand);
|
|
502
|
+
}
|
|
503
|
+
finally {
|
|
504
|
+
process.chdir(previousCwd);
|
|
505
|
+
await rm(wd, { recursive: true, force: true });
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
it('reuses the persisted approved binding from session-scoped team state for a short follow-up', async () => {
|
|
509
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-bound-session-'));
|
|
510
|
+
const previousCwd = process.cwd();
|
|
511
|
+
try {
|
|
512
|
+
process.chdir(wd);
|
|
513
|
+
const sessionId = 'sess-team-followup-bound';
|
|
514
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
515
|
+
await mkdir(plansDir, { recursive: true });
|
|
516
|
+
const prdPath = join(plansDir, 'prd-issue-954.md');
|
|
517
|
+
await writeFile(prdPath, '# Approved plan\n\nLaunch via omx team 5:executor "Execute approved session-scoped plan"\n');
|
|
518
|
+
await writeFile(join(plansDir, 'test-spec-issue-954.md'), '# Test spec\n');
|
|
519
|
+
await mkdir(join(wd, '.omx', 'state', 'sessions', sessionId), { recursive: true });
|
|
520
|
+
await writeFile(join(wd, '.omx', 'state', 'session.json'), JSON.stringify({ session_id: sessionId }, null, 2));
|
|
521
|
+
await writeFile(join(wd, '.omx', 'state', 'sessions', sessionId, 'team-state.json'), JSON.stringify({
|
|
522
|
+
active: true,
|
|
523
|
+
team_name: 'bound-team-session',
|
|
524
|
+
task_description: 'Execute approved session-scoped plan',
|
|
525
|
+
agent_count: 5,
|
|
526
|
+
}, null, 2));
|
|
527
|
+
await writePersistedApprovedTeamExecutionBinding('bound-team-session', wd, {
|
|
528
|
+
prd_path: prdPath,
|
|
529
|
+
task: 'Execute approved session-scoped plan',
|
|
530
|
+
command: 'omx team 5:executor "Execute approved session-scoped plan"',
|
|
531
|
+
});
|
|
532
|
+
const result = parseTeamStartArgs(['team']);
|
|
533
|
+
assert.equal(result.parsed.task, 'Execute approved session-scoped plan');
|
|
534
|
+
assert.equal(result.parsed.workerCount, 5);
|
|
535
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
536
|
+
}
|
|
537
|
+
finally {
|
|
538
|
+
process.chdir(previousCwd);
|
|
539
|
+
await rm(wd, { recursive: true, force: true });
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
it('carries plan-only short follow-ups when a persisted binding resolves to a baseline-ready hint', async () => {
|
|
543
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-plan-only-'));
|
|
544
|
+
const previousCwd = process.cwd();
|
|
545
|
+
try {
|
|
546
|
+
process.chdir(wd);
|
|
547
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
548
|
+
await mkdir(plansDir, { recursive: true });
|
|
549
|
+
const prdPath = join(plansDir, 'prd-issue-2085.md');
|
|
550
|
+
const command = 'omx team 3:executor "Execute approved issue 2085 plan"';
|
|
551
|
+
await writeFile(prdPath, `# Approved plan\n\nLaunch via ${command}\n`);
|
|
552
|
+
await writeFile(join(plansDir, 'test-spec-issue-2085.md'), '# Test spec\n');
|
|
553
|
+
await mkdir(join(wd, '.omx', 'state'), { recursive: true });
|
|
554
|
+
await writeFile(join(wd, '.omx', 'state', 'team-state.json'), JSON.stringify({ active: true, team_name: 'bound-plan-only-team' }, null, 2));
|
|
555
|
+
await writePersistedApprovedTeamExecutionBinding('bound-plan-only-team', wd, {
|
|
556
|
+
prd_path: prdPath,
|
|
557
|
+
task: 'Execute approved issue 2085 plan',
|
|
558
|
+
command,
|
|
559
|
+
});
|
|
560
|
+
const result = parseTeamStartArgs(['team']);
|
|
561
|
+
assert.equal(result.parsed.task, 'Execute approved issue 2085 plan');
|
|
562
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
563
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
564
|
+
assert.equal(result.parsed.approvedExecution?.task, 'Execute approved issue 2085 plan');
|
|
565
|
+
assert.equal(result.parsed.approvedExecution?.command, command);
|
|
566
|
+
assert.equal(sameFilePath(result.parsed.approvedExecution?.prd_path ?? '', prdPath), true);
|
|
567
|
+
}
|
|
568
|
+
finally {
|
|
569
|
+
process.chdir(previousCwd);
|
|
570
|
+
await rm(wd, { recursive: true, force: true });
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
it('keeps short follow-up generic when the latest approved handoff is non-baseline', async () => {
|
|
574
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-nonready-'));
|
|
575
|
+
const previousCwd = process.cwd();
|
|
576
|
+
try {
|
|
577
|
+
process.chdir(wd);
|
|
578
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
579
|
+
await mkdir(plansDir, { recursive: true });
|
|
580
|
+
await writeFile(join(plansDir, 'prd-issue-2086.md'), [
|
|
581
|
+
'# Approved plan',
|
|
582
|
+
'',
|
|
583
|
+
'## Context Pack Outcome',
|
|
584
|
+
'',
|
|
585
|
+
'- pack: created `.omx/context/context-20260507T120000Z-other.json`',
|
|
586
|
+
'',
|
|
587
|
+
'Launch via omx team 3:executor "Execute approved issue 2086 plan"',
|
|
588
|
+
].join('\n'));
|
|
589
|
+
const result = parseTeamStartArgs(['team']);
|
|
590
|
+
assert.equal(result.parsed.task, 'team');
|
|
591
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
592
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
593
|
+
}
|
|
594
|
+
finally {
|
|
595
|
+
process.chdir(previousCwd);
|
|
596
|
+
await rm(wd, { recursive: true, force: true });
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
it('keeps short follow-up generic when the latest approved handoff is missing its baseline', async () => {
|
|
600
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-missing-baseline-'));
|
|
601
|
+
const previousCwd = process.cwd();
|
|
602
|
+
try {
|
|
603
|
+
process.chdir(wd);
|
|
604
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
605
|
+
await mkdir(plansDir, { recursive: true });
|
|
606
|
+
await writeFile(join(plansDir, 'prd-issue-2086-missing-baseline.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 2086 missing-baseline plan"\n');
|
|
607
|
+
const result = parseTeamStartArgs(['team']);
|
|
608
|
+
assert.equal(result.parsed.task, 'team');
|
|
609
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
610
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
611
|
+
}
|
|
612
|
+
finally {
|
|
613
|
+
process.chdir(previousCwd);
|
|
614
|
+
await rm(wd, { recursive: true, force: true });
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
it('keeps short follow-up generic when the latest approved handoff is incomplete and non-baseline', async () => {
|
|
618
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-incomplete-'));
|
|
619
|
+
const previousCwd = process.cwd();
|
|
620
|
+
try {
|
|
621
|
+
process.chdir(wd);
|
|
622
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
623
|
+
await mkdir(plansDir, { recursive: true });
|
|
624
|
+
const prdPath = join(plansDir, 'prd-issue-2086-incomplete.md');
|
|
625
|
+
await writeFile(prdPath, [
|
|
626
|
+
'# Approved plan',
|
|
627
|
+
'',
|
|
628
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2086-incomplete')),
|
|
629
|
+
'',
|
|
630
|
+
'Launch via omx team 3:executor "Execute approved issue 2086 incomplete plan"',
|
|
631
|
+
].join('\n'));
|
|
632
|
+
const result = parseTeamStartArgs(['team']);
|
|
633
|
+
assert.equal(result.parsed.task, 'team');
|
|
634
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
635
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
636
|
+
}
|
|
637
|
+
finally {
|
|
638
|
+
process.chdir(previousCwd);
|
|
639
|
+
await rm(wd, { recursive: true, force: true });
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
it('fails closed for a short follow-up when the persisted approved binding is malformed', async () => {
|
|
643
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-malformed-binding-'));
|
|
644
|
+
const previousCwd = process.cwd();
|
|
645
|
+
try {
|
|
646
|
+
process.chdir(wd);
|
|
647
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
648
|
+
const stateDir = join(wd, '.omx', 'state');
|
|
649
|
+
await mkdir(plansDir, { recursive: true });
|
|
650
|
+
await mkdir(join(stateDir, 'team', 'broken-team'), { recursive: true });
|
|
651
|
+
await writeFile(join(plansDir, 'prd-issue-831.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 831 plan"\n');
|
|
652
|
+
await writeFile(join(plansDir, 'test-spec-issue-831.md'), '# Test spec\n');
|
|
653
|
+
await writeFile(join(stateDir, 'team-state.json'), JSON.stringify({ active: true, team_name: 'broken-team' }, null, 2));
|
|
654
|
+
await writeFile(join(stateDir, 'team', 'broken-team', 'approved-execution.json'), '{"prd_path":42}', 'utf-8');
|
|
655
|
+
assert.throws(() => parseTeamStartArgs(['team']), /approved_execution_binding_malformed:broken-team/);
|
|
656
|
+
}
|
|
657
|
+
finally {
|
|
658
|
+
process.chdir(previousCwd);
|
|
659
|
+
await rm(wd, { recursive: true, force: true });
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
it('fails closed for a short follow-up when the persisted approved binding is stale even if a newer PRD is ready', async () => {
|
|
663
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-bound-stale-'));
|
|
664
|
+
const previousCwd = process.cwd();
|
|
665
|
+
try {
|
|
666
|
+
process.chdir(wd);
|
|
667
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
668
|
+
await mkdir(plansDir, { recursive: true });
|
|
669
|
+
const stalePrdPath = join(plansDir, 'prd-issue-955-alpha.md');
|
|
670
|
+
await writeFile(stalePrdPath, '# Approved plan\n\nLaunch via omx team 4:executor "Execute approved alpha plan"\n');
|
|
671
|
+
await writeFile(join(plansDir, 'test-spec-issue-955-alpha.md'), '# Test spec\n');
|
|
672
|
+
await writeFile(join(plansDir, 'prd-issue-955-zeta.md'), '# Approved plan\n\nLaunch via omx team 6:debugger "Execute approved zeta plan"\n');
|
|
673
|
+
await writeFile(join(plansDir, 'test-spec-issue-955-zeta.md'), '# Test spec\n');
|
|
674
|
+
await rm(stalePrdPath, { force: true });
|
|
675
|
+
await mkdir(join(wd, '.omx', 'state'), { recursive: true });
|
|
676
|
+
await writeFile(join(wd, '.omx', 'state', 'team-state.json'), JSON.stringify({
|
|
677
|
+
active: true,
|
|
678
|
+
team_name: 'bound-team-stale',
|
|
679
|
+
task_description: 'Execute approved alpha plan',
|
|
680
|
+
agent_count: 4,
|
|
681
|
+
}, null, 2));
|
|
682
|
+
await writePersistedApprovedTeamExecutionBinding('bound-team-stale', wd, {
|
|
683
|
+
prd_path: stalePrdPath,
|
|
684
|
+
task: 'Execute approved alpha plan',
|
|
685
|
+
});
|
|
686
|
+
assert.throws(() => parseTeamStartArgs(['team']), /approved_execution_binding_stale:.*Execute approved alpha plan/);
|
|
687
|
+
}
|
|
688
|
+
finally {
|
|
689
|
+
process.chdir(previousCwd);
|
|
690
|
+
await rm(wd, { recursive: true, force: true });
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
it('fails closed for a short follow-up when the persisted approved binding is ambiguous', async () => {
|
|
694
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-bound-ambiguous-'));
|
|
695
|
+
const previousCwd = process.cwd();
|
|
696
|
+
const approvedTask = 'Execute approved issue 956 plan';
|
|
697
|
+
try {
|
|
698
|
+
process.chdir(wd);
|
|
699
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
700
|
+
const stateDir = join(wd, '.omx', 'state');
|
|
701
|
+
await mkdir(plansDir, { recursive: true });
|
|
702
|
+
await writeFile(join(plansDir, 'prd-issue-956.md'), [
|
|
703
|
+
'# Approved plan',
|
|
704
|
+
'',
|
|
705
|
+
`Launch via omx team 4:executor "${approvedTask}"`,
|
|
706
|
+
`Launch via omx team 6:debugger "${approvedTask}"`,
|
|
707
|
+
].join('\n'));
|
|
708
|
+
await writeFile(join(plansDir, 'test-spec-issue-956.md'), '# Test spec\n');
|
|
709
|
+
await mkdir(stateDir, { recursive: true });
|
|
710
|
+
await writeFile(join(stateDir, 'team-state.json'), JSON.stringify({
|
|
711
|
+
active: true,
|
|
712
|
+
team_name: 'bound-team-ambiguous',
|
|
713
|
+
task_description: approvedTask,
|
|
714
|
+
agent_count: 4,
|
|
715
|
+
}, null, 2));
|
|
716
|
+
await writePersistedApprovedTeamExecutionBinding('bound-team-ambiguous', wd, {
|
|
717
|
+
prd_path: join(plansDir, 'prd-issue-956.md'),
|
|
718
|
+
task: approvedTask,
|
|
719
|
+
});
|
|
720
|
+
assert.throws(() => parseTeamStartArgs(['team']), /approved_execution_binding_ambiguous:.*Execute approved issue 956 plan/);
|
|
721
|
+
}
|
|
722
|
+
finally {
|
|
723
|
+
process.chdir(previousCwd);
|
|
724
|
+
await rm(wd, { recursive: true, force: true });
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
it('fails closed for a short team follow-up when the selected PRD lists multiple team launch hints', async () => {
|
|
728
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-ambiguous-'));
|
|
729
|
+
const previousCwd = process.cwd();
|
|
730
|
+
try {
|
|
731
|
+
process.chdir(wd);
|
|
732
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
733
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-831-ambiguous.md'), [
|
|
734
|
+
'# Approved plan',
|
|
735
|
+
'',
|
|
736
|
+
'Launch via omx team 3:executor "Execute approved issue 831 plan"',
|
|
737
|
+
'Launch via omx team 5:debugger "Execute alternate issue 831 plan"',
|
|
738
|
+
].join('\n'));
|
|
739
|
+
await writeFile(join(wd, '.omx', 'plans', 'test-spec-issue-831-ambiguous.md'), '# Test spec\n');
|
|
740
|
+
assert.throws(() => parseTeamStartArgs(['team']), /approved_execution_hint_ambiguous:team/);
|
|
741
|
+
}
|
|
742
|
+
finally {
|
|
743
|
+
process.chdir(previousCwd);
|
|
744
|
+
await rm(wd, { recursive: true, force: true });
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
it('uses the persisted team launch signature to disambiguate a short approved follow-up', async () => {
|
|
748
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-signature-'));
|
|
749
|
+
const previousCwd = process.cwd();
|
|
750
|
+
const approvedTask = 'Execute approved issue 2042 plan';
|
|
751
|
+
try {
|
|
752
|
+
process.chdir(wd);
|
|
753
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
754
|
+
const stateDir = join(wd, '.omx', 'state');
|
|
755
|
+
await mkdir(plansDir, { recursive: true });
|
|
756
|
+
const prdPath = join(plansDir, 'prd-issue-2042.md');
|
|
757
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2042.md');
|
|
758
|
+
await writeFile(prdPath, [
|
|
759
|
+
'# Approved plan',
|
|
760
|
+
'',
|
|
761
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2042')),
|
|
762
|
+
'',
|
|
763
|
+
`Launch via omx team 2:executor "${approvedTask}"`,
|
|
764
|
+
`Launch via $team ralph 5:debugger "${approvedTask}"`,
|
|
765
|
+
].join('\n'));
|
|
766
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
767
|
+
await writeReadyContextPack(wd, 'issue-2042', prdPath, testSpecPath);
|
|
768
|
+
await mkdir(stateDir, { recursive: true });
|
|
769
|
+
await writeFile(join(stateDir, 'team-state.json'), JSON.stringify({
|
|
770
|
+
active: true,
|
|
771
|
+
team_name: 'signature-followup-team',
|
|
772
|
+
task_description: approvedTask,
|
|
773
|
+
agent_count: 2,
|
|
774
|
+
agentType: 'executor',
|
|
775
|
+
linkedRalph: false,
|
|
776
|
+
}, null, 2));
|
|
777
|
+
const result = parseTeamStartArgs(['team']);
|
|
778
|
+
assert.equal(result.parsed.task, approvedTask);
|
|
779
|
+
assert.equal(result.parsed.workerCount, 2);
|
|
780
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
781
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
782
|
+
assert.equal(result.parsed.approvedExecution?.command, `omx team 2:executor "${approvedTask}"`);
|
|
783
|
+
}
|
|
784
|
+
finally {
|
|
785
|
+
process.chdir(previousCwd);
|
|
786
|
+
await rm(wd, { recursive: true, force: true });
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
it('does not opt normal team startup into repo-aware DAG handoff even when a stale sidecar exists', async () => {
|
|
790
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-dag-normal-'));
|
|
791
|
+
const previousCwd = process.cwd();
|
|
792
|
+
try {
|
|
793
|
+
process.chdir(wd);
|
|
794
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
795
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-831.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 831 plan"\n');
|
|
796
|
+
await writeFile(join(wd, '.omx', 'plans', 'test-spec-issue-831.md'), '# Test spec\n');
|
|
797
|
+
await writeFile(join(wd, '.omx', 'plans', 'team-dag-issue-831.json'), '{"schema_version":1,"nodes":[{"id":"impl","subject":"Impl","description":"Impl"}]}\n');
|
|
798
|
+
const result = parseTeamStartArgs(['3:executor', 'fix', 'unrelated', 'bug']);
|
|
799
|
+
assert.equal(result.parsed.task, 'fix unrelated bug');
|
|
800
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
801
|
+
}
|
|
802
|
+
finally {
|
|
803
|
+
process.chdir(previousCwd);
|
|
804
|
+
await rm(wd, { recursive: true, force: true });
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
it('opts into repo-aware DAG handoff when the invocation matches the approved launch hint', async () => {
|
|
808
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-dag-approved-'));
|
|
809
|
+
const previousCwd = process.cwd();
|
|
810
|
+
try {
|
|
811
|
+
process.chdir(wd);
|
|
812
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
813
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-831.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 831 plan"\n');
|
|
814
|
+
await writeFile(join(wd, '.omx', 'plans', 'test-spec-issue-831.md'), '# Test spec\n');
|
|
815
|
+
const result = parseTeamStartArgs(['3:executor', 'Execute', 'approved', 'issue', '831', 'plan']);
|
|
816
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
817
|
+
}
|
|
818
|
+
finally {
|
|
819
|
+
process.chdir(previousCwd);
|
|
820
|
+
await rm(wd, { recursive: true, force: true });
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
it('matches the full approved team launch signature for same-task explicit launches', async () => {
|
|
824
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-dag-signature-match-'));
|
|
825
|
+
const previousCwd = process.cwd();
|
|
826
|
+
const approvedTask = 'Execute approved issue 2043 plan';
|
|
827
|
+
try {
|
|
828
|
+
process.chdir(wd);
|
|
829
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
830
|
+
await mkdir(plansDir, { recursive: true });
|
|
831
|
+
const prdPath = join(plansDir, 'prd-issue-2043.md');
|
|
832
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2043.md');
|
|
833
|
+
await writeFile(prdPath, [
|
|
834
|
+
'# Approved plan',
|
|
835
|
+
'',
|
|
836
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2043')),
|
|
837
|
+
'',
|
|
838
|
+
`Launch via omx team 2:executor "${approvedTask}"`,
|
|
839
|
+
`Launch via $team ralph 5:debugger "${approvedTask}"`,
|
|
840
|
+
].join('\n'));
|
|
841
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
842
|
+
await writeReadyContextPack(wd, 'issue-2043', prdPath, testSpecPath);
|
|
843
|
+
const result = parseTeamStartArgs(['2:executor', 'Execute', 'approved', 'issue', '2043', 'plan']);
|
|
844
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
845
|
+
assert.equal(result.parsed.approvedExecution?.task, approvedTask);
|
|
846
|
+
assert.equal(result.parsed.approvedExecution?.command, `omx team 2:executor "${approvedTask}"`);
|
|
847
|
+
}
|
|
848
|
+
finally {
|
|
849
|
+
process.chdir(previousCwd);
|
|
850
|
+
await rm(wd, { recursive: true, force: true });
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
it('matches role-agnostic approved team hints for default executor launches', async () => {
|
|
854
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-dag-role-agnostic-default-'));
|
|
855
|
+
const previousCwd = process.cwd();
|
|
856
|
+
const approvedTask = 'Execute approved issue 2045 plan';
|
|
857
|
+
try {
|
|
858
|
+
process.chdir(wd);
|
|
859
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
860
|
+
await mkdir(plansDir, { recursive: true });
|
|
861
|
+
const prdPath = join(plansDir, 'prd-issue-2045.md');
|
|
862
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2045.md');
|
|
863
|
+
await writeFile(prdPath, [
|
|
864
|
+
'# Approved plan',
|
|
865
|
+
'',
|
|
866
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2045')),
|
|
867
|
+
'',
|
|
868
|
+
`Launch via omx team 3 "${approvedTask}"`,
|
|
869
|
+
].join('\n'));
|
|
870
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
871
|
+
await writeReadyContextPack(wd, 'issue-2045', prdPath, testSpecPath);
|
|
872
|
+
const result = parseTeamStartArgs(['Execute', 'approved', 'issue', '2045', 'plan']);
|
|
873
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
874
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
875
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
876
|
+
assert.equal(result.parsed.approvedExecution?.command, `omx team 3 "${approvedTask}"`);
|
|
877
|
+
}
|
|
878
|
+
finally {
|
|
879
|
+
process.chdir(previousCwd);
|
|
880
|
+
await rm(wd, { recursive: true, force: true });
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
it('matches role-agnostic approved team hints when fallback must ignore the default executor role', async () => {
|
|
884
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-dag-role-agnostic-fallback-'));
|
|
885
|
+
const previousCwd = process.cwd();
|
|
886
|
+
const approvedTask = 'Execute approved issue 2046 plan';
|
|
887
|
+
try {
|
|
888
|
+
process.chdir(wd);
|
|
889
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
890
|
+
await mkdir(plansDir, { recursive: true });
|
|
891
|
+
const prdPath = join(plansDir, 'prd-issue-2046.md');
|
|
892
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2046.md');
|
|
893
|
+
await writeFile(prdPath, [
|
|
894
|
+
'# Approved plan',
|
|
895
|
+
'',
|
|
896
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2046')),
|
|
897
|
+
'',
|
|
898
|
+
`Launch via $team 3 "${approvedTask}"`,
|
|
899
|
+
].join('\n'));
|
|
900
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
901
|
+
await writeReadyContextPack(wd, 'issue-2046', prdPath, testSpecPath);
|
|
902
|
+
const result = parseTeamStartArgs(['3', 'Execute', 'approved', 'issue', '2046', 'plan']);
|
|
903
|
+
assert.equal(result.parsed.workerCount, 3);
|
|
904
|
+
assert.equal(result.parsed.agentType, 'executor');
|
|
905
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
906
|
+
assert.equal(result.parsed.approvedExecution?.command, `$team 3 "${approvedTask}"`);
|
|
907
|
+
}
|
|
908
|
+
finally {
|
|
909
|
+
process.chdir(previousCwd);
|
|
910
|
+
await rm(wd, { recursive: true, force: true });
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
it('prefers the exact omx team command when same-signature duplicates are present', async () => {
|
|
914
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-dag-command-match-'));
|
|
915
|
+
const previousCwd = process.cwd();
|
|
916
|
+
const approvedTask = 'Execute approved issue 2044 plan';
|
|
917
|
+
try {
|
|
918
|
+
process.chdir(wd);
|
|
919
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
920
|
+
await mkdir(plansDir, { recursive: true });
|
|
921
|
+
const prdPath = join(plansDir, 'prd-issue-2044.md');
|
|
922
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2044.md');
|
|
923
|
+
await writeFile(prdPath, [
|
|
924
|
+
'# Approved plan',
|
|
925
|
+
'',
|
|
926
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2044')),
|
|
927
|
+
'',
|
|
928
|
+
`Launch via omx team 2:executor "${approvedTask}"`,
|
|
929
|
+
`Launch via $team 2:executor "${approvedTask}"`,
|
|
930
|
+
].join('\n'));
|
|
931
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
932
|
+
await writeReadyContextPack(wd, 'issue-2044', prdPath, testSpecPath);
|
|
933
|
+
const result = parseTeamStartArgs(['2:executor', 'Execute', 'approved', 'issue', '2044', 'plan']);
|
|
934
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, true);
|
|
935
|
+
assert.equal(result.parsed.approvedExecution?.command, `omx team 2:executor "${approvedTask}"`);
|
|
936
|
+
}
|
|
937
|
+
finally {
|
|
938
|
+
process.chdir(previousCwd);
|
|
939
|
+
await rm(wd, { recursive: true, force: true });
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
it('attaches approved repository context summary only for matching ready team launches', async () => {
|
|
943
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-context-approved-'));
|
|
944
|
+
const previousCwd = process.cwd();
|
|
945
|
+
try {
|
|
946
|
+
process.chdir(wd);
|
|
947
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
948
|
+
await mkdir(plansDir, { recursive: true });
|
|
949
|
+
const prdPath = join(plansDir, 'prd-issue-2039.md');
|
|
950
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2039.md');
|
|
951
|
+
await writeFile(prdPath, [
|
|
952
|
+
'# Approved plan',
|
|
953
|
+
'',
|
|
954
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2039')),
|
|
955
|
+
'',
|
|
956
|
+
'Launch via omx team 3:executor "Execute approved issue 2039 plan"',
|
|
957
|
+
].join('\n'));
|
|
958
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
959
|
+
await writeReadyContextPack(wd, 'issue-2039', prdPath, testSpecPath);
|
|
960
|
+
await writeFile(join(plansDir, 'repo-context-issue-2039.md'), 'Key boundary: latest approved handoff only.\n');
|
|
961
|
+
const approved = parseTeamStartArgs(['3:executor', 'Execute', 'approved', 'issue', '2039', 'plan']);
|
|
962
|
+
assert.equal(approved.parsed.approvedRepositoryContextSummary?.content, 'Key boundary: latest approved handoff only.');
|
|
963
|
+
const unrelated = parseTeamStartArgs(['3:executor', 'fix', 'unrelated', 'bug']);
|
|
964
|
+
assert.equal(unrelated.parsed.approvedRepositoryContextSummary, undefined);
|
|
965
|
+
}
|
|
966
|
+
finally {
|
|
967
|
+
process.chdir(previousCwd);
|
|
968
|
+
await rm(wd, { recursive: true, force: true });
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
it('keeps ready approved execution generic when staffing no longer matches the approved launch hint', async () => {
|
|
972
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-context-ready-mismatch-'));
|
|
973
|
+
const previousCwd = process.cwd();
|
|
974
|
+
try {
|
|
975
|
+
process.chdir(wd);
|
|
976
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
977
|
+
await mkdir(plansDir, { recursive: true });
|
|
978
|
+
const prdPath = join(plansDir, 'prd-issue-2040.md');
|
|
979
|
+
const testSpecPath = join(plansDir, 'test-spec-issue-2040.md');
|
|
980
|
+
await writeFile(prdPath, [
|
|
981
|
+
'# Approved plan',
|
|
982
|
+
'',
|
|
983
|
+
buildContextPackOutcome(canonicalContextPackRelativePath('issue-2040')),
|
|
984
|
+
'',
|
|
985
|
+
'Launch via omx team 3:executor "Execute approved issue 2040 plan"',
|
|
986
|
+
].join('\n'));
|
|
987
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
988
|
+
await writeReadyContextPack(wd, 'issue-2040', prdPath, testSpecPath);
|
|
989
|
+
await writeFile(join(plansDir, 'repo-context-issue-2040.md'), 'Keep approved context off generic mismatches.\n');
|
|
990
|
+
const result = parseTeamStartArgs(['2:debugger', 'Execute', 'approved', 'issue', '2040', 'plan']);
|
|
991
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
992
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
993
|
+
assert.equal(result.parsed.approvedRepositoryContextSummary, undefined);
|
|
994
|
+
}
|
|
995
|
+
finally {
|
|
996
|
+
process.chdir(previousCwd);
|
|
997
|
+
await rm(wd, { recursive: true, force: true });
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
it('does not carry approved execution for explicit plan-only team launches', async () => {
|
|
1001
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-explicit-plan-only-'));
|
|
1002
|
+
const previousCwd = process.cwd();
|
|
1003
|
+
try {
|
|
1004
|
+
process.chdir(wd);
|
|
1005
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
1006
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-2087.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 2087 plan"\n');
|
|
1007
|
+
await writeFile(join(wd, '.omx', 'plans', 'repo-context-issue-2087.md'), 'Do not widen non-baseline context.\n');
|
|
1008
|
+
const result = parseTeamStartArgs(['3:executor', 'Execute', 'approved', 'issue', '2087', 'plan']);
|
|
1009
|
+
assert.equal(result.parsed.allowRepoAwareDagHandoff, false);
|
|
1010
|
+
assert.equal(result.parsed.approvedExecution, undefined);
|
|
1011
|
+
assert.equal(result.parsed.approvedRepositoryContextSummary, undefined);
|
|
1012
|
+
}
|
|
1013
|
+
finally {
|
|
1014
|
+
process.chdir(previousCwd);
|
|
1015
|
+
await rm(wd, { recursive: true, force: true });
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
it('uses generic DAG fallback reasons for explicit non-baseline approved launches', async () => {
|
|
1019
|
+
const previousCwd = process.cwd();
|
|
1020
|
+
const cases = [
|
|
1021
|
+
{
|
|
1022
|
+
name: 'missing-baseline',
|
|
1023
|
+
slug: 'issue-2090-missing-baseline',
|
|
1024
|
+
includeOutcome: false,
|
|
1025
|
+
writeTestSpec: false,
|
|
1026
|
+
packSetup: async (_wd, _prdPath, _testSpecPath) => { },
|
|
1027
|
+
expected: 'dag_handoff_not_approved_for_invocation',
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
name: 'incomplete',
|
|
1031
|
+
slug: 'issue-2090-incomplete',
|
|
1032
|
+
includeOutcome: true,
|
|
1033
|
+
writeTestSpec: false,
|
|
1034
|
+
packSetup: async (_wd, _prdPath, _testSpecPath) => { },
|
|
1035
|
+
expected: 'dag_handoff_not_approved_for_invocation',
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
name: 'invalid',
|
|
1039
|
+
slug: 'issue-2090-invalid',
|
|
1040
|
+
includeOutcome: true,
|
|
1041
|
+
writeTestSpec: false,
|
|
1042
|
+
packSetup: async (_wd, _prdPath, _testSpecPath) => { },
|
|
1043
|
+
expected: 'dag_handoff_not_approved_for_invocation',
|
|
1044
|
+
},
|
|
1045
|
+
];
|
|
1046
|
+
try {
|
|
1047
|
+
for (const scenario of cases) {
|
|
1048
|
+
const wd = await mkdtemp(join(tmpdir(), `omx-team-dag-fallback-${scenario.name}-`));
|
|
1049
|
+
try {
|
|
1050
|
+
process.chdir(wd);
|
|
1051
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
1052
|
+
await mkdir(plansDir, { recursive: true });
|
|
1053
|
+
const prdPath = join(plansDir, `prd-${scenario.slug}.md`);
|
|
1054
|
+
const testSpecPath = join(plansDir, `test-spec-${scenario.slug}.md`);
|
|
1055
|
+
const outcomePath = scenario.name === 'invalid'
|
|
1056
|
+
? canonicalContextPackRelativePath('other')
|
|
1057
|
+
: canonicalContextPackRelativePath(scenario.slug);
|
|
1058
|
+
const prdSections = ['# Approved plan', ''];
|
|
1059
|
+
if (scenario.includeOutcome) {
|
|
1060
|
+
prdSections.push(buildContextPackOutcome(outcomePath), '');
|
|
1061
|
+
}
|
|
1062
|
+
prdSections.push(`Launch via omx team 3:executor "Execute approved ${scenario.name} DAG plan"`);
|
|
1063
|
+
await writeFile(prdPath, prdSections.join('\n'));
|
|
1064
|
+
if (scenario.writeTestSpec) {
|
|
1065
|
+
await writeFile(testSpecPath, '# Test spec\n');
|
|
1066
|
+
}
|
|
1067
|
+
await writeFile(join(plansDir, `team-dag-${scenario.slug}.json`), '{"schema_version":1,"nodes":[{"id":"impl","subject":"Impl","description":"Impl"}]}\n');
|
|
1068
|
+
await scenario.packSetup(wd, prdPath, testSpecPath);
|
|
1069
|
+
const parsed = parseTeamStartArgs(['3:executor', 'Execute', 'approved', scenario.name, 'DAG', 'plan']);
|
|
1070
|
+
const executionPlan = buildRepoAwareTeamExecutionPlan({
|
|
1071
|
+
task: parsed.parsed.task,
|
|
1072
|
+
workerCount: parsed.parsed.workerCount,
|
|
1073
|
+
agentType: parsed.parsed.agentType,
|
|
1074
|
+
explicitAgentType: parsed.parsed.explicitAgentType,
|
|
1075
|
+
explicitWorkerCount: parsed.parsed.explicitWorkerCount,
|
|
1076
|
+
cwd: wd,
|
|
1077
|
+
buildLegacyPlan: (task, workerCount, agentType) => ({
|
|
1078
|
+
workerCount,
|
|
1079
|
+
tasks: [{ subject: task, description: task, owner: 'worker-1', role: agentType }],
|
|
1080
|
+
}),
|
|
1081
|
+
allowDagHandoff: parsed.parsed.allowRepoAwareDagHandoff,
|
|
1082
|
+
dagFallbackReason: parsed.parsed.dagFallbackReason,
|
|
1083
|
+
approvedRepositoryContextSummary: parsed.parsed.approvedRepositoryContextSummary,
|
|
1084
|
+
});
|
|
1085
|
+
assert.equal(parsed.parsed.allowRepoAwareDagHandoff, false);
|
|
1086
|
+
assert.equal(parsed.parsed.dagFallbackReason, undefined);
|
|
1087
|
+
assert.equal(parsed.parsed.approvedExecution, undefined);
|
|
1088
|
+
assert.equal(executionPlan.metadata?.decomposition_source, 'legacy_text');
|
|
1089
|
+
assert.equal(executionPlan.metadata?.fallback_reason, scenario.expected);
|
|
1090
|
+
}
|
|
1091
|
+
finally {
|
|
1092
|
+
process.chdir(previousCwd);
|
|
1093
|
+
await rm(wd, { recursive: true, force: true });
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
finally {
|
|
1098
|
+
process.chdir(previousCwd);
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
it('preserves explicit team staffing overrides while reusing the approved plan task', async () => {
|
|
1102
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-followup-override-'));
|
|
1103
|
+
const previousCwd = process.cwd();
|
|
1104
|
+
try {
|
|
1105
|
+
process.chdir(wd);
|
|
1106
|
+
await mkdir(join(wd, '.omx', 'plans'), { recursive: true });
|
|
1107
|
+
await writeFile(join(wd, '.omx', 'plans', 'prd-issue-831.md'), '# Approved plan\n\nLaunch via omx team 3:executor "Execute approved issue 831 plan"\n');
|
|
1108
|
+
await writeFile(join(wd, '.omx', 'plans', 'test-spec-issue-831.md'), '# Test spec\n');
|
|
1109
|
+
const result = parseTeamStartArgs(['2:debugger', 'team']);
|
|
1110
|
+
assert.equal(result.parsed.task, 'Execute approved issue 831 plan');
|
|
1111
|
+
assert.equal(result.parsed.workerCount, 2);
|
|
1112
|
+
assert.equal(result.parsed.agentType, 'debugger');
|
|
1113
|
+
assert.equal(result.parsed.explicitWorkerCount, true);
|
|
1114
|
+
assert.equal(result.parsed.explicitAgentType, true);
|
|
1115
|
+
}
|
|
1116
|
+
finally {
|
|
1117
|
+
process.chdir(previousCwd);
|
|
1118
|
+
await rm(wd, { recursive: true, force: true });
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
});
|
|
1122
|
+
describe('teamCommand shutdown --force parsing', () => {
|
|
1123
|
+
it('parses --force flag from shutdown args', () => {
|
|
1124
|
+
const teamArgs = ['shutdown', 'my-team', '--force'];
|
|
1125
|
+
const force = teamArgs.includes('--force');
|
|
1126
|
+
assert.equal(force, true);
|
|
1127
|
+
});
|
|
1128
|
+
it('does not set force when --force is absent', () => {
|
|
1129
|
+
const teamArgs = ['shutdown', 'my-team'];
|
|
1130
|
+
const force = teamArgs.includes('--force');
|
|
1131
|
+
assert.equal(force, false);
|
|
1132
|
+
});
|
|
1133
|
+
it('parses --force regardless of position after subcommand', () => {
|
|
1134
|
+
const teamArgs = ['shutdown', '--force', 'my-team'];
|
|
1135
|
+
const force = teamArgs.includes('--force');
|
|
1136
|
+
assert.equal(force, true);
|
|
1137
|
+
});
|
|
1138
|
+
it('persists cancelled team mode state on shutdown even when no team mode state existed beforehand', async () => {
|
|
1139
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-shutdown-mode-state-'));
|
|
1140
|
+
const previousCwd = process.cwd();
|
|
1141
|
+
const originalLog = console.log;
|
|
1142
|
+
const originalWarn = console.warn;
|
|
1143
|
+
const logs = [];
|
|
1144
|
+
const warns = [];
|
|
1145
|
+
try {
|
|
1146
|
+
process.chdir(wd);
|
|
1147
|
+
await mkdir(join(wd, '.omx', 'state'), { recursive: true });
|
|
1148
|
+
await writeFile(join(wd, '.omx', 'state', 'session.json'), JSON.stringify({ session_id: 'sess-team-shutdown-state' }));
|
|
1149
|
+
await initTeamState('team-shutdown-mode-state', 'persist cancelled team mode state after shutdown', 'executor', 1, wd);
|
|
1150
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1151
|
+
console.warn = (...args) => warns.push(args.map(String).join(' '));
|
|
1152
|
+
await teamCommand(['shutdown', 'team-shutdown-mode-state', '--force']);
|
|
1153
|
+
const state = await readModeState('team', wd);
|
|
1154
|
+
assert.ok(state);
|
|
1155
|
+
assert.equal(state?.active, false);
|
|
1156
|
+
assert.equal(state?.current_phase, 'cancelled');
|
|
1157
|
+
assert.equal(state?.team_name, 'team-shutdown-mode-state');
|
|
1158
|
+
assert.equal(warns.length, 0);
|
|
1159
|
+
assert.ok(logs.some((line) => line.includes('Team shutdown complete: team-shutdown-mode-state')));
|
|
1160
|
+
}
|
|
1161
|
+
finally {
|
|
1162
|
+
console.log = originalLog;
|
|
1163
|
+
console.warn = originalWarn;
|
|
1164
|
+
process.chdir(previousCwd);
|
|
1165
|
+
await rm(wd, { recursive: true, force: true });
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
it('persists cancelled session-scoped team mode state on shutdown', async () => {
|
|
1169
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-shutdown-session-mode-state-'));
|
|
1170
|
+
const previousCwd = process.cwd();
|
|
1171
|
+
const teamName = 'team-shutdown-scoped';
|
|
1172
|
+
try {
|
|
1173
|
+
process.chdir(wd);
|
|
1174
|
+
const stateDir = join(wd, '.omx', 'state');
|
|
1175
|
+
const sessionId = 'sess-team-shutdown-scoped';
|
|
1176
|
+
const scopedStateDir = join(stateDir, 'sessions', sessionId);
|
|
1177
|
+
await mkdir(scopedStateDir, { recursive: true });
|
|
1178
|
+
await writeFile(join(stateDir, 'session.json'), JSON.stringify({ session_id: sessionId }));
|
|
1179
|
+
await writeFile(join(scopedStateDir, 'team-state.json'), JSON.stringify({
|
|
1180
|
+
active: true,
|
|
1181
|
+
mode: 'team',
|
|
1182
|
+
current_phase: 'team-exec',
|
|
1183
|
+
team_name: teamName,
|
|
1184
|
+
}, null, 2));
|
|
1185
|
+
await initTeamState(teamName, 'persist cancelled session-scoped team mode state after shutdown', 'executor', 1, wd);
|
|
1186
|
+
await teamCommand(['shutdown', teamName, '--force']);
|
|
1187
|
+
const scopedState = JSON.parse(await readFile(join(scopedStateDir, 'team-state.json'), 'utf-8'));
|
|
1188
|
+
assert.equal(scopedState.active, false);
|
|
1189
|
+
assert.equal(scopedState.current_phase, 'cancelled');
|
|
1190
|
+
assert.equal(scopedState.team_name, teamName);
|
|
1191
|
+
assert.ok(typeof scopedState.completed_at === 'string' && scopedState.completed_at.length > 0);
|
|
1192
|
+
}
|
|
1193
|
+
finally {
|
|
1194
|
+
process.chdir(previousCwd);
|
|
1195
|
+
await rm(wd, { recursive: true, force: true });
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
it('does not create session-scoped team mode state on shutdown when only root team mode state exists', async () => {
|
|
1199
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-shutdown-root-mode-only-'));
|
|
1200
|
+
const previousCwd = process.cwd();
|
|
1201
|
+
const teamName = 'team-shutdown-root-only';
|
|
1202
|
+
const sessionId = 'sess-team-shutdown-root-only';
|
|
1203
|
+
try {
|
|
1204
|
+
process.chdir(wd);
|
|
1205
|
+
const stateDir = join(wd, '.omx', 'state');
|
|
1206
|
+
const scopedStatePath = join(stateDir, 'sessions', sessionId, 'team-state.json');
|
|
1207
|
+
await mkdir(stateDir, { recursive: true });
|
|
1208
|
+
await writeFile(join(stateDir, 'session.json'), JSON.stringify({ session_id: sessionId }));
|
|
1209
|
+
await writeFile(join(stateDir, 'team-state.json'), JSON.stringify({
|
|
1210
|
+
active: true,
|
|
1211
|
+
mode: 'team',
|
|
1212
|
+
current_phase: 'team-exec',
|
|
1213
|
+
team_name: teamName,
|
|
1214
|
+
}, null, 2));
|
|
1215
|
+
await initTeamState(teamName, 'shutdown should not create scoped team mode state from a root-only mode state', 'executor', 1, wd);
|
|
1216
|
+
await teamCommand(['shutdown', teamName, '--force']);
|
|
1217
|
+
assert.equal(existsSync(scopedStatePath), false);
|
|
1218
|
+
const rootState = JSON.parse(await readFile(join(stateDir, 'team-state.json'), 'utf-8'));
|
|
1219
|
+
assert.equal(rootState.active, false);
|
|
1220
|
+
assert.equal(rootState.current_phase, 'cancelled');
|
|
1221
|
+
assert.equal(rootState.team_name, teamName);
|
|
1222
|
+
}
|
|
1223
|
+
finally {
|
|
1224
|
+
process.chdir(previousCwd);
|
|
1225
|
+
await rm(wd, { recursive: true, force: true });
|
|
1226
|
+
}
|
|
1227
|
+
});
|
|
1228
|
+
it('does not create session-scoped team mode state on shutdown when a stale session.json remains', async () => {
|
|
1229
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-shutdown-stale-session-json-'));
|
|
1230
|
+
const previousCwd = process.cwd();
|
|
1231
|
+
const teamName = 'team-shutdown-stale-session';
|
|
1232
|
+
const staleSessionId = 'sess-team-shutdown-stale';
|
|
1233
|
+
try {
|
|
1234
|
+
process.chdir(wd);
|
|
1235
|
+
const stateDir = join(wd, '.omx', 'state');
|
|
1236
|
+
const staleSessionDir = join(stateDir, 'sessions', staleSessionId);
|
|
1237
|
+
const scopedStatePath = join(staleSessionDir, 'team-state.json');
|
|
1238
|
+
await mkdir(staleSessionDir, { recursive: true });
|
|
1239
|
+
await writeFile(join(stateDir, 'session.json'), JSON.stringify({ session_id: staleSessionId }));
|
|
1240
|
+
await writeFile(join(staleSessionDir, 'hud-state.json'), JSON.stringify({ turn_count: 12 }, null, 2));
|
|
1241
|
+
await writeFile(join(stateDir, 'team-state.json'), JSON.stringify({
|
|
1242
|
+
active: true,
|
|
1243
|
+
mode: 'team',
|
|
1244
|
+
current_phase: 'team-exec',
|
|
1245
|
+
team_name: teamName,
|
|
1246
|
+
}, null, 2));
|
|
1247
|
+
await initTeamState(teamName, 'shutdown should ignore stale session.json when only root team mode state exists', 'executor', 1, wd);
|
|
1248
|
+
await teamCommand(['shutdown', teamName, '--force']);
|
|
1249
|
+
assert.equal(existsSync(scopedStatePath), false);
|
|
1250
|
+
const rootState = JSON.parse(await readFile(join(stateDir, 'team-state.json'), 'utf-8'));
|
|
1251
|
+
assert.equal(rootState.active, false);
|
|
1252
|
+
assert.equal(rootState.current_phase, 'cancelled');
|
|
1253
|
+
assert.equal(rootState.team_name, teamName);
|
|
1254
|
+
}
|
|
1255
|
+
finally {
|
|
1256
|
+
process.chdir(previousCwd);
|
|
1257
|
+
await rm(wd, { recursive: true, force: true });
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1260
|
+
it('parses --confirm-issues from shutdown args', () => {
|
|
1261
|
+
const teamArgs = ['shutdown', 'my-team', '--confirm-issues'];
|
|
1262
|
+
const confirmIssues = teamArgs.includes('--confirm-issues');
|
|
1263
|
+
assert.equal(confirmIssues, true);
|
|
1264
|
+
});
|
|
1265
|
+
it('keeps the shutdown CLI alive while tearing down a shared leader tmux session', async () => {
|
|
1266
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-shutdown-shared-cli-'));
|
|
1267
|
+
const binDir = join(wd, 'bin');
|
|
1268
|
+
const tmuxLogPath = join(wd, 'tmux.log');
|
|
1269
|
+
const tmuxPath = join(binDir, 'tmux');
|
|
1270
|
+
const previousPath = process.env.PATH;
|
|
1271
|
+
await mkdir(binDir, { recursive: true });
|
|
1272
|
+
await writeFile(tmuxPath, `#!/bin/sh
|
|
1273
|
+
set -eu
|
|
1274
|
+
printf '%s\\n' "$*" >> "${tmuxLogPath}"
|
|
1275
|
+
case "$1" in
|
|
1276
|
+
-V)
|
|
1277
|
+
echo "tmux 3.4"
|
|
1278
|
+
exit 0
|
|
1279
|
+
;;
|
|
1280
|
+
list-panes)
|
|
1281
|
+
case "$*" in
|
|
1282
|
+
*"-F #{pane_dead} #{pane_pid}"*)
|
|
1283
|
+
exit 1
|
|
1284
|
+
;;
|
|
1285
|
+
*"-t leader:0 -F #{pane_id}"*"#{pane_current_command}"*)
|
|
1286
|
+
printf "%%11\\tzsh\\tzsh\\n%%12\\tnode\\tnode /tmp/bin/omx.js hud --watch\\n%%13\\tcodex\\tcodex\\n%%14\\tcodex\\tcodex\\n"
|
|
1287
|
+
exit 0
|
|
1288
|
+
;;
|
|
1289
|
+
*"-t leader:0 -F #{pane_id}"*)
|
|
1290
|
+
printf "%%11\\n%%12\\n%%13\\n%%14\\n"
|
|
1291
|
+
exit 0
|
|
1292
|
+
;;
|
|
1293
|
+
*)
|
|
1294
|
+
exit 1
|
|
1295
|
+
;;
|
|
1296
|
+
esac
|
|
1297
|
+
;;
|
|
1298
|
+
split-window)
|
|
1299
|
+
printf '%%44\\n'
|
|
1300
|
+
exit 0
|
|
1301
|
+
;;
|
|
1302
|
+
kill-pane)
|
|
1303
|
+
# Shared-session runtime coverage should validate pane-targeted teardown
|
|
1304
|
+
# only. Detached leader-wrapper signal behavior is covered separately in
|
|
1305
|
+
# cli/index detached-session tests.
|
|
1306
|
+
exit 0
|
|
1307
|
+
;;
|
|
1308
|
+
resize-pane|select-pane|has-session|show-options|show-hooks|set-hook|set-option)
|
|
1309
|
+
exit 0
|
|
1310
|
+
;;
|
|
1311
|
+
*)
|
|
1312
|
+
exit 0
|
|
1313
|
+
;;
|
|
1314
|
+
esac
|
|
1315
|
+
`);
|
|
1316
|
+
await chmod(tmuxPath, 0o755);
|
|
1317
|
+
try {
|
|
1318
|
+
await initTeamState('shared-shutdown-cli', 'shared shutdown cli test', 'executor', 2, wd);
|
|
1319
|
+
const config = await readTeamConfig('shared-shutdown-cli', wd);
|
|
1320
|
+
assert.ok(config);
|
|
1321
|
+
if (!config)
|
|
1322
|
+
return;
|
|
1323
|
+
config.tmux_session = 'leader:0';
|
|
1324
|
+
config.leader_pane_id = '%11';
|
|
1325
|
+
config.hud_pane_id = '%12';
|
|
1326
|
+
config.workers[0].pane_id = '%13';
|
|
1327
|
+
config.workers[1].pane_id = '%14';
|
|
1328
|
+
await saveTeamConfig(config, wd);
|
|
1329
|
+
const result = await runNodeCli(['team', 'shutdown', 'shared-shutdown-cli', '--force'], {
|
|
1330
|
+
cwd: wd,
|
|
1331
|
+
env: {
|
|
1332
|
+
...process.env,
|
|
1333
|
+
PATH: `${binDir}:${previousPath ?? ''}`,
|
|
1334
|
+
OMX_TEAM_STATE_ROOT: join(wd, '.omx', 'state'),
|
|
1335
|
+
},
|
|
1336
|
+
});
|
|
1337
|
+
assert.equal(result.signal, null, `shutdown CLI received signal ${result.signal ?? 'none'}\n${result.stderr}`);
|
|
1338
|
+
assert.equal(result.code, 0, `shutdown CLI exit=${result.code}\nstdout:\n${result.stdout}\nstderr:\n${result.stderr}`);
|
|
1339
|
+
assert.match(result.stdout, /Team shutdown complete: shared-shutdown-cli/);
|
|
1340
|
+
assert.equal(existsSync(join(wd, '.omx', 'state', 'team', 'shared-shutdown-cli')), false);
|
|
1341
|
+
const tmuxLog = await readFile(tmuxLogPath, 'utf-8');
|
|
1342
|
+
assert.match(tmuxLog, /kill-pane -t %12/);
|
|
1343
|
+
assert.match(tmuxLog, /kill-pane -t %13/);
|
|
1344
|
+
assert.match(tmuxLog, /kill-pane -t %14/);
|
|
1345
|
+
assert.doesNotMatch(tmuxLog, /kill-pane -t %11/);
|
|
1346
|
+
}
|
|
1347
|
+
finally {
|
|
1348
|
+
if (typeof previousPath === 'string')
|
|
1349
|
+
process.env.PATH = previousPath;
|
|
1350
|
+
else
|
|
1351
|
+
delete process.env.PATH;
|
|
1352
|
+
await rm(wd, { recursive: true, force: true });
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
it('keeps the shutdown command alive when executed inside the leader pane PTY', { concurrency: false }, async (t) => {
|
|
1356
|
+
skipUnlessTmux(t);
|
|
1357
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-shutdown-shared-in-pane-'));
|
|
1358
|
+
try {
|
|
1359
|
+
await withTempTmuxSession(async (fixture) => {
|
|
1360
|
+
const teamName = 'shared-shutdown-in-pane';
|
|
1361
|
+
const teamStateRoot = join(wd, '.omx', 'state');
|
|
1362
|
+
const hudPaneId = runFixtureTmux(fixture, ['split-window', '-d', '-P', '-F', '#{pane_id}', '-t', fixture.windowTarget, 'sleep 300']);
|
|
1363
|
+
const workerPaneOne = runFixtureTmux(fixture, ['split-window', '-d', '-P', '-F', '#{pane_id}', '-t', fixture.windowTarget, 'sleep 300']);
|
|
1364
|
+
const workerPaneTwo = runFixtureTmux(fixture, ['split-window', '-d', '-P', '-F', '#{pane_id}', '-t', fixture.windowTarget, 'sleep 300']);
|
|
1365
|
+
await initTeamState(teamName, 'shared shutdown in-pane test', 'executor', 2, wd);
|
|
1366
|
+
const config = await readTeamConfig(teamName, wd);
|
|
1367
|
+
assert.ok(config);
|
|
1368
|
+
if (!config)
|
|
1369
|
+
return;
|
|
1370
|
+
config.tmux_session = fixture.windowTarget;
|
|
1371
|
+
config.leader_pane_id = fixture.leaderPaneId;
|
|
1372
|
+
config.hud_pane_id = hudPaneId;
|
|
1373
|
+
config.workers[0].pane_id = workerPaneOne;
|
|
1374
|
+
config.workers[1].pane_id = workerPaneTwo;
|
|
1375
|
+
await saveTeamConfig(config, wd);
|
|
1376
|
+
const result = await runNodeCli(['team', 'shutdown', teamName, '--force'], {
|
|
1377
|
+
cwd: wd,
|
|
1378
|
+
env: {
|
|
1379
|
+
...process.env,
|
|
1380
|
+
OMX_AUTO_UPDATE: '0',
|
|
1381
|
+
OMX_TEAM_STATE_ROOT: teamStateRoot,
|
|
1382
|
+
TMUX: fixture.env.TMUX,
|
|
1383
|
+
TMUX_PANE: fixture.leaderPaneId,
|
|
1384
|
+
},
|
|
1385
|
+
timeoutMs: 12_000,
|
|
1386
|
+
});
|
|
1387
|
+
assert.equal(result.signal, null, `shutdown CLI received signal ${result.signal ?? 'none'}\n${result.stderr}`);
|
|
1388
|
+
assert.equal(result.code, 0, `shutdown CLI exit=${result.code}\nstdout:\n${result.stdout}\nstderr:\n${result.stderr}`);
|
|
1389
|
+
const stdout = result.stdout;
|
|
1390
|
+
assert.match(stdout, new RegExp(`Team shutdown complete: ${teamName}`));
|
|
1391
|
+
assert.equal(existsSync(join(teamStateRoot, 'team', teamName)), false);
|
|
1392
|
+
assert.equal(fixturePaneExists(fixture, fixture.leaderPaneId), true, 'leader pane should remain alive');
|
|
1393
|
+
// Exact HUD/worker-pane teardown is covered in runtime shutdown tests.
|
|
1394
|
+
// This CLI test owns the stable operator contract: the command must not
|
|
1395
|
+
// die by signal, it must exit 0, and explicit shutdown must remove team
|
|
1396
|
+
// state while preserving leader survival in a real tmux client context.
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
finally {
|
|
1400
|
+
await rm(wd, { recursive: true, force: true });
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
});
|
|
1404
|
+
describe('teamCommand api', () => {
|
|
1405
|
+
it('builds leader monitoring hints that keep team status visible while ON', () => {
|
|
1406
|
+
const hints = buildLeaderMonitoringHints('My Team');
|
|
1407
|
+
assert.equal(hints[0], 'leader_check: omx team status my-team');
|
|
1408
|
+
assert.match(hints[1] ?? '', /while ON, keep checking state/);
|
|
1409
|
+
assert.match(hints[1] ?? '', /sleep 30 && omx team status my-team/);
|
|
1410
|
+
});
|
|
1411
|
+
it('prints team-specific help for omx team --help', async () => {
|
|
1412
|
+
const logs = [];
|
|
1413
|
+
const originalLog = console.log;
|
|
1414
|
+
try {
|
|
1415
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1416
|
+
await teamCommand(['--help']);
|
|
1417
|
+
assert.equal(logs.length, 1);
|
|
1418
|
+
assert.match(logs[0] ?? '', /Usage: omx team \[N:agent-type\]/);
|
|
1419
|
+
assert.match(logs[0] ?? '', /omx team api <operation>/);
|
|
1420
|
+
assert.match(logs[0] ?? '', /dedicated worktrees automatically by default/);
|
|
1421
|
+
assert.match(logs[0] ?? '', /--worktree is deprecated/);
|
|
1422
|
+
assert.match(logs[0] ?? '', /tmux-runtime surface by default/);
|
|
1423
|
+
assert.match(logs[0] ?? '', /Codex App or plain outside-tmux sessions/);
|
|
1424
|
+
assert.match(logs[0] ?? '', /native Codex subagents for small in-session fanout/);
|
|
1425
|
+
}
|
|
1426
|
+
finally {
|
|
1427
|
+
console.log = originalLog;
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
it('prints team-specific help for omx team help alias', async () => {
|
|
1431
|
+
const logs = [];
|
|
1432
|
+
const originalLog = console.log;
|
|
1433
|
+
try {
|
|
1434
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1435
|
+
await teamCommand(['help']);
|
|
1436
|
+
assert.equal(logs.length, 1);
|
|
1437
|
+
assert.match(logs[0] ?? '', /Usage: omx team \[N:agent-type\]/);
|
|
1438
|
+
assert.match(logs[0] ?? '', /omx team api <operation>/);
|
|
1439
|
+
assert.match(logs[0] ?? '', /dedicated worktrees automatically by default/);
|
|
1440
|
+
assert.match(logs[0] ?? '', /--worktree is deprecated/);
|
|
1441
|
+
assert.match(logs[0] ?? '', /tmux-runtime surface by default/);
|
|
1442
|
+
assert.match(logs[0] ?? '', /Codex App or plain outside-tmux sessions/);
|
|
1443
|
+
}
|
|
1444
|
+
finally {
|
|
1445
|
+
console.log = originalLog;
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
it('prints team-api-specific help for omx team api --help', async () => {
|
|
1449
|
+
const logs = [];
|
|
1450
|
+
const originalLog = console.log;
|
|
1451
|
+
try {
|
|
1452
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1453
|
+
await teamCommand(['api', '--help']);
|
|
1454
|
+
assert.equal(logs.length, 1);
|
|
1455
|
+
assert.match(logs[0] ?? '', /Usage: omx team api <operation>/);
|
|
1456
|
+
assert.match(logs[0] ?? '', /send-message/);
|
|
1457
|
+
assert.match(logs[0] ?? '', /transition-task-status/);
|
|
1458
|
+
assert.match(logs[0] ?? '', /read-idle-state/);
|
|
1459
|
+
assert.match(logs[0] ?? '', /read-stall-state/);
|
|
1460
|
+
}
|
|
1461
|
+
finally {
|
|
1462
|
+
console.log = originalLog;
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
it('prints team-api-specific help for omx team api help alias', async () => {
|
|
1466
|
+
const logs = [];
|
|
1467
|
+
const originalLog = console.log;
|
|
1468
|
+
try {
|
|
1469
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1470
|
+
await teamCommand(['api', 'help']);
|
|
1471
|
+
assert.equal(logs.length, 1);
|
|
1472
|
+
assert.match(logs[0] ?? '', /Usage: omx team api <operation>/);
|
|
1473
|
+
assert.match(logs[0] ?? '', /send-message/);
|
|
1474
|
+
assert.match(logs[0] ?? '', /transition-task-status/);
|
|
1475
|
+
}
|
|
1476
|
+
finally {
|
|
1477
|
+
console.log = originalLog;
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1480
|
+
it('prints operation-specific help for omx team api <operation> --help', async () => {
|
|
1481
|
+
const logs = [];
|
|
1482
|
+
const originalLog = console.log;
|
|
1483
|
+
try {
|
|
1484
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1485
|
+
await teamCommand(['api', 'send-message', '--help']);
|
|
1486
|
+
assert.equal(logs.length, 1);
|
|
1487
|
+
assert.match(logs[0] ?? '', /Usage: omx team api send-message --input <json> \[--json\]/);
|
|
1488
|
+
assert.match(logs[0] ?? '', /Required input fields/);
|
|
1489
|
+
assert.match(logs[0] ?? '', /from_worker/);
|
|
1490
|
+
assert.match(logs[0] ?? '', /to_worker/);
|
|
1491
|
+
assert.match(logs[0] ?? '', /body/);
|
|
1492
|
+
}
|
|
1493
|
+
finally {
|
|
1494
|
+
console.log = originalLog;
|
|
1495
|
+
}
|
|
1496
|
+
});
|
|
1497
|
+
it('prints operation-specific help for omx team api <operation> help alias', async () => {
|
|
1498
|
+
const logs = [];
|
|
1499
|
+
const originalLog = console.log;
|
|
1500
|
+
try {
|
|
1501
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1502
|
+
await teamCommand(['api', 'claim-task', 'help']);
|
|
1503
|
+
assert.equal(logs.length, 1);
|
|
1504
|
+
assert.match(logs[0] ?? '', /Usage: omx team api claim-task --input <json> \[--json\]/);
|
|
1505
|
+
assert.match(logs[0] ?? '', /expected_version/);
|
|
1506
|
+
}
|
|
1507
|
+
finally {
|
|
1508
|
+
console.log = originalLog;
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
it('prints event query help for omx team api read-events help alias', async () => {
|
|
1512
|
+
const logs = [];
|
|
1513
|
+
const originalLog = console.log;
|
|
1514
|
+
try {
|
|
1515
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1516
|
+
await teamCommand(['api', 'read-events', 'help']);
|
|
1517
|
+
assert.equal(logs.length, 1);
|
|
1518
|
+
assert.match(logs[0] ?? '', /Usage: omx team api read-events --input <json> \[--json\]/);
|
|
1519
|
+
assert.match(logs[0] ?? '', /after_event_id/);
|
|
1520
|
+
assert.match(logs[0] ?? '', /wakeable_only/);
|
|
1521
|
+
assert.match(logs[0] ?? '', /worker_idle/);
|
|
1522
|
+
}
|
|
1523
|
+
finally {
|
|
1524
|
+
console.log = originalLog;
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
it('executes read-events via CLI api with canonical JSON results', async () => {
|
|
1528
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-api-read-events-'));
|
|
1529
|
+
const previousCwd = process.cwd();
|
|
1530
|
+
const logs = [];
|
|
1531
|
+
const originalLog = console.log;
|
|
1532
|
+
try {
|
|
1533
|
+
process.chdir(wd);
|
|
1534
|
+
await initTeamState('api-read-events', 'api event test', 'executor', 1, wd);
|
|
1535
|
+
await appendTeamEvent('api-read-events', {
|
|
1536
|
+
type: 'worker_idle',
|
|
1537
|
+
worker: 'worker-1',
|
|
1538
|
+
task_id: '1',
|
|
1539
|
+
prev_state: 'working',
|
|
1540
|
+
}, wd);
|
|
1541
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1542
|
+
await teamCommand([
|
|
1543
|
+
'api',
|
|
1544
|
+
'read-events',
|
|
1545
|
+
'--input',
|
|
1546
|
+
JSON.stringify({
|
|
1547
|
+
team_name: 'api-read-events',
|
|
1548
|
+
type: 'worker_idle',
|
|
1549
|
+
worker: 'worker-1',
|
|
1550
|
+
task_id: '1',
|
|
1551
|
+
}),
|
|
1552
|
+
'--json',
|
|
1553
|
+
]);
|
|
1554
|
+
assert.equal(logs.length, 1);
|
|
1555
|
+
const envelope = JSON.parse(logs[0]);
|
|
1556
|
+
assert.equal(envelope.command, 'omx team api read-events');
|
|
1557
|
+
assert.equal(envelope.ok, true);
|
|
1558
|
+
assert.equal(envelope.operation, 'read-events');
|
|
1559
|
+
assert.equal(envelope.data?.count, 1);
|
|
1560
|
+
assert.equal(envelope.data?.events?.[0]?.type, 'worker_state_changed');
|
|
1561
|
+
assert.equal(envelope.data?.events?.[0]?.source_type, 'worker_idle');
|
|
1562
|
+
assert.equal(envelope.data?.events?.[0]?.worker, 'worker-1');
|
|
1563
|
+
assert.equal(envelope.data?.events?.[0]?.task_id, '1');
|
|
1564
|
+
}
|
|
1565
|
+
finally {
|
|
1566
|
+
console.log = originalLog;
|
|
1567
|
+
process.chdir(previousCwd);
|
|
1568
|
+
await rm(wd, { recursive: true, force: true });
|
|
1569
|
+
}
|
|
1570
|
+
});
|
|
1571
|
+
it('executes read-idle-state via CLI api with structured JSON results', async () => {
|
|
1572
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-api-read-idle-state-'));
|
|
1573
|
+
const previousCwd = process.cwd();
|
|
1574
|
+
const logs = [];
|
|
1575
|
+
const originalLog = console.log;
|
|
1576
|
+
try {
|
|
1577
|
+
process.chdir(wd);
|
|
1578
|
+
await initTeamState('api-read-idle', 'api idle state test', 'executor', 2, wd);
|
|
1579
|
+
await writeMonitorSnapshot('api-read-idle', {
|
|
1580
|
+
taskStatusById: {},
|
|
1581
|
+
workerAliveByName: { 'worker-1': true, 'worker-2': true },
|
|
1582
|
+
workerStateByName: { 'worker-1': 'idle', 'worker-2': 'working' },
|
|
1583
|
+
workerTurnCountByName: { 'worker-1': 2, 'worker-2': 4 },
|
|
1584
|
+
workerTaskIdByName: { 'worker-1': '', 'worker-2': '1' },
|
|
1585
|
+
mailboxNotifiedByMessageId: {},
|
|
1586
|
+
completedEventTaskIds: {},
|
|
1587
|
+
}, wd);
|
|
1588
|
+
await appendTeamEvent('api-read-idle', {
|
|
1589
|
+
type: 'worker_idle',
|
|
1590
|
+
worker: 'worker-1',
|
|
1591
|
+
task_id: '1',
|
|
1592
|
+
prev_state: 'working',
|
|
1593
|
+
}, wd);
|
|
1594
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1595
|
+
await teamCommand([
|
|
1596
|
+
'api',
|
|
1597
|
+
'read-idle-state',
|
|
1598
|
+
'--input',
|
|
1599
|
+
JSON.stringify({ team_name: 'api-read-idle' }),
|
|
1600
|
+
'--json',
|
|
1601
|
+
]);
|
|
1602
|
+
assert.equal(logs.length, 1);
|
|
1603
|
+
const envelope = JSON.parse(logs[0]);
|
|
1604
|
+
assert.equal(envelope.command, 'omx team api read-idle-state');
|
|
1605
|
+
assert.equal(envelope.ok, true);
|
|
1606
|
+
assert.equal(envelope.operation, 'read-idle-state');
|
|
1607
|
+
assert.equal(envelope.data?.all_workers_idle, false);
|
|
1608
|
+
assert.equal(envelope.data?.idle_worker_count, 1);
|
|
1609
|
+
assert.deepEqual(envelope.data?.idle_workers, ['worker-1']);
|
|
1610
|
+
assert.deepEqual(envelope.data?.non_idle_workers, ['worker-2']);
|
|
1611
|
+
assert.equal(envelope.data?.last_idle_transition_by_worker?.['worker-1']?.source_type, 'worker_idle');
|
|
1612
|
+
}
|
|
1613
|
+
finally {
|
|
1614
|
+
console.log = originalLog;
|
|
1615
|
+
process.chdir(previousCwd);
|
|
1616
|
+
await rm(wd, { recursive: true, force: true });
|
|
1617
|
+
}
|
|
1618
|
+
});
|
|
1619
|
+
it('executes read-stall-state via CLI api with structured JSON results', async () => {
|
|
1620
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-api-read-stall-state-'));
|
|
1621
|
+
const previousCwd = process.cwd();
|
|
1622
|
+
const previousTeamStateRoot = process.env.OMX_TEAM_STATE_ROOT;
|
|
1623
|
+
const logs = [];
|
|
1624
|
+
const originalLog = console.log;
|
|
1625
|
+
try {
|
|
1626
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
1627
|
+
process.chdir(wd);
|
|
1628
|
+
await initTeamState('api-read-stall', 'api stall state test', 'executor', 2, wd);
|
|
1629
|
+
const task = await createTask('api-read-stall', {
|
|
1630
|
+
subject: 'Pending work',
|
|
1631
|
+
description: 'Needs leader attention',
|
|
1632
|
+
status: 'pending',
|
|
1633
|
+
}, wd);
|
|
1634
|
+
await writeWorkerStatus('api-read-stall', 'worker-1', {
|
|
1635
|
+
state: 'working',
|
|
1636
|
+
current_task_id: task.id,
|
|
1637
|
+
updated_at: '2026-03-10T10:00:00.000Z',
|
|
1638
|
+
}, wd);
|
|
1639
|
+
await writeWorkerStatus('api-read-stall', 'worker-2', {
|
|
1640
|
+
state: 'idle',
|
|
1641
|
+
updated_at: '2026-03-10T10:00:00.000Z',
|
|
1642
|
+
}, wd);
|
|
1643
|
+
await updateWorkerHeartbeat('api-read-stall', 'worker-1', {
|
|
1644
|
+
alive: true,
|
|
1645
|
+
pid: 201,
|
|
1646
|
+
turn_count: 1,
|
|
1647
|
+
last_turn_at: '2026-03-10T10:00:00.000Z',
|
|
1648
|
+
}, wd);
|
|
1649
|
+
await updateWorkerHeartbeat('api-read-stall', 'worker-2', {
|
|
1650
|
+
alive: true,
|
|
1651
|
+
pid: 202,
|
|
1652
|
+
turn_count: 1,
|
|
1653
|
+
last_turn_at: '2026-03-10T10:00:00.000Z',
|
|
1654
|
+
}, wd);
|
|
1655
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1656
|
+
await teamCommand([
|
|
1657
|
+
'api',
|
|
1658
|
+
'get-summary',
|
|
1659
|
+
'--input',
|
|
1660
|
+
JSON.stringify({ team_name: 'api-read-stall' }),
|
|
1661
|
+
'--json',
|
|
1662
|
+
]);
|
|
1663
|
+
logs.length = 0;
|
|
1664
|
+
await updateWorkerHeartbeat('api-read-stall', 'worker-1', {
|
|
1665
|
+
alive: true,
|
|
1666
|
+
pid: 201,
|
|
1667
|
+
turn_count: 8,
|
|
1668
|
+
last_turn_at: '2026-03-10T10:05:00.000Z',
|
|
1669
|
+
}, wd);
|
|
1670
|
+
await writeMonitorSnapshot('api-read-stall', {
|
|
1671
|
+
taskStatusById: { [task.id]: 'pending' },
|
|
1672
|
+
workerAliveByName: { 'worker-1': true, 'worker-2': true },
|
|
1673
|
+
workerStateByName: { 'worker-1': 'idle', 'worker-2': 'idle' },
|
|
1674
|
+
workerTurnCountByName: { 'worker-1': 8, 'worker-2': 1 },
|
|
1675
|
+
workerTaskIdByName: { 'worker-1': task.id, 'worker-2': '' },
|
|
1676
|
+
mailboxNotifiedByMessageId: {},
|
|
1677
|
+
completedEventTaskIds: {},
|
|
1678
|
+
}, wd);
|
|
1679
|
+
await mkdir(join(wd, '.omx', 'state', 'team', 'api-read-stall'), { recursive: true });
|
|
1680
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'api-read-stall', 'leader-attention.json'), JSON.stringify({
|
|
1681
|
+
team_name: 'api-read-stall',
|
|
1682
|
+
updated_at: '2026-03-10T10:05:00.000Z',
|
|
1683
|
+
source: 'native_stop',
|
|
1684
|
+
leader_decision_state: 'still_actionable',
|
|
1685
|
+
leader_attention_pending: true,
|
|
1686
|
+
leader_attention_reason: 'leader_session_stopped',
|
|
1687
|
+
attention_reasons: ['leader_session_stopped'],
|
|
1688
|
+
leader_stale: false,
|
|
1689
|
+
leader_session_active: false,
|
|
1690
|
+
leader_session_id: 'leader-session-1',
|
|
1691
|
+
leader_session_stopped_at: '2026-03-10T10:05:00.000Z',
|
|
1692
|
+
unread_leader_message_count: 1,
|
|
1693
|
+
work_remaining: true,
|
|
1694
|
+
stalled_for_ms: null,
|
|
1695
|
+
}, null, 2));
|
|
1696
|
+
await teamCommand([
|
|
1697
|
+
'api',
|
|
1698
|
+
'read-stall-state',
|
|
1699
|
+
'--input',
|
|
1700
|
+
JSON.stringify({ team_name: 'api-read-stall' }),
|
|
1701
|
+
'--json',
|
|
1702
|
+
]);
|
|
1703
|
+
assert.equal(logs.length, 1);
|
|
1704
|
+
const envelope = JSON.parse(logs[0]);
|
|
1705
|
+
assert.equal(envelope.command, 'omx team api read-stall-state');
|
|
1706
|
+
assert.equal(envelope.ok, true);
|
|
1707
|
+
assert.equal(envelope.operation, 'read-stall-state');
|
|
1708
|
+
assert.equal(envelope.data?.team_stalled, true);
|
|
1709
|
+
assert.equal(envelope.data?.leader_stale, true);
|
|
1710
|
+
assert.deepEqual(envelope.data?.stalled_workers, ['worker-1']);
|
|
1711
|
+
assert.match((envelope.data?.reasons ?? []).join(' '), /leader_attention_pending:leader_session_stopped/);
|
|
1712
|
+
}
|
|
1713
|
+
finally {
|
|
1714
|
+
if (typeof previousTeamStateRoot === 'string')
|
|
1715
|
+
process.env.OMX_TEAM_STATE_ROOT = previousTeamStateRoot;
|
|
1716
|
+
else
|
|
1717
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
1718
|
+
console.log = originalLog;
|
|
1719
|
+
process.chdir(previousCwd);
|
|
1720
|
+
await rm(wd, { recursive: true, force: true });
|
|
1721
|
+
}
|
|
1722
|
+
});
|
|
1723
|
+
it('executes CLI interop operation with stable JSON envelope', async () => {
|
|
1724
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-api-'));
|
|
1725
|
+
const previousCwd = process.cwd();
|
|
1726
|
+
const logs = [];
|
|
1727
|
+
const originalLog = console.log;
|
|
1728
|
+
try {
|
|
1729
|
+
process.chdir(wd);
|
|
1730
|
+
await initTeamState('api-team', 'api test', 'executor', 1, wd);
|
|
1731
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1732
|
+
await teamCommand([
|
|
1733
|
+
'api',
|
|
1734
|
+
'send-message',
|
|
1735
|
+
'--input',
|
|
1736
|
+
JSON.stringify({
|
|
1737
|
+
team_name: 'api-team',
|
|
1738
|
+
from_worker: 'worker-1',
|
|
1739
|
+
to_worker: 'leader-fixed',
|
|
1740
|
+
body: 'ACK',
|
|
1741
|
+
}),
|
|
1742
|
+
'--json',
|
|
1743
|
+
]);
|
|
1744
|
+
assert.equal(logs.length, 1);
|
|
1745
|
+
const envelope = JSON.parse(logs[0]);
|
|
1746
|
+
assert.equal(envelope.schema_version, '1.0');
|
|
1747
|
+
assert.equal(typeof envelope.timestamp, 'string');
|
|
1748
|
+
assert.equal(envelope.command, 'omx team api send-message');
|
|
1749
|
+
assert.equal(envelope.ok, true);
|
|
1750
|
+
assert.equal(envelope.operation, 'send-message');
|
|
1751
|
+
assert.equal(envelope.data?.message?.body, 'ACK');
|
|
1752
|
+
}
|
|
1753
|
+
finally {
|
|
1754
|
+
console.log = originalLog;
|
|
1755
|
+
process.chdir(previousCwd);
|
|
1756
|
+
await rm(wd, { recursive: true, force: true });
|
|
1757
|
+
}
|
|
1758
|
+
});
|
|
1759
|
+
it('returns deterministic JSON errors for invalid api usage with --json', async () => {
|
|
1760
|
+
const logs = [];
|
|
1761
|
+
const originalLog = console.log;
|
|
1762
|
+
try {
|
|
1763
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1764
|
+
process.exitCode = 0;
|
|
1765
|
+
await teamCommand(['api', 'unknown-operation', '--json']);
|
|
1766
|
+
assert.equal(logs.length, 1);
|
|
1767
|
+
const envelope = JSON.parse(logs[0]);
|
|
1768
|
+
assert.equal(envelope.schema_version, '1.0');
|
|
1769
|
+
assert.equal(typeof envelope.timestamp, 'string');
|
|
1770
|
+
assert.equal(envelope.command, 'omx team api');
|
|
1771
|
+
assert.equal(envelope.ok, false);
|
|
1772
|
+
assert.equal(envelope.operation, 'unknown');
|
|
1773
|
+
assert.equal(envelope.error?.code, 'invalid_input');
|
|
1774
|
+
assert.match(envelope.error?.message ?? '', /Usage: omx team api/);
|
|
1775
|
+
assert.equal(process.exitCode, 1);
|
|
1776
|
+
}
|
|
1777
|
+
finally {
|
|
1778
|
+
console.log = originalLog;
|
|
1779
|
+
process.exitCode = 0;
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
it('supports claim-safe lifecycle via CLI api (create -> claim -> transition)', async () => {
|
|
1783
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-api-lifecycle-'));
|
|
1784
|
+
const previousCwd = process.cwd();
|
|
1785
|
+
const logs = [];
|
|
1786
|
+
const originalLog = console.log;
|
|
1787
|
+
try {
|
|
1788
|
+
process.chdir(wd);
|
|
1789
|
+
await initTeamState('lifecycle-team', 'lifecycle test', 'executor', 1, wd);
|
|
1790
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1791
|
+
await teamCommand([
|
|
1792
|
+
'api',
|
|
1793
|
+
'create-task',
|
|
1794
|
+
'--input',
|
|
1795
|
+
JSON.stringify({
|
|
1796
|
+
team_name: 'lifecycle-team',
|
|
1797
|
+
subject: 'Lifecycle task',
|
|
1798
|
+
description: 'Created through CLI interop',
|
|
1799
|
+
}),
|
|
1800
|
+
'--json',
|
|
1801
|
+
]);
|
|
1802
|
+
const created = JSON.parse(logs.at(-1) ?? '{}');
|
|
1803
|
+
assert.equal(created.ok, true);
|
|
1804
|
+
const taskId = created.data?.task?.id;
|
|
1805
|
+
assert.equal(typeof taskId, 'string');
|
|
1806
|
+
await teamCommand([
|
|
1807
|
+
'api',
|
|
1808
|
+
'claim-task',
|
|
1809
|
+
'--input',
|
|
1810
|
+
JSON.stringify({
|
|
1811
|
+
team_name: 'lifecycle-team',
|
|
1812
|
+
task_id: taskId,
|
|
1813
|
+
worker: 'worker-1',
|
|
1814
|
+
expected_version: 1,
|
|
1815
|
+
}),
|
|
1816
|
+
'--json',
|
|
1817
|
+
]);
|
|
1818
|
+
const claimed = JSON.parse(logs.at(-1) ?? '{}');
|
|
1819
|
+
assert.equal(claimed.ok, true);
|
|
1820
|
+
const claimToken = claimed.data?.claimToken;
|
|
1821
|
+
assert.equal(typeof claimToken, 'string');
|
|
1822
|
+
await teamCommand([
|
|
1823
|
+
'api',
|
|
1824
|
+
'transition-task-status',
|
|
1825
|
+
'--input',
|
|
1826
|
+
JSON.stringify({
|
|
1827
|
+
team_name: 'lifecycle-team',
|
|
1828
|
+
task_id: taskId,
|
|
1829
|
+
from: 'in_progress',
|
|
1830
|
+
to: 'completed',
|
|
1831
|
+
claim_token: claimToken,
|
|
1832
|
+
}),
|
|
1833
|
+
'--json',
|
|
1834
|
+
]);
|
|
1835
|
+
const transitioned = JSON.parse(logs.at(-1) ?? '{}');
|
|
1836
|
+
assert.equal(transitioned.ok, true);
|
|
1837
|
+
assert.equal(transitioned.data?.ok, true);
|
|
1838
|
+
assert.equal(transitioned.data?.task?.status, 'completed');
|
|
1839
|
+
}
|
|
1840
|
+
finally {
|
|
1841
|
+
console.log = originalLog;
|
|
1842
|
+
process.chdir(previousCwd);
|
|
1843
|
+
await rm(wd, { recursive: true, force: true });
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
it('accepts new canonical event types via CLI api append-event', async () => {
|
|
1847
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-api-event-'));
|
|
1848
|
+
const previousCwd = process.cwd();
|
|
1849
|
+
const logs = [];
|
|
1850
|
+
const originalLog = console.log;
|
|
1851
|
+
try {
|
|
1852
|
+
process.chdir(wd);
|
|
1853
|
+
await initTeamState('event-team', 'event test', 'executor', 1, wd);
|
|
1854
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1855
|
+
await teamCommand([
|
|
1856
|
+
'api',
|
|
1857
|
+
'append-event',
|
|
1858
|
+
'--input',
|
|
1859
|
+
JSON.stringify({
|
|
1860
|
+
team_name: 'event-team',
|
|
1861
|
+
type: 'leader_notification_deferred',
|
|
1862
|
+
worker: 'worker-1',
|
|
1863
|
+
to_worker: 'leader-fixed',
|
|
1864
|
+
source_type: 'worker_idle',
|
|
1865
|
+
reason: 'leader_pane_missing_no_injection',
|
|
1866
|
+
}),
|
|
1867
|
+
'--json',
|
|
1868
|
+
]);
|
|
1869
|
+
const envelope = JSON.parse(logs.at(-1) ?? '{}');
|
|
1870
|
+
assert.equal(envelope.ok, true);
|
|
1871
|
+
assert.equal(envelope.data?.event?.type, 'leader_notification_deferred');
|
|
1872
|
+
assert.equal(envelope.data?.event?.to_worker, 'leader-fixed');
|
|
1873
|
+
assert.equal(envelope.data?.event?.source_type, 'worker_idle');
|
|
1874
|
+
assert.equal(envelope.data?.event?.reason, 'leader_pane_missing_no_injection');
|
|
1875
|
+
}
|
|
1876
|
+
finally {
|
|
1877
|
+
console.log = originalLog;
|
|
1878
|
+
process.chdir(previousCwd);
|
|
1879
|
+
await rm(wd, { recursive: true, force: true });
|
|
1880
|
+
}
|
|
1881
|
+
});
|
|
1882
|
+
});
|
|
1883
|
+
describe('teamCommand status', () => {
|
|
1884
|
+
it('prints pane ids and raw inspect hints when tmux panes are recorded', async () => {
|
|
1885
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-panes-'));
|
|
1886
|
+
const previousCwd = process.cwd();
|
|
1887
|
+
const logs = [];
|
|
1888
|
+
const originalLog = console.log;
|
|
1889
|
+
try {
|
|
1890
|
+
process.chdir(wd);
|
|
1891
|
+
const config = await withoutTeamTestWorkerEnv(() => initTeamState('pane-team', 'inspect worker panes', 'executor', 2, wd));
|
|
1892
|
+
await withoutTeamTestWorkerEnv(() => createTask('pane-team', {
|
|
1893
|
+
subject: 'Recover worker-1 progress',
|
|
1894
|
+
description: 'Inspect worker-1 pane',
|
|
1895
|
+
status: 'pending',
|
|
1896
|
+
version: 3,
|
|
1897
|
+
requires_code_change: true,
|
|
1898
|
+
role: 'debugger',
|
|
1899
|
+
owner: 'worker-1',
|
|
1900
|
+
}, wd));
|
|
1901
|
+
await withoutTeamTestWorkerEnv(() => createTask('pane-team', {
|
|
1902
|
+
subject: 'Recover worker-2 progress',
|
|
1903
|
+
description: 'Inspect worker-2 pane',
|
|
1904
|
+
status: 'pending',
|
|
1905
|
+
version: 4,
|
|
1906
|
+
requires_code_change: false,
|
|
1907
|
+
blocked_by: ['1'],
|
|
1908
|
+
depends_on: ['1'],
|
|
1909
|
+
role: 'test-engineer',
|
|
1910
|
+
owner: 'worker-2',
|
|
1911
|
+
result: 'waiting on worker-1',
|
|
1912
|
+
error: 'blocked by dependency',
|
|
1913
|
+
}, wd));
|
|
1914
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'pane-team', 'tasks', 'task-1.json'), `${JSON.stringify({
|
|
1915
|
+
...JSON.parse(await readFile(join(wd, '.omx', 'state', 'team', 'pane-team', 'tasks', 'task-1.json'), 'utf-8')),
|
|
1916
|
+
created_at: '2026-03-10T23:55:00.000Z',
|
|
1917
|
+
claim: {
|
|
1918
|
+
owner: 'worker-1',
|
|
1919
|
+
token: 'claim-token-1',
|
|
1920
|
+
leased_until: '2026-03-11T00:10:00.000Z',
|
|
1921
|
+
},
|
|
1922
|
+
}, null, 2)}\n`);
|
|
1923
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'pane-team', 'tasks', 'task-2.json'), `${JSON.stringify({
|
|
1924
|
+
...JSON.parse(await readFile(join(wd, '.omx', 'state', 'team', 'pane-team', 'tasks', 'task-2.json'), 'utf-8')),
|
|
1925
|
+
created_at: '2026-03-10T23:56:00.000Z',
|
|
1926
|
+
completed_at: '2026-03-11T00:06:00.000Z',
|
|
1927
|
+
}, null, 2)}\n`);
|
|
1928
|
+
config.workers[0].worker_cli = 'codex';
|
|
1929
|
+
config.workers[1].worker_cli = 'gemini';
|
|
1930
|
+
config.workers[0].pid = 101;
|
|
1931
|
+
config.workers[1].pid = 102;
|
|
1932
|
+
config.workers[0].assigned_tasks = ['1'];
|
|
1933
|
+
config.workers[1].assigned_tasks = ['2', '3'];
|
|
1934
|
+
config.leader_pane_id = '%10';
|
|
1935
|
+
config.hud_pane_id = '%11';
|
|
1936
|
+
config.workers[0].pane_id = '%21';
|
|
1937
|
+
config.workers[1].pane_id = '%22';
|
|
1938
|
+
config.workers[0].working_dir = '/tmp/pane-team/worker-1';
|
|
1939
|
+
config.workers[1].working_dir = '/tmp/pane-team/worker-2';
|
|
1940
|
+
config.workers[0].worktree_repo_root = '/tmp/pane-team/repo';
|
|
1941
|
+
config.workers[1].worktree_repo_root = '/tmp/pane-team/repo';
|
|
1942
|
+
config.workers[0].team_state_root = '/tmp/pane-team/.omx/state';
|
|
1943
|
+
config.workers[1].team_state_root = '/tmp/pane-team/.omx/state';
|
|
1944
|
+
config.workers[0].worktree_path = '/tmp/pane-team/worktrees/worker-1';
|
|
1945
|
+
config.workers[1].worktree_path = '/tmp/pane-team/worktrees/worker-2';
|
|
1946
|
+
config.workers[0].worktree_branch = 'feat/pane-team-worker-1';
|
|
1947
|
+
config.workers[1].worktree_branch = 'feat/pane-team-worker-2';
|
|
1948
|
+
config.workers[0].worktree_detached = false;
|
|
1949
|
+
config.workers[1].worktree_detached = true;
|
|
1950
|
+
config.workers[0].worktree_created = true;
|
|
1951
|
+
config.workers[1].worktree_created = false;
|
|
1952
|
+
await writeWorkerStatus('pane-team', 'worker-1', {
|
|
1953
|
+
state: 'working',
|
|
1954
|
+
current_task_id: '1',
|
|
1955
|
+
reason: 'recovering progress',
|
|
1956
|
+
updated_at: '2026-03-11T00:00:00.000Z',
|
|
1957
|
+
}, wd);
|
|
1958
|
+
await writeWorkerStatus('pane-team', 'worker-2', {
|
|
1959
|
+
state: 'blocked',
|
|
1960
|
+
current_task_id: '2',
|
|
1961
|
+
reason: 'waiting for dependency 1',
|
|
1962
|
+
updated_at: '2026-03-11T00:00:00.000Z',
|
|
1963
|
+
}, wd);
|
|
1964
|
+
await updateWorkerHeartbeat('pane-team', 'worker-1', {
|
|
1965
|
+
pid: 101,
|
|
1966
|
+
last_turn_at: '2026-03-11T00:01:00.000Z',
|
|
1967
|
+
turn_count: 3,
|
|
1968
|
+
alive: false,
|
|
1969
|
+
}, wd);
|
|
1970
|
+
await updateWorkerHeartbeat('pane-team', 'worker-2', {
|
|
1971
|
+
pid: 102,
|
|
1972
|
+
last_turn_at: '2026-03-11T00:02:00.000Z',
|
|
1973
|
+
turn_count: 4,
|
|
1974
|
+
alive: false,
|
|
1975
|
+
}, wd);
|
|
1976
|
+
await writeTaskApproval('pane-team', {
|
|
1977
|
+
task_id: '1',
|
|
1978
|
+
required: true,
|
|
1979
|
+
status: 'approved',
|
|
1980
|
+
reviewer: 'leader-fixed',
|
|
1981
|
+
decision_reason: 'Looks good',
|
|
1982
|
+
decided_at: '2026-03-11T00:05:00.000Z',
|
|
1983
|
+
}, wd);
|
|
1984
|
+
const manifestPath = join(wd, '.omx', 'state', 'team', 'pane-team', 'manifest.v2.json');
|
|
1985
|
+
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
1986
|
+
manifest.leader_pane_id = config.leader_pane_id;
|
|
1987
|
+
manifest.hud_pane_id = config.hud_pane_id;
|
|
1988
|
+
manifest.workers = config.workers.map((worker) => ({
|
|
1989
|
+
...worker,
|
|
1990
|
+
pane_id: worker.pane_id,
|
|
1991
|
+
}));
|
|
1992
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'pane-team', 'config.json'), `${JSON.stringify(config, null, 2)}\n`);
|
|
1993
|
+
await writeFile(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
|
|
1994
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
1995
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'pane-team']));
|
|
1996
|
+
const output = logs.join('\n');
|
|
1997
|
+
assert.match(output, /panes: leader=%10 hud=%11/);
|
|
1998
|
+
assert.match(output, /worker_panes: worker-1=%21 worker-2=%22/);
|
|
1999
|
+
assert.match(output, /inspect_hint: raw tmux capture commands are quota-free/);
|
|
2000
|
+
assert.match(output, /inspect_leader: tmux capture-pane -p -t %10 -S -400/);
|
|
2001
|
+
assert.match(output, /inspect_hud: tmux capture-pane -p -t %11 -S -400/);
|
|
2002
|
+
assert.match(output, /inspect_worker-1: tmux capture-pane -p -t %21 -S -400/);
|
|
2003
|
+
assert.match(output, /inspect_worker-2: tmux capture-pane -p -t %22 -S -400/);
|
|
2004
|
+
assert.match(output, /inspect_summary: [\s\S]*command=tmux capture-pane -p -t %22 -S -400/);
|
|
2005
|
+
assert.doesNotMatch(output
|
|
2006
|
+
.split('\n')
|
|
2007
|
+
.filter((line) => !line.includes('--model-inspect'))
|
|
2008
|
+
.join('\n'), /omx sparkshell/);
|
|
2009
|
+
logs.length = 0;
|
|
2010
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'pane-team', '--model-inspect']));
|
|
2011
|
+
const modelInspectOutput = logs.join('\n');
|
|
2012
|
+
assert.match(modelInspectOutput, /inspect_summary: [\s\S]*command=omx sparkshell --tmux-pane %22 --tail-lines 400/);
|
|
2013
|
+
}
|
|
2014
|
+
finally {
|
|
2015
|
+
console.log = originalLog;
|
|
2016
|
+
process.chdir(previousCwd);
|
|
2017
|
+
await rm(wd, { recursive: true, force: true });
|
|
2018
|
+
}
|
|
2019
|
+
});
|
|
2020
|
+
it('returns pane ids and sparkshell hint in JSON mode', async () => {
|
|
2021
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-json-'));
|
|
2022
|
+
const previousCwd = process.cwd();
|
|
2023
|
+
const previousTeamStateRoot = process.env.OMX_TEAM_STATE_ROOT;
|
|
2024
|
+
const logs = [];
|
|
2025
|
+
const originalLog = console.log;
|
|
2026
|
+
try {
|
|
2027
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
2028
|
+
process.chdir(wd);
|
|
2029
|
+
const config = await withoutTeamTestWorkerEnv(() => initTeamState('pane-json-team', 'inspect worker panes', 'executor', 1, wd));
|
|
2030
|
+
await withoutTeamTestWorkerEnv(() => createTask('pane-json-team', {
|
|
2031
|
+
subject: 'Recover worker-1 progress',
|
|
2032
|
+
description: 'Inspect worker-1 pane',
|
|
2033
|
+
status: 'pending',
|
|
2034
|
+
version: 7,
|
|
2035
|
+
requires_code_change: true,
|
|
2036
|
+
role: 'debugger',
|
|
2037
|
+
owner: 'worker-1',
|
|
2038
|
+
}, wd));
|
|
2039
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'pane-json-team', 'tasks', 'task-1.json'), `${JSON.stringify({
|
|
2040
|
+
...JSON.parse(await readFile(join(wd, '.omx', 'state', 'team', 'pane-json-team', 'tasks', 'task-1.json'), 'utf-8')),
|
|
2041
|
+
created_at: '2026-03-10T23:57:00.000Z',
|
|
2042
|
+
claim: {
|
|
2043
|
+
owner: 'worker-1',
|
|
2044
|
+
token: 'claim-token-1',
|
|
2045
|
+
leased_until: '2026-03-11T00:11:00.000Z',
|
|
2046
|
+
},
|
|
2047
|
+
}, null, 2)}\n`);
|
|
2048
|
+
config.workers[0].worker_cli = 'claude';
|
|
2049
|
+
config.workers[0].pid = 201;
|
|
2050
|
+
config.workers[0].assigned_tasks = ['1', 'extra-2'];
|
|
2051
|
+
config.leader_pane_id = '%30';
|
|
2052
|
+
config.hud_pane_id = '%31';
|
|
2053
|
+
config.workers[0].pane_id = '%41';
|
|
2054
|
+
config.workers[0].working_dir = '/tmp/pane-json-team/worker-1';
|
|
2055
|
+
config.workers[0].worktree_repo_root = '/tmp/pane-json-team/repo';
|
|
2056
|
+
config.workers[0].team_state_root = '/tmp/pane-json-team/.omx/state';
|
|
2057
|
+
config.workers[0].worktree_path = '/tmp/pane-json-team/worktrees/worker-1';
|
|
2058
|
+
config.workers[0].worktree_branch = 'feat/pane-json-team-worker-1';
|
|
2059
|
+
config.workers[0].worktree_detached = false;
|
|
2060
|
+
config.workers[0].worktree_created = true;
|
|
2061
|
+
await writeWorkerStatus('pane-json-team', 'worker-1', {
|
|
2062
|
+
state: 'working',
|
|
2063
|
+
current_task_id: '1',
|
|
2064
|
+
reason: 'recovering progress',
|
|
2065
|
+
updated_at: '2026-03-11T00:00:00.000Z',
|
|
2066
|
+
}, wd);
|
|
2067
|
+
await updateWorkerHeartbeat('pane-json-team', 'worker-1', {
|
|
2068
|
+
pid: 201,
|
|
2069
|
+
last_turn_at: '2026-03-11T00:03:00.000Z',
|
|
2070
|
+
turn_count: 5,
|
|
2071
|
+
alive: false,
|
|
2072
|
+
}, wd);
|
|
2073
|
+
await writeTaskApproval('pane-json-team', {
|
|
2074
|
+
task_id: '1',
|
|
2075
|
+
required: true,
|
|
2076
|
+
status: 'approved',
|
|
2077
|
+
reviewer: 'leader-fixed',
|
|
2078
|
+
decision_reason: 'Looks good',
|
|
2079
|
+
decided_at: '2026-03-11T00:05:00.000Z',
|
|
2080
|
+
}, wd);
|
|
2081
|
+
const manifestPath = join(wd, '.omx', 'state', 'team', 'pane-json-team', 'manifest.v2.json');
|
|
2082
|
+
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
2083
|
+
manifest.leader_pane_id = config.leader_pane_id;
|
|
2084
|
+
manifest.hud_pane_id = config.hud_pane_id;
|
|
2085
|
+
manifest.workers = config.workers.map((worker) => ({
|
|
2086
|
+
...worker,
|
|
2087
|
+
pane_id: worker.pane_id,
|
|
2088
|
+
}));
|
|
2089
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'pane-json-team', 'config.json'), `${JSON.stringify(config, null, 2)}\n`);
|
|
2090
|
+
await writeFile(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
|
|
2091
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2092
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'pane-json-team', '--json']));
|
|
2093
|
+
const payload = JSON.parse(logs.at(-1) ?? '{}');
|
|
2094
|
+
const expectedWd = process.platform === 'darwin' && wd.startsWith('/var/')
|
|
2095
|
+
? `/private${wd}`
|
|
2096
|
+
: wd;
|
|
2097
|
+
assert.equal(payload.schema_version, '1.0');
|
|
2098
|
+
assert.equal(typeof payload.timestamp, 'string');
|
|
2099
|
+
assert.equal(payload.command, 'omx team status');
|
|
2100
|
+
assert.equal(payload.team_name, 'pane-json-team');
|
|
2101
|
+
assert.equal(payload.status, 'ok');
|
|
2102
|
+
assert.deepEqual(payload.dead_workers, ['worker-1']);
|
|
2103
|
+
assert.deepEqual(payload.non_reporting_workers, []);
|
|
2104
|
+
assert.deepEqual(payload.panes?.recommended_inspect_targets, ['worker-1']);
|
|
2105
|
+
assert.deepEqual(payload.panes?.recommended_inspect_reasons, { 'worker-1': 'dead_worker' });
|
|
2106
|
+
assert.deepEqual(payload.panes?.recommended_inspect_clis, { 'worker-1': 'claude' });
|
|
2107
|
+
assert.deepEqual(payload.panes?.recommended_inspect_roles, { 'worker-1': 'executor' });
|
|
2108
|
+
assert.deepEqual(payload.panes?.recommended_inspect_indexes, { 'worker-1': 1 });
|
|
2109
|
+
assert.deepEqual(payload.panes?.recommended_inspect_alive, { 'worker-1': false });
|
|
2110
|
+
assert.deepEqual(payload.panes?.recommended_inspect_turn_counts, { 'worker-1': 5 });
|
|
2111
|
+
assert.deepEqual(payload.panes?.recommended_inspect_turns_without_progress, { 'worker-1': 0 });
|
|
2112
|
+
assert.deepEqual(payload.panes?.recommended_inspect_last_turn_at, { 'worker-1': '2026-03-11T00:03:00.000Z' });
|
|
2113
|
+
assert.deepEqual(payload.panes?.recommended_inspect_status_updated_at, { 'worker-1': '2026-03-11T00:00:00.000Z' });
|
|
2114
|
+
assert.deepEqual(payload.panes?.recommended_inspect_pids, { 'worker-1': 201 });
|
|
2115
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worktree_paths, { 'worker-1': '/tmp/pane-json-team/worktrees/worker-1' });
|
|
2116
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worktree_repo_roots, { 'worker-1': '/tmp/pane-json-team/repo' });
|
|
2117
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worktree_branches, { 'worker-1': 'feat/pane-json-team-worker-1' });
|
|
2118
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worktree_detached, { 'worker-1': false });
|
|
2119
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worktree_created, { 'worker-1': true });
|
|
2120
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_state_roots, { 'worker-1': '/tmp/pane-json-team/.omx/state' });
|
|
2121
|
+
assert.deepEqual(payload.panes?.recommended_inspect_workdirs, { 'worker-1': '/tmp/pane-json-team/worker-1' });
|
|
2122
|
+
assert.deepEqual(payload.panes?.recommended_inspect_assigned_tasks, { 'worker-1': ['1', 'extra-2'] });
|
|
2123
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_statuses, { 'worker-1': 'pending' });
|
|
2124
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_results, { 'worker-1': null });
|
|
2125
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_errors, { 'worker-1': null });
|
|
2126
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_versions, { 'worker-1': 1 });
|
|
2127
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_created_at, { 'worker-1': '2026-03-10T23:57:00.000Z' });
|
|
2128
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_completed_at, { 'worker-1': null });
|
|
2129
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_depends_on, { 'worker-1': [] });
|
|
2130
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_claim_present, { 'worker-1': true });
|
|
2131
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_claim_owners, { 'worker-1': 'worker-1' });
|
|
2132
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_claim_tokens, { 'worker-1': 'claim-token-1' });
|
|
2133
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_claim_leases, { 'worker-1': '2026-03-11T00:11:00.000Z' });
|
|
2134
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_required, { 'worker-1': true });
|
|
2135
|
+
assert.deepEqual(payload.panes?.recommended_inspect_requires_code_change, { 'worker-1': true });
|
|
2136
|
+
assert.deepEqual(payload.panes?.recommended_inspect_descriptions, { 'worker-1': 'Inspect worker-1 pane' });
|
|
2137
|
+
assert.deepEqual(payload.panes?.recommended_inspect_blocked_by, { 'worker-1': [] });
|
|
2138
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_roles, { 'worker-1': 'debugger' });
|
|
2139
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_owners, { 'worker-1': 'worker-1' });
|
|
2140
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_statuses, { 'worker-1': 'approved' });
|
|
2141
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_reviewers, { 'worker-1': 'leader-fixed' });
|
|
2142
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_reasons, { 'worker-1': 'Looks good' });
|
|
2143
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_decided_at, { 'worker-1': '2026-03-11T00:05:00.000Z' });
|
|
2144
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_record_present, { 'worker-1': true });
|
|
2145
|
+
assert.deepEqual(payload.panes?.recommended_inspect_states, { 'worker-1': 'working' });
|
|
2146
|
+
assert.deepEqual(payload.panes?.recommended_inspect_state_reasons, { 'worker-1': 'recovering progress' });
|
|
2147
|
+
assert.deepEqual(payload.panes?.recommended_inspect_tasks, { 'worker-1': '1' });
|
|
2148
|
+
assert.deepEqual(payload.panes?.recommended_inspect_subjects, { 'worker-1': 'Recover worker-1 progress' });
|
|
2149
|
+
assert.deepEqual(payload.panes?.recommended_inspect_task_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/tasks/task-1.json` });
|
|
2150
|
+
assert.deepEqual(payload.panes?.recommended_inspect_approval_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/approvals/task-1.json` });
|
|
2151
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_state_dirs, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1` });
|
|
2152
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_status_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/status.json` });
|
|
2153
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_heartbeat_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/heartbeat.json` });
|
|
2154
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_identity_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/identity.json` });
|
|
2155
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_inbox_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/inbox.md` });
|
|
2156
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_mailbox_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/mailbox/worker-1.json` });
|
|
2157
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_shutdown_request_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/shutdown-request.json` });
|
|
2158
|
+
assert.deepEqual(payload.panes?.recommended_inspect_worker_shutdown_ack_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/shutdown-ack.json` });
|
|
2159
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_dir_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team` });
|
|
2160
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_config_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/config.json` });
|
|
2161
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_manifest_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/manifest.v2.json` });
|
|
2162
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_events_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/events/events.ndjson` });
|
|
2163
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_dispatch_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/dispatch/requests.json` });
|
|
2164
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_phase_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/phase.json` });
|
|
2165
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_monitor_snapshot_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/monitor-snapshot.json` });
|
|
2166
|
+
assert.deepEqual(payload.panes?.recommended_inspect_team_summary_snapshot_paths, { 'worker-1': `${expectedWd}/.omx/state/team/pane-json-team/summary-snapshot.json` });
|
|
2167
|
+
assert.deepEqual(payload.panes?.recommended_inspect_panes, { 'worker-1': '%41' });
|
|
2168
|
+
assert.equal(payload.panes?.recommended_inspect_command, 'omx sparkshell --tmux-pane %41 --tail-lines 400');
|
|
2169
|
+
assert.deepEqual(payload.panes?.recommended_inspect_commands, ['omx sparkshell --tmux-pane %41 --tail-lines 400']);
|
|
2170
|
+
assert.equal(payload.panes?.recommended_inspect_summary, 'target=worker-1 pane=%41 cli=claude role=executor alive=false turn_count=5 turns_without_progress=0 reason=dead_worker state=working task=1 subject=Recover worker-1 progress command=omx sparkshell --tmux-pane %41 --tail-lines 400');
|
|
2171
|
+
assert.deepEqual(payload.panes?.recommended_inspect_items, [{
|
|
2172
|
+
target: 'worker-1',
|
|
2173
|
+
pane_id: '%41',
|
|
2174
|
+
worker_cli: 'claude',
|
|
2175
|
+
role: 'executor',
|
|
2176
|
+
index: 1,
|
|
2177
|
+
alive: false,
|
|
2178
|
+
turn_count: 5,
|
|
2179
|
+
turns_without_progress: 0,
|
|
2180
|
+
last_turn_at: '2026-03-11T00:03:00.000Z',
|
|
2181
|
+
status_updated_at: '2026-03-11T00:00:00.000Z',
|
|
2182
|
+
pid: 201,
|
|
2183
|
+
worktree_repo_root: '/tmp/pane-json-team/repo',
|
|
2184
|
+
worktree_path: '/tmp/pane-json-team/worktrees/worker-1',
|
|
2185
|
+
worktree_branch: 'feat/pane-json-team-worker-1',
|
|
2186
|
+
worktree_detached: false,
|
|
2187
|
+
worktree_created: true,
|
|
2188
|
+
team_state_root: '/tmp/pane-json-team/.omx/state',
|
|
2189
|
+
working_dir: '/tmp/pane-json-team/worker-1',
|
|
2190
|
+
assigned_tasks: ['1', 'extra-2'],
|
|
2191
|
+
task_status: 'pending',
|
|
2192
|
+
task_result: null,
|
|
2193
|
+
task_error: null,
|
|
2194
|
+
task_version: 1,
|
|
2195
|
+
task_created_at: '2026-03-10T23:57:00.000Z',
|
|
2196
|
+
task_completed_at: null,
|
|
2197
|
+
task_depends_on: [],
|
|
2198
|
+
task_claim_present: true,
|
|
2199
|
+
task_claim_owner: 'worker-1',
|
|
2200
|
+
task_claim_token: 'claim-token-1',
|
|
2201
|
+
task_claim_leased_until: '2026-03-11T00:11:00.000Z',
|
|
2202
|
+
task_claim_lock_path: `${expectedWd}/.omx/state/team/pane-json-team/claims/task-1.lock`,
|
|
2203
|
+
approval_required: true,
|
|
2204
|
+
requires_code_change: true,
|
|
2205
|
+
task_description: 'Inspect worker-1 pane',
|
|
2206
|
+
blocked_by: [],
|
|
2207
|
+
task_role: 'debugger',
|
|
2208
|
+
task_owner: 'worker-1',
|
|
2209
|
+
approval_status: 'approved',
|
|
2210
|
+
approval_reviewer: 'leader-fixed',
|
|
2211
|
+
approval_reason: 'Looks good',
|
|
2212
|
+
approval_decided_at: '2026-03-11T00:05:00.000Z',
|
|
2213
|
+
approval_record_present: true,
|
|
2214
|
+
reason: 'dead_worker',
|
|
2215
|
+
state: 'working',
|
|
2216
|
+
state_reason: 'recovering progress',
|
|
2217
|
+
task_id: '1',
|
|
2218
|
+
task_subject: 'Recover worker-1 progress',
|
|
2219
|
+
task_path: `${expectedWd}/.omx/state/team/pane-json-team/tasks/task-1.json`,
|
|
2220
|
+
approval_path: `${expectedWd}/.omx/state/team/pane-json-team/approvals/task-1.json`,
|
|
2221
|
+
worker_state_dir: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1`,
|
|
2222
|
+
worker_status_path: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/status.json`,
|
|
2223
|
+
worker_heartbeat_path: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/heartbeat.json`,
|
|
2224
|
+
worker_identity_path: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/identity.json`,
|
|
2225
|
+
worker_inbox_path: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/inbox.md`,
|
|
2226
|
+
worker_mailbox_path: `${expectedWd}/.omx/state/team/pane-json-team/mailbox/worker-1.json`,
|
|
2227
|
+
worker_shutdown_request_path: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/shutdown-request.json`,
|
|
2228
|
+
worker_shutdown_ack_path: `${expectedWd}/.omx/state/team/pane-json-team/workers/worker-1/shutdown-ack.json`,
|
|
2229
|
+
team_dir_path: `${expectedWd}/.omx/state/team/pane-json-team`,
|
|
2230
|
+
team_config_path: `${expectedWd}/.omx/state/team/pane-json-team/config.json`,
|
|
2231
|
+
team_manifest_path: `${expectedWd}/.omx/state/team/pane-json-team/manifest.v2.json`,
|
|
2232
|
+
team_events_path: `${expectedWd}/.omx/state/team/pane-json-team/events/events.ndjson`,
|
|
2233
|
+
team_dispatch_path: `${expectedWd}/.omx/state/team/pane-json-team/dispatch/requests.json`,
|
|
2234
|
+
team_phase_path: `${expectedWd}/.omx/state/team/pane-json-team/phase.json`,
|
|
2235
|
+
team_monitor_snapshot_path: `${expectedWd}/.omx/state/team/pane-json-team/monitor-snapshot.json`,
|
|
2236
|
+
team_summary_snapshot_path: `${expectedWd}/.omx/state/team/pane-json-team/summary-snapshot.json`,
|
|
2237
|
+
command: 'omx sparkshell --tmux-pane %41 --tail-lines 400',
|
|
2238
|
+
}]);
|
|
2239
|
+
assert.equal(payload.panes?.leader_pane_id, '%30');
|
|
2240
|
+
assert.equal(payload.panes?.hud_pane_id, '%31');
|
|
2241
|
+
assert.deepEqual(payload.panes?.worker_panes, { 'worker-1': '%41' });
|
|
2242
|
+
assert.equal(payload.panes?.sparkshell_hint, 'omx sparkshell --tmux-pane <pane-id> --tail-lines 400');
|
|
2243
|
+
assert.deepEqual(payload.panes?.sparkshell_commands, {
|
|
2244
|
+
leader: 'omx sparkshell --tmux-pane %30 --tail-lines 400',
|
|
2245
|
+
hud: 'omx sparkshell --tmux-pane %31 --tail-lines 400',
|
|
2246
|
+
'worker-1': 'omx sparkshell --tmux-pane %41 --tail-lines 400',
|
|
2247
|
+
});
|
|
2248
|
+
}
|
|
2249
|
+
finally {
|
|
2250
|
+
if (typeof previousTeamStateRoot === 'string')
|
|
2251
|
+
process.env.OMX_TEAM_STATE_ROOT = previousTeamStateRoot;
|
|
2252
|
+
else
|
|
2253
|
+
delete process.env.OMX_TEAM_STATE_ROOT;
|
|
2254
|
+
console.log = originalLog;
|
|
2255
|
+
process.chdir(previousCwd);
|
|
2256
|
+
await rm(wd, { recursive: true, force: true });
|
|
2257
|
+
}
|
|
2258
|
+
});
|
|
2259
|
+
it('prints workspace_mode in text status output when present', async () => {
|
|
2260
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-workspace-mode-'));
|
|
2261
|
+
const previousCwd = process.cwd();
|
|
2262
|
+
const logs = [];
|
|
2263
|
+
const originalLog = console.log;
|
|
2264
|
+
try {
|
|
2265
|
+
process.chdir(wd);
|
|
2266
|
+
const config = await withoutTeamTestWorkerEnv(() => initTeamState('workspace-mode-team', 'inspect workspace mode', 'executor', 1, wd));
|
|
2267
|
+
config.workspace_mode = 'worktree';
|
|
2268
|
+
const teamDir = join(wd, '.omx', 'state', 'team', 'workspace-mode-team');
|
|
2269
|
+
const configPath = join(teamDir, 'config.json');
|
|
2270
|
+
const manifestPath = join(teamDir, 'manifest.v2.json');
|
|
2271
|
+
await mkdir(teamDir, { recursive: true });
|
|
2272
|
+
await writeFile(configPath, JSON.stringify(config, null, 2));
|
|
2273
|
+
const manifest = JSON.parse(await readFile(manifestPath, 'utf8'));
|
|
2274
|
+
manifest.workspace_mode = 'worktree';
|
|
2275
|
+
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
2276
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2277
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'workspace-mode-team']));
|
|
2278
|
+
assert.ok(logs.some((line) => /workspace_mode: worktree/.test(line)));
|
|
2279
|
+
}
|
|
2280
|
+
finally {
|
|
2281
|
+
console.log = originalLog;
|
|
2282
|
+
process.chdir(previousCwd);
|
|
2283
|
+
await rm(wd, { recursive: true, force: true });
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
it('returns workspace_mode in JSON status output when present', async () => {
|
|
2287
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-json-workspace-mode-'));
|
|
2288
|
+
const previousCwd = process.cwd();
|
|
2289
|
+
const logs = [];
|
|
2290
|
+
const originalLog = console.log;
|
|
2291
|
+
try {
|
|
2292
|
+
process.chdir(wd);
|
|
2293
|
+
const config = await withoutTeamTestWorkerEnv(() => initTeamState('workspace-mode-json-team', 'inspect workspace mode', 'executor', 1, wd));
|
|
2294
|
+
config.workspace_mode = 'worktree';
|
|
2295
|
+
const teamDir = join(wd, '.omx', 'state', 'team', 'workspace-mode-json-team');
|
|
2296
|
+
const configPath = join(teamDir, 'config.json');
|
|
2297
|
+
const manifestPath = join(teamDir, 'manifest.v2.json');
|
|
2298
|
+
await mkdir(teamDir, { recursive: true });
|
|
2299
|
+
await writeFile(configPath, JSON.stringify(config, null, 2));
|
|
2300
|
+
const manifest = JSON.parse(await readFile(manifestPath, 'utf8'));
|
|
2301
|
+
manifest.workspace_mode = 'worktree';
|
|
2302
|
+
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
2303
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2304
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'workspace-mode-json-team', '--json']));
|
|
2305
|
+
const payload = JSON.parse(logs[0] ?? '{}');
|
|
2306
|
+
assert.equal(payload.status, 'ok');
|
|
2307
|
+
assert.equal(payload.workspace_mode, 'worktree');
|
|
2308
|
+
}
|
|
2309
|
+
finally {
|
|
2310
|
+
console.log = originalLog;
|
|
2311
|
+
process.chdir(previousCwd);
|
|
2312
|
+
await rm(wd, { recursive: true, force: true });
|
|
2313
|
+
}
|
|
2314
|
+
});
|
|
2315
|
+
it('returns Ultragoal checkpoint guidance in JSON status only when approved Team context exists', async () => {
|
|
2316
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-ultragoal-json-'));
|
|
2317
|
+
const previousCwd = process.cwd();
|
|
2318
|
+
const logs = [];
|
|
2319
|
+
const originalLog = console.log;
|
|
2320
|
+
try {
|
|
2321
|
+
process.chdir(wd);
|
|
2322
|
+
await withoutTeamTestWorkerEnv(() => initTeamState('ultragoal-json-team', 'inspect ultragoal guidance', 'executor', 1, wd));
|
|
2323
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
2324
|
+
await mkdir(plansDir, { recursive: true });
|
|
2325
|
+
const prdPath = join(plansDir, 'prd-ultragoal-json.md');
|
|
2326
|
+
const testSpecPath = join(plansDir, 'test-spec-ultragoal-json.md');
|
|
2327
|
+
const task = 'Execute Team + Ultragoal G001-team-runtime-bridge plan';
|
|
2328
|
+
await writeFile(prdPath, [
|
|
2329
|
+
'# Ultragoal JSON status',
|
|
2330
|
+
'',
|
|
2331
|
+
'Active ultragoal story G001-team-runtime-bridge uses .omx/ultragoal/goals.json and .omx/ultragoal/ledger.jsonl.',
|
|
2332
|
+
`Launch via omx team 1:executor "${task}"`,
|
|
2333
|
+
].join('\n'));
|
|
2334
|
+
await writeFile(testSpecPath, '# Ultragoal JSON status test spec\n');
|
|
2335
|
+
const hint = readApprovedExecutionLaunchHint(wd, 'team', { prdPath, task });
|
|
2336
|
+
assert.ok(hint);
|
|
2337
|
+
await mkdir(join(wd, '.omx', 'ultragoal'), { recursive: true });
|
|
2338
|
+
await writeFile(join(wd, '.omx', 'ultragoal', 'goals.json'), `${JSON.stringify({
|
|
2339
|
+
version: 1,
|
|
2340
|
+
activeGoalId: 'G001-team-runtime-bridge',
|
|
2341
|
+
codexGoalMode: 'aggregate',
|
|
2342
|
+
goals: [{
|
|
2343
|
+
id: 'G001-team-runtime-bridge',
|
|
2344
|
+
title: 'Team runtime bridge',
|
|
2345
|
+
status: 'in_progress',
|
|
2346
|
+
}],
|
|
2347
|
+
})}\n`);
|
|
2348
|
+
await writePersistedApprovedTeamExecutionBinding('ultragoal-json-team', wd, buildApprovedTeamExecutionBinding(hint));
|
|
2349
|
+
await writePersistedTeamUltragoalContext('ultragoal-json-team', wd, {
|
|
2350
|
+
kind: 'leader_owned_ultragoal_context',
|
|
2351
|
+
goalsPath: '.omx/ultragoal/goals.json',
|
|
2352
|
+
ledgerPath: '.omx/ultragoal/ledger.jsonl',
|
|
2353
|
+
activeGoalId: 'G001-team-runtime-bridge',
|
|
2354
|
+
codexGoalMode: 'aggregate',
|
|
2355
|
+
checkpointPolicy: 'fresh_leader_get_goal_required',
|
|
2356
|
+
});
|
|
2357
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2358
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'ultragoal-json-team', '--json']));
|
|
2359
|
+
const payload = JSON.parse(logs[0] ?? '{}');
|
|
2360
|
+
assert.equal(payload.ultragoal_checkpoint_guidance?.goal_id, 'G001-team-runtime-bridge');
|
|
2361
|
+
assert.equal(payload.ultragoal_checkpoint_guidance?.goals_path, '.omx/ultragoal/goals.json');
|
|
2362
|
+
assert.equal(payload.ultragoal_checkpoint_guidance?.ledger_path, '.omx/ultragoal/ledger.jsonl');
|
|
2363
|
+
assert.equal(payload.ultragoal_checkpoint_guidance?.checkpoint_policy, 'fresh_leader_get_goal_required');
|
|
2364
|
+
assert.match(payload.ultragoal_checkpoint_guidance?.checkpoint_command_template ?? '', /omx ultragoal checkpoint/);
|
|
2365
|
+
assert.match(payload.ultragoal_checkpoint_guidance?.checkpoint_command_template ?? '', /--codex-goal-json/);
|
|
2366
|
+
assert.ok(payload.ultragoal_checkpoint_guidance?.evidence_requirements?.some((item) => item.includes('.omx/ultragoal artifacts')));
|
|
2367
|
+
}
|
|
2368
|
+
finally {
|
|
2369
|
+
console.log = originalLog;
|
|
2370
|
+
process.chdir(previousCwd);
|
|
2371
|
+
await rm(wd, { recursive: true, force: true });
|
|
2372
|
+
}
|
|
2373
|
+
});
|
|
2374
|
+
it('omits Ultragoal checkpoint guidance in JSON status for completed plans without activeGoalId', async () => {
|
|
2375
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-ultragoal-idle-json-'));
|
|
2376
|
+
const previousCwd = process.cwd();
|
|
2377
|
+
const logs = [];
|
|
2378
|
+
const originalLog = console.log;
|
|
2379
|
+
try {
|
|
2380
|
+
process.chdir(wd);
|
|
2381
|
+
await withoutTeamTestWorkerEnv(() => initTeamState('ultragoal-idle-json-team', 'inspect idle ultragoal status', 'executor', 1, wd));
|
|
2382
|
+
await mkdir(join(wd, '.omx', 'ultragoal'), { recursive: true });
|
|
2383
|
+
await writeFile(join(wd, '.omx', 'ultragoal', 'goals.json'), `${JSON.stringify({
|
|
2384
|
+
version: 1,
|
|
2385
|
+
codexGoalMode: 'aggregate',
|
|
2386
|
+
goals: [{
|
|
2387
|
+
id: 'G001-completed-story',
|
|
2388
|
+
title: 'Completed story',
|
|
2389
|
+
status: 'complete',
|
|
2390
|
+
}],
|
|
2391
|
+
})}\n`);
|
|
2392
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2393
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'ultragoal-idle-json-team', '--json']));
|
|
2394
|
+
const payload = JSON.parse(logs[0] ?? '{}');
|
|
2395
|
+
assert.equal(payload.status, 'ok');
|
|
2396
|
+
assert.equal('ultragoal_checkpoint_guidance' in payload, false);
|
|
2397
|
+
}
|
|
2398
|
+
finally {
|
|
2399
|
+
console.log = originalLog;
|
|
2400
|
+
process.chdir(previousCwd);
|
|
2401
|
+
await rm(wd, { recursive: true, force: true });
|
|
2402
|
+
}
|
|
2403
|
+
});
|
|
2404
|
+
it('prints Ultragoal checkpoint guidance in text status with fresh get_goal requirement', async () => {
|
|
2405
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-ultragoal-text-'));
|
|
2406
|
+
const previousCwd = process.cwd();
|
|
2407
|
+
const logs = [];
|
|
2408
|
+
const originalLog = console.log;
|
|
2409
|
+
try {
|
|
2410
|
+
process.chdir(wd);
|
|
2411
|
+
await withoutTeamTestWorkerEnv(() => initTeamState('ultragoal-text-team', 'inspect ultragoal text guidance', 'executor', 1, wd));
|
|
2412
|
+
const plansDir = join(wd, '.omx', 'plans');
|
|
2413
|
+
await mkdir(plansDir, { recursive: true });
|
|
2414
|
+
const prdPath = join(plansDir, 'prd-ultragoal-text.md');
|
|
2415
|
+
const testSpecPath = join(plansDir, 'test-spec-ultragoal-text.md');
|
|
2416
|
+
const task = 'Execute Team + Ultragoal G001-team-runtime-bridge text plan';
|
|
2417
|
+
await writeFile(prdPath, [
|
|
2418
|
+
'# Ultragoal text status',
|
|
2419
|
+
'',
|
|
2420
|
+
'Team evidence checkpoints G001-team-runtime-bridge into .omx/ultragoal/goals.json and .omx/ultragoal/ledger.jsonl.',
|
|
2421
|
+
`Launch via omx team 1:executor "${task}"`,
|
|
2422
|
+
].join('\n'));
|
|
2423
|
+
await writeFile(testSpecPath, '# Ultragoal text status test spec\n');
|
|
2424
|
+
const hint = readApprovedExecutionLaunchHint(wd, 'team', { prdPath, task });
|
|
2425
|
+
assert.ok(hint);
|
|
2426
|
+
await mkdir(join(wd, '.omx', 'ultragoal'), { recursive: true });
|
|
2427
|
+
await writeFile(join(wd, '.omx', 'ultragoal', 'goals.json'), `${JSON.stringify({
|
|
2428
|
+
version: 1,
|
|
2429
|
+
activeGoalId: 'G001-team-runtime-bridge',
|
|
2430
|
+
codexGoalMode: 'aggregate',
|
|
2431
|
+
goals: [{
|
|
2432
|
+
id: 'G001-team-runtime-bridge',
|
|
2433
|
+
title: 'Team runtime bridge',
|
|
2434
|
+
status: 'in_progress',
|
|
2435
|
+
}],
|
|
2436
|
+
})}\n`);
|
|
2437
|
+
await writePersistedApprovedTeamExecutionBinding('ultragoal-text-team', wd, buildApprovedTeamExecutionBinding(hint));
|
|
2438
|
+
await writePersistedTeamUltragoalContext('ultragoal-text-team', wd, {
|
|
2439
|
+
kind: 'leader_owned_ultragoal_context',
|
|
2440
|
+
goalsPath: '.omx/ultragoal/goals.json',
|
|
2441
|
+
ledgerPath: '.omx/ultragoal/ledger.jsonl',
|
|
2442
|
+
activeGoalId: 'G001-team-runtime-bridge',
|
|
2443
|
+
codexGoalMode: 'aggregate',
|
|
2444
|
+
checkpointPolicy: 'fresh_leader_get_goal_required',
|
|
2445
|
+
});
|
|
2446
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2447
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'ultragoal-text-team']));
|
|
2448
|
+
const output = logs.join('\n');
|
|
2449
|
+
assert.match(output, /ultragoal_checkpoint_guidance/);
|
|
2450
|
+
assert.match(output, /G001-team-runtime-bridge/);
|
|
2451
|
+
assert.match(output, /\.omx\/ultragoal\/goals\.json/);
|
|
2452
|
+
assert.match(output, /\.omx\/ultragoal\/ledger\.jsonl/);
|
|
2453
|
+
assert.match(output, /leader captured fresh get_goal JSON before checkpointing/i);
|
|
2454
|
+
assert.match(output, /workers do not own ultragoal goal state/i);
|
|
2455
|
+
}
|
|
2456
|
+
finally {
|
|
2457
|
+
console.log = originalLog;
|
|
2458
|
+
process.chdir(previousCwd);
|
|
2459
|
+
await rm(wd, { recursive: true, force: true });
|
|
2460
|
+
}
|
|
2461
|
+
});
|
|
2462
|
+
it('returns a missing envelope in JSON mode when team state is absent', async () => {
|
|
2463
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-missing-'));
|
|
2464
|
+
const previousCwd = process.cwd();
|
|
2465
|
+
const logs = [];
|
|
2466
|
+
const originalLog = console.log;
|
|
2467
|
+
try {
|
|
2468
|
+
process.chdir(wd);
|
|
2469
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2470
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'missing-team', '--json']));
|
|
2471
|
+
const payload = JSON.parse(logs.at(-1) ?? '{}');
|
|
2472
|
+
assert.equal(payload.schema_version, '1.0');
|
|
2473
|
+
assert.equal(typeof payload.timestamp, 'string');
|
|
2474
|
+
assert.equal(payload.command, 'omx team status');
|
|
2475
|
+
assert.equal(payload.team_name, 'missing-team');
|
|
2476
|
+
assert.equal(payload.status, 'missing');
|
|
2477
|
+
}
|
|
2478
|
+
finally {
|
|
2479
|
+
console.log = originalLog;
|
|
2480
|
+
process.chdir(previousCwd);
|
|
2481
|
+
await rm(wd, { recursive: true, force: true });
|
|
2482
|
+
}
|
|
2483
|
+
});
|
|
2484
|
+
it('records leader runtime activity when team status is read', async () => {
|
|
2485
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-activity-'));
|
|
2486
|
+
const previousCwd = process.cwd();
|
|
2487
|
+
const logs = [];
|
|
2488
|
+
const originalLog = console.log;
|
|
2489
|
+
try {
|
|
2490
|
+
process.chdir(wd);
|
|
2491
|
+
await withoutTeamTestWorkerEnv(() => initTeamState('activity-team', 'inspect activity', 'executor', 1, wd));
|
|
2492
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2493
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'activity-team', '--json']));
|
|
2494
|
+
const activity = JSON.parse(await readFile(join(wd, '.omx', 'state', 'leader-runtime-activity.json'), 'utf-8'));
|
|
2495
|
+
assert.equal(activity.last_source, 'team_status');
|
|
2496
|
+
assert.equal(activity.last_team_name, 'activity-team');
|
|
2497
|
+
assert.ok(typeof activity.last_activity_at === 'string' && activity.last_activity_at.length > 0);
|
|
2498
|
+
assert.ok(typeof activity.last_team_status_at === 'string' && activity.last_team_status_at.length > 0);
|
|
2499
|
+
}
|
|
2500
|
+
finally {
|
|
2501
|
+
console.log = originalLog;
|
|
2502
|
+
process.chdir(previousCwd);
|
|
2503
|
+
await rm(wd, { recursive: true, force: true });
|
|
2504
|
+
}
|
|
2505
|
+
});
|
|
2506
|
+
it('supports custom tail lines for generated raw inspect commands', async () => {
|
|
2507
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-status-tail-lines-'));
|
|
2508
|
+
const previousCwd = process.cwd();
|
|
2509
|
+
const logs = [];
|
|
2510
|
+
const originalLog = console.log;
|
|
2511
|
+
try {
|
|
2512
|
+
process.chdir(wd);
|
|
2513
|
+
const config = await withoutTeamTestWorkerEnv(() => initTeamState('pane-tail-team', 'inspect worker panes', 'executor', 1, wd));
|
|
2514
|
+
config.workers[0].pane_id = '%51';
|
|
2515
|
+
const manifestPath = join(wd, '.omx', 'state', 'team', 'pane-tail-team', 'manifest.v2.json');
|
|
2516
|
+
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
2517
|
+
manifest.workers = config.workers.map((worker) => ({
|
|
2518
|
+
...worker,
|
|
2519
|
+
pane_id: worker.pane_id,
|
|
2520
|
+
}));
|
|
2521
|
+
await writeFile(join(wd, '.omx', 'state', 'team', 'pane-tail-team', 'config.json'), `${JSON.stringify(config, null, 2)}\n`);
|
|
2522
|
+
await writeFile(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
|
|
2523
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2524
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'pane-tail-team', '--tail-lines', '600']));
|
|
2525
|
+
assert.match(logs.join('\n'), /inspect_worker-1: tmux capture-pane -p -t %51 -S -600/);
|
|
2526
|
+
logs.length = 0;
|
|
2527
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'pane-tail-team', '--model-inspect', '--tail-lines', '600']));
|
|
2528
|
+
assert.match(logs.join('\n'), /inspect_worker-1: omx sparkshell --tmux-pane %51 --tail-lines 600/);
|
|
2529
|
+
logs.length = 0;
|
|
2530
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', 'pane-tail-team', '--json', '--tail-lines=550']));
|
|
2531
|
+
const payload = JSON.parse(logs.at(-1) ?? '{}');
|
|
2532
|
+
assert.equal(payload.tail_lines, 550);
|
|
2533
|
+
assert.equal(payload.panes?.sparkshell_commands?.['worker-1'], 'omx sparkshell --tmux-pane %51 --tail-lines 550');
|
|
2534
|
+
}
|
|
2535
|
+
finally {
|
|
2536
|
+
console.log = originalLog;
|
|
2537
|
+
process.chdir(previousCwd);
|
|
2538
|
+
await rm(wd, { recursive: true, force: true });
|
|
2539
|
+
}
|
|
2540
|
+
});
|
|
2541
|
+
});
|
|
2542
|
+
describe('teamCommand await', () => {
|
|
2543
|
+
it('applies project-scope agentReasoning overrides when CODEX_HOME is unset', async () => {
|
|
2544
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-project-reasoning-'));
|
|
2545
|
+
const binDir = join(wd, 'bin');
|
|
2546
|
+
const fakeCodexPath = join(binDir, 'codex');
|
|
2547
|
+
const captureDir = join(wd, 'captures');
|
|
2548
|
+
const previousCwd = process.cwd();
|
|
2549
|
+
const previousPath = process.env.PATH;
|
|
2550
|
+
const previousCodexHome = process.env.CODEX_HOME;
|
|
2551
|
+
const previousTmux = process.env.TMUX;
|
|
2552
|
+
const previousLaunchMode = process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2553
|
+
const previousWorkerCli = process.env.OMX_TEAM_WORKER_CLI;
|
|
2554
|
+
const previousCaptureDir = process.env.OMX_ARGV_CAPTURE_DIR;
|
|
2555
|
+
const previousLaunchArgs = process.env.OMX_TEAM_WORKER_LAUNCH_ARGS;
|
|
2556
|
+
const previousSkipReadyWait = process.env.OMX_TEAM_SKIP_READY_WAIT;
|
|
2557
|
+
const logs = [];
|
|
2558
|
+
const originalLog = console.log;
|
|
2559
|
+
const teamTask = 'project scoped architect reasoning override';
|
|
2560
|
+
let displayTeamName = '';
|
|
2561
|
+
await mkdir(binDir, { recursive: true });
|
|
2562
|
+
await mkdir(captureDir, { recursive: true });
|
|
2563
|
+
await mkdir(join(wd, '.omx'), { recursive: true });
|
|
2564
|
+
await mkdir(join(wd, '.codex', 'prompts'), { recursive: true });
|
|
2565
|
+
await writeFile(join(wd, '.omx', 'setup-scope.json'), JSON.stringify({ scope: 'project' }, null, 2));
|
|
2566
|
+
await writeFile(join(wd, '.codex', '.omx-config.json'), JSON.stringify({
|
|
2567
|
+
agentReasoning: {
|
|
2568
|
+
architect: 'xhigh',
|
|
2569
|
+
},
|
|
2570
|
+
}, null, 2));
|
|
2571
|
+
await writeFile(join(wd, '.codex', 'prompts', 'architect.md'), '<identity>You are Architect.</identity>');
|
|
2572
|
+
await writeFile(fakeCodexPath, `#!/usr/bin/env node
|
|
2573
|
+
const fs = require('fs');
|
|
2574
|
+
const path = require('path');
|
|
2575
|
+
const worker = String(process.env.OMX_TEAM_WORKER || 'unknown').replace(/[^a-zA-Z0-9_-]+/g, '__');
|
|
2576
|
+
const out = path.join(process.env.OMX_ARGV_CAPTURE_DIR, worker + '.json');
|
|
2577
|
+
fs.writeFileSync(out, JSON.stringify({
|
|
2578
|
+
argv: process.argv.slice(2),
|
|
2579
|
+
codexHome: process.env.CODEX_HOME || null,
|
|
2580
|
+
worker,
|
|
2581
|
+
}, null, 2));
|
|
2582
|
+
process.stdin.resume();
|
|
2583
|
+
setTimeout(() => process.exit(0), 5000);
|
|
2584
|
+
process.on('SIGTERM', () => process.exit(0));
|
|
2585
|
+
`, { mode: 0o755 });
|
|
2586
|
+
let runtimeTeamName = null;
|
|
2587
|
+
try {
|
|
2588
|
+
process.chdir(wd);
|
|
2589
|
+
process.env.PATH = `${binDir}:${previousPath ?? ''}`;
|
|
2590
|
+
delete process.env.CODEX_HOME;
|
|
2591
|
+
delete process.env.TMUX;
|
|
2592
|
+
delete process.env.OMX_TEAM_WORKER_LAUNCH_ARGS;
|
|
2593
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = 'prompt';
|
|
2594
|
+
process.env.OMX_TEAM_WORKER_CLI = 'codex';
|
|
2595
|
+
process.env.OMX_ARGV_CAPTURE_DIR = captureDir;
|
|
2596
|
+
process.env.OMX_TEAM_SKIP_READY_WAIT = '1';
|
|
2597
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2598
|
+
displayTeamName = parseTeamStartArgs(['1:architect', teamTask]).parsed.teamName;
|
|
2599
|
+
await withMockPromptModeCodexAllowed(() => withoutTeamTestWorkerEnv(() => teamCommand(['1:architect', teamTask])));
|
|
2600
|
+
const startedState = await readModeState('team', wd);
|
|
2601
|
+
runtimeTeamName = String(startedState?.team_name ?? parseTeamStartArgs(['1:architect', teamTask]).parsed.teamName);
|
|
2602
|
+
let captured = null;
|
|
2603
|
+
for (let attempt = 0; attempt < 50; attempt += 1) {
|
|
2604
|
+
const capturePath = join(captureDir, `${displayTeamName}__worker-1.json`);
|
|
2605
|
+
if (existsSync(capturePath)) {
|
|
2606
|
+
captured = JSON.parse(await readFile(capturePath, 'utf-8'));
|
|
2607
|
+
break;
|
|
2608
|
+
}
|
|
2609
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
2610
|
+
}
|
|
2611
|
+
assert.ok(captured, 'worker argv capture file should be written');
|
|
2612
|
+
assert.equal(captured.codexHome, join(process.cwd(), '.codex'));
|
|
2613
|
+
assert.match(captured.argv.join(' '), /model_reasoning_effort="xhigh"/);
|
|
2614
|
+
assert.match(logs.join('\n'), /architect x1 .*xhigh reasoning/);
|
|
2615
|
+
}
|
|
2616
|
+
finally {
|
|
2617
|
+
console.log = originalLog;
|
|
2618
|
+
if (runtimeTeamName) {
|
|
2619
|
+
await shutdownTeam(runtimeTeamName, wd, { force: true }).catch(() => { });
|
|
2620
|
+
}
|
|
2621
|
+
process.chdir(previousCwd);
|
|
2622
|
+
if (typeof previousPath === 'string')
|
|
2623
|
+
process.env.PATH = previousPath;
|
|
2624
|
+
else
|
|
2625
|
+
delete process.env.PATH;
|
|
2626
|
+
if (typeof previousCodexHome === 'string')
|
|
2627
|
+
process.env.CODEX_HOME = previousCodexHome;
|
|
2628
|
+
else
|
|
2629
|
+
delete process.env.CODEX_HOME;
|
|
2630
|
+
if (typeof previousTmux === 'string')
|
|
2631
|
+
process.env.TMUX = previousTmux;
|
|
2632
|
+
else
|
|
2633
|
+
delete process.env.TMUX;
|
|
2634
|
+
if (typeof previousLaunchMode === 'string')
|
|
2635
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = previousLaunchMode;
|
|
2636
|
+
else
|
|
2637
|
+
delete process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2638
|
+
if (typeof previousWorkerCli === 'string')
|
|
2639
|
+
process.env.OMX_TEAM_WORKER_CLI = previousWorkerCli;
|
|
2640
|
+
else
|
|
2641
|
+
delete process.env.OMX_TEAM_WORKER_CLI;
|
|
2642
|
+
if (typeof previousCaptureDir === 'string')
|
|
2643
|
+
process.env.OMX_ARGV_CAPTURE_DIR = previousCaptureDir;
|
|
2644
|
+
else
|
|
2645
|
+
delete process.env.OMX_ARGV_CAPTURE_DIR;
|
|
2646
|
+
if (typeof previousLaunchArgs === 'string')
|
|
2647
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_ARGS = previousLaunchArgs;
|
|
2648
|
+
else
|
|
2649
|
+
delete process.env.OMX_TEAM_WORKER_LAUNCH_ARGS;
|
|
2650
|
+
if (typeof previousSkipReadyWait === 'string')
|
|
2651
|
+
process.env.OMX_TEAM_SKIP_READY_WAIT = previousSkipReadyWait;
|
|
2652
|
+
else
|
|
2653
|
+
delete process.env.OMX_TEAM_SKIP_READY_WAIT;
|
|
2654
|
+
await rm(wd, { recursive: true, force: true });
|
|
2655
|
+
}
|
|
2656
|
+
});
|
|
2657
|
+
it('returns next canonical event for a team in JSON mode', async () => {
|
|
2658
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-await-'));
|
|
2659
|
+
const previousCwd = process.cwd();
|
|
2660
|
+
const logs = [];
|
|
2661
|
+
const originalLog = console.log;
|
|
2662
|
+
try {
|
|
2663
|
+
process.chdir(wd);
|
|
2664
|
+
await initTeamState('await-team', 'await test', 'executor', 1, wd);
|
|
2665
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2666
|
+
const waitPromise = teamCommand(['await', 'await-team', '--json', '--timeout-ms', '500']);
|
|
2667
|
+
setTimeout(() => {
|
|
2668
|
+
void appendTeamEvent('await-team', {
|
|
2669
|
+
type: 'worker_state_changed',
|
|
2670
|
+
worker: 'worker-1',
|
|
2671
|
+
state: 'blocked',
|
|
2672
|
+
prev_state: 'working',
|
|
2673
|
+
reason: 'needs_follow_up',
|
|
2674
|
+
}, wd);
|
|
2675
|
+
}, 50);
|
|
2676
|
+
await waitPromise;
|
|
2677
|
+
const payload = JSON.parse(logs.at(-1) ?? '{}');
|
|
2678
|
+
assert.equal(payload.team_name, 'await-team');
|
|
2679
|
+
assert.equal(payload.status, 'event');
|
|
2680
|
+
assert.equal(typeof payload.cursor, 'string');
|
|
2681
|
+
assert.equal(payload.event?.type, 'worker_state_changed');
|
|
2682
|
+
assert.equal(payload.event?.state, 'blocked');
|
|
2683
|
+
assert.equal(payload.event?.prev_state, 'working');
|
|
2684
|
+
assert.equal(payload.event?.reason, 'needs_follow_up');
|
|
2685
|
+
}
|
|
2686
|
+
finally {
|
|
2687
|
+
console.log = originalLog;
|
|
2688
|
+
process.chdir(previousCwd);
|
|
2689
|
+
await rm(wd, { recursive: true, force: true });
|
|
2690
|
+
}
|
|
2691
|
+
});
|
|
2692
|
+
it('returns a dead-worker event for the prompt-launch smoke path instead of timing out', async () => {
|
|
2693
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-await-prompt-dead-'));
|
|
2694
|
+
const binDir = join(wd, 'bin');
|
|
2695
|
+
const fakeCodexPath = join(binDir, 'codex');
|
|
2696
|
+
const previousCwd = process.cwd();
|
|
2697
|
+
const previousPath = process.env.PATH;
|
|
2698
|
+
const previousTmux = process.env.TMUX;
|
|
2699
|
+
const previousLaunchMode = process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2700
|
+
const previousWorkerCli = process.env.OMX_TEAM_WORKER_CLI;
|
|
2701
|
+
const logs = [];
|
|
2702
|
+
const stderr = [];
|
|
2703
|
+
const originalLog = console.log;
|
|
2704
|
+
const originalStderrWrite = process.stderr.write.bind(process.stderr);
|
|
2705
|
+
const teamTask = 'issue 662 prompt dead worker smoke';
|
|
2706
|
+
const teamName = parseTeamStartArgs(['1:executor', teamTask]).parsed.teamName;
|
|
2707
|
+
await mkdir(binDir, { recursive: true });
|
|
2708
|
+
await writeFile(fakeCodexPath, `#!/usr/bin/env node
|
|
2709
|
+
setTimeout(() => process.exit(0), 0);
|
|
2710
|
+
process.stdin.resume();
|
|
2711
|
+
process.on('SIGTERM', () => process.exit(0));
|
|
2712
|
+
`);
|
|
2713
|
+
await chmod(fakeCodexPath, 0o755);
|
|
2714
|
+
try {
|
|
2715
|
+
process.chdir(wd);
|
|
2716
|
+
process.env.PATH = `${binDir}:${previousPath ?? ''}`;
|
|
2717
|
+
delete process.env.TMUX;
|
|
2718
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = 'prompt';
|
|
2719
|
+
process.env.OMX_TEAM_WORKER_CLI = 'codex';
|
|
2720
|
+
console.log = (...args) => logs.push(args.map(String).join(' '));
|
|
2721
|
+
process.stderr.write = ((chunk) => {
|
|
2722
|
+
stderr.push(String(chunk));
|
|
2723
|
+
return true;
|
|
2724
|
+
});
|
|
2725
|
+
await withMockPromptModeCodexAllowed(() => withoutTeamTestWorkerEnv(() => teamCommand(['1:executor', teamTask])));
|
|
2726
|
+
const startedState = await readModeState('team', wd);
|
|
2727
|
+
const runtimeTeamName = String(startedState?.team_name ?? teamName);
|
|
2728
|
+
let statusOutput = '';
|
|
2729
|
+
for (let attempt = 0; attempt < 50; attempt += 1) {
|
|
2730
|
+
logs.length = 0;
|
|
2731
|
+
stderr.length = 0;
|
|
2732
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['status', runtimeTeamName]));
|
|
2733
|
+
statusOutput = logs.join('\n');
|
|
2734
|
+
if (/phase=failed/.test(statusOutput))
|
|
2735
|
+
break;
|
|
2736
|
+
await new Promise((resolve) => setTimeout(resolve, 20));
|
|
2737
|
+
}
|
|
2738
|
+
assert.match(statusOutput, /phase=failed/);
|
|
2739
|
+
assert.doesNotMatch(stderr.join('\n'), /ESRCH/);
|
|
2740
|
+
logs.length = 0;
|
|
2741
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['await', runtimeTeamName, '--json', '--timeout-ms', '250']));
|
|
2742
|
+
const payload = JSON.parse(logs.at(-1) ?? '{}');
|
|
2743
|
+
assert.equal(payload.team_name, runtimeTeamName);
|
|
2744
|
+
assert.equal(payload.status, 'event');
|
|
2745
|
+
assert.equal(payload.event?.type, 'worker_stopped');
|
|
2746
|
+
assert.equal(payload.event?.worker, 'worker-1');
|
|
2747
|
+
}
|
|
2748
|
+
finally {
|
|
2749
|
+
console.log = originalLog;
|
|
2750
|
+
process.stderr.write = originalStderrWrite;
|
|
2751
|
+
process.chdir(previousCwd);
|
|
2752
|
+
if (typeof previousPath === 'string')
|
|
2753
|
+
process.env.PATH = previousPath;
|
|
2754
|
+
else
|
|
2755
|
+
delete process.env.PATH;
|
|
2756
|
+
if (typeof previousTmux === 'string')
|
|
2757
|
+
process.env.TMUX = previousTmux;
|
|
2758
|
+
else
|
|
2759
|
+
delete process.env.TMUX;
|
|
2760
|
+
if (typeof previousLaunchMode === 'string')
|
|
2761
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = previousLaunchMode;
|
|
2762
|
+
else
|
|
2763
|
+
delete process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2764
|
+
if (typeof previousWorkerCli === 'string')
|
|
2765
|
+
process.env.OMX_TEAM_WORKER_CLI = previousWorkerCli;
|
|
2766
|
+
else
|
|
2767
|
+
delete process.env.OMX_TEAM_WORKER_CLI;
|
|
2768
|
+
await rm(wd, { recursive: true, force: true });
|
|
2769
|
+
}
|
|
2770
|
+
});
|
|
2771
|
+
it('initializes and rehydrates active team mode state on start and resume', async () => {
|
|
2772
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-mode-state-'));
|
|
2773
|
+
const binDir = join(wd, 'bin');
|
|
2774
|
+
const fakeCodexPath = join(binDir, 'codex');
|
|
2775
|
+
const previousCwd = process.cwd();
|
|
2776
|
+
const previousPath = process.env.PATH;
|
|
2777
|
+
const previousTmux = process.env.TMUX;
|
|
2778
|
+
const previousLaunchMode = process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2779
|
+
const previousWorkerCli = process.env.OMX_TEAM_WORKER_CLI;
|
|
2780
|
+
const teamTask = 'issue 771 rehydrate team mode state';
|
|
2781
|
+
const teamName = parseTeamStartArgs(['1:executor', teamTask]).parsed.teamName;
|
|
2782
|
+
await mkdir(binDir, { recursive: true });
|
|
2783
|
+
await writeFile(fakeCodexPath, `#!/usr/bin/env node
|
|
2784
|
+
setTimeout(() => process.exit(0), 3000);
|
|
2785
|
+
process.stdin.resume();
|
|
2786
|
+
process.on('SIGTERM', () => process.exit(0));
|
|
2787
|
+
`);
|
|
2788
|
+
await chmod(fakeCodexPath, 0o755);
|
|
2789
|
+
try {
|
|
2790
|
+
process.chdir(wd);
|
|
2791
|
+
process.env.PATH = `${binDir}:${previousPath ?? ''}`;
|
|
2792
|
+
delete process.env.TMUX;
|
|
2793
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = 'prompt';
|
|
2794
|
+
process.env.OMX_TEAM_WORKER_CLI = 'codex';
|
|
2795
|
+
await withMockPromptModeCodexAllowed(() => withoutTeamTestWorkerEnv(() => teamCommand(['1:executor', teamTask])));
|
|
2796
|
+
const startedState = await readModeState('team', wd);
|
|
2797
|
+
const runtimeTeamName = String(startedState?.team_name ?? teamName);
|
|
2798
|
+
assert.equal(startedState?.active, true);
|
|
2799
|
+
assert.equal(startedState?.team_name, runtimeTeamName);
|
|
2800
|
+
assert.equal(startedState?.display_name, teamName);
|
|
2801
|
+
assert.equal(startedState?.current_phase, 'team-exec');
|
|
2802
|
+
await rm(join(wd, '.omx', 'state', 'team-state.json'), { force: true });
|
|
2803
|
+
assert.equal(await readModeState('team', wd), null);
|
|
2804
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['resume', runtimeTeamName]));
|
|
2805
|
+
const resumedState = await readModeState('team', wd);
|
|
2806
|
+
assert.equal(resumedState?.active, true);
|
|
2807
|
+
assert.equal(resumedState?.team_name, runtimeTeamName);
|
|
2808
|
+
assert.equal(resumedState?.current_phase, 'team-exec');
|
|
2809
|
+
}
|
|
2810
|
+
finally {
|
|
2811
|
+
process.chdir(previousCwd);
|
|
2812
|
+
if (typeof previousPath === 'string')
|
|
2813
|
+
process.env.PATH = previousPath;
|
|
2814
|
+
else
|
|
2815
|
+
delete process.env.PATH;
|
|
2816
|
+
if (typeof previousTmux === 'string')
|
|
2817
|
+
process.env.TMUX = previousTmux;
|
|
2818
|
+
else
|
|
2819
|
+
delete process.env.TMUX;
|
|
2820
|
+
if (typeof previousLaunchMode === 'string')
|
|
2821
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = previousLaunchMode;
|
|
2822
|
+
else
|
|
2823
|
+
delete process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2824
|
+
if (typeof previousWorkerCli === 'string')
|
|
2825
|
+
process.env.OMX_TEAM_WORKER_CLI = previousWorkerCli;
|
|
2826
|
+
else
|
|
2827
|
+
delete process.env.OMX_TEAM_WORKER_CLI;
|
|
2828
|
+
await rm(wd, { recursive: true, force: true });
|
|
2829
|
+
}
|
|
2830
|
+
});
|
|
2831
|
+
it('does not resurrect active team mode state when canonical team phase is terminal on resume', async () => {
|
|
2832
|
+
const wd = await mkdtemp(join(tmpdir(), 'omx-team-mode-terminal-'));
|
|
2833
|
+
const binDir = join(wd, 'bin');
|
|
2834
|
+
const fakeCodexPath = join(binDir, 'codex');
|
|
2835
|
+
const previousCwd = process.cwd();
|
|
2836
|
+
const previousPath = process.env.PATH;
|
|
2837
|
+
const previousTmux = process.env.TMUX;
|
|
2838
|
+
const previousLaunchMode = process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2839
|
+
const previousWorkerCli = process.env.OMX_TEAM_WORKER_CLI;
|
|
2840
|
+
const teamTask = 'issue 772 terminal team mode state';
|
|
2841
|
+
const teamName = parseTeamStartArgs(['1:executor', teamTask]).parsed.teamName;
|
|
2842
|
+
await mkdir(binDir, { recursive: true });
|
|
2843
|
+
await writeFile(fakeCodexPath, `#!/usr/bin/env node
|
|
2844
|
+
setTimeout(() => process.exit(0), 3000);
|
|
2845
|
+
process.stdin.resume();
|
|
2846
|
+
process.on('SIGTERM', () => process.exit(0));
|
|
2847
|
+
`);
|
|
2848
|
+
await chmod(fakeCodexPath, 0o755);
|
|
2849
|
+
try {
|
|
2850
|
+
process.chdir(wd);
|
|
2851
|
+
process.env.PATH = `${binDir}:${previousPath ?? ''}`;
|
|
2852
|
+
delete process.env.TMUX;
|
|
2853
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = 'prompt';
|
|
2854
|
+
process.env.OMX_TEAM_WORKER_CLI = 'codex';
|
|
2855
|
+
await withMockPromptModeCodexAllowed(() => withoutTeamTestWorkerEnv(() => teamCommand(['1:executor', teamTask])));
|
|
2856
|
+
const startedState = await readModeState('team', wd);
|
|
2857
|
+
const runtimeTeamName = String(startedState?.team_name ?? teamName);
|
|
2858
|
+
await writeFile(join(wd, '.omx', 'state', 'team', runtimeTeamName, 'phase.json'), JSON.stringify({
|
|
2859
|
+
current_phase: 'complete',
|
|
2860
|
+
max_fix_attempts: 3,
|
|
2861
|
+
current_fix_attempt: 0,
|
|
2862
|
+
transitions: [],
|
|
2863
|
+
updated_at: new Date().toISOString(),
|
|
2864
|
+
}, null, 2));
|
|
2865
|
+
await rm(join(wd, '.omx', 'state', 'team-state.json'), { force: true });
|
|
2866
|
+
await withoutTeamTestWorkerEnv(() => teamCommand(['resume', runtimeTeamName]));
|
|
2867
|
+
const resumedState = await readModeState('team', wd);
|
|
2868
|
+
assert.equal(resumedState?.active, false);
|
|
2869
|
+
assert.equal(resumedState?.team_name, runtimeTeamName);
|
|
2870
|
+
assert.equal(resumedState?.current_phase, 'complete');
|
|
2871
|
+
}
|
|
2872
|
+
finally {
|
|
2873
|
+
process.chdir(previousCwd);
|
|
2874
|
+
if (typeof previousPath === 'string')
|
|
2875
|
+
process.env.PATH = previousPath;
|
|
2876
|
+
else
|
|
2877
|
+
delete process.env.PATH;
|
|
2878
|
+
if (typeof previousTmux === 'string')
|
|
2879
|
+
process.env.TMUX = previousTmux;
|
|
2880
|
+
else
|
|
2881
|
+
delete process.env.TMUX;
|
|
2882
|
+
if (typeof previousLaunchMode === 'string')
|
|
2883
|
+
process.env.OMX_TEAM_WORKER_LAUNCH_MODE = previousLaunchMode;
|
|
2884
|
+
else
|
|
2885
|
+
delete process.env.OMX_TEAM_WORKER_LAUNCH_MODE;
|
|
2886
|
+
if (typeof previousWorkerCli === 'string')
|
|
2887
|
+
process.env.OMX_TEAM_WORKER_CLI = previousWorkerCli;
|
|
2888
|
+
else
|
|
2889
|
+
delete process.env.OMX_TEAM_WORKER_CLI;
|
|
2890
|
+
await rm(wd, { recursive: true, force: true });
|
|
2891
|
+
}
|
|
2892
|
+
});
|
|
2893
|
+
it('rejects legacy omx team ralph launches at command entry', async () => {
|
|
2894
|
+
await assert.rejects(() => withoutTeamTestWorkerEnv(() => teamCommand(['ralph', '1:executor', 'issue 742 linked ralph launch'])), /Deprecated usage: `omx team ralph \.\.\.` has been removed/);
|
|
2895
|
+
});
|
|
2896
|
+
});
|
|
2897
|
+
//# sourceMappingURL=team.test.js.map
|