@jstn-sdk/rcs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/Cargo.lock +174 -0
- package/Cargo.toml +23 -0
- package/README.md +403 -0
- package/crates/rcs-explore/Cargo.toml +11 -0
- package/crates/rcs-explore/src/main.rs +2061 -0
- package/crates/rcs-mux/Cargo.toml +11 -0
- package/crates/rcs-mux/src/lib.rs +91 -0
- package/crates/rcs-mux/src/tmux.rs +282 -0
- package/crates/rcs-mux/src/types.rs +306 -0
- package/crates/rcs-runtime/Cargo.toml +17 -0
- package/crates/rcs-runtime/src/main.rs +125 -0
- package/crates/rcs-runtime/tests/execution.rs +212 -0
- package/crates/rcs-runtime-core/Cargo.toml +13 -0
- package/crates/rcs-runtime-core/src/authority.rs +239 -0
- package/crates/rcs-runtime-core/src/dispatch.rs +330 -0
- package/crates/rcs-runtime-core/src/engine.rs +853 -0
- package/crates/rcs-runtime-core/src/lib.rs +653 -0
- package/crates/rcs-runtime-core/src/mailbox.rs +261 -0
- package/crates/rcs-runtime-core/src/replay.rs +104 -0
- package/crates/rcs-sparkshell/Cargo.lock +7 -0
- package/crates/rcs-sparkshell/Cargo.toml +14 -0
- package/crates/rcs-sparkshell/src/codex_bridge.rs +454 -0
- package/crates/rcs-sparkshell/src/error.rs +45 -0
- package/crates/rcs-sparkshell/src/exec.rs +115 -0
- package/crates/rcs-sparkshell/src/main.rs +334 -0
- package/crates/rcs-sparkshell/src/prompt.rs +342 -0
- package/crates/rcs-sparkshell/src/registry/c_cpp.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/csharp.rs +10 -0
- package/crates/rcs-sparkshell/src/registry/generic_shell.rs +11 -0
- package/crates/rcs-sparkshell/src/registry/git.rs +10 -0
- package/crates/rcs-sparkshell/src/registry/go.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/java_kotlin.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/mod.rs +85 -0
- package/crates/rcs-sparkshell/src/registry/node_js.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/python.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/ruby.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/rust.rs +9 -0
- package/crates/rcs-sparkshell/src/registry/swift.rs +10 -0
- package/crates/rcs-sparkshell/src/test_support.rs +10 -0
- package/crates/rcs-sparkshell/src/threshold.rs +75 -0
- package/crates/rcs-sparkshell/tests/execution.rs +521 -0
- package/crates/rcs-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 +62 -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 +278 -0
- package/dist/agents/__tests__/native-config.test.js.map +1 -0
- package/dist/agents/definitions.d.ts +25 -0
- package/dist/agents/definitions.d.ts.map +1 -0
- package/dist/agents/definitions.js +327 -0
- package/dist/agents/definitions.js.map +1 -0
- package/dist/agents/native-config.d.ts +51 -0
- package/dist/agents/native-config.d.ts.map +1 -0
- package/dist/agents/native-config.js +265 -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/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 +356 -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 +218 -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/runtime.d.ts +132 -0
- package/dist/autoresearch/runtime.d.ts.map +1 -0
- package/dist/autoresearch/runtime.js +1075 -0
- package/dist/autoresearch/runtime.js.map +1 -0
- package/dist/autoresearch/skill-validation.d.ts +13 -0
- package/dist/autoresearch/skill-validation.d.ts.map +1 -0
- package/dist/autoresearch/skill-validation.js +165 -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 +49 -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 +83 -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 +91 -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 +37 -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__/ask.test.d.ts +2 -0
- package/dist/cli/__tests__/ask.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ask.test.js +265 -0
- package/dist/cli/__tests__/ask.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 +203 -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 +419 -0
- package/dist/cli/__tests__/cleanup.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 +210 -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-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 +438 -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 +1090 -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__/index.test.d.ts +2 -0
- package/dist/cli/__tests__/index.test.d.ts.map +1 -0
- package/dist/cli/__tests__/index.test.js +2259 -0
- package/dist/cli/__tests__/index.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 +661 -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 +64 -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 +308 -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 +96 -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 +177 -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__/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 +633 -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-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 +24 -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 +167 -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 +84 -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 +146 -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 +76 -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 +457 -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 +189 -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 +873 -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 +591 -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 +340 -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 +295 -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 +400 -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 +74 -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 +46 -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 +133 -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 +1820 -0
- package/dist/cli/__tests__/team.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 +766 -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 +589 -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 +41 -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/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/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 +56 -0
- package/dist/cli/cleanup.d.ts.map +1 -0
- package/dist/cli/cleanup.js +400 -0
- package/dist/cli/cleanup.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 +18 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +1072 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/explore.d.ts +30 -0
- package/dist/cli/explore.d.ts.map +1 -0
- package/dist/cli/explore.js +404 -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 +138 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +3117 -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 +71 -0
- package/dist/cli/mcp-serve.js.map +1 -0
- package/dist/cli/native-assets.d.ts +51 -0
- package/dist/cli/native-assets.d.ts.map +1 -0
- package/dist/cli/native-assets.js +379 -0
- package/dist/cli/native-assets.js.map +1 -0
- package/dist/cli/plugin-marketplace.d.ts +13 -0
- package/dist/cli/plugin-marketplace.d.ts.map +1 -0
- package/dist/cli/plugin-marketplace.js +75 -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 +227 -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 +313 -0
- package/dist/cli/ralph.js.map +1 -0
- package/dist/cli/rcs.d.ts +3 -0
- package/dist/cli/rcs.d.ts.map +1 -0
- package/dist/cli/rcs.js +127 -0
- package/dist/cli/rcs.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 +138 -0
- package/dist/cli/session-search.js.map +1 -0
- package/dist/cli/setup-preferences.d.ts +20 -0
- package/dist/cli/setup-preferences.d.ts.map +1 -0
- package/dist/cli/setup-preferences.js +71 -0
- package/dist/cli/setup-preferences.js.map +1 -0
- package/dist/cli/setup.d.ts +55 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +2056 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/sparkshell.d.ts +33 -0
- package/dist/cli/sparkshell.d.ts.map +1 -0
- package/dist/cli/sparkshell.js +272 -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 +71 -0
- package/dist/cli/state.js.map +1 -0
- package/dist/cli/team.d.ts +42 -0
- package/dist/cli/team.d.ts.map +1 -0
- package/dist/cli/team.js +1293 -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 +386 -0
- package/dist/cli/tmux-hook.js.map +1 -0
- package/dist/cli/uninstall.d.ts +13 -0
- package/dist/cli/uninstall.d.ts.map +1 -0
- package/dist/cli/uninstall.js +402 -0
- package/dist/cli/uninstall.js.map +1 -0
- package/dist/cli/update.d.ts +56 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +333 -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 +17 -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 +108 -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-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 +77 -0
- package/dist/config/__tests__/codex-hooks.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 +882 -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 +343 -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 +224 -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 +19 -0
- package/dist/config/__tests__/wiki-config-contract.test.js.map +1 -0
- package/dist/config/codex-hooks.d.ts +21 -0
- package/dist/config/codex-hooks.d.ts.map +1 -0
- package/dist/config/codex-hooks.js +198 -0
- package/dist/config/codex-hooks.js.map +1 -0
- package/dist/config/generator.d.ts +87 -0
- package/dist/config/generator.d.ts.map +1 -0
- package/dist/config/generator.js +1127 -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 +74 -0
- package/dist/config/models.d.ts.map +1 -0
- package/dist/config/models.js +214 -0
- package/dist/config/models.js.map +1 -0
- package/dist/config/rcs-first-party-mcp.d.ts +18 -0
- package/dist/config/rcs-first-party-mcp.d.ts.map +1 -0
- package/dist/config/rcs-first-party-mcp.js +76 -0
- package/dist/config/rcs-first-party-mcp.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 +44 -0
- package/dist/exec/followup.d.ts.map +1 -0
- package/dist/exec/followup.js +349 -0
- package/dist/exec/followup.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 +644 -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 +146 -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 +37 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.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 +56 -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 +234 -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 +213 -0
- package/dist/hooks/__tests__/deep-interview-contract.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 +43 -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 +69 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-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 +1716 -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 +3898 -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 +2397 -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 +160 -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-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 +682 -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 +301 -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 +1510 -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 +2879 -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 +228 -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 +1589 -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__/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 +65 -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__/session.test.d.ts +2 -0
- package/dist/hooks/__tests__/session.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/session.test.js +322 -0
- package/dist/hooks/__tests__/session.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 +29 -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 +35 -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 +34 -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 +557 -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 +233 -0
- package/dist/hooks/codebase-map.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 +47 -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 +242 -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 +202 -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 +285 -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 +21 -0
- package/dist/hooks/extensibility/logging.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 +69 -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 +22 -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 +163 -0
- package/dist/hooks/keyword-detector.d.ts.map +1 -0
- package/dist/hooks/keyword-detector.js +920 -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 +78 -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 +321 -0
- package/dist/hooks/prompt-guidance-contract.js.map +1 -0
- package/dist/hooks/session.d.ts +72 -0
- package/dist/hooks/session.d.ts.map +1 -0
- package/dist/hooks/session.js +332 -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 +202 -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 +56 -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 +150 -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 +180 -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 +125 -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 +573 -0
- package/dist/hud/__tests__/render.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 +618 -0
- package/dist/hud/__tests__/state.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 +17 -0
- package/dist/hud/authority.d.ts.map +1 -0
- package/dist/hud/authority.js +55 -0
- package/dist/hud/authority.js.map +1 -0
- package/dist/hud/colors.d.ts +19 -0
- package/dist/hud/colors.d.ts.map +1 -0
- package/dist/hud/colors.js +56 -0
- package/dist/hud/colors.js.map +1 -0
- package/dist/hud/constants.d.ts +5 -0
- package/dist/hud/constants.d.ts.map +1 -0
- package/dist/hud/constants.js +5 -0
- package/dist/hud/constants.js.map +1 -0
- package/dist/hud/index.d.ts +54 -0
- package/dist/hud/index.d.ts.map +1 -0
- package/dist/hud/index.js +239 -0
- package/dist/hud/index.js.map +1 -0
- package/dist/hud/reconcile.d.ts +25 -0
- package/dist/hud/reconcile.d.ts.map +1 -0
- package/dist/hud/reconcile.js +73 -0
- package/dist/hud/reconcile.js.map +1 -0
- package/dist/hud/render.d.ts +14 -0
- package/dist/hud/render.d.ts.map +1 -0
- package/dist/hud/render.js +312 -0
- package/dist/hud/render.js.map +1 -0
- package/dist/hud/state.d.ts +26 -0
- package/dist/hud/state.d.ts.map +1 -0
- package/dist/hud/state.js +385 -0
- package/dist/hud/state.js.map +1 -0
- package/dist/hud/tmux.d.ts +27 -0
- package/dist/hud/tmux.d.ts.map +1 -0
- package/dist/hud/tmux.js +139 -0
- package/dist/hud/tmux.js.map +1 -0
- package/dist/hud/types.d.ts +130 -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/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 +207 -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__/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 +260 -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 +209 -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 +965 -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 +30 -0
- package/dist/mcp/__tests__/wiki-server.test.js.map +1 -0
- package/dist/mcp/bootstrap.d.ts +39 -0
- package/dist/mcp/bootstrap.d.ts.map +1 -0
- package/dist/mcp/bootstrap.js +335 -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/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 +42 -0
- package/dist/mcp/state-paths.d.ts.map +1 -0
- package/dist/mcp/state-paths.js +290 -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 +235 -0
- package/dist/mcp/wiki-server.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 +123 -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 +98 -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 +39 -0
- package/dist/modes/__tests__/base-tmux-pane.test.js.map +1 -0
- package/dist/modes/base.d.ts +56 -0
- package/dist/modes/base.d.ts.map +1 -0
- package/dist/modes/base.js +241 -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__/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 +239 -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 +208 -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 +237 -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 +612 -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 +410 -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/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 +44 -0
- package/dist/notifications/notifier.d.ts.map +1 -0
- package/dist/notifications/notifier.js +151 -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 +129 -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 +224 -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 +169 -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 +72 -0
- package/dist/openclaw/dispatcher.d.ts.map +1 -0
- package/dist/openclaw/dispatcher.js +259 -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/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 +505 -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 +754 -0
- package/dist/pipeline/__tests__/stages.test.js.map +1 -0
- package/dist/pipeline/index.d.ts +19 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/index.js +14 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/pipeline/orchestrator.d.ts +51 -0
- package/dist/pipeline/orchestrator.d.ts.map +1 -0
- package/dist/pipeline/orchestrator.js +324 -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 +33 -0
- package/dist/pipeline/stages/code-review.d.ts.map +1 -0
- package/dist/pipeline/stages/code-review.js +51 -0
- package/dist/pipeline/stages/code-review.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 +25 -0
- package/dist/pipeline/stages/ralplan.d.ts.map +1 -0
- package/dist/pipeline/stages/ralplan.js +107 -0
- package/dist/pipeline/stages/ralplan.js.map +1 -0
- package/dist/pipeline/stages/team-exec.d.ts +50 -0
- package/dist/pipeline/stages/team-exec.d.ts.map +1 -0
- package/dist/pipeline/stages/team-exec.js +263 -0
- package/dist/pipeline/stages/team-exec.js.map +1 -0
- package/dist/pipeline/types.d.ts +122 -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__/artifacts.test.d.ts +2 -0
- package/dist/planning/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/planning/__tests__/artifacts.test.js +544 -0
- package/dist/planning/__tests__/artifacts.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 +61 -0
- package/dist/planning/artifacts.d.ts.map +1 -0
- package/dist/planning/artifacts.js +308 -0
- package/dist/planning/artifacts.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 +209 -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 +107 -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 +707 -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 +102 -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 +446 -0
- package/dist/question/__tests__/ui.test.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 +31 -0
- package/dist/question/deep-interview.d.ts.map +1 -0
- package/dist/question/deep-interview.js +196 -0
- package/dist/question/deep-interview.js.map +1 -0
- package/dist/question/policy.d.ts +18 -0
- package/dist/question/policy.d.ts.map +1 -0
- package/dist/question/policy.js +77 -0
- package/dist/question/policy.js.map +1 -0
- package/dist/question/renderer.d.ts +46 -0
- package/dist/question/renderer.d.ts.map +1 -0
- package/dist/question/renderer.js +498 -0
- package/dist/question/renderer.js.map +1 -0
- package/dist/question/state.d.ts +21 -0
- package/dist/question/state.d.ts.map +1 -0
- package/dist/question/state.js +121 -0
- package/dist/question/state.js.map +1 -0
- package/dist/question/types.d.ts +91 -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 +53 -0
- package/dist/question/ui.d.ts.map +1 -0
- package/dist/question/ui.js +435 -0
- package/dist/question/ui.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/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 +267 -0
- package/dist/ralph/persistence.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 +165 -0
- package/dist/ralplan/__tests__/runtime.test.js.map +1 -0
- package/dist/ralplan/runtime.d.ts +52 -0
- package/dist/ralplan/runtime.d.ts.map +1 -0
- package/dist/ralplan/runtime.js +202 -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__/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/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 +6788 -0
- package/dist/scripts/__tests__/codex-native-hook.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 +195 -0
- package/dist/scripts/__tests__/hook-derived-watcher.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 +62 -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 +135 -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 +166 -0
- package/dist/scripts/__tests__/verify-native-agents.test.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 +49 -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 +16 -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 +25 -0
- package/dist/scripts/codex-native-hook.d.ts.map +1 -0
- package/dist/scripts/codex-native-hook.js +1879 -0
- package/dist/scripts/codex-native-hook.js.map +1 -0
- package/dist/scripts/codex-native-pre-post.d.ts +39 -0
- package/dist/scripts/codex-native-pre-post.d.ts.map +1 -0
- package/dist/scripts/codex-native-pre-post.js +824 -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 +556 -0
- package/dist/scripts/hook-derived-watcher.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 +1755 -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__/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 +696 -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 +556 -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 +18 -0
- package/dist/scripts/notify-hook/orchestration-intent.d.ts.map +1 -0
- package/dist/scripts/notify-hook/orchestration-intent.js +72 -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 +102 -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 +300 -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 +144 -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 +1065 -0
- package/dist/scripts/notify-hook/team-dispatch.js.map +1 -0
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts +23 -0
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js +1055 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js.map +1 -0
- package/dist/scripts/notify-hook/team-tmux-guard.d.ts +14 -0
- package/dist/scripts/notify-hook/team-tmux-guard.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-tmux-guard.js +161 -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.d.ts +33 -0
- package/dist/scripts/notify-hook/team-worker.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker.js +697 -0
- package/dist/scripts/notify-hook/team-worker.js.map +1 -0
- package/dist/scripts/notify-hook/tmux-injection.d.ts +8 -0
- package/dist/scripts/notify-hook/tmux-injection.d.ts.map +1 -0
- package/dist/scripts/notify-hook/tmux-injection.js +578 -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 +716 -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 +171 -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 +71 -0
- package/dist/scripts/run-test-files.js.map +1 -0
- package/dist/scripts/smoke-packed-install.d.ts +18 -0
- package/dist/scripts/smoke-packed-install.d.ts.map +1 -0
- package/dist/scripts/smoke-packed-install.js +144 -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 +282 -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 +188 -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__/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 +165 -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 +103 -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 +439 -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__/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 +160 -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 +77 -0
- package/dist/state/__tests__/workflow-transition.test.js.map +1 -0
- package/dist/state/mode-state-context.d.ts +12 -0
- package/dist/state/mode-state-context.d.ts.map +1 -0
- package/dist/state/mode-state-context.js +28 -0
- package/dist/state/mode-state-context.js.map +1 -0
- package/dist/state/operations.d.ts +11 -0
- package/dist/state/operations.d.ts.map +1 -0
- package/dist/state/operations.js +363 -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 +55 -0
- package/dist/state/skill-active.d.ts.map +1 -0
- package/dist/state/skill-active.js +269 -0
- package/dist/state/skill-active.js.map +1 -0
- package/dist/state/workflow-transition-reconcile.d.ts +15 -0
- package/dist/state/workflow-transition-reconcile.d.ts.map +1 -0
- package/dist/state/workflow-transition-reconcile.js +113 -0
- package/dist/state/workflow-transition-reconcile.js.map +1 -0
- package/dist/state/workflow-transition.d.ts +22 -0
- package/dist/state/workflow-transition.d.ts.map +1 -0
- package/dist/state/workflow-transition.js +191 -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 +47 -0
- package/dist/subagents/__tests__/tracker.test.js.map +1 -0
- package/dist/subagents/tracker.d.ts +52 -0
- package/dist/subagents/tracker.d.ts.map +1 -0
- package/dist/subagents/tracker.js +175 -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 +2262 -0
- package/dist/team/__tests__/api-interop.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__/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 +679 -0
- package/dist/team/__tests__/delivery-e2e-smoke.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 +84 -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 +171 -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 +136 -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-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 +304 -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 +5734 -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 +1005 -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 +195 -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 +1859 -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 +3785 -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 +152 -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 +113 -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 +685 -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 +250 -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 +1083 -0
- package/dist/team/api-interop.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/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 +35 -0
- package/dist/team/delivery-log.js.map +1 -0
- package/dist/team/followup-planner.d.ts +44 -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/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 +204 -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 +63 -0
- package/dist/team/repo-aware-decomposition.d.ts.map +1 -0
- package/dist/team/repo-aware-decomposition.js +231 -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 +74 -0
- package/dist/team/runtime-cli.d.ts.map +1 -0
- package/dist/team/runtime-cli.js +363 -0
- package/dist/team/runtime-cli.js.map +1 -0
- package/dist/team/runtime.d.ts +154 -0
- package/dist/team/runtime.d.ts.map +1 -0
- package/dist/team/runtime.js +3925 -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 +598 -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 +69 -0
- package/dist/team/state/dispatch.d.ts.map +1 -0
- package/dist/team/state/dispatch.js +308 -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 +42 -0
- package/dist/team/state/mailbox.d.ts.map +1 -0
- package/dist/team/state/mailbox.js +213 -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 +260 -0
- package/dist/team/state/tasks.js.map +1 -0
- package/dist/team/state/types.d.ts +336 -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 +293 -0
- package/dist/team/state-root.js.map +1 -0
- package/dist/team/state.d.ts +455 -0
- package/dist/team/state.d.ts.map +1 -0
- package/dist/team/state.js +1436 -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 +186 -0
- package/dist/team/tmux-session.d.ts.map +1 -0
- package/dist/team/tmux-session.js +1770 -0
- package/dist/team/tmux-session.js.map +1 -0
- package/dist/team/worker-bootstrap.d.ts +85 -0
- package/dist/team/worker-bootstrap.d.ts.map +1 -0
- package/dist/team/worker-bootstrap.js +767 -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/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 +52 -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 +104 -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 +541 -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 +410 -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/agents-md.d.ts +8 -0
- package/dist/utils/agents-md.d.ts.map +1 -0
- package/dist/utils/agents-md.js +57 -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 +88 -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 +84 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +263 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/platform-command.d.ts +26 -0
- package/dist/utils/platform-command.d.ts.map +1 -0
- package/dist/utils/platform-command.js +270 -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 +24 -0
- package/dist/utils/sleep.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 +89 -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 +54 -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 +73 -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 +181 -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 +163 -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 +141 -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 +36 -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 +278 -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 +20 -0
- package/dist/wiki/lifecycle.d.ts.map +1 -0
- package/dist/wiki/lifecycle.js +212 -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 +166 -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 +138 -0
- package/dist/wiki/query.js.map +1 -0
- package/dist/wiki/storage.d.ts +33 -0
- package/dist/wiki/storage.d.ts.map +1 -0
- package/dist/wiki/storage.js +322 -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/docs/STATE_MODEL.md +280 -0
- package/docs/adapt.md +49 -0
- package/docs/agents.html +96 -0
- package/docs/benchmarks/tetris-benchmark-comparison-20260306.png +0 -0
- package/docs/clawhip-event-contract.md +83 -0
- package/docs/codex-native-hooks.md +153 -0
- package/docs/contracts/autoresearch-command-contract.md +106 -0
- package/docs/contracts/autoresearch-command-review.md +97 -0
- package/docs/contracts/autoresearch-ux-deep-interview-review.md +114 -0
- package/docs/contracts/explicit-terminal-stop-model.md +96 -0
- package/docs/contracts/multi-state-transition-contract.md +115 -0
- package/docs/contracts/multi-state-transition-review.md +134 -0
- package/docs/contracts/mux-operation-space.md +49 -0
- package/docs/contracts/ralph-cancel-contract.md +23 -0
- package/docs/contracts/ralph-state-contract.md +95 -0
- package/docs/contracts/repo-aware-team-dag-decomposition.md +98 -0
- package/docs/contracts/runtime-authority-backlog-replay-readiness.md +40 -0
- package/docs/contracts/runtime-command-event-snapshot-schema.md +133 -0
- package/docs/contracts/rust-runtime-thin-adapter-contract.md +69 -0
- package/docs/contracts/team-delivery-state-contract.md +95 -0
- package/docs/contracts/team-runtime-state-contract.md +48 -0
- package/docs/contracts/team-startup-dispatch-latency.md +114 -0
- package/docs/getting-started.html +91 -0
- package/docs/guidance-schema.md +69 -0
- package/docs/hooks-extension.md +146 -0
- package/docs/index.html +117 -0
- package/docs/integrations.html +59 -0
- package/docs/interop-team-mutation-contract.md +98 -0
- package/docs/issues/team-ralph-followup-team.md +38 -0
- package/docs/migration-mainline-post-v0.4.4.md +90 -0
- package/docs/openclaw-integration.de.md +44 -0
- package/docs/openclaw-integration.es.md +44 -0
- package/docs/openclaw-integration.fr.md +44 -0
- package/docs/openclaw-integration.it.md +44 -0
- package/docs/openclaw-integration.ja.md +44 -0
- package/docs/openclaw-integration.ko.md +82 -0
- package/docs/openclaw-integration.md +378 -0
- package/docs/openclaw-integration.pt.md +44 -0
- package/docs/openclaw-integration.ru.md +44 -0
- package/docs/openclaw-integration.tr.md +44 -0
- package/docs/openclaw-integration.uk.md +44 -0
- package/docs/openclaw-integration.vi.md +44 -0
- package/docs/openclaw-integration.zh-TW.md +44 -0
- package/docs/openclaw-integration.zh.md +44 -0
- package/docs/plugin-bundle-ssot.md +52 -0
- package/docs/prompt-guidance-contract.md +233 -0
- package/docs/prompt-guidance-fragments/core-operating-principles.md +16 -0
- package/docs/prompt-guidance-fragments/core-verification-and-sequencing.md +6 -0
- package/docs/prompt-guidance-fragments/executor-constraints.md +13 -0
- package/docs/prompt-guidance-fragments/executor-output.md +1 -0
- package/docs/prompt-guidance-fragments/executor-shared.md +7 -0
- package/docs/prompt-guidance-fragments/leader-specialist-routing.md +6 -0
- package/docs/prompt-guidance-fragments/planner-constraints.md +12 -0
- package/docs/prompt-guidance-fragments/planner-investigation.md +1 -0
- package/docs/prompt-guidance-fragments/planner-output.md +1 -0
- package/docs/prompt-guidance-fragments/planner-shared.md +7 -0
- package/docs/prompt-guidance-fragments/verifier-constraints.md +10 -0
- package/docs/prompt-guidance-fragments/verifier-investigation.md +1 -0
- package/docs/prompt-guidance-fragments/verifier-shared.md +4 -0
- package/docs/prompt-migration-changelog.md +152 -0
- package/docs/prs/dev-deprecate-team-ralph.md +100 -0
- package/docs/prs/dev-fix-ralph-live-pane-invariant.md +34 -0
- package/docs/prs/dev-issue-715-team-brain-role-split.md +22 -0
- package/docs/prs/dev-team-ralph-workflow-positioning.md +38 -0
- package/docs/prs/experimental-dev-omx-sparkshell.md +56 -0
- package/docs/qa/ci-speedups-after-prompt-worker-fix.md +91 -0
- package/docs/qa/deep-interview-phase-1-validation.md +117 -0
- package/docs/qa/explore-sparkshell-heavy-manual-stress.md +244 -0
- package/docs/qa/ralph-persistence-gate.md +59 -0
- package/docs/qa/recent-bug-regression-hardening-2026-04-11.md +24 -0
- package/docs/qa/release-no-publish-0.15.0.md +33 -0
- package/docs/qa/release-readiness-0.11.13.md +39 -0
- package/docs/qa/release-readiness-0.12.0.md +80 -0
- package/docs/qa/release-readiness-0.12.1.md +33 -0
- package/docs/qa/release-readiness-0.12.2.md +33 -0
- package/docs/qa/release-readiness-0.12.3.md +30 -0
- package/docs/qa/release-readiness-0.12.5.md +69 -0
- package/docs/qa/release-readiness-0.12.6.md +59 -0
- package/docs/qa/release-readiness-0.13.0.md +64 -0
- package/docs/qa/release-readiness-0.13.1.md +39 -0
- package/docs/qa/release-readiness-0.14.0.md +55 -0
- package/docs/qa/release-readiness-0.14.1.md +44 -0
- package/docs/qa/release-readiness-0.14.2.md +65 -0
- package/docs/qa/release-readiness-0.14.3.md +42 -0
- package/docs/qa/release-readiness-0.14.4.md +40 -0
- package/docs/qa/release-readiness-0.15.0.md +65 -0
- package/docs/qa/release-readiness-0.15.1.md +44 -0
- package/docs/qa/release-readiness-0.8.1.md +37 -0
- package/docs/qa/release-readiness-0.8.2.md +39 -0
- package/docs/qa/release-readiness-0.8.3.md +43 -0
- package/docs/qa/release-readiness-0.8.4.md +39 -0
- package/docs/qa/release-readiness-0.9.0.md +78 -0
- package/docs/qa/release-readiness-0.9.1.md +43 -0
- package/docs/qa/release-readiness-follow-up.md +26 -0
- package/docs/qa/remaining-suite-drift-2026-03-19.md +105 -0
- package/docs/qa/research-specialist-eval-surface-2026-04-18.md +42 -0
- package/docs/qa/runtime-team-seam-audit-2026-04-01.md +128 -0
- package/docs/qa/rust-runtime-thin-adapter-gate.md +40 -0
- package/docs/qa-plan-0.4.2.md +85 -0
- package/docs/qa-report-0.4.2.md +55 -0
- package/docs/readme/README.de.md +27 -0
- package/docs/readme/README.el.md +27 -0
- package/docs/readme/README.es.md +27 -0
- package/docs/readme/README.fr.md +27 -0
- package/docs/readme/README.it.md +27 -0
- package/docs/readme/README.ja.md +27 -0
- package/docs/readme/README.ko.md +27 -0
- package/docs/readme/README.md +53 -0
- package/docs/readme/README.pl.md +27 -0
- package/docs/readme/README.pt.md +27 -0
- package/docs/readme/README.ru.md +27 -0
- package/docs/readme/README.tr.md +27 -0
- package/docs/readme/README.uk.md +27 -0
- package/docs/readme/README.vi.md +27 -0
- package/docs/readme/README.zh-TW.md +27 -0
- package/docs/readme/README.zh.md +27 -0
- package/docs/reference/player-psychology-command-surfaces.md +30 -0
- package/docs/reference/player-psychology-framework.md +64 -0
- package/docs/reference/project-wiki.md +79 -0
- package/docs/reference/psychology-example-mastery-combat.md +7 -0
- package/docs/reference/psychology-example-simulator-farming.md +7 -0
- package/docs/reference/psychology-example-social-roleplay.md +7 -0
- package/docs/reference/psychology-rubric-healthy-retention.md +13 -0
- package/docs/reference/psychology-rubric-mastery-depth.md +11 -0
- package/docs/reference/psychology-rubric-progression-clarity.md +12 -0
- package/docs/reference/psychology-rubric-social-value-vs-spam.md +11 -0
- package/docs/reference/psychology-rubric-status-visibility.md +11 -0
- package/docs/reference/ralph-parity-matrix.md +25 -0
- package/docs/reference/ralph-upstream-baseline.md +34 -0
- package/docs/reference/rcs-config-schema-routing.md +264 -0
- package/docs/reference/roblox-pre-action-protocol.md +122 -0
- package/docs/reference/team-allocation-rebalance-policy.md +60 -0
- package/docs/release-body-0.9.0.md +104 -0
- package/docs/release-body-0.9.1.md +41 -0
- package/docs/release-notes-v0.1.0.md +53 -0
- package/docs/reports/macos-m1-high-cpu-usage-2026-04-16.md +78 -0
- package/docs/reports/open-prs-dev-readiness-2026-04-09.md +45 -0
- package/docs/runtime-model-metadata-cleanup.md +37 -0
- package/docs/shared/agent-tiers.md +56 -0
- package/docs/shared/omx-character-spark-initiative.jpg +0 -0
- package/docs/skills.html +132 -0
- package/docs/style.css +179 -0
- package/docs/troubleshooting.md +120 -0
- package/docs/wiki-feature.md +35 -0
- package/package.json +108 -0
- package/plugins/roblox-ai-os-creator-skills/.app.json +3 -0
- package/plugins/roblox-ai-os-creator-skills/.codex-plugin/plugin.json +30 -0
- package/plugins/roblox-ai-os-creator-skills/.mcp.json +44 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/player-psychology-command-surfaces.md +30 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/player-psychology-framework.md +64 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-example-mastery-combat.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-example-simulator-farming.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-example-social-roleplay.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-rubric-healthy-retention.md +13 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-rubric-mastery-depth.md +11 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-rubric-progression-clarity.md +12 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-rubric-social-value-vs-spam.md +11 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/psychology-rubric-status-visibility.md +11 -0
- package/plugins/roblox-ai-os-creator-skills/docs/reference/roblox-pre-action-protocol.md +122 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ai-slop-cleaner/SKILL.md +139 -0
- package/plugins/roblox-ai-os-creator-skills/skills/analyze/SKILL.md +148 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ask-claude/SKILL.md +61 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ask-gemini/SKILL.md +61 -0
- package/plugins/roblox-ai-os-creator-skills/skills/autoforge/SKILL.md +18 -0
- package/plugins/roblox-ai-os-creator-skills/skills/autopilot/SKILL.md +163 -0
- package/plugins/roblox-ai-os-creator-skills/skills/autoresearch/SKILL.md +68 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint/SKILL.md +22 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-loop/SKILL.md +19 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-psych/SKILL.md +21 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-retention/SKILL.md +15 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-social/SKILL.md +15 -0
- package/plugins/roblox-ai-os-creator-skills/skills/brief/SKILL.md +27 -0
- package/plugins/roblox-ai-os-creator-skills/skills/brief-audience/SKILL.md +19 -0
- package/plugins/roblox-ai-os-creator-skills/skills/brief-motivation/SKILL.md +22 -0
- package/plugins/roblox-ai-os-creator-skills/skills/cancel/SKILL.md +399 -0
- package/plugins/roblox-ai-os-creator-skills/skills/code-review/SKILL.md +290 -0
- package/plugins/roblox-ai-os-creator-skills/skills/configure-notifications/SKILL.md +287 -0
- package/plugins/roblox-ai-os-creator-skills/skills/crew/SKILL.md +10 -0
- package/plugins/roblox-ai-os-creator-skills/skills/deep-interview/SKILL.md +468 -0
- package/plugins/roblox-ai-os-creator-skills/skills/doctor/SKILL.md +239 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge/SKILL.md +30 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-community/SKILL.md +16 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-daily-loop/SKILL.md +15 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-event-loop/SKILL.md +15 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-fomo/SKILL.md +16 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-mastery/SKILL.md +16 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-progression/SKILL.md +16 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-reward-loop/SKILL.md +19 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-status/SKILL.md +17 -0
- package/plugins/roblox-ai-os-creator-skills/skills/help/SKILL.md +75 -0
- package/plugins/roblox-ai-os-creator-skills/skills/hud/SKILL.md +98 -0
- package/plugins/roblox-ai-os-creator-skills/skills/note/SKILL.md +62 -0
- package/plugins/roblox-ai-os-creator-skills/skills/pipeline/SKILL.md +86 -0
- package/plugins/roblox-ai-os-creator-skills/skills/plan/SKILL.md +277 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ralph/SKILL.md +269 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ralplan/SKILL.md +162 -0
- package/plugins/roblox-ai-os-creator-skills/skills/rcs-setup/SKILL.md +135 -0
- package/plugins/roblox-ai-os-creator-skills/skills/security-review/SKILL.md +300 -0
- package/plugins/roblox-ai-os-creator-skills/skills/skill/SKILL.md +835 -0
- package/plugins/roblox-ai-os-creator-skills/skills/team/SKILL.md +510 -0
- package/plugins/roblox-ai-os-creator-skills/skills/trace/SKILL.md +33 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ultraqa/SKILL.md +143 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ultrawork/SKILL.md +175 -0
- package/plugins/roblox-ai-os-creator-skills/skills/visual-ralph/SKILL.md +153 -0
- package/plugins/roblox-ai-os-creator-skills/skills/visual-verdict/SKILL.md +76 -0
- package/plugins/roblox-ai-os-creator-skills/skills/wiki/SKILL.md +57 -0
- package/plugins/roblox-ai-os-creator-skills/skills/worker/SKILL.md +106 -0
- package/plugins/roblox-ai-os-creator-skills/templates/psychology/dopamine-loop-map.md +13 -0
- package/plugins/roblox-ai-os-creator-skills/templates/psychology/event-fomo-design-sheet.md +11 -0
- package/plugins/roblox-ai-os-creator-skills/templates/psychology/player-motivation-profile.md +14 -0
- package/plugins/roblox-ai-os-creator-skills/templates/psychology/retention-design-sheet.md +12 -0
- package/plugins/roblox-ai-os-creator-skills/templates/psychology/social-mechanic-spec.md +11 -0
- package/plugins/roblox-ai-os-creator-skills/templates/roblox/pre-action-plan.md +84 -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 +137 -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/qa-tester.md +124 -0
- package/prompts/quality-reviewer.md +123 -0
- package/prompts/quality-strategist.md +274 -0
- package/prompts/researcher.md +98 -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 +139 -0
- package/skills/analyze/SKILL.md +148 -0
- package/skills/ask-claude/SKILL.md +61 -0
- package/skills/ask-gemini/SKILL.md +61 -0
- package/skills/autoforge/SKILL.md +18 -0
- package/skills/autopilot/SKILL.md +163 -0
- package/skills/autoresearch/SKILL.md +68 -0
- package/skills/blueprint/SKILL.md +22 -0
- package/skills/blueprint-loop/SKILL.md +19 -0
- package/skills/blueprint-psych/SKILL.md +21 -0
- package/skills/blueprint-retention/SKILL.md +15 -0
- package/skills/blueprint-social/SKILL.md +15 -0
- package/skills/brief/SKILL.md +27 -0
- package/skills/brief-audience/SKILL.md +19 -0
- package/skills/brief-motivation/SKILL.md +22 -0
- package/skills/build-fix/SKILL.md +145 -0
- package/skills/cancel/SKILL.md +399 -0
- package/skills/code-review/SKILL.md +290 -0
- package/skills/configure-notifications/SKILL.md +287 -0
- package/skills/crew/SKILL.md +10 -0
- package/skills/deep-interview/SKILL.md +468 -0
- package/skills/deepsearch/SKILL.md +38 -0
- package/skills/doctor/SKILL.md +239 -0
- package/skills/ecomode/SKILL.md +114 -0
- package/skills/forge/SKILL.md +30 -0
- package/skills/forge-community/SKILL.md +16 -0
- package/skills/forge-daily-loop/SKILL.md +15 -0
- package/skills/forge-event-loop/SKILL.md +15 -0
- package/skills/forge-fomo/SKILL.md +16 -0
- package/skills/forge-mastery/SKILL.md +16 -0
- package/skills/forge-progression/SKILL.md +16 -0
- package/skills/forge-reward-loop/SKILL.md +19 -0
- package/skills/forge-status/SKILL.md +17 -0
- package/skills/frontend-ui-ux/SKILL.md +34 -0
- package/skills/git-master/SKILL.md +29 -0
- package/skills/help/SKILL.md +75 -0
- package/skills/hud/SKILL.md +98 -0
- package/skills/note/SKILL.md +62 -0
- package/skills/pipeline/SKILL.md +86 -0
- package/skills/plan/SKILL.md +277 -0
- package/skills/ralph/SKILL.md +269 -0
- package/skills/ralph-init/SKILL.md +46 -0
- package/skills/ralplan/SKILL.md +162 -0
- package/skills/rcs-setup/SKILL.md +135 -0
- package/skills/review/SKILL.md +38 -0
- package/skills/security-review/SKILL.md +300 -0
- package/skills/skill/SKILL.md +835 -0
- package/skills/swarm/SKILL.md +25 -0
- package/skills/tdd/SKILL.md +106 -0
- package/skills/team/SKILL.md +510 -0
- package/skills/trace/SKILL.md +33 -0
- package/skills/ultraqa/SKILL.md +143 -0
- package/skills/ultrawork/SKILL.md +175 -0
- package/skills/visual-ralph/SKILL.md +153 -0
- package/skills/visual-verdict/SKILL.md +76 -0
- package/skills/web-clone/SKILL.md +24 -0
- package/skills/wiki/SKILL.md +57 -0
- package/skills/worker/SKILL.md +106 -0
- package/src/scripts/__tests__/codex-native-hook.test.ts +8498 -0
- package/src/scripts/__tests__/generate-release-body.test.ts +275 -0
- package/src/scripts/__tests__/hook-derived-watcher.test.ts +241 -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 +72 -0
- package/src/scripts/__tests__/smoke-packed-install.test.ts +155 -0
- package/src/scripts/__tests__/test-reply-listener-live.test.ts +101 -0
- package/src/scripts/__tests__/verify-native-agents.test.ts +204 -0
- package/src/scripts/ask-claude.sh +17 -0
- package/src/scripts/ask-gemini.sh +14 -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 +50 -0
- package/src/scripts/cleanup-explore-harness.ts +17 -0
- package/src/scripts/codex-execution-surface.ts +73 -0
- package/src/scripts/codex-native-hook.ts +2531 -0
- package/src/scripts/codex-native-pre-post.ts +945 -0
- package/src/scripts/demo-claude-workers.sh +241 -0
- package/src/scripts/demo-team-e2e.sh +181 -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 +648 -0
- package/src/scripts/notify-fallback-watcher.ts +2011 -0
- package/src/scripts/notify-hook/__tests__/operational-events.test.ts +24 -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 +756 -0
- package/src/scripts/notify-hook/log.ts +30 -0
- package/src/scripts/notify-hook/managed-tmux.ts +586 -0
- package/src/scripts/notify-hook/operational-events.ts +282 -0
- package/src/scripts/notify-hook/orchestration-intent.ts +82 -0
- package/src/scripts/notify-hook/payload-parser.ts +143 -0
- package/src/scripts/notify-hook/process-runner.ts +109 -0
- package/src/scripts/notify-hook/ralph-session-resume.ts +362 -0
- package/src/scripts/notify-hook/state-io.ts +182 -0
- package/src/scripts/notify-hook/team-dispatch.ts +1142 -0
- package/src/scripts/notify-hook/team-leader-nudge.ts +1100 -0
- package/src/scripts/notify-hook/team-tmux-guard.ts +187 -0
- package/src/scripts/notify-hook/team-worker-posttooluse.ts +536 -0
- package/src/scripts/notify-hook/team-worker.ts +700 -0
- package/src/scripts/notify-hook/tmux-injection.ts +617 -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 +778 -0
- package/src/scripts/postinstall-bootstrap.js +23 -0
- package/src/scripts/postinstall.ts +107 -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 +205 -0
- package/src/scripts/run-test-files.ts +87 -0
- package/src/scripts/smoke-packed-install.ts +186 -0
- package/src/scripts/sync-plugin-mirror.ts +412 -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 +245 -0
- package/src/scripts/verify-native-release-assets.ts +68 -0
- package/templates/AGENTS.md +347 -0
- package/templates/catalog-manifest.json +614 -0
- package/templates/model-instructions/explore-lightweight-AGENTS.md +11 -0
- package/templates/model-instructions/sparkshell-lightweight-AGENTS.md +10 -0
- package/templates/psychology/dopamine-loop-map.md +13 -0
- package/templates/psychology/event-fomo-design-sheet.md +11 -0
- package/templates/psychology/player-motivation-profile.md +14 -0
- package/templates/psychology/retention-design-sheet.md +12 -0
- package/templates/psychology/social-mechanic-spec.md +11 -0
- package/templates/roblox/pre-action-plan.md +84 -0
|
@@ -0,0 +1,1770 @@
|
|
|
1
|
+
import { spawnSync, execFile } from 'child_process';
|
|
2
|
+
import { promisify } from 'util';
|
|
3
|
+
import { existsSync, readFileSync } from 'fs';
|
|
4
|
+
import { isAbsolute, join, resolve } from 'path';
|
|
5
|
+
import { CODEX_BYPASS_FLAG, CLAUDE_SKIP_PERMISSIONS_FLAG, MADMAX_FLAG, CONFIG_FLAG, LONG_CONFIG_FLAG, MODEL_FLAG, } from '../cli/constants.js';
|
|
6
|
+
import { getAgent } from '../agents/definitions.js';
|
|
7
|
+
import { buildCapturePaneArgv as sharedBuildCapturePaneArgv, buildVisibleCapturePaneArgv as sharedBuildVisibleCapturePaneArgv, normalizeTmuxCapture as sharedNormalizeTmuxCapture, paneHasActiveTask as sharedPaneHasActiveTask, paneIsBootstrapping as sharedPaneIsBootstrapping, paneShowsCodexViewport as sharedPaneShowsCodexViewport, paneLooksReady as sharedPaneLooksReady, } from '../scripts/tmux-hook-engine.js';
|
|
8
|
+
import { readActiveProviderEnvOverrides } from '../config/models.js';
|
|
9
|
+
import { extractModelProviderOverrideValue } from './model-contract.js';
|
|
10
|
+
import { sleep, sleepSync } from '../utils/sleep.js';
|
|
11
|
+
import { buildPlatformCommandSpec, classifySpawnError, resolveCommandPathForPlatform, spawnPlatformCommandSync, } from '../utils/platform-command.js';
|
|
12
|
+
import { resolveRcsCliEntryPath } from '../utils/paths.js';
|
|
13
|
+
const execFileAsync = promisify(execFile);
|
|
14
|
+
import { HUD_RESIZE_RECONCILE_DELAY_SECONDS, HUD_TMUX_TEAM_HEIGHT_LINES } from '../hud/constants.js';
|
|
15
|
+
const RCS_INSTANCE_OPTION = '@rcs_instance_id';
|
|
16
|
+
const RCS_PANE_INSTANCE_OPTION = '@rcs_pane_instance_id';
|
|
17
|
+
const INJECTION_MARKER = '[RCS_TMUX_INJECT]';
|
|
18
|
+
const MODEL_INSTRUCTIONS_FILE_KEY = 'model_instructions_file';
|
|
19
|
+
const RCS_BYPASS_DEFAULT_SYSTEM_PROMPT_ENV = 'RCS_BYPASS_DEFAULT_SYSTEM_PROMPT';
|
|
20
|
+
const RCS_MODEL_INSTRUCTIONS_FILE_ENV = 'RCS_MODEL_INSTRUCTIONS_FILE';
|
|
21
|
+
const RCS_TEAM_WORKER_CLI_ENV = 'RCS_TEAM_WORKER_CLI';
|
|
22
|
+
const RCS_TEAM_WORKER_CLI_MAP_ENV = 'RCS_TEAM_WORKER_CLI_MAP';
|
|
23
|
+
const RCS_TEAM_WORKER_LAUNCH_MODE_ENV = 'RCS_TEAM_WORKER_LAUNCH_MODE';
|
|
24
|
+
const RCS_TEAM_AUTO_INTERRUPT_RETRY_ENV = 'RCS_TEAM_AUTO_INTERRUPT_RETRY';
|
|
25
|
+
const GEMINI_PROMPT_INTERACTIVE_FLAG = '-i';
|
|
26
|
+
const GEMINI_APPROVAL_MODE_FLAG = '--approval-mode';
|
|
27
|
+
const GEMINI_APPROVAL_MODE_YOLO = 'yolo';
|
|
28
|
+
const RCS_LEADER_NODE_PATH_ENV = 'RCS_LEADER_NODE_PATH';
|
|
29
|
+
const RCS_LEADER_CLI_PATH_ENV = 'RCS_LEADER_CLI_PATH';
|
|
30
|
+
const TMUX_WORKER_AMBIENT_ENV_ALLOWLIST = [
|
|
31
|
+
'HTTPS_PROXY',
|
|
32
|
+
'HTTP_PROXY',
|
|
33
|
+
'NO_PROXY',
|
|
34
|
+
'https_proxy',
|
|
35
|
+
'http_proxy',
|
|
36
|
+
'no_proxy',
|
|
37
|
+
];
|
|
38
|
+
const TMUX_NO_UNDERLINE_STYLE_FLAGS = [
|
|
39
|
+
'nounderscore',
|
|
40
|
+
'nodouble-underscore',
|
|
41
|
+
'nocurly-underscore',
|
|
42
|
+
'nodotted-underscore',
|
|
43
|
+
'nodashed-underscore',
|
|
44
|
+
];
|
|
45
|
+
const TMUX_COPY_MODE_STYLE_OPTIONS = [
|
|
46
|
+
'mode-style',
|
|
47
|
+
'copy-mode-selection-style',
|
|
48
|
+
];
|
|
49
|
+
const TMUX_PANE_STABILITY_POLL_MS = 60;
|
|
50
|
+
const TMUX_PANE_STABILITY_POLLS_REQUIRED = 2;
|
|
51
|
+
const TMUX_PANE_STABILITY_TIMEOUT_MS = 750;
|
|
52
|
+
function runTmux(args) {
|
|
53
|
+
const { result } = spawnPlatformCommandSync('tmux', args, { encoding: 'utf-8' });
|
|
54
|
+
if (result.error) {
|
|
55
|
+
return { ok: false, stderr: result.error.message };
|
|
56
|
+
}
|
|
57
|
+
if (result.status !== 0) {
|
|
58
|
+
return { ok: false, stderr: (result.stderr || '').trim() || `tmux exited ${result.status}` };
|
|
59
|
+
}
|
|
60
|
+
return { ok: true, stdout: (result.stdout || '').trim() };
|
|
61
|
+
}
|
|
62
|
+
function appendNoUnderlineStyleFlags(style) {
|
|
63
|
+
const normalized = style
|
|
64
|
+
.split(/[,\s]+/)
|
|
65
|
+
.map((token) => token.trim())
|
|
66
|
+
.filter((token) => token.length > 0);
|
|
67
|
+
const combined = [...normalized];
|
|
68
|
+
for (const flag of TMUX_NO_UNDERLINE_STYLE_FLAGS) {
|
|
69
|
+
if (!combined.includes(flag))
|
|
70
|
+
combined.push(flag);
|
|
71
|
+
}
|
|
72
|
+
return combined.join(',');
|
|
73
|
+
}
|
|
74
|
+
function sanitizeTmuxStyleOption(sessionTarget, optionName) {
|
|
75
|
+
const shown = runTmux(['show-options', '-gv', '-t', sessionTarget, optionName]);
|
|
76
|
+
if (!shown.ok)
|
|
77
|
+
return false;
|
|
78
|
+
const current = shown.stdout.trim();
|
|
79
|
+
if (current === '')
|
|
80
|
+
return false;
|
|
81
|
+
const sanitized = appendNoUnderlineStyleFlags(current);
|
|
82
|
+
if (sanitized === current)
|
|
83
|
+
return true;
|
|
84
|
+
const result = runTmux(['set-option', '-t', sessionTarget, optionName, sanitized]);
|
|
85
|
+
return result.ok;
|
|
86
|
+
}
|
|
87
|
+
function tagPaneInstance(paneTarget, instanceId) {
|
|
88
|
+
const target = paneTarget.trim();
|
|
89
|
+
const sanitized = instanceId.trim();
|
|
90
|
+
if (!target || !sanitized)
|
|
91
|
+
return;
|
|
92
|
+
const result = runTmux(['set-option', '-p', '-t', target, RCS_PANE_INSTANCE_OPTION, sanitized]);
|
|
93
|
+
if (!result.ok) {
|
|
94
|
+
throw new Error(`failed to tag tmux pane ${target}: ${result.stderr}`);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export function mitigateCopyModeUnderlineArtifacts(sessionTarget) {
|
|
98
|
+
const normalizedTarget = sessionTarget.trim();
|
|
99
|
+
if (normalizedTarget === '')
|
|
100
|
+
return false;
|
|
101
|
+
let applied = false;
|
|
102
|
+
for (const optionName of TMUX_COPY_MODE_STYLE_OPTIONS) {
|
|
103
|
+
if (sanitizeTmuxStyleOption(normalizedTarget, optionName)) {
|
|
104
|
+
applied = true;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return applied;
|
|
108
|
+
}
|
|
109
|
+
export function hasCurrentTmuxClientContext() {
|
|
110
|
+
const tmuxPaneTarget = process.env.TMUX_PANE?.trim();
|
|
111
|
+
const displayArgs = tmuxPaneTarget
|
|
112
|
+
? ['display-message', '-p', '-t', tmuxPaneTarget, '#S:#I #{pane_id}']
|
|
113
|
+
: ['display-message', '-p', '#S:#I #{pane_id}'];
|
|
114
|
+
const context = runTmux(displayArgs);
|
|
115
|
+
if (!context.ok)
|
|
116
|
+
return false;
|
|
117
|
+
const [sessionAndWindow = '', detectedLeaderPaneId = ''] = context.stdout.split(' ');
|
|
118
|
+
const [sessionName, windowIndex] = sessionAndWindow.split(':');
|
|
119
|
+
return Boolean(sessionName && windowIndex && detectedLeaderPaneId.startsWith('%'));
|
|
120
|
+
}
|
|
121
|
+
export function isMsysOrGitBash(env = process.env, platform = process.platform) {
|
|
122
|
+
if (platform !== 'win32')
|
|
123
|
+
return false;
|
|
124
|
+
const msystem = String(env.MSYSTEM ?? '').trim();
|
|
125
|
+
if (msystem !== '')
|
|
126
|
+
return true;
|
|
127
|
+
const ostype = String(env.OSTYPE ?? '').trim();
|
|
128
|
+
if (/(msys|mingw|cygwin)/i.test(ostype))
|
|
129
|
+
return true;
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
function fallbackMsysPathTranslation(value) {
|
|
133
|
+
const drivePathMatch = value.match(/^([A-Za-z]):[\\/](.*)$/);
|
|
134
|
+
if (!drivePathMatch)
|
|
135
|
+
return value;
|
|
136
|
+
const drive = drivePathMatch[1]?.toLowerCase();
|
|
137
|
+
const tail = drivePathMatch[2]?.replace(/\\/g, '/');
|
|
138
|
+
if (!drive || !tail)
|
|
139
|
+
return value;
|
|
140
|
+
return `/${drive}/${tail}`;
|
|
141
|
+
}
|
|
142
|
+
export function translatePathForMsys(value, env = process.env, platform = process.platform, spawnImpl = spawnSync) {
|
|
143
|
+
if (typeof value !== 'string' || value.trim() === '')
|
|
144
|
+
return value;
|
|
145
|
+
if (!isMsysOrGitBash(env, platform))
|
|
146
|
+
return value;
|
|
147
|
+
const result = spawnImpl('cygpath', ['-u', value], { encoding: 'utf-8' });
|
|
148
|
+
if (!result.error && result.status === 0) {
|
|
149
|
+
const translated = (result.stdout || '').trim();
|
|
150
|
+
if (translated !== '')
|
|
151
|
+
return translated;
|
|
152
|
+
}
|
|
153
|
+
return fallbackMsysPathTranslation(value);
|
|
154
|
+
}
|
|
155
|
+
function baseSessionName(target) {
|
|
156
|
+
return target.split(':')[0] || target;
|
|
157
|
+
}
|
|
158
|
+
function listPanes(target) {
|
|
159
|
+
const result = runTmux(['list-panes', '-t', target, '-F', '#{pane_id}\t#{pane_current_command}\t#{pane_start_command}']);
|
|
160
|
+
if (!result.ok)
|
|
161
|
+
return [];
|
|
162
|
+
return result.stdout
|
|
163
|
+
.split('\n')
|
|
164
|
+
.map((line) => line.trim())
|
|
165
|
+
.filter((line) => line.length > 0)
|
|
166
|
+
.map((line) => {
|
|
167
|
+
const [paneId = '', currentCommand = '', startCommand = ''] = line.split('\t');
|
|
168
|
+
return { paneId, currentCommand, startCommand };
|
|
169
|
+
})
|
|
170
|
+
.filter((pane) => pane.paneId.startsWith('%'));
|
|
171
|
+
}
|
|
172
|
+
export function listPaneIds(target) {
|
|
173
|
+
return listPanes(target).map((pane) => pane.paneId);
|
|
174
|
+
}
|
|
175
|
+
function paneExistsInTarget(target, paneId) {
|
|
176
|
+
if (!paneId.startsWith('%'))
|
|
177
|
+
return false;
|
|
178
|
+
return listPaneIds(target).includes(paneId);
|
|
179
|
+
}
|
|
180
|
+
function waitForPaneToRemainPresent(target, paneId, timeoutMs = TMUX_PANE_STABILITY_TIMEOUT_MS) {
|
|
181
|
+
if (!paneId.startsWith('%'))
|
|
182
|
+
return false;
|
|
183
|
+
const stablePollsRequired = Math.max(1, TMUX_PANE_STABILITY_POLLS_REQUIRED);
|
|
184
|
+
const startedAt = Date.now();
|
|
185
|
+
let stablePolls = 0;
|
|
186
|
+
while (Date.now() - startedAt <= timeoutMs) {
|
|
187
|
+
if (paneExistsInTarget(target, paneId)) {
|
|
188
|
+
stablePolls += 1;
|
|
189
|
+
if (stablePolls >= stablePollsRequired)
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
stablePolls = 0;
|
|
194
|
+
}
|
|
195
|
+
const remaining = timeoutMs - (Date.now() - startedAt);
|
|
196
|
+
if (remaining <= 0)
|
|
197
|
+
break;
|
|
198
|
+
sleepFractionalSeconds(Math.max(0, Math.min(TMUX_PANE_STABILITY_POLL_MS, remaining)) / 1000);
|
|
199
|
+
}
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
function isHudWatchPane(pane) {
|
|
203
|
+
const start = pane.startCommand || '';
|
|
204
|
+
return /\brcs\b.*\bhud\b.*--watch/i.test(start);
|
|
205
|
+
}
|
|
206
|
+
export function chooseTeamLeaderPaneId(panes, preferredPaneId) {
|
|
207
|
+
const preferred = panes.find((pane) => pane.paneId === preferredPaneId);
|
|
208
|
+
if (preferred && !isHudWatchPane(preferred))
|
|
209
|
+
return preferred.paneId;
|
|
210
|
+
const nonHud = panes.find((pane) => !isHudWatchPane(pane));
|
|
211
|
+
if (nonHud)
|
|
212
|
+
return nonHud.paneId;
|
|
213
|
+
return preferredPaneId;
|
|
214
|
+
}
|
|
215
|
+
function findHudPaneIds(target, leaderPaneId) {
|
|
216
|
+
const panes = listPanes(target);
|
|
217
|
+
return panes
|
|
218
|
+
.filter((pane) => pane.paneId !== leaderPaneId)
|
|
219
|
+
.filter((pane) => isHudWatchPane(pane))
|
|
220
|
+
.map((pane) => pane.paneId);
|
|
221
|
+
}
|
|
222
|
+
const MAX_FRACTIONAL_SLEEP_MS = 60_000;
|
|
223
|
+
function toFractionalSleepMs(seconds) {
|
|
224
|
+
if (!Number.isFinite(seconds) || seconds <= 0)
|
|
225
|
+
return 0;
|
|
226
|
+
const ms = Math.ceil(seconds * 1000);
|
|
227
|
+
if (!Number.isFinite(ms) || ms <= 0)
|
|
228
|
+
return 0;
|
|
229
|
+
return Math.min(MAX_FRACTIONAL_SLEEP_MS, ms);
|
|
230
|
+
}
|
|
231
|
+
function sleepSeconds(seconds) {
|
|
232
|
+
sleepFractionalSeconds(seconds);
|
|
233
|
+
}
|
|
234
|
+
export function sleepFractionalSeconds(seconds, sleepImpl = sleepSync) {
|
|
235
|
+
const ms = toFractionalSleepMs(seconds);
|
|
236
|
+
if (ms <= 0)
|
|
237
|
+
return;
|
|
238
|
+
sleepImpl(ms);
|
|
239
|
+
}
|
|
240
|
+
// ── Async tmux helpers ──────────────────────────────────────────────────────
|
|
241
|
+
async function runTmuxAsync(args) {
|
|
242
|
+
try {
|
|
243
|
+
const { stdout } = await execFileAsync('tmux', args, { encoding: 'utf-8' });
|
|
244
|
+
return { ok: true, stdout: (stdout || '').trim() };
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
const err = error;
|
|
248
|
+
return { ok: false, stderr: (err.stderr || err.message || '').trim() || 'tmux command failed' };
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
async function sendKeyAsync(target, key) {
|
|
252
|
+
const result = await runTmuxAsync(['send-keys', '-t', target, key]);
|
|
253
|
+
if (!result.ok) {
|
|
254
|
+
throw new Error(`sendKeyAsync: failed to send ${key}: ${result.stderr}`);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
async function capturePaneAsync(target) {
|
|
258
|
+
const result = await runTmuxAsync(sharedBuildCapturePaneArgv(target, 80));
|
|
259
|
+
if (!result.ok)
|
|
260
|
+
return '';
|
|
261
|
+
return result.stdout;
|
|
262
|
+
}
|
|
263
|
+
async function captureVisiblePaneAsync(target) {
|
|
264
|
+
const result = await runTmuxAsync(sharedBuildVisibleCapturePaneArgv(target));
|
|
265
|
+
if (!result.ok)
|
|
266
|
+
return '';
|
|
267
|
+
return result.stdout;
|
|
268
|
+
}
|
|
269
|
+
async function isWorkerAliveAsync(sessionName, workerIndex, workerPaneId) {
|
|
270
|
+
const result = await runTmuxAsync([
|
|
271
|
+
'list-panes',
|
|
272
|
+
'-t', paneTarget(sessionName, workerIndex, workerPaneId),
|
|
273
|
+
'-F',
|
|
274
|
+
'#{pane_dead} #{pane_pid}',
|
|
275
|
+
]);
|
|
276
|
+
if (!result.ok)
|
|
277
|
+
return false;
|
|
278
|
+
const line = result.stdout.split('\n')[0]?.trim();
|
|
279
|
+
if (!line)
|
|
280
|
+
return false;
|
|
281
|
+
const parts = line.split(/\s+/);
|
|
282
|
+
if (parts.length < 2)
|
|
283
|
+
return false;
|
|
284
|
+
const paneDead = parts[0];
|
|
285
|
+
const pid = Number.parseInt(parts[1], 10);
|
|
286
|
+
if (paneDead === '1')
|
|
287
|
+
return false;
|
|
288
|
+
if (!Number.isFinite(pid))
|
|
289
|
+
return false;
|
|
290
|
+
try {
|
|
291
|
+
process.kill(pid, 0);
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
catch {
|
|
295
|
+
return false;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function shellQuoteSingle(value) {
|
|
299
|
+
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
300
|
+
}
|
|
301
|
+
function quotePowerShellArg(value) {
|
|
302
|
+
return `'${value.replace(/'/g, "''")}'`;
|
|
303
|
+
}
|
|
304
|
+
function encodePowerShellCommand(commandText) {
|
|
305
|
+
return Buffer.from(commandText, 'utf16le').toString('base64');
|
|
306
|
+
}
|
|
307
|
+
function resolveNativeWindowsPowerShellPath(env = process.env) {
|
|
308
|
+
const rootCandidates = [
|
|
309
|
+
env.SystemRoot,
|
|
310
|
+
env.SYSTEMROOT,
|
|
311
|
+
env.windir,
|
|
312
|
+
env.WINDIR,
|
|
313
|
+
]
|
|
314
|
+
.map((value) => (typeof value === 'string' ? value.trim() : ''))
|
|
315
|
+
.filter((value, index, values) => value !== '' && values.indexOf(value) === index);
|
|
316
|
+
const systemPowerShellCandidates = rootCandidates.map((root) => `${root.replace(/[\\/]+$/, '')}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`);
|
|
317
|
+
const resolvedFromPath = resolveCommandPathForPlatform('powershell', process.platform, env);
|
|
318
|
+
const existingCandidates = [
|
|
319
|
+
...systemPowerShellCandidates,
|
|
320
|
+
resolvedFromPath,
|
|
321
|
+
].filter((candidate) => Boolean(candidate && existsSync(candidate)));
|
|
322
|
+
return existingCandidates.find((candidate) => !/\s/.test(candidate))
|
|
323
|
+
?? existingCandidates[0]
|
|
324
|
+
?? resolvedFromPath
|
|
325
|
+
?? 'powershell.exe';
|
|
326
|
+
}
|
|
327
|
+
function normalizeTmuxHookToken(value) {
|
|
328
|
+
const normalized = value.replace(/[^A-Za-z0-9_-]+/g, '_').replace(/_+/g, '_').replace(/^_+|_+$/g, '');
|
|
329
|
+
return normalized === '' ? 'unknown' : normalized;
|
|
330
|
+
}
|
|
331
|
+
function normalizeHudPaneToken(hudPaneId) {
|
|
332
|
+
const trimmed = hudPaneId.trim();
|
|
333
|
+
const withoutPrefix = trimmed.startsWith('%') ? trimmed.slice(1) : trimmed;
|
|
334
|
+
return normalizeTmuxHookToken(withoutPrefix);
|
|
335
|
+
}
|
|
336
|
+
export function buildResizeHookTarget(sessionName, windowIndex) {
|
|
337
|
+
return `${sessionName}:${windowIndex}`;
|
|
338
|
+
}
|
|
339
|
+
export function buildResizeHookName(teamName, sessionName, windowIndex, hudPaneId) {
|
|
340
|
+
return [
|
|
341
|
+
'rcs_resize',
|
|
342
|
+
normalizeTmuxHookToken(teamName),
|
|
343
|
+
normalizeTmuxHookToken(sessionName),
|
|
344
|
+
normalizeTmuxHookToken(windowIndex),
|
|
345
|
+
normalizeHudPaneToken(hudPaneId),
|
|
346
|
+
].join('_');
|
|
347
|
+
}
|
|
348
|
+
export function buildHudPaneTarget(hudPaneId) {
|
|
349
|
+
const trimmed = hudPaneId.trim();
|
|
350
|
+
return trimmed.startsWith('%') ? trimmed : `%${trimmed}`;
|
|
351
|
+
}
|
|
352
|
+
function resolveHudHeightLines(heightLines) {
|
|
353
|
+
if (!Number.isFinite(heightLines))
|
|
354
|
+
return HUD_TMUX_TEAM_HEIGHT_LINES;
|
|
355
|
+
const normalized = Math.floor(heightLines);
|
|
356
|
+
return normalized > 0 ? normalized : HUD_TMUX_TEAM_HEIGHT_LINES;
|
|
357
|
+
}
|
|
358
|
+
function buildHudResizeCommand(hudPaneId, heightLines = HUD_TMUX_TEAM_HEIGHT_LINES) {
|
|
359
|
+
return `resize-pane -t ${buildHudPaneTarget(hudPaneId)} -y ${resolveHudHeightLines(heightLines)}`;
|
|
360
|
+
}
|
|
361
|
+
function buildHudResizeArgs(hudPaneId, heightLines = HUD_TMUX_TEAM_HEIGHT_LINES) {
|
|
362
|
+
return ['resize-pane', '-t', buildHudPaneTarget(hudPaneId), '-y', String(resolveHudHeightLines(heightLines))];
|
|
363
|
+
}
|
|
364
|
+
function buildNestedTmuxShellCommand(command) {
|
|
365
|
+
if (process.platform !== 'win32') {
|
|
366
|
+
return `tmux ${command}`;
|
|
367
|
+
}
|
|
368
|
+
const resolvedTmuxPath = resolveAbsoluteBinaryPath('tmux');
|
|
369
|
+
if (resolvedTmuxPath === 'tmux') {
|
|
370
|
+
return `tmux ${command}`;
|
|
371
|
+
}
|
|
372
|
+
return `${shellQuoteSingle(resolvedTmuxPath.replace(/\\/g, '/'))} ${command}`;
|
|
373
|
+
}
|
|
374
|
+
function buildBestEffortShellCommand(command) {
|
|
375
|
+
return `${command} >/dev/null 2>&1 || true`;
|
|
376
|
+
}
|
|
377
|
+
/** Upper bound for tmux hook indices (signed 32-bit max). */
|
|
378
|
+
const TMUX_HOOK_INDEX_MAX = 2147483647;
|
|
379
|
+
function buildResizeHookSlot(hookName) {
|
|
380
|
+
let hash = 0;
|
|
381
|
+
for (let i = 0; i < hookName.length; i++) {
|
|
382
|
+
hash = (hash * 31 + hookName.charCodeAt(i)) | 0;
|
|
383
|
+
}
|
|
384
|
+
return `client-resized[${Math.abs(hash) % TMUX_HOOK_INDEX_MAX}]`;
|
|
385
|
+
}
|
|
386
|
+
function buildClientAttachedHookSlot(hookName) {
|
|
387
|
+
let hash = 0;
|
|
388
|
+
for (let i = 0; i < hookName.length; i++) {
|
|
389
|
+
hash = (hash * 31 + hookName.charCodeAt(i)) | 0;
|
|
390
|
+
}
|
|
391
|
+
return `client-attached[${Math.abs(hash) % TMUX_HOOK_INDEX_MAX}]`;
|
|
392
|
+
}
|
|
393
|
+
export function buildRegisterResizeHookArgs(hookTarget, hookName, hudPaneId, heightLines = HUD_TMUX_TEAM_HEIGHT_LINES) {
|
|
394
|
+
const resizeCommand = shellQuoteSingle(buildBestEffortShellCommand(buildNestedTmuxShellCommand(buildHudResizeCommand(hudPaneId, heightLines))));
|
|
395
|
+
return ['set-hook', '-t', hookTarget, buildResizeHookSlot(hookName), `run-shell -b ${resizeCommand}`];
|
|
396
|
+
}
|
|
397
|
+
export function buildUnregisterResizeHookArgs(hookTarget, hookName) {
|
|
398
|
+
return ['set-hook', '-u', '-t', hookTarget, buildResizeHookSlot(hookName)];
|
|
399
|
+
}
|
|
400
|
+
export function buildClientAttachedReconcileHookName(teamName, sessionName, windowIndex, hudPaneId) {
|
|
401
|
+
return [
|
|
402
|
+
'rcs_attached',
|
|
403
|
+
normalizeTmuxHookToken(teamName),
|
|
404
|
+
normalizeTmuxHookToken(sessionName),
|
|
405
|
+
normalizeTmuxHookToken(windowIndex),
|
|
406
|
+
normalizeHudPaneToken(hudPaneId),
|
|
407
|
+
].join('_');
|
|
408
|
+
}
|
|
409
|
+
export function buildRegisterClientAttachedReconcileArgs(hookTarget, hookName, hudPaneId, heightLines = HUD_TMUX_TEAM_HEIGHT_LINES) {
|
|
410
|
+
const hookSlot = buildClientAttachedHookSlot(hookName);
|
|
411
|
+
const oneShotCommand = shellQuoteSingle(`${buildBestEffortShellCommand(buildNestedTmuxShellCommand(buildHudResizeCommand(hudPaneId, heightLines)))}; ${buildNestedTmuxShellCommand(`set-hook -u -t ${hookTarget} ${hookSlot}`)}`);
|
|
412
|
+
return ['set-hook', '-t', hookTarget, hookSlot, `run-shell -b ${oneShotCommand}`];
|
|
413
|
+
}
|
|
414
|
+
export function buildUnregisterClientAttachedReconcileArgs(hookTarget, hookName) {
|
|
415
|
+
return ['set-hook', '-u', '-t', hookTarget, buildClientAttachedHookSlot(hookName)];
|
|
416
|
+
}
|
|
417
|
+
export function unregisterResizeHook(hookTarget, hookName) {
|
|
418
|
+
const result = runTmux(buildUnregisterResizeHookArgs(hookTarget, hookName));
|
|
419
|
+
return result.ok;
|
|
420
|
+
}
|
|
421
|
+
export function buildScheduleDelayedHudResizeArgs(hudPaneId, delaySeconds = HUD_RESIZE_RECONCILE_DELAY_SECONDS, heightLines = HUD_TMUX_TEAM_HEIGHT_LINES) {
|
|
422
|
+
const delay = Number.isFinite(delaySeconds) && delaySeconds > 0 ? delaySeconds : HUD_RESIZE_RECONCILE_DELAY_SECONDS;
|
|
423
|
+
return ['run-shell', '-b', `sleep ${delay}; ${buildBestEffortShellCommand(buildNestedTmuxShellCommand(buildHudResizeCommand(hudPaneId, heightLines)))}`];
|
|
424
|
+
}
|
|
425
|
+
export function buildReconcileHudResizeArgs(hudPaneId, heightLines = HUD_TMUX_TEAM_HEIGHT_LINES) {
|
|
426
|
+
return ['run-shell', buildBestEffortShellCommand(buildNestedTmuxShellCommand(buildHudResizeCommand(hudPaneId, heightLines)))];
|
|
427
|
+
}
|
|
428
|
+
const ZSH_CANDIDATE_PATHS = ['/bin/zsh', '/usr/bin/zsh', '/usr/local/bin/zsh', '/opt/local/bin/zsh', '/opt/homebrew/bin/zsh'];
|
|
429
|
+
const BASH_CANDIDATE_PATHS = ['/bin/bash', '/usr/bin/bash'];
|
|
430
|
+
function buildShellLaunchSpec(shell, rcFile) {
|
|
431
|
+
return { shell, rcFile };
|
|
432
|
+
}
|
|
433
|
+
function resolveSupportedShellAffinity(shellPath) {
|
|
434
|
+
if (!shellPath || shellPath.trim() === '' || !existsSync(shellPath))
|
|
435
|
+
return null;
|
|
436
|
+
if (/\/zsh$/i.test(shellPath))
|
|
437
|
+
return buildShellLaunchSpec(shellPath, '~/.zshrc');
|
|
438
|
+
if (/\/bash$/i.test(shellPath))
|
|
439
|
+
return buildShellLaunchSpec(shellPath, '~/.bashrc');
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
function resolveShellFromCandidates(paths, rcFile) {
|
|
443
|
+
for (const shellPath of paths) {
|
|
444
|
+
if (existsSync(shellPath))
|
|
445
|
+
return buildShellLaunchSpec(shellPath, rcFile);
|
|
446
|
+
}
|
|
447
|
+
return null;
|
|
448
|
+
}
|
|
449
|
+
function buildWorkerLaunchSpec(shellPath) {
|
|
450
|
+
if (isMsysOrGitBash()) {
|
|
451
|
+
return buildShellLaunchSpec('/bin/sh', null);
|
|
452
|
+
}
|
|
453
|
+
const affinitySpec = resolveSupportedShellAffinity(shellPath);
|
|
454
|
+
if (affinitySpec)
|
|
455
|
+
return affinitySpec;
|
|
456
|
+
const zshSpec = resolveShellFromCandidates(ZSH_CANDIDATE_PATHS, '~/.zshrc');
|
|
457
|
+
if (zshSpec)
|
|
458
|
+
return zshSpec;
|
|
459
|
+
const bashSpec = resolveShellFromCandidates(BASH_CANDIDATE_PATHS, '~/.bashrc');
|
|
460
|
+
if (bashSpec)
|
|
461
|
+
return bashSpec;
|
|
462
|
+
return buildShellLaunchSpec('/bin/sh', null);
|
|
463
|
+
}
|
|
464
|
+
function escapeTomlString(value) {
|
|
465
|
+
return value.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
466
|
+
}
|
|
467
|
+
function isModelInstructionsOverride(value) {
|
|
468
|
+
return new RegExp(`^${MODEL_INSTRUCTIONS_FILE_KEY}\\s*=`).test(value.trim());
|
|
469
|
+
}
|
|
470
|
+
function hasModelInstructionsOverride(args) {
|
|
471
|
+
for (let i = 0; i < args.length; i++) {
|
|
472
|
+
const arg = args[i];
|
|
473
|
+
if (arg === CONFIG_FLAG || arg === LONG_CONFIG_FLAG) {
|
|
474
|
+
const maybeValue = args[i + 1];
|
|
475
|
+
if (typeof maybeValue === 'string' && isModelInstructionsOverride(maybeValue)) {
|
|
476
|
+
return true;
|
|
477
|
+
}
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
480
|
+
if (arg.startsWith(`${LONG_CONFIG_FLAG}=`)) {
|
|
481
|
+
const inlineValue = arg.slice(`${LONG_CONFIG_FLAG}=`.length);
|
|
482
|
+
if (isModelInstructionsOverride(inlineValue))
|
|
483
|
+
return true;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
function normalizeTeamWorkerCliMode(raw, sourceEnv = RCS_TEAM_WORKER_CLI_ENV) {
|
|
489
|
+
const normalized = String(raw ?? 'auto').trim().toLowerCase();
|
|
490
|
+
if (normalized === '' || normalized === 'auto')
|
|
491
|
+
return 'auto';
|
|
492
|
+
if (normalized === 'codex' || normalized === 'claude' || normalized === 'gemini')
|
|
493
|
+
return normalized;
|
|
494
|
+
throw new Error(`Invalid ${sourceEnv} value "${raw}". Expected: auto, codex, claude, gemini`);
|
|
495
|
+
}
|
|
496
|
+
export function resolveTeamWorkerLaunchMode(env = process.env) {
|
|
497
|
+
const raw = String(env[RCS_TEAM_WORKER_LAUNCH_MODE_ENV] ?? 'interactive').trim().toLowerCase();
|
|
498
|
+
if (raw === '' || raw === 'interactive')
|
|
499
|
+
return 'interactive';
|
|
500
|
+
if (raw === 'prompt')
|
|
501
|
+
return 'prompt';
|
|
502
|
+
throw new Error(`Invalid ${RCS_TEAM_WORKER_LAUNCH_MODE_ENV} value "${env[RCS_TEAM_WORKER_LAUNCH_MODE_ENV]}". Expected: interactive, prompt`);
|
|
503
|
+
}
|
|
504
|
+
function extractModelOverride(args) {
|
|
505
|
+
let model = null;
|
|
506
|
+
for (let i = 0; i < args.length; i++) {
|
|
507
|
+
const arg = args[i];
|
|
508
|
+
if (arg === MODEL_FLAG) {
|
|
509
|
+
const maybeValue = args[i + 1];
|
|
510
|
+
if (typeof maybeValue === 'string' && maybeValue.trim() !== '' && !maybeValue.startsWith('-')) {
|
|
511
|
+
model = maybeValue.trim();
|
|
512
|
+
i += 1;
|
|
513
|
+
}
|
|
514
|
+
continue;
|
|
515
|
+
}
|
|
516
|
+
if (arg.startsWith(`${MODEL_FLAG}=`)) {
|
|
517
|
+
const inline = arg.slice(`${MODEL_FLAG}=`.length).trim();
|
|
518
|
+
if (inline !== '')
|
|
519
|
+
model = inline;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return model;
|
|
523
|
+
}
|
|
524
|
+
export function resolveTeamWorkerCli(launchArgs = [], env = process.env) {
|
|
525
|
+
const mode = normalizeTeamWorkerCliMode(env[RCS_TEAM_WORKER_CLI_ENV]);
|
|
526
|
+
if (mode !== 'auto')
|
|
527
|
+
return mode;
|
|
528
|
+
return resolveTeamWorkerCliFromLaunchArgs(launchArgs);
|
|
529
|
+
}
|
|
530
|
+
function resolveTeamWorkerCliFromLaunchArgs(launchArgs = []) {
|
|
531
|
+
const model = extractModelOverride(launchArgs);
|
|
532
|
+
if (model && /claude/i.test(model))
|
|
533
|
+
return 'claude';
|
|
534
|
+
if (model && /gemini/i.test(model))
|
|
535
|
+
return 'gemini';
|
|
536
|
+
return 'codex';
|
|
537
|
+
}
|
|
538
|
+
export function resolveTeamWorkerCliPlan(workerCount, launchArgs = [], env = process.env) {
|
|
539
|
+
if (!Number.isInteger(workerCount) || workerCount < 1) {
|
|
540
|
+
throw new Error(`workerCount must be >= 1 (got ${workerCount})`);
|
|
541
|
+
}
|
|
542
|
+
const rawMap = String(env[RCS_TEAM_WORKER_CLI_MAP_ENV] ?? '').trim();
|
|
543
|
+
const fallback = () => resolveTeamWorkerCli(launchArgs, env);
|
|
544
|
+
const fallbackAutoFromArgs = () => resolveTeamWorkerCliFromLaunchArgs(launchArgs);
|
|
545
|
+
if (rawMap === '') {
|
|
546
|
+
const cli = fallback();
|
|
547
|
+
return Array.from({ length: workerCount }, () => cli);
|
|
548
|
+
}
|
|
549
|
+
const entries = rawMap
|
|
550
|
+
.split(',')
|
|
551
|
+
.map((part) => part.trim());
|
|
552
|
+
if (entries.length === 0 || entries.every((part) => part.length === 0)) {
|
|
553
|
+
throw new Error(`Invalid ${RCS_TEAM_WORKER_CLI_MAP_ENV} value "${env[RCS_TEAM_WORKER_CLI_MAP_ENV]}". `
|
|
554
|
+
+ `Expected comma-separated values: auto|codex|claude|gemini.`);
|
|
555
|
+
}
|
|
556
|
+
if (entries.some((part) => part.length === 0)) {
|
|
557
|
+
throw new Error(`Invalid ${RCS_TEAM_WORKER_CLI_MAP_ENV} value "${env[RCS_TEAM_WORKER_CLI_MAP_ENV]}". `
|
|
558
|
+
+ `Empty entries are not allowed.`);
|
|
559
|
+
}
|
|
560
|
+
if (entries.length !== 1 && entries.length !== workerCount) {
|
|
561
|
+
throw new Error(`Invalid ${RCS_TEAM_WORKER_CLI_MAP_ENV} length ${entries.length}; `
|
|
562
|
+
+ `expected 1 or ${workerCount} comma-separated values.`);
|
|
563
|
+
}
|
|
564
|
+
const expanded = entries.length === 1 ? Array.from({ length: workerCount }, () => entries[0]) : entries;
|
|
565
|
+
return expanded.map((entry) => {
|
|
566
|
+
const mode = normalizeTeamWorkerCliMode(entry, RCS_TEAM_WORKER_CLI_MAP_ENV);
|
|
567
|
+
return mode === 'auto' ? fallbackAutoFromArgs() : mode;
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
function shouldGrantExecutionBypassForRole(workerRole) {
|
|
571
|
+
const normalizedRole = workerRole?.trim().toLowerCase();
|
|
572
|
+
if (!normalizedRole)
|
|
573
|
+
return true;
|
|
574
|
+
const agent = getAgent(normalizedRole);
|
|
575
|
+
if (!agent)
|
|
576
|
+
return true;
|
|
577
|
+
return agent.tools === 'execution';
|
|
578
|
+
}
|
|
579
|
+
export function translateWorkerLaunchArgsForCli(workerCli, args, initialPrompt, workerRole) {
|
|
580
|
+
if (workerCli === 'codex')
|
|
581
|
+
return [...args];
|
|
582
|
+
if (workerCli === 'gemini') {
|
|
583
|
+
const model = extractModelOverride(args);
|
|
584
|
+
const geminiModel = model && /gemini/i.test(model) ? model : null;
|
|
585
|
+
const translatedArgs = shouldGrantExecutionBypassForRole(workerRole)
|
|
586
|
+
? [GEMINI_APPROVAL_MODE_FLAG, GEMINI_APPROVAL_MODE_YOLO]
|
|
587
|
+
: [];
|
|
588
|
+
const trimmedPrompt = initialPrompt?.trim();
|
|
589
|
+
if (trimmedPrompt)
|
|
590
|
+
translatedArgs.push(GEMINI_PROMPT_INTERACTIVE_FLAG, trimmedPrompt);
|
|
591
|
+
if (geminiModel)
|
|
592
|
+
translatedArgs.push(MODEL_FLAG, geminiModel);
|
|
593
|
+
return translatedArgs;
|
|
594
|
+
}
|
|
595
|
+
// Claude workers must launch with exactly one permissions bypass flag.
|
|
596
|
+
// All other launch args are dropped to avoid Codex-only flags and model/config overrides.
|
|
597
|
+
void args;
|
|
598
|
+
return shouldGrantExecutionBypassForRole(workerRole) ? [CLAUDE_SKIP_PERMISSIONS_FLAG] : [];
|
|
599
|
+
}
|
|
600
|
+
function commandExists(binary) {
|
|
601
|
+
const { result } = spawnPlatformCommandSync(binary, ['--version'], { encoding: 'utf-8' });
|
|
602
|
+
if (result.error) {
|
|
603
|
+
return classifySpawnError(result.error) !== 'missing';
|
|
604
|
+
}
|
|
605
|
+
return true;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Resolve the absolute path of a binary from the leader's current environment.
|
|
609
|
+
* Returns the absolute path or the bare command name as fallback.
|
|
610
|
+
*/
|
|
611
|
+
function resolveAbsoluteBinaryPath(binary) {
|
|
612
|
+
return resolveCommandPathForPlatform(binary) || binary;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Resolve the leader's node binary path.
|
|
616
|
+
* Caches results for the process lifetime.
|
|
617
|
+
*/
|
|
618
|
+
let _leaderPaths = null;
|
|
619
|
+
function resolveLeaderNodePath() {
|
|
620
|
+
const envOverride = process.env[RCS_LEADER_NODE_PATH_ENV];
|
|
621
|
+
if (typeof envOverride === 'string' && envOverride.trim() !== '') {
|
|
622
|
+
return envOverride.trim();
|
|
623
|
+
}
|
|
624
|
+
if (!_leaderPaths) {
|
|
625
|
+
_leaderPaths = { node: resolveAbsoluteBinaryPath('node') };
|
|
626
|
+
}
|
|
627
|
+
return _leaderPaths.node;
|
|
628
|
+
}
|
|
629
|
+
export function assertTeamWorkerCliBinaryAvailable(workerCli, existsImpl = commandExists) {
|
|
630
|
+
if (existsImpl(workerCli))
|
|
631
|
+
return;
|
|
632
|
+
throw new Error(`Selected team worker CLI "${workerCli}" is not available on PATH. `
|
|
633
|
+
+ `Install "${workerCli}" or set ${RCS_TEAM_WORKER_CLI_ENV}=codex|claude|gemini.`);
|
|
634
|
+
}
|
|
635
|
+
function shouldBypassDefaultSystemPrompt(env) {
|
|
636
|
+
return env[RCS_BYPASS_DEFAULT_SYSTEM_PROMPT_ENV] !== '0';
|
|
637
|
+
}
|
|
638
|
+
function buildModelInstructionsOverride(cwd, env) {
|
|
639
|
+
const filePath = translatePathForMsys(env[RCS_MODEL_INSTRUCTIONS_FILE_ENV] || join(cwd, 'AGENTS.md'));
|
|
640
|
+
return `${MODEL_INSTRUCTIONS_FILE_KEY}="${escapeTomlString(filePath)}"`;
|
|
641
|
+
}
|
|
642
|
+
function readTmuxWorkerAmbientEnv(env = process.env) {
|
|
643
|
+
const inherited = {};
|
|
644
|
+
for (const key of TMUX_WORKER_AMBIENT_ENV_ALLOWLIST) {
|
|
645
|
+
const value = env[key];
|
|
646
|
+
if (typeof value !== 'string' || value.trim() === '')
|
|
647
|
+
continue;
|
|
648
|
+
inherited[key] = value;
|
|
649
|
+
}
|
|
650
|
+
return inherited;
|
|
651
|
+
}
|
|
652
|
+
function resolveWorkerLaunchArgs(extraArgs = [], cwd = process.cwd(), env = process.env) {
|
|
653
|
+
const merged = [...extraArgs];
|
|
654
|
+
const wantsBypass = process.argv.includes(CODEX_BYPASS_FLAG) || process.argv.includes(MADMAX_FLAG);
|
|
655
|
+
if (wantsBypass && !merged.includes(CODEX_BYPASS_FLAG)) {
|
|
656
|
+
merged.push(CODEX_BYPASS_FLAG);
|
|
657
|
+
}
|
|
658
|
+
if (shouldBypassDefaultSystemPrompt(env) && !hasModelInstructionsOverride(merged)) {
|
|
659
|
+
merged.push(CONFIG_FLAG, buildModelInstructionsOverride(cwd, env));
|
|
660
|
+
}
|
|
661
|
+
return merged;
|
|
662
|
+
}
|
|
663
|
+
export function buildWorkerStartupCommand(teamName, workerIndex, launchArgs = [], cwd = process.cwd(), extraEnv = {}, workerCliOverride, initialPrompt, workerRole) {
|
|
664
|
+
const processSpec = buildWorkerProcessLaunchSpec(teamName, workerIndex, launchArgs, cwd, extraEnv, workerCliOverride, initialPrompt, workerRole);
|
|
665
|
+
const startupEnv = {
|
|
666
|
+
...readTmuxWorkerAmbientEnv(process.env),
|
|
667
|
+
...processSpec.env,
|
|
668
|
+
};
|
|
669
|
+
const resolvedLeaderNodePath = processSpec.env[RCS_LEADER_NODE_PATH_ENV]?.trim() || resolveLeaderNodePath();
|
|
670
|
+
const leaderNodeDir = /[\\/]/.test(resolvedLeaderNodePath)
|
|
671
|
+
? resolvedLeaderNodePath.replace(/[\\/][^\\/]+$/, '')
|
|
672
|
+
: '';
|
|
673
|
+
if (isNativeWindows()) {
|
|
674
|
+
const powershellPath = resolveNativeWindowsPowerShellPath();
|
|
675
|
+
const pathBootstrap = leaderNodeDir
|
|
676
|
+
? `$env:PATH = ${quotePowerShellArg(`${leaderNodeDir};`)} + $env:PATH`
|
|
677
|
+
: '';
|
|
678
|
+
const envAssignments = Object.entries(startupEnv)
|
|
679
|
+
.map(([key, value]) => `$env:${key} = ${quotePowerShellArg(value)}`)
|
|
680
|
+
.join('; ');
|
|
681
|
+
const invocation = ['&', quotePowerShellArg(processSpec.command), ...processSpec.args.map(quotePowerShellArg)].join(' ');
|
|
682
|
+
const encodedCommand = encodePowerShellCommand([
|
|
683
|
+
"$ErrorActionPreference = 'Stop'",
|
|
684
|
+
pathBootstrap,
|
|
685
|
+
envAssignments,
|
|
686
|
+
invocation,
|
|
687
|
+
].filter(Boolean).join('; '));
|
|
688
|
+
return `${powershellPath} -NoLogo -NoProfile -ExecutionPolicy Bypass -EncodedCommand ${encodedCommand}`;
|
|
689
|
+
}
|
|
690
|
+
const launchSpec = buildWorkerLaunchSpec(process.env.SHELL);
|
|
691
|
+
const pathPrefix = leaderNodeDir ? `export PATH=${shellQuoteSingle(leaderNodeDir)}:$PATH; ` : '';
|
|
692
|
+
const quotedArgs = processSpec.args.map(shellQuoteSingle).join(' ');
|
|
693
|
+
const quotedCommand = shellQuoteSingle(processSpec.command);
|
|
694
|
+
const cliInvocation = quotedArgs.length > 0 ? `exec ${quotedCommand} ${quotedArgs}` : `exec ${quotedCommand}`;
|
|
695
|
+
const rcPrefix = launchSpec.rcFile ? `if [ -f ${launchSpec.rcFile} ]; then source ${launchSpec.rcFile}; fi; ` : '';
|
|
696
|
+
const inner = `${rcPrefix}${pathPrefix}${cliInvocation}`;
|
|
697
|
+
const envParts = Object.entries(startupEnv).map(([key, value]) => `${key}=${value}`);
|
|
698
|
+
return `env ${envParts.map(shellQuoteSingle).join(' ')} ${shellQuoteSingle(launchSpec.shell)} -c ${shellQuoteSingle(inner)}`;
|
|
699
|
+
}
|
|
700
|
+
export function buildWorkerProcessLaunchSpec(teamName, workerIndex, launchArgs = [], cwd = process.cwd(), extraEnv = {}, workerCliOverride, initialPrompt, workerRole) {
|
|
701
|
+
const effectiveEnv = { ...process.env, ...extraEnv };
|
|
702
|
+
const fullLaunchArgs = resolveWorkerLaunchArgs(launchArgs, cwd, effectiveEnv);
|
|
703
|
+
const workerCli = workerCliOverride ?? resolveTeamWorkerCli(fullLaunchArgs, effectiveEnv);
|
|
704
|
+
const cliLaunchArgs = translateWorkerLaunchArgsForCli(workerCli, fullLaunchArgs, initialPrompt, workerRole);
|
|
705
|
+
const effectiveCliLaunchArgs = workerCli === 'codex'
|
|
706
|
+
&& shouldGrantExecutionBypassForRole(workerRole)
|
|
707
|
+
&& !cliLaunchArgs.includes(CODEX_BYPASS_FLAG)
|
|
708
|
+
? [...cliLaunchArgs, CODEX_BYPASS_FLAG]
|
|
709
|
+
: cliLaunchArgs;
|
|
710
|
+
const workerCodexHomeOverride = typeof effectiveEnv.CODEX_HOME === 'string'
|
|
711
|
+
? effectiveEnv.CODEX_HOME.trim()
|
|
712
|
+
: undefined;
|
|
713
|
+
const providerLookupCodexHome = workerCodexHomeOverride
|
|
714
|
+
? (isAbsolute(workerCodexHomeOverride) ? workerCodexHomeOverride : resolve(cwd, workerCodexHomeOverride))
|
|
715
|
+
: undefined;
|
|
716
|
+
const resolvedCliPath = resolveAbsoluteBinaryPath(workerCli);
|
|
717
|
+
const platformSpec = isNativeWindows()
|
|
718
|
+
? buildPlatformCommandSpec(workerCli, effectiveCliLaunchArgs, process.platform, effectiveEnv)
|
|
719
|
+
: { command: resolvedCliPath, args: effectiveCliLaunchArgs };
|
|
720
|
+
const resolvedLauncherPath = platformSpec.resolvedPath || resolvedCliPath;
|
|
721
|
+
const modelProviderOverride = workerCli === 'codex'
|
|
722
|
+
? extractModelProviderOverrideValue(effectiveCliLaunchArgs)
|
|
723
|
+
: undefined;
|
|
724
|
+
const codexProviderEnv = workerCli === 'codex'
|
|
725
|
+
? readActiveProviderEnvOverrides(effectiveEnv, providerLookupCodexHome, modelProviderOverride)
|
|
726
|
+
: {};
|
|
727
|
+
const internalWorkerIdentity = `${teamName}/worker-${workerIndex}`;
|
|
728
|
+
const displayTeamName = typeof extraEnv.RCS_TEAM_DISPLAY_NAME === 'string'
|
|
729
|
+
? extraEnv.RCS_TEAM_DISPLAY_NAME.trim()
|
|
730
|
+
: '';
|
|
731
|
+
const publicWorkerIdentity = displayTeamName
|
|
732
|
+
? `${displayTeamName}/worker-${workerIndex}`
|
|
733
|
+
: internalWorkerIdentity;
|
|
734
|
+
const workerEnv = {
|
|
735
|
+
RCS_TEAM_WORKER: publicWorkerIdentity,
|
|
736
|
+
RCS_TEAM_INTERNAL_WORKER: internalWorkerIdentity,
|
|
737
|
+
[RCS_LEADER_NODE_PATH_ENV]: resolveLeaderNodePath(),
|
|
738
|
+
[RCS_LEADER_CLI_PATH_ENV]: resolvedLauncherPath,
|
|
739
|
+
...(workerCli === 'codex' && workerCodexHomeOverride
|
|
740
|
+
? { CODEX_HOME: workerCodexHomeOverride }
|
|
741
|
+
: {}),
|
|
742
|
+
...codexProviderEnv,
|
|
743
|
+
};
|
|
744
|
+
for (const [key, value] of Object.entries(extraEnv)) {
|
|
745
|
+
if (typeof value !== 'string' || value.trim() === '')
|
|
746
|
+
continue;
|
|
747
|
+
workerEnv[key] = value;
|
|
748
|
+
}
|
|
749
|
+
return {
|
|
750
|
+
workerCli,
|
|
751
|
+
command: platformSpec.command,
|
|
752
|
+
args: platformSpec.args,
|
|
753
|
+
env: workerEnv,
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
// Sanitize team name: lowercase, alphanumeric + hyphens, max 30 chars
|
|
757
|
+
export function sanitizeTeamName(name) {
|
|
758
|
+
const lowered = name.toLowerCase();
|
|
759
|
+
const replaced = lowered
|
|
760
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
761
|
+
.replace(/-+/g, '-')
|
|
762
|
+
.replace(/^-/, '')
|
|
763
|
+
.replace(/-$/, '');
|
|
764
|
+
const truncated = replaced.slice(0, 30).replace(/-$/, '');
|
|
765
|
+
if (truncated.trim() === '') {
|
|
766
|
+
throw new Error('sanitizeTeamName: empty after sanitization');
|
|
767
|
+
}
|
|
768
|
+
return truncated;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Detect whether the process is running inside a WSL2 environment.
|
|
772
|
+
* WSL2 always sets WSL_DISTRO_NAME; WSL_INTEROP is also present.
|
|
773
|
+
* Fallback: check /proc/version for the Microsoft kernel string.
|
|
774
|
+
*/
|
|
775
|
+
export function isWsl2() {
|
|
776
|
+
if (process.env.WSL_DISTRO_NAME || process.env.WSL_INTEROP) {
|
|
777
|
+
return true;
|
|
778
|
+
}
|
|
779
|
+
try {
|
|
780
|
+
const version = readFileSync('/proc/version', 'utf-8');
|
|
781
|
+
return /microsoft/i.test(version);
|
|
782
|
+
}
|
|
783
|
+
catch {
|
|
784
|
+
return false;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Detect whether the process is running on native Windows (not WSL2).
|
|
789
|
+
* RCS requires tmux, which is unavailable on native Windows.
|
|
790
|
+
*/
|
|
791
|
+
export function isNativeWindows() {
|
|
792
|
+
return process.platform === 'win32' && !isWsl2() && !isMsysOrGitBash();
|
|
793
|
+
}
|
|
794
|
+
// Check if tmux is available
|
|
795
|
+
export function isTmuxAvailable() {
|
|
796
|
+
const { result } = spawnPlatformCommandSync('tmux', ['-V'], { encoding: 'utf-8' });
|
|
797
|
+
if (result.error)
|
|
798
|
+
return false;
|
|
799
|
+
return result.status === 0;
|
|
800
|
+
}
|
|
801
|
+
// Create tmux session with N worker windows
|
|
802
|
+
// Split the current tmux leader window into worker panes.
|
|
803
|
+
// Returns TeamSession or throws if tmux not available
|
|
804
|
+
export function createTeamSession(teamName, workerCount, cwd, workerLaunchArgs = [], workerStartups = []) {
|
|
805
|
+
if (!isTmuxAvailable()) {
|
|
806
|
+
throw new Error('tmux is not available');
|
|
807
|
+
}
|
|
808
|
+
if (!Number.isInteger(workerCount) || workerCount < 1) {
|
|
809
|
+
throw new Error(`workerCount must be >= 1 (got ${workerCount})`);
|
|
810
|
+
}
|
|
811
|
+
if (!hasCurrentTmuxClientContext()) {
|
|
812
|
+
throw new Error('team mode requires running inside tmux leader pane');
|
|
813
|
+
}
|
|
814
|
+
const normalizedWorkerLaunchArgs = resolveWorkerLaunchArgs(workerLaunchArgs, cwd);
|
|
815
|
+
const defaultWorkerCliPlan = resolveTeamWorkerCliPlan(workerCount, normalizedWorkerLaunchArgs, process.env);
|
|
816
|
+
const workerCliPlan = workerStartups.length > 0
|
|
817
|
+
? workerStartups.map((startup, index) => startup.workerCli ?? defaultWorkerCliPlan[index])
|
|
818
|
+
: defaultWorkerCliPlan;
|
|
819
|
+
for (const workerCli of new Set(workerCliPlan)) {
|
|
820
|
+
assertTeamWorkerCliBinaryAvailable(workerCli);
|
|
821
|
+
}
|
|
822
|
+
const safeTeamName = sanitizeTeamName(teamName);
|
|
823
|
+
let registeredResizeHook = null;
|
|
824
|
+
let registeredClientAttachedHook = null;
|
|
825
|
+
const rollbackPaneIds = [];
|
|
826
|
+
try {
|
|
827
|
+
const tmuxPaneTarget = process.env.TMUX_PANE;
|
|
828
|
+
const displayArgs = tmuxPaneTarget
|
|
829
|
+
? ['display-message', '-p', '-t', tmuxPaneTarget, '#S:#I #{pane_id}']
|
|
830
|
+
: ['display-message', '-p', '#S:#I #{pane_id}'];
|
|
831
|
+
const context = runTmux(displayArgs);
|
|
832
|
+
if (!context.ok) {
|
|
833
|
+
const paneHint = tmuxPaneTarget ? ` (TMUX_PANE=${tmuxPaneTarget})` : '';
|
|
834
|
+
throw new Error(`failed to detect current tmux target${paneHint}: ${context.stderr}`);
|
|
835
|
+
}
|
|
836
|
+
const [sessionAndWindow = '', detectedLeaderPaneId = ''] = context.stdout.split(' ');
|
|
837
|
+
const [sessionName, windowIndex] = (sessionAndWindow || '').split(':');
|
|
838
|
+
if (!sessionName || !windowIndex || !detectedLeaderPaneId || !detectedLeaderPaneId.startsWith('%')) {
|
|
839
|
+
throw new Error(`failed to parse current tmux target: ${context.stdout}`);
|
|
840
|
+
}
|
|
841
|
+
const teamTarget = `${sessionName}:${windowIndex}`;
|
|
842
|
+
const instanceId = (process.env.RCS_SESSION_ID || '').trim();
|
|
843
|
+
if (instanceId) {
|
|
844
|
+
const tagResult = runTmux(['set-option', '-t', sessionName, RCS_INSTANCE_OPTION, instanceId]);
|
|
845
|
+
if (!tagResult.ok) {
|
|
846
|
+
throw new Error(`failed to tag tmux session ${sessionName}: ${tagResult.stderr}`);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
const panes = listPanes(teamTarget);
|
|
850
|
+
const leaderPaneId = chooseTeamLeaderPaneId(panes, detectedLeaderPaneId);
|
|
851
|
+
tagPaneInstance(leaderPaneId, instanceId);
|
|
852
|
+
const initialHudPaneIds = findHudPaneIds(teamTarget, leaderPaneId);
|
|
853
|
+
// Team mode prioritizes leader + worker visibility. Remove HUD panes in this window
|
|
854
|
+
// to keep a clean "leader left / workers right" layout.
|
|
855
|
+
for (const hudPaneId of initialHudPaneIds) {
|
|
856
|
+
runTmux(['kill-pane', '-t', hudPaneId]);
|
|
857
|
+
}
|
|
858
|
+
const workerPaneIds = [];
|
|
859
|
+
let rightStackRootPaneId = null;
|
|
860
|
+
for (let i = 1; i <= workerCount; i++) {
|
|
861
|
+
const startup = workerStartups[i - 1] || {};
|
|
862
|
+
const workerCwd = startup.cwd || cwd;
|
|
863
|
+
const tmuxWorkerCwd = translatePathForMsys(workerCwd);
|
|
864
|
+
const workerEnv = startup.env || {};
|
|
865
|
+
const launchArgsForWorker = startup.launchArgs || workerLaunchArgs;
|
|
866
|
+
const cmd = buildWorkerStartupCommand(safeTeamName, i, launchArgsForWorker, workerCwd, workerEnv, workerCliPlan[i - 1], startup.initialPrompt, startup.workerRole);
|
|
867
|
+
// First split creates the right side from leader. Remaining splits stack on the right.
|
|
868
|
+
const splitDirection = i === 1 ? '-h' : '-v';
|
|
869
|
+
const splitTarget = i === 1 ? leaderPaneId : (rightStackRootPaneId ?? leaderPaneId);
|
|
870
|
+
const split = runTmux([
|
|
871
|
+
'split-window',
|
|
872
|
+
splitDirection,
|
|
873
|
+
'-t',
|
|
874
|
+
splitTarget,
|
|
875
|
+
'-d',
|
|
876
|
+
'-P',
|
|
877
|
+
'-F',
|
|
878
|
+
'#{pane_id}',
|
|
879
|
+
'-c',
|
|
880
|
+
tmuxWorkerCwd,
|
|
881
|
+
cmd,
|
|
882
|
+
]);
|
|
883
|
+
if (!split.ok) {
|
|
884
|
+
throw new Error(`failed to create worker pane ${i}: ${split.stderr}`);
|
|
885
|
+
}
|
|
886
|
+
const paneId = split.stdout.split('\n')[0]?.trim();
|
|
887
|
+
if (!paneId || !paneId.startsWith('%')) {
|
|
888
|
+
throw new Error(`failed to capture worker pane id for worker ${i}`);
|
|
889
|
+
}
|
|
890
|
+
rollbackPaneIds.push(paneId);
|
|
891
|
+
if (isNativeWindows() && !waitForPaneToRemainPresent(teamTarget, paneId)) {
|
|
892
|
+
throw new Error(`worker pane ${i} did not remain present after tmux split-window returned ${paneId}`);
|
|
893
|
+
}
|
|
894
|
+
tagPaneInstance(paneId, instanceId);
|
|
895
|
+
workerPaneIds.push(paneId);
|
|
896
|
+
if (i === 1)
|
|
897
|
+
rightStackRootPaneId = paneId;
|
|
898
|
+
}
|
|
899
|
+
// Keep leader as full left/main pane; workers stay stacked on the right.
|
|
900
|
+
runTmux(['select-layout', '-t', teamTarget, 'main-vertical']);
|
|
901
|
+
// Force leader pane to use half the window width.
|
|
902
|
+
const windowWidthResult = runTmux(['display-message', '-p', '-t', teamTarget, '#{window_width}']);
|
|
903
|
+
if (windowWidthResult.ok) {
|
|
904
|
+
const width = Number.parseInt(windowWidthResult.stdout.split('\n')[0]?.trim() || '', 10);
|
|
905
|
+
if (Number.isFinite(width) && width >= 40) {
|
|
906
|
+
const half = String(Math.floor(width / 2));
|
|
907
|
+
runTmux(['set-window-option', '-t', teamTarget, 'main-pane-width', half]);
|
|
908
|
+
runTmux(['select-layout', '-t', teamTarget, 'main-vertical']);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
// Re-create a single team HUD as a full-width bottom strip spanning both
|
|
912
|
+
// leader + worker columns. Keep this after layout sizing so the main
|
|
913
|
+
// leader/worker topology stays readable and the HUD remains compact.
|
|
914
|
+
// Capture the HUD pane ID so it can be tracked and excluded from worker cleanup.
|
|
915
|
+
let hudPaneId = null;
|
|
916
|
+
let resizeHookName = null;
|
|
917
|
+
let resizeHookTarget = null;
|
|
918
|
+
const rcsEntry = resolveRcsCliEntryPath();
|
|
919
|
+
if (rcsEntry && rcsEntry.trim() !== '') {
|
|
920
|
+
const hudCmd = `node ${shellQuoteSingle(translatePathForMsys(rcsEntry))} hud --watch`;
|
|
921
|
+
const hudCwd = translatePathForMsys(cwd);
|
|
922
|
+
const hudResult = runTmux([
|
|
923
|
+
'split-window', '-v', '-f', '-l', String(HUD_TMUX_TEAM_HEIGHT_LINES), '-t', teamTarget, '-d', '-P', '-F', '#{pane_id}', '-c', hudCwd, hudCmd,
|
|
924
|
+
]);
|
|
925
|
+
if (hudResult.ok) {
|
|
926
|
+
const id = hudResult.stdout.split('\n')[0]?.trim() ?? '';
|
|
927
|
+
if (id.startsWith('%')) {
|
|
928
|
+
rollbackPaneIds.push(id);
|
|
929
|
+
if (isNativeWindows() && !waitForPaneToRemainPresent(teamTarget, id)) {
|
|
930
|
+
throw new Error(`HUD pane did not remain present after tmux split-window returned ${id}`);
|
|
931
|
+
}
|
|
932
|
+
tagPaneInstance(id, instanceId);
|
|
933
|
+
hudPaneId = id;
|
|
934
|
+
if (isNativeWindows()) {
|
|
935
|
+
// Native Windows tmux support may flow through psmux; issuing a
|
|
936
|
+
// direct control-plane resize avoids nested run-shell PATH drift.
|
|
937
|
+
const reconcile = runTmux(buildHudResizeArgs(hudPaneId));
|
|
938
|
+
if (!reconcile.ok) {
|
|
939
|
+
throw new Error(`failed to reconcile HUD resize: ${reconcile.stderr}`);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
resizeHookTarget = buildResizeHookTarget(sessionName, windowIndex);
|
|
944
|
+
resizeHookName = buildResizeHookName(safeTeamName, sessionName, windowIndex, hudPaneId);
|
|
945
|
+
const registerHook = runTmux(buildRegisterResizeHookArgs(resizeHookTarget, resizeHookName, hudPaneId));
|
|
946
|
+
if (!registerHook.ok) {
|
|
947
|
+
throw new Error(`failed to register resize hook ${resizeHookName}: ${registerHook.stderr}`);
|
|
948
|
+
}
|
|
949
|
+
registeredResizeHook = { name: resizeHookName, target: resizeHookTarget };
|
|
950
|
+
const clientAttachedHookName = buildClientAttachedReconcileHookName(safeTeamName, sessionName, windowIndex, hudPaneId);
|
|
951
|
+
const registerClientAttachedHook = runTmux(buildRegisterClientAttachedReconcileArgs(resizeHookTarget, clientAttachedHookName, hudPaneId));
|
|
952
|
+
if (!registerClientAttachedHook.ok) {
|
|
953
|
+
throw new Error(`failed to register client-attached reconcile hook ${clientAttachedHookName}: ${registerClientAttachedHook.stderr}`);
|
|
954
|
+
}
|
|
955
|
+
registeredClientAttachedHook = { name: clientAttachedHookName, target: resizeHookTarget };
|
|
956
|
+
const delayed = runTmux(buildScheduleDelayedHudResizeArgs(hudPaneId));
|
|
957
|
+
if (!delayed.ok) {
|
|
958
|
+
throw new Error(`failed to schedule delayed HUD resize: ${delayed.stderr}`);
|
|
959
|
+
}
|
|
960
|
+
const reconcile = runTmux(buildReconcileHudResizeArgs(hudPaneId));
|
|
961
|
+
if (!reconcile.ok) {
|
|
962
|
+
throw new Error(`failed to reconcile HUD resize: ${reconcile.stderr}`);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
runTmux(['select-pane', '-t', leaderPaneId]);
|
|
969
|
+
sleepSeconds(0.5);
|
|
970
|
+
// Enable mouse scrolling so agent output panes can be scrolled with the
|
|
971
|
+
// mouse wheel without conflicting with keyboard up/down arrow-key input
|
|
972
|
+
// history navigation in the Codex CLI input field. (issue #103)
|
|
973
|
+
// Opt-out: set RCS_TEAM_MOUSE=0 in the environment.
|
|
974
|
+
if (process.env.RCS_TEAM_MOUSE !== '0') {
|
|
975
|
+
enableMouseScrolling(sessionName);
|
|
976
|
+
}
|
|
977
|
+
return {
|
|
978
|
+
name: teamTarget,
|
|
979
|
+
workerCount,
|
|
980
|
+
cwd,
|
|
981
|
+
workerPaneIds,
|
|
982
|
+
leaderPaneId,
|
|
983
|
+
hudPaneId,
|
|
984
|
+
resizeHookName,
|
|
985
|
+
resizeHookTarget,
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
catch (error) {
|
|
989
|
+
if (registeredClientAttachedHook) {
|
|
990
|
+
runTmux(buildUnregisterClientAttachedReconcileArgs(registeredClientAttachedHook.target, registeredClientAttachedHook.name));
|
|
991
|
+
}
|
|
992
|
+
if (registeredResizeHook) {
|
|
993
|
+
runTmux(buildUnregisterResizeHookArgs(registeredResizeHook.target, registeredResizeHook.name));
|
|
994
|
+
}
|
|
995
|
+
for (const paneId of rollbackPaneIds) {
|
|
996
|
+
runTmux(['kill-pane', '-t', paneId]);
|
|
997
|
+
}
|
|
998
|
+
throw error;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
export function restoreStandaloneHudPane(leaderPaneId, cwd) {
|
|
1002
|
+
const normalizedLeaderPaneId = normalizePaneTarget(leaderPaneId);
|
|
1003
|
+
if (!normalizedLeaderPaneId)
|
|
1004
|
+
return null;
|
|
1005
|
+
const rcsEntry = resolveRcsCliEntryPath();
|
|
1006
|
+
if (!rcsEntry || rcsEntry.trim() === '')
|
|
1007
|
+
return null;
|
|
1008
|
+
const hudCmd = `${shellQuoteSingle(translatePathForMsys(resolveLeaderNodePath()))} ${shellQuoteSingle(translatePathForMsys(rcsEntry))} hud --watch`;
|
|
1009
|
+
const hudCwd = translatePathForMsys(cwd);
|
|
1010
|
+
const hudResult = runTmux([
|
|
1011
|
+
'split-window',
|
|
1012
|
+
'-v',
|
|
1013
|
+
'-l',
|
|
1014
|
+
String(HUD_TMUX_TEAM_HEIGHT_LINES),
|
|
1015
|
+
'-t',
|
|
1016
|
+
normalizedLeaderPaneId,
|
|
1017
|
+
'-d',
|
|
1018
|
+
'-P',
|
|
1019
|
+
'-F',
|
|
1020
|
+
'#{pane_id}',
|
|
1021
|
+
'-c',
|
|
1022
|
+
hudCwd,
|
|
1023
|
+
hudCmd,
|
|
1024
|
+
]);
|
|
1025
|
+
if (!hudResult.ok)
|
|
1026
|
+
return null;
|
|
1027
|
+
const paneId = hudResult.stdout.split('\n')[0]?.trim() ?? '';
|
|
1028
|
+
if (!paneId.startsWith('%'))
|
|
1029
|
+
return null;
|
|
1030
|
+
if (isNativeWindows()) {
|
|
1031
|
+
runTmux(buildHudResizeArgs(paneId));
|
|
1032
|
+
}
|
|
1033
|
+
else {
|
|
1034
|
+
runTmux(buildScheduleDelayedHudResizeArgs(paneId));
|
|
1035
|
+
runTmux(buildReconcileHudResizeArgs(paneId));
|
|
1036
|
+
}
|
|
1037
|
+
runTmux(['select-pane', '-t', normalizedLeaderPaneId]);
|
|
1038
|
+
return paneId;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Enable tmux mouse mode for a session so users can scroll pane content
|
|
1042
|
+
* (e.g. long agent output) with the mouse wheel instead of arrow keys.
|
|
1043
|
+
*
|
|
1044
|
+
* This helper is intentionally limited to session-scoped options so RCS
|
|
1045
|
+
* does not overwrite server-global tmux bindings/options owned by users,
|
|
1046
|
+
* oh-my-tmux, or other sessions. Returns true if the session mouse option
|
|
1047
|
+
* was set successfully, false otherwise.
|
|
1048
|
+
*/
|
|
1049
|
+
export function enableMouseScrolling(sessionTarget) {
|
|
1050
|
+
const result = runTmux(['set-option', '-t', sessionTarget, 'mouse', 'on']);
|
|
1051
|
+
if (!result.ok)
|
|
1052
|
+
return false;
|
|
1053
|
+
// Enable OSC 52 so copy-selection-and-cancel propagates selected text to
|
|
1054
|
+
// the terminal's clipboard without requiring xclip or pbcopy. (closes #206)
|
|
1055
|
+
runTmux(['set-option', '-t', sessionTarget, 'set-clipboard', 'on']);
|
|
1056
|
+
// Mouse selection enters tmux copy-mode. Keep the mitigation session-scoped
|
|
1057
|
+
// so RCS does not mutate users' global tmux style defaults. (issue #1448)
|
|
1058
|
+
mitigateCopyModeUnderlineArtifacts(sessionTarget);
|
|
1059
|
+
return true;
|
|
1060
|
+
}
|
|
1061
|
+
function paneTarget(sessionName, workerIndex, workerPaneId) {
|
|
1062
|
+
if (workerPaneId && workerPaneId.startsWith('%'))
|
|
1063
|
+
return workerPaneId;
|
|
1064
|
+
if (sessionName.includes(':')) {
|
|
1065
|
+
return `${sessionName}.${workerIndex}`;
|
|
1066
|
+
}
|
|
1067
|
+
return `${sessionName}:${workerIndex}`;
|
|
1068
|
+
}
|
|
1069
|
+
export const paneIsBootstrapping = sharedPaneIsBootstrapping;
|
|
1070
|
+
export const paneLooksReady = sharedPaneLooksReady;
|
|
1071
|
+
function paneHasTrustPrompt(captured) {
|
|
1072
|
+
const lines = captured
|
|
1073
|
+
.split('\n')
|
|
1074
|
+
.map((line) => line.replace(/\r/g, '').trim())
|
|
1075
|
+
.filter((line) => line.length > 0);
|
|
1076
|
+
const tail = lines.slice(-12);
|
|
1077
|
+
const hasQuestion = tail.some((line) => /Do you trust the contents of this directory\?/i.test(line));
|
|
1078
|
+
const hasActiveChoices = tail.some((line) => /Yes,\s*continue|No,\s*quit|Press enter to continue/i.test(line));
|
|
1079
|
+
return hasQuestion && hasActiveChoices;
|
|
1080
|
+
}
|
|
1081
|
+
function paneHasClaudeBypassPermissionsPrompt(captured) {
|
|
1082
|
+
const lines = captured
|
|
1083
|
+
.split('\n')
|
|
1084
|
+
.map((line) => line.replace(/\r/g, '').trim())
|
|
1085
|
+
.filter((line) => line.length > 0);
|
|
1086
|
+
const tail = lines.slice(-20);
|
|
1087
|
+
const hasWarning = tail.some((line) => /Bypass Permissions mode/i.test(line));
|
|
1088
|
+
const hasChoices = tail.some((line) => /No,\s*exit/i.test(line))
|
|
1089
|
+
&& tail.some((line) => /Yes,\s*I\s*accept/i.test(line))
|
|
1090
|
+
&& tail.some((line) => /Enter\s*to\s*confirm/i.test(line));
|
|
1091
|
+
return hasWarning && hasChoices;
|
|
1092
|
+
}
|
|
1093
|
+
export function evaluateStartupDirectTriggerSafetyCapture(captured, workerCli) {
|
|
1094
|
+
if (paneHasTrustPrompt(captured))
|
|
1095
|
+
return { safe: false, reason: 'trust_prompt' };
|
|
1096
|
+
if (paneHasClaudeBypassPermissionsPrompt(captured))
|
|
1097
|
+
return { safe: false, reason: 'claude_bypass_prompt' };
|
|
1098
|
+
if (paneLooksReady(captured))
|
|
1099
|
+
return { safe: true, reason: 'ready_prompt' };
|
|
1100
|
+
if (paneIsBootstrapping(captured))
|
|
1101
|
+
return { safe: false, reason: 'bootstrapping' };
|
|
1102
|
+
if (workerCli === 'codex' && sharedPaneShowsCodexViewport(captured))
|
|
1103
|
+
return { safe: true, reason: 'codex_viewport' };
|
|
1104
|
+
return { safe: false, reason: 'not_agent_viewport' };
|
|
1105
|
+
}
|
|
1106
|
+
export async function evaluateStartupDirectTriggerSafety(sessionName, workerIndex, workerPaneId, workerCli) {
|
|
1107
|
+
if (!isTmuxAvailable())
|
|
1108
|
+
return { safe: false, reason: 'tmux_unavailable' };
|
|
1109
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1110
|
+
const result = await runTmuxAsync(sharedBuildVisibleCapturePaneArgv(target));
|
|
1111
|
+
if (!result.ok)
|
|
1112
|
+
return { safe: false, reason: 'capture_failed' };
|
|
1113
|
+
return evaluateStartupDirectTriggerSafetyCapture(result.stdout, workerCli);
|
|
1114
|
+
}
|
|
1115
|
+
function acceptClaudeBypassPermissionsPrompt(target) {
|
|
1116
|
+
runTmux(['send-keys', '-t', target, '-l', '--', '2']);
|
|
1117
|
+
sleepFractionalSeconds(0.12);
|
|
1118
|
+
runTmux(['send-keys', '-t', target, 'C-m']);
|
|
1119
|
+
}
|
|
1120
|
+
function dismissClaudeBypassPermissionsPromptIfPresent(target, captured) {
|
|
1121
|
+
if (process.env.RCS_TEAM_AUTO_ACCEPT_BYPASS === '0')
|
|
1122
|
+
return false;
|
|
1123
|
+
if (!paneHasClaudeBypassPermissionsPrompt(captured))
|
|
1124
|
+
return false;
|
|
1125
|
+
acceptClaudeBypassPermissionsPrompt(target);
|
|
1126
|
+
return true;
|
|
1127
|
+
}
|
|
1128
|
+
export const paneHasActiveTask = sharedPaneHasActiveTask;
|
|
1129
|
+
export function classifyWorkerStartupInjectSafety(captured) {
|
|
1130
|
+
if (paneHasTrustPrompt(captured))
|
|
1131
|
+
return 'trust_prompt';
|
|
1132
|
+
if (paneHasClaudeBypassPermissionsPrompt(captured))
|
|
1133
|
+
return 'claude_bypass_prompt';
|
|
1134
|
+
if (paneIsBootstrapping(captured))
|
|
1135
|
+
return 'bootstrapping';
|
|
1136
|
+
if (paneHasActiveTask(captured))
|
|
1137
|
+
return 'active_task';
|
|
1138
|
+
if (!paneLooksReady(captured))
|
|
1139
|
+
return 'not_ready';
|
|
1140
|
+
return 'safe';
|
|
1141
|
+
}
|
|
1142
|
+
export async function checkWorkerStartupInjectSafety(sessionName, workerIndex, workerPaneId) {
|
|
1143
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1144
|
+
const visibleCapture = await captureVisiblePaneAsync(target);
|
|
1145
|
+
const visibleSafety = classifyWorkerStartupInjectSafety(visibleCapture);
|
|
1146
|
+
if (visibleSafety === 'safe')
|
|
1147
|
+
return { safe: true, reason: 'safe' };
|
|
1148
|
+
if (visibleSafety !== 'not_ready')
|
|
1149
|
+
return { safe: false, reason: visibleSafety };
|
|
1150
|
+
if (!sharedPaneShowsCodexViewport(visibleCapture)) {
|
|
1151
|
+
return { safe: false, reason: visibleSafety };
|
|
1152
|
+
}
|
|
1153
|
+
const scrollbackCapture = await capturePaneAsync(target);
|
|
1154
|
+
const scrollbackSafety = classifyWorkerStartupInjectSafety(scrollbackCapture);
|
|
1155
|
+
return scrollbackSafety === 'safe'
|
|
1156
|
+
? { safe: true, reason: 'safe' }
|
|
1157
|
+
: { safe: false, reason: scrollbackSafety };
|
|
1158
|
+
}
|
|
1159
|
+
function resolveSendStrategyFromEnv() {
|
|
1160
|
+
const raw = String(process.env.RCS_TEAM_SEND_STRATEGY || '')
|
|
1161
|
+
.trim()
|
|
1162
|
+
.toLowerCase();
|
|
1163
|
+
if (raw === 'interrupt' || raw === 'queue' || raw === 'auto') {
|
|
1164
|
+
return raw;
|
|
1165
|
+
}
|
|
1166
|
+
return 'auto';
|
|
1167
|
+
}
|
|
1168
|
+
function resolveWorkerCliFromMapForSend(workerIndex, launchArgs = [], env = process.env) {
|
|
1169
|
+
const rawMap = String(env[RCS_TEAM_WORKER_CLI_MAP_ENV] ?? '').trim();
|
|
1170
|
+
if (rawMap === '')
|
|
1171
|
+
return null;
|
|
1172
|
+
const entries = rawMap.split(',').map((entry) => entry.trim());
|
|
1173
|
+
if (entries.length === 0 || entries.some((entry) => entry.length === 0))
|
|
1174
|
+
return null;
|
|
1175
|
+
const selectedRaw = entries.length === 1 ? entries[0] : entries[workerIndex - 1];
|
|
1176
|
+
if (!selectedRaw)
|
|
1177
|
+
return null;
|
|
1178
|
+
try {
|
|
1179
|
+
const mode = normalizeTeamWorkerCliMode(selectedRaw, RCS_TEAM_WORKER_CLI_MAP_ENV);
|
|
1180
|
+
return mode === 'auto' ? resolveTeamWorkerCliFromLaunchArgs(launchArgs) : mode;
|
|
1181
|
+
}
|
|
1182
|
+
catch {
|
|
1183
|
+
return null;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Worker CLI resolution contract for submit routing:
|
|
1188
|
+
* 1) explicit workerCli param from caller
|
|
1189
|
+
* 2) per-worker RCS_TEAM_WORKER_CLI_MAP entry (worker index aware)
|
|
1190
|
+
* 3) global/default RCS_TEAM_WORKER_CLI behavior
|
|
1191
|
+
*/
|
|
1192
|
+
export function resolveWorkerCliForSend(workerIndex, workerCli, launchArgs = [], env = process.env) {
|
|
1193
|
+
if (workerCli)
|
|
1194
|
+
return workerCli;
|
|
1195
|
+
const mapped = resolveWorkerCliFromMapForSend(workerIndex, launchArgs, env);
|
|
1196
|
+
if (mapped)
|
|
1197
|
+
return mapped;
|
|
1198
|
+
return resolveTeamWorkerCli(launchArgs, env);
|
|
1199
|
+
}
|
|
1200
|
+
export function buildWorkerSubmitPlan(strategy, workerCli, paneBusyAtStart, allowAdaptiveRetry) {
|
|
1201
|
+
const queueRequested = strategy === 'queue' || (strategy === 'auto' && paneBusyAtStart);
|
|
1202
|
+
return {
|
|
1203
|
+
shouldInterrupt: strategy === 'interrupt',
|
|
1204
|
+
queueFirstRound: workerCli === 'codex' && queueRequested,
|
|
1205
|
+
rounds: 6,
|
|
1206
|
+
submitKeyPressesPerRound: workerCli === 'claude' ? 1 : 2,
|
|
1207
|
+
allowAdaptiveRetry: workerCli === 'codex' && allowAdaptiveRetry,
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
export function shouldAttemptAdaptiveRetry(strategy, paneBusyAtStart, allowAdaptiveRetry, latestCapture, text) {
|
|
1211
|
+
if (!allowAdaptiveRetry)
|
|
1212
|
+
return false;
|
|
1213
|
+
if (strategy !== 'auto')
|
|
1214
|
+
return false;
|
|
1215
|
+
if (!paneBusyAtStart)
|
|
1216
|
+
return false;
|
|
1217
|
+
if (typeof latestCapture !== 'string')
|
|
1218
|
+
return false;
|
|
1219
|
+
const normalizedText = normalizeTmuxCapture(text);
|
|
1220
|
+
if (normalizedText === '')
|
|
1221
|
+
return false;
|
|
1222
|
+
const normalizedCapture = normalizeTmuxCapture(latestCapture);
|
|
1223
|
+
if (!normalizedCapture.includes(normalizedText))
|
|
1224
|
+
return false;
|
|
1225
|
+
if (paneHasActiveTask(latestCapture))
|
|
1226
|
+
return false;
|
|
1227
|
+
if (!paneLooksReady(latestCapture))
|
|
1228
|
+
return false;
|
|
1229
|
+
return true;
|
|
1230
|
+
}
|
|
1231
|
+
function sendLiteralTextOrThrow(target, text) {
|
|
1232
|
+
const send = runTmux(['send-keys', '-t', target, '-l', '--', text]);
|
|
1233
|
+
if (!send.ok) {
|
|
1234
|
+
throw new Error(`sendToWorker: failed to send text: ${send.stderr}`);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
function paneHasQueuedCodexSubmission(captured) {
|
|
1238
|
+
const normalized = normalizeTmuxCapture(captured ?? '');
|
|
1239
|
+
if (normalized === '')
|
|
1240
|
+
return false;
|
|
1241
|
+
return /messages to be submitted after next tool call/i.test(normalized)
|
|
1242
|
+
|| /press esc to interrupt and send immediately/i.test(normalized);
|
|
1243
|
+
}
|
|
1244
|
+
async function attemptSubmitRounds(target, text, rounds, queueFirstRound, submitKeyPressesPerRound) {
|
|
1245
|
+
const presses = Math.max(1, Math.floor(submitKeyPressesPerRound));
|
|
1246
|
+
for (let round = 0; round < rounds; round++) {
|
|
1247
|
+
await sleep(100);
|
|
1248
|
+
if (round === 0 && queueFirstRound) {
|
|
1249
|
+
await sendKeyAsync(target, 'Tab');
|
|
1250
|
+
await sleep(80);
|
|
1251
|
+
await sendKeyAsync(target, 'C-m');
|
|
1252
|
+
}
|
|
1253
|
+
else {
|
|
1254
|
+
for (let press = 0; press < presses; press++) {
|
|
1255
|
+
await sendKeyAsync(target, 'C-m');
|
|
1256
|
+
if (press < presses - 1) {
|
|
1257
|
+
await sleep(200);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
await sleep(140);
|
|
1262
|
+
const [captured, visibleCapture] = await Promise.all([
|
|
1263
|
+
capturePaneAsync(target),
|
|
1264
|
+
captureVisiblePaneAsync(target),
|
|
1265
|
+
]);
|
|
1266
|
+
const normalizedCapture = normalizeTmuxCapture(captured);
|
|
1267
|
+
if (!normalizedCapture.includes(normalizeTmuxCapture(text))
|
|
1268
|
+
&& !paneHasQueuedCodexSubmission(visibleCapture)) {
|
|
1269
|
+
return true;
|
|
1270
|
+
}
|
|
1271
|
+
await sleep(140);
|
|
1272
|
+
}
|
|
1273
|
+
return false;
|
|
1274
|
+
}
|
|
1275
|
+
export function waitForWorkerReady(sessionName, workerIndex, timeoutMs = 30_000, workerPaneId) {
|
|
1276
|
+
const initialBackoffMs = 150;
|
|
1277
|
+
const maxBackoffMs = 8000;
|
|
1278
|
+
const startedAt = Date.now();
|
|
1279
|
+
let blockedByTrustPrompt = false;
|
|
1280
|
+
let promptDismissed = false;
|
|
1281
|
+
const sendRobustEnter = () => {
|
|
1282
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1283
|
+
// Trust + follow-up splash can require two submits in Codex TUI.
|
|
1284
|
+
// Use C-m (carriage return) for raw-mode compatibility.
|
|
1285
|
+
runTmux(['send-keys', '-t', target, 'C-m']);
|
|
1286
|
+
sleepFractionalSeconds(0.12);
|
|
1287
|
+
runTmux(['send-keys', '-t', target, 'C-m']);
|
|
1288
|
+
};
|
|
1289
|
+
const check = () => {
|
|
1290
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1291
|
+
const result = runTmux(sharedBuildVisibleCapturePaneArgv(target));
|
|
1292
|
+
if (!result.ok)
|
|
1293
|
+
return false;
|
|
1294
|
+
if (dismissClaudeBypassPermissionsPromptIfPresent(target, result.stdout)) {
|
|
1295
|
+
promptDismissed = true;
|
|
1296
|
+
return false;
|
|
1297
|
+
}
|
|
1298
|
+
if (paneHasClaudeBypassPermissionsPrompt(result.stdout)) {
|
|
1299
|
+
return false;
|
|
1300
|
+
}
|
|
1301
|
+
if (paneHasTrustPrompt(result.stdout)) {
|
|
1302
|
+
// Default-on for team workers: they are spawned explicitly by the leader in the same cwd.
|
|
1303
|
+
// Opt-out by setting RCS_TEAM_AUTO_TRUST=0.
|
|
1304
|
+
if (process.env.RCS_TEAM_AUTO_TRUST !== '0') {
|
|
1305
|
+
sendRobustEnter();
|
|
1306
|
+
promptDismissed = true;
|
|
1307
|
+
return false;
|
|
1308
|
+
}
|
|
1309
|
+
blockedByTrustPrompt = true;
|
|
1310
|
+
return false;
|
|
1311
|
+
}
|
|
1312
|
+
if (paneLooksReady(result.stdout))
|
|
1313
|
+
return true;
|
|
1314
|
+
// Keep startup safety checks anchored to the visible pane. Only if the
|
|
1315
|
+
// visible slice already proves a live Codex viewport do we consult recent
|
|
1316
|
+
// scrollback for the prompt/helper text that may have slipped below the fold.
|
|
1317
|
+
if (!sharedPaneShowsCodexViewport(result.stdout))
|
|
1318
|
+
return false;
|
|
1319
|
+
const scrollbackResult = runTmux(sharedBuildCapturePaneArgv(target, 80));
|
|
1320
|
+
if (!scrollbackResult.ok)
|
|
1321
|
+
return false;
|
|
1322
|
+
return paneLooksReady(scrollbackResult.stdout);
|
|
1323
|
+
};
|
|
1324
|
+
let delayMs = initialBackoffMs;
|
|
1325
|
+
while (Date.now() - startedAt < timeoutMs) {
|
|
1326
|
+
if (check())
|
|
1327
|
+
return true;
|
|
1328
|
+
if (blockedByTrustPrompt)
|
|
1329
|
+
return false;
|
|
1330
|
+
// After dismissing a trust prompt, reset backoff so we re-check quickly
|
|
1331
|
+
// instead of sleeping 2s/4s/8s while the worker is starting up.
|
|
1332
|
+
if (promptDismissed) {
|
|
1333
|
+
delayMs = initialBackoffMs;
|
|
1334
|
+
promptDismissed = false;
|
|
1335
|
+
}
|
|
1336
|
+
const remaining = timeoutMs - (Date.now() - startedAt);
|
|
1337
|
+
if (remaining <= 0)
|
|
1338
|
+
break;
|
|
1339
|
+
sleepSeconds(Math.max(0, Math.min(delayMs, remaining)) / 1000);
|
|
1340
|
+
delayMs = Math.min(maxBackoffMs, delayMs * 2);
|
|
1341
|
+
}
|
|
1342
|
+
return false;
|
|
1343
|
+
}
|
|
1344
|
+
// Async twin of waitForWorkerReady for team startup fan-out. Keep the readiness
|
|
1345
|
+
// semantics mirrored with the synchronous helper above, but yield between polls
|
|
1346
|
+
// so one slow worker pane cannot block later workers' startup attempts.
|
|
1347
|
+
export async function waitForWorkerReadyAsync(sessionName, workerIndex, timeoutMs = 30_000, workerPaneId) {
|
|
1348
|
+
const initialBackoffMs = 150;
|
|
1349
|
+
const maxBackoffMs = 8000;
|
|
1350
|
+
const startedAt = Date.now();
|
|
1351
|
+
let blockedByTrustPrompt = false;
|
|
1352
|
+
let promptDismissed = false;
|
|
1353
|
+
const sendRobustEnter = async () => {
|
|
1354
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1355
|
+
// Trust + follow-up splash can require two submits in Codex TUI.
|
|
1356
|
+
// Use C-m (carriage return) for raw-mode compatibility.
|
|
1357
|
+
await runTmuxAsync(['send-keys', '-t', target, 'C-m']);
|
|
1358
|
+
await sleep(120);
|
|
1359
|
+
await runTmuxAsync(['send-keys', '-t', target, 'C-m']);
|
|
1360
|
+
};
|
|
1361
|
+
const check = async () => {
|
|
1362
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1363
|
+
const result = await runTmuxAsync(sharedBuildVisibleCapturePaneArgv(target));
|
|
1364
|
+
if (!result.ok)
|
|
1365
|
+
return false;
|
|
1366
|
+
if (dismissClaudeBypassPermissionsPromptIfPresent(target, result.stdout)) {
|
|
1367
|
+
promptDismissed = true;
|
|
1368
|
+
return false;
|
|
1369
|
+
}
|
|
1370
|
+
if (paneHasClaudeBypassPermissionsPrompt(result.stdout)) {
|
|
1371
|
+
return false;
|
|
1372
|
+
}
|
|
1373
|
+
if (paneHasTrustPrompt(result.stdout)) {
|
|
1374
|
+
// Default-on for team workers: they are spawned explicitly by the leader in the same cwd.
|
|
1375
|
+
// Opt-out by setting RCS_TEAM_AUTO_TRUST=0.
|
|
1376
|
+
if (process.env.RCS_TEAM_AUTO_TRUST !== '0') {
|
|
1377
|
+
await sendRobustEnter();
|
|
1378
|
+
promptDismissed = true;
|
|
1379
|
+
return false;
|
|
1380
|
+
}
|
|
1381
|
+
blockedByTrustPrompt = true;
|
|
1382
|
+
return false;
|
|
1383
|
+
}
|
|
1384
|
+
if (paneLooksReady(result.stdout))
|
|
1385
|
+
return true;
|
|
1386
|
+
// Keep startup safety checks anchored to the visible pane. Only if the
|
|
1387
|
+
// visible slice already proves a live Codex viewport do we consult recent
|
|
1388
|
+
// scrollback for the prompt/helper text that may have slipped below the fold.
|
|
1389
|
+
if (!sharedPaneShowsCodexViewport(result.stdout))
|
|
1390
|
+
return false;
|
|
1391
|
+
const scrollbackResult = await runTmuxAsync(sharedBuildCapturePaneArgv(target, 80));
|
|
1392
|
+
if (!scrollbackResult.ok)
|
|
1393
|
+
return false;
|
|
1394
|
+
return paneLooksReady(scrollbackResult.stdout);
|
|
1395
|
+
};
|
|
1396
|
+
let delayMs = initialBackoffMs;
|
|
1397
|
+
while (Date.now() - startedAt < timeoutMs) {
|
|
1398
|
+
if (await check())
|
|
1399
|
+
return true;
|
|
1400
|
+
if (blockedByTrustPrompt)
|
|
1401
|
+
return false;
|
|
1402
|
+
// After dismissing a trust prompt, reset backoff so we re-check quickly
|
|
1403
|
+
// instead of sleeping 2s/4s/8s while the worker is starting up.
|
|
1404
|
+
if (promptDismissed) {
|
|
1405
|
+
delayMs = initialBackoffMs;
|
|
1406
|
+
promptDismissed = false;
|
|
1407
|
+
}
|
|
1408
|
+
const remaining = timeoutMs - (Date.now() - startedAt);
|
|
1409
|
+
if (remaining <= 0)
|
|
1410
|
+
break;
|
|
1411
|
+
await sleep(Math.max(0, Math.min(delayMs, remaining)));
|
|
1412
|
+
delayMs = Math.min(maxBackoffMs, delayMs * 2);
|
|
1413
|
+
}
|
|
1414
|
+
return false;
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Detect and auto-dismiss a Codex "Trust this directory?" prompt in a worker pane.
|
|
1418
|
+
* Returns true if a trust prompt was found and dismissed, false otherwise.
|
|
1419
|
+
* Opt-out: set RCS_TEAM_AUTO_TRUST=0 to disable auto-dismissal.
|
|
1420
|
+
*/
|
|
1421
|
+
export function dismissTrustPromptIfPresent(sessionName, workerIndex, workerPaneId) {
|
|
1422
|
+
if (process.env.RCS_TEAM_AUTO_TRUST === '0')
|
|
1423
|
+
return false;
|
|
1424
|
+
if (!isTmuxAvailable())
|
|
1425
|
+
return false;
|
|
1426
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1427
|
+
const result = runTmux(sharedBuildVisibleCapturePaneArgv(target));
|
|
1428
|
+
if (!result.ok)
|
|
1429
|
+
return false;
|
|
1430
|
+
if (!paneHasTrustPrompt(result.stdout))
|
|
1431
|
+
return false;
|
|
1432
|
+
// Trust prompt detected; send C-m twice to dismiss (trust + follow-up splash)
|
|
1433
|
+
runTmux(['send-keys', '-t', target, 'C-m']);
|
|
1434
|
+
sleepFractionalSeconds(0.12);
|
|
1435
|
+
runTmux(['send-keys', '-t', target, 'C-m']);
|
|
1436
|
+
return true;
|
|
1437
|
+
}
|
|
1438
|
+
export const normalizeTmuxCapture = sharedNormalizeTmuxCapture;
|
|
1439
|
+
function assertWorkerTriggerText(text) {
|
|
1440
|
+
if (text.length >= 200) {
|
|
1441
|
+
throw new Error('sendToWorker: text must be < 200 characters');
|
|
1442
|
+
}
|
|
1443
|
+
if (text.trim().length === 0) {
|
|
1444
|
+
throw new Error('sendToWorker: text must be non-empty');
|
|
1445
|
+
}
|
|
1446
|
+
if (text.includes(INJECTION_MARKER)) {
|
|
1447
|
+
throw new Error('sendToWorker: injection marker is not allowed');
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
export function sendToWorkerStdin(stdin, text) {
|
|
1451
|
+
assertWorkerTriggerText(text);
|
|
1452
|
+
if (!stdin || !stdin.writable) {
|
|
1453
|
+
throw new Error('sendToWorkerStdin: stdin is not writable');
|
|
1454
|
+
}
|
|
1455
|
+
stdin.write(`${text}\n`);
|
|
1456
|
+
}
|
|
1457
|
+
// Send SHORT text (<200 chars) to worker via tmux send-keys
|
|
1458
|
+
// Validates: text < 200 chars, no injection marker
|
|
1459
|
+
// Throws on violation
|
|
1460
|
+
export async function sendToWorker(sessionName, workerIndex, text, workerPaneId, workerCli) {
|
|
1461
|
+
assertWorkerTriggerText(text);
|
|
1462
|
+
const target = paneTarget(sessionName, workerIndex, workerPaneId);
|
|
1463
|
+
const strategy = resolveSendStrategyFromEnv();
|
|
1464
|
+
const resolvedWorkerCli = resolveWorkerCliForSend(workerIndex, workerCli);
|
|
1465
|
+
// Guard: if the trust prompt is still present, advance it first so our trigger text
|
|
1466
|
+
// doesn't get typed into the trust screen and ignored.
|
|
1467
|
+
const capturedStr = await capturePaneAsync(target);
|
|
1468
|
+
const paneBusy = paneHasActiveTask(capturedStr);
|
|
1469
|
+
if (dismissClaudeBypassPermissionsPromptIfPresent(target, capturedStr)) {
|
|
1470
|
+
await sleep(200);
|
|
1471
|
+
}
|
|
1472
|
+
if (paneHasTrustPrompt(capturedStr)) {
|
|
1473
|
+
await sendKeyAsync(target, 'C-m');
|
|
1474
|
+
await sleep(120);
|
|
1475
|
+
await sendKeyAsync(target, 'C-m');
|
|
1476
|
+
await sleep(200);
|
|
1477
|
+
}
|
|
1478
|
+
sendLiteralTextOrThrow(target, text);
|
|
1479
|
+
// Allow the input buffer to settle before sending C-m
|
|
1480
|
+
await sleep(150);
|
|
1481
|
+
const allowAutoInterruptRetry = process.env[RCS_TEAM_AUTO_INTERRUPT_RETRY_ENV] !== '0';
|
|
1482
|
+
const submitPlan = buildWorkerSubmitPlan(strategy, resolvedWorkerCli, paneBusy, allowAutoInterruptRetry);
|
|
1483
|
+
if (submitPlan.shouldInterrupt) {
|
|
1484
|
+
// Explicit interrupt mode: abort current turn first, then submit the new command.
|
|
1485
|
+
await sendKeyAsync(target, 'C-c');
|
|
1486
|
+
await sleep(100);
|
|
1487
|
+
}
|
|
1488
|
+
// Submit deterministically using CLI-specific plan:
|
|
1489
|
+
// - Codex: queue-first Tab+C-m when configured/busy, then double C-m rounds.
|
|
1490
|
+
// - Claude: direct C-m rounds only (never queue-first Tab).
|
|
1491
|
+
if (await attemptSubmitRounds(target, text, submitPlan.rounds, submitPlan.queueFirstRound, submitPlan.submitKeyPressesPerRound))
|
|
1492
|
+
return;
|
|
1493
|
+
// Adaptive escalation for "likely unsent trigger text at ready prompt" cases:
|
|
1494
|
+
// clear line, re-send trigger, then re-submit with deterministic C-m rounds.
|
|
1495
|
+
const latestCapture = await capturePaneAsync(target);
|
|
1496
|
+
if (shouldAttemptAdaptiveRetry(strategy, paneBusy, submitPlan.allowAdaptiveRetry, latestCapture || null, text)) {
|
|
1497
|
+
// Keep this branch non-interrupting to avoid canceling active turns on false positives.
|
|
1498
|
+
await sendKeyAsync(target, 'C-u');
|
|
1499
|
+
await sleep(80);
|
|
1500
|
+
sendLiteralTextOrThrow(target, text);
|
|
1501
|
+
await sleep(120);
|
|
1502
|
+
if (await attemptSubmitRounds(target, text, 4, false, submitPlan.submitKeyPressesPerRound))
|
|
1503
|
+
return;
|
|
1504
|
+
}
|
|
1505
|
+
// Fail-open by default: Codex may keep the last submitted line visible even after executing it.
|
|
1506
|
+
// If you need strictness for debugging, set RCS_TEAM_STRICT_SUBMIT=1.
|
|
1507
|
+
const strict = process.env.RCS_TEAM_STRICT_SUBMIT === '1';
|
|
1508
|
+
if (strict) {
|
|
1509
|
+
throw new Error('sendToWorker: submit_failed (trigger text still visible after retries)');
|
|
1510
|
+
}
|
|
1511
|
+
// One last best-effort double C-m nudge, then verify.
|
|
1512
|
+
await sendKeyAsync(target, 'C-m');
|
|
1513
|
+
await sleep(120);
|
|
1514
|
+
await sendKeyAsync(target, 'C-m');
|
|
1515
|
+
// Post-submit verification: wait briefly and confirm the worker consumed the
|
|
1516
|
+
// trigger (draft disappeared or active-task indicator appeared). Fixes #391.
|
|
1517
|
+
await sleep(300);
|
|
1518
|
+
const [verifyCapture, verifyVisibleCapture] = await Promise.all([
|
|
1519
|
+
capturePaneAsync(target),
|
|
1520
|
+
captureVisiblePaneAsync(target),
|
|
1521
|
+
]);
|
|
1522
|
+
if (verifyCapture) {
|
|
1523
|
+
if (paneHasActiveTask(verifyCapture))
|
|
1524
|
+
return;
|
|
1525
|
+
if (!normalizeTmuxCapture(verifyCapture).includes(normalizeTmuxCapture(text))
|
|
1526
|
+
&& !paneHasQueuedCodexSubmission(verifyVisibleCapture)) {
|
|
1527
|
+
return;
|
|
1528
|
+
}
|
|
1529
|
+
// Draft still visible and no active task — one more C-m attempt.
|
|
1530
|
+
await sendKeyAsync(target, 'C-m');
|
|
1531
|
+
await sleep(150);
|
|
1532
|
+
await sendKeyAsync(target, 'C-m');
|
|
1533
|
+
const finalVisibleCapture = await captureVisiblePaneAsync(target);
|
|
1534
|
+
if (paneHasQueuedCodexSubmission(finalVisibleCapture)) {
|
|
1535
|
+
throw new Error('sendToWorker: submit_queued_after_tool_call');
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
export function notifyLeaderStatus(sessionName, message) {
|
|
1540
|
+
if (!isTmuxAvailable())
|
|
1541
|
+
return false;
|
|
1542
|
+
const trimmed = message.trim();
|
|
1543
|
+
if (!trimmed)
|
|
1544
|
+
return false;
|
|
1545
|
+
const capped = trimmed.length > 180 ? `${trimmed.slice(0, 177)}...` : trimmed;
|
|
1546
|
+
const result = runTmux(['display-message', '-t', sessionName, '--', capped]);
|
|
1547
|
+
return result.ok;
|
|
1548
|
+
}
|
|
1549
|
+
// Get PID of the shell process in a worker's tmux pane
|
|
1550
|
+
export function getWorkerPanePid(sessionName, workerIndex, workerPaneId) {
|
|
1551
|
+
const result = runTmux(['list-panes', '-t', paneTarget(sessionName, workerIndex, workerPaneId), '-F', '#{pane_pid}']);
|
|
1552
|
+
if (!result.ok)
|
|
1553
|
+
return null;
|
|
1554
|
+
const firstLine = result.stdout.split('\n')[0]?.trim();
|
|
1555
|
+
if (!firstLine)
|
|
1556
|
+
return null;
|
|
1557
|
+
const pid = Number.parseInt(firstLine, 10);
|
|
1558
|
+
if (!Number.isFinite(pid))
|
|
1559
|
+
return null;
|
|
1560
|
+
return pid;
|
|
1561
|
+
}
|
|
1562
|
+
// Check if worker's tmux pane has a running process
|
|
1563
|
+
export function isWorkerAlive(sessionName, workerIndex, workerPaneId) {
|
|
1564
|
+
const result = runTmux([
|
|
1565
|
+
'list-panes',
|
|
1566
|
+
'-t', paneTarget(sessionName, workerIndex, workerPaneId),
|
|
1567
|
+
'-F',
|
|
1568
|
+
'#{pane_dead} #{pane_pid}',
|
|
1569
|
+
]);
|
|
1570
|
+
if (!result.ok)
|
|
1571
|
+
return false;
|
|
1572
|
+
const line = result.stdout.split('\n')[0]?.trim();
|
|
1573
|
+
if (!line)
|
|
1574
|
+
return false;
|
|
1575
|
+
const parts = line.split(/\s+/);
|
|
1576
|
+
if (parts.length < 2)
|
|
1577
|
+
return false;
|
|
1578
|
+
const paneDead = parts[0];
|
|
1579
|
+
const pid = Number.parseInt(parts[1], 10);
|
|
1580
|
+
if (paneDead === '1')
|
|
1581
|
+
return false;
|
|
1582
|
+
if (!Number.isFinite(pid))
|
|
1583
|
+
return false;
|
|
1584
|
+
try {
|
|
1585
|
+
process.kill(pid, 0);
|
|
1586
|
+
return true;
|
|
1587
|
+
}
|
|
1588
|
+
catch {
|
|
1589
|
+
return false;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
export function isWorkerPaneOpen(sessionName, workerIndex, workerPaneId) {
|
|
1593
|
+
const result = runTmux([
|
|
1594
|
+
'list-panes',
|
|
1595
|
+
'-t', paneTarget(sessionName, workerIndex, workerPaneId),
|
|
1596
|
+
'-F',
|
|
1597
|
+
'#{pane_dead}',
|
|
1598
|
+
]);
|
|
1599
|
+
if (!result.ok)
|
|
1600
|
+
return false;
|
|
1601
|
+
const line = result.stdout.split('\n')[0]?.trim();
|
|
1602
|
+
if (!line)
|
|
1603
|
+
return false;
|
|
1604
|
+
return line !== '1';
|
|
1605
|
+
}
|
|
1606
|
+
// Kill a specific worker: send C-c, then C-d, then kill-pane if still alive.
|
|
1607
|
+
// leaderPaneId: when provided, the kill is skipped entirely if workerPaneId matches it.
|
|
1608
|
+
export async function killWorker(sessionName, workerIndex, workerPaneId, leaderPaneId) {
|
|
1609
|
+
// Guard: never kill the leader's own pane.
|
|
1610
|
+
if (leaderPaneId && workerPaneId === leaderPaneId)
|
|
1611
|
+
return;
|
|
1612
|
+
await runTmuxAsync(['send-keys', '-t', paneTarget(sessionName, workerIndex, workerPaneId), 'C-c']);
|
|
1613
|
+
await sleep(1000);
|
|
1614
|
+
if (await isWorkerAliveAsync(sessionName, workerIndex, workerPaneId)) {
|
|
1615
|
+
await runTmuxAsync(['send-keys', '-t', paneTarget(sessionName, workerIndex, workerPaneId), 'C-d']);
|
|
1616
|
+
await sleep(1000);
|
|
1617
|
+
}
|
|
1618
|
+
if (await isWorkerAliveAsync(sessionName, workerIndex, workerPaneId)) {
|
|
1619
|
+
await runTmuxAsync(['kill-pane', '-t', paneTarget(sessionName, workerIndex, workerPaneId)]);
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
// leaderPaneId: when provided, the kill is skipped if workerPaneId matches it.
|
|
1623
|
+
export function killWorkerByPaneId(workerPaneId, leaderPaneId) {
|
|
1624
|
+
if (!workerPaneId.startsWith('%'))
|
|
1625
|
+
return;
|
|
1626
|
+
// Guard: never kill the leader's own pane.
|
|
1627
|
+
if (leaderPaneId && workerPaneId === leaderPaneId)
|
|
1628
|
+
return;
|
|
1629
|
+
runTmux(['kill-pane', '-t', workerPaneId]);
|
|
1630
|
+
}
|
|
1631
|
+
export async function killWorkerByPaneIdAsync(workerPaneId, leaderPaneId) {
|
|
1632
|
+
if (!workerPaneId.startsWith('%'))
|
|
1633
|
+
return;
|
|
1634
|
+
// Guard: never kill the leader's own pane.
|
|
1635
|
+
if (leaderPaneId && workerPaneId === leaderPaneId)
|
|
1636
|
+
return;
|
|
1637
|
+
await runTmuxAsync(['kill-pane', '-t', workerPaneId]);
|
|
1638
|
+
}
|
|
1639
|
+
function normalizePaneTarget(value) {
|
|
1640
|
+
if (typeof value !== 'string')
|
|
1641
|
+
return null;
|
|
1642
|
+
const trimmed = value.trim();
|
|
1643
|
+
if (!trimmed.startsWith('%'))
|
|
1644
|
+
return null;
|
|
1645
|
+
return trimmed;
|
|
1646
|
+
}
|
|
1647
|
+
function normalizePaneTargets(paneIds, options = {}) {
|
|
1648
|
+
const leaderPaneId = normalizePaneTarget(options.leaderPaneId);
|
|
1649
|
+
const hudPaneId = normalizePaneTarget(options.hudPaneId);
|
|
1650
|
+
const excluded = { leader: 0, hud: 0, invalid: 0 };
|
|
1651
|
+
const deduped = new Set();
|
|
1652
|
+
const killablePaneIds = [];
|
|
1653
|
+
for (const paneId of paneIds) {
|
|
1654
|
+
const normalized = normalizePaneTarget(paneId);
|
|
1655
|
+
if (!normalized) {
|
|
1656
|
+
excluded.invalid += 1;
|
|
1657
|
+
continue;
|
|
1658
|
+
}
|
|
1659
|
+
if (leaderPaneId && normalized === leaderPaneId) {
|
|
1660
|
+
excluded.leader += 1;
|
|
1661
|
+
continue;
|
|
1662
|
+
}
|
|
1663
|
+
if (hudPaneId && normalized === hudPaneId) {
|
|
1664
|
+
excluded.hud += 1;
|
|
1665
|
+
continue;
|
|
1666
|
+
}
|
|
1667
|
+
if (deduped.has(normalized))
|
|
1668
|
+
continue;
|
|
1669
|
+
deduped.add(normalized);
|
|
1670
|
+
killablePaneIds.push(normalized);
|
|
1671
|
+
}
|
|
1672
|
+
return { killablePaneIds, excluded };
|
|
1673
|
+
}
|
|
1674
|
+
export function resolveSharedSessionShutdownTopology(sessionName, preferredLeaderPaneId) {
|
|
1675
|
+
const panes = listPanes(sessionName);
|
|
1676
|
+
const livePaneIds = panes
|
|
1677
|
+
.map((pane) => normalizePaneTarget(pane.paneId))
|
|
1678
|
+
.filter((paneId) => Boolean(paneId));
|
|
1679
|
+
const fallbackLeaderPaneId = normalizePaneTarget(preferredLeaderPaneId);
|
|
1680
|
+
if (panes.length === 0) {
|
|
1681
|
+
return {
|
|
1682
|
+
livePaneIds,
|
|
1683
|
+
leaderPaneId: fallbackLeaderPaneId,
|
|
1684
|
+
hudPaneIds: [],
|
|
1685
|
+
};
|
|
1686
|
+
}
|
|
1687
|
+
const resolvedLeaderPaneId = normalizePaneTarget(chooseTeamLeaderPaneId(panes, fallbackLeaderPaneId ?? '')) ?? fallbackLeaderPaneId;
|
|
1688
|
+
const hudPaneIds = panes
|
|
1689
|
+
.filter((pane) => pane.paneId !== resolvedLeaderPaneId)
|
|
1690
|
+
.filter((pane) => isHudWatchPane(pane))
|
|
1691
|
+
.map((pane) => pane.paneId)
|
|
1692
|
+
.filter((paneId) => paneId.startsWith('%'));
|
|
1693
|
+
return {
|
|
1694
|
+
livePaneIds,
|
|
1695
|
+
leaderPaneId: resolvedLeaderPaneId,
|
|
1696
|
+
hudPaneIds,
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Shared pane-id-direct teardown primitive for worker pane cleanup.
|
|
1701
|
+
* Must remain liveness-agnostic: do not gate on isWorkerAlive/killWorker.
|
|
1702
|
+
*/
|
|
1703
|
+
export async function teardownWorkerPanes(paneIds, options = {}) {
|
|
1704
|
+
const { killablePaneIds, excluded } = normalizePaneTargets(paneIds, options);
|
|
1705
|
+
const graceMs = options.graceMs ?? 2000;
|
|
1706
|
+
const perPaneGrace = killablePaneIds.length > 0
|
|
1707
|
+
? Math.max(100, Math.floor(graceMs / killablePaneIds.length))
|
|
1708
|
+
: 0;
|
|
1709
|
+
const summary = {
|
|
1710
|
+
attemptedPaneIds: killablePaneIds,
|
|
1711
|
+
excluded,
|
|
1712
|
+
kill: {
|
|
1713
|
+
attempted: killablePaneIds.length,
|
|
1714
|
+
succeeded: 0,
|
|
1715
|
+
failed: 0,
|
|
1716
|
+
},
|
|
1717
|
+
};
|
|
1718
|
+
for (const paneId of killablePaneIds) {
|
|
1719
|
+
const result = await runTmuxAsync(['kill-pane', '-t', paneId]);
|
|
1720
|
+
if (result.ok)
|
|
1721
|
+
summary.kill.succeeded += 1;
|
|
1722
|
+
else
|
|
1723
|
+
summary.kill.failed += 1;
|
|
1724
|
+
await sleep(perPaneGrace);
|
|
1725
|
+
}
|
|
1726
|
+
return summary;
|
|
1727
|
+
}
|
|
1728
|
+
export async function killWorkerPanes(paneIds, leaderPaneId, graceMs = 2000, hudPaneId) {
|
|
1729
|
+
return teardownWorkerPanes(paneIds, { leaderPaneId, hudPaneId: hudPaneId ?? null, graceMs });
|
|
1730
|
+
}
|
|
1731
|
+
// Kill entire tmux session. Tolerates already-dead sessions.
|
|
1732
|
+
export function destroyTeamSession(sessionName) {
|
|
1733
|
+
try {
|
|
1734
|
+
runTmux(['kill-session', '-t', sessionName]);
|
|
1735
|
+
}
|
|
1736
|
+
catch {
|
|
1737
|
+
// tolerate
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
// List all tmux sessions matching rcs-team-* pattern
|
|
1741
|
+
export function listTeamSessions() {
|
|
1742
|
+
const result = runTmux(['list-sessions', '-F', '#{session_name}']);
|
|
1743
|
+
if (!result.ok)
|
|
1744
|
+
return [];
|
|
1745
|
+
return result.stdout
|
|
1746
|
+
.split('\n')
|
|
1747
|
+
.map(line => line.trim())
|
|
1748
|
+
.filter(Boolean)
|
|
1749
|
+
.map(baseSessionName);
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Notify the leader through durable mailbox state only.
|
|
1753
|
+
*
|
|
1754
|
+
* Team leaders are a coordination endpoint, not a direct tmux control target:
|
|
1755
|
+
* workers and runtime paths may message `leader-fixed` via `rcs team api`
|
|
1756
|
+
* / mailbox persistence, but team code must not inject text or control keys
|
|
1757
|
+
* into the leader pane. This is the async mailbox-based replacement for
|
|
1758
|
+
* `notifyLeaderStatus()`.
|
|
1759
|
+
*/
|
|
1760
|
+
export async function notifyLeaderMailboxAsync(teamName, fromWorker, message, cwd) {
|
|
1761
|
+
try {
|
|
1762
|
+
const { sendDirectMessage } = await import('./state.js');
|
|
1763
|
+
await sendDirectMessage(teamName, fromWorker, 'leader-fixed', message, cwd);
|
|
1764
|
+
return true;
|
|
1765
|
+
}
|
|
1766
|
+
catch {
|
|
1767
|
+
return false;
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
//# sourceMappingURL=tmux-session.js.map
|