@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,2061 @@
|
|
|
1
|
+
use std::env;
|
|
2
|
+
use std::ffi::OsString;
|
|
3
|
+
use std::fs::{
|
|
4
|
+
canonicalize, create_dir_all, read_to_string, remove_dir_all, remove_file, write, File,
|
|
5
|
+
};
|
|
6
|
+
use std::io::{self, BufRead, BufReader};
|
|
7
|
+
use std::path::{Path, PathBuf};
|
|
8
|
+
use std::process::Command;
|
|
9
|
+
use std::time::{SystemTime, UNIX_EPOCH};
|
|
10
|
+
|
|
11
|
+
const CODEX_BIN_ENV: &str = "RCS_EXPLORE_CODEX_BIN";
|
|
12
|
+
const HARNESS_ROOT_ENV: &str = "RCS_EXPLORE_ROOT";
|
|
13
|
+
const INTERNAL_DIRECT_WRAPPER_FLAG: &str = "--internal-allowlist-direct";
|
|
14
|
+
const INTERNAL_SHELL_WRAPPER_FLAG: &str = "--internal-allowlist-shell";
|
|
15
|
+
const TEMP_ALLOWLIST_DIR_PREFIX: &str = "rcs-explore-allowlist-";
|
|
16
|
+
const SHELL_STARTUP_ENV_VARS: &[&str] = &["BASH_ENV", "ENV", "PROMPT_COMMAND"];
|
|
17
|
+
const WINDOWS_UNSUPPORTED_ALLOWLIST_MESSAGE: &str =
|
|
18
|
+
"rcs explore built-in harness is not ready on Windows because its allowlist runtime relies on POSIX sh/bash wrappers. Set RCS_EXPLORE_BIN to a compatible custom harness, prefer `rcs sparkshell` for shell-native read-only lookups, or run `rcs doctor` for readiness details.";
|
|
19
|
+
|
|
20
|
+
const ALLOWED_DIRECT_COMMANDS: &[&str] = &[
|
|
21
|
+
"rg", "grep", "ls", "find", "wc", "cat", "head", "tail", "pwd", "printf",
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
25
|
+
struct Args {
|
|
26
|
+
cwd: PathBuf,
|
|
27
|
+
prompt: String,
|
|
28
|
+
prompt_file: PathBuf,
|
|
29
|
+
instructions_file: PathBuf,
|
|
30
|
+
spark_model: String,
|
|
31
|
+
fallback_model: String,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#[derive(Debug)]
|
|
35
|
+
struct AttemptResult {
|
|
36
|
+
status_code: i32,
|
|
37
|
+
stderr: String,
|
|
38
|
+
output_markdown: Option<String>,
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
42
|
+
struct FallbackEvent {
|
|
43
|
+
from_model: String,
|
|
44
|
+
to_model: String,
|
|
45
|
+
exit_code: i32,
|
|
46
|
+
stderr: String,
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#[derive(Debug)]
|
|
50
|
+
struct AllowlistEnvironment {
|
|
51
|
+
bin_dir: PathBuf,
|
|
52
|
+
shell_path: PathBuf,
|
|
53
|
+
sandbox_bin_dir: Option<PathBuf>,
|
|
54
|
+
_root: TempDirGuard,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#[derive(Debug)]
|
|
58
|
+
struct TempDirGuard {
|
|
59
|
+
path: PathBuf,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
impl Drop for TempDirGuard {
|
|
63
|
+
fn drop(&mut self) {
|
|
64
|
+
let _ = remove_dir_all(&self.path);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
fn main() {
|
|
69
|
+
if let Err(error) = dispatch_main() {
|
|
70
|
+
eprintln!("[rcs explore] {}", error);
|
|
71
|
+
std::process::exit(1);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
fn dispatch_main() -> Result<(), String> {
|
|
76
|
+
let mut args = env::args_os().skip(1);
|
|
77
|
+
match args.next() {
|
|
78
|
+
Some(flag) if flag == INTERNAL_DIRECT_WRAPPER_FLAG => {
|
|
79
|
+
run_internal_direct_wrapper(args)?;
|
|
80
|
+
Ok(())
|
|
81
|
+
}
|
|
82
|
+
Some(flag) if flag == INTERNAL_SHELL_WRAPPER_FLAG => {
|
|
83
|
+
run_internal_shell_wrapper(args)?;
|
|
84
|
+
Ok(())
|
|
85
|
+
}
|
|
86
|
+
Some(first) => run_with_leading_arg(first, args),
|
|
87
|
+
None => run(),
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
fn run_with_leading_arg<I>(first: OsString, remaining: I) -> Result<(), String>
|
|
92
|
+
where
|
|
93
|
+
I: Iterator<Item = OsString>,
|
|
94
|
+
{
|
|
95
|
+
let args = std::iter::once(first).chain(remaining);
|
|
96
|
+
run_with_args(args)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
fn run() -> Result<(), String> {
|
|
100
|
+
run_with_args(env::args_os().skip(1))
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
fn run_with_args<I>(args: I) -> Result<(), String>
|
|
104
|
+
where
|
|
105
|
+
I: Iterator<Item = OsString>,
|
|
106
|
+
{
|
|
107
|
+
let args = parse_args(args)?;
|
|
108
|
+
let prompt_contract = read_to_string(&args.prompt_file).map_err(|err| {
|
|
109
|
+
format!(
|
|
110
|
+
"failed to read explore prompt contract {}: {err}",
|
|
111
|
+
args.prompt_file.display()
|
|
112
|
+
)
|
|
113
|
+
})?;
|
|
114
|
+
|
|
115
|
+
let spark_attempt = invoke_codex(&args, &args.spark_model, &prompt_contract)
|
|
116
|
+
.map_err(|err| format!("spark attempt failed to launch: {err}"))?;
|
|
117
|
+
if spark_attempt.status_code == 0 {
|
|
118
|
+
print_attempt_output(spark_attempt)?;
|
|
119
|
+
return Ok(());
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let fallback_event = FallbackEvent {
|
|
123
|
+
from_model: args.spark_model.clone(),
|
|
124
|
+
to_model: args.fallback_model.clone(),
|
|
125
|
+
exit_code: spark_attempt.status_code,
|
|
126
|
+
stderr: spark_attempt.stderr.clone(),
|
|
127
|
+
};
|
|
128
|
+
emit_model_fallback_event(&fallback_event);
|
|
129
|
+
|
|
130
|
+
let fallback_attempt = invoke_codex(&args, &args.fallback_model, &prompt_contract)
|
|
131
|
+
.map_err(|err| format!("fallback attempt failed to launch: {err}"))?;
|
|
132
|
+
if fallback_attempt.status_code == 0 {
|
|
133
|
+
print_attempt_output_with_fallback(fallback_attempt, &fallback_event)?;
|
|
134
|
+
return Ok(());
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
Err(format!(
|
|
138
|
+
"both spark (`{}`) and fallback (`{}`) attempts failed (codes {} / {}). Last stderr: {}",
|
|
139
|
+
args.spark_model,
|
|
140
|
+
args.fallback_model,
|
|
141
|
+
spark_attempt.status_code,
|
|
142
|
+
fallback_attempt.status_code,
|
|
143
|
+
fallback_attempt.stderr.trim()
|
|
144
|
+
))
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
fn print_attempt_output(attempt: AttemptResult) -> Result<(), String> {
|
|
148
|
+
print_attempt_output_with_optional_fallback(attempt, None)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
fn print_attempt_output_with_fallback(
|
|
152
|
+
attempt: AttemptResult,
|
|
153
|
+
fallback: &FallbackEvent,
|
|
154
|
+
) -> Result<(), String> {
|
|
155
|
+
print_attempt_output_with_optional_fallback(attempt, Some(fallback))
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
fn print_attempt_output_with_optional_fallback(
|
|
159
|
+
attempt: AttemptResult,
|
|
160
|
+
fallback: Option<&FallbackEvent>,
|
|
161
|
+
) -> Result<(), String> {
|
|
162
|
+
if let Some(markdown) = attempt.output_markdown {
|
|
163
|
+
if let Some(event) = fallback {
|
|
164
|
+
print!("{}", fallback_output_notice(event));
|
|
165
|
+
if !markdown.starts_with('\n') {
|
|
166
|
+
println!();
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
print!("{}", markdown);
|
|
170
|
+
return Ok(());
|
|
171
|
+
}
|
|
172
|
+
Err(
|
|
173
|
+
"codex completed successfully but did not produce the expected markdown output artifact"
|
|
174
|
+
.to_string(),
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
fn emit_model_fallback_event(event: &FallbackEvent) {
|
|
179
|
+
eprintln!("{}", fallback_attempt_event_message(event));
|
|
180
|
+
eprintln!(
|
|
181
|
+
"[rcs explore] spark model `{}` unavailable or failed (exit {}). Falling back to `{}`.",
|
|
182
|
+
event.from_model, event.exit_code, event.to_model
|
|
183
|
+
);
|
|
184
|
+
if !event.stderr.trim().is_empty() {
|
|
185
|
+
eprintln!("[rcs explore] spark stderr: {}", event.stderr.trim());
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
fn fallback_attempt_event_message(event: &FallbackEvent) -> String {
|
|
190
|
+
format!(
|
|
191
|
+
"[rcs explore] fallback-attempt=model from=`{}` to=`{}` reason=spark_attempt_failed exit={}. Cost/behavior boundary changed if fallback succeeds; stdout fallback notice is emitted only after successful fallback output.",
|
|
192
|
+
event.from_model, event.to_model, event.exit_code
|
|
193
|
+
)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
fn fallback_output_notice(event: &FallbackEvent) -> String {
|
|
197
|
+
format!(
|
|
198
|
+
"## RCS Explore fallback\n- fallback: model\n- from: `{}`\n- to: `{}`\n- reason: spark attempt failed with exit {}\n- boundary: cost/behavior may differ from the low-cost spark path\n",
|
|
199
|
+
event.from_model, event.to_model, event.exit_code
|
|
200
|
+
)
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
fn parse_args<I>(mut args: I) -> Result<Args, String>
|
|
204
|
+
where
|
|
205
|
+
I: Iterator<Item = OsString>,
|
|
206
|
+
{
|
|
207
|
+
let mut cwd: Option<PathBuf> = None;
|
|
208
|
+
let mut prompt: Option<String> = None;
|
|
209
|
+
let mut prompt_file: Option<PathBuf> = None;
|
|
210
|
+
let mut instructions_file: Option<PathBuf> = None;
|
|
211
|
+
let mut spark_model: Option<String> = None;
|
|
212
|
+
let mut fallback_model: Option<String> = None;
|
|
213
|
+
|
|
214
|
+
while let Some(token) = args.next() {
|
|
215
|
+
let token_str = token.to_string_lossy();
|
|
216
|
+
match token_str.as_ref() {
|
|
217
|
+
"--cwd" => cwd = Some(PathBuf::from(next_required(&mut args, "--cwd")?)),
|
|
218
|
+
"--prompt" => prompt = Some(next_required(&mut args, "--prompt")?),
|
|
219
|
+
"--prompt-file" => {
|
|
220
|
+
prompt_file = Some(PathBuf::from(next_required(&mut args, "--prompt-file")?))
|
|
221
|
+
}
|
|
222
|
+
"--instructions-file" => {
|
|
223
|
+
instructions_file = Some(PathBuf::from(next_required(
|
|
224
|
+
&mut args,
|
|
225
|
+
"--instructions-file",
|
|
226
|
+
)?))
|
|
227
|
+
}
|
|
228
|
+
"--model-spark" => spark_model = Some(next_required(&mut args, "--model-spark")?),
|
|
229
|
+
"--model-fallback" => {
|
|
230
|
+
fallback_model = Some(next_required(&mut args, "--model-fallback")?)
|
|
231
|
+
}
|
|
232
|
+
"--help" | "-h" => return Err(usage().to_string()),
|
|
233
|
+
other => return Err(format!("unknown argument: {other}\n{}", usage())),
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
let args = Args {
|
|
238
|
+
cwd: cwd.ok_or_else(|| format!("missing --cwd\n{}", usage()))?,
|
|
239
|
+
prompt: prompt.ok_or_else(|| format!("missing --prompt\n{}", usage()))?,
|
|
240
|
+
prompt_file: prompt_file.ok_or_else(|| format!("missing --prompt-file\n{}", usage()))?,
|
|
241
|
+
instructions_file: instructions_file
|
|
242
|
+
.ok_or_else(|| format!("missing --instructions-file\n{}", usage()))?,
|
|
243
|
+
spark_model: spark_model.ok_or_else(|| format!("missing --model-spark\n{}", usage()))?,
|
|
244
|
+
fallback_model: fallback_model
|
|
245
|
+
.ok_or_else(|| format!("missing --model-fallback\n{}", usage()))?,
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
Ok(args)
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
fn next_required<I>(args: &mut I, flag: &str) -> Result<String, String>
|
|
252
|
+
where
|
|
253
|
+
I: Iterator<Item = OsString>,
|
|
254
|
+
{
|
|
255
|
+
args.next()
|
|
256
|
+
.map(|value| value.to_string_lossy().trim().to_string())
|
|
257
|
+
.filter(|value| !value.is_empty())
|
|
258
|
+
.ok_or_else(|| format!("missing value after {flag}\n{}", usage()))
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
fn usage() -> &'static str {
|
|
262
|
+
"Usage: rcs-explore --cwd <dir> --prompt <text> --prompt-file <explore-prompt.md> --instructions-file <AGENTS.md> --model-spark <model> --model-fallback <model>"
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
#[allow(unknown_lints, clippy::io_other_error)]
|
|
266
|
+
fn invoke_codex(args: &Args, model: &str, prompt_contract: &str) -> io::Result<AttemptResult> {
|
|
267
|
+
let codex_launch = resolve_codex_launch();
|
|
268
|
+
let allowlist =
|
|
269
|
+
prepare_allowlist_environment().map_err(|err| io::Error::new(io::ErrorKind::Other, err))?;
|
|
270
|
+
let output_path = temp_output_path();
|
|
271
|
+
let final_prompt = compose_exec_prompt(&args.prompt, prompt_contract);
|
|
272
|
+
let mut command = Command::new(&codex_launch.program);
|
|
273
|
+
command.args(&codex_launch.leading_args);
|
|
274
|
+
command
|
|
275
|
+
.arg("exec")
|
|
276
|
+
.arg("-C")
|
|
277
|
+
.arg(&args.cwd)
|
|
278
|
+
.args(codex_support_dir_args())
|
|
279
|
+
.arg("-m")
|
|
280
|
+
.arg(model)
|
|
281
|
+
.arg("-s")
|
|
282
|
+
.arg("read-only")
|
|
283
|
+
.arg("-c")
|
|
284
|
+
.arg("model_reasoning_effort=\"low\"")
|
|
285
|
+
.arg("-c")
|
|
286
|
+
.arg(format!(
|
|
287
|
+
"model_instructions_file=\"{}\"",
|
|
288
|
+
escape_toml_string(&args.instructions_file.display().to_string())
|
|
289
|
+
))
|
|
290
|
+
.arg("-c")
|
|
291
|
+
.arg("shell_environment_policy.inherit=all")
|
|
292
|
+
.arg("--skip-git-repo-check")
|
|
293
|
+
.arg("-o")
|
|
294
|
+
.arg(&output_path)
|
|
295
|
+
.arg(&final_prompt)
|
|
296
|
+
.env(HARNESS_ROOT_ENV, &args.cwd)
|
|
297
|
+
.env(
|
|
298
|
+
"PATH",
|
|
299
|
+
build_codex_path(&allowlist.bin_dir, allowlist.sandbox_bin_dir.as_deref())
|
|
300
|
+
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))?,
|
|
301
|
+
)
|
|
302
|
+
.env("SHELL", &allowlist.shell_path);
|
|
303
|
+
sanitize_explore_subprocess_env(&mut command);
|
|
304
|
+
let output = command.output()?;
|
|
305
|
+
|
|
306
|
+
let markdown = read_to_string(&output_path).ok();
|
|
307
|
+
let _ = remove_file(&output_path);
|
|
308
|
+
Ok(AttemptResult {
|
|
309
|
+
status_code: output.status.code().unwrap_or(1),
|
|
310
|
+
stderr: String::from_utf8_lossy(&output.stderr).into_owned(),
|
|
311
|
+
output_markdown: markdown,
|
|
312
|
+
})
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
fn escape_toml_string(value: &str) -> String {
|
|
316
|
+
value.replace('\\', "\\\\").replace('"', "\\\"")
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
320
|
+
struct CodexLaunch {
|
|
321
|
+
program: String,
|
|
322
|
+
leading_args: Vec<String>,
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
fn resolve_codex_launch() -> CodexLaunch {
|
|
326
|
+
let codex_binary = resolve_codex_binary();
|
|
327
|
+
codex_launch_for_binary(&codex_binary).unwrap_or_else(|| CodexLaunch {
|
|
328
|
+
program: codex_binary,
|
|
329
|
+
leading_args: Vec::new(),
|
|
330
|
+
})
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
fn resolve_codex_binary() -> String {
|
|
334
|
+
if let Some(value) = env::var(CODEX_BIN_ENV)
|
|
335
|
+
.ok()
|
|
336
|
+
.map(|value| value.trim().to_string())
|
|
337
|
+
.filter(|value| !value.is_empty())
|
|
338
|
+
{
|
|
339
|
+
if value.contains(std::path::MAIN_SEPARATOR) {
|
|
340
|
+
return value;
|
|
341
|
+
}
|
|
342
|
+
if let Some(path) = resolve_host_command(&value) {
|
|
343
|
+
return path.display().to_string();
|
|
344
|
+
}
|
|
345
|
+
return value;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
resolve_host_command("codex")
|
|
349
|
+
.map(|path| path.display().to_string())
|
|
350
|
+
.unwrap_or_else(|| "codex".to_string())
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
fn codex_launch_for_binary(codex_binary: &str) -> Option<CodexLaunch> {
|
|
354
|
+
let codex_path = Path::new(codex_binary);
|
|
355
|
+
if let Some(launch) = codex_launch_for_posix_node_shim(codex_path) {
|
|
356
|
+
return Some(launch);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
let interpreter = read_shebang_interpreter(codex_path)?;
|
|
360
|
+
let (program, mut leading_args) = resolve_shebang_launch(&interpreter)?;
|
|
361
|
+
leading_args.push(codex_binary.to_string());
|
|
362
|
+
Some(CodexLaunch {
|
|
363
|
+
program,
|
|
364
|
+
leading_args,
|
|
365
|
+
})
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
fn codex_launch_for_posix_node_shim(codex_path: &Path) -> Option<CodexLaunch> {
|
|
369
|
+
let shebang = read_shebang_interpreter(codex_path)?;
|
|
370
|
+
if !is_posix_shell_shebang(&shebang) {
|
|
371
|
+
return None;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
let script = read_to_string(codex_path).ok()?;
|
|
375
|
+
let entrypoint = resolve_posix_node_shim_entrypoint(codex_path, &script)?;
|
|
376
|
+
let program = resolve_posix_node_shim_program(codex_path, &script)?;
|
|
377
|
+
Some(CodexLaunch {
|
|
378
|
+
program: program.display().to_string(),
|
|
379
|
+
leading_args: vec![entrypoint.display().to_string()],
|
|
380
|
+
})
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
fn read_shebang_interpreter(path: &Path) -> Option<String> {
|
|
384
|
+
let file = File::open(path).ok()?;
|
|
385
|
+
let mut reader = BufReader::new(file);
|
|
386
|
+
let mut first_line = String::new();
|
|
387
|
+
if reader.read_line(&mut first_line).ok()? == 0 {
|
|
388
|
+
return None;
|
|
389
|
+
}
|
|
390
|
+
first_line
|
|
391
|
+
.strip_prefix("#!")
|
|
392
|
+
.map(str::trim)
|
|
393
|
+
.filter(|line| !line.is_empty())
|
|
394
|
+
.map(ToOwned::to_owned)
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
fn is_posix_shell_shebang(shebang: &str) -> bool {
|
|
398
|
+
let parts: Vec<&str> = shebang.split_whitespace().collect();
|
|
399
|
+
let interpreter = *parts.first().unwrap_or(&"");
|
|
400
|
+
if interpreter.ends_with("/env") {
|
|
401
|
+
return parts
|
|
402
|
+
.get(1)
|
|
403
|
+
.is_some_and(|target| is_posix_shell_name(target));
|
|
404
|
+
}
|
|
405
|
+
is_posix_shell_name(interpreter)
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
fn is_posix_shell_name(value: &str) -> bool {
|
|
409
|
+
matches!(
|
|
410
|
+
Path::new(value).file_name().and_then(|name| name.to_str()),
|
|
411
|
+
Some("sh" | "bash" | "dash" | "ash" | "ksh" | "zsh")
|
|
412
|
+
)
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
fn resolve_posix_node_shim_entrypoint(codex_path: &Path, script: &str) -> Option<PathBuf> {
|
|
416
|
+
let basedir = codex_path.parent()?;
|
|
417
|
+
quoted_shell_segments(script)
|
|
418
|
+
.into_iter()
|
|
419
|
+
.filter_map(|segment| strip_basedir_prefix(&segment).map(ToOwned::to_owned))
|
|
420
|
+
.map(|relative| normalize_path(basedir.join(relative)))
|
|
421
|
+
.find(|candidate| is_node_entrypoint(candidate))
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
fn resolve_posix_node_shim_program(codex_path: &Path, script: &str) -> Option<PathBuf> {
|
|
425
|
+
let basedir = codex_path.parent()?;
|
|
426
|
+
if quoted_shell_segments(script)
|
|
427
|
+
.into_iter()
|
|
428
|
+
.any(|segment| matches!(strip_basedir_prefix(&segment), Some("node")))
|
|
429
|
+
{
|
|
430
|
+
let sibling_node = basedir.join("node");
|
|
431
|
+
if is_usable_host_command(&sibling_node) {
|
|
432
|
+
return Some(sibling_node);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
resolve_host_command("node")
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
fn quoted_shell_segments(script: &str) -> Vec<String> {
|
|
439
|
+
let mut segments = Vec::new();
|
|
440
|
+
let mut active_quote: Option<char> = None;
|
|
441
|
+
let mut current = String::new();
|
|
442
|
+
|
|
443
|
+
for ch in script.chars() {
|
|
444
|
+
if let Some(quote) = active_quote {
|
|
445
|
+
if ch == quote {
|
|
446
|
+
segments.push(std::mem::take(&mut current));
|
|
447
|
+
active_quote = None;
|
|
448
|
+
} else {
|
|
449
|
+
current.push(ch);
|
|
450
|
+
}
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
if ch == '\'' || ch == '"' {
|
|
455
|
+
active_quote = Some(ch);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
segments
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
fn strip_basedir_prefix(segment: &str) -> Option<&str> {
|
|
463
|
+
segment
|
|
464
|
+
.strip_prefix("$basedir/")
|
|
465
|
+
.or_else(|| segment.strip_prefix("${basedir}/"))
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
fn is_node_entrypoint(path: &Path) -> bool {
|
|
469
|
+
path.is_file()
|
|
470
|
+
&& matches!(
|
|
471
|
+
path.extension().and_then(|value| value.to_str()),
|
|
472
|
+
Some("js" | "cjs" | "mjs")
|
|
473
|
+
)
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
fn resolve_shebang_launch(shebang: &str) -> Option<(String, Vec<String>)> {
|
|
477
|
+
let parts: Vec<&str> = shebang.split_whitespace().collect();
|
|
478
|
+
let interpreter = *parts.first()?;
|
|
479
|
+
if interpreter.ends_with("/env") {
|
|
480
|
+
let target = parts.get(1).copied()?;
|
|
481
|
+
let resolved = resolve_host_command(target)?;
|
|
482
|
+
return Some((
|
|
483
|
+
resolved.display().to_string(),
|
|
484
|
+
parts
|
|
485
|
+
.iter()
|
|
486
|
+
.skip(2)
|
|
487
|
+
.map(|part| (*part).to_string())
|
|
488
|
+
.collect(),
|
|
489
|
+
));
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
Some((
|
|
493
|
+
interpreter.to_string(),
|
|
494
|
+
parts
|
|
495
|
+
.iter()
|
|
496
|
+
.skip(1)
|
|
497
|
+
.map(|part| (*part).to_string())
|
|
498
|
+
.collect(),
|
|
499
|
+
))
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
fn codex_support_dir_args() -> Vec<String> {
|
|
503
|
+
discover_codex_support_dirs()
|
|
504
|
+
.into_iter()
|
|
505
|
+
.flat_map(|dir| ["--add-dir".to_string(), dir.display().to_string()])
|
|
506
|
+
.collect()
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
fn discover_codex_support_dirs() -> Vec<PathBuf> {
|
|
510
|
+
let mut dirs = Vec::new();
|
|
511
|
+
if let Some(home) = env::var_os("HOME").filter(|value| !value.is_empty()) {
|
|
512
|
+
let home = PathBuf::from(home);
|
|
513
|
+
for relative in [".rcs", ".codex"] {
|
|
514
|
+
let dir = home.join(relative);
|
|
515
|
+
if dir.is_dir() {
|
|
516
|
+
dirs.push(dir);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
dirs
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
fn temp_output_path() -> PathBuf {
|
|
524
|
+
let nanos = SystemTime::now()
|
|
525
|
+
.duration_since(UNIX_EPOCH)
|
|
526
|
+
.unwrap_or_default()
|
|
527
|
+
.as_nanos();
|
|
528
|
+
env::temp_dir().join(format!("rcs-explore-{}-{}.md", std::process::id(), nanos))
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
fn compose_exec_prompt(user_prompt: &str, prompt_contract: &str) -> String {
|
|
532
|
+
format!(
|
|
533
|
+
concat!(
|
|
534
|
+
"You are RCS Explore, a low-cost read-only repository exploration harness.\\n",
|
|
535
|
+
"Operate strictly in read-only mode. You may use repository-inspection shell commands only.\\n",
|
|
536
|
+
"Preferred commands: rg, grep, and tightly bounded read-only bash wrappers over rg/grep/ls/find/wc/cat/head/tail.\\n",
|
|
537
|
+
"Do not write, delete, rename, or modify files. Do not run git commands that alter working state.\\n",
|
|
538
|
+
"Always return markdown only.\\n\\n",
|
|
539
|
+
"Reference behavior contract:\\n",
|
|
540
|
+
"---------------- BEGIN EXPLORE PROMPT ----------------\\n{}\\n---------------- END EXPLORE PROMPT ----------------\\n\\n",
|
|
541
|
+
"User request:\\n{}\\n"
|
|
542
|
+
),
|
|
543
|
+
prompt_contract,
|
|
544
|
+
user_prompt
|
|
545
|
+
)
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
fn prepare_allowlist_environment() -> Result<AllowlistEnvironment, String> {
|
|
549
|
+
if let Some(message) = allowlist_platform_diagnostic(env::consts::OS) {
|
|
550
|
+
return Err(message.to_string());
|
|
551
|
+
}
|
|
552
|
+
let root = temp_allowlist_dir()?;
|
|
553
|
+
let bin_dir = root.path.join("bin");
|
|
554
|
+
create_dir_all(&bin_dir).map_err(|err| {
|
|
555
|
+
format!(
|
|
556
|
+
"failed to create allowlist bin dir {}: {err}",
|
|
557
|
+
bin_dir.display()
|
|
558
|
+
)
|
|
559
|
+
})?;
|
|
560
|
+
|
|
561
|
+
let self_exe = env::current_exe().map_err(|err| {
|
|
562
|
+
format!("failed to resolve current executable for allowlist wrappers: {err}")
|
|
563
|
+
})?;
|
|
564
|
+
let bash_path = resolve_host_command("bash")
|
|
565
|
+
.ok_or_else(|| "failed to locate host bash for allowlist wrapper".to_string())?;
|
|
566
|
+
let sh_path = resolve_host_command("sh")
|
|
567
|
+
.ok_or_else(|| "failed to locate host sh for allowlist wrapper".to_string())?;
|
|
568
|
+
|
|
569
|
+
for command in ALLOWED_DIRECT_COMMANDS {
|
|
570
|
+
let wrapper_path = bin_dir.join(command);
|
|
571
|
+
let wrapper = build_direct_wrapper(&self_exe, command)?;
|
|
572
|
+
write_executable(&wrapper_path, &wrapper)?;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
let bash_wrapper = format!(
|
|
576
|
+
"#!/bin/sh\nexec {} {} {} \"$@\"\n",
|
|
577
|
+
shell_quote(&self_exe.display().to_string()),
|
|
578
|
+
shell_quote(INTERNAL_SHELL_WRAPPER_FLAG),
|
|
579
|
+
shell_quote(&bash_path.display().to_string()),
|
|
580
|
+
);
|
|
581
|
+
let sh_wrapper = format!(
|
|
582
|
+
"#!/bin/sh\nexec {} {} {} \"$@\"\n",
|
|
583
|
+
shell_quote(&self_exe.display().to_string()),
|
|
584
|
+
shell_quote(INTERNAL_SHELL_WRAPPER_FLAG),
|
|
585
|
+
shell_quote(&sh_path.display().to_string()),
|
|
586
|
+
);
|
|
587
|
+
let shell_path = bin_dir.join("bash");
|
|
588
|
+
write_executable(&shell_path, &bash_wrapper)?;
|
|
589
|
+
write_executable(&bin_dir.join("sh"), &sh_wrapper)?;
|
|
590
|
+
|
|
591
|
+
let sandbox_bin_dir = prepare_sandbox_dependency_bin(&root.path)?;
|
|
592
|
+
|
|
593
|
+
Ok(AllowlistEnvironment {
|
|
594
|
+
bin_dir,
|
|
595
|
+
shell_path,
|
|
596
|
+
sandbox_bin_dir,
|
|
597
|
+
_root: root,
|
|
598
|
+
})
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
fn build_codex_path(
|
|
602
|
+
allowlist_bin_dir: &Path,
|
|
603
|
+
sandbox_bin_dir: Option<&Path>,
|
|
604
|
+
) -> Result<OsString, String> {
|
|
605
|
+
let mut entries = vec![allowlist_bin_dir.to_path_buf()];
|
|
606
|
+
if let Some(sandbox_bin_dir) = sandbox_bin_dir {
|
|
607
|
+
entries.push(sandbox_bin_dir.to_path_buf());
|
|
608
|
+
}
|
|
609
|
+
env::join_paths(entries).map_err(|err| format!("failed to construct restricted PATH: {err}"))
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
fn prepare_sandbox_dependency_bin(root: &Path) -> Result<Option<PathBuf>, String> {
|
|
613
|
+
let Some(bwrap_path) = resolve_host_command("bwrap") else {
|
|
614
|
+
return Ok(None);
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
let sandbox_bin_dir = root.join("sandbox-bin");
|
|
618
|
+
create_dir_all(&sandbox_bin_dir).map_err(|err| {
|
|
619
|
+
format!(
|
|
620
|
+
"failed to create sandbox dependency bin dir {}: {err}",
|
|
621
|
+
sandbox_bin_dir.display()
|
|
622
|
+
)
|
|
623
|
+
})?;
|
|
624
|
+
write_executable(
|
|
625
|
+
&sandbox_bin_dir.join("bwrap"),
|
|
626
|
+
&format!(
|
|
627
|
+
"#!/bin/sh\nexec {} \"$@\"\n",
|
|
628
|
+
shell_quote(&bwrap_path.display().to_string())
|
|
629
|
+
),
|
|
630
|
+
)?;
|
|
631
|
+
Ok(Some(sandbox_bin_dir))
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
fn allowlist_platform_diagnostic(os: &str) -> Option<&'static str> {
|
|
635
|
+
if os.eq_ignore_ascii_case("windows") {
|
|
636
|
+
return Some(WINDOWS_UNSUPPORTED_ALLOWLIST_MESSAGE);
|
|
637
|
+
}
|
|
638
|
+
None
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
fn temp_allowlist_dir() -> Result<TempDirGuard, String> {
|
|
642
|
+
let dir = env::temp_dir().join(format!(
|
|
643
|
+
"rcs-explore-allowlist-{}-{}",
|
|
644
|
+
std::process::id(),
|
|
645
|
+
SystemTime::now()
|
|
646
|
+
.duration_since(UNIX_EPOCH)
|
|
647
|
+
.unwrap_or_default()
|
|
648
|
+
.as_nanos()
|
|
649
|
+
));
|
|
650
|
+
create_dir_all(&dir)
|
|
651
|
+
.map_err(|err| format!("failed to create allowlist dir {}: {err}", dir.display()))?;
|
|
652
|
+
Ok(TempDirGuard { path: dir })
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
fn write_executable(path: &Path, content: &str) -> Result<(), String> {
|
|
656
|
+
write(path, content)
|
|
657
|
+
.map_err(|err| format!("failed to write wrapper {}: {err}", path.display()))?;
|
|
658
|
+
#[cfg(unix)]
|
|
659
|
+
{
|
|
660
|
+
use std::fs;
|
|
661
|
+
use std::os::unix::fs::PermissionsExt;
|
|
662
|
+
let mut perms = fs::metadata(path)
|
|
663
|
+
.map_err(|err| format!("failed to stat wrapper {}: {err}", path.display()))?
|
|
664
|
+
.permissions();
|
|
665
|
+
perms.set_mode(0o755);
|
|
666
|
+
fs::set_permissions(path, perms)
|
|
667
|
+
.map_err(|err| format!("failed to chmod wrapper {}: {err}", path.display()))?;
|
|
668
|
+
}
|
|
669
|
+
Ok(())
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
fn build_direct_wrapper(self_exe: &Path, command: &str) -> Result<String, String> {
|
|
673
|
+
if let Some(real) = resolve_host_command(command) {
|
|
674
|
+
return Ok(format!(
|
|
675
|
+
"#!/bin/sh\nexec {} {} {} \"$@\"\n",
|
|
676
|
+
shell_quote(&self_exe.display().to_string()),
|
|
677
|
+
shell_quote(INTERNAL_DIRECT_WRAPPER_FLAG),
|
|
678
|
+
shell_quote(&format!("{command}:{}", real.display())),
|
|
679
|
+
));
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
if command != "rg" {
|
|
683
|
+
return Err(format!(
|
|
684
|
+
"failed to locate host command `{command}` for allowlist wrapper"
|
|
685
|
+
));
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
Ok(format!(
|
|
689
|
+
"#!/bin/sh\nprintf '%s\\n' {} >&2\nexit 127\n",
|
|
690
|
+
shell_quote(&format!(
|
|
691
|
+
"rcs explore allowlisted host command `{command}` is unavailable on this host"
|
|
692
|
+
)),
|
|
693
|
+
))
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
fn resolve_host_command(command: &str) -> Option<PathBuf> {
|
|
697
|
+
let candidate = Path::new(command);
|
|
698
|
+
if candidate.is_absolute()
|
|
699
|
+
&& is_usable_host_command(candidate)
|
|
700
|
+
&& !is_rcs_explore_allowlist_path(candidate)
|
|
701
|
+
{
|
|
702
|
+
return Some(candidate.to_path_buf());
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
let path = env::var_os("PATH")?;
|
|
706
|
+
for entry in env::split_paths(&path) {
|
|
707
|
+
let resolved = entry.join(command);
|
|
708
|
+
if is_usable_host_command(&resolved) && !is_rcs_explore_allowlist_path(&resolved) {
|
|
709
|
+
return Some(resolved);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
None
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
fn is_rcs_explore_allowlist_path(path: &Path) -> bool {
|
|
716
|
+
fn is_under_allowlist_bin(path: &Path) -> bool {
|
|
717
|
+
path.ancestors().any(|ancestor| {
|
|
718
|
+
let is_allowlist_root = ancestor
|
|
719
|
+
.file_name()
|
|
720
|
+
.and_then(|name| name.to_str())
|
|
721
|
+
.is_some_and(|name| name.starts_with(TEMP_ALLOWLIST_DIR_PREFIX));
|
|
722
|
+
if !is_allowlist_root {
|
|
723
|
+
return false;
|
|
724
|
+
}
|
|
725
|
+
path.strip_prefix(ancestor)
|
|
726
|
+
.ok()
|
|
727
|
+
.and_then(|relative| relative.components().next())
|
|
728
|
+
.is_some_and(|component| component.as_os_str() == "bin")
|
|
729
|
+
})
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
is_under_allowlist_bin(path)
|
|
733
|
+
|| canonicalize_existing_prefix(path)
|
|
734
|
+
.as_deref()
|
|
735
|
+
.is_some_and(is_under_allowlist_bin)
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
fn is_usable_host_command(path: &Path) -> bool {
|
|
739
|
+
let metadata = match path.metadata() {
|
|
740
|
+
Ok(metadata) => metadata,
|
|
741
|
+
Err(_) => return false,
|
|
742
|
+
};
|
|
743
|
+
if !metadata.is_file() {
|
|
744
|
+
return false;
|
|
745
|
+
}
|
|
746
|
+
#[cfg(unix)]
|
|
747
|
+
{
|
|
748
|
+
use std::os::unix::fs::PermissionsExt;
|
|
749
|
+
metadata.permissions().mode() & 0o111 != 0
|
|
750
|
+
}
|
|
751
|
+
#[cfg(not(unix))]
|
|
752
|
+
{
|
|
753
|
+
true
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
fn shell_quote(value: &str) -> String {
|
|
758
|
+
format!("'{}'", value.replace('\'', "'\"'\"'"))
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
fn sanitize_explore_subprocess_env(command: &mut Command) {
|
|
762
|
+
for key in SHELL_STARTUP_ENV_VARS {
|
|
763
|
+
command.env_remove(key);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
fn run_internal_direct_wrapper<I>(mut args: I) -> Result<(), String>
|
|
768
|
+
where
|
|
769
|
+
I: Iterator<Item = OsString>,
|
|
770
|
+
{
|
|
771
|
+
let spec = args
|
|
772
|
+
.next()
|
|
773
|
+
.ok_or_else(|| "missing direct wrapper spec".to_string())?;
|
|
774
|
+
let spec = spec.to_string_lossy();
|
|
775
|
+
let (command_name, real_path) = spec
|
|
776
|
+
.split_once(':')
|
|
777
|
+
.ok_or_else(|| format!("invalid direct wrapper spec: {spec}"))?;
|
|
778
|
+
let forwarded: Vec<String> = args.map(|arg| arg.to_string_lossy().into_owned()).collect();
|
|
779
|
+
validate_direct_command(command_name, &forwarded)?;
|
|
780
|
+
|
|
781
|
+
let status = Command::new(real_path)
|
|
782
|
+
.args(&forwarded)
|
|
783
|
+
.status()
|
|
784
|
+
.map_err(|err| format!("failed to execute allowlisted `{command_name}`: {err}"))?;
|
|
785
|
+
std::process::exit(status.code().unwrap_or(1));
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
fn run_internal_shell_wrapper<I>(mut args: I) -> Result<(), String>
|
|
789
|
+
where
|
|
790
|
+
I: Iterator<Item = OsString>,
|
|
791
|
+
{
|
|
792
|
+
let real_shell = args
|
|
793
|
+
.next()
|
|
794
|
+
.ok_or_else(|| "missing real shell path for internal wrapper".to_string())?;
|
|
795
|
+
let real_shell = real_shell.to_string_lossy().into_owned();
|
|
796
|
+
let forwarded: Vec<String> = args.map(|arg| arg.to_string_lossy().into_owned()).collect();
|
|
797
|
+
let command = validate_shell_invocation(&forwarded)?;
|
|
798
|
+
|
|
799
|
+
let mut child = Command::new(&real_shell);
|
|
800
|
+
if real_shell.ends_with("bash") {
|
|
801
|
+
child.arg("--noprofile").arg("--norc");
|
|
802
|
+
}
|
|
803
|
+
sanitize_explore_subprocess_env(&mut child);
|
|
804
|
+
let status = child
|
|
805
|
+
.arg("-lc")
|
|
806
|
+
.arg(&command)
|
|
807
|
+
.status()
|
|
808
|
+
.map_err(|err| format!("failed to execute validated shell command: {err}"))?;
|
|
809
|
+
std::process::exit(status.code().unwrap_or(1));
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
fn validate_shell_invocation(args: &[String]) -> Result<String, String> {
|
|
813
|
+
if args.len() != 2 {
|
|
814
|
+
return Err(format!(
|
|
815
|
+
"shell wrapper only accepts a single `-c` or `-lc` command, received {:?}",
|
|
816
|
+
args
|
|
817
|
+
));
|
|
818
|
+
}
|
|
819
|
+
if args[0] != "-c" && args[0] != "-lc" {
|
|
820
|
+
return Err(format!(
|
|
821
|
+
"shell wrapper only accepts `-c` or `-lc`, received `{}`",
|
|
822
|
+
args[0]
|
|
823
|
+
));
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
let command = args[1].trim();
|
|
827
|
+
if command.is_empty() {
|
|
828
|
+
return Err("shell wrapper received an empty command".to_string());
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
for fragment in ["\n", "\r", "&&", "||", ";", "|", ">", "<", "`", "$(", "${"] {
|
|
832
|
+
if command.contains(fragment) {
|
|
833
|
+
return Err(format!(
|
|
834
|
+
"shell wrapper rejected disallowed fragment `{fragment}` in `{command}`"
|
|
835
|
+
));
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
let tokens: Vec<String> = command
|
|
840
|
+
.split_whitespace()
|
|
841
|
+
.map(|token| token.trim_matches(|ch| ch == '"' || ch == '\'').to_string())
|
|
842
|
+
.filter(|token| !token.is_empty())
|
|
843
|
+
.collect();
|
|
844
|
+
let first = tokens
|
|
845
|
+
.first()
|
|
846
|
+
.ok_or_else(|| "shell wrapper could not determine the command name".to_string())?;
|
|
847
|
+
if first.contains('/') {
|
|
848
|
+
return Err(format!(
|
|
849
|
+
"shell wrapper rejected path-qualified command `{first}`; use allowlisted bare commands only"
|
|
850
|
+
));
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
validate_direct_command(first, &tokens[1..])?;
|
|
854
|
+
Ok(command.to_string())
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
fn validate_direct_command(command_name: &str, args: &[String]) -> Result<(), String> {
|
|
858
|
+
if !ALLOWED_DIRECT_COMMANDS.contains(&command_name) {
|
|
859
|
+
return Err(format!(
|
|
860
|
+
"command `{command_name}` is not on the rcs explore allowlist"
|
|
861
|
+
));
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
match command_name {
|
|
865
|
+
"rg" => {
|
|
866
|
+
if args
|
|
867
|
+
.iter()
|
|
868
|
+
.any(|arg| arg == "--pre" || arg.starts_with("--pre="))
|
|
869
|
+
{
|
|
870
|
+
return Err("ripgrep `--pre` is not allowed in rcs explore".to_string());
|
|
871
|
+
}
|
|
872
|
+
if args.iter().any(|arg| arg == "-") {
|
|
873
|
+
return Err("ripgrep stdin (`-`) is not allowed in rcs explore".to_string());
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
"grep" => {
|
|
877
|
+
if args.iter().any(|arg| arg == "-") {
|
|
878
|
+
return Err("grep stdin (`-`) is not allowed in rcs explore".to_string());
|
|
879
|
+
}
|
|
880
|
+
if non_option_operands(args).len() < 2 {
|
|
881
|
+
return Err(
|
|
882
|
+
"grep requires a pattern and at least one file/path in rcs explore".to_string(),
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
"find"
|
|
887
|
+
if args.iter().any(|arg| {
|
|
888
|
+
matches!(
|
|
889
|
+
arg.as_str(),
|
|
890
|
+
"-exec"
|
|
891
|
+
| "-execdir"
|
|
892
|
+
| "-ok"
|
|
893
|
+
| "-okdir"
|
|
894
|
+
| "-delete"
|
|
895
|
+
| "-fprint"
|
|
896
|
+
| "-fprint0"
|
|
897
|
+
| "-fprintf"
|
|
898
|
+
| "-fls"
|
|
899
|
+
)
|
|
900
|
+
}) =>
|
|
901
|
+
{
|
|
902
|
+
return Err(
|
|
903
|
+
"find actions that execute, delete, or write files are not allowed in rcs explore"
|
|
904
|
+
.to_string(),
|
|
905
|
+
);
|
|
906
|
+
}
|
|
907
|
+
"find" => {}
|
|
908
|
+
"cat" => {
|
|
909
|
+
let operands = non_option_operands(args);
|
|
910
|
+
if operands.is_empty() {
|
|
911
|
+
return Err("cat requires at least one file/path in rcs explore".to_string());
|
|
912
|
+
}
|
|
913
|
+
if operands.contains(&"-") {
|
|
914
|
+
return Err("cat stdin (`-`) is not allowed in rcs explore".to_string());
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
"head" | "wc" => {
|
|
918
|
+
let operands = non_option_operands(args);
|
|
919
|
+
if operands.is_empty() {
|
|
920
|
+
return Err(format!(
|
|
921
|
+
"{command_name} requires at least one file/path in rcs explore"
|
|
922
|
+
));
|
|
923
|
+
}
|
|
924
|
+
if operands.contains(&"-") {
|
|
925
|
+
return Err(format!(
|
|
926
|
+
"{command_name} stdin (`-`) is not allowed in rcs explore"
|
|
927
|
+
));
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
"tail" => {
|
|
931
|
+
let operands = non_option_operands(args);
|
|
932
|
+
if operands.is_empty() {
|
|
933
|
+
return Err("tail requires at least one file/path in rcs explore".to_string());
|
|
934
|
+
}
|
|
935
|
+
if operands.contains(&"-") {
|
|
936
|
+
return Err("tail stdin (`-`) is not allowed in rcs explore".to_string());
|
|
937
|
+
}
|
|
938
|
+
if args.iter().any(|arg| {
|
|
939
|
+
matches!(arg.as_str(), "-f" | "-F" | "--retry") || arg.starts_with("--follow")
|
|
940
|
+
}) {
|
|
941
|
+
return Err("tail follow/retry modes are not allowed in rcs explore".to_string());
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
_ => {}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
validate_repo_paths(command_name, args)?;
|
|
948
|
+
Ok(())
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
fn non_option_operands(args: &[String]) -> Vec<&str> {
|
|
952
|
+
let mut operands = Vec::new();
|
|
953
|
+
let mut after_double_dash = false;
|
|
954
|
+
for arg in args {
|
|
955
|
+
if after_double_dash {
|
|
956
|
+
operands.push(arg.as_str());
|
|
957
|
+
continue;
|
|
958
|
+
}
|
|
959
|
+
if arg == "--" {
|
|
960
|
+
after_double_dash = true;
|
|
961
|
+
continue;
|
|
962
|
+
}
|
|
963
|
+
if arg.starts_with('-') && arg != "-" {
|
|
964
|
+
continue;
|
|
965
|
+
}
|
|
966
|
+
operands.push(arg.as_str());
|
|
967
|
+
}
|
|
968
|
+
operands
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
fn validate_repo_paths(command_name: &str, args: &[String]) -> Result<(), String> {
|
|
972
|
+
let Some(repo_root) = env::var_os(HARNESS_ROOT_ENV).filter(|value| !value.is_empty()) else {
|
|
973
|
+
return Ok(());
|
|
974
|
+
};
|
|
975
|
+
let repo_root = normalize_path(PathBuf::from(repo_root));
|
|
976
|
+
let canonical_repo_root = canonicalize_existing_prefix(&repo_root);
|
|
977
|
+
let candidate_paths = command_path_operands(command_name, args);
|
|
978
|
+
for operand in candidate_paths {
|
|
979
|
+
let normalized = normalize_candidate_path(&repo_root, operand);
|
|
980
|
+
let canonical_candidate = canonicalize_existing_prefix(&normalized);
|
|
981
|
+
let is_textually_inside = normalized.starts_with(&repo_root);
|
|
982
|
+
let is_canonically_inside = match (&canonical_candidate, &canonical_repo_root) {
|
|
983
|
+
(Some(candidate), Some(root)) => candidate.starts_with(root),
|
|
984
|
+
_ => false,
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
if !is_textually_inside && !is_canonically_inside {
|
|
988
|
+
return Err(format!(
|
|
989
|
+
"path `{operand}` escapes the rcs explore repository root {}",
|
|
990
|
+
repo_root.display()
|
|
991
|
+
));
|
|
992
|
+
}
|
|
993
|
+
if is_textually_inside {
|
|
994
|
+
if let Some(canonical_candidate) = canonical_candidate {
|
|
995
|
+
if let Some(canonical_repo_root) = &canonical_repo_root {
|
|
996
|
+
if !canonical_candidate.starts_with(canonical_repo_root) {
|
|
997
|
+
return Err(format!(
|
|
998
|
+
"path `{operand}` resolves outside the rcs explore repository root {}",
|
|
999
|
+
canonical_repo_root.display()
|
|
1000
|
+
));
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
Ok(())
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
fn command_path_operands<'a>(command_name: &str, args: &'a [String]) -> Vec<&'a str> {
|
|
1010
|
+
let operands = non_option_operands(args);
|
|
1011
|
+
match command_name {
|
|
1012
|
+
"rg" => operands.into_iter().skip(1).collect(),
|
|
1013
|
+
"grep" => operands.into_iter().skip(1).collect(),
|
|
1014
|
+
"find" => {
|
|
1015
|
+
let mut paths = Vec::new();
|
|
1016
|
+
for arg in args {
|
|
1017
|
+
let value = arg.as_str();
|
|
1018
|
+
if matches!(value, "!" | "(" | ")") || value.starts_with('-') {
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
paths.push(value);
|
|
1022
|
+
}
|
|
1023
|
+
paths
|
|
1024
|
+
}
|
|
1025
|
+
"ls" | "cat" | "head" | "tail" | "wc" => operands,
|
|
1026
|
+
_ => Vec::new(),
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
fn normalize_candidate_path(repo_root: &Path, operand: &str) -> PathBuf {
|
|
1031
|
+
let candidate = Path::new(operand);
|
|
1032
|
+
if candidate.is_absolute() {
|
|
1033
|
+
normalize_path(candidate.to_path_buf())
|
|
1034
|
+
} else {
|
|
1035
|
+
normalize_path(repo_root.join(candidate))
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
fn normalize_path(path: PathBuf) -> PathBuf {
|
|
1040
|
+
use std::path::Component;
|
|
1041
|
+
|
|
1042
|
+
let mut normalized = PathBuf::new();
|
|
1043
|
+
for component in path.components() {
|
|
1044
|
+
match component {
|
|
1045
|
+
Component::CurDir => {}
|
|
1046
|
+
Component::ParentDir => {
|
|
1047
|
+
normalized.pop();
|
|
1048
|
+
}
|
|
1049
|
+
Component::RootDir | Component::Prefix(_) | Component::Normal(_) => {
|
|
1050
|
+
normalized.push(component.as_os_str());
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
normalized
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
fn canonicalize_existing_prefix(path: &Path) -> Option<PathBuf> {
|
|
1058
|
+
let mut probe = path;
|
|
1059
|
+
let mut suffix: Vec<&std::ffi::OsStr> = Vec::new();
|
|
1060
|
+
|
|
1061
|
+
loop {
|
|
1062
|
+
if probe.exists() {
|
|
1063
|
+
let mut canonical = canonicalize(probe).ok()?;
|
|
1064
|
+
for segment in suffix.iter().rev() {
|
|
1065
|
+
canonical.push(segment);
|
|
1066
|
+
}
|
|
1067
|
+
return Some(normalize_path(canonical));
|
|
1068
|
+
}
|
|
1069
|
+
let name = probe.file_name()?;
|
|
1070
|
+
suffix.push(name);
|
|
1071
|
+
probe = probe.parent()?;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
#[cfg(test)]
|
|
1076
|
+
#[allow(unused_unsafe)]
|
|
1077
|
+
mod tests {
|
|
1078
|
+
use super::*;
|
|
1079
|
+
use std::sync::{Mutex, OnceLock};
|
|
1080
|
+
|
|
1081
|
+
#[cfg(unix)]
|
|
1082
|
+
use std::os::unix::fs::symlink;
|
|
1083
|
+
|
|
1084
|
+
fn env_lock() -> std::sync::MutexGuard<'static, ()> {
|
|
1085
|
+
static LOCK: OnceLock<Mutex<()>> = OnceLock::new();
|
|
1086
|
+
LOCK.get_or_init(|| Mutex::new(()))
|
|
1087
|
+
.lock()
|
|
1088
|
+
.unwrap_or_else(|poisoned| poisoned.into_inner())
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
#[test]
|
|
1092
|
+
fn parse_args_requires_all_fields() {
|
|
1093
|
+
let result = parse_args(vec![OsString::from("--cwd")].into_iter());
|
|
1094
|
+
assert!(result.is_err());
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
#[test]
|
|
1098
|
+
fn parse_args_accepts_full_contract() {
|
|
1099
|
+
let args = parse_args(
|
|
1100
|
+
vec![
|
|
1101
|
+
"--cwd",
|
|
1102
|
+
"/tmp/repo",
|
|
1103
|
+
"--prompt",
|
|
1104
|
+
"find auth",
|
|
1105
|
+
"--prompt-file",
|
|
1106
|
+
"/tmp/explore.md",
|
|
1107
|
+
"--instructions-file",
|
|
1108
|
+
"/tmp/explore-agents.md",
|
|
1109
|
+
"--model-spark",
|
|
1110
|
+
"gpt-5.3-codex-spark",
|
|
1111
|
+
"--model-fallback",
|
|
1112
|
+
"gpt-5.5",
|
|
1113
|
+
]
|
|
1114
|
+
.into_iter()
|
|
1115
|
+
.map(OsString::from),
|
|
1116
|
+
)
|
|
1117
|
+
.expect("args");
|
|
1118
|
+
|
|
1119
|
+
assert_eq!(args.cwd, Path::new("/tmp/repo"));
|
|
1120
|
+
assert_eq!(args.prompt, "find auth");
|
|
1121
|
+
assert_eq!(args.prompt_file, Path::new("/tmp/explore.md"));
|
|
1122
|
+
assert_eq!(args.instructions_file, Path::new("/tmp/explore-agents.md"));
|
|
1123
|
+
assert_eq!(args.spark_model, "gpt-5.3-codex-spark");
|
|
1124
|
+
assert_eq!(args.fallback_model, "gpt-5.5");
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
#[test]
|
|
1128
|
+
fn compose_exec_prompt_mentions_read_only_constraints() {
|
|
1129
|
+
let prompt = compose_exec_prompt("find auth", "contract body");
|
|
1130
|
+
assert!(prompt.contains("read-only repository exploration harness"));
|
|
1131
|
+
assert!(prompt.contains("Preferred commands: rg, grep"));
|
|
1132
|
+
assert!(prompt.contains("Always return markdown only"));
|
|
1133
|
+
assert!(prompt.contains("contract body"));
|
|
1134
|
+
assert!(prompt.contains("find auth"));
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
#[test]
|
|
1138
|
+
fn resolve_codex_binary_prefers_env_override() {
|
|
1139
|
+
let _guard = env_lock();
|
|
1140
|
+
unsafe {
|
|
1141
|
+
env::set_var(CODEX_BIN_ENV, "/tmp/codex-stub");
|
|
1142
|
+
}
|
|
1143
|
+
assert_eq!(resolve_codex_binary(), "/tmp/codex-stub");
|
|
1144
|
+
unsafe {
|
|
1145
|
+
env::remove_var(CODEX_BIN_ENV);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
#[test]
|
|
1150
|
+
fn resolve_codex_binary_resolves_bare_env_override_from_path() {
|
|
1151
|
+
let _guard = env_lock();
|
|
1152
|
+
let root = TempDirGuard {
|
|
1153
|
+
path: env::temp_dir().join(format!(
|
|
1154
|
+
"rcs-explore-resolve-codex-binary-{}-{}",
|
|
1155
|
+
std::process::id(),
|
|
1156
|
+
SystemTime::now()
|
|
1157
|
+
.duration_since(UNIX_EPOCH)
|
|
1158
|
+
.unwrap_or_default()
|
|
1159
|
+
.as_nanos()
|
|
1160
|
+
)),
|
|
1161
|
+
};
|
|
1162
|
+
create_dir_all(&root.path).expect("create temp root");
|
|
1163
|
+
let bin_dir = root.path.join("bin");
|
|
1164
|
+
create_dir_all(&bin_dir).expect("create bin");
|
|
1165
|
+
let fake_codex = bin_dir.join("codex-custom");
|
|
1166
|
+
write(&fake_codex, b"#!/bin/sh\nexit 0\n").expect("write fake codex");
|
|
1167
|
+
write_executable(&fake_codex, "#!/bin/sh\nexit 0\n").expect("chmod fake codex");
|
|
1168
|
+
|
|
1169
|
+
let original_path = env::var_os("PATH");
|
|
1170
|
+
unsafe {
|
|
1171
|
+
env::set_var(CODEX_BIN_ENV, "codex-custom");
|
|
1172
|
+
env::set_var("PATH", &bin_dir);
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
let resolved = resolve_codex_binary();
|
|
1176
|
+
|
|
1177
|
+
unsafe {
|
|
1178
|
+
env::remove_var(CODEX_BIN_ENV);
|
|
1179
|
+
}
|
|
1180
|
+
match original_path {
|
|
1181
|
+
Some(value) => unsafe { env::set_var("PATH", value) },
|
|
1182
|
+
None => unsafe { env::remove_var("PATH") },
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
assert_eq!(resolved, fake_codex.display().to_string());
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
#[test]
|
|
1189
|
+
fn codex_launch_for_env_node_shebang_uses_host_node_absolute_path() {
|
|
1190
|
+
let _guard = env_lock();
|
|
1191
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1192
|
+
let script_path = root.path.join("codex-script");
|
|
1193
|
+
write(&script_path, b"#!/usr/bin/env node\nconsole.log(\"ok\");\n").expect("write script");
|
|
1194
|
+
|
|
1195
|
+
let launch = codex_launch_for_binary(script_path.to_str().expect("script path"))
|
|
1196
|
+
.expect("launch config");
|
|
1197
|
+
let expected_node = resolve_host_command("node").expect("host node path");
|
|
1198
|
+
assert_eq!(launch.program, expected_node.display().to_string());
|
|
1199
|
+
assert_eq!(launch.leading_args, vec![script_path.display().to_string()]);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
#[cfg(unix)]
|
|
1203
|
+
#[test]
|
|
1204
|
+
fn codex_launch_for_posix_package_manager_shim_uses_host_node_and_entrypoint() {
|
|
1205
|
+
let _guard = env_lock();
|
|
1206
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1207
|
+
let host_bin = root.path.join("host-bin");
|
|
1208
|
+
let shim_dir = root.path.join("node_modules").join(".bin");
|
|
1209
|
+
let entrypoint = root
|
|
1210
|
+
.path
|
|
1211
|
+
.join("node_modules")
|
|
1212
|
+
.join("@openai")
|
|
1213
|
+
.join("codex")
|
|
1214
|
+
.join("bin")
|
|
1215
|
+
.join("codex.js");
|
|
1216
|
+
create_dir_all(&host_bin).expect("create host bin");
|
|
1217
|
+
create_dir_all(&shim_dir).expect("create shim dir");
|
|
1218
|
+
create_dir_all(entrypoint.parent().expect("entrypoint parent"))
|
|
1219
|
+
.expect("create entrypoint dir");
|
|
1220
|
+
|
|
1221
|
+
let fake_node = host_bin.join("node");
|
|
1222
|
+
write_executable(&fake_node, "#!/bin/sh\nexit 0\n").expect("write fake node");
|
|
1223
|
+
write(&entrypoint, "console.log('ok');\n").expect("write entrypoint");
|
|
1224
|
+
|
|
1225
|
+
let shim_path = shim_dir.join("codex");
|
|
1226
|
+
write_executable(
|
|
1227
|
+
&shim_path,
|
|
1228
|
+
r#"#!/bin/sh
|
|
1229
|
+
basedir=$(dirname "$0")
|
|
1230
|
+
if [ -x "$basedir/node" ]; then
|
|
1231
|
+
exec "$basedir/node" "$basedir/../@openai/codex/bin/codex.js" "$@"
|
|
1232
|
+
fi
|
|
1233
|
+
exec node "$basedir/../@openai/codex/bin/codex.js" "$@"
|
|
1234
|
+
"#,
|
|
1235
|
+
)
|
|
1236
|
+
.expect("write shim");
|
|
1237
|
+
|
|
1238
|
+
let original_path = env::var_os("PATH");
|
|
1239
|
+
unsafe {
|
|
1240
|
+
env::set_var("PATH", &host_bin);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
let launch =
|
|
1244
|
+
codex_launch_for_binary(shim_path.to_str().expect("shim path")).expect("launch config");
|
|
1245
|
+
|
|
1246
|
+
match original_path {
|
|
1247
|
+
Some(value) => unsafe { env::set_var("PATH", value) },
|
|
1248
|
+
None => unsafe { env::remove_var("PATH") },
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
assert_eq!(launch.program, fake_node.display().to_string());
|
|
1252
|
+
assert_eq!(launch.leading_args, vec![entrypoint.display().to_string()]);
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
#[cfg(unix)]
|
|
1256
|
+
#[test]
|
|
1257
|
+
fn resolve_host_command_skips_directory_and_non_executable_path_entries() {
|
|
1258
|
+
let _guard = env_lock();
|
|
1259
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1260
|
+
let bad_bin = root.path.join("bad-bin");
|
|
1261
|
+
let blocked_file_bin = root.path.join("blocked-file-bin");
|
|
1262
|
+
let good_bin = root.path.join("good-bin");
|
|
1263
|
+
create_dir_all(&bad_bin).expect("create bad bin");
|
|
1264
|
+
create_dir_all(&blocked_file_bin).expect("create blocked file bin");
|
|
1265
|
+
create_dir_all(&good_bin).expect("create good bin");
|
|
1266
|
+
|
|
1267
|
+
let blocked_directory = bad_bin.join("node");
|
|
1268
|
+
create_dir_all(blocked_directory).expect("create blocked directory");
|
|
1269
|
+
|
|
1270
|
+
let blocked_node = blocked_file_bin.join("node");
|
|
1271
|
+
write(&blocked_node, "#!/bin/sh\nexit 0\n").expect("write blocked file node");
|
|
1272
|
+
let executable_node = good_bin.join("node");
|
|
1273
|
+
write_executable(&executable_node, "#!/bin/sh\nexit 0\n").expect("write executable node");
|
|
1274
|
+
|
|
1275
|
+
#[cfg(unix)]
|
|
1276
|
+
{
|
|
1277
|
+
use std::fs;
|
|
1278
|
+
use std::os::unix::fs::PermissionsExt;
|
|
1279
|
+
let mut perms = fs::metadata(&blocked_node)
|
|
1280
|
+
.expect("stat blocked node")
|
|
1281
|
+
.permissions();
|
|
1282
|
+
perms.set_mode(0o644);
|
|
1283
|
+
fs::set_permissions(&blocked_node, perms).expect("chmod blocked node");
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
let original_path = env::var_os("PATH");
|
|
1287
|
+
unsafe {
|
|
1288
|
+
env::set_var(
|
|
1289
|
+
"PATH",
|
|
1290
|
+
env::join_paths([
|
|
1291
|
+
bad_bin.as_path(),
|
|
1292
|
+
blocked_file_bin.as_path(),
|
|
1293
|
+
good_bin.as_path(),
|
|
1294
|
+
])
|
|
1295
|
+
.expect("join path"),
|
|
1296
|
+
);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
let resolved = resolve_host_command("node");
|
|
1300
|
+
|
|
1301
|
+
match original_path {
|
|
1302
|
+
Some(value) => unsafe { env::set_var("PATH", value) },
|
|
1303
|
+
None => unsafe { env::remove_var("PATH") },
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
assert_eq!(resolved, Some(executable_node));
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
#[cfg(unix)]
|
|
1310
|
+
#[test]
|
|
1311
|
+
fn codex_launch_for_env_node_shebang_skips_non_executable_earlier_node_entry() {
|
|
1312
|
+
let _guard = env_lock();
|
|
1313
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1314
|
+
let bad_bin = root.path.join("bad-bin");
|
|
1315
|
+
let good_bin = root.path.join("good-bin");
|
|
1316
|
+
create_dir_all(&bad_bin).expect("create bad bin");
|
|
1317
|
+
create_dir_all(&good_bin).expect("create good bin");
|
|
1318
|
+
|
|
1319
|
+
let blocked_node = bad_bin.join("node");
|
|
1320
|
+
write(&blocked_node, "#!/bin/sh\nexit 0\n").expect("write blocked node");
|
|
1321
|
+
let executable_node = good_bin.join("node");
|
|
1322
|
+
write_executable(&executable_node, "#!/bin/sh\nexit 0\n").expect("write executable node");
|
|
1323
|
+
|
|
1324
|
+
#[cfg(unix)]
|
|
1325
|
+
{
|
|
1326
|
+
use std::fs;
|
|
1327
|
+
use std::os::unix::fs::PermissionsExt;
|
|
1328
|
+
let mut perms = fs::metadata(&blocked_node)
|
|
1329
|
+
.expect("stat blocked node")
|
|
1330
|
+
.permissions();
|
|
1331
|
+
perms.set_mode(0o644);
|
|
1332
|
+
fs::set_permissions(&blocked_node, perms).expect("chmod blocked node");
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
let script_path = root.path.join("codex-script");
|
|
1336
|
+
write(&script_path, b"#!/usr/bin/env node\nconsole.log(\"ok\");\n").expect("write script");
|
|
1337
|
+
|
|
1338
|
+
let original_path = env::var_os("PATH");
|
|
1339
|
+
unsafe {
|
|
1340
|
+
env::set_var(
|
|
1341
|
+
"PATH",
|
|
1342
|
+
env::join_paths([bad_bin.as_path(), good_bin.as_path()]).expect("join path"),
|
|
1343
|
+
);
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
let launch = codex_launch_for_binary(script_path.to_str().expect("script path"))
|
|
1347
|
+
.expect("launch config");
|
|
1348
|
+
|
|
1349
|
+
match original_path {
|
|
1350
|
+
Some(value) => unsafe { env::set_var("PATH", value) },
|
|
1351
|
+
None => unsafe { env::remove_var("PATH") },
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
assert_eq!(launch.program, executable_node.display().to_string());
|
|
1355
|
+
assert_eq!(launch.leading_args, vec![script_path.display().to_string()]);
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
#[cfg(unix)]
|
|
1359
|
+
fn create_host_bin_with_commands(commands: &[&str]) -> (TempDirGuard, PathBuf) {
|
|
1360
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1361
|
+
let host_bin = root.path.join("host-bin");
|
|
1362
|
+
create_dir_all(&host_bin).expect("create host bin");
|
|
1363
|
+
for command in commands {
|
|
1364
|
+
let resolved =
|
|
1365
|
+
resolve_host_command(command).unwrap_or_else(|| panic!("host {command} path"));
|
|
1366
|
+
symlink(&resolved, host_bin.join(command))
|
|
1367
|
+
.unwrap_or_else(|err| panic!("symlink {command}: {err}"));
|
|
1368
|
+
}
|
|
1369
|
+
(root, host_bin)
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
#[cfg(unix)]
|
|
1373
|
+
fn with_path<T>(path: &Path, f: impl FnOnce() -> T) -> T {
|
|
1374
|
+
let original_path = env::var_os("PATH");
|
|
1375
|
+
unsafe {
|
|
1376
|
+
env::set_var("PATH", path);
|
|
1377
|
+
}
|
|
1378
|
+
let result = f();
|
|
1379
|
+
match original_path {
|
|
1380
|
+
Some(value) => unsafe { env::set_var("PATH", value) },
|
|
1381
|
+
None => unsafe { env::remove_var("PATH") },
|
|
1382
|
+
}
|
|
1383
|
+
result
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
#[test]
|
|
1387
|
+
fn build_codex_path_keeps_allowlist_first_and_only_adds_sandbox_bin() {
|
|
1388
|
+
let allowlist_bin = Path::new("/tmp/rcs-explore-allowlist/bin");
|
|
1389
|
+
let sandbox_bin = Path::new("/tmp/rcs-explore-sandbox-bin");
|
|
1390
|
+
|
|
1391
|
+
let path = build_codex_path(allowlist_bin, Some(sandbox_bin)).expect("restricted path");
|
|
1392
|
+
let entries: Vec<PathBuf> = env::split_paths(&path).collect();
|
|
1393
|
+
|
|
1394
|
+
assert_eq!(
|
|
1395
|
+
entries,
|
|
1396
|
+
vec![allowlist_bin.to_path_buf(), sandbox_bin.to_path_buf()]
|
|
1397
|
+
);
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
#[test]
|
|
1401
|
+
fn build_codex_path_omits_sandbox_bin_when_bwrap_is_absent() {
|
|
1402
|
+
let allowlist_bin = Path::new("/tmp/rcs-explore-allowlist/bin");
|
|
1403
|
+
|
|
1404
|
+
let path = build_codex_path(allowlist_bin, None).expect("restricted path");
|
|
1405
|
+
let entries: Vec<PathBuf> = env::split_paths(&path).collect();
|
|
1406
|
+
|
|
1407
|
+
assert_eq!(entries, vec![allowlist_bin.to_path_buf()]);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
#[cfg(unix)]
|
|
1411
|
+
#[test]
|
|
1412
|
+
fn prepare_allowlist_environment_adds_controlled_bwrap_without_host_path() {
|
|
1413
|
+
let _guard = env_lock();
|
|
1414
|
+
let mut commands = vec!["bash", "sh"];
|
|
1415
|
+
commands.extend(
|
|
1416
|
+
ALLOWED_DIRECT_COMMANDS
|
|
1417
|
+
.iter()
|
|
1418
|
+
.copied()
|
|
1419
|
+
.filter(|command| *command != "rg"),
|
|
1420
|
+
);
|
|
1421
|
+
let (_root, host_bin) = create_host_bin_with_commands(&commands);
|
|
1422
|
+
let fake_bwrap = host_bin.join("bwrap");
|
|
1423
|
+
write_executable(&fake_bwrap, "#!/bin/sh\nexit 0\n").expect("write fake bwrap");
|
|
1424
|
+
|
|
1425
|
+
let allowlist =
|
|
1426
|
+
with_path(&host_bin, prepare_allowlist_environment).expect("allowlist environment");
|
|
1427
|
+
let sandbox_bin = allowlist
|
|
1428
|
+
.sandbox_bin_dir
|
|
1429
|
+
.as_ref()
|
|
1430
|
+
.expect("sandbox bin when bwrap exists");
|
|
1431
|
+
let path = build_codex_path(&allowlist.bin_dir, allowlist.sandbox_bin_dir.as_deref())
|
|
1432
|
+
.expect("codex path");
|
|
1433
|
+
let entries: Vec<PathBuf> = env::split_paths(&path).collect();
|
|
1434
|
+
|
|
1435
|
+
assert_eq!(
|
|
1436
|
+
entries,
|
|
1437
|
+
vec![allowlist.bin_dir.clone(), sandbox_bin.clone()]
|
|
1438
|
+
);
|
|
1439
|
+
assert!(!entries.contains(&host_bin));
|
|
1440
|
+
let controlled_bwrap =
|
|
1441
|
+
read_to_string(sandbox_bin.join("bwrap")).expect("read controlled bwrap");
|
|
1442
|
+
assert!(controlled_bwrap.contains(&fake_bwrap.display().to_string()));
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
#[cfg(unix)]
|
|
1446
|
+
#[test]
|
|
1447
|
+
fn prepare_allowlist_environment_leaves_path_allowlist_only_without_bwrap() {
|
|
1448
|
+
let _guard = env_lock();
|
|
1449
|
+
let mut commands = vec!["bash", "sh"];
|
|
1450
|
+
commands.extend(
|
|
1451
|
+
ALLOWED_DIRECT_COMMANDS
|
|
1452
|
+
.iter()
|
|
1453
|
+
.copied()
|
|
1454
|
+
.filter(|command| *command != "rg"),
|
|
1455
|
+
);
|
|
1456
|
+
let (_root, host_bin) = create_host_bin_with_commands(&commands);
|
|
1457
|
+
|
|
1458
|
+
let allowlist =
|
|
1459
|
+
with_path(&host_bin, prepare_allowlist_environment).expect("allowlist environment");
|
|
1460
|
+
let path = build_codex_path(&allowlist.bin_dir, allowlist.sandbox_bin_dir.as_deref())
|
|
1461
|
+
.expect("codex path");
|
|
1462
|
+
let entries: Vec<PathBuf> = env::split_paths(&path).collect();
|
|
1463
|
+
|
|
1464
|
+
assert!(allowlist.sandbox_bin_dir.is_none());
|
|
1465
|
+
assert_eq!(entries, vec![allowlist.bin_dir]);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
#[cfg(unix)]
|
|
1469
|
+
#[test]
|
|
1470
|
+
fn prepare_allowlist_environment_tolerates_missing_rg_by_stubbing_wrapper() {
|
|
1471
|
+
let _guard = env_lock();
|
|
1472
|
+
let mut commands = vec!["bash", "sh"];
|
|
1473
|
+
commands.extend(
|
|
1474
|
+
ALLOWED_DIRECT_COMMANDS
|
|
1475
|
+
.iter()
|
|
1476
|
+
.copied()
|
|
1477
|
+
.filter(|command| *command != "rg"),
|
|
1478
|
+
);
|
|
1479
|
+
let (_root, host_bin) = create_host_bin_with_commands(&commands);
|
|
1480
|
+
|
|
1481
|
+
let allowlist =
|
|
1482
|
+
with_path(&host_bin, prepare_allowlist_environment).expect("allowlist environment");
|
|
1483
|
+
let rg_output = Command::new(allowlist.bin_dir.join("rg"))
|
|
1484
|
+
.arg("needle")
|
|
1485
|
+
.arg("src")
|
|
1486
|
+
.output()
|
|
1487
|
+
.expect("run rg stub");
|
|
1488
|
+
|
|
1489
|
+
assert_eq!(rg_output.status.code(), Some(127));
|
|
1490
|
+
assert!(String::from_utf8_lossy(&rg_output.stderr).contains("`rg` is unavailable"));
|
|
1491
|
+
assert!(allowlist.bin_dir.join("grep").exists());
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
#[cfg(unix)]
|
|
1495
|
+
#[test]
|
|
1496
|
+
fn prepare_allowlist_environment_still_fails_fast_when_non_rg_command_is_missing() {
|
|
1497
|
+
let _guard = env_lock();
|
|
1498
|
+
let mut commands = vec!["bash", "sh"];
|
|
1499
|
+
commands.extend(
|
|
1500
|
+
ALLOWED_DIRECT_COMMANDS
|
|
1501
|
+
.iter()
|
|
1502
|
+
.copied()
|
|
1503
|
+
.filter(|command| *command != "grep" && *command != "rg"),
|
|
1504
|
+
);
|
|
1505
|
+
let (_root, host_bin) = create_host_bin_with_commands(&commands);
|
|
1506
|
+
|
|
1507
|
+
let error = with_path(&host_bin, prepare_allowlist_environment)
|
|
1508
|
+
.expect_err("missing non-rg command should fail");
|
|
1509
|
+
|
|
1510
|
+
assert!(error.contains("failed to locate host command `grep`"));
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
#[cfg(unix)]
|
|
1514
|
+
#[test]
|
|
1515
|
+
fn prepare_allowlist_environment_preserves_present_command_wrapper_execution() {
|
|
1516
|
+
let _guard = env_lock();
|
|
1517
|
+
let self_exe = env::current_exe().expect("current exe");
|
|
1518
|
+
let pwd = resolve_host_command("pwd").expect("host pwd path");
|
|
1519
|
+
|
|
1520
|
+
let wrapper = build_direct_wrapper(&self_exe, "pwd").expect("pwd wrapper");
|
|
1521
|
+
|
|
1522
|
+
assert!(wrapper.contains(INTERNAL_DIRECT_WRAPPER_FLAG));
|
|
1523
|
+
assert!(wrapper.contains(&self_exe.display().to_string()));
|
|
1524
|
+
assert!(wrapper.contains(&format!("pwd:{}", pwd.display())));
|
|
1525
|
+
assert!(!wrapper.contains("exit 127"));
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
#[cfg(unix)]
|
|
1529
|
+
#[test]
|
|
1530
|
+
fn resolve_host_command_skips_rcs_explore_allowlist_wrappers() {
|
|
1531
|
+
let _guard = env_lock();
|
|
1532
|
+
let allowlist_root = temp_allowlist_dir().expect("allowlist root");
|
|
1533
|
+
let real_root = TempDirGuard {
|
|
1534
|
+
path: env::temp_dir().join(format!(
|
|
1535
|
+
"rcs-explore-host-resolution-{}-{}",
|
|
1536
|
+
std::process::id(),
|
|
1537
|
+
SystemTime::now()
|
|
1538
|
+
.duration_since(UNIX_EPOCH)
|
|
1539
|
+
.unwrap_or_default()
|
|
1540
|
+
.as_nanos()
|
|
1541
|
+
)),
|
|
1542
|
+
};
|
|
1543
|
+
create_dir_all(&real_root.path).expect("create real root");
|
|
1544
|
+
let real_bin = real_root.path.join("real-bin");
|
|
1545
|
+
let allowlist_bin = allowlist_root
|
|
1546
|
+
.path
|
|
1547
|
+
.join(format!("{TEMP_ALLOWLIST_DIR_PREFIX}fixture"))
|
|
1548
|
+
.join("bin");
|
|
1549
|
+
create_dir_all(&real_bin).expect("create real bin");
|
|
1550
|
+
create_dir_all(&allowlist_bin).expect("create allowlist bin");
|
|
1551
|
+
|
|
1552
|
+
let real_grep = real_bin.join("grep");
|
|
1553
|
+
write_executable(&real_grep, "#!/bin/sh\nexit 0\n").expect("write real grep");
|
|
1554
|
+
let wrapper_grep = allowlist_bin.join("grep");
|
|
1555
|
+
write_executable(&wrapper_grep, "#!/bin/sh\nexit 0\n").expect("write wrapper grep");
|
|
1556
|
+
|
|
1557
|
+
let original_path = env::var_os("PATH");
|
|
1558
|
+
unsafe {
|
|
1559
|
+
env::set_var(
|
|
1560
|
+
"PATH",
|
|
1561
|
+
env::join_paths([allowlist_bin.as_path(), real_bin.as_path()]).expect("join path"),
|
|
1562
|
+
);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
let resolved = resolve_host_command("grep");
|
|
1566
|
+
|
|
1567
|
+
match original_path {
|
|
1568
|
+
Some(value) => unsafe { env::set_var("PATH", value) },
|
|
1569
|
+
None => unsafe { env::remove_var("PATH") },
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
assert_eq!(resolved, Some(real_grep));
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
#[cfg(unix)]
|
|
1576
|
+
#[test]
|
|
1577
|
+
fn resolve_host_command_rejects_absolute_allowlist_wrapper_paths() {
|
|
1578
|
+
let _guard = env_lock();
|
|
1579
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1580
|
+
let wrapper_dir = root
|
|
1581
|
+
.path
|
|
1582
|
+
.join(format!("{TEMP_ALLOWLIST_DIR_PREFIX}fixture"))
|
|
1583
|
+
.join("bin");
|
|
1584
|
+
create_dir_all(&wrapper_dir).expect("create wrapper dir");
|
|
1585
|
+
let wrapper = wrapper_dir.join("grep");
|
|
1586
|
+
write_executable(&wrapper, "#!/bin/sh\nexit 0\n").expect("write wrapper");
|
|
1587
|
+
|
|
1588
|
+
assert_eq!(
|
|
1589
|
+
resolve_host_command(wrapper.to_str().expect("wrapper path")),
|
|
1590
|
+
None
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
#[test]
|
|
1595
|
+
fn discover_codex_support_dirs_includes_home_rcs_and_codex_when_present() {
|
|
1596
|
+
let _guard = env_lock();
|
|
1597
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1598
|
+
let home_dir = root.path.join("home");
|
|
1599
|
+
create_dir_all(home_dir.join(".rcs")).expect("create .rcs");
|
|
1600
|
+
create_dir_all(home_dir.join(".codex")).expect("create .codex");
|
|
1601
|
+
let original_home = env::var_os("HOME");
|
|
1602
|
+
unsafe {
|
|
1603
|
+
env::set_var("HOME", &home_dir);
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
let dirs = discover_codex_support_dirs();
|
|
1607
|
+
|
|
1608
|
+
match original_home {
|
|
1609
|
+
Some(value) => unsafe { env::set_var("HOME", value) },
|
|
1610
|
+
None => unsafe { env::remove_var("HOME") },
|
|
1611
|
+
}
|
|
1612
|
+
assert_eq!(dirs, vec![home_dir.join(".rcs"), home_dir.join(".codex")]);
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
#[test]
|
|
1616
|
+
fn validate_shell_invocation_rejects_control_operators_and_paths() {
|
|
1617
|
+
assert!(validate_shell_invocation(&["-lc".into(), "rg auth src".into()]).is_ok());
|
|
1618
|
+
assert!(validate_shell_invocation(&["-lc".into(), "rg auth src | head".into()]).is_err());
|
|
1619
|
+
assert!(validate_shell_invocation(&["-lc".into(), "/usr/bin/rg auth src".into()]).is_err());
|
|
1620
|
+
assert!(validate_shell_invocation(&["-lc".into(), "find . -exec rm {} +".into()]).is_err());
|
|
1621
|
+
assert!(validate_shell_invocation(&["-lc".into(), "tail -f README.md".into()]).is_err());
|
|
1622
|
+
assert!(
|
|
1623
|
+
validate_shell_invocation(&["-lc".into(), "sed -n 1,5p README.md".into()]).is_err()
|
|
1624
|
+
);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
#[test]
|
|
1628
|
+
fn validate_direct_command_blocks_risky_flags() {
|
|
1629
|
+
assert!(validate_direct_command("rg", &["needle".into(), "src".into()]).is_ok());
|
|
1630
|
+
assert!(validate_direct_command("rg", &["--pre=python".into(), "needle".into()]).is_err());
|
|
1631
|
+
assert!(validate_direct_command("rg", &["needle".into(), "-".into()]).is_err());
|
|
1632
|
+
assert!(validate_direct_command("grep", &["needle".into(), "src/file.ts".into()]).is_ok());
|
|
1633
|
+
assert!(validate_direct_command("grep", &["needle".into()]).is_err());
|
|
1634
|
+
assert!(validate_direct_command("grep", &["needle".into(), "-".into()]).is_err());
|
|
1635
|
+
assert!(validate_direct_command("find", &[".".into(), "-type".into(), "f".into()]).is_ok());
|
|
1636
|
+
assert!(validate_direct_command("find", &[".".into(), "-delete".into()]).is_err());
|
|
1637
|
+
assert!(validate_direct_command(
|
|
1638
|
+
"find",
|
|
1639
|
+
&[".".into(), "-fprint".into(), "/tmp/out".into()]
|
|
1640
|
+
)
|
|
1641
|
+
.is_err());
|
|
1642
|
+
assert!(validate_direct_command("cat", &["README.md".into()]).is_ok());
|
|
1643
|
+
assert!(validate_direct_command("cat", &[]).is_err());
|
|
1644
|
+
assert!(validate_direct_command("cat", &["-".into()]).is_err());
|
|
1645
|
+
assert!(validate_direct_command("head", &["README.md".into()]).is_ok());
|
|
1646
|
+
assert!(validate_direct_command("head", &[]).is_err());
|
|
1647
|
+
assert!(validate_direct_command("wc", &["README.md".into()]).is_ok());
|
|
1648
|
+
assert!(validate_direct_command("wc", &["-".into()]).is_err());
|
|
1649
|
+
assert!(validate_direct_command("tail", &["README.md".into()]).is_ok());
|
|
1650
|
+
assert!(validate_direct_command("tail", &[]).is_err());
|
|
1651
|
+
assert!(validate_direct_command("tail", &["-f".into(), "README.md".into()]).is_err());
|
|
1652
|
+
assert!(
|
|
1653
|
+
validate_direct_command("sed", &["-n".into(), "1,20p".into(), "README.md".into()])
|
|
1654
|
+
.is_err()
|
|
1655
|
+
);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
#[test]
|
|
1659
|
+
fn allowlist_platform_diagnostic_blocks_windows_with_actionable_guidance() {
|
|
1660
|
+
let diagnostic = allowlist_platform_diagnostic("windows").expect("windows diagnostic");
|
|
1661
|
+
|
|
1662
|
+
assert!(diagnostic.contains("not ready on Windows"));
|
|
1663
|
+
assert!(diagnostic.contains("RCS_EXPLORE_BIN"));
|
|
1664
|
+
assert!(allowlist_platform_diagnostic("linux").is_none());
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
#[test]
|
|
1668
|
+
fn validate_direct_command_covers_additional_head_wc_and_tail_rejections() {
|
|
1669
|
+
assert!(validate_direct_command("head", &["-".into()]).is_err());
|
|
1670
|
+
assert!(validate_direct_command("wc", &[]).is_err());
|
|
1671
|
+
assert!(validate_direct_command("tail", &["--retry".into(), "README.md".into()]).is_err());
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
#[test]
|
|
1675
|
+
fn validate_direct_command_blocks_repo_escape_paths() {
|
|
1676
|
+
let _guard = env_lock();
|
|
1677
|
+
unsafe {
|
|
1678
|
+
env::set_var(HARNESS_ROOT_ENV, "/repo");
|
|
1679
|
+
}
|
|
1680
|
+
assert!(validate_direct_command("cat", &["README.md".into()]).is_ok());
|
|
1681
|
+
assert!(validate_direct_command("ls", &["src".into()]).is_ok());
|
|
1682
|
+
assert!(validate_direct_command("rg", &["needle".into(), "src".into()]).is_ok());
|
|
1683
|
+
assert!(
|
|
1684
|
+
validate_direct_command("grep", &["needle".into(), "../secret.txt".into()]).is_err()
|
|
1685
|
+
);
|
|
1686
|
+
assert!(validate_direct_command("cat", &["../secret.txt".into()]).is_err());
|
|
1687
|
+
assert!(
|
|
1688
|
+
validate_direct_command("find", &["../".into(), "-type".into(), "f".into()]).is_err()
|
|
1689
|
+
);
|
|
1690
|
+
assert!(validate_direct_command("ls", &["/tmp".into()]).is_err());
|
|
1691
|
+
unsafe {
|
|
1692
|
+
env::remove_var(HARNESS_ROOT_ENV);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
#[cfg(unix)]
|
|
1697
|
+
#[test]
|
|
1698
|
+
fn validate_direct_command_blocks_symlink_escape_paths() {
|
|
1699
|
+
let _guard = env_lock();
|
|
1700
|
+
use std::os::unix::fs::symlink;
|
|
1701
|
+
|
|
1702
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1703
|
+
let repo = root.path.join("repo");
|
|
1704
|
+
let outside = root.path.join("outside");
|
|
1705
|
+
create_dir_all(&repo).expect("create repo");
|
|
1706
|
+
create_dir_all(&outside).expect("create outside");
|
|
1707
|
+
write(outside.join("secret.txt"), "secret").expect("write secret");
|
|
1708
|
+
symlink(&outside, repo.join("linked-outside")).expect("create symlink");
|
|
1709
|
+
|
|
1710
|
+
unsafe {
|
|
1711
|
+
env::set_var(HARNESS_ROOT_ENV, &repo);
|
|
1712
|
+
}
|
|
1713
|
+
let result = validate_direct_command("cat", &["linked-outside/secret.txt".into()]);
|
|
1714
|
+
unsafe {
|
|
1715
|
+
env::remove_var(HARNESS_ROOT_ENV);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
assert!(result.is_err());
|
|
1719
|
+
assert!(result
|
|
1720
|
+
.expect_err("symlink escape should fail")
|
|
1721
|
+
.contains("resolves outside"));
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
#[test]
|
|
1725
|
+
fn resolve_shebang_launch_preserves_env_arguments() {
|
|
1726
|
+
let _guard = env_lock();
|
|
1727
|
+
let (python_name, python) = resolve_host_command("python3")
|
|
1728
|
+
.map(|path| ("python3", path))
|
|
1729
|
+
.or_else(|| resolve_host_command("python").map(|path| ("python", path)))
|
|
1730
|
+
.expect("host python path");
|
|
1731
|
+
let shebang = format!("/usr/bin/env {} -I", python_name);
|
|
1732
|
+
let launch = resolve_shebang_launch(&shebang).expect("launch");
|
|
1733
|
+
assert_eq!(launch.0, python.display().to_string());
|
|
1734
|
+
assert_eq!(launch.1, vec!["-I"]);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
#[test]
|
|
1738
|
+
fn validate_shell_invocation_rejects_empty_and_wrong_flag_forms() {
|
|
1739
|
+
assert!(validate_shell_invocation(&["-lc".into(), " ".into()]).is_err());
|
|
1740
|
+
assert!(validate_shell_invocation(&["--command".into(), "rg auth src".into()]).is_err());
|
|
1741
|
+
assert!(validate_shell_invocation(&["-c".into()]).is_err());
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
#[test]
|
|
1745
|
+
fn validate_direct_command_accepts_repo_internal_absolute_paths() {
|
|
1746
|
+
let _guard = env_lock();
|
|
1747
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1748
|
+
let repo = root.path.join("repo");
|
|
1749
|
+
create_dir_all(repo.join("nested")).expect("create repo");
|
|
1750
|
+
write(repo.join("nested").join("file.txt"), "ok").expect("write file");
|
|
1751
|
+
|
|
1752
|
+
unsafe {
|
|
1753
|
+
env::set_var(HARNESS_ROOT_ENV, &repo);
|
|
1754
|
+
}
|
|
1755
|
+
let result = validate_direct_command(
|
|
1756
|
+
"cat",
|
|
1757
|
+
&[repo.join("nested").join("file.txt").display().to_string()],
|
|
1758
|
+
);
|
|
1759
|
+
unsafe {
|
|
1760
|
+
env::remove_var(HARNESS_ROOT_ENV);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
assert!(result.is_ok());
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
#[test]
|
|
1767
|
+
fn command_path_operands_handle_double_dash_and_find_roots() {
|
|
1768
|
+
let rg_args = vec![
|
|
1769
|
+
"needle".to_string(),
|
|
1770
|
+
"--".to_string(),
|
|
1771
|
+
"src/lib.rs".to_string(),
|
|
1772
|
+
];
|
|
1773
|
+
assert_eq!(command_path_operands("rg", &rg_args), vec!["src/lib.rs"]);
|
|
1774
|
+
|
|
1775
|
+
let find_args = vec![
|
|
1776
|
+
"src".to_string(),
|
|
1777
|
+
"tests".to_string(),
|
|
1778
|
+
"-type".to_string(),
|
|
1779
|
+
"f".to_string(),
|
|
1780
|
+
];
|
|
1781
|
+
assert_eq!(
|
|
1782
|
+
command_path_operands("find", &find_args),
|
|
1783
|
+
vec!["src", "tests"]
|
|
1784
|
+
);
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
#[test]
|
|
1788
|
+
fn run_with_args_reports_both_failed_attempts_with_codes_and_stderr() {
|
|
1789
|
+
let _guard = env_lock();
|
|
1790
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1791
|
+
let repo = root.path.join("repo");
|
|
1792
|
+
create_dir_all(&repo).expect("create repo");
|
|
1793
|
+
let prompt_file = root.path.join("prompt.md");
|
|
1794
|
+
write(&prompt_file, "contract").expect("write prompt");
|
|
1795
|
+
let fake_codex = root.path.join("codex-stub");
|
|
1796
|
+
write_executable(
|
|
1797
|
+
&fake_codex,
|
|
1798
|
+
r#"#!/bin/sh
|
|
1799
|
+
model=""
|
|
1800
|
+
while [ $# -gt 0 ]; do
|
|
1801
|
+
if [ "$1" = "-m" ]; then
|
|
1802
|
+
shift
|
|
1803
|
+
model="$1"
|
|
1804
|
+
fi
|
|
1805
|
+
shift
|
|
1806
|
+
done
|
|
1807
|
+
printf 'simulated stderr for %s
|
|
1808
|
+
' "$model" >&2
|
|
1809
|
+
if [ "$model" = "spark-model" ]; then
|
|
1810
|
+
exit 9
|
|
1811
|
+
fi
|
|
1812
|
+
exit 17
|
|
1813
|
+
"#,
|
|
1814
|
+
)
|
|
1815
|
+
.expect("write fake codex");
|
|
1816
|
+
|
|
1817
|
+
unsafe {
|
|
1818
|
+
env::set_var(CODEX_BIN_ENV, &fake_codex);
|
|
1819
|
+
}
|
|
1820
|
+
let result = run_with_args(
|
|
1821
|
+
vec![
|
|
1822
|
+
"--cwd",
|
|
1823
|
+
repo.to_str().expect("repo path"),
|
|
1824
|
+
"--prompt",
|
|
1825
|
+
"find tests",
|
|
1826
|
+
"--prompt-file",
|
|
1827
|
+
prompt_file.to_str().expect("prompt path"),
|
|
1828
|
+
"--instructions-file",
|
|
1829
|
+
prompt_file.to_str().expect("instructions path"),
|
|
1830
|
+
"--model-spark",
|
|
1831
|
+
"spark-model",
|
|
1832
|
+
"--model-fallback",
|
|
1833
|
+
"fallback-model",
|
|
1834
|
+
]
|
|
1835
|
+
.into_iter()
|
|
1836
|
+
.map(OsString::from),
|
|
1837
|
+
);
|
|
1838
|
+
unsafe {
|
|
1839
|
+
env::remove_var(CODEX_BIN_ENV);
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
let _error = result.expect_err("both attempts should fail");
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
#[test]
|
|
1846
|
+
fn invoke_codex_clears_shell_startup_env_before_launching_codex() {
|
|
1847
|
+
let _guard = env_lock();
|
|
1848
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1849
|
+
let repo = root.path.join("repo");
|
|
1850
|
+
create_dir_all(&repo).expect("create repo");
|
|
1851
|
+
let prompt_file = root.path.join("prompt.md");
|
|
1852
|
+
write(&prompt_file, "contract").expect("write prompt");
|
|
1853
|
+
let capture_path = root.path.join("capture.txt");
|
|
1854
|
+
let fake_codex = root.path.join("codex-stub");
|
|
1855
|
+
write_executable(
|
|
1856
|
+
&fake_codex,
|
|
1857
|
+
&format!(
|
|
1858
|
+
r#"#!/bin/sh
|
|
1859
|
+
set -eu
|
|
1860
|
+
output_path=""
|
|
1861
|
+
while [ "$#" -gt 0 ]; do
|
|
1862
|
+
if [ "$1" = "-o" ]; then
|
|
1863
|
+
shift
|
|
1864
|
+
output_path="$1"
|
|
1865
|
+
fi
|
|
1866
|
+
shift
|
|
1867
|
+
done
|
|
1868
|
+
printf 'BASH_ENV=%s\nENV=%s\nPROMPT_COMMAND=%s\n' "${{BASH_ENV:-}}" "${{ENV:-}}" "${{PROMPT_COMMAND:-}}" > {}
|
|
1869
|
+
printf '# Answer\nok\n' > "$output_path"
|
|
1870
|
+
"#,
|
|
1871
|
+
shell_quote(&capture_path.display().to_string())
|
|
1872
|
+
),
|
|
1873
|
+
)
|
|
1874
|
+
.expect("write fake codex");
|
|
1875
|
+
|
|
1876
|
+
unsafe {
|
|
1877
|
+
env::set_var(CODEX_BIN_ENV, &fake_codex);
|
|
1878
|
+
env::set_var("BASH_ENV", "/tmp/bash-env-should-not-leak");
|
|
1879
|
+
env::set_var("ENV", "/tmp/env-should-not-leak");
|
|
1880
|
+
env::set_var("PROMPT_COMMAND", "printf should-not-run");
|
|
1881
|
+
}
|
|
1882
|
+
let attempt = invoke_codex(
|
|
1883
|
+
&Args {
|
|
1884
|
+
cwd: repo.clone(),
|
|
1885
|
+
prompt: "find tests".to_string(),
|
|
1886
|
+
prompt_file,
|
|
1887
|
+
instructions_file: repo.join("AGENTS.md"),
|
|
1888
|
+
spark_model: "spark-model".to_string(),
|
|
1889
|
+
fallback_model: "fallback-model".to_string(),
|
|
1890
|
+
},
|
|
1891
|
+
"spark-model",
|
|
1892
|
+
"contract",
|
|
1893
|
+
)
|
|
1894
|
+
.expect("invoke codex");
|
|
1895
|
+
unsafe {
|
|
1896
|
+
env::remove_var(CODEX_BIN_ENV);
|
|
1897
|
+
env::remove_var("BASH_ENV");
|
|
1898
|
+
env::remove_var("ENV");
|
|
1899
|
+
env::remove_var("PROMPT_COMMAND");
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
assert_eq!(attempt.status_code, 0);
|
|
1903
|
+
assert_eq!(
|
|
1904
|
+
read_to_string(&capture_path).expect("read capture"),
|
|
1905
|
+
"BASH_ENV=\nENV=\nPROMPT_COMMAND=\n"
|
|
1906
|
+
);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
#[test]
|
|
1910
|
+
fn invoke_codex_injects_model_instructions_file_override() {
|
|
1911
|
+
let _guard = env_lock();
|
|
1912
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1913
|
+
let repo = root.path.join("repo");
|
|
1914
|
+
create_dir_all(&repo).expect("create repo");
|
|
1915
|
+
let prompt_file = root.path.join("prompt.md");
|
|
1916
|
+
write(&prompt_file, "contract").expect("write prompt");
|
|
1917
|
+
let capture_path = root.path.join("argv.txt");
|
|
1918
|
+
let fake_codex = root.path.join("codex-stub");
|
|
1919
|
+
write_executable(
|
|
1920
|
+
&fake_codex,
|
|
1921
|
+
&format!(
|
|
1922
|
+
r#"#!/bin/sh
|
|
1923
|
+
set -eu
|
|
1924
|
+
output_path=""
|
|
1925
|
+
capture={}
|
|
1926
|
+
printf '' > "$capture"
|
|
1927
|
+
while [ "$#" -gt 0 ]; do
|
|
1928
|
+
printf '%s\n' "$1" >> "$capture"
|
|
1929
|
+
if [ "$1" = "-o" ]; then
|
|
1930
|
+
shift
|
|
1931
|
+
output_path="$1"
|
|
1932
|
+
fi
|
|
1933
|
+
shift
|
|
1934
|
+
done
|
|
1935
|
+
printf '# Answer\nok\n' > "$output_path"
|
|
1936
|
+
"#,
|
|
1937
|
+
shell_quote(&capture_path.display().to_string())
|
|
1938
|
+
),
|
|
1939
|
+
)
|
|
1940
|
+
.expect("write fake codex");
|
|
1941
|
+
|
|
1942
|
+
unsafe {
|
|
1943
|
+
env::set_var(CODEX_BIN_ENV, &fake_codex);
|
|
1944
|
+
}
|
|
1945
|
+
let instructions_path = repo.join("custom instructions.md");
|
|
1946
|
+
let attempt = invoke_codex(
|
|
1947
|
+
&Args {
|
|
1948
|
+
cwd: repo.clone(),
|
|
1949
|
+
prompt: "find tests".to_string(),
|
|
1950
|
+
prompt_file,
|
|
1951
|
+
instructions_file: instructions_path.clone(),
|
|
1952
|
+
spark_model: "spark-model".to_string(),
|
|
1953
|
+
fallback_model: "fallback-model".to_string(),
|
|
1954
|
+
},
|
|
1955
|
+
"spark-model",
|
|
1956
|
+
"contract",
|
|
1957
|
+
)
|
|
1958
|
+
.expect("invoke codex");
|
|
1959
|
+
unsafe {
|
|
1960
|
+
env::remove_var(CODEX_BIN_ENV);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
assert_eq!(attempt.status_code, 0);
|
|
1964
|
+
let captured = read_to_string(&capture_path).expect("read capture");
|
|
1965
|
+
let expected = format!(
|
|
1966
|
+
"model_instructions_file=\"{}\"",
|
|
1967
|
+
escape_toml_string(&instructions_path.display().to_string())
|
|
1968
|
+
);
|
|
1969
|
+
assert!(
|
|
1970
|
+
captured.contains(&expected),
|
|
1971
|
+
"expected {:?} in {:?}",
|
|
1972
|
+
expected,
|
|
1973
|
+
captured
|
|
1974
|
+
);
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
#[test]
|
|
1978
|
+
fn sanitize_explore_subprocess_env_blocks_bash_env_startup_hooks() {
|
|
1979
|
+
let _guard = env_lock();
|
|
1980
|
+
let root = temp_allowlist_dir().expect("temp root");
|
|
1981
|
+
let bash_env_log = root.path.join("bash-env.log");
|
|
1982
|
+
let bash_env = root.path.join("bash-env.sh");
|
|
1983
|
+
write(
|
|
1984
|
+
&bash_env,
|
|
1985
|
+
format!(
|
|
1986
|
+
"printf 'startup:%s\\n' \"$BASH_ENV\" >> {}\n",
|
|
1987
|
+
shell_quote(&bash_env_log.display().to_string())
|
|
1988
|
+
),
|
|
1989
|
+
)
|
|
1990
|
+
.expect("write bash env");
|
|
1991
|
+
let bash_path = resolve_host_command("bash").expect("host bash path");
|
|
1992
|
+
|
|
1993
|
+
unsafe {
|
|
1994
|
+
env::set_var("BASH_ENV", &bash_env);
|
|
1995
|
+
}
|
|
1996
|
+
let mut child = Command::new(bash_path);
|
|
1997
|
+
child
|
|
1998
|
+
.arg("--noprofile")
|
|
1999
|
+
.arg("--norc")
|
|
2000
|
+
.arg("-lc")
|
|
2001
|
+
.arg("true");
|
|
2002
|
+
sanitize_explore_subprocess_env(&mut child);
|
|
2003
|
+
let status = child.status().expect("run bash");
|
|
2004
|
+
unsafe {
|
|
2005
|
+
env::remove_var("BASH_ENV");
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
assert!(status.success());
|
|
2009
|
+
assert_eq!(read_to_string(&bash_env_log).unwrap_or_default(), "");
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
fn fallback_test_event() -> FallbackEvent {
|
|
2013
|
+
FallbackEvent {
|
|
2014
|
+
from_model: "spark-model".to_string(),
|
|
2015
|
+
to_model: "fallback-model".to_string(),
|
|
2016
|
+
exit_code: 17,
|
|
2017
|
+
stderr: "spark timed out".to_string(),
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
#[test]
|
|
2022
|
+
fn fallback_attempt_event_distinguishes_attempt_from_output_notice() {
|
|
2023
|
+
let event = fallback_test_event();
|
|
2024
|
+
|
|
2025
|
+
let message = fallback_attempt_event_message(&event);
|
|
2026
|
+
assert!(message.contains("fallback-attempt=model"));
|
|
2027
|
+
assert!(message.contains("from=`spark-model`"));
|
|
2028
|
+
assert!(message.contains("to=`fallback-model`"));
|
|
2029
|
+
assert!(message.contains("spark_attempt_failed exit=17"));
|
|
2030
|
+
assert!(message
|
|
2031
|
+
.contains("stdout fallback notice is emitted only after successful fallback output"));
|
|
2032
|
+
assert!(!message.contains("output includes a fallback notice"));
|
|
2033
|
+
assert!(!message.contains("## RCS Explore fallback"));
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
#[test]
|
|
2037
|
+
fn fallback_output_notice_records_model_boundary() {
|
|
2038
|
+
let event = fallback_test_event();
|
|
2039
|
+
|
|
2040
|
+
let notice = fallback_output_notice(&event);
|
|
2041
|
+
assert!(notice.contains("## RCS Explore fallback"));
|
|
2042
|
+
assert!(notice.contains("fallback: model"));
|
|
2043
|
+
assert!(notice.contains("from: `spark-model`"));
|
|
2044
|
+
assert!(notice.contains("to: `fallback-model`"));
|
|
2045
|
+
assert!(notice.contains("spark attempt failed with exit 17"));
|
|
2046
|
+
assert!(notice.contains("cost/behavior may differ from the low-cost spark path"));
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
#[test]
|
|
2050
|
+
fn print_attempt_output_requires_markdown_artifact() {
|
|
2051
|
+
let result = print_attempt_output(AttemptResult {
|
|
2052
|
+
status_code: 0,
|
|
2053
|
+
stderr: String::new(),
|
|
2054
|
+
output_markdown: None,
|
|
2055
|
+
});
|
|
2056
|
+
assert!(result.is_err());
|
|
2057
|
+
assert!(result
|
|
2058
|
+
.expect_err("missing markdown should fail")
|
|
2059
|
+
.contains("expected markdown output artifact"));
|
|
2060
|
+
}
|
|
2061
|
+
}
|