oh-my-codex-pennix 0.18.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/Cargo.lock +185 -0
- package/Cargo.toml +24 -0
- package/README.md +445 -0
- package/crates/omx-api/Cargo.toml +19 -0
- package/crates/omx-api/src/lib.rs +2997 -0
- package/crates/omx-api/src/main.rs +10 -0
- package/crates/omx-api/tests/cli.rs +558 -0
- package/crates/omx-explore/Cargo.toml +14 -0
- package/crates/omx-explore/src/main.rs +2972 -0
- package/crates/omx-mux/Cargo.toml +11 -0
- package/crates/omx-mux/src/lib.rs +91 -0
- package/crates/omx-mux/src/tmux.rs +282 -0
- package/crates/omx-mux/src/types.rs +306 -0
- package/crates/omx-runtime/Cargo.toml +13 -0
- package/crates/omx-runtime/src/main.rs +125 -0
- package/crates/omx-runtime/tests/execution.rs +212 -0
- package/crates/omx-runtime-core/Cargo.toml +13 -0
- package/crates/omx-runtime-core/src/authority.rs +239 -0
- package/crates/omx-runtime-core/src/dispatch.rs +330 -0
- package/crates/omx-runtime-core/src/engine.rs +853 -0
- package/crates/omx-runtime-core/src/lib.rs +653 -0
- package/crates/omx-runtime-core/src/mailbox.rs +261 -0
- package/crates/omx-runtime-core/src/replay.rs +104 -0
- package/crates/omx-sparkshell/Cargo.lock +7 -0
- package/crates/omx-sparkshell/Cargo.toml +14 -0
- package/crates/omx-sparkshell/src/codex_bridge.rs +768 -0
- package/crates/omx-sparkshell/src/error.rs +45 -0
- package/crates/omx-sparkshell/src/exec.rs +241 -0
- package/crates/omx-sparkshell/src/main.rs +1133 -0
- package/crates/omx-sparkshell/src/prompt.rs +364 -0
- package/crates/omx-sparkshell/src/redaction.rs +241 -0
- package/crates/omx-sparkshell/src/registry/c_cpp.rs +9 -0
- package/crates/omx-sparkshell/src/registry/csharp.rs +10 -0
- package/crates/omx-sparkshell/src/registry/generic_shell.rs +11 -0
- package/crates/omx-sparkshell/src/registry/git.rs +10 -0
- package/crates/omx-sparkshell/src/registry/go.rs +9 -0
- package/crates/omx-sparkshell/src/registry/java_kotlin.rs +9 -0
- package/crates/omx-sparkshell/src/registry/mod.rs +85 -0
- package/crates/omx-sparkshell/src/registry/node_js.rs +9 -0
- package/crates/omx-sparkshell/src/registry/python.rs +9 -0
- package/crates/omx-sparkshell/src/registry/ruby.rs +9 -0
- package/crates/omx-sparkshell/src/registry/rust.rs +9 -0
- package/crates/omx-sparkshell/src/registry/swift.rs +10 -0
- package/crates/omx-sparkshell/src/test_support.rs +10 -0
- package/crates/omx-sparkshell/src/threshold.rs +75 -0
- package/crates/omx-sparkshell/tests/execution.rs +986 -0
- package/crates/omx-sparkshell/tests/registry.rs +99 -0
- package/dist/adapt/__tests__/foundation.test.d.ts +2 -0
- package/dist/adapt/__tests__/foundation.test.d.ts.map +1 -0
- package/dist/adapt/__tests__/foundation.test.js +171 -0
- package/dist/adapt/__tests__/foundation.test.js.map +1 -0
- package/dist/adapt/__tests__/hermes.test.d.ts +2 -0
- package/dist/adapt/__tests__/hermes.test.d.ts.map +1 -0
- package/dist/adapt/__tests__/hermes.test.js +137 -0
- package/dist/adapt/__tests__/hermes.test.js.map +1 -0
- package/dist/adapt/contracts.d.ts +157 -0
- package/dist/adapt/contracts.d.ts.map +1 -0
- package/dist/adapt/contracts.js +10 -0
- package/dist/adapt/contracts.js.map +1 -0
- package/dist/adapt/hermes.d.ts +83 -0
- package/dist/adapt/hermes.d.ts.map +1 -0
- package/dist/adapt/hermes.js +371 -0
- package/dist/adapt/hermes.js.map +1 -0
- package/dist/adapt/index.d.ts +14 -0
- package/dist/adapt/index.d.ts.map +1 -0
- package/dist/adapt/index.js +293 -0
- package/dist/adapt/index.js.map +1 -0
- package/dist/adapt/openclaw.d.ts +7 -0
- package/dist/adapt/openclaw.d.ts.map +1 -0
- package/dist/adapt/openclaw.js +299 -0
- package/dist/adapt/openclaw.js.map +1 -0
- package/dist/adapt/paths.d.ts +3 -0
- package/dist/adapt/paths.d.ts.map +1 -0
- package/dist/adapt/paths.js +15 -0
- package/dist/adapt/paths.js.map +1 -0
- package/dist/adapt/registry.d.ts +4 -0
- package/dist/adapt/registry.d.ts.map +1 -0
- package/dist/adapt/registry.js +48 -0
- package/dist/adapt/registry.js.map +1 -0
- package/dist/agents/__tests__/definitions.test.d.ts +2 -0
- package/dist/agents/__tests__/definitions.test.d.ts.map +1 -0
- package/dist/agents/__tests__/definitions.test.js +96 -0
- package/dist/agents/__tests__/definitions.test.js.map +1 -0
- package/dist/agents/__tests__/native-config.test.d.ts +2 -0
- package/dist/agents/__tests__/native-config.test.d.ts.map +1 -0
- package/dist/agents/__tests__/native-config.test.js +398 -0
- package/dist/agents/__tests__/native-config.test.js.map +1 -0
- package/dist/agents/definitions.d.ts +35 -0
- package/dist/agents/definitions.d.ts.map +1 -0
- package/dist/agents/definitions.js +371 -0
- package/dist/agents/definitions.js.map +1 -0
- package/dist/agents/native-config.d.ts +56 -0
- package/dist/agents/native-config.d.ts.map +1 -0
- package/dist/agents/native-config.js +285 -0
- package/dist/agents/native-config.js.map +1 -0
- package/dist/agents/policy.d.ts +10 -0
- package/dist/agents/policy.d.ts.map +1 -0
- package/dist/agents/policy.js +61 -0
- package/dist/agents/policy.js.map +1 -0
- package/dist/auth/__tests__/config-sessions.test.d.ts +2 -0
- package/dist/auth/__tests__/config-sessions.test.d.ts.map +1 -0
- package/dist/auth/__tests__/config-sessions.test.js +48 -0
- package/dist/auth/__tests__/config-sessions.test.js.map +1 -0
- package/dist/auth/__tests__/quota-rotation.test.d.ts +2 -0
- package/dist/auth/__tests__/quota-rotation.test.d.ts.map +1 -0
- package/dist/auth/__tests__/quota-rotation.test.js +33 -0
- package/dist/auth/__tests__/quota-rotation.test.js.map +1 -0
- package/dist/auth/__tests__/redact.test.d.ts +2 -0
- package/dist/auth/__tests__/redact.test.d.ts.map +1 -0
- package/dist/auth/__tests__/redact.test.js +20 -0
- package/dist/auth/__tests__/redact.test.js.map +1 -0
- package/dist/auth/__tests__/storage.test.d.ts +2 -0
- package/dist/auth/__tests__/storage.test.d.ts.map +1 -0
- package/dist/auth/__tests__/storage.test.js +108 -0
- package/dist/auth/__tests__/storage.test.js.map +1 -0
- package/dist/auth/config.d.ts +9 -0
- package/dist/auth/config.d.ts.map +1 -0
- package/dist/auth/config.js +77 -0
- package/dist/auth/config.js.map +1 -0
- package/dist/auth/hotswap.d.ts +36 -0
- package/dist/auth/hotswap.d.ts.map +1 -0
- package/dist/auth/hotswap.js +159 -0
- package/dist/auth/hotswap.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +8 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/paths.d.ts +12 -0
- package/dist/auth/paths.d.ts.map +1 -0
- package/dist/auth/paths.js +78 -0
- package/dist/auth/paths.js.map +1 -0
- package/dist/auth/quota-detector.d.ts +10 -0
- package/dist/auth/quota-detector.d.ts.map +1 -0
- package/dist/auth/quota-detector.js +40 -0
- package/dist/auth/quota-detector.js.map +1 -0
- package/dist/auth/redact.d.ts +2 -0
- package/dist/auth/redact.d.ts.map +1 -0
- package/dist/auth/redact.js +26 -0
- package/dist/auth/redact.js.map +1 -0
- package/dist/auth/rotation.d.ts +9 -0
- package/dist/auth/rotation.d.ts.map +1 -0
- package/dist/auth/rotation.js +26 -0
- package/dist/auth/rotation.js.map +1 -0
- package/dist/auth/sessions.d.ts +15 -0
- package/dist/auth/sessions.d.ts.map +1 -0
- package/dist/auth/sessions.js +62 -0
- package/dist/auth/sessions.js.map +1 -0
- package/dist/auth/storage.d.ts +27 -0
- package/dist/auth/storage.d.ts.map +1 -0
- package/dist/auth/storage.js +111 -0
- package/dist/auth/storage.js.map +1 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.d.ts +2 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.d.ts.map +1 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.js +215 -0
- package/dist/autopilot/__tests__/deep-interview-gate.test.js.map +1 -0
- package/dist/autopilot/__tests__/fsm.test.d.ts +2 -0
- package/dist/autopilot/__tests__/fsm.test.d.ts.map +1 -0
- package/dist/autopilot/__tests__/fsm.test.js +78 -0
- package/dist/autopilot/__tests__/fsm.test.js.map +1 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.d.ts +2 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.d.ts.map +1 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.js +274 -0
- package/dist/autopilot/__tests__/ralplan-gate.test.js.map +1 -0
- package/dist/autopilot/completion-gate.d.ts +10 -0
- package/dist/autopilot/completion-gate.d.ts.map +1 -0
- package/dist/autopilot/completion-gate.js +154 -0
- package/dist/autopilot/completion-gate.js.map +1 -0
- package/dist/autopilot/deep-interview-gate.d.ts +18 -0
- package/dist/autopilot/deep-interview-gate.d.ts.map +1 -0
- package/dist/autopilot/deep-interview-gate.js +396 -0
- package/dist/autopilot/deep-interview-gate.js.map +1 -0
- package/dist/autopilot/fsm.d.ts +13 -0
- package/dist/autopilot/fsm.d.ts.map +1 -0
- package/dist/autopilot/fsm.js +70 -0
- package/dist/autopilot/fsm.js.map +1 -0
- package/dist/autopilot/ralplan-gate.d.ts +17 -0
- package/dist/autopilot/ralplan-gate.d.ts.map +1 -0
- package/dist/autopilot/ralplan-gate.js +68 -0
- package/dist/autopilot/ralplan-gate.js.map +1 -0
- package/dist/autoresearch/__tests__/contracts.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/contracts.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/contracts.test.js +127 -0
- package/dist/autoresearch/__tests__/contracts.test.js.map +1 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.js +349 -0
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.js.map +1 -0
- package/dist/autoresearch/__tests__/runtime.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/runtime.test.js +211 -0
- package/dist/autoresearch/__tests__/runtime.test.js.map +1 -0
- package/dist/autoresearch/__tests__/skill-validation.test.d.ts +2 -0
- package/dist/autoresearch/__tests__/skill-validation.test.d.ts.map +1 -0
- package/dist/autoresearch/__tests__/skill-validation.test.js +91 -0
- package/dist/autoresearch/__tests__/skill-validation.test.js.map +1 -0
- package/dist/autoresearch/contracts.d.ts +31 -0
- package/dist/autoresearch/contracts.d.ts.map +1 -0
- package/dist/autoresearch/contracts.js +197 -0
- package/dist/autoresearch/contracts.js.map +1 -0
- package/dist/autoresearch/goal.d.ts +90 -0
- package/dist/autoresearch/goal.d.ts.map +1 -0
- package/dist/autoresearch/goal.js +237 -0
- package/dist/autoresearch/goal.js.map +1 -0
- package/dist/autoresearch/runtime.d.ts +132 -0
- package/dist/autoresearch/runtime.d.ts.map +1 -0
- package/dist/autoresearch/runtime.js +1022 -0
- package/dist/autoresearch/runtime.js.map +1 -0
- package/dist/autoresearch/skill-validation.d.ts +14 -0
- package/dist/autoresearch/skill-validation.d.ts.map +1 -0
- package/dist/autoresearch/skill-validation.js +172 -0
- package/dist/autoresearch/skill-validation.js.map +1 -0
- package/dist/catalog/__tests__/generator.test.d.ts +2 -0
- package/dist/catalog/__tests__/generator.test.d.ts.map +1 -0
- package/dist/catalog/__tests__/generator.test.js +60 -0
- package/dist/catalog/__tests__/generator.test.js.map +1 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.d.ts +2 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.d.ts.map +1 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js +108 -0
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js.map +1 -0
- package/dist/catalog/__tests__/schema.test.d.ts +2 -0
- package/dist/catalog/__tests__/schema.test.d.ts.map +1 -0
- package/dist/catalog/__tests__/schema.test.js +84 -0
- package/dist/catalog/__tests__/schema.test.js.map +1 -0
- package/dist/catalog/installable.d.ts +5 -0
- package/dist/catalog/installable.d.ts.map +1 -0
- package/dist/catalog/installable.js +13 -0
- package/dist/catalog/installable.js.map +1 -0
- package/dist/catalog/reader.d.ts +19 -0
- package/dist/catalog/reader.d.ts.map +1 -0
- package/dist/catalog/reader.js +63 -0
- package/dist/catalog/reader.js.map +1 -0
- package/dist/catalog/schema.d.ts +32 -0
- package/dist/catalog/schema.d.ts.map +1 -0
- package/dist/catalog/schema.js +107 -0
- package/dist/catalog/schema.js.map +1 -0
- package/dist/catalog/skill-mirror.d.ts +20 -0
- package/dist/catalog/skill-mirror.d.ts.map +1 -0
- package/dist/catalog/skill-mirror.js +104 -0
- package/dist/catalog/skill-mirror.js.map +1 -0
- package/dist/cli/__tests__/adapt-help.test.d.ts +2 -0
- package/dist/cli/__tests__/adapt-help.test.d.ts.map +1 -0
- package/dist/cli/__tests__/adapt-help.test.js +39 -0
- package/dist/cli/__tests__/adapt-help.test.js.map +1 -0
- package/dist/cli/__tests__/adapt.test.d.ts +2 -0
- package/dist/cli/__tests__/adapt.test.d.ts.map +1 -0
- package/dist/cli/__tests__/adapt.test.js +62 -0
- package/dist/cli/__tests__/adapt.test.js.map +1 -0
- package/dist/cli/__tests__/agents-init.test.d.ts +2 -0
- package/dist/cli/__tests__/agents-init.test.d.ts.map +1 -0
- package/dist/cli/__tests__/agents-init.test.js +184 -0
- package/dist/cli/__tests__/agents-init.test.js.map +1 -0
- package/dist/cli/__tests__/agents.test.d.ts +2 -0
- package/dist/cli/__tests__/agents.test.d.ts.map +1 -0
- package/dist/cli/__tests__/agents.test.js +137 -0
- package/dist/cli/__tests__/agents.test.js.map +1 -0
- package/dist/cli/__tests__/api.test.d.ts +2 -0
- package/dist/cli/__tests__/api.test.d.ts.map +1 -0
- package/dist/cli/__tests__/api.test.js +175 -0
- package/dist/cli/__tests__/api.test.js.map +1 -0
- package/dist/cli/__tests__/ask.test.d.ts +2 -0
- package/dist/cli/__tests__/ask.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ask.test.js +332 -0
- package/dist/cli/__tests__/ask.test.js.map +1 -0
- package/dist/cli/__tests__/auth.test.d.ts +2 -0
- package/dist/cli/__tests__/auth.test.d.ts.map +1 -0
- package/dist/cli/__tests__/auth.test.js +203 -0
- package/dist/cli/__tests__/auth.test.js.map +1 -0
- package/dist/cli/__tests__/autoresearch-goal.test.d.ts +2 -0
- package/dist/cli/__tests__/autoresearch-goal.test.d.ts.map +1 -0
- package/dist/cli/__tests__/autoresearch-goal.test.js +207 -0
- package/dist/cli/__tests__/autoresearch-goal.test.js.map +1 -0
- package/dist/cli/__tests__/autoresearch-guided.test.d.ts +2 -0
- package/dist/cli/__tests__/autoresearch-guided.test.d.ts.map +1 -0
- package/dist/cli/__tests__/autoresearch-guided.test.js +365 -0
- package/dist/cli/__tests__/autoresearch-guided.test.js.map +1 -0
- package/dist/cli/__tests__/autoresearch.test.d.ts +2 -0
- package/dist/cli/__tests__/autoresearch.test.d.ts.map +1 -0
- package/dist/cli/__tests__/autoresearch.test.js +155 -0
- package/dist/cli/__tests__/autoresearch.test.js.map +1 -0
- package/dist/cli/__tests__/catalog-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/catalog-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/catalog-contract.test.js +18 -0
- package/dist/cli/__tests__/catalog-contract.test.js.map +1 -0
- package/dist/cli/__tests__/cleanup.test.d.ts +2 -0
- package/dist/cli/__tests__/cleanup.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cleanup.test.js +527 -0
- package/dist/cli/__tests__/cleanup.test.js.map +1 -0
- package/dist/cli/__tests__/codex-feature-probe.test.d.ts +2 -0
- package/dist/cli/__tests__/codex-feature-probe.test.d.ts.map +1 -0
- package/dist/cli/__tests__/codex-feature-probe.test.js +46 -0
- package/dist/cli/__tests__/codex-feature-probe.test.js.map +1 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.d.ts +2 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.d.ts.map +1 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.js +778 -0
- package/dist/cli/__tests__/codex-plugin-layout.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.js +122 -0
- package/dist/cli/__tests__/doctor-context-window-warning.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.js +52 -0
- package/dist/cli/__tests__/doctor-invalid-config.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.js +79 -0
- package/dist/cli/__tests__/doctor-spark-routing.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-team.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-team.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-team.test.js +299 -0
- package/dist/cli/__tests__/doctor-team.test.js.map +1 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.d.ts +2 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.d.ts.map +1 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.js +1312 -0
- package/dist/cli/__tests__/doctor-warning-copy.test.js.map +1 -0
- package/dist/cli/__tests__/error-handling-warnings.test.d.ts +2 -0
- package/dist/cli/__tests__/error-handling-warnings.test.d.ts.map +1 -0
- package/dist/cli/__tests__/error-handling-warnings.test.js +52 -0
- package/dist/cli/__tests__/error-handling-warnings.test.js.map +1 -0
- package/dist/cli/__tests__/exec.test.d.ts +2 -0
- package/dist/cli/__tests__/exec.test.d.ts.map +1 -0
- package/dist/cli/__tests__/exec.test.js +213 -0
- package/dist/cli/__tests__/exec.test.js.map +1 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.d.ts +2 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.d.ts.map +1 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.js +17 -0
- package/dist/cli/__tests__/explore-windows-diagnostics.test.js.map +1 -0
- package/dist/cli/__tests__/explore.test.d.ts +2 -0
- package/dist/cli/__tests__/explore.test.d.ts.map +1 -0
- package/dist/cli/__tests__/explore.test.js +104 -0
- package/dist/cli/__tests__/explore.test.js.map +1 -0
- package/dist/cli/__tests__/hooks.test.d.ts +2 -0
- package/dist/cli/__tests__/hooks.test.d.ts.map +1 -0
- package/dist/cli/__tests__/hooks.test.js +55 -0
- package/dist/cli/__tests__/hooks.test.js.map +1 -0
- package/dist/cli/__tests__/imagegen-continuation.test.d.ts +2 -0
- package/dist/cli/__tests__/imagegen-continuation.test.d.ts.map +1 -0
- package/dist/cli/__tests__/imagegen-continuation.test.js +135 -0
- package/dist/cli/__tests__/imagegen-continuation.test.js.map +1 -0
- package/dist/cli/__tests__/index.test.d.ts +2 -0
- package/dist/cli/__tests__/index.test.d.ts.map +1 -0
- package/dist/cli/__tests__/index.test.js +3619 -0
- package/dist/cli/__tests__/index.test.js.map +1 -0
- package/dist/cli/__tests__/install-docs-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/install-docs-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/install-docs-contract.test.js +55 -0
- package/dist/cli/__tests__/install-docs-contract.test.js.map +1 -0
- package/dist/cli/__tests__/launch-fallback.test.d.ts +2 -0
- package/dist/cli/__tests__/launch-fallback.test.d.ts.map +1 -0
- package/dist/cli/__tests__/launch-fallback.test.js +1285 -0
- package/dist/cli/__tests__/launch-fallback.test.js.map +1 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.d.ts +2 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.d.ts.map +1 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.js +48 -0
- package/dist/cli/__tests__/lifecycle-notifications.test.js.map +1 -0
- package/dist/cli/__tests__/list.test.d.ts +2 -0
- package/dist/cli/__tests__/list.test.d.ts.map +1 -0
- package/dist/cli/__tests__/list.test.js +38 -0
- package/dist/cli/__tests__/list.test.js.map +1 -0
- package/dist/cli/__tests__/mcp-parity.test.d.ts +2 -0
- package/dist/cli/__tests__/mcp-parity.test.d.ts.map +1 -0
- package/dist/cli/__tests__/mcp-parity.test.js +228 -0
- package/dist/cli/__tests__/mcp-parity.test.js.map +1 -0
- package/dist/cli/__tests__/mcp-serve.test.d.ts +2 -0
- package/dist/cli/__tests__/mcp-serve.test.d.ts.map +1 -0
- package/dist/cli/__tests__/mcp-serve.test.js +68 -0
- package/dist/cli/__tests__/mcp-serve.test.js.map +1 -0
- package/dist/cli/__tests__/native-assets.test.d.ts +2 -0
- package/dist/cli/__tests__/native-assets.test.d.ts.map +1 -0
- package/dist/cli/__tests__/native-assets.test.js +296 -0
- package/dist/cli/__tests__/native-assets.test.js.map +1 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.js +11 -0
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.js.map +1 -0
- package/dist/cli/__tests__/nested-help-routing.test.d.ts +2 -0
- package/dist/cli/__tests__/nested-help-routing.test.d.ts.map +1 -0
- package/dist/cli/__tests__/nested-help-routing.test.js +63 -0
- package/dist/cli/__tests__/nested-help-routing.test.js.map +1 -0
- package/dist/cli/__tests__/package-bin-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/package-bin-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/package-bin-contract.test.js +190 -0
- package/dist/cli/__tests__/package-bin-contract.test.js.map +1 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.d.ts +3 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.d.ts.map +1 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.js +67 -0
- package/dist/cli/__tests__/packaged-explore-harness-lock.js.map +1 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.d.ts +2 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.d.ts.map +1 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.js +19 -0
- package/dist/cli/__tests__/packaged-script-resolution.test.js.map +1 -0
- package/dist/cli/__tests__/performance-goal.test.d.ts +2 -0
- package/dist/cli/__tests__/performance-goal.test.d.ts.map +1 -0
- package/dist/cli/__tests__/performance-goal.test.js +144 -0
- package/dist/cli/__tests__/performance-goal.test.js.map +1 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.d.ts +2 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.d.ts.map +1 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.js +48 -0
- package/dist/cli/__tests__/prompt-skill-sanitization.test.js.map +1 -0
- package/dist/cli/__tests__/question.test.d.ts +2 -0
- package/dist/cli/__tests__/question.test.d.ts.map +1 -0
- package/dist/cli/__tests__/question.test.js +850 -0
- package/dist/cli/__tests__/question.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.js +28 -0
- package/dist/cli/__tests__/ralph-deslop-contract.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.js +49 -0
- package/dist/cli/__tests__/ralph-goal-mode-contract.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.js +25 -0
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.js.map +1 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.js +174 -0
- package/dist/cli/__tests__/ralph-prd-smoke.test.js.map +1 -0
- package/dist/cli/__tests__/ralph.test.d.ts +2 -0
- package/dist/cli/__tests__/ralph.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ralph.test.js +256 -0
- package/dist/cli/__tests__/ralph.test.js.map +1 -0
- package/dist/cli/__tests__/resume.test.d.ts +2 -0
- package/dist/cli/__tests__/resume.test.d.ts.map +1 -0
- package/dist/cli/__tests__/resume.test.js +133 -0
- package/dist/cli/__tests__/resume.test.js.map +1 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.d.ts +2 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.d.ts.map +1 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.js +247 -0
- package/dist/cli/__tests__/session-scoped-runtime.test.js.map +1 -0
- package/dist/cli/__tests__/session-search-help.test.d.ts +2 -0
- package/dist/cli/__tests__/session-search-help.test.d.ts.map +1 -0
- package/dist/cli/__tests__/session-search-help.test.js +37 -0
- package/dist/cli/__tests__/session-search-help.test.js.map +1 -0
- package/dist/cli/__tests__/session-search.test.d.ts +2 -0
- package/dist/cli/__tests__/session-search.test.d.ts.map +1 -0
- package/dist/cli/__tests__/session-search.test.js +77 -0
- package/dist/cli/__tests__/session-search.test.js.map +1 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.js +776 -0
- package/dist/cli/__tests__/setup-agents-overwrite.test.js.map +1 -0
- package/dist/cli/__tests__/setup-gh-star.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-gh-star.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-gh-star.test.js +67 -0
- package/dist/cli/__tests__/setup-gh-star.test.js.map +1 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js +202 -0
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js.map +1 -0
- package/dist/cli/__tests__/setup-install-mode.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-install-mode.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-install-mode.test.js +2103 -0
- package/dist/cli/__tests__/setup-install-mode.test.js.map +1 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.js +191 -0
- package/dist/cli/__tests__/setup-prompts-overwrite.test.js.map +1 -0
- package/dist/cli/__tests__/setup-refresh.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-refresh.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-refresh.test.js +779 -0
- package/dist/cli/__tests__/setup-refresh.test.js.map +1 -0
- package/dist/cli/__tests__/setup-scope.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-scope.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-scope.test.js +367 -0
- package/dist/cli/__tests__/setup-scope.test.js.map +1 -0
- package/dist/cli/__tests__/setup-skill-validation.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-skill-validation.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-skill-validation.test.js +44 -0
- package/dist/cli/__tests__/setup-skill-validation.test.js.map +1 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.d.ts +2 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.d.ts.map +1 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.js +292 -0
- package/dist/cli/__tests__/setup-skills-overwrite.test.js.map +1 -0
- package/dist/cli/__tests__/sidecar.test.d.ts +2 -0
- package/dist/cli/__tests__/sidecar.test.d.ts.map +1 -0
- package/dist/cli/__tests__/sidecar.test.js +24 -0
- package/dist/cli/__tests__/sidecar.test.js.map +1 -0
- package/dist/cli/__tests__/sparkshell-cli.test.d.ts +2 -0
- package/dist/cli/__tests__/sparkshell-cli.test.d.ts.map +1 -0
- package/dist/cli/__tests__/sparkshell-cli.test.js +471 -0
- package/dist/cli/__tests__/sparkshell-cli.test.js.map +1 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.d.ts +2 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.d.ts.map +1 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.js +105 -0
- package/dist/cli/__tests__/sparkshell-packaging.test.js.map +1 -0
- package/dist/cli/__tests__/star-prompt.test.d.ts +2 -0
- package/dist/cli/__tests__/star-prompt.test.d.ts.map +1 -0
- package/dist/cli/__tests__/star-prompt.test.js +172 -0
- package/dist/cli/__tests__/star-prompt.test.js.map +1 -0
- package/dist/cli/__tests__/state.test.d.ts +2 -0
- package/dist/cli/__tests__/state.test.d.ts.map +1 -0
- package/dist/cli/__tests__/state.test.js +160 -0
- package/dist/cli/__tests__/state.test.js.map +1 -0
- package/dist/cli/__tests__/team-decompose.test.d.ts +2 -0
- package/dist/cli/__tests__/team-decompose.test.d.ts.map +1 -0
- package/dist/cli/__tests__/team-decompose.test.js +138 -0
- package/dist/cli/__tests__/team-decompose.test.js.map +1 -0
- package/dist/cli/__tests__/team.test.d.ts +2 -0
- package/dist/cli/__tests__/team.test.d.ts.map +1 -0
- package/dist/cli/__tests__/team.test.js +2897 -0
- package/dist/cli/__tests__/team.test.js.map +1 -0
- package/dist/cli/__tests__/ultragoal.test.d.ts +2 -0
- package/dist/cli/__tests__/ultragoal.test.d.ts.map +1 -0
- package/dist/cli/__tests__/ultragoal.test.js +599 -0
- package/dist/cli/__tests__/ultragoal.test.js.map +1 -0
- package/dist/cli/__tests__/uninstall.test.d.ts +2 -0
- package/dist/cli/__tests__/uninstall.test.d.ts.map +1 -0
- package/dist/cli/__tests__/uninstall.test.js +865 -0
- package/dist/cli/__tests__/uninstall.test.js.map +1 -0
- package/dist/cli/__tests__/update.test.d.ts +2 -0
- package/dist/cli/__tests__/update.test.d.ts.map +1 -0
- package/dist/cli/__tests__/update.test.js +1182 -0
- package/dist/cli/__tests__/update.test.js.map +1 -0
- package/dist/cli/__tests__/version-sync-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/version-sync-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/version-sync-contract.test.js +47 -0
- package/dist/cli/__tests__/version-sync-contract.test.js.map +1 -0
- package/dist/cli/__tests__/version.test.d.ts +2 -0
- package/dist/cli/__tests__/version.test.d.ts.map +1 -0
- package/dist/cli/__tests__/version.test.js +21 -0
- package/dist/cli/__tests__/version.test.js.map +1 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.d.ts +2 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.d.ts.map +1 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.js +31 -0
- package/dist/cli/__tests__/windows-popup-loop-contract.test.js.map +1 -0
- package/dist/cli/adapt.d.ts +6 -0
- package/dist/cli/adapt.d.ts.map +1 -0
- package/dist/cli/adapt.js +135 -0
- package/dist/cli/adapt.js.map +1 -0
- package/dist/cli/agents-init.d.ts +14 -0
- package/dist/cli/agents-init.d.ts.map +1 -0
- package/dist/cli/agents-init.js +274 -0
- package/dist/cli/agents-init.js.map +1 -0
- package/dist/cli/agents.d.ts +14 -0
- package/dist/cli/agents.d.ts.map +1 -0
- package/dist/cli/agents.js +267 -0
- package/dist/cli/agents.js.map +1 -0
- package/dist/cli/api.d.ts +26 -0
- package/dist/cli/api.d.ts.map +1 -0
- package/dist/cli/api.js +153 -0
- package/dist/cli/api.js.map +1 -0
- package/dist/cli/ask.d.ts +13 -0
- package/dist/cli/ask.d.ts.map +1 -0
- package/dist/cli/ask.js +178 -0
- package/dist/cli/ask.js.map +1 -0
- package/dist/cli/auth.d.ts +4 -0
- package/dist/cli/auth.d.ts.map +1 -0
- package/dist/cli/auth.js +113 -0
- package/dist/cli/auth.js.map +1 -0
- package/dist/cli/autoresearch-goal.d.ts +3 -0
- package/dist/cli/autoresearch-goal.d.ts.map +1 -0
- package/dist/cli/autoresearch-goal.js +175 -0
- package/dist/cli/autoresearch-goal.js.map +1 -0
- package/dist/cli/autoresearch-guided.d.ts +43 -0
- package/dist/cli/autoresearch-guided.d.ts.map +1 -0
- package/dist/cli/autoresearch-guided.js +282 -0
- package/dist/cli/autoresearch-guided.js.map +1 -0
- package/dist/cli/autoresearch-intake.d.ts +62 -0
- package/dist/cli/autoresearch-intake.d.ts.map +1 -0
- package/dist/cli/autoresearch-intake.js +336 -0
- package/dist/cli/autoresearch-intake.js.map +1 -0
- package/dist/cli/autoresearch.d.ts +16 -0
- package/dist/cli/autoresearch.d.ts.map +1 -0
- package/dist/cli/autoresearch.js +91 -0
- package/dist/cli/autoresearch.js.map +1 -0
- package/dist/cli/catalog-contract.d.ts +10 -0
- package/dist/cli/catalog-contract.d.ts.map +1 -0
- package/dist/cli/catalog-contract.js +34 -0
- package/dist/cli/catalog-contract.js.map +1 -0
- package/dist/cli/cleanup.d.ts +58 -0
- package/dist/cli/cleanup.d.ts.map +1 -0
- package/dist/cli/cleanup.js +444 -0
- package/dist/cli/cleanup.js.map +1 -0
- package/dist/cli/codex-feature-probe.d.ts +17 -0
- package/dist/cli/codex-feature-probe.d.ts.map +1 -0
- package/dist/cli/codex-feature-probe.js +50 -0
- package/dist/cli/codex-feature-probe.js.map +1 -0
- package/dist/cli/codex-home.d.ts +7 -0
- package/dist/cli/codex-home.d.ts.map +1 -0
- package/dist/cli/codex-home.js +26 -0
- package/dist/cli/codex-home.js.map +1 -0
- package/dist/cli/constants.d.ts +11 -0
- package/dist/cli/constants.d.ts.map +1 -0
- package/dist/cli/constants.js +11 -0
- package/dist/cli/constants.js.map +1 -0
- package/dist/cli/doctor.d.ts +43 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +1956 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/explore.d.ts +14 -0
- package/dist/cli/explore.d.ts.map +1 -0
- package/dist/cli/explore.js +72 -0
- package/dist/cli/explore.js.map +1 -0
- package/dist/cli/hooks.d.ts +4 -0
- package/dist/cli/hooks.d.ts.map +1 -0
- package/dist/cli/hooks.js +201 -0
- package/dist/cli/hooks.js.map +1 -0
- package/dist/cli/index.d.ts +247 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +4590 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/list.d.ts +2 -0
- package/dist/cli/list.d.ts.map +1 -0
- package/dist/cli/list.js +40 -0
- package/dist/cli/list.js.map +1 -0
- package/dist/cli/mcp-parity.d.ts +22 -0
- package/dist/cli/mcp-parity.d.ts.map +1 -0
- package/dist/cli/mcp-parity.js +251 -0
- package/dist/cli/mcp-parity.js.map +1 -0
- package/dist/cli/mcp-serve.d.ts +13 -0
- package/dist/cli/mcp-serve.d.ts.map +1 -0
- package/dist/cli/mcp-serve.js +75 -0
- package/dist/cli/mcp-serve.js.map +1 -0
- package/dist/cli/native-assets.d.ts +52 -0
- package/dist/cli/native-assets.d.ts.map +1 -0
- package/dist/cli/native-assets.js +302 -0
- package/dist/cli/native-assets.js.map +1 -0
- package/dist/cli/omx.d.ts +3 -0
- package/dist/cli/omx.d.ts.map +1 -0
- package/dist/cli/omx.js +25 -0
- package/dist/cli/omx.js.map +1 -0
- package/dist/cli/performance-goal.d.ts +3 -0
- package/dist/cli/performance-goal.d.ts.map +1 -0
- package/dist/cli/performance-goal.js +186 -0
- package/dist/cli/performance-goal.js.map +1 -0
- package/dist/cli/plugin-marketplace.d.ts +54 -0
- package/dist/cli/plugin-marketplace.d.ts.map +1 -0
- package/dist/cli/plugin-marketplace.js +369 -0
- package/dist/cli/plugin-marketplace.js.map +1 -0
- package/dist/cli/question.d.ts +3 -0
- package/dist/cli/question.d.ts.map +1 -0
- package/dist/cli/question.js +376 -0
- package/dist/cli/question.js.map +1 -0
- package/dist/cli/ralph.d.ts +17 -0
- package/dist/cli/ralph.d.ts.map +1 -0
- package/dist/cli/ralph.js +330 -0
- package/dist/cli/ralph.js.map +1 -0
- package/dist/cli/session-search.d.ts +8 -0
- package/dist/cli/session-search.d.ts.map +1 -0
- package/dist/cli/session-search.js +133 -0
- package/dist/cli/session-search.js.map +1 -0
- package/dist/cli/setup-preferences.d.ts +26 -0
- package/dist/cli/setup-preferences.d.ts.map +1 -0
- package/dist/cli/setup-preferences.js +82 -0
- package/dist/cli/setup-preferences.js.map +1 -0
- package/dist/cli/setup.d.ts +60 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +2748 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/sparkshell.d.ts +39 -0
- package/dist/cli/sparkshell.d.ts.map +1 -0
- package/dist/cli/sparkshell.js +299 -0
- package/dist/cli/sparkshell.js.map +1 -0
- package/dist/cli/star-prompt.d.ts +31 -0
- package/dist/cli/star-prompt.d.ts.map +1 -0
- package/dist/cli/star-prompt.js +97 -0
- package/dist/cli/star-prompt.js.map +1 -0
- package/dist/cli/state.d.ts +8 -0
- package/dist/cli/state.d.ts.map +1 -0
- package/dist/cli/state.js +149 -0
- package/dist/cli/state.js.map +1 -0
- package/dist/cli/team.d.ts +49 -0
- package/dist/cli/team.d.ts.map +1 -0
- package/dist/cli/team.js +1453 -0
- package/dist/cli/team.js.map +1 -0
- package/dist/cli/tmux-hook.d.ts +3 -0
- package/dist/cli/tmux-hook.d.ts.map +1 -0
- package/dist/cli/tmux-hook.js +403 -0
- package/dist/cli/tmux-hook.js.map +1 -0
- package/dist/cli/ultragoal.d.ts +3 -0
- package/dist/cli/ultragoal.d.ts.map +1 -0
- package/dist/cli/ultragoal.js +494 -0
- package/dist/cli/ultragoal.js.map +1 -0
- package/dist/cli/uninstall.d.ts +15 -0
- package/dist/cli/uninstall.d.ts.map +1 -0
- package/dist/cli/uninstall.js +476 -0
- package/dist/cli/uninstall.js.map +1 -0
- package/dist/cli/update.d.ts +86 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +754 -0
- package/dist/cli/update.js.map +1 -0
- package/dist/cli/version.d.ts +2 -0
- package/dist/cli/version.d.ts.map +1 -0
- package/dist/cli/version.js +13 -0
- package/dist/cli/version.js.map +1 -0
- package/dist/compat/__tests__/doctor-contract.test.d.ts +2 -0
- package/dist/compat/__tests__/doctor-contract.test.d.ts.map +1 -0
- package/dist/compat/__tests__/doctor-contract.test.js +122 -0
- package/dist/compat/__tests__/doctor-contract.test.js.map +1 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.d.ts +2 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.d.ts.map +1 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.js +218 -0
- package/dist/compat/__tests__/rust-runtime-compat.test.js.map +1 -0
- package/dist/config/__tests__/codex-feature-flags.test.d.ts +2 -0
- package/dist/config/__tests__/codex-feature-flags.test.d.ts.map +1 -0
- package/dist/config/__tests__/codex-feature-flags.test.js +45 -0
- package/dist/config/__tests__/codex-feature-flags.test.js.map +1 -0
- package/dist/config/__tests__/codex-hooks.test.d.ts +2 -0
- package/dist/config/__tests__/codex-hooks.test.d.ts.map +1 -0
- package/dist/config/__tests__/codex-hooks.test.js +524 -0
- package/dist/config/__tests__/codex-hooks.test.js.map +1 -0
- package/dist/config/__tests__/commit-lore-guard.test.d.ts +2 -0
- package/dist/config/__tests__/commit-lore-guard.test.d.ts.map +1 -0
- package/dist/config/__tests__/commit-lore-guard.test.js +20 -0
- package/dist/config/__tests__/commit-lore-guard.test.js.map +1 -0
- package/dist/config/__tests__/deep-interview.test.d.ts +2 -0
- package/dist/config/__tests__/deep-interview.test.d.ts.map +1 -0
- package/dist/config/__tests__/deep-interview.test.js +240 -0
- package/dist/config/__tests__/deep-interview.test.js.map +1 -0
- package/dist/config/__tests__/generator-idempotent.test.d.ts +2 -0
- package/dist/config/__tests__/generator-idempotent.test.d.ts.map +1 -0
- package/dist/config/__tests__/generator-idempotent.test.js +1150 -0
- package/dist/config/__tests__/generator-idempotent.test.js.map +1 -0
- package/dist/config/__tests__/generator-notify.test.d.ts +2 -0
- package/dist/config/__tests__/generator-notify.test.d.ts.map +1 -0
- package/dist/config/__tests__/generator-notify.test.js +512 -0
- package/dist/config/__tests__/generator-notify.test.js.map +1 -0
- package/dist/config/__tests__/generator-status-line-presets.test.d.ts +2 -0
- package/dist/config/__tests__/generator-status-line-presets.test.d.ts.map +1 -0
- package/dist/config/__tests__/generator-status-line-presets.test.js +203 -0
- package/dist/config/__tests__/generator-status-line-presets.test.js.map +1 -0
- package/dist/config/__tests__/mcp-registry.test.d.ts +2 -0
- package/dist/config/__tests__/mcp-registry.test.d.ts.map +1 -0
- package/dist/config/__tests__/mcp-registry.test.js +190 -0
- package/dist/config/__tests__/mcp-registry.test.js.map +1 -0
- package/dist/config/__tests__/models.test.d.ts +2 -0
- package/dist/config/__tests__/models.test.d.ts.map +1 -0
- package/dist/config/__tests__/models.test.js +241 -0
- package/dist/config/__tests__/models.test.js.map +1 -0
- package/dist/config/__tests__/wiki-config-contract.test.d.ts +2 -0
- package/dist/config/__tests__/wiki-config-contract.test.d.ts.map +1 -0
- package/dist/config/__tests__/wiki-config-contract.test.js +23 -0
- package/dist/config/__tests__/wiki-config-contract.test.js.map +1 -0
- package/dist/config/codex-feature-flags.d.ts +25 -0
- package/dist/config/codex-feature-flags.d.ts.map +1 -0
- package/dist/config/codex-feature-flags.js +60 -0
- package/dist/config/codex-feature-flags.js.map +1 -0
- package/dist/config/codex-hooks.d.ts +79 -0
- package/dist/config/codex-hooks.d.ts.map +1 -0
- package/dist/config/codex-hooks.js +578 -0
- package/dist/config/codex-hooks.js.map +1 -0
- package/dist/config/commit-lore-guard.d.ts +4 -0
- package/dist/config/commit-lore-guard.d.ts.map +1 -0
- package/dist/config/commit-lore-guard.js +35 -0
- package/dist/config/commit-lore-guard.js.map +1 -0
- package/dist/config/deep-interview.d.ts +22 -0
- package/dist/config/deep-interview.d.ts.map +1 -0
- package/dist/config/deep-interview.js +161 -0
- package/dist/config/deep-interview.js.map +1 -0
- package/dist/config/generator.d.ts +141 -0
- package/dist/config/generator.d.ts.map +1 -0
- package/dist/config/generator.js +1845 -0
- package/dist/config/generator.js.map +1 -0
- package/dist/config/mcp-registry.d.ts +35 -0
- package/dist/config/mcp-registry.d.ts.map +1 -0
- package/dist/config/mcp-registry.js +159 -0
- package/dist/config/mcp-registry.js.map +1 -0
- package/dist/config/models.d.ts +80 -0
- package/dist/config/models.d.ts.map +1 -0
- package/dist/config/models.js +251 -0
- package/dist/config/models.js.map +1 -0
- package/dist/config/omx-first-party-mcp.d.ts +21 -0
- package/dist/config/omx-first-party-mcp.d.ts.map +1 -0
- package/dist/config/omx-first-party-mcp.js +86 -0
- package/dist/config/omx-first-party-mcp.js.map +1 -0
- package/dist/config/team-mode.d.ts +12 -0
- package/dist/config/team-mode.d.ts.map +1 -0
- package/dist/config/team-mode.js +91 -0
- package/dist/config/team-mode.js.map +1 -0
- package/dist/document-refresh/__tests__/enforcer.test.d.ts +2 -0
- package/dist/document-refresh/__tests__/enforcer.test.d.ts.map +1 -0
- package/dist/document-refresh/__tests__/enforcer.test.js +128 -0
- package/dist/document-refresh/__tests__/enforcer.test.js.map +1 -0
- package/dist/document-refresh/config.d.ts +9 -0
- package/dist/document-refresh/config.d.ts.map +1 -0
- package/dist/document-refresh/config.js +70 -0
- package/dist/document-refresh/config.js.map +1 -0
- package/dist/document-refresh/enforcer.d.ts +43 -0
- package/dist/document-refresh/enforcer.d.ts.map +1 -0
- package/dist/document-refresh/enforcer.js +329 -0
- package/dist/document-refresh/enforcer.js.map +1 -0
- package/dist/exec/followup.d.ts +45 -0
- package/dist/exec/followup.d.ts.map +1 -0
- package/dist/exec/followup.js +355 -0
- package/dist/exec/followup.js.map +1 -0
- package/dist/goal-workflows/__tests__/artifacts.test.d.ts +2 -0
- package/dist/goal-workflows/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/goal-workflows/__tests__/artifacts.test.js +96 -0
- package/dist/goal-workflows/__tests__/artifacts.test.js.map +1 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.d.ts +2 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.d.ts.map +1 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.js +75 -0
- package/dist/goal-workflows/__tests__/codex-goal-snapshot.test.js.map +1 -0
- package/dist/goal-workflows/artifacts.d.ts +62 -0
- package/dist/goal-workflows/artifacts.d.ts.map +1 -0
- package/dist/goal-workflows/artifacts.js +132 -0
- package/dist/goal-workflows/artifacts.js.map +1 -0
- package/dist/goal-workflows/codex-goal-snapshot.d.ts +32 -0
- package/dist/goal-workflows/codex-goal-snapshot.d.ts.map +1 -0
- package/dist/goal-workflows/codex-goal-snapshot.js +157 -0
- package/dist/goal-workflows/codex-goal-snapshot.js.map +1 -0
- package/dist/goal-workflows/handoff.d.ts +10 -0
- package/dist/goal-workflows/handoff.d.ts.map +1 -0
- package/dist/goal-workflows/handoff.js +31 -0
- package/dist/goal-workflows/handoff.js.map +1 -0
- package/dist/goal-workflows/validation.d.ts +13 -0
- package/dist/goal-workflows/validation.d.ts.map +1 -0
- package/dist/goal-workflows/validation.js +36 -0
- package/dist/goal-workflows/validation.js.map +1 -0
- package/dist/hooks/__tests__/agents-overlay.test.d.ts +8 -0
- package/dist/hooks/__tests__/agents-overlay.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/agents-overlay.test.js +761 -0
- package/dist/hooks/__tests__/agents-overlay.test.js.map +1 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.js +45 -0
- package/dist/hooks/__tests__/analyze-routing-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.js +48 -0
- package/dist/hooks/__tests__/analyze-skill-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.d.ts +2 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.js +165 -0
- package/dist/hooks/__tests__/anti-slop-workflow.test.js.map +1 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.js +90 -0
- package/dist/hooks/__tests__/autopilot-skill-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.js +39 -0
- package/dist/hooks/__tests__/best-practice-research-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.js +37 -0
- package/dist/hooks/__tests__/clawhip-event-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.js +77 -0
- package/dist/hooks/__tests__/code-review-skill-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/codebase-map.test.d.ts +8 -0
- package/dist/hooks/__tests__/codebase-map.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/codebase-map.test.js +218 -0
- package/dist/hooks/__tests__/codebase-map.test.js.map +1 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts +18 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.js +266 -0
- package/dist/hooks/__tests__/consensus-execution-handoff.test.js.map +1 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.js +20 -0
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.js +309 -0
- package/dist/hooks/__tests__/deep-interview-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/design-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/design-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/design-skill.test.js +55 -0
- package/dist/hooks/__tests__/design-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.js +43 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.js +38 -0
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/explore-routing.test.d.ts +2 -0
- package/dist/hooks/__tests__/explore-routing.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explore-routing.test.js +38 -0
- package/dist/hooks/__tests__/explore-routing.test.js.map +1 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js +67 -0
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.js +28 -0
- package/dist/hooks/__tests__/foreground-isolation-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/keyword-detector.test.d.ts +2 -0
- package/dist/hooks/__tests__/keyword-detector.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/keyword-detector.test.js +3323 -0
- package/dist/hooks/__tests__/keyword-detector.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.js +3956 -0
- package/dist/hooks/__tests__/notify-fallback-watcher.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js +786 -0
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js +2602 -0
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js +161 -0
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js +1178 -0
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.d.ts +9 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.js +529 -0
- package/dist/hooks/__tests__/notify-hook-modules.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.js +14 -0
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.js +176 -0
- package/dist/hooks/__tests__/notify-hook-non-omx-guard.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js +890 -0
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.d.ts +9 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.js +255 -0
- package/dist/hooks/__tests__/notify-hook-regression-205.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.js +162 -0
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.js +304 -0
- package/dist/hooks/__tests__/notify-hook-session-scope.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js +1511 -0
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js +2911 -0
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js +261 -0
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js +35 -0
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js +1854 -0
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.d.ts +10 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.js +0 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.d.ts +11 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.js +266 -0
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.js.map +1 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.d.ts +2 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.js +895 -0
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.js.map +1 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.js +61 -0
- package/dist/hooks/__tests__/openclaw-setup-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.d.ts +2 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.js +40 -0
- package/dist/hooks/__tests__/pre-context-gate-skills.test.js.map +1 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.js +320 -0
- package/dist/hooks/__tests__/prometheus-strict-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.js +11 -0
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.js +38 -0
- package/dist/hooks/__tests__/prompt-guidance-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.js +48 -0
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.js +11 -0
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.d.ts +5 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.js +34 -0
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.js.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js +81 -0
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.js +38 -0
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.js +22 -0
- package/dist/hooks/__tests__/prompt-refactor-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.d.ts +2 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.js +49 -0
- package/dist/hooks/__tests__/prompt-team-routing.test.js.map +1 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.d.ts +2 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.js +35 -0
- package/dist/hooks/__tests__/research-workflow-boundaries.test.js.map +1 -0
- package/dist/hooks/__tests__/session.test.d.ts +2 -0
- package/dist/hooks/__tests__/session.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/session.test.js +504 -0
- package/dist/hooks/__tests__/session.test.js.map +1 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.d.ts +2 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.js +84 -0
- package/dist/hooks/__tests__/skill-catalog-hygiene.test.js.map +1 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.js +89 -0
- package/dist/hooks/__tests__/skill-guidance-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/task-size-detector.test.d.ts +2 -0
- package/dist/hooks/__tests__/task-size-detector.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/task-size-detector.test.js +330 -0
- package/dist/hooks/__tests__/task-size-detector.test.js.map +1 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js +28 -0
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.d.ts +2 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.js +24 -0
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.js.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.d.ts +2 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.js +403 -0
- package/dist/hooks/__tests__/tmux-hook-engine.test.js.map +1 -0
- package/dist/hooks/__tests__/triage-config.test.d.ts +2 -0
- package/dist/hooks/__tests__/triage-config.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/triage-config.test.js +211 -0
- package/dist/hooks/__tests__/triage-config.test.js.map +1 -0
- package/dist/hooks/__tests__/triage-heuristic.test.d.ts +2 -0
- package/dist/hooks/__tests__/triage-heuristic.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/triage-heuristic.test.js +285 -0
- package/dist/hooks/__tests__/triage-heuristic.test.js.map +1 -0
- package/dist/hooks/__tests__/triage-state.test.d.ts +2 -0
- package/dist/hooks/__tests__/triage-state.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/triage-state.test.js +426 -0
- package/dist/hooks/__tests__/triage-state.test.js.map +1 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.d.ts +2 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.js +44 -0
- package/dist/hooks/__tests__/visual-ralph-skill.test.js.map +1 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.d.ts +2 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.js +31 -0
- package/dist/hooks/__tests__/visual-verdict-loop.test.js.map +1 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.d.ts +2 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.js +35 -0
- package/dist/hooks/__tests__/wiki-docs-contract.test.js.map +1 -0
- package/dist/hooks/agents-overlay.d.ts +51 -0
- package/dist/hooks/agents-overlay.d.ts.map +1 -0
- package/dist/hooks/agents-overlay.js +547 -0
- package/dist/hooks/agents-overlay.js.map +1 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.d.ts +2 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.d.ts.map +1 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.js +187 -0
- package/dist/hooks/code-simplifier/__tests__/index.test.js.map +1 -0
- package/dist/hooks/code-simplifier/index.d.ts +80 -0
- package/dist/hooks/code-simplifier/index.d.ts.map +1 -0
- package/dist/hooks/code-simplifier/index.js +172 -0
- package/dist/hooks/code-simplifier/index.js.map +1 -0
- package/dist/hooks/codebase-map.d.ts +23 -0
- package/dist/hooks/codebase-map.d.ts.map +1 -0
- package/dist/hooks/codebase-map.js +234 -0
- package/dist/hooks/codebase-map.js.map +1 -0
- package/dist/hooks/deep-interview-config-instruction.d.ts +3 -0
- package/dist/hooks/deep-interview-config-instruction.d.ts.map +1 -0
- package/dist/hooks/deep-interview-config-instruction.js +47 -0
- package/dist/hooks/deep-interview-config-instruction.js.map +1 -0
- package/dist/hooks/explore-routing.d.ts +5 -0
- package/dist/hooks/explore-routing.d.ts.map +1 -0
- package/dist/hooks/explore-routing.js +37 -0
- package/dist/hooks/explore-routing.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.js +265 -0
- package/dist/hooks/extensibility/__tests__/dispatcher.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/events.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/events.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/events.test.js +125 -0
- package/dist/hooks/extensibility/__tests__/events.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.js +153 -0
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/loader.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/loader.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/loader.test.js +254 -0
- package/dist/hooks/extensibility/__tests__/loader.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/logging.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/logging.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/logging.test.js +74 -0
- package/dist/hooks/extensibility/__tests__/logging.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.js +344 -0
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.js +198 -0
- package/dist/hooks/extensibility/__tests__/runtime.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.js +32 -0
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.js.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.d.ts +2 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.d.ts.map +1 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.js +479 -0
- package/dist/hooks/extensibility/__tests__/sdk.test.js.map +1 -0
- package/dist/hooks/extensibility/dispatcher.d.ts +4 -0
- package/dist/hooks/extensibility/dispatcher.d.ts.map +1 -0
- package/dist/hooks/extensibility/dispatcher.js +302 -0
- package/dist/hooks/extensibility/dispatcher.js.map +1 -0
- package/dist/hooks/extensibility/events.d.ts +18 -0
- package/dist/hooks/extensibility/events.d.ts.map +1 -0
- package/dist/hooks/extensibility/events.js +53 -0
- package/dist/hooks/extensibility/events.js.map +1 -0
- package/dist/hooks/extensibility/index.d.ts +6 -0
- package/dist/hooks/extensibility/index.d.ts.map +1 -0
- package/dist/hooks/extensibility/index.js +6 -0
- package/dist/hooks/extensibility/index.js.map +1 -0
- package/dist/hooks/extensibility/loader.d.ts +14 -0
- package/dist/hooks/extensibility/loader.d.ts.map +1 -0
- package/dist/hooks/extensibility/loader.js +117 -0
- package/dist/hooks/extensibility/loader.js.map +1 -0
- package/dist/hooks/extensibility/logging.d.ts +4 -0
- package/dist/hooks/extensibility/logging.d.ts.map +1 -0
- package/dist/hooks/extensibility/logging.js +22 -0
- package/dist/hooks/extensibility/logging.js.map +1 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.d.ts +2 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.d.ts.map +1 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.js +16 -0
- package/dist/hooks/extensibility/plugin-runner-stdin.js.map +1 -0
- package/dist/hooks/extensibility/plugin-runner.d.ts +2 -0
- package/dist/hooks/extensibility/plugin-runner.d.ts.map +1 -0
- package/dist/hooks/extensibility/plugin-runner.js +63 -0
- package/dist/hooks/extensibility/plugin-runner.js.map +1 -0
- package/dist/hooks/extensibility/runtime.d.ts +3 -0
- package/dist/hooks/extensibility/runtime.d.ts.map +1 -0
- package/dist/hooks/extensibility/runtime.js +42 -0
- package/dist/hooks/extensibility/runtime.js.map +1 -0
- package/dist/hooks/extensibility/sdk/logging.d.ts +6 -0
- package/dist/hooks/extensibility/sdk/logging.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/logging.js +32 -0
- package/dist/hooks/extensibility/sdk/logging.js.map +1 -0
- package/dist/hooks/extensibility/sdk/paths.d.ts +7 -0
- package/dist/hooks/extensibility/sdk/paths.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/paths.js +23 -0
- package/dist/hooks/extensibility/sdk/paths.js.map +1 -0
- package/dist/hooks/extensibility/sdk/plugin-state.d.ts +5 -0
- package/dist/hooks/extensibility/sdk/plugin-state.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/plugin-state.js +66 -0
- package/dist/hooks/extensibility/sdk/plugin-state.js.map +1 -0
- package/dist/hooks/extensibility/sdk/runtime-state.d.ts +3 -0
- package/dist/hooks/extensibility/sdk/runtime-state.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/runtime-state.js +47 -0
- package/dist/hooks/extensibility/sdk/runtime-state.js.map +1 -0
- package/dist/hooks/extensibility/sdk/tmux.d.ts +10 -0
- package/dist/hooks/extensibility/sdk/tmux.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk/tmux.js +181 -0
- package/dist/hooks/extensibility/sdk/tmux.js.map +1 -0
- package/dist/hooks/extensibility/sdk.d.ts +11 -0
- package/dist/hooks/extensibility/sdk.d.ts.map +1 -0
- package/dist/hooks/extensibility/sdk.js +21 -0
- package/dist/hooks/extensibility/sdk.js.map +1 -0
- package/dist/hooks/extensibility/types.d.ts +175 -0
- package/dist/hooks/extensibility/types.d.ts.map +1 -0
- package/dist/hooks/extensibility/types.js +2 -0
- package/dist/hooks/extensibility/types.js.map +1 -0
- package/dist/hooks/keyword-detector.d.ts +170 -0
- package/dist/hooks/keyword-detector.d.ts.map +1 -0
- package/dist/hooks/keyword-detector.js +1363 -0
- package/dist/hooks/keyword-detector.js.map +1 -0
- package/dist/hooks/keyword-registry.d.ts +15 -0
- package/dist/hooks/keyword-registry.d.ts.map +1 -0
- package/dist/hooks/keyword-registry.js +56 -0
- package/dist/hooks/keyword-registry.js.map +1 -0
- package/dist/hooks/prompt-guidance-contract.d.ts +20 -0
- package/dist/hooks/prompt-guidance-contract.d.ts.map +1 -0
- package/dist/hooks/prompt-guidance-contract.js +380 -0
- package/dist/hooks/prompt-guidance-contract.js.map +1 -0
- package/dist/hooks/session.d.ts +83 -0
- package/dist/hooks/session.d.ts.map +1 -0
- package/dist/hooks/session.js +412 -0
- package/dist/hooks/session.js.map +1 -0
- package/dist/hooks/task-size-detector.d.ts +72 -0
- package/dist/hooks/task-size-detector.d.ts.map +1 -0
- package/dist/hooks/task-size-detector.js +203 -0
- package/dist/hooks/task-size-detector.js.map +1 -0
- package/dist/hooks/triage-config.d.ts +33 -0
- package/dist/hooks/triage-config.d.ts.map +1 -0
- package/dist/hooks/triage-config.js +87 -0
- package/dist/hooks/triage-config.js.map +1 -0
- package/dist/hooks/triage-heuristic.d.ts +20 -0
- package/dist/hooks/triage-heuristic.d.ts.map +1 -0
- package/dist/hooks/triage-heuristic.js +287 -0
- package/dist/hooks/triage-heuristic.js.map +1 -0
- package/dist/hooks/triage-state.d.ts +63 -0
- package/dist/hooks/triage-state.d.ts.map +1 -0
- package/dist/hooks/triage-state.js +139 -0
- package/dist/hooks/triage-state.js.map +1 -0
- package/dist/hud/__tests__/authority.test.d.ts +2 -0
- package/dist/hud/__tests__/authority.test.d.ts.map +1 -0
- package/dist/hud/__tests__/authority.test.js +527 -0
- package/dist/hud/__tests__/authority.test.js.map +1 -0
- package/dist/hud/__tests__/colors.test.d.ts +2 -0
- package/dist/hud/__tests__/colors.test.d.ts.map +1 -0
- package/dist/hud/__tests__/colors.test.js +92 -0
- package/dist/hud/__tests__/colors.test.js.map +1 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts +10 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts.map +1 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js +185 -0
- package/dist/hud/__tests__/hud-tmux-injection.test.js.map +1 -0
- package/dist/hud/__tests__/index.test.d.ts +2 -0
- package/dist/hud/__tests__/index.test.d.ts.map +1 -0
- package/dist/hud/__tests__/index.test.js +684 -0
- package/dist/hud/__tests__/index.test.js.map +1 -0
- package/dist/hud/__tests__/reconcile.test.d.ts +2 -0
- package/dist/hud/__tests__/reconcile.test.d.ts.map +1 -0
- package/dist/hud/__tests__/reconcile.test.js +1621 -0
- package/dist/hud/__tests__/reconcile.test.js.map +1 -0
- package/dist/hud/__tests__/render.test.d.ts +2 -0
- package/dist/hud/__tests__/render.test.d.ts.map +1 -0
- package/dist/hud/__tests__/render.test.js +983 -0
- package/dist/hud/__tests__/render.test.js.map +1 -0
- package/dist/hud/__tests__/resource-leak-watch.test.d.ts +2 -0
- package/dist/hud/__tests__/resource-leak-watch.test.d.ts.map +1 -0
- package/dist/hud/__tests__/resource-leak-watch.test.js +28 -0
- package/dist/hud/__tests__/resource-leak-watch.test.js.map +1 -0
- package/dist/hud/__tests__/state.test.d.ts +2 -0
- package/dist/hud/__tests__/state.test.d.ts.map +1 -0
- package/dist/hud/__tests__/state.test.js +1212 -0
- package/dist/hud/__tests__/state.test.js.map +1 -0
- package/dist/hud/__tests__/tmux.test.d.ts +2 -0
- package/dist/hud/__tests__/tmux.test.d.ts.map +1 -0
- package/dist/hud/__tests__/tmux.test.js +679 -0
- package/dist/hud/__tests__/tmux.test.js.map +1 -0
- package/dist/hud/__tests__/types.test.d.ts +2 -0
- package/dist/hud/__tests__/types.test.d.ts.map +1 -0
- package/dist/hud/__tests__/types.test.js +79 -0
- package/dist/hud/__tests__/types.test.js.map +1 -0
- package/dist/hud/__tests__/watch.test.d.ts +2 -0
- package/dist/hud/__tests__/watch.test.d.ts.map +1 -0
- package/dist/hud/__tests__/watch.test.js +63 -0
- package/dist/hud/__tests__/watch.test.js.map +1 -0
- package/dist/hud/authority.d.ts +22 -0
- package/dist/hud/authority.d.ts.map +1 -0
- package/dist/hud/authority.js +377 -0
- package/dist/hud/authority.js.map +1 -0
- package/dist/hud/colors.d.ts +20 -0
- package/dist/hud/colors.d.ts.map +1 -0
- package/dist/hud/colors.js +60 -0
- package/dist/hud/colors.js.map +1 -0
- package/dist/hud/constants.d.ts +16 -0
- package/dist/hud/constants.d.ts.map +1 -0
- package/dist/hud/constants.js +25 -0
- package/dist/hud/constants.js.map +1 -0
- package/dist/hud/index.d.ts +79 -0
- package/dist/hud/index.d.ts.map +1 -0
- package/dist/hud/index.js +384 -0
- package/dist/hud/index.js.map +1 -0
- package/dist/hud/reconcile.d.ts +37 -0
- package/dist/hud/reconcile.d.ts.map +1 -0
- package/dist/hud/reconcile.js +326 -0
- package/dist/hud/reconcile.js.map +1 -0
- package/dist/hud/render.d.ts +15 -0
- package/dist/hud/render.d.ts.map +1 -0
- package/dist/hud/render.js +453 -0
- package/dist/hud/render.js.map +1 -0
- package/dist/hud/state.d.ts +27 -0
- package/dist/hud/state.d.ts.map +1 -0
- package/dist/hud/state.js +477 -0
- package/dist/hud/state.js.map +1 -0
- package/dist/hud/tmux.d.ts +87 -0
- package/dist/hud/tmux.d.ts.map +1 -0
- package/dist/hud/tmux.js +572 -0
- package/dist/hud/tmux.js.map +1 -0
- package/dist/hud/types.d.ts +165 -0
- package/dist/hud/types.d.ts.map +1 -0
- package/dist/hud/types.js +14 -0
- package/dist/hud/types.js.map +1 -0
- package/dist/imagegen/continuation.d.ts +44 -0
- package/dist/imagegen/continuation.d.ts.map +1 -0
- package/dist/imagegen/continuation.js +220 -0
- package/dist/imagegen/continuation.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/__tests__/bootstrap.test.d.ts +2 -0
- package/dist/mcp/__tests__/bootstrap.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/bootstrap.test.js +372 -0
- package/dist/mcp/__tests__/bootstrap.test.js.map +1 -0
- package/dist/mcp/__tests__/code-intel-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/code-intel-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/code-intel-server.test.js +70 -0
- package/dist/mcp/__tests__/code-intel-server.test.js.map +1 -0
- package/dist/mcp/__tests__/hermes-bridge.test.d.ts +2 -0
- package/dist/mcp/__tests__/hermes-bridge.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/hermes-bridge.test.js +651 -0
- package/dist/mcp/__tests__/hermes-bridge.test.js.map +1 -0
- package/dist/mcp/__tests__/memory-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/memory-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/memory-server.test.js +36 -0
- package/dist/mcp/__tests__/memory-server.test.js.map +1 -0
- package/dist/mcp/__tests__/memory-validation.test.d.ts +2 -0
- package/dist/mcp/__tests__/memory-validation.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/memory-validation.test.js +29 -0
- package/dist/mcp/__tests__/memory-validation.test.js.map +1 -0
- package/dist/mcp/__tests__/path-traversal.test.d.ts +2 -0
- package/dist/mcp/__tests__/path-traversal.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/path-traversal.test.js +83 -0
- package/dist/mcp/__tests__/path-traversal.test.js.map +1 -0
- package/dist/mcp/__tests__/server-lifecycle.test.d.ts +2 -0
- package/dist/mcp/__tests__/server-lifecycle.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/server-lifecycle.test.js +308 -0
- package/dist/mcp/__tests__/server-lifecycle.test.js.map +1 -0
- package/dist/mcp/__tests__/state-paths.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-paths.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-paths.test.js +477 -0
- package/dist/mcp/__tests__/state-paths.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.js +109 -0
- package/dist/mcp/__tests__/state-server-ralph-phase.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server-schema.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server-schema.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server-schema.test.js +29 -0
- package/dist/mcp/__tests__/state-server-schema.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.js +35 -0
- package/dist/mcp/__tests__/state-server-team-tools.test.js.map +1 -0
- package/dist/mcp/__tests__/state-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/state-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/state-server.test.js +1318 -0
- package/dist/mcp/__tests__/state-server.test.js.map +1 -0
- package/dist/mcp/__tests__/trace-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/trace-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/trace-server.test.js +119 -0
- package/dist/mcp/__tests__/trace-server.test.js.map +1 -0
- package/dist/mcp/__tests__/wiki-server.test.d.ts +2 -0
- package/dist/mcp/__tests__/wiki-server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/wiki-server.test.js +126 -0
- package/dist/mcp/__tests__/wiki-server.test.js.map +1 -0
- package/dist/mcp/bootstrap.d.ts +44 -0
- package/dist/mcp/bootstrap.d.ts.map +1 -0
- package/dist/mcp/bootstrap.js +520 -0
- package/dist/mcp/bootstrap.js.map +1 -0
- package/dist/mcp/code-intel-server.d.ts +333 -0
- package/dist/mcp/code-intel-server.d.ts.map +1 -0
- package/dist/mcp/code-intel-server.js +605 -0
- package/dist/mcp/code-intel-server.js.map +1 -0
- package/dist/mcp/hermes-bridge.d.ts +124 -0
- package/dist/mcp/hermes-bridge.d.ts.map +1 -0
- package/dist/mcp/hermes-bridge.js +549 -0
- package/dist/mcp/hermes-bridge.js.map +1 -0
- package/dist/mcp/hermes-server.d.ts +374 -0
- package/dist/mcp/hermes-server.d.ts.map +1 -0
- package/dist/mcp/hermes-server.js +158 -0
- package/dist/mcp/hermes-server.js.map +1 -0
- package/dist/mcp/lifecycle-telemetry.d.ts +16 -0
- package/dist/mcp/lifecycle-telemetry.d.ts.map +1 -0
- package/dist/mcp/lifecycle-telemetry.js +95 -0
- package/dist/mcp/lifecycle-telemetry.js.map +1 -0
- package/dist/mcp/memory-server.d.ts +201 -0
- package/dist/mcp/memory-server.d.ts.map +1 -0
- package/dist/mcp/memory-server.js +441 -0
- package/dist/mcp/memory-server.js.map +1 -0
- package/dist/mcp/memory-validation.d.ts +9 -0
- package/dist/mcp/memory-validation.d.ts.map +1 -0
- package/dist/mcp/memory-validation.js +11 -0
- package/dist/mcp/memory-validation.js.map +1 -0
- package/dist/mcp/state-paths.d.ts +91 -0
- package/dist/mcp/state-paths.d.ts.map +1 -0
- package/dist/mcp/state-paths.js +473 -0
- package/dist/mcp/state-paths.js.map +1 -0
- package/dist/mcp/state-server.d.ts +222 -0
- package/dist/mcp/state-server.d.ts.map +1 -0
- package/dist/mcp/state-server.js +181 -0
- package/dist/mcp/state-server.js.map +1 -0
- package/dist/mcp/trace-server.d.ts +81 -0
- package/dist/mcp/trace-server.d.ts.map +1 -0
- package/dist/mcp/trace-server.js +271 -0
- package/dist/mcp/trace-server.js.map +1 -0
- package/dist/mcp/wiki-server.d.ts +181 -0
- package/dist/mcp/wiki-server.d.ts.map +1 -0
- package/dist/mcp/wiki-server.js +244 -0
- package/dist/mcp/wiki-server.js.map +1 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.d.ts +2 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.js +154 -0
- package/dist/modes/__tests__/base-autopilot-gates.test.js.map +1 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.d.ts +2 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.js +129 -0
- package/dist/modes/__tests__/base-autoresearch-contract.test.js.map +1 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.d.ts +2 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.js +38 -0
- package/dist/modes/__tests__/base-multi-state-compat.test.js.map +1 -0
- package/dist/modes/__tests__/base-ralph-contract.test.d.ts +2 -0
- package/dist/modes/__tests__/base-ralph-contract.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-ralph-contract.test.js +64 -0
- package/dist/modes/__tests__/base-ralph-contract.test.js.map +1 -0
- package/dist/modes/__tests__/base-session-scope.test.d.ts +2 -0
- package/dist/modes/__tests__/base-session-scope.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-session-scope.test.js +146 -0
- package/dist/modes/__tests__/base-session-scope.test.js.map +1 -0
- package/dist/modes/__tests__/base-tmux-pane.test.d.ts +2 -0
- package/dist/modes/__tests__/base-tmux-pane.test.d.ts.map +1 -0
- package/dist/modes/__tests__/base-tmux-pane.test.js +100 -0
- package/dist/modes/__tests__/base-tmux-pane.test.js.map +1 -0
- package/dist/modes/base.d.ts +60 -0
- package/dist/modes/base.d.ts.map +1 -0
- package/dist/modes/base.js +346 -0
- package/dist/modes/base.js.map +1 -0
- package/dist/notifications/__tests__/config.test.d.ts +2 -0
- package/dist/notifications/__tests__/config.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/config.test.js +269 -0
- package/dist/notifications/__tests__/config.test.js.map +1 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.d.ts +2 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.js +84 -0
- package/dist/notifications/__tests__/custom-alias-enablement.test.js.map +1 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.d.ts +5 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.js +100 -0
- package/dist/notifications/__tests__/dispatch-cooldown.test.js.map +1 -0
- package/dist/notifications/__tests__/dispatcher.test.d.ts +2 -0
- package/dist/notifications/__tests__/dispatcher.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/dispatcher.test.js +202 -0
- package/dist/notifications/__tests__/dispatcher.test.js.map +1 -0
- package/dist/notifications/__tests__/formatter.test.d.ts +2 -0
- package/dist/notifications/__tests__/formatter.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/formatter.test.js +270 -0
- package/dist/notifications/__tests__/formatter.test.js.map +1 -0
- package/dist/notifications/__tests__/hook-config.test.d.ts +5 -0
- package/dist/notifications/__tests__/hook-config.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/hook-config.test.js +139 -0
- package/dist/notifications/__tests__/hook-config.test.js.map +1 -0
- package/dist/notifications/__tests__/http-client-resource.test.d.ts +2 -0
- package/dist/notifications/__tests__/http-client-resource.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/http-client-resource.test.js +41 -0
- package/dist/notifications/__tests__/http-client-resource.test.js.map +1 -0
- package/dist/notifications/__tests__/http-client.test.d.ts +2 -0
- package/dist/notifications/__tests__/http-client.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/http-client.test.js +90 -0
- package/dist/notifications/__tests__/http-client.test.js.map +1 -0
- package/dist/notifications/__tests__/idle-cooldown.test.d.ts +5 -0
- package/dist/notifications/__tests__/idle-cooldown.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/idle-cooldown.test.js +209 -0
- package/dist/notifications/__tests__/idle-cooldown.test.js.map +1 -0
- package/dist/notifications/__tests__/index.test.d.ts +2 -0
- package/dist/notifications/__tests__/index.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/index.test.js +188 -0
- package/dist/notifications/__tests__/index.test.js.map +1 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.d.ts +2 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.js +86 -0
- package/dist/notifications/__tests__/lifecycle-dedupe.test.js.map +1 -0
- package/dist/notifications/__tests__/notifier.test.d.ts +2 -0
- package/dist/notifications/__tests__/notifier.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/notifier.test.js +201 -0
- package/dist/notifications/__tests__/notifier.test.js.map +1 -0
- package/dist/notifications/__tests__/profiles.test.d.ts +2 -0
- package/dist/notifications/__tests__/profiles.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/profiles.test.js +404 -0
- package/dist/notifications/__tests__/profiles.test.js.map +1 -0
- package/dist/notifications/__tests__/reply-config.test.d.ts +2 -0
- package/dist/notifications/__tests__/reply-config.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/reply-config.test.js +79 -0
- package/dist/notifications/__tests__/reply-config.test.js.map +1 -0
- package/dist/notifications/__tests__/reply-listener.test.d.ts +2 -0
- package/dist/notifications/__tests__/reply-listener.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/reply-listener.test.js +723 -0
- package/dist/notifications/__tests__/reply-listener.test.js.map +1 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.d.ts +2 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.js +93 -0
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.js.map +1 -0
- package/dist/notifications/__tests__/session-registry.test.d.ts +2 -0
- package/dist/notifications/__tests__/session-registry.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/session-registry.test.js +234 -0
- package/dist/notifications/__tests__/session-registry.test.js.map +1 -0
- package/dist/notifications/__tests__/session-status.test.d.ts +2 -0
- package/dist/notifications/__tests__/session-status.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/session-status.test.js +249 -0
- package/dist/notifications/__tests__/session-status.test.js.map +1 -0
- package/dist/notifications/__tests__/temp-mode.test.d.ts +2 -0
- package/dist/notifications/__tests__/temp-mode.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/temp-mode.test.js +172 -0
- package/dist/notifications/__tests__/temp-mode.test.js.map +1 -0
- package/dist/notifications/__tests__/template-engine.test.d.ts +5 -0
- package/dist/notifications/__tests__/template-engine.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/template-engine.test.js +158 -0
- package/dist/notifications/__tests__/template-engine.test.js.map +1 -0
- package/dist/notifications/__tests__/tmux-detector.test.d.ts +2 -0
- package/dist/notifications/__tests__/tmux-detector.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/tmux-detector.test.js +204 -0
- package/dist/notifications/__tests__/tmux-detector.test.js.map +1 -0
- package/dist/notifications/__tests__/tmux.test.d.ts +2 -0
- package/dist/notifications/__tests__/tmux.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/tmux.test.js +285 -0
- package/dist/notifications/__tests__/tmux.test.js.map +1 -0
- package/dist/notifications/__tests__/verbosity.test.d.ts +2 -0
- package/dist/notifications/__tests__/verbosity.test.d.ts.map +1 -0
- package/dist/notifications/__tests__/verbosity.test.js +257 -0
- package/dist/notifications/__tests__/verbosity.test.js.map +1 -0
- package/dist/notifications/config.d.ts +65 -0
- package/dist/notifications/config.d.ts.map +1 -0
- package/dist/notifications/config.js +615 -0
- package/dist/notifications/config.js.map +1 -0
- package/dist/notifications/dispatch-cooldown.d.ts +36 -0
- package/dist/notifications/dispatch-cooldown.d.ts.map +1 -0
- package/dist/notifications/dispatch-cooldown.js +109 -0
- package/dist/notifications/dispatch-cooldown.js.map +1 -0
- package/dist/notifications/dispatcher.d.ts +15 -0
- package/dist/notifications/dispatcher.d.ts.map +1 -0
- package/dist/notifications/dispatcher.js +385 -0
- package/dist/notifications/dispatcher.js.map +1 -0
- package/dist/notifications/formatter.d.ts +30 -0
- package/dist/notifications/formatter.d.ts.map +1 -0
- package/dist/notifications/formatter.js +234 -0
- package/dist/notifications/formatter.js.map +1 -0
- package/dist/notifications/hook-config-types.d.ts +43 -0
- package/dist/notifications/hook-config-types.d.ts.map +1 -0
- package/dist/notifications/hook-config-types.js +8 -0
- package/dist/notifications/hook-config-types.js.map +1 -0
- package/dist/notifications/hook-config.d.ts +40 -0
- package/dist/notifications/hook-config.d.ts.map +1 -0
- package/dist/notifications/hook-config.js +127 -0
- package/dist/notifications/hook-config.js.map +1 -0
- package/dist/notifications/http-client.d.ts +22 -0
- package/dist/notifications/http-client.d.ts.map +1 -0
- package/dist/notifications/http-client.js +349 -0
- package/dist/notifications/http-client.js.map +1 -0
- package/dist/notifications/idle-cooldown.d.ts +61 -0
- package/dist/notifications/idle-cooldown.d.ts.map +1 -0
- package/dist/notifications/idle-cooldown.js +207 -0
- package/dist/notifications/idle-cooldown.js.map +1 -0
- package/dist/notifications/index.d.ts +40 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +228 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/lifecycle-dedupe.d.ts +8 -0
- package/dist/notifications/lifecycle-dedupe.d.ts.map +1 -0
- package/dist/notifications/lifecycle-dedupe.js +112 -0
- package/dist/notifications/lifecycle-dedupe.js.map +1 -0
- package/dist/notifications/notifier.d.ts +45 -0
- package/dist/notifications/notifier.d.ts.map +1 -0
- package/dist/notifications/notifier.js +146 -0
- package/dist/notifications/notifier.js.map +1 -0
- package/dist/notifications/reply-listener.d.ts +123 -0
- package/dist/notifications/reply-listener.d.ts.map +1 -0
- package/dist/notifications/reply-listener.js +846 -0
- package/dist/notifications/reply-listener.js.map +1 -0
- package/dist/notifications/session-registry.d.ts +26 -0
- package/dist/notifications/session-registry.d.ts.map +1 -0
- package/dist/notifications/session-registry.js +293 -0
- package/dist/notifications/session-registry.js.map +1 -0
- package/dist/notifications/session-status.d.ts +25 -0
- package/dist/notifications/session-status.d.ts.map +1 -0
- package/dist/notifications/session-status.js +202 -0
- package/dist/notifications/session-status.js.map +1 -0
- package/dist/notifications/temp-contract.d.ts +22 -0
- package/dist/notifications/temp-contract.d.ts.map +1 -0
- package/dist/notifications/temp-contract.js +147 -0
- package/dist/notifications/temp-contract.js.map +1 -0
- package/dist/notifications/template-engine.d.ts +34 -0
- package/dist/notifications/template-engine.d.ts.map +1 -0
- package/dist/notifications/template-engine.js +249 -0
- package/dist/notifications/template-engine.js.map +1 -0
- package/dist/notifications/tmux-detector.d.ts +59 -0
- package/dist/notifications/tmux-detector.d.ts.map +1 -0
- package/dist/notifications/tmux-detector.js +126 -0
- package/dist/notifications/tmux-detector.js.map +1 -0
- package/dist/notifications/tmux.d.ts +44 -0
- package/dist/notifications/tmux.d.ts.map +1 -0
- package/dist/notifications/tmux.js +293 -0
- package/dist/notifications/tmux.js.map +1 -0
- package/dist/notifications/types.d.ts +226 -0
- package/dist/notifications/types.d.ts.map +1 -0
- package/dist/notifications/types.js +9 -0
- package/dist/notifications/types.js.map +1 -0
- package/dist/openclaw/__tests__/config.test.d.ts +6 -0
- package/dist/openclaw/__tests__/config.test.d.ts.map +1 -0
- package/dist/openclaw/__tests__/config.test.js +344 -0
- package/dist/openclaw/__tests__/config.test.js.map +1 -0
- package/dist/openclaw/__tests__/dispatcher.test.d.ts +5 -0
- package/dist/openclaw/__tests__/dispatcher.test.d.ts.map +1 -0
- package/dist/openclaw/__tests__/dispatcher.test.js +278 -0
- package/dist/openclaw/__tests__/dispatcher.test.js.map +1 -0
- package/dist/openclaw/__tests__/index.test.d.ts +6 -0
- package/dist/openclaw/__tests__/index.test.d.ts.map +1 -0
- package/dist/openclaw/__tests__/index.test.js +382 -0
- package/dist/openclaw/__tests__/index.test.js.map +1 -0
- package/dist/openclaw/config.d.ts +59 -0
- package/dist/openclaw/config.d.ts.map +1 -0
- package/dist/openclaw/config.js +400 -0
- package/dist/openclaw/config.js.map +1 -0
- package/dist/openclaw/dispatcher.d.ts +75 -0
- package/dist/openclaw/dispatcher.d.ts.map +1 -0
- package/dist/openclaw/dispatcher.js +223 -0
- package/dist/openclaw/dispatcher.js.map +1 -0
- package/dist/openclaw/index.d.ts +29 -0
- package/dist/openclaw/index.d.ts.map +1 -0
- package/dist/openclaw/index.js +149 -0
- package/dist/openclaw/index.js.map +1 -0
- package/dist/openclaw/types.d.ts +123 -0
- package/dist/openclaw/types.d.ts.map +1 -0
- package/dist/openclaw/types.js +12 -0
- package/dist/openclaw/types.js.map +1 -0
- package/dist/performance-goal/artifacts.d.ts +76 -0
- package/dist/performance-goal/artifacts.d.ts.map +1 -0
- package/dist/performance-goal/artifacts.js +221 -0
- package/dist/performance-goal/artifacts.js.map +1 -0
- package/dist/pipeline/__tests__/orchestrator.test.d.ts +2 -0
- package/dist/pipeline/__tests__/orchestrator.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/orchestrator.test.js +645 -0
- package/dist/pipeline/__tests__/orchestrator.test.js.map +1 -0
- package/dist/pipeline/__tests__/stages.test.d.ts +2 -0
- package/dist/pipeline/__tests__/stages.test.d.ts.map +1 -0
- package/dist/pipeline/__tests__/stages.test.js +1638 -0
- package/dist/pipeline/__tests__/stages.test.js.map +1 -0
- package/dist/pipeline/index.d.ts +25 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/index.js +17 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/pipeline/orchestrator.d.ts +52 -0
- package/dist/pipeline/orchestrator.d.ts.map +1 -0
- package/dist/pipeline/orchestrator.js +392 -0
- package/dist/pipeline/orchestrator.js.map +1 -0
- package/dist/pipeline/review-verdict.d.ts +3 -0
- package/dist/pipeline/review-verdict.d.ts.map +1 -0
- package/dist/pipeline/review-verdict.js +14 -0
- package/dist/pipeline/review-verdict.js.map +1 -0
- package/dist/pipeline/stages/code-review.d.ts +35 -0
- package/dist/pipeline/stages/code-review.d.ts.map +1 -0
- package/dist/pipeline/stages/code-review.js +55 -0
- package/dist/pipeline/stages/code-review.js.map +1 -0
- package/dist/pipeline/stages/deep-interview.d.ts +15 -0
- package/dist/pipeline/stages/deep-interview.d.ts.map +1 -0
- package/dist/pipeline/stages/deep-interview.js +32 -0
- package/dist/pipeline/stages/deep-interview.js.map +1 -0
- package/dist/pipeline/stages/ralph-verify.d.ts +53 -0
- package/dist/pipeline/stages/ralph-verify.d.ts.map +1 -0
- package/dist/pipeline/stages/ralph-verify.js +89 -0
- package/dist/pipeline/stages/ralph-verify.js.map +1 -0
- package/dist/pipeline/stages/ralplan.d.ts +26 -0
- package/dist/pipeline/stages/ralplan.d.ts.map +1 -0
- package/dist/pipeline/stages/ralplan.js +151 -0
- package/dist/pipeline/stages/ralplan.js.map +1 -0
- package/dist/pipeline/stages/team-exec.d.ts +52 -0
- package/dist/pipeline/stages/team-exec.d.ts.map +1 -0
- package/dist/pipeline/stages/team-exec.js +266 -0
- package/dist/pipeline/stages/team-exec.js.map +1 -0
- package/dist/pipeline/stages/ultragoal.d.ts +19 -0
- package/dist/pipeline/stages/ultragoal.d.ts.map +1 -0
- package/dist/pipeline/stages/ultragoal.js +38 -0
- package/dist/pipeline/stages/ultragoal.js.map +1 -0
- package/dist/pipeline/stages/ultraqa.d.ts +33 -0
- package/dist/pipeline/stages/ultraqa.d.ts.map +1 -0
- package/dist/pipeline/stages/ultraqa.js +49 -0
- package/dist/pipeline/stages/ultraqa.js.map +1 -0
- package/dist/pipeline/types.d.ts +124 -0
- package/dist/pipeline/types.d.ts.map +1 -0
- package/dist/pipeline/types.js +8 -0
- package/dist/pipeline/types.js.map +1 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.d.ts +2 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.d.ts.map +1 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js +158 -0
- package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js.map +1 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.d.ts +2 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.d.ts.map +1 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.js +440 -0
- package/dist/planning/__tests__/approved-launch-hint-lineage-matrix.test.js.map +1 -0
- package/dist/planning/__tests__/artifacts.test.d.ts +2 -0
- package/dist/planning/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/planning/__tests__/artifacts.test.js +942 -0
- package/dist/planning/__tests__/artifacts.test.js.map +1 -0
- package/dist/planning/__tests__/markdown-structure.test.d.ts +2 -0
- package/dist/planning/__tests__/markdown-structure.test.d.ts.map +1 -0
- package/dist/planning/__tests__/markdown-structure.test.js +459 -0
- package/dist/planning/__tests__/markdown-structure.test.js.map +1 -0
- package/dist/planning/artifact-names.d.ts +13 -0
- package/dist/planning/artifact-names.d.ts.map +1 -0
- package/dist/planning/artifact-names.js +108 -0
- package/dist/planning/artifact-names.js.map +1 -0
- package/dist/planning/artifacts.d.ts +65 -0
- package/dist/planning/artifacts.d.ts.map +1 -0
- package/dist/planning/artifacts.js +561 -0
- package/dist/planning/artifacts.js.map +1 -0
- package/dist/planning/markdown-structure.d.ts +20 -0
- package/dist/planning/markdown-structure.d.ts.map +1 -0
- package/dist/planning/markdown-structure.js +137 -0
- package/dist/planning/markdown-structure.js.map +1 -0
- package/dist/question/__tests__/client.test.d.ts +2 -0
- package/dist/question/__tests__/client.test.d.ts.map +1 -0
- package/dist/question/__tests__/client.test.js +90 -0
- package/dist/question/__tests__/client.test.js.map +1 -0
- package/dist/question/__tests__/deep-interview.test.d.ts +2 -0
- package/dist/question/__tests__/deep-interview.test.d.ts.map +1 -0
- package/dist/question/__tests__/deep-interview.test.js +440 -0
- package/dist/question/__tests__/deep-interview.test.js.map +1 -0
- package/dist/question/__tests__/policy.test.d.ts +2 -0
- package/dist/question/__tests__/policy.test.d.ts.map +1 -0
- package/dist/question/__tests__/policy.test.js +273 -0
- package/dist/question/__tests__/policy.test.js.map +1 -0
- package/dist/question/__tests__/renderer.test.d.ts +2 -0
- package/dist/question/__tests__/renderer.test.d.ts.map +1 -0
- package/dist/question/__tests__/renderer.test.js +1461 -0
- package/dist/question/__tests__/renderer.test.js.map +1 -0
- package/dist/question/__tests__/state.test.d.ts +2 -0
- package/dist/question/__tests__/state.test.d.ts.map +1 -0
- package/dist/question/__tests__/state.test.js +541 -0
- package/dist/question/__tests__/state.test.js.map +1 -0
- package/dist/question/__tests__/types.test.d.ts +2 -0
- package/dist/question/__tests__/types.test.d.ts.map +1 -0
- package/dist/question/__tests__/types.test.js +65 -0
- package/dist/question/__tests__/types.test.js.map +1 -0
- package/dist/question/__tests__/ui.test.d.ts +2 -0
- package/dist/question/__tests__/ui.test.d.ts.map +1 -0
- package/dist/question/__tests__/ui.test.js +483 -0
- package/dist/question/__tests__/ui.test.js.map +1 -0
- package/dist/question/autopilot-wait.d.ts +21 -0
- package/dist/question/autopilot-wait.d.ts.map +1 -0
- package/dist/question/autopilot-wait.js +251 -0
- package/dist/question/autopilot-wait.js.map +1 -0
- package/dist/question/client.d.ts +64 -0
- package/dist/question/client.d.ts.map +1 -0
- package/dist/question/client.js +77 -0
- package/dist/question/client.js.map +1 -0
- package/dist/question/deep-interview.d.ts +33 -0
- package/dist/question/deep-interview.d.ts.map +1 -0
- package/dist/question/deep-interview.js +216 -0
- package/dist/question/deep-interview.js.map +1 -0
- package/dist/question/events.d.ts +53 -0
- package/dist/question/events.d.ts.map +1 -0
- package/dist/question/events.js +201 -0
- package/dist/question/events.js.map +1 -0
- package/dist/question/policy.d.ts +19 -0
- package/dist/question/policy.d.ts.map +1 -0
- package/dist/question/policy.js +95 -0
- package/dist/question/policy.js.map +1 -0
- package/dist/question/renderer.d.ts +66 -0
- package/dist/question/renderer.d.ts.map +1 -0
- package/dist/question/renderer.js +748 -0
- package/dist/question/renderer.js.map +1 -0
- package/dist/question/state.d.ts +56 -0
- package/dist/question/state.d.ts.map +1 -0
- package/dist/question/state.js +432 -0
- package/dist/question/state.js.map +1 -0
- package/dist/question/types.d.ts +92 -0
- package/dist/question/types.d.ts.map +1 -0
- package/dist/question/types.js +117 -0
- package/dist/question/types.js.map +1 -0
- package/dist/question/ui.d.ts +66 -0
- package/dist/question/ui.d.ts.map +1 -0
- package/dist/question/ui.js +458 -0
- package/dist/question/ui.js.map +1 -0
- package/dist/ralph/__tests__/completion-audit.test.d.ts +2 -0
- package/dist/ralph/__tests__/completion-audit.test.d.ts.map +1 -0
- package/dist/ralph/__tests__/completion-audit.test.js +160 -0
- package/dist/ralph/__tests__/completion-audit.test.js.map +1 -0
- package/dist/ralph/__tests__/persistence.test.d.ts +2 -0
- package/dist/ralph/__tests__/persistence.test.d.ts.map +1 -0
- package/dist/ralph/__tests__/persistence.test.js +116 -0
- package/dist/ralph/__tests__/persistence.test.js.map +1 -0
- package/dist/ralph/completion-audit.d.ts +8 -0
- package/dist/ralph/completion-audit.d.ts.map +1 -0
- package/dist/ralph/completion-audit.js +99 -0
- package/dist/ralph/completion-audit.js.map +1 -0
- package/dist/ralph/contract.d.ts +17 -0
- package/dist/ralph/contract.d.ts.map +1 -0
- package/dist/ralph/contract.js +108 -0
- package/dist/ralph/contract.js.map +1 -0
- package/dist/ralph/persistence.d.ts +29 -0
- package/dist/ralph/persistence.d.ts.map +1 -0
- package/dist/ralph/persistence.js +273 -0
- package/dist/ralph/persistence.js.map +1 -0
- package/dist/ralplan/__tests__/consensus-gate.test.d.ts +2 -0
- package/dist/ralplan/__tests__/consensus-gate.test.d.ts.map +1 -0
- package/dist/ralplan/__tests__/consensus-gate.test.js +192 -0
- package/dist/ralplan/__tests__/consensus-gate.test.js.map +1 -0
- package/dist/ralplan/__tests__/runtime.test.d.ts +2 -0
- package/dist/ralplan/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/ralplan/__tests__/runtime.test.js +548 -0
- package/dist/ralplan/__tests__/runtime.test.js.map +1 -0
- package/dist/ralplan/consensus-gate.d.ts +37 -0
- package/dist/ralplan/consensus-gate.d.ts.map +1 -0
- package/dist/ralplan/consensus-gate.js +422 -0
- package/dist/ralplan/consensus-gate.js.map +1 -0
- package/dist/ralplan/runtime.d.ts +86 -0
- package/dist/ralplan/runtime.d.ts.map +1 -0
- package/dist/ralplan/runtime.js +365 -0
- package/dist/ralplan/runtime.js.map +1 -0
- package/dist/runtime/__tests__/bridge.test.d.ts +2 -0
- package/dist/runtime/__tests__/bridge.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/bridge.test.js +194 -0
- package/dist/runtime/__tests__/bridge.test.js.map +1 -0
- package/dist/runtime/__tests__/process-tree.test.d.ts +2 -0
- package/dist/runtime/__tests__/process-tree.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/process-tree.test.js +107 -0
- package/dist/runtime/__tests__/process-tree.test.js.map +1 -0
- package/dist/runtime/__tests__/run-loop.test.d.ts +2 -0
- package/dist/runtime/__tests__/run-loop.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/run-loop.test.js +35 -0
- package/dist/runtime/__tests__/run-loop.test.js.map +1 -0
- package/dist/runtime/__tests__/run-outcome.test.d.ts +2 -0
- package/dist/runtime/__tests__/run-outcome.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/run-outcome.test.js +102 -0
- package/dist/runtime/__tests__/run-outcome.test.js.map +1 -0
- package/dist/runtime/__tests__/run-state.test.d.ts +2 -0
- package/dist/runtime/__tests__/run-state.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/run-state.test.js +37 -0
- package/dist/runtime/__tests__/run-state.test.js.map +1 -0
- package/dist/runtime/bridge.d.ts +214 -0
- package/dist/runtime/bridge.d.ts.map +1 -0
- package/dist/runtime/bridge.js +223 -0
- package/dist/runtime/bridge.js.map +1 -0
- package/dist/runtime/process-tree.d.ts +28 -0
- package/dist/runtime/process-tree.d.ts.map +1 -0
- package/dist/runtime/process-tree.js +230 -0
- package/dist/runtime/process-tree.js.map +1 -0
- package/dist/runtime/run-loop.d.ts +45 -0
- package/dist/runtime/run-loop.d.ts.map +1 -0
- package/dist/runtime/run-loop.js +51 -0
- package/dist/runtime/run-loop.js.map +1 -0
- package/dist/runtime/run-outcome.d.ts +46 -0
- package/dist/runtime/run-outcome.d.ts.map +1 -0
- package/dist/runtime/run-outcome.js +285 -0
- package/dist/runtime/run-outcome.js.map +1 -0
- package/dist/runtime/run-state.d.ts +40 -0
- package/dist/runtime/run-state.d.ts.map +1 -0
- package/dist/runtime/run-state.js +120 -0
- package/dist/runtime/run-state.js.map +1 -0
- package/dist/runtime/terminal-lifecycle.d.ts +11 -0
- package/dist/runtime/terminal-lifecycle.d.ts.map +1 -0
- package/dist/runtime/terminal-lifecycle.js +52 -0
- package/dist/runtime/terminal-lifecycle.js.map +1 -0
- package/dist/scripts/__tests__/codex-native-hook.test.d.ts +2 -0
- package/dist/scripts/__tests__/codex-native-hook.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/codex-native-hook.test.js +14253 -0
- package/dist/scripts/__tests__/codex-native-hook.test.js.map +1 -0
- package/dist/scripts/__tests__/docs-site-contract.test.d.ts +2 -0
- package/dist/scripts/__tests__/docs-site-contract.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/docs-site-contract.test.js +42 -0
- package/dist/scripts/__tests__/docs-site-contract.test.js.map +1 -0
- package/dist/scripts/__tests__/generate-release-body.test.d.ts +2 -0
- package/dist/scripts/__tests__/generate-release-body.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/generate-release-body.test.js +233 -0
- package/dist/scripts/__tests__/generate-release-body.test.js.map +1 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.d.ts +2 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.js +227 -0
- package/dist/scripts/__tests__/hook-derived-watcher.test.js.map +1 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.js +421 -0
- package/dist/scripts/__tests__/notify-dispatcher.test.js.map +1 -0
- package/dist/scripts/__tests__/notify-state-io.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-state-io.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-state-io.test.js +111 -0
- package/dist/scripts/__tests__/notify-state-io.test.js.map +1 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.d.ts +2 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.js +57 -0
- package/dist/scripts/__tests__/notify-tmux-injection.test.js.map +1 -0
- package/dist/scripts/__tests__/postinstall.test.d.ts +2 -0
- package/dist/scripts/__tests__/postinstall.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/postinstall.test.js +92 -0
- package/dist/scripts/__tests__/postinstall.test.js.map +1 -0
- package/dist/scripts/__tests__/prompt-inventory.test.d.ts +2 -0
- package/dist/scripts/__tests__/prompt-inventory.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/prompt-inventory.test.js +56 -0
- package/dist/scripts/__tests__/prompt-inventory.test.js.map +1 -0
- package/dist/scripts/__tests__/run-test-files.test.d.ts +2 -0
- package/dist/scripts/__tests__/run-test-files.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/run-test-files.test.js +365 -0
- package/dist/scripts/__tests__/run-test-files.test.js.map +1 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.d.ts +2 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.js +160 -0
- package/dist/scripts/__tests__/smoke-packed-install.test.js.map +1 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.d.ts +2 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.js +82 -0
- package/dist/scripts/__tests__/test-reply-listener-live.test.js.map +1 -0
- package/dist/scripts/__tests__/verify-native-agents.test.d.ts +2 -0
- package/dist/scripts/__tests__/verify-native-agents.test.d.ts.map +1 -0
- package/dist/scripts/__tests__/verify-native-agents.test.js +246 -0
- package/dist/scripts/__tests__/verify-native-agents.test.js.map +1 -0
- package/dist/scripts/build-api.d.ts +2 -0
- package/dist/scripts/build-api.d.ts.map +1 -0
- package/dist/scripts/build-api.js +44 -0
- package/dist/scripts/build-api.js.map +1 -0
- package/dist/scripts/build-explore-harness.d.ts +3 -0
- package/dist/scripts/build-explore-harness.d.ts.map +1 -0
- package/dist/scripts/build-explore-harness.js +50 -0
- package/dist/scripts/build-explore-harness.js.map +1 -0
- package/dist/scripts/build-sparkshell.d.ts +2 -0
- package/dist/scripts/build-sparkshell.d.ts.map +1 -0
- package/dist/scripts/build-sparkshell.js +46 -0
- package/dist/scripts/build-sparkshell.js.map +1 -0
- package/dist/scripts/check-runtime-syntax.d.ts +3 -0
- package/dist/scripts/check-runtime-syntax.d.ts.map +1 -0
- package/dist/scripts/check-runtime-syntax.js +57 -0
- package/dist/scripts/check-runtime-syntax.js.map +1 -0
- package/dist/scripts/check-version-sync.d.ts +3 -0
- package/dist/scripts/check-version-sync.d.ts.map +1 -0
- package/dist/scripts/check-version-sync.js +53 -0
- package/dist/scripts/check-version-sync.js.map +1 -0
- package/dist/scripts/cleanup-explore-harness.d.ts +3 -0
- package/dist/scripts/cleanup-explore-harness.d.ts.map +1 -0
- package/dist/scripts/cleanup-explore-harness.js +17 -0
- package/dist/scripts/cleanup-explore-harness.js.map +1 -0
- package/dist/scripts/codex-execution-surface.d.ts +16 -0
- package/dist/scripts/codex-execution-surface.d.ts.map +1 -0
- package/dist/scripts/codex-execution-surface.js +42 -0
- package/dist/scripts/codex-execution-surface.js.map +1 -0
- package/dist/scripts/codex-native-hook.d.ts +26 -0
- package/dist/scripts/codex-native-hook.d.ts.map +1 -0
- package/dist/scripts/codex-native-hook.js +3842 -0
- package/dist/scripts/codex-native-hook.js.map +1 -0
- package/dist/scripts/codex-native-pre-post.d.ts +46 -0
- package/dist/scripts/codex-native-pre-post.d.ts.map +1 -0
- package/dist/scripts/codex-native-pre-post.js +1186 -0
- package/dist/scripts/codex-native-pre-post.js.map +1 -0
- package/dist/scripts/eval/eval-candidate-handoff.d.ts +2 -0
- package/dist/scripts/eval/eval-candidate-handoff.d.ts.map +1 -0
- package/dist/scripts/eval/eval-candidate-handoff.js +11 -0
- package/dist/scripts/eval/eval-candidate-handoff.js.map +1 -0
- package/dist/scripts/eval/eval-cli-discoverability.d.ts +3 -0
- package/dist/scripts/eval/eval-cli-discoverability.d.ts.map +1 -0
- package/dist/scripts/eval/eval-cli-discoverability.js +37 -0
- package/dist/scripts/eval/eval-cli-discoverability.js.map +1 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.d.ts +2 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.d.ts.map +1 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.js +11 -0
- package/dist/scripts/eval/eval-fresh-run-tagging.js.map +1 -0
- package/dist/scripts/eval/eval-help-consistency.d.ts +2 -0
- package/dist/scripts/eval/eval-help-consistency.d.ts.map +1 -0
- package/dist/scripts/eval/eval-help-consistency.js +12 -0
- package/dist/scripts/eval/eval-help-consistency.js.map +1 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.d.ts +2 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.d.ts.map +1 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.js +31 -0
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.js.map +1 -0
- package/dist/scripts/eval/eval-parity-smoke.d.ts +2 -0
- package/dist/scripts/eval/eval-parity-smoke.d.ts.map +1 -0
- package/dist/scripts/eval/eval-parity-smoke.js +23 -0
- package/dist/scripts/eval/eval-parity-smoke.js.map +1 -0
- package/dist/scripts/eval/eval-parity-sweep.d.ts +2 -0
- package/dist/scripts/eval/eval-parity-sweep.d.ts.map +1 -0
- package/dist/scripts/eval/eval-parity-sweep.js +29 -0
- package/dist/scripts/eval/eval-parity-sweep.js.map +1 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.d.ts +2 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.d.ts.map +1 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.js +11 -0
- package/dist/scripts/eval/eval-resume-dirty-guard.js.map +1 -0
- package/dist/scripts/eval/eval-security-path-traversal.d.ts +3 -0
- package/dist/scripts/eval/eval-security-path-traversal.d.ts.map +1 -0
- package/dist/scripts/eval/eval-security-path-traversal.js +35 -0
- package/dist/scripts/eval/eval-security-path-traversal.js.map +1 -0
- package/dist/scripts/fixtures/ask-advisor-stub.d.ts +3 -0
- package/dist/scripts/fixtures/ask-advisor-stub.d.ts.map +1 -0
- package/dist/scripts/fixtures/ask-advisor-stub.js +13 -0
- package/dist/scripts/fixtures/ask-advisor-stub.js.map +1 -0
- package/dist/scripts/generate-catalog-docs.d.ts +3 -0
- package/dist/scripts/generate-catalog-docs.d.ts.map +1 -0
- package/dist/scripts/generate-catalog-docs.js +99 -0
- package/dist/scripts/generate-catalog-docs.js.map +1 -0
- package/dist/scripts/generate-native-release-manifest.d.ts +3 -0
- package/dist/scripts/generate-native-release-manifest.d.ts.map +1 -0
- package/dist/scripts/generate-native-release-manifest.js +107 -0
- package/dist/scripts/generate-native-release-manifest.js.map +1 -0
- package/dist/scripts/generate-release-body.d.ts +35 -0
- package/dist/scripts/generate-release-body.d.ts.map +1 -0
- package/dist/scripts/generate-release-body.js +278 -0
- package/dist/scripts/generate-release-body.js.map +1 -0
- package/dist/scripts/hook-derived-watcher.d.ts +3 -0
- package/dist/scripts/hook-derived-watcher.d.ts.map +1 -0
- package/dist/scripts/hook-derived-watcher.js +557 -0
- package/dist/scripts/hook-derived-watcher.js.map +1 -0
- package/dist/scripts/hook-payload-guard.d.ts +9 -0
- package/dist/scripts/hook-payload-guard.d.ts.map +1 -0
- package/dist/scripts/hook-payload-guard.js +111 -0
- package/dist/scripts/hook-payload-guard.js.map +1 -0
- package/dist/scripts/notify-dispatcher.d.ts +7 -0
- package/dist/scripts/notify-dispatcher.d.ts.map +1 -0
- package/dist/scripts/notify-dispatcher.js +359 -0
- package/dist/scripts/notify-dispatcher.js.map +1 -0
- package/dist/scripts/notify-fallback-watcher.d.ts +3 -0
- package/dist/scripts/notify-fallback-watcher.d.ts.map +1 -0
- package/dist/scripts/notify-fallback-watcher.js +1771 -0
- package/dist/scripts/notify-fallback-watcher.js.map +1 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.d.ts +2 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.d.ts.map +1 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.js +24 -0
- package/dist/scripts/notify-hook/__tests__/operational-events.test.js.map +1 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.d.ts +2 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.d.ts.map +1 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.js +39 -0
- package/dist/scripts/notify-hook/__tests__/payload-guard.test.js.map +1 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts +2 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts.map +1 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js +153 -0
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js.map +1 -0
- package/dist/scripts/notify-hook/active-team.d.ts +9 -0
- package/dist/scripts/notify-hook/active-team.d.ts.map +1 -0
- package/dist/scripts/notify-hook/active-team.js +45 -0
- package/dist/scripts/notify-hook/active-team.js.map +1 -0
- package/dist/scripts/notify-hook/auto-nudge.d.ts +96 -0
- package/dist/scripts/notify-hook/auto-nudge.d.ts.map +1 -0
- package/dist/scripts/notify-hook/auto-nudge.js +698 -0
- package/dist/scripts/notify-hook/auto-nudge.js.map +1 -0
- package/dist/scripts/notify-hook/log.d.ts +6 -0
- package/dist/scripts/notify-hook/log.d.ts.map +1 -0
- package/dist/scripts/notify-hook/log.js +22 -0
- package/dist/scripts/notify-hook/log.js.map +1 -0
- package/dist/scripts/notify-hook/managed-tmux.d.ts +21 -0
- package/dist/scripts/notify-hook/managed-tmux.d.ts.map +1 -0
- package/dist/scripts/notify-hook/managed-tmux.js +541 -0
- package/dist/scripts/notify-hook/managed-tmux.js.map +1 -0
- package/dist/scripts/notify-hook/operational-events.d.ts +14 -0
- package/dist/scripts/notify-hook/operational-events.d.ts.map +1 -0
- package/dist/scripts/notify-hook/operational-events.js +255 -0
- package/dist/scripts/notify-hook/operational-events.js.map +1 -0
- package/dist/scripts/notify-hook/orchestration-intent.d.ts +17 -0
- package/dist/scripts/notify-hook/orchestration-intent.d.ts.map +1 -0
- package/dist/scripts/notify-hook/orchestration-intent.js +71 -0
- package/dist/scripts/notify-hook/orchestration-intent.js.map +1 -0
- package/dist/scripts/notify-hook/payload-parser.d.ts +13 -0
- package/dist/scripts/notify-hook/payload-parser.d.ts.map +1 -0
- package/dist/scripts/notify-hook/payload-parser.js +134 -0
- package/dist/scripts/notify-hook/payload-parser.js.map +1 -0
- package/dist/scripts/notify-hook/process-runner.d.ts +9 -0
- package/dist/scripts/notify-hook/process-runner.d.ts.map +1 -0
- package/dist/scripts/notify-hook/process-runner.js +74 -0
- package/dist/scripts/notify-hook/process-runner.js.map +1 -0
- package/dist/scripts/notify-hook/ralph-session-resume.d.ts +22 -0
- package/dist/scripts/notify-hook/ralph-session-resume.d.ts.map +1 -0
- package/dist/scripts/notify-hook/ralph-session-resume.js +381 -0
- package/dist/scripts/notify-hook/ralph-session-resume.js.map +1 -0
- package/dist/scripts/notify-hook/state-io.d.ts +21 -0
- package/dist/scripts/notify-hook/state-io.d.ts.map +1 -0
- package/dist/scripts/notify-hook/state-io.js +169 -0
- package/dist/scripts/notify-hook/state-io.js.map +1 -0
- package/dist/scripts/notify-hook/team-dispatch.d.ts +36 -0
- package/dist/scripts/notify-hook/team-dispatch.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-dispatch.js +1084 -0
- package/dist/scripts/notify-hook/team-dispatch.js.map +1 -0
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts +21 -0
- package/dist/scripts/notify-hook/team-leader-nudge.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js +1029 -0
- package/dist/scripts/notify-hook/team-leader-nudge.js.map +1 -0
- package/dist/scripts/notify-hook/team-tmux-guard.d.ts +15 -0
- package/dist/scripts/notify-hook/team-tmux-guard.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-tmux-guard.js +205 -0
- package/dist/scripts/notify-hook/team-tmux-guard.js.map +1 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.d.ts +34 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.js +434 -0
- package/dist/scripts/notify-hook/team-worker-posttooluse.js.map +1 -0
- package/dist/scripts/notify-hook/team-worker-stop.d.ts +15 -0
- package/dist/scripts/notify-hook/team-worker-stop.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker-stop.js +418 -0
- package/dist/scripts/notify-hook/team-worker-stop.js.map +1 -0
- package/dist/scripts/notify-hook/team-worker.d.ts +33 -0
- package/dist/scripts/notify-hook/team-worker.d.ts.map +1 -0
- package/dist/scripts/notify-hook/team-worker.js +705 -0
- package/dist/scripts/notify-hook/team-worker.js.map +1 -0
- package/dist/scripts/notify-hook/tmux-injection.d.ts +15 -0
- package/dist/scripts/notify-hook/tmux-injection.d.ts.map +1 -0
- package/dist/scripts/notify-hook/tmux-injection.js +673 -0
- package/dist/scripts/notify-hook/tmux-injection.js.map +1 -0
- package/dist/scripts/notify-hook/utils.d.ts +9 -0
- package/dist/scripts/notify-hook/utils.d.ts.map +1 -0
- package/dist/scripts/notify-hook/utils.js +36 -0
- package/dist/scripts/notify-hook/utils.js.map +1 -0
- package/dist/scripts/notify-hook/visual-verdict.d.ts +29 -0
- package/dist/scripts/notify-hook/visual-verdict.d.ts.map +1 -0
- package/dist/scripts/notify-hook/visual-verdict.js +145 -0
- package/dist/scripts/notify-hook/visual-verdict.js.map +1 -0
- package/dist/scripts/notify-hook.d.ts +20 -0
- package/dist/scripts/notify-hook.d.ts.map +1 -0
- package/dist/scripts/notify-hook.js +950 -0
- package/dist/scripts/notify-hook.js.map +1 -0
- package/dist/scripts/postinstall.d.ts +18 -0
- package/dist/scripts/postinstall.d.ts.map +1 -0
- package/dist/scripts/postinstall.js +66 -0
- package/dist/scripts/postinstall.js.map +1 -0
- package/dist/scripts/prompt-inventory.d.ts +29 -0
- package/dist/scripts/prompt-inventory.d.ts.map +1 -0
- package/dist/scripts/prompt-inventory.js +178 -0
- package/dist/scripts/prompt-inventory.js.map +1 -0
- package/dist/scripts/run-provider-advisor.d.ts +3 -0
- package/dist/scripts/run-provider-advisor.d.ts.map +1 -0
- package/dist/scripts/run-provider-advisor.js +177 -0
- package/dist/scripts/run-provider-advisor.js.map +1 -0
- package/dist/scripts/run-test-files.d.ts +2 -0
- package/dist/scripts/run-test-files.d.ts.map +1 -0
- package/dist/scripts/run-test-files.js +340 -0
- package/dist/scripts/run-test-files.js.map +1 -0
- package/dist/scripts/smoke-packed-install.d.ts +21 -0
- package/dist/scripts/smoke-packed-install.d.ts.map +1 -0
- package/dist/scripts/smoke-packed-install.js +221 -0
- package/dist/scripts/smoke-packed-install.js.map +1 -0
- package/dist/scripts/sync-plugin-mirror.d.ts +14 -0
- package/dist/scripts/sync-plugin-mirror.d.ts.map +1 -0
- package/dist/scripts/sync-plugin-mirror.js +306 -0
- package/dist/scripts/sync-plugin-mirror.js.map +1 -0
- package/dist/scripts/sync-prompt-guidance-fragments.d.ts +3 -0
- package/dist/scripts/sync-prompt-guidance-fragments.d.ts.map +1 -0
- package/dist/scripts/sync-prompt-guidance-fragments.js +50 -0
- package/dist/scripts/sync-prompt-guidance-fragments.js.map +1 -0
- package/dist/scripts/team-hardening-benchmark.d.ts +3 -0
- package/dist/scripts/team-hardening-benchmark.d.ts.map +1 -0
- package/dist/scripts/team-hardening-benchmark.js +91 -0
- package/dist/scripts/team-hardening-benchmark.js.map +1 -0
- package/dist/scripts/test-reply-listener-live.d.ts +24 -0
- package/dist/scripts/test-reply-listener-live.d.ts.map +1 -0
- package/dist/scripts/test-reply-listener-live.js +138 -0
- package/dist/scripts/test-reply-listener-live.js.map +1 -0
- package/dist/scripts/test-sparkshell.d.ts +2 -0
- package/dist/scripts/test-sparkshell.d.ts.map +1 -0
- package/dist/scripts/test-sparkshell.js +25 -0
- package/dist/scripts/test-sparkshell.js.map +1 -0
- package/dist/scripts/tmux-hook-engine.d.ts +45 -0
- package/dist/scripts/tmux-hook-engine.d.ts.map +1 -0
- package/dist/scripts/tmux-hook-engine.js +313 -0
- package/dist/scripts/tmux-hook-engine.js.map +1 -0
- package/dist/scripts/verify-native-agents.d.ts +16 -0
- package/dist/scripts/verify-native-agents.d.ts.map +1 -0
- package/dist/scripts/verify-native-agents.js +247 -0
- package/dist/scripts/verify-native-agents.js.map +1 -0
- package/dist/scripts/verify-native-release-assets.d.ts +3 -0
- package/dist/scripts/verify-native-release-assets.d.ts.map +1 -0
- package/dist/scripts/verify-native-release-assets.js +62 -0
- package/dist/scripts/verify-native-release-assets.js.map +1 -0
- package/dist/session-history/__tests__/search.test.d.ts +2 -0
- package/dist/session-history/__tests__/search.test.d.ts.map +1 -0
- package/dist/session-history/__tests__/search.test.js +150 -0
- package/dist/session-history/__tests__/search.test.js.map +1 -0
- package/dist/session-history/search.d.ts +31 -0
- package/dist/session-history/search.d.ts.map +1 -0
- package/dist/session-history/search.js +331 -0
- package/dist/session-history/search.js.map +1 -0
- package/dist/sidecar/__tests__/boundary.test.d.ts +2 -0
- package/dist/sidecar/__tests__/boundary.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/boundary.test.js +48 -0
- package/dist/sidecar/__tests__/boundary.test.js.map +1 -0
- package/dist/sidecar/__tests__/collector.test.d.ts +2 -0
- package/dist/sidecar/__tests__/collector.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/collector.test.js +162 -0
- package/dist/sidecar/__tests__/collector.test.js.map +1 -0
- package/dist/sidecar/__tests__/render.test.d.ts +2 -0
- package/dist/sidecar/__tests__/render.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/render.test.js +67 -0
- package/dist/sidecar/__tests__/render.test.js.map +1 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.d.ts +2 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.js +38 -0
- package/dist/sidecar/__tests__/resource-leak-watch.test.js.map +1 -0
- package/dist/sidecar/__tests__/tmux.test.d.ts +2 -0
- package/dist/sidecar/__tests__/tmux.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/tmux.test.js +30 -0
- package/dist/sidecar/__tests__/tmux.test.js.map +1 -0
- package/dist/sidecar/__tests__/watch.test.d.ts +2 -0
- package/dist/sidecar/__tests__/watch.test.d.ts.map +1 -0
- package/dist/sidecar/__tests__/watch.test.js +42 -0
- package/dist/sidecar/__tests__/watch.test.js.map +1 -0
- package/dist/sidecar/collector.d.ts +4 -0
- package/dist/sidecar/collector.d.ts.map +1 -0
- package/dist/sidecar/collector.js +377 -0
- package/dist/sidecar/collector.js.map +1 -0
- package/dist/sidecar/index.d.ts +25 -0
- package/dist/sidecar/index.d.ts.map +1 -0
- package/dist/sidecar/index.js +182 -0
- package/dist/sidecar/index.js.map +1 -0
- package/dist/sidecar/render.d.ts +3 -0
- package/dist/sidecar/render.d.ts.map +1 -0
- package/dist/sidecar/render.js +72 -0
- package/dist/sidecar/render.js.map +1 -0
- package/dist/sidecar/tmux.d.ts +13 -0
- package/dist/sidecar/tmux.d.ts.map +1 -0
- package/dist/sidecar/tmux.js +44 -0
- package/dist/sidecar/tmux.js.map +1 -0
- package/dist/sidecar/types.d.ts +125 -0
- package/dist/sidecar/types.d.ts.map +1 -0
- package/dist/sidecar/types.js +2 -0
- package/dist/sidecar/types.js.map +1 -0
- package/dist/state/__tests__/mode-state-context.test.d.ts +2 -0
- package/dist/state/__tests__/mode-state-context.test.d.ts.map +1 -0
- package/dist/state/__tests__/mode-state-context.test.js +35 -0
- package/dist/state/__tests__/mode-state-context.test.js.map +1 -0
- package/dist/state/__tests__/operations-ralph-phase.test.d.ts +2 -0
- package/dist/state/__tests__/operations-ralph-phase.test.d.ts.map +1 -0
- package/dist/state/__tests__/operations-ralph-phase.test.js +190 -0
- package/dist/state/__tests__/operations-ralph-phase.test.js.map +1 -0
- package/dist/state/__tests__/operations.test.d.ts +2 -0
- package/dist/state/__tests__/operations.test.d.ts.map +1 -0
- package/dist/state/__tests__/operations.test.js +2753 -0
- package/dist/state/__tests__/operations.test.js.map +1 -0
- package/dist/state/__tests__/path-traversal.test.d.ts +2 -0
- package/dist/state/__tests__/path-traversal.test.d.ts.map +1 -0
- package/dist/state/__tests__/path-traversal.test.js +49 -0
- package/dist/state/__tests__/path-traversal.test.js.map +1 -0
- package/dist/state/__tests__/planning-gate.test.d.ts +2 -0
- package/dist/state/__tests__/planning-gate.test.d.ts.map +1 -0
- package/dist/state/__tests__/planning-gate.test.js +219 -0
- package/dist/state/__tests__/planning-gate.test.js.map +1 -0
- package/dist/state/__tests__/skill-active.test.d.ts +2 -0
- package/dist/state/__tests__/skill-active.test.d.ts.map +1 -0
- package/dist/state/__tests__/skill-active.test.js +314 -0
- package/dist/state/__tests__/skill-active.test.js.map +1 -0
- package/dist/state/__tests__/workflow-transition.test.d.ts +2 -0
- package/dist/state/__tests__/workflow-transition.test.d.ts.map +1 -0
- package/dist/state/__tests__/workflow-transition.test.js +293 -0
- package/dist/state/__tests__/workflow-transition.test.js.map +1 -0
- package/dist/state/mode-state-context.d.ts +14 -0
- package/dist/state/mode-state-context.d.ts.map +1 -0
- package/dist/state/mode-state-context.js +49 -0
- package/dist/state/mode-state-context.js.map +1 -0
- package/dist/state/operations.d.ts +13 -0
- package/dist/state/operations.d.ts.map +1 -0
- package/dist/state/operations.js +544 -0
- package/dist/state/operations.js.map +1 -0
- package/dist/state/paths.d.ts +3 -0
- package/dist/state/paths.d.ts.map +1 -0
- package/dist/state/paths.js +2 -0
- package/dist/state/paths.js.map +1 -0
- package/dist/state/skill-active.d.ts +64 -0
- package/dist/state/skill-active.d.ts.map +1 -0
- package/dist/state/skill-active.js +375 -0
- package/dist/state/skill-active.js.map +1 -0
- package/dist/state/workflow-transition-reconcile.d.ts +22 -0
- package/dist/state/workflow-transition-reconcile.d.ts.map +1 -0
- package/dist/state/workflow-transition-reconcile.js +144 -0
- package/dist/state/workflow-transition-reconcile.js.map +1 -0
- package/dist/state/workflow-transition.d.ts +45 -0
- package/dist/state/workflow-transition.d.ts.map +1 -0
- package/dist/state/workflow-transition.js +268 -0
- package/dist/state/workflow-transition.js.map +1 -0
- package/dist/subagents/__tests__/tracker.test.d.ts +2 -0
- package/dist/subagents/__tests__/tracker.test.d.ts.map +1 -0
- package/dist/subagents/__tests__/tracker.test.js +255 -0
- package/dist/subagents/__tests__/tracker.test.js.map +1 -0
- package/dist/subagents/tracker.d.ts +60 -0
- package/dist/subagents/tracker.d.ts.map +1 -0
- package/dist/subagents/tracker.js +229 -0
- package/dist/subagents/tracker.js.map +1 -0
- package/dist/team/__tests__/allocation-policy.test.d.ts +2 -0
- package/dist/team/__tests__/allocation-policy.test.d.ts.map +1 -0
- package/dist/team/__tests__/allocation-policy.test.js +111 -0
- package/dist/team/__tests__/allocation-policy.test.js.map +1 -0
- package/dist/team/__tests__/api-interop.test.d.ts +2 -0
- package/dist/team/__tests__/api-interop.test.d.ts.map +1 -0
- package/dist/team/__tests__/api-interop.test.js +2321 -0
- package/dist/team/__tests__/api-interop.test.js.map +1 -0
- package/dist/team/__tests__/approved-execution.test.d.ts +2 -0
- package/dist/team/__tests__/approved-execution.test.d.ts.map +1 -0
- package/dist/team/__tests__/approved-execution.test.js +304 -0
- package/dist/team/__tests__/approved-execution.test.js.map +1 -0
- package/dist/team/__tests__/commit-hygiene.test.d.ts +2 -0
- package/dist/team/__tests__/commit-hygiene.test.d.ts.map +1 -0
- package/dist/team/__tests__/commit-hygiene.test.js +93 -0
- package/dist/team/__tests__/commit-hygiene.test.js.map +1 -0
- package/dist/team/__tests__/coordination-protocol.test.d.ts +2 -0
- package/dist/team/__tests__/coordination-protocol.test.d.ts.map +1 -0
- package/dist/team/__tests__/coordination-protocol.test.js +173 -0
- package/dist/team/__tests__/coordination-protocol.test.js.map +1 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.d.ts +2 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.d.ts.map +1 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.js +161 -0
- package/dist/team/__tests__/cross-rebase-smoke.test.js.map +1 -0
- package/dist/team/__tests__/current-task-baseline.test.d.ts +2 -0
- package/dist/team/__tests__/current-task-baseline.test.d.ts.map +1 -0
- package/dist/team/__tests__/current-task-baseline.test.js +87 -0
- package/dist/team/__tests__/current-task-baseline.test.js.map +1 -0
- package/dist/team/__tests__/delegation-policy.test.d.ts +2 -0
- package/dist/team/__tests__/delegation-policy.test.d.ts.map +1 -0
- package/dist/team/__tests__/delegation-policy.test.js +69 -0
- package/dist/team/__tests__/delegation-policy.test.js.map +1 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.d.ts +2 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.d.ts.map +1 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.js +677 -0
- package/dist/team/__tests__/delivery-e2e-smoke.test.js.map +1 -0
- package/dist/team/__tests__/delivery-log.test.d.ts +2 -0
- package/dist/team/__tests__/delivery-log.test.d.ts.map +1 -0
- package/dist/team/__tests__/delivery-log.test.js +62 -0
- package/dist/team/__tests__/delivery-log.test.js.map +1 -0
- package/dist/team/__tests__/events.test.d.ts +2 -0
- package/dist/team/__tests__/events.test.d.ts.map +1 -0
- package/dist/team/__tests__/events.test.js +313 -0
- package/dist/team/__tests__/events.test.js.map +1 -0
- package/dist/team/__tests__/followup-planner.test.d.ts +2 -0
- package/dist/team/__tests__/followup-planner.test.d.ts.map +1 -0
- package/dist/team/__tests__/followup-planner.test.js +100 -0
- package/dist/team/__tests__/followup-planner.test.js.map +1 -0
- package/dist/team/__tests__/hardening-e2e.test.d.ts +2 -0
- package/dist/team/__tests__/hardening-e2e.test.d.ts.map +1 -0
- package/dist/team/__tests__/hardening-e2e.test.js +98 -0
- package/dist/team/__tests__/hardening-e2e.test.js.map +1 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts +2 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts.map +1 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.js +78 -0
- package/dist/team/__tests__/hook-primary-e2e-contract.test.js.map +1 -0
- package/dist/team/__tests__/idle-nudge.test.d.ts +2 -0
- package/dist/team/__tests__/idle-nudge.test.d.ts.map +1 -0
- package/dist/team/__tests__/idle-nudge.test.js +230 -0
- package/dist/team/__tests__/idle-nudge.test.js.map +1 -0
- package/dist/team/__tests__/leader-activity.test.d.ts +2 -0
- package/dist/team/__tests__/leader-activity.test.d.ts.map +1 -0
- package/dist/team/__tests__/leader-activity.test.js +261 -0
- package/dist/team/__tests__/leader-activity.test.js.map +1 -0
- package/dist/team/__tests__/mcp-comm.test.d.ts +2 -0
- package/dist/team/__tests__/mcp-comm.test.d.ts.map +1 -0
- package/dist/team/__tests__/mcp-comm.test.js +289 -0
- package/dist/team/__tests__/mcp-comm.test.js.map +1 -0
- package/dist/team/__tests__/model-contract.test.d.ts +2 -0
- package/dist/team/__tests__/model-contract.test.d.ts.map +1 -0
- package/dist/team/__tests__/model-contract.test.js +187 -0
- package/dist/team/__tests__/model-contract.test.js.map +1 -0
- package/dist/team/__tests__/orchestrator.test.d.ts +2 -0
- package/dist/team/__tests__/orchestrator.test.d.ts.map +1 -0
- package/dist/team/__tests__/orchestrator.test.js +111 -0
- package/dist/team/__tests__/orchestrator.test.js.map +1 -0
- package/dist/team/__tests__/phase-controller.test.d.ts +2 -0
- package/dist/team/__tests__/phase-controller.test.d.ts.map +1 -0
- package/dist/team/__tests__/phase-controller.test.js +50 -0
- package/dist/team/__tests__/phase-controller.test.js.map +1 -0
- package/dist/team/__tests__/rebalance-policy.test.d.ts +2 -0
- package/dist/team/__tests__/rebalance-policy.test.d.ts.map +1 -0
- package/dist/team/__tests__/rebalance-policy.test.js +168 -0
- package/dist/team/__tests__/rebalance-policy.test.js.map +1 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.d.ts +2 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.d.ts.map +1 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.js +156 -0
- package/dist/team/__tests__/repo-aware-decomposition.test.js.map +1 -0
- package/dist/team/__tests__/role-router.test.d.ts +2 -0
- package/dist/team/__tests__/role-router.test.d.ts.map +1 -0
- package/dist/team/__tests__/role-router.test.js +263 -0
- package/dist/team/__tests__/role-router.test.js.map +1 -0
- package/dist/team/__tests__/runtime-boxed-state.test.d.ts +2 -0
- package/dist/team/__tests__/runtime-boxed-state.test.d.ts.map +1 -0
- package/dist/team/__tests__/runtime-boxed-state.test.js +39 -0
- package/dist/team/__tests__/runtime-boxed-state.test.js.map +1 -0
- package/dist/team/__tests__/runtime-cli.test.d.ts +2 -0
- package/dist/team/__tests__/runtime-cli.test.d.ts.map +1 -0
- package/dist/team/__tests__/runtime-cli.test.js +320 -0
- package/dist/team/__tests__/runtime-cli.test.js.map +1 -0
- package/dist/team/__tests__/runtime.test.d.ts +2 -0
- package/dist/team/__tests__/runtime.test.d.ts.map +1 -0
- package/dist/team/__tests__/runtime.test.js +6464 -0
- package/dist/team/__tests__/runtime.test.js.map +1 -0
- package/dist/team/__tests__/scaling.test.d.ts +2 -0
- package/dist/team/__tests__/scaling.test.d.ts.map +1 -0
- package/dist/team/__tests__/scaling.test.js +1664 -0
- package/dist/team/__tests__/scaling.test.js.map +1 -0
- package/dist/team/__tests__/shutdown-fallback.test.d.ts +2 -0
- package/dist/team/__tests__/shutdown-fallback.test.d.ts.map +1 -0
- package/dist/team/__tests__/shutdown-fallback.test.js +125 -0
- package/dist/team/__tests__/shutdown-fallback.test.js.map +1 -0
- package/dist/team/__tests__/state-root.test.d.ts +2 -0
- package/dist/team/__tests__/state-root.test.d.ts.map +1 -0
- package/dist/team/__tests__/state-root.test.js +208 -0
- package/dist/team/__tests__/state-root.test.js.map +1 -0
- package/dist/team/__tests__/state.test.d.ts +2 -0
- package/dist/team/__tests__/state.test.d.ts.map +1 -0
- package/dist/team/__tests__/state.test.js +1942 -0
- package/dist/team/__tests__/state.test.js.map +1 -0
- package/dist/team/__tests__/team-identity.test.d.ts +2 -0
- package/dist/team/__tests__/team-identity.test.d.ts.map +1 -0
- package/dist/team/__tests__/team-identity.test.js +166 -0
- package/dist/team/__tests__/team-identity.test.js.map +1 -0
- package/dist/team/__tests__/team-ops-contract.test.d.ts +2 -0
- package/dist/team/__tests__/team-ops-contract.test.d.ts.map +1 -0
- package/dist/team/__tests__/team-ops-contract.test.js +96 -0
- package/dist/team/__tests__/team-ops-contract.test.js.map +1 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.d.ts +2 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.js +191 -0
- package/dist/team/__tests__/tmux-claude-workers-demo.test.js.map +1 -0
- package/dist/team/__tests__/tmux-session.test.d.ts +2 -0
- package/dist/team/__tests__/tmux-session.test.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-session.test.js +4546 -0
- package/dist/team/__tests__/tmux-session.test.js.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.d.ts +20 -0
- package/dist/team/__tests__/tmux-test-fixture.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.js +148 -0
- package/dist/team/__tests__/tmux-test-fixture.js.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.test.d.ts +2 -0
- package/dist/team/__tests__/tmux-test-fixture.test.d.ts.map +1 -0
- package/dist/team/__tests__/tmux-test-fixture.test.js +114 -0
- package/dist/team/__tests__/tmux-test-fixture.test.js.map +1 -0
- package/dist/team/__tests__/worker-bootstrap.test.d.ts +2 -0
- package/dist/team/__tests__/worker-bootstrap.test.d.ts.map +1 -0
- package/dist/team/__tests__/worker-bootstrap.test.js +1122 -0
- package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -0
- package/dist/team/__tests__/worker-runtime-identity.test.d.ts +2 -0
- package/dist/team/__tests__/worker-runtime-identity.test.d.ts.map +1 -0
- package/dist/team/__tests__/worker-runtime-identity.test.js +258 -0
- package/dist/team/__tests__/worker-runtime-identity.test.js.map +1 -0
- package/dist/team/__tests__/worktree.test.d.ts +2 -0
- package/dist/team/__tests__/worktree.test.d.ts.map +1 -0
- package/dist/team/__tests__/worktree.test.js +317 -0
- package/dist/team/__tests__/worktree.test.js.map +1 -0
- package/dist/team/allocation-policy.d.ts +29 -0
- package/dist/team/allocation-policy.d.ts.map +1 -0
- package/dist/team/allocation-policy.js +153 -0
- package/dist/team/allocation-policy.js.map +1 -0
- package/dist/team/api-interop.d.ts +20 -0
- package/dist/team/api-interop.d.ts.map +1 -0
- package/dist/team/api-interop.js +1084 -0
- package/dist/team/api-interop.js.map +1 -0
- package/dist/team/approved-execution.d.ts +64 -0
- package/dist/team/approved-execution.d.ts.map +1 -0
- package/dist/team/approved-execution.js +242 -0
- package/dist/team/approved-execution.js.map +1 -0
- package/dist/team/commit-hygiene.d.ts +79 -0
- package/dist/team/commit-hygiene.d.ts.map +1 -0
- package/dist/team/commit-hygiene.js +364 -0
- package/dist/team/commit-hygiene.js.map +1 -0
- package/dist/team/contracts.d.ts +26 -0
- package/dist/team/contracts.d.ts.map +1 -0
- package/dist/team/contracts.js +103 -0
- package/dist/team/contracts.js.map +1 -0
- package/dist/team/coordination-protocol.d.ts +14 -0
- package/dist/team/coordination-protocol.d.ts.map +1 -0
- package/dist/team/coordination-protocol.js +244 -0
- package/dist/team/coordination-protocol.js.map +1 -0
- package/dist/team/current-task-baseline.d.ts +32 -0
- package/dist/team/current-task-baseline.d.ts.map +1 -0
- package/dist/team/current-task-baseline.js +85 -0
- package/dist/team/current-task-baseline.js.map +1 -0
- package/dist/team/dag-schema.d.ts +38 -0
- package/dist/team/dag-schema.d.ts.map +1 -0
- package/dist/team/dag-schema.js +221 -0
- package/dist/team/dag-schema.js.map +1 -0
- package/dist/team/delegation-policy.d.ts +3 -0
- package/dist/team/delegation-policy.d.ts.map +1 -0
- package/dist/team/delegation-policy.js +82 -0
- package/dist/team/delegation-policy.js.map +1 -0
- package/dist/team/delivery-log.d.ts +14 -0
- package/dist/team/delivery-log.d.ts.map +1 -0
- package/dist/team/delivery-log.js +43 -0
- package/dist/team/delivery-log.js.map +1 -0
- package/dist/team/followup-planner.d.ts +45 -0
- package/dist/team/followup-planner.d.ts.map +1 -0
- package/dist/team/followup-planner.js +200 -0
- package/dist/team/followup-planner.js.map +1 -0
- package/dist/team/goal-workflow.d.ts +20 -0
- package/dist/team/goal-workflow.d.ts.map +1 -0
- package/dist/team/goal-workflow.js +57 -0
- package/dist/team/goal-workflow.js.map +1 -0
- package/dist/team/idle-nudge.d.ts +53 -0
- package/dist/team/idle-nudge.d.ts.map +1 -0
- package/dist/team/idle-nudge.js +141 -0
- package/dist/team/idle-nudge.js.map +1 -0
- package/dist/team/leader-activity.d.ts +15 -0
- package/dist/team/leader-activity.d.ts.map +1 -0
- package/dist/team/leader-activity.js +224 -0
- package/dist/team/leader-activity.js.map +1 -0
- package/dist/team/mcp-comm.d.ts +73 -0
- package/dist/team/mcp-comm.d.ts.map +1 -0
- package/dist/team/mcp-comm.js +314 -0
- package/dist/team/mcp-comm.js.map +1 -0
- package/dist/team/model-contract.d.ts +26 -0
- package/dist/team/model-contract.d.ts.map +1 -0
- package/dist/team/model-contract.js +205 -0
- package/dist/team/model-contract.js.map +1 -0
- package/dist/team/orchestrator.d.ts +47 -0
- package/dist/team/orchestrator.d.ts.map +1 -0
- package/dist/team/orchestrator.js +131 -0
- package/dist/team/orchestrator.js.map +1 -0
- package/dist/team/pane-status.d.ts +149 -0
- package/dist/team/pane-status.d.ts.map +1 -0
- package/dist/team/pane-status.js +558 -0
- package/dist/team/pane-status.js.map +1 -0
- package/dist/team/phase-controller.d.ts +12 -0
- package/dist/team/phase-controller.d.ts.map +1 -0
- package/dist/team/phase-controller.js +142 -0
- package/dist/team/phase-controller.js.map +1 -0
- package/dist/team/progress-evidence.d.ts +2 -0
- package/dist/team/progress-evidence.d.ts.map +1 -0
- package/dist/team/progress-evidence.js +77 -0
- package/dist/team/progress-evidence.js.map +1 -0
- package/dist/team/rebalance-policy.d.ts +19 -0
- package/dist/team/rebalance-policy.d.ts.map +1 -0
- package/dist/team/rebalance-policy.js +48 -0
- package/dist/team/rebalance-policy.js.map +1 -0
- package/dist/team/reminder-intents.d.ts +11 -0
- package/dist/team/reminder-intents.d.ts.map +1 -0
- package/dist/team/reminder-intents.js +40 -0
- package/dist/team/reminder-intents.js.map +1 -0
- package/dist/team/repo-aware-decomposition.d.ts +68 -0
- package/dist/team/repo-aware-decomposition.d.ts.map +1 -0
- package/dist/team/repo-aware-decomposition.js +235 -0
- package/dist/team/repo-aware-decomposition.js.map +1 -0
- package/dist/team/role-router.d.ts +32 -0
- package/dist/team/role-router.d.ts.map +1 -0
- package/dist/team/role-router.js +298 -0
- package/dist/team/role-router.js.map +1 -0
- package/dist/team/runtime-cli.d.ts +78 -0
- package/dist/team/runtime-cli.d.ts.map +1 -0
- package/dist/team/runtime-cli.js +376 -0
- package/dist/team/runtime-cli.js.map +1 -0
- package/dist/team/runtime.d.ts +162 -0
- package/dist/team/runtime.d.ts.map +1 -0
- package/dist/team/runtime.js +4160 -0
- package/dist/team/runtime.js.map +1 -0
- package/dist/team/scaling.d.ts +59 -0
- package/dist/team/scaling.d.ts.map +1 -0
- package/dist/team/scaling.js +650 -0
- package/dist/team/scaling.js.map +1 -0
- package/dist/team/state/approvals.d.ts +25 -0
- package/dist/team/state/approvals.d.ts.map +1 -0
- package/dist/team/state/approvals.js +31 -0
- package/dist/team/state/approvals.js.map +1 -0
- package/dist/team/state/config.d.ts +2 -0
- package/dist/team/state/config.d.ts.map +1 -0
- package/dist/team/state/config.js +2 -0
- package/dist/team/state/config.js.map +1 -0
- package/dist/team/state/dispatch-lock.d.ts +3 -0
- package/dist/team/state/dispatch-lock.d.ts.map +1 -0
- package/dist/team/state/dispatch-lock.js +81 -0
- package/dist/team/state/dispatch-lock.js.map +1 -0
- package/dist/team/state/dispatch.d.ts +67 -0
- package/dist/team/state/dispatch.d.ts.map +1 -0
- package/dist/team/state/dispatch.js +302 -0
- package/dist/team/state/dispatch.js.map +1 -0
- package/dist/team/state/events.d.ts +26 -0
- package/dist/team/state/events.d.ts.map +1 -0
- package/dist/team/state/events.js +145 -0
- package/dist/team/state/events.js.map +1 -0
- package/dist/team/state/index.d.ts +11 -0
- package/dist/team/state/index.d.ts.map +1 -0
- package/dist/team/state/index.js +11 -0
- package/dist/team/state/index.js.map +1 -0
- package/dist/team/state/io.d.ts +2 -0
- package/dist/team/state/io.d.ts.map +1 -0
- package/dist/team/state/io.js +2 -0
- package/dist/team/state/io.js.map +1 -0
- package/dist/team/state/locks.d.ts +16 -0
- package/dist/team/state/locks.d.ts.map +1 -0
- package/dist/team/state/locks.js +201 -0
- package/dist/team/state/locks.js.map +1 -0
- package/dist/team/state/mailbox.d.ts +43 -0
- package/dist/team/state/mailbox.d.ts.map +1 -0
- package/dist/team/state/mailbox.js +222 -0
- package/dist/team/state/mailbox.js.map +1 -0
- package/dist/team/state/monitor.d.ts +108 -0
- package/dist/team/state/monitor.d.ts.map +1 -0
- package/dist/team/state/monitor.js +193 -0
- package/dist/team/state/monitor.js.map +1 -0
- package/dist/team/state/shutdown.d.ts +2 -0
- package/dist/team/state/shutdown.d.ts.map +1 -0
- package/dist/team/state/shutdown.js +2 -0
- package/dist/team/state/shutdown.js.map +1 -0
- package/dist/team/state/summary.d.ts +2 -0
- package/dist/team/state/summary.d.ts.map +1 -0
- package/dist/team/state/summary.js +2 -0
- package/dist/team/state/summary.js.map +1 -0
- package/dist/team/state/tasks.d.ts +53 -0
- package/dist/team/state/tasks.d.ts.map +1 -0
- package/dist/team/state/tasks.js +284 -0
- package/dist/team/state/tasks.js.map +1 -0
- package/dist/team/state/types.d.ts +356 -0
- package/dist/team/state/types.d.ts.map +1 -0
- package/dist/team/state/types.js +3 -0
- package/dist/team/state/types.js.map +1 -0
- package/dist/team/state/workers.d.ts +2 -0
- package/dist/team/state/workers.d.ts.map +1 -0
- package/dist/team/state/workers.js +2 -0
- package/dist/team/state/workers.js.map +1 -0
- package/dist/team/state-root.d.ts +40 -0
- package/dist/team/state-root.d.ts.map +1 -0
- package/dist/team/state-root.js +297 -0
- package/dist/team/state-root.js.map +1 -0
- package/dist/team/state.d.ts +471 -0
- package/dist/team/state.d.ts.map +1 -0
- package/dist/team/state.js +1418 -0
- package/dist/team/state.js.map +1 -0
- package/dist/team/team-identity.d.ts +26 -0
- package/dist/team/team-identity.d.ts.map +1 -0
- package/dist/team/team-identity.js +169 -0
- package/dist/team/team-identity.js.map +1 -0
- package/dist/team/team-ops.d.ts +66 -0
- package/dist/team/team-ops.d.ts.map +1 -0
- package/dist/team/team-ops.js +79 -0
- package/dist/team/team-ops.js.map +1 -0
- package/dist/team/tmux-session.d.ts +190 -0
- package/dist/team/tmux-session.d.ts.map +1 -0
- package/dist/team/tmux-session.js +2071 -0
- package/dist/team/tmux-session.js.map +1 -0
- package/dist/team/ultragoal-context.d.ts +47 -0
- package/dist/team/ultragoal-context.d.ts.map +1 -0
- package/dist/team/ultragoal-context.js +215 -0
- package/dist/team/ultragoal-context.js.map +1 -0
- package/dist/team/worker-bootstrap.d.ts +92 -0
- package/dist/team/worker-bootstrap.d.ts.map +1 -0
- package/dist/team/worker-bootstrap.js +860 -0
- package/dist/team/worker-bootstrap.js.map +1 -0
- package/dist/team/worktree.d.ts +69 -0
- package/dist/team/worktree.d.ts.map +1 -0
- package/dist/team/worktree.js +437 -0
- package/dist/team/worktree.js.map +1 -0
- package/dist/ultragoal/__tests__/artifacts.test.d.ts +2 -0
- package/dist/ultragoal/__tests__/artifacts.test.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/artifacts.test.js +1423 -0
- package/dist/ultragoal/__tests__/artifacts.test.js.map +1 -0
- package/dist/ultragoal/__tests__/docs-contract.test.d.ts +2 -0
- package/dist/ultragoal/__tests__/docs-contract.test.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/docs-contract.test.js +132 -0
- package/dist/ultragoal/__tests__/docs-contract.test.js.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.d.ts +68 -0
- package/dist/ultragoal/__tests__/steering-fixtures.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.js +259 -0
- package/dist/ultragoal/__tests__/steering-fixtures.js.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.d.ts +2 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.d.ts.map +1 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.js +65 -0
- package/dist/ultragoal/__tests__/steering-fixtures.test.js.map +1 -0
- package/dist/ultragoal/artifacts.d.ts +249 -0
- package/dist/ultragoal/artifacts.d.ts.map +1 -0
- package/dist/ultragoal/artifacts.js +1349 -0
- package/dist/ultragoal/artifacts.js.map +1 -0
- package/dist/utils/__tests__/agents-md.test.d.ts +2 -0
- package/dist/utils/__tests__/agents-md.test.d.ts.map +1 -0
- package/dist/utils/__tests__/agents-md.test.js +96 -0
- package/dist/utils/__tests__/agents-md.test.js.map +1 -0
- package/dist/utils/__tests__/agents-model-table.test.d.ts +2 -0
- package/dist/utils/__tests__/agents-model-table.test.d.ts.map +1 -0
- package/dist/utils/__tests__/agents-model-table.test.js +108 -0
- package/dist/utils/__tests__/agents-model-table.test.js.map +1 -0
- package/dist/utils/__tests__/dep-versions.test.d.ts +2 -0
- package/dist/utils/__tests__/dep-versions.test.d.ts.map +1 -0
- package/dist/utils/__tests__/dep-versions.test.js +46 -0
- package/dist/utils/__tests__/dep-versions.test.js.map +1 -0
- package/dist/utils/__tests__/package.test.d.ts +2 -0
- package/dist/utils/__tests__/package.test.d.ts.map +1 -0
- package/dist/utils/__tests__/package.test.js +21 -0
- package/dist/utils/__tests__/package.test.js.map +1 -0
- package/dist/utils/__tests__/paths.test.d.ts +2 -0
- package/dist/utils/__tests__/paths.test.d.ts.map +1 -0
- package/dist/utils/__tests__/paths.test.js +647 -0
- package/dist/utils/__tests__/paths.test.js.map +1 -0
- package/dist/utils/__tests__/platform-command.test.d.ts +2 -0
- package/dist/utils/__tests__/platform-command.test.d.ts.map +1 -0
- package/dist/utils/__tests__/platform-command.test.js +399 -0
- package/dist/utils/__tests__/platform-command.test.js.map +1 -0
- package/dist/utils/__tests__/repo-deps.test.d.ts +2 -0
- package/dist/utils/__tests__/repo-deps.test.d.ts.map +1 -0
- package/dist/utils/__tests__/repo-deps.test.js +71 -0
- package/dist/utils/__tests__/repo-deps.test.js.map +1 -0
- package/dist/utils/__tests__/sleep-resource.test.d.ts +2 -0
- package/dist/utils/__tests__/sleep-resource.test.d.ts.map +1 -0
- package/dist/utils/__tests__/sleep-resource.test.js +39 -0
- package/dist/utils/__tests__/sleep-resource.test.js.map +1 -0
- package/dist/utils/__tests__/version.test.d.ts +2 -0
- package/dist/utils/__tests__/version.test.d.ts.map +1 -0
- package/dist/utils/__tests__/version.test.js +78 -0
- package/dist/utils/__tests__/version.test.js.map +1 -0
- package/dist/utils/agents-md.d.ts +10 -0
- package/dist/utils/agents-md.d.ts.map +1 -0
- package/dist/utils/agents-md.js +76 -0
- package/dist/utils/agents-md.js.map +1 -0
- package/dist/utils/agents-model-table.d.ts +16 -0
- package/dist/utils/agents-model-table.d.ts.map +1 -0
- package/dist/utils/agents-model-table.js +102 -0
- package/dist/utils/agents-model-table.js.map +1 -0
- package/dist/utils/git-layout.d.ts +8 -0
- package/dist/utils/git-layout.d.ts.map +1 -0
- package/dist/utils/git-layout.js +58 -0
- package/dist/utils/git-layout.js.map +1 -0
- package/dist/utils/package.d.ts +9 -0
- package/dist/utils/package.d.ts.map +1 -0
- package/dist/utils/package.js +31 -0
- package/dist/utils/package.js.map +1 -0
- package/dist/utils/paths.d.ts +101 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +314 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/platform-command.d.ts +29 -0
- package/dist/utils/platform-command.d.ts.map +1 -0
- package/dist/utils/platform-command.js +239 -0
- package/dist/utils/platform-command.js.map +1 -0
- package/dist/utils/repo-deps.d.ts +20 -0
- package/dist/utils/repo-deps.d.ts.map +1 -0
- package/dist/utils/repo-deps.js +78 -0
- package/dist/utils/repo-deps.js.map +1 -0
- package/dist/utils/safe-json.d.ts +3 -0
- package/dist/utils/safe-json.d.ts.map +1 -0
- package/dist/utils/safe-json.js +19 -0
- package/dist/utils/safe-json.js.map +1 -0
- package/dist/utils/sleep.d.ts +3 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +35 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/toml.d.ts +4 -0
- package/dist/utils/toml.d.ts.map +1 -0
- package/dist/utils/toml.js +75 -0
- package/dist/utils/toml.js.map +1 -0
- package/dist/utils/version.d.ts +7 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +72 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/verification/__tests__/ci-rust-gates.test.d.ts +2 -0
- package/dist/verification/__tests__/ci-rust-gates.test.d.ts.map +1 -0
- package/dist/verification/__tests__/ci-rust-gates.test.js +293 -0
- package/dist/verification/__tests__/ci-rust-gates.test.js.map +1 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.d.ts +2 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.d.ts.map +1 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.js +68 -0
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.js.map +1 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.d.ts +2 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.d.ts.map +1 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.js +74 -0
- package/dist/verification/__tests__/explore-harness-release-workflow.test.js.map +1 -0
- package/dist/verification/__tests__/native-release-manifest.test.d.ts +2 -0
- package/dist/verification/__tests__/native-release-manifest.test.d.ts.map +1 -0
- package/dist/verification/__tests__/native-release-manifest.test.js +80 -0
- package/dist/verification/__tests__/native-release-manifest.test.js.map +1 -0
- package/dist/verification/__tests__/pr-check-workflow.test.d.ts +2 -0
- package/dist/verification/__tests__/pr-check-workflow.test.d.ts.map +1 -0
- package/dist/verification/__tests__/pr-check-workflow.test.js +27 -0
- package/dist/verification/__tests__/pr-check-workflow.test.js.map +1 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.d.ts +2 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.d.ts.map +1 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.js +55 -0
- package/dist/verification/__tests__/ralph-persistence-gate.test.js.map +1 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.d.ts +2 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.d.ts.map +1 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.js +32 -0
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.js.map +1 -0
- package/dist/verification/__tests__/verifier.test.d.ts +2 -0
- package/dist/verification/__tests__/verifier.test.d.ts.map +1 -0
- package/dist/verification/__tests__/verifier.test.js +113 -0
- package/dist/verification/__tests__/verifier.test.js.map +1 -0
- package/dist/verification/verifier.d.ts +37 -0
- package/dist/verification/verifier.d.ts.map +1 -0
- package/dist/verification/verifier.js +100 -0
- package/dist/verification/verifier.js.map +1 -0
- package/dist/visual/__tests__/verdict.test.d.ts +2 -0
- package/dist/visual/__tests__/verdict.test.d.ts.map +1 -0
- package/dist/visual/__tests__/verdict.test.js +81 -0
- package/dist/visual/__tests__/verdict.test.js.map +1 -0
- package/dist/visual/constants.d.ts +4 -0
- package/dist/visual/constants.d.ts.map +1 -0
- package/dist/visual/constants.js +3 -0
- package/dist/visual/constants.js.map +1 -0
- package/dist/visual/verdict.d.ts +17 -0
- package/dist/visual/verdict.d.ts.map +1 -0
- package/dist/visual/verdict.js +61 -0
- package/dist/visual/verdict.js.map +1 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.d.ts +12 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.js +139 -0
- package/dist/wiki/__tests__/cjk-tokenize.test.js.map +1 -0
- package/dist/wiki/__tests__/crlf-parse.test.d.ts +2 -0
- package/dist/wiki/__tests__/crlf-parse.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/crlf-parse.test.js +24 -0
- package/dist/wiki/__tests__/crlf-parse.test.js.map +1 -0
- package/dist/wiki/__tests__/escape-newline.test.d.ts +2 -0
- package/dist/wiki/__tests__/escape-newline.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/escape-newline.test.js +45 -0
- package/dist/wiki/__tests__/escape-newline.test.js.map +1 -0
- package/dist/wiki/__tests__/ingest.test.d.ts +5 -0
- package/dist/wiki/__tests__/ingest.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/ingest.test.js +215 -0
- package/dist/wiki/__tests__/ingest.test.js.map +1 -0
- package/dist/wiki/__tests__/lint.test.d.ts +5 -0
- package/dist/wiki/__tests__/lint.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/lint.test.js +176 -0
- package/dist/wiki/__tests__/lint.test.js.map +1 -0
- package/dist/wiki/__tests__/query.test.d.ts +5 -0
- package/dist/wiki/__tests__/query.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/query.test.js +166 -0
- package/dist/wiki/__tests__/query.test.js.map +1 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.d.ts +2 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.js +44 -0
- package/dist/wiki/__tests__/reserved-file-guard.test.js.map +1 -0
- package/dist/wiki/__tests__/session-hooks.test.d.ts +5 -0
- package/dist/wiki/__tests__/session-hooks.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/session-hooks.test.js +64 -0
- package/dist/wiki/__tests__/session-hooks.test.js.map +1 -0
- package/dist/wiki/__tests__/slug-nonascii.test.d.ts +2 -0
- package/dist/wiki/__tests__/slug-nonascii.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/slug-nonascii.test.js +30 -0
- package/dist/wiki/__tests__/slug-nonascii.test.js.map +1 -0
- package/dist/wiki/__tests__/storage.test.d.ts +5 -0
- package/dist/wiki/__tests__/storage.test.d.ts.map +1 -0
- package/dist/wiki/__tests__/storage.test.js +318 -0
- package/dist/wiki/__tests__/storage.test.js.map +1 -0
- package/dist/wiki/__tests__/test-helpers.d.ts +31 -0
- package/dist/wiki/__tests__/test-helpers.d.ts.map +1 -0
- package/dist/wiki/__tests__/test-helpers.js +108 -0
- package/dist/wiki/__tests__/test-helpers.js.map +1 -0
- package/dist/wiki/index.d.ts +14 -0
- package/dist/wiki/index.d.ts.map +1 -0
- package/dist/wiki/index.js +17 -0
- package/dist/wiki/index.js.map +1 -0
- package/dist/wiki/ingest.d.ts +20 -0
- package/dist/wiki/ingest.d.ts.map +1 -0
- package/dist/wiki/ingest.js +115 -0
- package/dist/wiki/ingest.js.map +1 -0
- package/dist/wiki/lifecycle.d.ts +25 -0
- package/dist/wiki/lifecycle.d.ts.map +1 -0
- package/dist/wiki/lifecycle.js +239 -0
- package/dist/wiki/lifecycle.js.map +1 -0
- package/dist/wiki/lint.d.ts +25 -0
- package/dist/wiki/lint.d.ts.map +1 -0
- package/dist/wiki/lint.js +170 -0
- package/dist/wiki/lint.js.map +1 -0
- package/dist/wiki/query.d.ts +36 -0
- package/dist/wiki/query.d.ts.map +1 -0
- package/dist/wiki/query.js +139 -0
- package/dist/wiki/query.js.map +1 -0
- package/dist/wiki/storage.d.ts +37 -0
- package/dist/wiki/storage.d.ts.map +1 -0
- package/dist/wiki/storage.js +358 -0
- package/dist/wiki/storage.js.map +1 -0
- package/dist/wiki/types.d.ts +83 -0
- package/dist/wiki/types.d.ts.map +1 -0
- package/dist/wiki/types.js +15 -0
- package/dist/wiki/types.js.map +1 -0
- package/package.json +110 -0
- package/plugins/oh-my-codex/.app.json +3 -0
- package/plugins/oh-my-codex/.codex-plugin/plugin.json +31 -0
- package/plugins/oh-my-codex/.mcp.json +52 -0
- package/plugins/oh-my-codex/hooks/codex-native-hook.mjs +420 -0
- package/plugins/oh-my-codex/hooks/hooks.json +76 -0
- package/plugins/oh-my-codex/skills/ai-slop-cleaner/SKILL.md +148 -0
- package/plugins/oh-my-codex/skills/analyze/SKILL.md +146 -0
- package/plugins/oh-my-codex/skills/ask/SKILL.md +58 -0
- package/plugins/oh-my-codex/skills/autopilot/SKILL.md +215 -0
- package/plugins/oh-my-codex/skills/autoresearch/SKILL.md +72 -0
- package/plugins/oh-my-codex/skills/autoresearch-goal/SKILL.md +36 -0
- package/plugins/oh-my-codex/skills/best-practice-research/SKILL.md +88 -0
- package/plugins/oh-my-codex/skills/cancel/SKILL.md +399 -0
- package/plugins/oh-my-codex/skills/code-review/SKILL.md +292 -0
- package/plugins/oh-my-codex/skills/configure-notifications/SKILL.md +287 -0
- package/plugins/oh-my-codex/skills/deep-interview/SKILL.md +579 -0
- package/plugins/oh-my-codex/skills/design/SKILL.md +180 -0
- package/plugins/oh-my-codex/skills/doctor/SKILL.md +239 -0
- package/plugins/oh-my-codex/skills/hud/SKILL.md +98 -0
- package/plugins/oh-my-codex/skills/omx-setup/SKILL.md +135 -0
- package/plugins/oh-my-codex/skills/performance-goal/SKILL.md +65 -0
- package/plugins/oh-my-codex/skills/pipeline/SKILL.md +97 -0
- package/plugins/oh-my-codex/skills/plan/SKILL.md +277 -0
- package/plugins/oh-my-codex/skills/prometheus-strict/README.md +35 -0
- package/plugins/oh-my-codex/skills/prometheus-strict/SKILL.md +219 -0
- package/plugins/oh-my-codex/skills/ralph/SKILL.md +294 -0
- package/plugins/oh-my-codex/skills/ralplan/SKILL.md +203 -0
- package/plugins/oh-my-codex/skills/skill/SKILL.md +836 -0
- package/plugins/oh-my-codex/skills/team/SKILL.md +536 -0
- package/plugins/oh-my-codex/skills/ultragoal/SKILL.md +139 -0
- package/plugins/oh-my-codex/skills/ultraqa/SKILL.md +263 -0
- package/plugins/oh-my-codex/skills/ultrawork/SKILL.md +190 -0
- package/plugins/oh-my-codex/skills/visual-ralph/SKILL.md +161 -0
- package/plugins/oh-my-codex/skills/wiki/SKILL.md +57 -0
- package/plugins/oh-my-codex/skills/worker/SKILL.md +120 -0
- package/prompts/analyst.md +135 -0
- package/prompts/api-reviewer.md +113 -0
- package/prompts/architect.md +111 -0
- package/prompts/build-fixer.md +115 -0
- package/prompts/code-reviewer.md +139 -0
- package/prompts/code-simplifier.md +134 -0
- package/prompts/critic.md +80 -0
- package/prompts/debugger.md +117 -0
- package/prompts/dependency-expert.md +129 -0
- package/prompts/designer.md +126 -0
- package/prompts/executor.md +108 -0
- package/prompts/explore-harness.md +64 -0
- package/prompts/explore.md +85 -0
- package/prompts/git-master.md +114 -0
- package/prompts/information-architect.md +226 -0
- package/prompts/performance-reviewer.md +109 -0
- package/prompts/planner.md +110 -0
- package/prompts/product-analyst.md +304 -0
- package/prompts/product-manager.md +245 -0
- package/prompts/prometheus-strict-metis.md +274 -0
- package/prompts/prometheus-strict-momus.md +82 -0
- package/prompts/prometheus-strict-oracle.md +107 -0
- package/prompts/qa-tester.md +124 -0
- package/prompts/quality-reviewer.md +123 -0
- package/prompts/quality-strategist.md +274 -0
- package/prompts/researcher.md +122 -0
- package/prompts/scholastic.md +11 -0
- package/prompts/security-reviewer.md +143 -0
- package/prompts/sisyphus-lite.md +111 -0
- package/prompts/style-reviewer.md +102 -0
- package/prompts/team-executor.md +57 -0
- package/prompts/team-orchestrator.md +8 -0
- package/prompts/test-engineer.md +130 -0
- package/prompts/ux-researcher.md +327 -0
- package/prompts/verifier.md +85 -0
- package/prompts/vision.md +98 -0
- package/prompts/writer.md +109 -0
- package/skills/ai-slop-cleaner/SKILL.md +148 -0
- package/skills/analyze/SKILL.md +146 -0
- package/skills/ask/SKILL.md +58 -0
- package/skills/ask-claude/SKILL.md +12 -0
- package/skills/ask-gemini/SKILL.md +12 -0
- package/skills/autopilot/SKILL.md +215 -0
- package/skills/autoresearch/SKILL.md +72 -0
- package/skills/autoresearch-goal/SKILL.md +36 -0
- package/skills/best-practice-research/SKILL.md +88 -0
- package/skills/build-fix/SKILL.md +10 -0
- package/skills/cancel/SKILL.md +399 -0
- package/skills/code-review/SKILL.md +292 -0
- package/skills/configure-notifications/SKILL.md +287 -0
- package/skills/deep-interview/SKILL.md +579 -0
- package/skills/deepsearch/SKILL.md +10 -0
- package/skills/design/SKILL.md +180 -0
- package/skills/doctor/SKILL.md +239 -0
- package/skills/ecomode/SKILL.md +114 -0
- package/skills/frontend-ui-ux/SKILL.md +16 -0
- package/skills/git-master/SKILL.md +27 -0
- package/skills/help/SKILL.md +10 -0
- package/skills/hud/SKILL.md +98 -0
- package/skills/note/SKILL.md +10 -0
- package/skills/omx-setup/SKILL.md +135 -0
- package/skills/performance-goal/SKILL.md +65 -0
- package/skills/pipeline/SKILL.md +97 -0
- package/skills/plan/SKILL.md +277 -0
- package/skills/prometheus-strict/README.md +35 -0
- package/skills/prometheus-strict/SKILL.md +219 -0
- package/skills/ralph/SKILL.md +294 -0
- package/skills/ralph-init/SKILL.md +10 -0
- package/skills/ralplan/SKILL.md +203 -0
- package/skills/review/SKILL.md +10 -0
- package/skills/security-review/SKILL.md +10 -0
- package/skills/skill/SKILL.md +836 -0
- package/skills/swarm/SKILL.md +12 -0
- package/skills/tdd/SKILL.md +104 -0
- package/skills/team/SKILL.md +536 -0
- package/skills/trace/SKILL.md +10 -0
- package/skills/ultragoal/SKILL.md +139 -0
- package/skills/ultraqa/SKILL.md +263 -0
- package/skills/ultrawork/SKILL.md +190 -0
- package/skills/visual-ralph/SKILL.md +161 -0
- package/skills/visual-verdict/SKILL.md +10 -0
- package/skills/web-clone/SKILL.md +357 -0
- package/skills/wiki/SKILL.md +57 -0
- package/skills/worker/SKILL.md +120 -0
- package/src/scripts/__tests__/codex-native-hook.test.ts +17173 -0
- package/src/scripts/__tests__/docs-site-contract.test.ts +47 -0
- package/src/scripts/__tests__/generate-release-body.test.ts +275 -0
- package/src/scripts/__tests__/hook-derived-watcher.test.ts +285 -0
- package/src/scripts/__tests__/notify-dispatcher.test.ts +504 -0
- package/src/scripts/__tests__/notify-state-io.test.ts +168 -0
- package/src/scripts/__tests__/notify-tmux-injection.test.ts +82 -0
- package/src/scripts/__tests__/postinstall.test.ts +113 -0
- package/src/scripts/__tests__/prompt-inventory.test.ts +64 -0
- package/src/scripts/__tests__/run-test-files.test.ts +455 -0
- package/src/scripts/__tests__/smoke-packed-install.test.ts +192 -0
- package/src/scripts/__tests__/test-reply-listener-live.test.ts +101 -0
- package/src/scripts/__tests__/verify-native-agents.test.ts +299 -0
- package/src/scripts/ask-claude.sh +17 -0
- package/src/scripts/ask-gemini.sh +14 -0
- package/src/scripts/build-api.ts +48 -0
- package/src/scripts/build-explore-harness.ts +54 -0
- package/src/scripts/build-sparkshell.ts +52 -0
- package/src/scripts/check-runtime-syntax.ts +63 -0
- package/src/scripts/check-version-sync.ts +54 -0
- package/src/scripts/cleanup-explore-harness.ts +18 -0
- package/src/scripts/codex-execution-surface.ts +75 -0
- package/src/scripts/codex-native-hook.ts +4877 -0
- package/src/scripts/codex-native-pre-post.ts +1360 -0
- package/src/scripts/demo-claude-workers.sh +241 -0
- package/src/scripts/demo-team-e2e.sh +184 -0
- package/src/scripts/eval/eval-adaptive-sort-optimization.py +24 -0
- package/src/scripts/eval/eval-candidate-handoff.ts +8 -0
- package/src/scripts/eval/eval-cli-discoverability.ts +40 -0
- package/src/scripts/eval/eval-fresh-run-tagging.ts +8 -0
- package/src/scripts/eval/eval-help-consistency.ts +11 -0
- package/src/scripts/eval/eval-in-action-cat-shellout-demo.ts +31 -0
- package/src/scripts/eval/eval-ml-kaggle-model-optimization.py +29 -0
- package/src/scripts/eval/eval-noisy-bayesopt-highdim.py +44 -0
- package/src/scripts/eval/eval-noisy-latent-subspace-discovery.py +44 -0
- package/src/scripts/eval/eval-parity-smoke.ts +20 -0
- package/src/scripts/eval/eval-parity-sweep.ts +26 -0
- package/src/scripts/eval/eval-resume-dirty-guard.ts +8 -0
- package/src/scripts/eval/eval-security-path-traversal.ts +38 -0
- package/src/scripts/fixtures/ask-advisor-stub.ts +12 -0
- package/src/scripts/generate-catalog-docs.ts +112 -0
- package/src/scripts/generate-native-release-manifest.ts +147 -0
- package/src/scripts/generate-release-body.ts +327 -0
- package/src/scripts/hook-derived-watcher.ts +649 -0
- package/src/scripts/hook-payload-guard.ts +113 -0
- package/src/scripts/notify-dispatcher.ts +408 -0
- package/src/scripts/notify-fallback-watcher.ts +2022 -0
- package/src/scripts/notify-hook/__tests__/operational-events.test.ts +24 -0
- package/src/scripts/notify-hook/__tests__/payload-guard.test.ts +41 -0
- package/src/scripts/notify-hook/__tests__/team-worker-posttooluse.test.ts +180 -0
- package/src/scripts/notify-hook/active-team.ts +55 -0
- package/src/scripts/notify-hook/auto-nudge.ts +758 -0
- package/src/scripts/notify-hook/log.ts +30 -0
- package/src/scripts/notify-hook/managed-tmux.ts +568 -0
- package/src/scripts/notify-hook/operational-events.ts +282 -0
- package/src/scripts/notify-hook/orchestration-intent.ts +80 -0
- package/src/scripts/notify-hook/payload-parser.ts +143 -0
- package/src/scripts/notify-hook/process-runner.ts +75 -0
- package/src/scripts/notify-hook/ralph-session-resume.ts +465 -0
- package/src/scripts/notify-hook/state-io.ts +220 -0
- package/src/scripts/notify-hook/team-dispatch.ts +1162 -0
- package/src/scripts/notify-hook/team-leader-nudge.ts +1068 -0
- package/src/scripts/notify-hook/team-tmux-guard.ts +236 -0
- package/src/scripts/notify-hook/team-worker-posttooluse.ts +536 -0
- package/src/scripts/notify-hook/team-worker-stop.ts +438 -0
- package/src/scripts/notify-hook/team-worker.ts +709 -0
- package/src/scripts/notify-hook/tmux-injection.ts +740 -0
- package/src/scripts/notify-hook/utils.ts +31 -0
- package/src/scripts/notify-hook/visual-verdict.ts +158 -0
- package/src/scripts/notify-hook.ts +1033 -0
- package/src/scripts/postinstall.ts +107 -0
- package/src/scripts/prepare-build.js +83 -0
- package/src/scripts/prompt-inventory.ts +218 -0
- package/src/scripts/run-autoresearch-showcase.sh +75 -0
- package/src/scripts/run-provider-advisor.ts +213 -0
- package/src/scripts/run-test-files.ts +379 -0
- package/src/scripts/smoke-packed-install.ts +268 -0
- package/src/scripts/sync-plugin-mirror.ts +458 -0
- package/src/scripts/sync-prompt-guidance-fragments.ts +55 -0
- package/src/scripts/team-hardening-benchmark.ts +90 -0
- package/src/scripts/test-reply-listener-live.ts +188 -0
- package/src/scripts/test-sparkshell.ts +29 -0
- package/src/scripts/tmux-hook-engine.ts +349 -0
- package/src/scripts/verify-native-agents.ts +311 -0
- package/src/scripts/verify-native-release-assets.ts +68 -0
- package/templates/AGENTS.md +187 -0
- package/templates/catalog-manifest.json +547 -0
- package/templates/model-instructions/explore-lightweight-AGENTS.md +11 -0
- package/templates/model-instructions/sparkshell-lightweight-AGENTS.md +10 -0
|
@@ -0,0 +1,1845 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config.toml generator/merger for oh-my-codex
|
|
3
|
+
* Merges OMX MCP server entries and feature flags into existing config.toml
|
|
4
|
+
*
|
|
5
|
+
* TOML structure reminder: bare key=value pairs after a [table] header belong
|
|
6
|
+
* to that table. Top-level (root-table) keys MUST appear before the first
|
|
7
|
+
* [table] header. This generator therefore splits its output into:
|
|
8
|
+
* 1. Top-level keys (notify, model_reasoning_effort, developer_instructions)
|
|
9
|
+
* 2. [features] flags
|
|
10
|
+
* 3. [table] sections (shell_environment_policy.set, mcp_servers, tui)
|
|
11
|
+
*/
|
|
12
|
+
import { readFile, writeFile } from "fs/promises";
|
|
13
|
+
import { existsSync } from "fs";
|
|
14
|
+
import { join, resolve } from "path";
|
|
15
|
+
import TOML from "@iarna/toml";
|
|
16
|
+
import { AGENT_DEFINITIONS } from "../agents/definitions.js";
|
|
17
|
+
import { DEFAULT_FRONTIER_MODEL } from "./models.js";
|
|
18
|
+
import { DEFAULT_CODEX_HOOK_FEATURE_FLAG, CODEX_HOOK_FEATURE_FLAGS, CODEX_PLUGIN_SCOPED_HOOKS_FEATURE_FLAG, formatCodexHookFeatureFlagLine, normalizeCodexHookFeatureFlag, } from "./codex-feature-flags.js";
|
|
19
|
+
import { OMX_FIRST_PARTY_MCP_SERVER_NAMES, getOmxFirstPartySetupMcpServers, } from "./omx-first-party-mcp.js";
|
|
20
|
+
import { buildManagedCodexHookTrustState, escapeTomlBasicString, } from "./codex-hooks.js";
|
|
21
|
+
function escapeTomlString(value) {
|
|
22
|
+
return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
23
|
+
}
|
|
24
|
+
function isRecord(value) {
|
|
25
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
26
|
+
}
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
// Top-level OMX keys (must live before any [table] header)
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
/** Keys we own at the TOML root level. Used for upsert + strip. */
|
|
31
|
+
const OMX_TOP_LEVEL_KEYS = [
|
|
32
|
+
"notify",
|
|
33
|
+
"model_reasoning_effort",
|
|
34
|
+
"developer_instructions",
|
|
35
|
+
];
|
|
36
|
+
export const DEFAULT_SETUP_MODEL = DEFAULT_FRONTIER_MODEL;
|
|
37
|
+
export const DEFAULT_SETUP_MODEL_CONTEXT_WINDOW = 250000;
|
|
38
|
+
export const DEFAULT_SETUP_MODEL_AUTO_COMPACT_TOKEN_LIMIT = 200000;
|
|
39
|
+
export function getModelContextRecommendation(model) {
|
|
40
|
+
if (model !== DEFAULT_SETUP_MODEL)
|
|
41
|
+
return null;
|
|
42
|
+
return {
|
|
43
|
+
model,
|
|
44
|
+
modelContextWindow: DEFAULT_SETUP_MODEL_CONTEXT_WINDOW,
|
|
45
|
+
modelAutoCompactTokenLimit: DEFAULT_SETUP_MODEL_AUTO_COMPACT_TOKEN_LIMIT,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const OMX_SEEDED_BEHAVIORAL_DEFAULTS_START_MARKER = "# oh-my-codex seeded behavioral defaults (uninstall removes unchanged defaults)";
|
|
49
|
+
const OMX_SEEDED_BEHAVIORAL_DEFAULTS_END_MARKER = "# End oh-my-codex seeded behavioral defaults";
|
|
50
|
+
export const OMX_DEVELOPER_INSTRUCTIONS = "You have oh-my-codex installed. AGENTS.md is the orchestration brain and main control surface. Follow AGENTS.md for skill/keyword routing, $name workflow invocation, and role-specialized subagents; when spawning native subagents, set `agent_type` to an installed role and never omit it for OMX work. Use outcome-first, concise progress updates: state the target result, constraints, validation evidence, and stop condition before adding process detail. Native subagents live in .codex/agents and may handle independent parallel subtasks within one Codex session or team pane. Skills load from .codex/skills, not native-agent TOMLs. Treat installed prompts as narrower execution surfaces under AGENTS.md authority.";
|
|
51
|
+
export const OMX_PLUGIN_DEVELOPER_INSTRUCTIONS = '<omx version="1">You have oh-my-codex installed through Codex plugin mode. AGENTS.md is the orchestration brain and main control surface. Follow AGENTS.md for skill/keyword routing and $name workflow invocation. When spawning native subagents, set `agent_type` to an installed role and never omit it for OMX work. Registered Codex plugin marketplace surfaces supply OMX workflows and plugin-scoped companion resources when the plugin is installed; native agent roles are installed as setup-owned Codex agent TOML files in plugin mode so agent_type routing works. User-installed skills may still live under ~/.codex/skills. Use outcome-first, concise progress updates: state the target result, constraints, validation evidence, and stop condition before adding process detail.</omx>';
|
|
52
|
+
const SHARED_MCP_REGISTRY_MARKER = "oh-my-codex (OMX) Shared MCP Registry Sync";
|
|
53
|
+
const SHARED_MCP_REGISTRY_END_MARKER = "# End oh-my-codex shared MCP registry sync";
|
|
54
|
+
const OMX_AGENTS_MAX_THREADS = 6;
|
|
55
|
+
const OMX_AGENTS_MAX_DEPTH = 2;
|
|
56
|
+
const OMX_EXPLORE_ROUTING_DEFAULT = "0";
|
|
57
|
+
const OMX_EXPLORE_CMD_ENV = "USE_OMX_EXPLORE_CMD";
|
|
58
|
+
const DEFAULT_LAUNCHER_MCP_STARTUP_TIMEOUT_SEC = 15;
|
|
59
|
+
const STATUS_LINE_FOCUSED_FIELDS = [
|
|
60
|
+
"model-with-reasoning",
|
|
61
|
+
"git-branch",
|
|
62
|
+
"context-remaining",
|
|
63
|
+
"total-input-tokens",
|
|
64
|
+
"total-output-tokens",
|
|
65
|
+
"five-hour-limit",
|
|
66
|
+
"weekly-limit",
|
|
67
|
+
];
|
|
68
|
+
// `full` is currently identical to `focused`. It is reserved for future
|
|
69
|
+
// expansion as Codex CLI adds support for additional status_line fields.
|
|
70
|
+
export const STATUS_LINE_PRESETS = {
|
|
71
|
+
minimal: ["model-with-reasoning", "git-branch"],
|
|
72
|
+
focused: STATUS_LINE_FOCUSED_FIELDS,
|
|
73
|
+
full: STATUS_LINE_FOCUSED_FIELDS,
|
|
74
|
+
};
|
|
75
|
+
export const DEFAULT_STATUS_LINE_PRESET = "focused";
|
|
76
|
+
export function statusLineForPreset(preset = DEFAULT_STATUS_LINE_PRESET) {
|
|
77
|
+
const fields = STATUS_LINE_PRESETS[preset] ??
|
|
78
|
+
STATUS_LINE_PRESETS[DEFAULT_STATUS_LINE_PRESET];
|
|
79
|
+
return `status_line = [${fields.map((field) => `"${field}"`).join(", ")}]`;
|
|
80
|
+
}
|
|
81
|
+
// Marker comment OMX emits immediately above any status_line it owns. New writes
|
|
82
|
+
// always include it; the customized-section detector keys on this marker so a
|
|
83
|
+
// user-edited status_line that happens to byte-match a preset literal (e.g.
|
|
84
|
+
// `["model-with-reasoning", "git-branch"]` matching the `minimal` preset) is
|
|
85
|
+
// still recognized as a user customization and preserved.
|
|
86
|
+
const OMX_MANAGED_STATUS_LINE_MARKER = "# omx:managed-status-line";
|
|
87
|
+
// Pre-marker installs only ever shipped the seven-field `focused` array.
|
|
88
|
+
// Treat that exact value as OMX-managed for backward compatibility so
|
|
89
|
+
// upgrades/preset switches still strip the legacy line. Any other preset
|
|
90
|
+
// literal without the marker is assumed user-written.
|
|
91
|
+
const LEGACY_OMX_STATUS_LINE = statusLineForPreset(DEFAULT_STATUS_LINE_PRESET);
|
|
92
|
+
// Set of every status_line literal OMX itself can emit today. Used together
|
|
93
|
+
// with the marker comment: if a status_line is preceded by the marker AND
|
|
94
|
+
// its value is a known OMX preset, it is OMX-managed. If the marker is
|
|
95
|
+
// present but the value is something else, the user edited the value (and
|
|
96
|
+
// left the marker untouched) — treat as a user customization and preserve.
|
|
97
|
+
const OMX_PRESET_STATUS_LINE_VALUES = new Set(Object.keys(STATUS_LINE_PRESETS).map((preset) => statusLineForPreset(preset)));
|
|
98
|
+
const LEGACY_OMX_TEAM_RUN_TABLE_PATTERN = /^\s*\[mcp_servers\.(?:"omx_team_run"|omx_team_run)\]\s*$/m;
|
|
99
|
+
const OMX_CONFIG_MARKER = "oh-my-codex (OMX) Configuration";
|
|
100
|
+
const OMX_CONFIG_END_MARKER = "# End oh-my-codex";
|
|
101
|
+
const CODEX_MODEL_AVAILABILITY_NUX_TABLE_PATTERN = /^\s*\[tui\.model_availability_nux\]\s*(?:#.*)?$/;
|
|
102
|
+
const TOML_TABLE_HEADER_PATTERN = /^\s*\[\[?[^\]]+\]?\]\s*(?:#.*)?$/;
|
|
103
|
+
export function stripCodexModelAvailabilityNux(config) {
|
|
104
|
+
const lines = config.split(/\r?\n/);
|
|
105
|
+
const result = [];
|
|
106
|
+
let removed = false;
|
|
107
|
+
for (let i = 0; i < lines.length;) {
|
|
108
|
+
if (CODEX_MODEL_AVAILABILITY_NUX_TABLE_PATTERN.test(lines[i])) {
|
|
109
|
+
removed = true;
|
|
110
|
+
i += 1;
|
|
111
|
+
while (i < lines.length && !TOML_TABLE_HEADER_PATTERN.test(lines[i])) {
|
|
112
|
+
i += 1;
|
|
113
|
+
}
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
result.push(lines[i]);
|
|
117
|
+
i += 1;
|
|
118
|
+
}
|
|
119
|
+
return removed ? result.join("\n") : config;
|
|
120
|
+
}
|
|
121
|
+
export async function cleanCodexModelAvailabilityNuxIfNeeded(configPath) {
|
|
122
|
+
if (!existsSync(configPath))
|
|
123
|
+
return false;
|
|
124
|
+
const content = await readFile(configPath, "utf-8");
|
|
125
|
+
const cleaned = stripCodexModelAvailabilityNux(content);
|
|
126
|
+
if (cleaned === content)
|
|
127
|
+
return false;
|
|
128
|
+
await writeFile(configPath, cleaned);
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
export function hasLegacyOmxTeamRunTable(config) {
|
|
132
|
+
return LEGACY_OMX_TEAM_RUN_TABLE_PATTERN.test(config);
|
|
133
|
+
}
|
|
134
|
+
function unwrapTomlString(value) {
|
|
135
|
+
return value?.match(/^"(.*)"$/)?.[1];
|
|
136
|
+
}
|
|
137
|
+
export function getRootModelName(config) {
|
|
138
|
+
return unwrapTomlString(parseRootKeyValues(config).get("model"));
|
|
139
|
+
}
|
|
140
|
+
const ROOT_TABLE_HEADER_PATTERN = /^\s*\[\[?[^\]]+\]?\]\s*$/;
|
|
141
|
+
const ROOT_KEY_ASSIGNMENT_PATTERN = /^\s*([A-Za-z0-9_-]+)\s*=\s*(.*)$/;
|
|
142
|
+
function parseStandaloneToml(snippet) {
|
|
143
|
+
try {
|
|
144
|
+
TOML.parse(snippet);
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function splitRootLevelEntries(config) {
|
|
152
|
+
const lines = config.split(/\r?\n/);
|
|
153
|
+
const entries = [];
|
|
154
|
+
let index = 0;
|
|
155
|
+
while (index < lines.length) {
|
|
156
|
+
const line = lines[index];
|
|
157
|
+
if (ROOT_TABLE_HEADER_PATTERN.test(line))
|
|
158
|
+
break;
|
|
159
|
+
const match = line.match(ROOT_KEY_ASSIGNMENT_PATTERN);
|
|
160
|
+
if (!match) {
|
|
161
|
+
entries.push({ lines: [line] });
|
|
162
|
+
index += 1;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
const entryLines = [line];
|
|
166
|
+
while (!parseStandaloneToml(entryLines.join("\n")) &&
|
|
167
|
+
index + entryLines.length < lines.length) {
|
|
168
|
+
entryLines.push(lines[index + entryLines.length]);
|
|
169
|
+
}
|
|
170
|
+
entries.push({ key: match[1], lines: entryLines });
|
|
171
|
+
index += entryLines.length;
|
|
172
|
+
}
|
|
173
|
+
return { entries, remainder: lines.slice(index) };
|
|
174
|
+
}
|
|
175
|
+
function parseRootKeyValues(config) {
|
|
176
|
+
const values = new Map();
|
|
177
|
+
const { entries } = splitRootLevelEntries(config);
|
|
178
|
+
for (const entry of entries) {
|
|
179
|
+
if (!entry.key)
|
|
180
|
+
continue;
|
|
181
|
+
const [firstLine, ...rest] = entry.lines;
|
|
182
|
+
const match = firstLine.match(ROOT_KEY_ASSIGNMENT_PATTERN);
|
|
183
|
+
if (!match)
|
|
184
|
+
continue;
|
|
185
|
+
const value = [match[2], ...rest].join("\n").trim();
|
|
186
|
+
values.set(entry.key, value);
|
|
187
|
+
}
|
|
188
|
+
return values;
|
|
189
|
+
}
|
|
190
|
+
function getDefaultNotifyCommand(pkgRoot) {
|
|
191
|
+
return ["node", join(pkgRoot, "dist", "scripts", "notify-hook.js")];
|
|
192
|
+
}
|
|
193
|
+
export function formatTomlStringArray(values) {
|
|
194
|
+
return `[${values.map((value) => `"${escapeTomlString(value)}"`).join(", ")}]`;
|
|
195
|
+
}
|
|
196
|
+
export function getRootTomlArray(config, key) {
|
|
197
|
+
const raw = parseRootKeyValues(config).get(key);
|
|
198
|
+
if (!raw)
|
|
199
|
+
return null;
|
|
200
|
+
try {
|
|
201
|
+
const parsed = TOML.parse(`${key} = ${raw}`);
|
|
202
|
+
const value = parsed[key];
|
|
203
|
+
if (!Array.isArray(value) ||
|
|
204
|
+
!value.every((item) => typeof item === "string")) {
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
return value;
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function resolveNotifyEntrypoint(command) {
|
|
214
|
+
if (!/(?:^|[\\/])node(?:\.exe)?$/i.test(command[0] ?? "")) {
|
|
215
|
+
return command[0];
|
|
216
|
+
}
|
|
217
|
+
return command.slice(1).find((arg) => !arg.startsWith("-"));
|
|
218
|
+
}
|
|
219
|
+
function getPreviousNotifyWrapperValue(command) {
|
|
220
|
+
for (let index = 0; index < command.length; index += 1) {
|
|
221
|
+
const part = command[index];
|
|
222
|
+
if (part === "--previous-notify") {
|
|
223
|
+
return command[index + 1];
|
|
224
|
+
}
|
|
225
|
+
if (part.startsWith("--previous-notify=")) {
|
|
226
|
+
return part.slice("--previous-notify=".length);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return undefined;
|
|
230
|
+
}
|
|
231
|
+
function isOmxDispatcherMetadataCommand(command) {
|
|
232
|
+
if (!command)
|
|
233
|
+
return false;
|
|
234
|
+
const entrypoint = resolveNotifyEntrypoint(command);
|
|
235
|
+
if (!entrypoint || !/(?:^|[\\/])notify-dispatcher\.js$/.test(entrypoint)) {
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
const metadataIndex = command.indexOf("--metadata");
|
|
239
|
+
const metadataPath = metadataIndex >= 0 ? command[metadataIndex + 1] : undefined;
|
|
240
|
+
return typeof metadataPath === "string" && /(?:^|[\\/])(?:\.omx[\\/])?notify-dispatch\.json$/.test(metadataPath);
|
|
241
|
+
}
|
|
242
|
+
function isOmxManagedPayloadText(value) {
|
|
243
|
+
const containsManagedPackageNotify = /(?:^|[\\/])notify-(?:hook|dispatcher)\.js(?:\s|$|["'])/.test(value) && /(?:^|[\\/])oh-my-codex(?:[\\/]|$)/.test(value);
|
|
244
|
+
const containsDispatcherMetadataNotify = /(?:^|[\\/])notify-dispatcher\.js(?:\s|$|["'])/.test(value) &&
|
|
245
|
+
/--metadata(?:\s|=)/.test(value) &&
|
|
246
|
+
/(?:^|[\\/])(?:\.omx[\\/])?notify-dispatch\.json(?:\s|$|["'])/.test(value);
|
|
247
|
+
return containsManagedPackageNotify || containsDispatcherMetadataNotify;
|
|
248
|
+
}
|
|
249
|
+
function parseJsonString(value) {
|
|
250
|
+
const trimmed = value.trim();
|
|
251
|
+
if (!trimmed)
|
|
252
|
+
return undefined;
|
|
253
|
+
const first = trimmed[0];
|
|
254
|
+
if (first !== "[" && first !== "{" && first !== '"')
|
|
255
|
+
return undefined;
|
|
256
|
+
try {
|
|
257
|
+
return JSON.parse(trimmed);
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
function containsOmxManagedNotifyPayload(value, pkgRoot, depth = 0) {
|
|
264
|
+
if (depth > 8 || value == null)
|
|
265
|
+
return false;
|
|
266
|
+
if (typeof value === "string") {
|
|
267
|
+
const parsed = parseJsonString(value);
|
|
268
|
+
if (parsed !== undefined && parsed !== value) {
|
|
269
|
+
return containsOmxManagedNotifyPayload(parsed, pkgRoot, depth + 1);
|
|
270
|
+
}
|
|
271
|
+
return isOmxManagedPayloadText(value);
|
|
272
|
+
}
|
|
273
|
+
if (Array.isArray(value)) {
|
|
274
|
+
if (value.every((item) => typeof item === "string")) {
|
|
275
|
+
const nestedCommand = value;
|
|
276
|
+
return (isOmxManagedNotifyCommand(nestedCommand, pkgRoot) ||
|
|
277
|
+
isOmxDispatcherMetadataCommand(nestedCommand) ||
|
|
278
|
+
isOmxManagedPreviousNotifyWrapper(nestedCommand, pkgRoot));
|
|
279
|
+
}
|
|
280
|
+
return value.some((item) => containsOmxManagedNotifyPayload(item, pkgRoot, depth + 1));
|
|
281
|
+
}
|
|
282
|
+
if (typeof value === "object") {
|
|
283
|
+
const record = value;
|
|
284
|
+
return [
|
|
285
|
+
record.previousNotify,
|
|
286
|
+
record.previous_notify,
|
|
287
|
+
record.notify,
|
|
288
|
+
record.command,
|
|
289
|
+
record.argv,
|
|
290
|
+
record.args,
|
|
291
|
+
].some((item) => containsOmxManagedNotifyPayload(item, pkgRoot, depth + 1));
|
|
292
|
+
}
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
function isOmxManagedPreviousNotifyWrapper(command, pkgRoot) {
|
|
296
|
+
if (!command)
|
|
297
|
+
return false;
|
|
298
|
+
if (!command.some((part) => part === "turn-ended"))
|
|
299
|
+
return false;
|
|
300
|
+
const previousNotify = getPreviousNotifyWrapperValue(command);
|
|
301
|
+
if (!previousNotify)
|
|
302
|
+
return false;
|
|
303
|
+
return containsOmxManagedNotifyPayload(previousNotify, pkgRoot);
|
|
304
|
+
}
|
|
305
|
+
export function isOmxManagedNotifyCommand(command, pkgRoot) {
|
|
306
|
+
if (!command)
|
|
307
|
+
return false;
|
|
308
|
+
if (isOmxDispatcherMetadataCommand(command))
|
|
309
|
+
return true;
|
|
310
|
+
const entrypoint = resolveNotifyEntrypoint(command);
|
|
311
|
+
if (!entrypoint)
|
|
312
|
+
return false;
|
|
313
|
+
if (!/(?:^|[\\/])notify-(?:hook|dispatcher)\.js$/.test(entrypoint)) {
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
const managedScripts = pkgRoot
|
|
317
|
+
? new Set([
|
|
318
|
+
resolve(pkgRoot, "dist", "scripts", "notify-hook.js"),
|
|
319
|
+
resolve(pkgRoot, "dist", "scripts", "notify-dispatcher.js"),
|
|
320
|
+
])
|
|
321
|
+
: new Set();
|
|
322
|
+
if (pkgRoot && managedScripts.has(resolve(entrypoint)))
|
|
323
|
+
return true;
|
|
324
|
+
return /(?:^|[\\/])oh-my-codex(?:[\\/]|$)/.test(entrypoint);
|
|
325
|
+
}
|
|
326
|
+
export function sanitizePreviousNotifyCommand(command, pkgRoot) {
|
|
327
|
+
if (!command || command.length === 0)
|
|
328
|
+
return null;
|
|
329
|
+
if (isOmxManagedNotifyCommand(command, pkgRoot))
|
|
330
|
+
return null;
|
|
331
|
+
if (isOmxManagedPreviousNotifyWrapper(command, pkgRoot))
|
|
332
|
+
return null;
|
|
333
|
+
return [...command];
|
|
334
|
+
}
|
|
335
|
+
function getOmxTopLevelLines(pkgRoot, existingConfig = "", modelOverride, notifyCommand = getDefaultNotifyCommand(pkgRoot)) {
|
|
336
|
+
const rootValues = parseRootKeyValues(existingConfig);
|
|
337
|
+
const lines = [
|
|
338
|
+
"# oh-my-codex top-level settings (must be before any [table])",
|
|
339
|
+
...(notifyCommand === false
|
|
340
|
+
? []
|
|
341
|
+
: [`notify = ${formatTomlStringArray(notifyCommand)}`]),
|
|
342
|
+
'model_reasoning_effort = "medium"',
|
|
343
|
+
`developer_instructions = "${escapeTomlString(OMX_DEVELOPER_INSTRUCTIONS)}"`,
|
|
344
|
+
];
|
|
345
|
+
const existingModel = rootValues.get("model");
|
|
346
|
+
const existingContextWindow = rootValues.get("model_context_window");
|
|
347
|
+
const existingAutoCompact = rootValues.get("model_auto_compact_token_limit");
|
|
348
|
+
const selectedModel = modelOverride ?? unwrapTomlString(existingModel) ?? DEFAULT_SETUP_MODEL;
|
|
349
|
+
if (modelOverride || !existingModel) {
|
|
350
|
+
lines.push(`model = "${selectedModel}"`);
|
|
351
|
+
}
|
|
352
|
+
if (selectedModel === DEFAULT_SETUP_MODEL) {
|
|
353
|
+
const seededBehavioralDefaults = [];
|
|
354
|
+
if (!existingContextWindow) {
|
|
355
|
+
seededBehavioralDefaults.push(`model_context_window = ${DEFAULT_SETUP_MODEL_CONTEXT_WINDOW}`);
|
|
356
|
+
}
|
|
357
|
+
if (!existingAutoCompact) {
|
|
358
|
+
seededBehavioralDefaults.push(`model_auto_compact_token_limit = ${DEFAULT_SETUP_MODEL_AUTO_COMPACT_TOKEN_LIMIT}`);
|
|
359
|
+
}
|
|
360
|
+
if (seededBehavioralDefaults.length > 0) {
|
|
361
|
+
lines.push(OMX_SEEDED_BEHAVIORAL_DEFAULTS_START_MARKER);
|
|
362
|
+
lines.push(...seededBehavioralDefaults);
|
|
363
|
+
lines.push(OMX_SEEDED_BEHAVIORAL_DEFAULTS_END_MARKER);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
return lines;
|
|
367
|
+
}
|
|
368
|
+
function isUnchangedOmxSeededBehavioralDefaultsBlock(lines) {
|
|
369
|
+
const relevant = lines.filter((line) => {
|
|
370
|
+
const trimmed = line.trim();
|
|
371
|
+
return trimmed.length > 0 && !trimmed.startsWith("#");
|
|
372
|
+
});
|
|
373
|
+
if (relevant.length !== 2)
|
|
374
|
+
return false;
|
|
375
|
+
const parsed = parseRootKeyValues(relevant.join("\n"));
|
|
376
|
+
return (parsed.size === 2 &&
|
|
377
|
+
parsed.get("model_context_window") ===
|
|
378
|
+
String(DEFAULT_SETUP_MODEL_CONTEXT_WINDOW) &&
|
|
379
|
+
parsed.get("model_auto_compact_token_limit") ===
|
|
380
|
+
String(DEFAULT_SETUP_MODEL_AUTO_COMPACT_TOKEN_LIMIT));
|
|
381
|
+
}
|
|
382
|
+
export function stripOmxSeededBehavioralDefaults(config) {
|
|
383
|
+
const lines = config.split(/\r?\n/);
|
|
384
|
+
const firstTable = lines.findIndex((line) => /^\s*\[/.test(line));
|
|
385
|
+
const boundary = firstTable >= 0 ? firstTable : lines.length;
|
|
386
|
+
const result = [];
|
|
387
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
388
|
+
const trimmed = lines[index].trim();
|
|
389
|
+
if (index < boundary &&
|
|
390
|
+
trimmed === OMX_SEEDED_BEHAVIORAL_DEFAULTS_START_MARKER) {
|
|
391
|
+
const endIndex = lines.findIndex((line, candidateIndex) => candidateIndex > index &&
|
|
392
|
+
candidateIndex < boundary &&
|
|
393
|
+
line.trim() === OMX_SEEDED_BEHAVIORAL_DEFAULTS_END_MARKER);
|
|
394
|
+
if (endIndex < 0) {
|
|
395
|
+
continue;
|
|
396
|
+
}
|
|
397
|
+
const blockLines = lines.slice(index + 1, endIndex);
|
|
398
|
+
if (!isUnchangedOmxSeededBehavioralDefaultsBlock(blockLines)) {
|
|
399
|
+
result.push(...blockLines);
|
|
400
|
+
}
|
|
401
|
+
index = endIndex;
|
|
402
|
+
continue;
|
|
403
|
+
}
|
|
404
|
+
if (index < boundary &&
|
|
405
|
+
trimmed === OMX_SEEDED_BEHAVIORAL_DEFAULTS_END_MARKER) {
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
result.push(lines[index]);
|
|
409
|
+
}
|
|
410
|
+
return result.join("\n");
|
|
411
|
+
}
|
|
412
|
+
function stripRootLevelKeys(config, keys) {
|
|
413
|
+
const { entries, remainder } = splitRootLevelEntries(config);
|
|
414
|
+
const filteredEntries = entries.filter((entry) => {
|
|
415
|
+
if (keys.some((key) => OMX_TOP_LEVEL_KEYS.includes(key)) &&
|
|
416
|
+
entry.lines.length === 1 &&
|
|
417
|
+
entry.lines[0].trim() ===
|
|
418
|
+
"# oh-my-codex top-level settings (must be before any [table])") {
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
return !entry.key || !keys.includes(entry.key);
|
|
422
|
+
});
|
|
423
|
+
const result = [
|
|
424
|
+
...filteredEntries.flatMap((entry) => entry.lines),
|
|
425
|
+
...remainder,
|
|
426
|
+
];
|
|
427
|
+
if (result.length === 0) {
|
|
428
|
+
return "";
|
|
429
|
+
}
|
|
430
|
+
return result.join("\n");
|
|
431
|
+
}
|
|
432
|
+
function escapeRegExp(value) {
|
|
433
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
434
|
+
}
|
|
435
|
+
function stripOrphanedManagedNotify(config, pkgRoot) {
|
|
436
|
+
const rootNotify = getRootTomlArray(config, "notify");
|
|
437
|
+
if (rootNotify &&
|
|
438
|
+
!isOmxManagedNotifyCommand(rootNotify, pkgRoot)) {
|
|
439
|
+
return config;
|
|
440
|
+
}
|
|
441
|
+
const managedHookPath = escapeRegExp(resolve(pkgRoot, "dist", "scripts", "notify-hook.js"));
|
|
442
|
+
return config
|
|
443
|
+
.replace(new RegExp(`^\\s*notify\\s*=\\s*\\["node",\\s*"${managedHookPath}"\\]\\s*$(\\n)?`, "gm"), "")
|
|
444
|
+
.replace(/^\s*notify\s*=\s*\["node",\s*".*notify-hook\.js"\]\s*$(\n)?/gm, "")
|
|
445
|
+
.replace(/\n?\s*"node",\s*\n\s*".*notify-hook\.js",\s*\n\s*\]\s*(?=\n|$)/g, "");
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Remove any existing OMX-owned top-level keys so we can re-insert them
|
|
449
|
+
* cleanly. Also removes the comment line that precedes them.
|
|
450
|
+
*/
|
|
451
|
+
export function stripOmxTopLevelKeys(config) {
|
|
452
|
+
return stripRootLevelKeys(config, OMX_TOP_LEVEL_KEYS);
|
|
453
|
+
}
|
|
454
|
+
// ---------------------------------------------------------------------------
|
|
455
|
+
// [features] upsert
|
|
456
|
+
// ---------------------------------------------------------------------------
|
|
457
|
+
function isFeatureFlagLine(line, featureFlag) {
|
|
458
|
+
return new RegExp(`^\\s*${featureFlag}\\s*=`).test(line);
|
|
459
|
+
}
|
|
460
|
+
function isAnyCodexHookFeatureFlagLine(line) {
|
|
461
|
+
return CODEX_HOOK_FEATURE_FLAGS.some((flag) => isFeatureFlagLine(line, flag));
|
|
462
|
+
}
|
|
463
|
+
function isAnyPluginModeHookFeatureFlagLine(line) {
|
|
464
|
+
return isAnyCodexHookFeatureFlagLine(line)
|
|
465
|
+
|| isFeatureFlagLine(line, CODEX_PLUGIN_SCOPED_HOOKS_FEATURE_FLAG);
|
|
466
|
+
}
|
|
467
|
+
function upsertFeatureFlagLineInSection(lines, featuresStart, sectionEnd, featureFlag, aliases) {
|
|
468
|
+
let featureFlagIdx = -1;
|
|
469
|
+
let fallbackAliasIdx = -1;
|
|
470
|
+
for (let i = featuresStart + 1; i < sectionEnd; i++) {
|
|
471
|
+
if (isFeatureFlagLine(lines[i], featureFlag)) {
|
|
472
|
+
featureFlagIdx = i;
|
|
473
|
+
}
|
|
474
|
+
else if (aliases(lines[i]) && fallbackAliasIdx < 0) {
|
|
475
|
+
fallbackAliasIdx = i;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
if (featureFlagIdx < 0 && fallbackAliasIdx >= 0) {
|
|
479
|
+
featureFlagIdx = fallbackAliasIdx;
|
|
480
|
+
}
|
|
481
|
+
if (featureFlagIdx >= 0) {
|
|
482
|
+
lines[featureFlagIdx] = `${featureFlag} = true`;
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
lines.splice(sectionEnd, 0, `${featureFlag} = true`);
|
|
486
|
+
featureFlagIdx = sectionEnd;
|
|
487
|
+
sectionEnd += 1;
|
|
488
|
+
}
|
|
489
|
+
for (let i = sectionEnd - 1; i > featuresStart; i--) {
|
|
490
|
+
if (i !== featureFlagIdx && aliases(lines[i])) {
|
|
491
|
+
lines.splice(i, 1);
|
|
492
|
+
sectionEnd -= 1;
|
|
493
|
+
if (featureFlagIdx > i)
|
|
494
|
+
featureFlagIdx -= 1;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return { sectionEnd, featureFlagIndex: featureFlagIdx };
|
|
498
|
+
}
|
|
499
|
+
function upsertCodexHookFeatureFlagInSection(lines, featuresStart, sectionEnd, codexHookFeatureFlag) {
|
|
500
|
+
const featureFlag = normalizeCodexHookFeatureFlag(codexHookFeatureFlag);
|
|
501
|
+
return upsertFeatureFlagLineInSection(lines, featuresStart, sectionEnd, featureFlag, isAnyCodexHookFeatureFlagLine);
|
|
502
|
+
}
|
|
503
|
+
function upsertPluginScopedHookFeatureFlagInSection(lines, featuresStart, sectionEnd) {
|
|
504
|
+
return upsertFeatureFlagLineInSection(lines, featuresStart, sectionEnd, CODEX_PLUGIN_SCOPED_HOOKS_FEATURE_FLAG, isAnyPluginModeHookFeatureFlagLine);
|
|
505
|
+
}
|
|
506
|
+
function upsertFeatureFlags(config, codexHookFeatureFlag = DEFAULT_CODEX_HOOK_FEATURE_FLAG) {
|
|
507
|
+
const lines = config.split(/\r?\n/);
|
|
508
|
+
const featuresStart = lines.findIndex((line) => /^\s*\[features\]\s*$/.test(line));
|
|
509
|
+
const hookFeatureFlagLine = formatCodexHookFeatureFlagLine(codexHookFeatureFlag);
|
|
510
|
+
if (featuresStart < 0) {
|
|
511
|
+
const base = config.trimEnd();
|
|
512
|
+
const featureBlock = [
|
|
513
|
+
"[features]",
|
|
514
|
+
"multi_agent = true",
|
|
515
|
+
"child_agents_md = true",
|
|
516
|
+
hookFeatureFlagLine,
|
|
517
|
+
"goals = true",
|
|
518
|
+
"",
|
|
519
|
+
].join("\n");
|
|
520
|
+
if (base.length === 0) {
|
|
521
|
+
return featureBlock;
|
|
522
|
+
}
|
|
523
|
+
return `${base}\n${featureBlock}`;
|
|
524
|
+
}
|
|
525
|
+
let sectionEnd = lines.length;
|
|
526
|
+
for (let i = featuresStart + 1; i < lines.length; i++) {
|
|
527
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i])) {
|
|
528
|
+
sectionEnd = i;
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
// Remove deprecated 'collab' key (superseded by multi_agent) and
|
|
533
|
+
// the misspelled singular 'goal' flag written by unreleased PR builds.
|
|
534
|
+
for (let i = sectionEnd - 1; i > featuresStart; i--) {
|
|
535
|
+
if (/^\s*(?:collab|goal)\s*=/.test(lines[i])) {
|
|
536
|
+
lines.splice(i, 1);
|
|
537
|
+
sectionEnd -= 1;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
let multiAgentIdx = -1;
|
|
541
|
+
let childAgentsIdx = -1;
|
|
542
|
+
for (let i = featuresStart + 1; i < sectionEnd; i++) {
|
|
543
|
+
if (/^\s*multi_agent\s*=/.test(lines[i])) {
|
|
544
|
+
multiAgentIdx = i;
|
|
545
|
+
}
|
|
546
|
+
else if (/^\s*child_agents_md\s*=/.test(lines[i])) {
|
|
547
|
+
childAgentsIdx = i;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
if (multiAgentIdx >= 0) {
|
|
551
|
+
lines[multiAgentIdx] = "multi_agent = true";
|
|
552
|
+
}
|
|
553
|
+
else {
|
|
554
|
+
lines.splice(sectionEnd, 0, "multi_agent = true");
|
|
555
|
+
sectionEnd += 1;
|
|
556
|
+
}
|
|
557
|
+
if (childAgentsIdx >= 0) {
|
|
558
|
+
lines[childAgentsIdx] = "child_agents_md = true";
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
lines.splice(sectionEnd, 0, "child_agents_md = true");
|
|
562
|
+
sectionEnd += 1;
|
|
563
|
+
}
|
|
564
|
+
({ sectionEnd } = upsertCodexHookFeatureFlagInSection(lines, featuresStart, sectionEnd, codexHookFeatureFlag));
|
|
565
|
+
let goalsIdx = -1;
|
|
566
|
+
for (let i = featuresStart + 1; i < sectionEnd; i++) {
|
|
567
|
+
if (/^\s*goals\s*=/.test(lines[i])) {
|
|
568
|
+
goalsIdx = i;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
if (goalsIdx >= 0) {
|
|
572
|
+
lines[goalsIdx] = "goals = true";
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
lines.splice(sectionEnd, 0, "goals = true");
|
|
576
|
+
}
|
|
577
|
+
return lines.join("\n");
|
|
578
|
+
}
|
|
579
|
+
const OMX_HOOK_TRUST_START_MARKER = "# OMX-owned Codex hook trust state";
|
|
580
|
+
const OMX_HOOK_TRUST_END_MARKER = "# End OMX-owned Codex hook trust state";
|
|
581
|
+
const OMX_PROJECT_TRUST_START_MARKER = "# OMX-synced Codex project trust state (from runtime CODEX_HOME)";
|
|
582
|
+
const OMX_PROJECT_TRUST_END_MARKER = "# End OMX-synced Codex project trust state";
|
|
583
|
+
function extractMarkerBlockContent(config, startMarker, endMarker) {
|
|
584
|
+
const lines = config.split(/\r?\n/);
|
|
585
|
+
for (let i = 0; i < lines.length; i++) {
|
|
586
|
+
if (lines[i].trim() !== startMarker)
|
|
587
|
+
continue;
|
|
588
|
+
const nextEndIdx = lines.findIndex((line, index) => index > i && line.trim() === endMarker);
|
|
589
|
+
const nextStartIdx = lines.findIndex((line, index) => index > i && line.trim() === startMarker);
|
|
590
|
+
if (nextEndIdx === -1 || (nextStartIdx !== -1 && nextStartIdx < nextEndIdx)) {
|
|
591
|
+
return undefined;
|
|
592
|
+
}
|
|
593
|
+
return lines.slice(i + 1, nextEndIdx).join("\n").trim();
|
|
594
|
+
}
|
|
595
|
+
return undefined;
|
|
596
|
+
}
|
|
597
|
+
function stripMarkerBlock(config, startMarker, endMarker) {
|
|
598
|
+
const lines = config.split(/\r?\n/);
|
|
599
|
+
const kept = [];
|
|
600
|
+
for (let i = 0; i < lines.length;) {
|
|
601
|
+
if (lines[i].trim() !== startMarker) {
|
|
602
|
+
kept.push(lines[i]);
|
|
603
|
+
i += 1;
|
|
604
|
+
continue;
|
|
605
|
+
}
|
|
606
|
+
const nextEndIdx = lines.findIndex((line, index) => index > i && line.trim() === endMarker);
|
|
607
|
+
const nextStartIdx = lines.findIndex((line, index) => index > i && line.trim() === startMarker);
|
|
608
|
+
if (nextEndIdx === -1 || (nextStartIdx !== -1 && nextStartIdx < nextEndIdx)) {
|
|
609
|
+
kept.push(lines[i]);
|
|
610
|
+
i += 1;
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
i = nextEndIdx + 1;
|
|
614
|
+
}
|
|
615
|
+
return kept.join("\n").replace(/\n{3,}/g, "\n\n").trimEnd();
|
|
616
|
+
}
|
|
617
|
+
function isPlainTomlRecord(value) {
|
|
618
|
+
return (typeof value === "object" &&
|
|
619
|
+
value !== null &&
|
|
620
|
+
!Array.isArray(value) &&
|
|
621
|
+
Object.getPrototypeOf(value) === Object.prototype);
|
|
622
|
+
}
|
|
623
|
+
function safeParseToml(content) {
|
|
624
|
+
try {
|
|
625
|
+
const parsed = TOML.parse(content);
|
|
626
|
+
return isPlainTomlRecord(parsed) ? parsed : undefined;
|
|
627
|
+
}
|
|
628
|
+
catch {
|
|
629
|
+
return undefined;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function collectProjectHookTrustStateKeys(config) {
|
|
633
|
+
const keys = new Set();
|
|
634
|
+
const parsed = safeParseToml(config);
|
|
635
|
+
const hooksTable = isPlainTomlRecord(parsed) ? parsed.hooks : undefined;
|
|
636
|
+
const hooksState = isPlainTomlRecord(hooksTable) ? hooksTable.state : undefined;
|
|
637
|
+
if (!isPlainTomlRecord(hooksState))
|
|
638
|
+
return keys;
|
|
639
|
+
for (const [key, entry] of Object.entries(hooksState)) {
|
|
640
|
+
if (!isPlainTomlRecord(entry))
|
|
641
|
+
continue;
|
|
642
|
+
keys.add(key);
|
|
643
|
+
}
|
|
644
|
+
return keys;
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Repairs project configs from the 0.18.3 relaunch regression where a
|
|
648
|
+
* project-synced trust block could duplicate setup-owned hook trust tables and
|
|
649
|
+
* make the next runtime CODEX_HOME config.toml invalid before Codex started.
|
|
650
|
+
*/
|
|
651
|
+
export function repairProjectScopeTrustStateForLaunch(projectConfig, projectHooksPath) {
|
|
652
|
+
const syncedTrustBlock = extractMarkerBlockContent(projectConfig, OMX_PROJECT_TRUST_START_MARKER, OMX_PROJECT_TRUST_END_MARKER);
|
|
653
|
+
if (!syncedTrustBlock)
|
|
654
|
+
return projectConfig;
|
|
655
|
+
const stripped = stripMarkerBlock(projectConfig, OMX_PROJECT_TRUST_START_MARKER, OMX_PROJECT_TRUST_END_MARKER);
|
|
656
|
+
const repaired = syncProjectScopeTrustStateFromRuntime(stripped, syncedTrustBlock, projectHooksPath);
|
|
657
|
+
return repaired === stripped ? projectConfig : repaired;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Project-scope launches mirror the durable project config.toml into an
|
|
661
|
+
* ephemeral runtime CODEX_HOME. Codex writes its workspace-trust ledger and
|
|
662
|
+
* hook trust ledger into the runtime config.toml during the session. Without
|
|
663
|
+
* persistence, those entries die with the runtime, so Codex prompts to trust
|
|
664
|
+
* the workspace and hooks on every launch (issue #2470).
|
|
665
|
+
*
|
|
666
|
+
* This function extracts only trust-state tables (`[projects."<cwd>"]` and
|
|
667
|
+
* `[hooks.state."<projectHooksPath>:..."]`) from the runtime config.toml and
|
|
668
|
+
* upserts them into the durable project config.toml inside a marker-fenced
|
|
669
|
+
* block, preserving any surrounding user-managed content and comments and
|
|
670
|
+
* ignoring Codex's NUX counters or other ephemeral runtime-only writes.
|
|
671
|
+
*/
|
|
672
|
+
export function syncProjectScopeTrustStateFromRuntime(projectConfig, runtimeConfig, projectHooksPath) {
|
|
673
|
+
const parsed = safeParseToml(runtimeConfig);
|
|
674
|
+
if (!parsed)
|
|
675
|
+
return projectConfig;
|
|
676
|
+
const stripped = stripMarkerBlock(projectConfig, OMX_PROJECT_TRUST_START_MARKER, OMX_PROJECT_TRUST_END_MARKER);
|
|
677
|
+
const existingHookTrustStateKeys = collectProjectHookTrustStateKeys(stripped);
|
|
678
|
+
const trustBlockLines = [];
|
|
679
|
+
const projectsTable = parsed.projects;
|
|
680
|
+
if (isPlainTomlRecord(projectsTable)) {
|
|
681
|
+
for (const [projectKey, entry] of Object.entries(projectsTable).sort(([a], [b]) => a.localeCompare(b))) {
|
|
682
|
+
if (!isPlainTomlRecord(entry))
|
|
683
|
+
continue;
|
|
684
|
+
const serialized = TOML.stringify({ [projectKey]: entry });
|
|
685
|
+
const renderedHeader = `[projects."${escapeTomlBasicString(projectKey)}"]`;
|
|
686
|
+
const body = serialized
|
|
687
|
+
.split(/\r?\n/)
|
|
688
|
+
.filter((line) => !/^\s*\[/.test(line) && line.trim() !== "")
|
|
689
|
+
.join("\n");
|
|
690
|
+
if (body.length === 0)
|
|
691
|
+
continue;
|
|
692
|
+
trustBlockLines.push(renderedHeader, body, "");
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
const hooksTable = parsed.hooks;
|
|
696
|
+
const hooksState = isPlainTomlRecord(hooksTable) ? hooksTable.state : undefined;
|
|
697
|
+
if (isPlainTomlRecord(hooksState)) {
|
|
698
|
+
for (const [stateKey, entry] of Object.entries(hooksState).sort(([a], [b]) => a.localeCompare(b))) {
|
|
699
|
+
if (!isPlainTomlRecord(entry))
|
|
700
|
+
continue;
|
|
701
|
+
if (!stateKey.startsWith(`${projectHooksPath}:`))
|
|
702
|
+
continue;
|
|
703
|
+
if (existingHookTrustStateKeys.has(stateKey))
|
|
704
|
+
continue;
|
|
705
|
+
const trusted = entry.trusted_hash;
|
|
706
|
+
if (typeof trusted !== "string" || trusted.length === 0)
|
|
707
|
+
continue;
|
|
708
|
+
trustBlockLines.push(`[hooks.state."${escapeTomlBasicString(stateKey)}"]`, `trusted_hash = "${escapeTomlBasicString(trusted)}"`, "");
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
if (trustBlockLines.length === 0) {
|
|
712
|
+
return stripped.length === 0 ? "" : `${stripped}\n`;
|
|
713
|
+
}
|
|
714
|
+
const block = [
|
|
715
|
+
OMX_PROJECT_TRUST_START_MARKER,
|
|
716
|
+
...trustBlockLines,
|
|
717
|
+
OMX_PROJECT_TRUST_END_MARKER,
|
|
718
|
+
"",
|
|
719
|
+
].join("\n");
|
|
720
|
+
if (stripped.length === 0)
|
|
721
|
+
return block;
|
|
722
|
+
return `${stripped}\n\n${block}`;
|
|
723
|
+
}
|
|
724
|
+
function decodeTomlBasicString(raw) {
|
|
725
|
+
try {
|
|
726
|
+
const parsed = TOML.parse(`value = "${raw}"`);
|
|
727
|
+
return typeof parsed.value === "string" ? parsed.value : undefined;
|
|
728
|
+
}
|
|
729
|
+
catch {
|
|
730
|
+
return undefined;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
function parseHooksStateHeader(line) {
|
|
734
|
+
const match = line.match(/^\s*\[hooks\.state\."((?:\\.|[^"\\])*)"\]\s*(#.*)?$/);
|
|
735
|
+
if (!match)
|
|
736
|
+
return undefined;
|
|
737
|
+
const key = decodeTomlBasicString(match[1] ?? "");
|
|
738
|
+
if (key === undefined)
|
|
739
|
+
return undefined;
|
|
740
|
+
return { key, hasInlineComment: match[2] !== undefined };
|
|
741
|
+
}
|
|
742
|
+
function isTomlTableHeader(line) {
|
|
743
|
+
return /^\s*\[\[?[^\]]+\]?\]\s*(?:#.*)?$/.test(line);
|
|
744
|
+
}
|
|
745
|
+
function isExactlyManagedHookTrustBody(bodyLines, expectedHash) {
|
|
746
|
+
const nonBlank = bodyLines.filter((line) => line.trim().length > 0);
|
|
747
|
+
if (nonBlank.length !== 1)
|
|
748
|
+
return false;
|
|
749
|
+
const expected = expectedHash.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
750
|
+
return new RegExp(`^\\s*trusted_hash\\s*=\\s*"${expected}"\\s*$`).test(nonBlank[0] ?? "");
|
|
751
|
+
}
|
|
752
|
+
function stripProofManagedCodexHookTrustStateTables(config, managedTrustState) {
|
|
753
|
+
if (Object.keys(managedTrustState).length === 0) {
|
|
754
|
+
return { config, preservedConflictKeys: new Set() };
|
|
755
|
+
}
|
|
756
|
+
const lines = config.split(/\r?\n/);
|
|
757
|
+
const kept = [];
|
|
758
|
+
const preservedConflictKeys = new Set();
|
|
759
|
+
for (let i = 0; i < lines.length;) {
|
|
760
|
+
const header = parseHooksStateHeader(lines[i] ?? "");
|
|
761
|
+
if (!header) {
|
|
762
|
+
kept.push(lines[i]);
|
|
763
|
+
i += 1;
|
|
764
|
+
continue;
|
|
765
|
+
}
|
|
766
|
+
let tableEnd = lines.length;
|
|
767
|
+
for (let next = i + 1; next < lines.length; next += 1) {
|
|
768
|
+
if (isTomlTableHeader(lines[next] ?? "")) {
|
|
769
|
+
tableEnd = next;
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
const expectedState = managedTrustState[header.key];
|
|
774
|
+
const removable = expectedState !== undefined &&
|
|
775
|
+
!header.hasInlineComment &&
|
|
776
|
+
isExactlyManagedHookTrustBody(lines.slice(i + 1, tableEnd), expectedState.trusted_hash);
|
|
777
|
+
if (removable) {
|
|
778
|
+
i = tableEnd;
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
if (expectedState !== undefined) {
|
|
782
|
+
preservedConflictKeys.add(header.key);
|
|
783
|
+
}
|
|
784
|
+
kept.push(...lines.slice(i, tableEnd));
|
|
785
|
+
i = tableEnd;
|
|
786
|
+
}
|
|
787
|
+
return { config: kept.join("\n"), preservedConflictKeys };
|
|
788
|
+
}
|
|
789
|
+
function stripManagedCodexHookTrustStateWithResult(config, options = {}) {
|
|
790
|
+
const lines = config.split(/\r?\n/);
|
|
791
|
+
const kept = [];
|
|
792
|
+
for (let i = 0; i < lines.length;) {
|
|
793
|
+
const trimmed = lines[i].trim();
|
|
794
|
+
if (trimmed !== OMX_HOOK_TRUST_START_MARKER) {
|
|
795
|
+
kept.push(lines[i]);
|
|
796
|
+
i += 1;
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
const nextEndIdx = lines.findIndex((line, index) => index > i && line.trim() === OMX_HOOK_TRUST_END_MARKER);
|
|
800
|
+
const nextStartIdx = lines.findIndex((line, index) => index > i && line.trim() === OMX_HOOK_TRUST_START_MARKER);
|
|
801
|
+
if (nextEndIdx === -1 || (nextStartIdx !== -1 && nextStartIdx < nextEndIdx)) {
|
|
802
|
+
kept.push(lines[i]);
|
|
803
|
+
i += 1;
|
|
804
|
+
continue;
|
|
805
|
+
}
|
|
806
|
+
i = nextEndIdx + 1;
|
|
807
|
+
}
|
|
808
|
+
const withoutFenced = kept.join("\n");
|
|
809
|
+
const proofStripped = options.managedTrustState
|
|
810
|
+
? stripProofManagedCodexHookTrustStateTables(withoutFenced, options.managedTrustState)
|
|
811
|
+
: { config: withoutFenced, preservedConflictKeys: new Set() };
|
|
812
|
+
return {
|
|
813
|
+
config: proofStripped.config.replace(/\n{3,}/g, "\n\n").trimEnd(),
|
|
814
|
+
preservedConflictKeys: proofStripped.preservedConflictKeys,
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
export function stripManagedCodexHookTrustState(config, options = {}) {
|
|
818
|
+
return stripManagedCodexHookTrustStateWithResult(config, options).config;
|
|
819
|
+
}
|
|
820
|
+
function renderManagedCodexHookTrustToml(managedTrustState, excludedKeys = new Set()) {
|
|
821
|
+
return Object.entries(managedTrustState)
|
|
822
|
+
.filter(([key]) => !excludedKeys.has(key))
|
|
823
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
824
|
+
.flatMap(([key, hookState]) => [
|
|
825
|
+
`[hooks.state."${escapeTomlBasicString(key)}"]`,
|
|
826
|
+
`trusted_hash = "${escapeTomlBasicString(hookState.trusted_hash)}"`,
|
|
827
|
+
"",
|
|
828
|
+
])
|
|
829
|
+
.join("\n")
|
|
830
|
+
.trimEnd();
|
|
831
|
+
}
|
|
832
|
+
function buildManagedCodexHookTrustStateForConfig(codexHooksFile, pkgRoot, options = {}) {
|
|
833
|
+
if (!codexHooksFile)
|
|
834
|
+
return {};
|
|
835
|
+
return buildManagedCodexHookTrustState(codexHooksFile, pkgRoot, options);
|
|
836
|
+
}
|
|
837
|
+
export function upsertManagedCodexHookTrustState(config, pkgRoot, codexHooksFile, options = {}) {
|
|
838
|
+
const managedTrustState = buildManagedCodexHookTrustStateForConfig(codexHooksFile, pkgRoot, options);
|
|
839
|
+
const strippedResult = stripManagedCodexHookTrustStateWithResult(config, {
|
|
840
|
+
managedTrustState,
|
|
841
|
+
});
|
|
842
|
+
const stripped = strippedResult.config;
|
|
843
|
+
const hookTrustToml = renderManagedCodexHookTrustToml(managedTrustState, strippedResult.preservedConflictKeys);
|
|
844
|
+
if (!hookTrustToml)
|
|
845
|
+
return `${stripped}\n`;
|
|
846
|
+
return [
|
|
847
|
+
stripped,
|
|
848
|
+
"",
|
|
849
|
+
OMX_HOOK_TRUST_START_MARKER,
|
|
850
|
+
"# Trusts only setup-managed native hook wrappers.",
|
|
851
|
+
hookTrustToml,
|
|
852
|
+
OMX_HOOK_TRUST_END_MARKER,
|
|
853
|
+
"",
|
|
854
|
+
].filter((line, index) => index !== 0 || line.length > 0).join("\n");
|
|
855
|
+
}
|
|
856
|
+
export function upsertPluginModeRuntimeFeatureFlags(config, codexHookFeatureFlag = DEFAULT_CODEX_HOOK_FEATURE_FLAG, options = {}) {
|
|
857
|
+
const lines = config.split(/\r?\n/);
|
|
858
|
+
const featuresStart = lines.findIndex((line) => /^\s*\[features\]\s*$/.test(line));
|
|
859
|
+
const hookFeatureFlagLine = options.pluginScopedHooks
|
|
860
|
+
? `${CODEX_PLUGIN_SCOPED_HOOKS_FEATURE_FLAG} = true`
|
|
861
|
+
: formatCodexHookFeatureFlagLine(codexHookFeatureFlag);
|
|
862
|
+
if (featuresStart < 0) {
|
|
863
|
+
const base = config.trimEnd();
|
|
864
|
+
const featureBlock = [
|
|
865
|
+
"[features]",
|
|
866
|
+
hookFeatureFlagLine,
|
|
867
|
+
"goals = true",
|
|
868
|
+
"",
|
|
869
|
+
].join("\n");
|
|
870
|
+
if (base.length === 0) {
|
|
871
|
+
return featureBlock;
|
|
872
|
+
}
|
|
873
|
+
return `${base}\n${featureBlock}`;
|
|
874
|
+
}
|
|
875
|
+
let sectionEnd = lines.length;
|
|
876
|
+
for (let i = featuresStart + 1; i < lines.length; i++) {
|
|
877
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i])) {
|
|
878
|
+
sectionEnd = i;
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
// Remove the misspelled singular flag from unreleased PR builds before
|
|
883
|
+
// upserting the supported plural Codex feature flag.
|
|
884
|
+
for (let i = sectionEnd - 1; i > featuresStart; i--) {
|
|
885
|
+
if (/^\s*goal\s*=/.test(lines[i])) {
|
|
886
|
+
lines.splice(i, 1);
|
|
887
|
+
sectionEnd -= 1;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
({ sectionEnd } = options.pluginScopedHooks
|
|
891
|
+
? upsertPluginScopedHookFeatureFlagInSection(lines, featuresStart, sectionEnd)
|
|
892
|
+
: upsertCodexHookFeatureFlagInSection(lines, featuresStart, sectionEnd, codexHookFeatureFlag));
|
|
893
|
+
let goalsIdx = -1;
|
|
894
|
+
for (let i = featuresStart + 1; i < sectionEnd; i++) {
|
|
895
|
+
if (/^\s*goals\s*=/.test(lines[i])) {
|
|
896
|
+
goalsIdx = i;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
if (goalsIdx >= 0) {
|
|
900
|
+
lines[goalsIdx] = "goals = true";
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
lines.splice(sectionEnd, 0, "goals = true");
|
|
904
|
+
}
|
|
905
|
+
return lines.join("\n");
|
|
906
|
+
}
|
|
907
|
+
function findTomlTableRange(lines, headerPattern) {
|
|
908
|
+
const start = lines.findIndex((line) => headerPattern.test(line));
|
|
909
|
+
if (start < 0)
|
|
910
|
+
return undefined;
|
|
911
|
+
let end = lines.length;
|
|
912
|
+
for (let i = start + 1; i < lines.length; i++) {
|
|
913
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i])) {
|
|
914
|
+
end = i;
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
return { start, end };
|
|
919
|
+
}
|
|
920
|
+
function tomlAssignmentKey(line) {
|
|
921
|
+
return line.match(/^\s*([A-Za-z_][A-Za-z0-9_]*)\s*=/)?.[1];
|
|
922
|
+
}
|
|
923
|
+
function findTomlTableEntryRanges(lines, start, end) {
|
|
924
|
+
const ranges = [];
|
|
925
|
+
let index = start;
|
|
926
|
+
while (index < end) {
|
|
927
|
+
const key = tomlAssignmentKey(lines[index]);
|
|
928
|
+
if (key === undefined) {
|
|
929
|
+
ranges.push({ start: index, end: index + 1 });
|
|
930
|
+
index += 1;
|
|
931
|
+
continue;
|
|
932
|
+
}
|
|
933
|
+
let entryEnd = index + 1;
|
|
934
|
+
while (!parseStandaloneToml(lines.slice(index, entryEnd).join("\n")) &&
|
|
935
|
+
entryEnd < end) {
|
|
936
|
+
entryEnd += 1;
|
|
937
|
+
}
|
|
938
|
+
ranges.push({ key, start: index, end: entryEnd });
|
|
939
|
+
index = entryEnd;
|
|
940
|
+
}
|
|
941
|
+
return ranges;
|
|
942
|
+
}
|
|
943
|
+
function collectTomlTableKeyEntries(lines, range) {
|
|
944
|
+
return findTomlTableEntryRanges(lines, range.start + 1, range.end)
|
|
945
|
+
.filter((entry) => entry.key !== undefined)
|
|
946
|
+
.map((entry) => ({
|
|
947
|
+
key: entry.key,
|
|
948
|
+
lines: lines.slice(entry.start, entry.end),
|
|
949
|
+
}));
|
|
950
|
+
}
|
|
951
|
+
function stripTomlTableKey(lines, headerPattern, keyName) {
|
|
952
|
+
const range = findTomlTableRange(lines, headerPattern);
|
|
953
|
+
if (!range)
|
|
954
|
+
return lines;
|
|
955
|
+
const filtered = [...lines];
|
|
956
|
+
const entries = findTomlTableEntryRanges(filtered, range.start + 1, range.end);
|
|
957
|
+
for (let i = entries.length - 1; i >= 0; i--) {
|
|
958
|
+
const entry = entries[i];
|
|
959
|
+
if (entry.key === keyName) {
|
|
960
|
+
filtered.splice(entry.start, entry.end - entry.start);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
const newRange = findTomlTableRange(filtered, headerPattern);
|
|
964
|
+
if (!newRange)
|
|
965
|
+
return filtered;
|
|
966
|
+
const sectionContent = filtered.slice(newRange.start + 1, newRange.end);
|
|
967
|
+
if (sectionContent.every((line) => line.trim() === "")) {
|
|
968
|
+
filtered.splice(newRange.start, newRange.end - newRange.start);
|
|
969
|
+
}
|
|
970
|
+
return filtered;
|
|
971
|
+
}
|
|
972
|
+
function upsertEnvSettings(config) {
|
|
973
|
+
const lines = config.split(/\r?\n/);
|
|
974
|
+
const legacyEnvRange = findTomlTableRange(lines, /^\s*\[env\]\s*$/);
|
|
975
|
+
const legacyEnvEntries = legacyEnvRange === undefined
|
|
976
|
+
? []
|
|
977
|
+
: collectTomlTableKeyEntries(lines, legacyEnvRange);
|
|
978
|
+
if (legacyEnvRange !== undefined) {
|
|
979
|
+
lines.splice(legacyEnvRange.start, legacyEnvRange.end - legacyEnvRange.start);
|
|
980
|
+
}
|
|
981
|
+
const shellEnvSetRange = findTomlTableRange(lines, /^\s*\[shell_environment_policy\.set\]\s*$/);
|
|
982
|
+
if (shellEnvSetRange === undefined) {
|
|
983
|
+
const base = lines.join("\n").trimEnd();
|
|
984
|
+
const envLines = legacyEnvEntries.flatMap((entry) => entry.lines);
|
|
985
|
+
if (legacyEnvEntries.every((entry) => entry.key !== OMX_EXPLORE_CMD_ENV)) {
|
|
986
|
+
envLines.push(`${OMX_EXPLORE_CMD_ENV} = "${OMX_EXPLORE_ROUTING_DEFAULT}"`);
|
|
987
|
+
}
|
|
988
|
+
const envBlock = [
|
|
989
|
+
"[shell_environment_policy.set]",
|
|
990
|
+
...envLines,
|
|
991
|
+
"",
|
|
992
|
+
].join("\n");
|
|
993
|
+
if (base.length === 0)
|
|
994
|
+
return envBlock;
|
|
995
|
+
return `${base}\n\n${envBlock}`;
|
|
996
|
+
}
|
|
997
|
+
const shellEnvKeys = new Set();
|
|
998
|
+
for (let i = shellEnvSetRange.start + 1; i < shellEnvSetRange.end; i++) {
|
|
999
|
+
const key = tomlAssignmentKey(lines[i]);
|
|
1000
|
+
if (key !== undefined)
|
|
1001
|
+
shellEnvKeys.add(key);
|
|
1002
|
+
}
|
|
1003
|
+
const linesToInsert = [];
|
|
1004
|
+
for (const entry of legacyEnvEntries) {
|
|
1005
|
+
if (!shellEnvKeys.has(entry.key)) {
|
|
1006
|
+
linesToInsert.push(...entry.lines);
|
|
1007
|
+
shellEnvKeys.add(entry.key);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
if (!shellEnvKeys.has(OMX_EXPLORE_CMD_ENV)) {
|
|
1011
|
+
linesToInsert.push(`${OMX_EXPLORE_CMD_ENV} = "${OMX_EXPLORE_ROUTING_DEFAULT}"`);
|
|
1012
|
+
}
|
|
1013
|
+
if (linesToInsert.length > 0) {
|
|
1014
|
+
lines.splice(shellEnvSetRange.end, 0, ...linesToInsert);
|
|
1015
|
+
}
|
|
1016
|
+
return lines.join("\n");
|
|
1017
|
+
}
|
|
1018
|
+
function upsertAgentsSettings(config) {
|
|
1019
|
+
const lines = config.split(/\r?\n/);
|
|
1020
|
+
const agentsStart = lines.findIndex((line) => /^\s*\[agents\]\s*$/.test(line));
|
|
1021
|
+
if (agentsStart < 0) {
|
|
1022
|
+
const base = config.trimEnd();
|
|
1023
|
+
const agentsBlock = [
|
|
1024
|
+
"[agents]",
|
|
1025
|
+
`max_threads = ${OMX_AGENTS_MAX_THREADS}`,
|
|
1026
|
+
`max_depth = ${OMX_AGENTS_MAX_DEPTH}`,
|
|
1027
|
+
"",
|
|
1028
|
+
].join("\n");
|
|
1029
|
+
if (base.length === 0)
|
|
1030
|
+
return agentsBlock;
|
|
1031
|
+
return `${base}\n\n${agentsBlock}`;
|
|
1032
|
+
}
|
|
1033
|
+
let sectionEnd = lines.length;
|
|
1034
|
+
for (let i = agentsStart + 1; i < lines.length; i++) {
|
|
1035
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i])) {
|
|
1036
|
+
sectionEnd = i;
|
|
1037
|
+
break;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
let maxThreadsIdx = -1;
|
|
1041
|
+
let maxDepthIdx = -1;
|
|
1042
|
+
for (let i = agentsStart + 1; i < sectionEnd; i++) {
|
|
1043
|
+
if (/^\s*max_threads\s*=/.test(lines[i])) {
|
|
1044
|
+
maxThreadsIdx = i;
|
|
1045
|
+
}
|
|
1046
|
+
else if (/^\s*max_depth\s*=/.test(lines[i])) {
|
|
1047
|
+
maxDepthIdx = i;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
if (maxThreadsIdx < 0) {
|
|
1051
|
+
lines.splice(sectionEnd, 0, `max_threads = ${OMX_AGENTS_MAX_THREADS}`);
|
|
1052
|
+
sectionEnd += 1;
|
|
1053
|
+
}
|
|
1054
|
+
if (maxDepthIdx < 0) {
|
|
1055
|
+
lines.splice(sectionEnd, 0, `max_depth = ${OMX_AGENTS_MAX_DEPTH}`);
|
|
1056
|
+
}
|
|
1057
|
+
return lines.join("\n");
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Remove OMX-owned feature flags from the [features] section.
|
|
1061
|
+
* If the section becomes empty after removal, remove the section header too.
|
|
1062
|
+
*/
|
|
1063
|
+
export function stripOmxFeatureFlags(config) {
|
|
1064
|
+
const lines = config.split(/\r?\n/);
|
|
1065
|
+
const featuresStart = lines.findIndex((line) => /^\s*\[features\]\s*$/.test(line));
|
|
1066
|
+
if (featuresStart < 0)
|
|
1067
|
+
return config;
|
|
1068
|
+
let sectionEnd = lines.length;
|
|
1069
|
+
for (let i = featuresStart + 1; i < lines.length; i++) {
|
|
1070
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i])) {
|
|
1071
|
+
sectionEnd = i;
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
const omxFlags = [
|
|
1076
|
+
"multi_agent",
|
|
1077
|
+
"child_agents_md",
|
|
1078
|
+
"hooks",
|
|
1079
|
+
"codex_hooks",
|
|
1080
|
+
"goals",
|
|
1081
|
+
"goal",
|
|
1082
|
+
"collab",
|
|
1083
|
+
];
|
|
1084
|
+
const filtered = [];
|
|
1085
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1086
|
+
if (i > featuresStart && i < sectionEnd) {
|
|
1087
|
+
const isOmxFlag = omxFlags.some((f) => new RegExp(`^\\s*${f}\\s*=`).test(lines[i]));
|
|
1088
|
+
if (isOmxFlag)
|
|
1089
|
+
continue;
|
|
1090
|
+
}
|
|
1091
|
+
filtered.push(lines[i]);
|
|
1092
|
+
}
|
|
1093
|
+
// If [features] section is now empty, remove the header too
|
|
1094
|
+
const newFeaturesStart = filtered.findIndex((l) => /^\s*\[features\]\s*$/.test(l));
|
|
1095
|
+
if (newFeaturesStart >= 0) {
|
|
1096
|
+
let newSectionEnd = filtered.length;
|
|
1097
|
+
for (let i = newFeaturesStart + 1; i < filtered.length; i++) {
|
|
1098
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(filtered[i])) {
|
|
1099
|
+
newSectionEnd = i;
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
const sectionContent = filtered.slice(newFeaturesStart + 1, newSectionEnd);
|
|
1104
|
+
if (sectionContent.every((l) => l.trim() === "")) {
|
|
1105
|
+
filtered.splice(newFeaturesStart, newSectionEnd - newFeaturesStart);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
return filtered.join("\n");
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Preserve native Codex hook enablement without re-adding other OMX feature
|
|
1112
|
+
* flags. Used by uninstall when user-owned hooks remain in hooks.json.
|
|
1113
|
+
*/
|
|
1114
|
+
export function upsertCodexHooksFeatureFlag(config, codexHookFeatureFlag = DEFAULT_CODEX_HOOK_FEATURE_FLAG) {
|
|
1115
|
+
const lines = config.split(/\r?\n/);
|
|
1116
|
+
const featuresStart = lines.findIndex((line) => /^\s*\[features\]\s*$/.test(line));
|
|
1117
|
+
const hookFeatureFlagLine = formatCodexHookFeatureFlagLine(codexHookFeatureFlag);
|
|
1118
|
+
if (featuresStart < 0) {
|
|
1119
|
+
const base = config.trimEnd();
|
|
1120
|
+
const featureBlock = ["[features]", hookFeatureFlagLine, ""].join("\n");
|
|
1121
|
+
return base.length === 0 ? featureBlock : `${base}\n${featureBlock}`;
|
|
1122
|
+
}
|
|
1123
|
+
let sectionEnd = lines.length;
|
|
1124
|
+
for (let i = featuresStart + 1; i < lines.length; i++) {
|
|
1125
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i])) {
|
|
1126
|
+
sectionEnd = i;
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
upsertCodexHookFeatureFlagInSection(lines, featuresStart, sectionEnd, codexHookFeatureFlag);
|
|
1131
|
+
return lines.join("\n");
|
|
1132
|
+
}
|
|
1133
|
+
export function stripOmxEnvSettings(config) {
|
|
1134
|
+
let lines = config.split(/\r?\n/);
|
|
1135
|
+
lines = stripTomlTableKey(lines, /^\s*\[env\]\s*$/, OMX_EXPLORE_CMD_ENV);
|
|
1136
|
+
lines = stripTomlTableKey(lines, /^\s*\[shell_environment_policy\.set\]\s*$/, OMX_EXPLORE_CMD_ENV);
|
|
1137
|
+
return lines.join("\n");
|
|
1138
|
+
}
|
|
1139
|
+
// ---------------------------------------------------------------------------
|
|
1140
|
+
// Orphaned OMX table sections (no marker block)
|
|
1141
|
+
// ---------------------------------------------------------------------------
|
|
1142
|
+
/**
|
|
1143
|
+
* Check whether a TOML table name belongs to a legacy OMX-managed agent entry.
|
|
1144
|
+
* Handles both `agents.name` and `agents."name"` forms.
|
|
1145
|
+
*/
|
|
1146
|
+
function isOmxFirstPartyMcpSection(tableName) {
|
|
1147
|
+
const match = tableName.match(/^mcp_servers\.(?:"([^"]+)"|([A-Za-z0-9_-]+))$/);
|
|
1148
|
+
const name = match?.[1] ?? match?.[2];
|
|
1149
|
+
return Boolean(name &&
|
|
1150
|
+
(OMX_FIRST_PARTY_MCP_SERVER_NAMES.includes(name) ||
|
|
1151
|
+
name === "omx_team_run"));
|
|
1152
|
+
}
|
|
1153
|
+
function isLegacyOmxAgentSection(tableName) {
|
|
1154
|
+
const m = tableName.match(/^agents\.(?:"([^"]+)"|(\w[\w-]*))$/);
|
|
1155
|
+
if (!m)
|
|
1156
|
+
return false;
|
|
1157
|
+
const name = m[1] || m[2] || "";
|
|
1158
|
+
return Object.prototype.hasOwnProperty.call(AGENT_DEFINITIONS, name);
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Strip OMX-owned table sections that exist outside the marker block.
|
|
1162
|
+
* This covers legacy configs that were written before markers were added,
|
|
1163
|
+
* or configs where the marker was accidentally removed.
|
|
1164
|
+
*
|
|
1165
|
+
* Targets: exact first-party [mcp_servers.<name>] entries, retired
|
|
1166
|
+
* [mcp_servers.omx_team_run], and legacy [agents.<name>] entries.
|
|
1167
|
+
*/
|
|
1168
|
+
function stripOrphanedOmxSections(config) {
|
|
1169
|
+
const lines = config.split(/\r?\n/);
|
|
1170
|
+
const result = [];
|
|
1171
|
+
let i = 0;
|
|
1172
|
+
while (i < lines.length) {
|
|
1173
|
+
const line = lines[i];
|
|
1174
|
+
const tableMatch = line.match(/^\s*\[([^\]]+)\]\s*$/);
|
|
1175
|
+
if (tableMatch) {
|
|
1176
|
+
const tableName = tableMatch[1];
|
|
1177
|
+
// Note: [tui] is NOT stripped here because it could be user-owned.
|
|
1178
|
+
// The marker-based stripExistingOmxBlocks already handles [tui]
|
|
1179
|
+
// when it lives inside the OMX marker block.
|
|
1180
|
+
const isOmxSection = isOmxFirstPartyMcpSection(tableName) ||
|
|
1181
|
+
isLegacyOmxAgentSection(tableName);
|
|
1182
|
+
if (isOmxSection) {
|
|
1183
|
+
// Remove preceding OMX comment lines and blank lines
|
|
1184
|
+
while (result.length > 0) {
|
|
1185
|
+
const last = result[result.length - 1];
|
|
1186
|
+
if (last.trim() === "" || /^#\s*(OMX|oh-my-codex)/i.test(last)) {
|
|
1187
|
+
result.pop();
|
|
1188
|
+
}
|
|
1189
|
+
else {
|
|
1190
|
+
break;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
// Skip table header + all key=value / comment / blank lines until next section
|
|
1194
|
+
i++;
|
|
1195
|
+
while (i < lines.length && !/^\s*\[/.test(lines[i])) {
|
|
1196
|
+
i++;
|
|
1197
|
+
}
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
result.push(line);
|
|
1202
|
+
i++;
|
|
1203
|
+
}
|
|
1204
|
+
return result.join("\n");
|
|
1205
|
+
}
|
|
1206
|
+
export function hasFirstPartyOmxMcpRegistrations(config) {
|
|
1207
|
+
const firstPartyNames = new Set([
|
|
1208
|
+
...OMX_FIRST_PARTY_MCP_SERVER_NAMES,
|
|
1209
|
+
"omx_team_run",
|
|
1210
|
+
]);
|
|
1211
|
+
for (const line of config.split(/\r?\n/)) {
|
|
1212
|
+
const match = line.match(/^\s*\[mcp_servers\.(?:"([^"]+)"|([A-Za-z0-9_-]+))\]\s*$/);
|
|
1213
|
+
const name = match?.[1] ?? match?.[2];
|
|
1214
|
+
if (name && firstPartyNames.has(name))
|
|
1215
|
+
return true;
|
|
1216
|
+
}
|
|
1217
|
+
return false;
|
|
1218
|
+
}
|
|
1219
|
+
export function extractFirstPartyOmxMcpSections(config) {
|
|
1220
|
+
const lines = config.split(/\r?\n/);
|
|
1221
|
+
const sections = [];
|
|
1222
|
+
let i = 0;
|
|
1223
|
+
while (i < lines.length) {
|
|
1224
|
+
const tableMatch = lines[i].match(/^\s*\[([^\]]+)\]\s*$/);
|
|
1225
|
+
if (!tableMatch || !isOmxFirstPartyMcpSection(tableMatch[1])) {
|
|
1226
|
+
i += 1;
|
|
1227
|
+
continue;
|
|
1228
|
+
}
|
|
1229
|
+
const sectionLines = [];
|
|
1230
|
+
sectionLines.push(lines[i]);
|
|
1231
|
+
i += 1;
|
|
1232
|
+
while (i < lines.length && !/^\s*\[/.test(lines[i])) {
|
|
1233
|
+
sectionLines.push(lines[i]);
|
|
1234
|
+
i += 1;
|
|
1235
|
+
}
|
|
1236
|
+
sections.push(sectionLines.join("\n").trimEnd());
|
|
1237
|
+
}
|
|
1238
|
+
return sections.filter(Boolean).join("\n\n");
|
|
1239
|
+
}
|
|
1240
|
+
export function stripFirstPartyOmxMcpSections(config) {
|
|
1241
|
+
const lines = config.split(/\r?\n/);
|
|
1242
|
+
const result = [];
|
|
1243
|
+
for (let index = 0; index < lines.length;) {
|
|
1244
|
+
const tableMatch = lines[index].match(/^\s*\[([^\]]+)\]\s*$/);
|
|
1245
|
+
if (tableMatch && isOmxFirstPartyMcpSection(tableMatch[1])) {
|
|
1246
|
+
index += 1;
|
|
1247
|
+
while (index < lines.length && !/^\s*\[/.test(lines[index])) {
|
|
1248
|
+
index += 1;
|
|
1249
|
+
}
|
|
1250
|
+
continue;
|
|
1251
|
+
}
|
|
1252
|
+
result.push(lines[index]);
|
|
1253
|
+
index += 1;
|
|
1254
|
+
}
|
|
1255
|
+
return result.join("\n").replace(/\n{3,}/g, "\n\n").trimEnd();
|
|
1256
|
+
}
|
|
1257
|
+
function extractCustomizedTuiSectionsFromOmxBlocks(config) {
|
|
1258
|
+
const sections = [];
|
|
1259
|
+
let searchStart = 0;
|
|
1260
|
+
while (true) {
|
|
1261
|
+
const markerIdx = config.indexOf(OMX_CONFIG_MARKER, searchStart);
|
|
1262
|
+
if (markerIdx < 0)
|
|
1263
|
+
break;
|
|
1264
|
+
const endIdx = config.indexOf(OMX_CONFIG_END_MARKER, markerIdx);
|
|
1265
|
+
if (endIdx < 0)
|
|
1266
|
+
break;
|
|
1267
|
+
const blockLines = config.slice(markerIdx, endIdx).split(/\r?\n/);
|
|
1268
|
+
for (let i = 0; i < blockLines.length; i++) {
|
|
1269
|
+
if (!/^\s*\[tui\]\s*$/.test(blockLines[i]))
|
|
1270
|
+
continue;
|
|
1271
|
+
const tuiLines = [blockLines[i].trim()];
|
|
1272
|
+
let hasCustomizedStatusLine = false;
|
|
1273
|
+
let lastNonBlankBeforeStatusLine;
|
|
1274
|
+
for (let j = i + 1; j < blockLines.length; j++) {
|
|
1275
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(blockLines[j]))
|
|
1276
|
+
break;
|
|
1277
|
+
const trimmed = blockLines[j].trim();
|
|
1278
|
+
if (!trimmed)
|
|
1279
|
+
continue;
|
|
1280
|
+
tuiLines.push(trimmed);
|
|
1281
|
+
if (/^status_line\s*=/.test(trimmed)) {
|
|
1282
|
+
// OMX-managed when:
|
|
1283
|
+
// 1. Preceded by the managed-status-line marker AND the value is
|
|
1284
|
+
// a known OMX preset literal (post-marker installs). If the
|
|
1285
|
+
// marker is present but the value isn't a preset, the user
|
|
1286
|
+
// edited the value and left the marker — treat as customized.
|
|
1287
|
+
// 2. No marker but the value byte-matches the legacy seven-field
|
|
1288
|
+
// default (pre-marker installs only ever shipped focused).
|
|
1289
|
+
// Anything else inside an OMX-marker block is treated as a user
|
|
1290
|
+
// customization and preserved across rebuild.
|
|
1291
|
+
const hasMarker = lastNonBlankBeforeStatusLine === OMX_MANAGED_STATUS_LINE_MARKER;
|
|
1292
|
+
const matchesPreset = OMX_PRESET_STATUS_LINE_VALUES.has(trimmed);
|
|
1293
|
+
const isManagedByMarker = hasMarker && matchesPreset;
|
|
1294
|
+
const isManagedByLegacyValue = !hasMarker && trimmed === LEGACY_OMX_STATUS_LINE;
|
|
1295
|
+
if (!isManagedByMarker && !isManagedByLegacyValue) {
|
|
1296
|
+
hasCustomizedStatusLine = true;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
lastNonBlankBeforeStatusLine = trimmed;
|
|
1300
|
+
}
|
|
1301
|
+
if (hasCustomizedStatusLine) {
|
|
1302
|
+
sections.push(tuiLines.join("\n"));
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
searchStart = endIdx + OMX_CONFIG_END_MARKER.length;
|
|
1306
|
+
}
|
|
1307
|
+
return sections;
|
|
1308
|
+
}
|
|
1309
|
+
function upsertTuiStatusLine(config, preset = DEFAULT_STATUS_LINE_PRESET, options = {}) {
|
|
1310
|
+
const lines = config.split(/\r?\n/);
|
|
1311
|
+
const sections = [];
|
|
1312
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1313
|
+
if (!/^\s*\[tui\]\s*$/.test(lines[i]))
|
|
1314
|
+
continue;
|
|
1315
|
+
let end = lines.length;
|
|
1316
|
+
for (let j = i + 1; j < lines.length; j++) {
|
|
1317
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[j])) {
|
|
1318
|
+
end = j;
|
|
1319
|
+
break;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
sections.push({ start: i, end });
|
|
1323
|
+
i = end - 1;
|
|
1324
|
+
}
|
|
1325
|
+
if (sections.length === 0) {
|
|
1326
|
+
return { cleaned: config, hadExistingTui: false };
|
|
1327
|
+
}
|
|
1328
|
+
const preservedKeyLines = [];
|
|
1329
|
+
const seenKeys = new Set();
|
|
1330
|
+
let preservedStatusLine;
|
|
1331
|
+
for (const section of sections) {
|
|
1332
|
+
let lastNonBlankBeforeStatusLine;
|
|
1333
|
+
for (let i = section.start + 1; i < section.end; i++) {
|
|
1334
|
+
const line = lines[i];
|
|
1335
|
+
const trimmed = line.trim();
|
|
1336
|
+
if (!trimmed)
|
|
1337
|
+
continue;
|
|
1338
|
+
if (trimmed.startsWith("#")) {
|
|
1339
|
+
lastNonBlankBeforeStatusLine = trimmed;
|
|
1340
|
+
continue;
|
|
1341
|
+
}
|
|
1342
|
+
const keyMatch = trimmed.match(/^([A-Za-z0-9_-]+)\s*=/);
|
|
1343
|
+
if (!keyMatch) {
|
|
1344
|
+
lastNonBlankBeforeStatusLine = trimmed;
|
|
1345
|
+
continue;
|
|
1346
|
+
}
|
|
1347
|
+
const key = keyMatch[1];
|
|
1348
|
+
if (key === "status_line") {
|
|
1349
|
+
const entryLines = [trimmed];
|
|
1350
|
+
while (!parseStandaloneToml(entryLines.join("\n")) &&
|
|
1351
|
+
i + 1 < section.end) {
|
|
1352
|
+
i += 1;
|
|
1353
|
+
entryLines.push(lines[i].trim());
|
|
1354
|
+
}
|
|
1355
|
+
const statusLineEntry = entryLines.join("\n");
|
|
1356
|
+
const hasMarker = lastNonBlankBeforeStatusLine === OMX_MANAGED_STATUS_LINE_MARKER;
|
|
1357
|
+
const isManagedByMarker = hasMarker && OMX_PRESET_STATUS_LINE_VALUES.has(statusLineEntry);
|
|
1358
|
+
const isManagedByLegacyValue = !hasMarker && statusLineEntry === LEGACY_OMX_STATUS_LINE;
|
|
1359
|
+
const isOmxManagedStatusLine = isManagedByMarker || isManagedByLegacyValue;
|
|
1360
|
+
if (!options.forceStatusLinePreset || !isOmxManagedStatusLine) {
|
|
1361
|
+
preservedStatusLine ??= statusLineEntry;
|
|
1362
|
+
}
|
|
1363
|
+
lastNonBlankBeforeStatusLine = statusLineEntry;
|
|
1364
|
+
continue;
|
|
1365
|
+
}
|
|
1366
|
+
if (seenKeys.has(key)) {
|
|
1367
|
+
lastNonBlankBeforeStatusLine = trimmed;
|
|
1368
|
+
continue;
|
|
1369
|
+
}
|
|
1370
|
+
seenKeys.add(key);
|
|
1371
|
+
preservedKeyLines.push(trimmed);
|
|
1372
|
+
lastNonBlankBeforeStatusLine = trimmed;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
// When OMX is supplying the status_line (no user-preserved value),
|
|
1376
|
+
// emit the managed-status-line marker comment alongside it so the
|
|
1377
|
+
// customized-section detector can unambiguously tell our writes apart
|
|
1378
|
+
// from a user edit on the next merge.
|
|
1379
|
+
const mergedSection = preservedStatusLine
|
|
1380
|
+
? ["[tui]", ...preservedKeyLines, preservedStatusLine]
|
|
1381
|
+
: [
|
|
1382
|
+
"[tui]",
|
|
1383
|
+
...preservedKeyLines,
|
|
1384
|
+
OMX_MANAGED_STATUS_LINE_MARKER,
|
|
1385
|
+
statusLineForPreset(preset),
|
|
1386
|
+
];
|
|
1387
|
+
const firstStart = sections[0].start;
|
|
1388
|
+
const rebuilt = [];
|
|
1389
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1390
|
+
const section = sections.find((candidate) => candidate.start === i);
|
|
1391
|
+
if (section) {
|
|
1392
|
+
if (i === firstStart) {
|
|
1393
|
+
if (rebuilt.length > 0 && rebuilt[rebuilt.length - 1].trim() !== "") {
|
|
1394
|
+
rebuilt.push("");
|
|
1395
|
+
}
|
|
1396
|
+
rebuilt.push(...mergedSection, "");
|
|
1397
|
+
}
|
|
1398
|
+
i = section.end - 1;
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
rebuilt.push(lines[i]);
|
|
1402
|
+
}
|
|
1403
|
+
return {
|
|
1404
|
+
cleaned: rebuilt.join("\n").replace(/\n{3,}/g, "\n\n"),
|
|
1405
|
+
hadExistingTui: true,
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
// ---------------------------------------------------------------------------
|
|
1409
|
+
// OMX [table] sections block (appended at end of file)
|
|
1410
|
+
// ---------------------------------------------------------------------------
|
|
1411
|
+
export function stripExistingOmxBlocks(config) {
|
|
1412
|
+
let cleaned = config;
|
|
1413
|
+
let removed = 0;
|
|
1414
|
+
while (true) {
|
|
1415
|
+
const markerIdx = cleaned.indexOf(OMX_CONFIG_MARKER);
|
|
1416
|
+
if (markerIdx < 0)
|
|
1417
|
+
break;
|
|
1418
|
+
let blockStart = cleaned.lastIndexOf("\n", markerIdx);
|
|
1419
|
+
blockStart = blockStart >= 0 ? blockStart + 1 : 0;
|
|
1420
|
+
const previousLineEnd = blockStart - 1;
|
|
1421
|
+
if (previousLineEnd >= 0) {
|
|
1422
|
+
const previousLineStart = cleaned.lastIndexOf("\n", previousLineEnd - 1);
|
|
1423
|
+
const previousLine = cleaned.slice(previousLineStart + 1, previousLineEnd);
|
|
1424
|
+
if (/^# =+$/.test(previousLine.trim())) {
|
|
1425
|
+
blockStart = previousLineStart >= 0 ? previousLineStart + 1 : 0;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
let blockEnd = cleaned.length;
|
|
1429
|
+
const endIdx = cleaned.indexOf(OMX_CONFIG_END_MARKER, markerIdx);
|
|
1430
|
+
if (endIdx >= 0) {
|
|
1431
|
+
const endLineBreak = cleaned.indexOf("\n", endIdx);
|
|
1432
|
+
blockEnd = endLineBreak >= 0 ? endLineBreak + 1 : cleaned.length;
|
|
1433
|
+
}
|
|
1434
|
+
const before = cleaned.slice(0, blockStart).trimEnd();
|
|
1435
|
+
const after = cleaned.slice(blockEnd).trimStart();
|
|
1436
|
+
cleaned = [before, after].filter(Boolean).join("\n\n");
|
|
1437
|
+
removed += 1;
|
|
1438
|
+
}
|
|
1439
|
+
return { cleaned, removed };
|
|
1440
|
+
}
|
|
1441
|
+
export function stripExistingSharedMcpRegistryBlock(config) {
|
|
1442
|
+
let cleaned = config;
|
|
1443
|
+
let removed = 0;
|
|
1444
|
+
while (true) {
|
|
1445
|
+
const markerIdx = cleaned.indexOf(SHARED_MCP_REGISTRY_MARKER);
|
|
1446
|
+
if (markerIdx < 0)
|
|
1447
|
+
break;
|
|
1448
|
+
let blockStart = cleaned.lastIndexOf("\n", markerIdx);
|
|
1449
|
+
blockStart = blockStart >= 0 ? blockStart + 1 : 0;
|
|
1450
|
+
const previousLineEnd = blockStart - 1;
|
|
1451
|
+
if (previousLineEnd >= 0) {
|
|
1452
|
+
const previousLineStart = cleaned.lastIndexOf("\n", previousLineEnd - 1);
|
|
1453
|
+
const previousLine = cleaned.slice(previousLineStart + 1, previousLineEnd);
|
|
1454
|
+
if (/^# =+$/.test(previousLine.trim())) {
|
|
1455
|
+
blockStart = previousLineStart >= 0 ? previousLineStart + 1 : 0;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
let blockEnd = cleaned.length;
|
|
1459
|
+
const endIdx = cleaned.indexOf(SHARED_MCP_REGISTRY_END_MARKER, markerIdx);
|
|
1460
|
+
if (endIdx >= 0) {
|
|
1461
|
+
const endLineBreak = cleaned.indexOf("\n", endIdx);
|
|
1462
|
+
blockEnd = endLineBreak >= 0 ? endLineBreak + 1 : cleaned.length;
|
|
1463
|
+
}
|
|
1464
|
+
const before = cleaned.slice(0, blockStart).trimEnd();
|
|
1465
|
+
const after = cleaned.slice(blockEnd).trimStart();
|
|
1466
|
+
cleaned = [before, after].filter(Boolean).join("\n\n");
|
|
1467
|
+
removed += 1;
|
|
1468
|
+
}
|
|
1469
|
+
return { cleaned, removed };
|
|
1470
|
+
}
|
|
1471
|
+
function getExistingSharedMcpRegistryBlocks(config) {
|
|
1472
|
+
const blocks = [];
|
|
1473
|
+
let cursor = 0;
|
|
1474
|
+
while (cursor < config.length) {
|
|
1475
|
+
const markerIdx = config.indexOf(SHARED_MCP_REGISTRY_MARKER, cursor);
|
|
1476
|
+
if (markerIdx < 0)
|
|
1477
|
+
break;
|
|
1478
|
+
let blockStart = config.lastIndexOf("\n", markerIdx);
|
|
1479
|
+
blockStart = blockStart >= 0 ? blockStart + 1 : 0;
|
|
1480
|
+
const previousLineEnd = blockStart - 1;
|
|
1481
|
+
if (previousLineEnd >= 0) {
|
|
1482
|
+
const previousLineStart = config.lastIndexOf("\n", previousLineEnd - 1);
|
|
1483
|
+
const previousLine = config.slice(previousLineStart + 1, previousLineEnd);
|
|
1484
|
+
if (/^# =+$/.test(previousLine.trim())) {
|
|
1485
|
+
blockStart = previousLineStart >= 0 ? previousLineStart + 1 : 0;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
let blockEnd = config.length;
|
|
1489
|
+
const endIdx = config.indexOf(SHARED_MCP_REGISTRY_END_MARKER, markerIdx);
|
|
1490
|
+
if (endIdx >= 0) {
|
|
1491
|
+
const endLineBreak = config.indexOf("\n", endIdx);
|
|
1492
|
+
blockEnd = endLineBreak >= 0 ? endLineBreak + 1 : config.length;
|
|
1493
|
+
}
|
|
1494
|
+
blocks.push(config.slice(blockStart, blockEnd));
|
|
1495
|
+
cursor = blockEnd;
|
|
1496
|
+
}
|
|
1497
|
+
return blocks;
|
|
1498
|
+
}
|
|
1499
|
+
export function extractSharedMcpRegistryServersFromConfig(config) {
|
|
1500
|
+
const servers = [];
|
|
1501
|
+
let sourcePath;
|
|
1502
|
+
for (const block of getExistingSharedMcpRegistryBlocks(config)) {
|
|
1503
|
+
sourcePath ??= block.match(/^# Source:\s*(.+?)\s*$/m)?.[1];
|
|
1504
|
+
let parsed;
|
|
1505
|
+
try {
|
|
1506
|
+
parsed = TOML.parse(block);
|
|
1507
|
+
}
|
|
1508
|
+
catch {
|
|
1509
|
+
continue;
|
|
1510
|
+
}
|
|
1511
|
+
if (!isRecord(parsed) || !isRecord(parsed.mcp_servers))
|
|
1512
|
+
continue;
|
|
1513
|
+
for (const [name, value] of Object.entries(parsed.mcp_servers)) {
|
|
1514
|
+
if (!isRecord(value) || typeof value.command !== "string")
|
|
1515
|
+
continue;
|
|
1516
|
+
const args = Array.isArray(value.args)
|
|
1517
|
+
? value.args.filter((arg) => typeof arg === "string")
|
|
1518
|
+
: [];
|
|
1519
|
+
const enabled = typeof value.enabled === "boolean" ? value.enabled : true;
|
|
1520
|
+
const timeoutCandidate = typeof value.startup_timeout_sec === "number"
|
|
1521
|
+
? value.startup_timeout_sec
|
|
1522
|
+
: value.startupTimeoutSec;
|
|
1523
|
+
const startupTimeoutSec = typeof timeoutCandidate === "number" && Number.isFinite(timeoutCandidate)
|
|
1524
|
+
? timeoutCandidate
|
|
1525
|
+
: undefined;
|
|
1526
|
+
servers.push({
|
|
1527
|
+
name,
|
|
1528
|
+
command: value.command,
|
|
1529
|
+
args,
|
|
1530
|
+
enabled,
|
|
1531
|
+
...(startupTimeoutSec !== undefined ? { startupTimeoutSec } : {}),
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
return { servers, sourcePath };
|
|
1536
|
+
}
|
|
1537
|
+
function toMcpServerTableKey(name) {
|
|
1538
|
+
if (/^[A-Za-z0-9_-]+$/.test(name)) {
|
|
1539
|
+
return `mcp_servers.${name}`;
|
|
1540
|
+
}
|
|
1541
|
+
return `mcp_servers."${escapeTomlString(name)}"`;
|
|
1542
|
+
}
|
|
1543
|
+
function configHasMcpServer(config, name) {
|
|
1544
|
+
const tableName = toMcpServerTableKey(name).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1545
|
+
return new RegExp(`^\\s*\\[${tableName}\\]\\s*$`, "m").test(config);
|
|
1546
|
+
}
|
|
1547
|
+
function launcherCommandBasename(command) {
|
|
1548
|
+
return (command.replace(/\\/g, "/").trim().split("/").pop()?.toLowerCase() ?? "");
|
|
1549
|
+
}
|
|
1550
|
+
function isLauncherBackedMcpCommand(command, args) {
|
|
1551
|
+
const base = launcherCommandBasename(command);
|
|
1552
|
+
if (base === "npx" || base === "uvx") {
|
|
1553
|
+
return true;
|
|
1554
|
+
}
|
|
1555
|
+
return base === "npm" && args[0]?.toLowerCase() === "exec";
|
|
1556
|
+
}
|
|
1557
|
+
function findLauncherTimeoutRepairTargets(config) {
|
|
1558
|
+
const lines = config.split(/\r?\n/);
|
|
1559
|
+
const targets = [];
|
|
1560
|
+
for (let start = 0; start < lines.length; start += 1) {
|
|
1561
|
+
const isMcpSection = /^\s*\[mcp_servers\./.test(lines[start] ?? "");
|
|
1562
|
+
if (!isMcpSection)
|
|
1563
|
+
continue;
|
|
1564
|
+
let end = lines.length;
|
|
1565
|
+
for (let i = start + 1; i < lines.length; i += 1) {
|
|
1566
|
+
if (/^\s*\[\[?[^\]]+\]?\]\s*$/.test(lines[i] ?? "")) {
|
|
1567
|
+
end = i;
|
|
1568
|
+
break;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
let parsed;
|
|
1572
|
+
try {
|
|
1573
|
+
parsed = TOML.parse(lines.slice(start, end).join("\n"));
|
|
1574
|
+
}
|
|
1575
|
+
catch {
|
|
1576
|
+
start = end - 1;
|
|
1577
|
+
continue;
|
|
1578
|
+
}
|
|
1579
|
+
const mcpServers = parsed
|
|
1580
|
+
.mcp_servers;
|
|
1581
|
+
const [name, value] = Object.entries(mcpServers ?? {})[0] ?? [];
|
|
1582
|
+
if (!name ||
|
|
1583
|
+
name.startsWith("omx_") ||
|
|
1584
|
+
typeof value !== "object" ||
|
|
1585
|
+
!value) {
|
|
1586
|
+
start = end - 1;
|
|
1587
|
+
continue;
|
|
1588
|
+
}
|
|
1589
|
+
const section = value;
|
|
1590
|
+
const command = typeof section.command === "string" ? section.command : undefined;
|
|
1591
|
+
const args = Array.isArray(section.args) &&
|
|
1592
|
+
section.args.every((item) => typeof item === "string")
|
|
1593
|
+
? section.args
|
|
1594
|
+
: [];
|
|
1595
|
+
const hasStartupTimeout = (typeof section.startup_timeout_sec === "number" &&
|
|
1596
|
+
Number.isFinite(section.startup_timeout_sec)) ||
|
|
1597
|
+
(typeof section.startupTimeoutSec === "number" &&
|
|
1598
|
+
Number.isFinite(section.startupTimeoutSec));
|
|
1599
|
+
if (!command ||
|
|
1600
|
+
hasStartupTimeout ||
|
|
1601
|
+
!isLauncherBackedMcpCommand(command, args)) {
|
|
1602
|
+
start = end - 1;
|
|
1603
|
+
continue;
|
|
1604
|
+
}
|
|
1605
|
+
let insertAt = end;
|
|
1606
|
+
while (insertAt > start + 1 && (lines[insertAt - 1] ?? "").trim() === "") {
|
|
1607
|
+
insertAt -= 1;
|
|
1608
|
+
}
|
|
1609
|
+
targets.push({ insertAt });
|
|
1610
|
+
start = end - 1;
|
|
1611
|
+
}
|
|
1612
|
+
return targets;
|
|
1613
|
+
}
|
|
1614
|
+
function addDefaultLauncherMcpStartupTimeouts(config) {
|
|
1615
|
+
const targets = findLauncherTimeoutRepairTargets(config);
|
|
1616
|
+
if (targets.length === 0)
|
|
1617
|
+
return config;
|
|
1618
|
+
const lines = config.split(/\r?\n/);
|
|
1619
|
+
for (const target of [...targets].reverse()) {
|
|
1620
|
+
lines.splice(target.insertAt, 0, `startup_timeout_sec = ${DEFAULT_LAUNCHER_MCP_STARTUP_TIMEOUT_SEC}`);
|
|
1621
|
+
}
|
|
1622
|
+
return lines.join("\n");
|
|
1623
|
+
}
|
|
1624
|
+
function getSharedMcpRegistryBlock(servers, sourcePath, existingConfig) {
|
|
1625
|
+
if (servers.length === 0)
|
|
1626
|
+
return "";
|
|
1627
|
+
const deduped = servers.filter((server) => !configHasMcpServer(existingConfig, server.name));
|
|
1628
|
+
if (deduped.length === 0)
|
|
1629
|
+
return "";
|
|
1630
|
+
const lines = [
|
|
1631
|
+
"# ============================================================",
|
|
1632
|
+
`# ${SHARED_MCP_REGISTRY_MARKER}`,
|
|
1633
|
+
"# Managed by omx setup - edit the registry file instead",
|
|
1634
|
+
];
|
|
1635
|
+
if (sourcePath) {
|
|
1636
|
+
lines.push(`# Source: ${sourcePath}`);
|
|
1637
|
+
}
|
|
1638
|
+
lines.push("# ============================================================", "");
|
|
1639
|
+
for (const server of deduped) {
|
|
1640
|
+
lines.push(`# Shared MCP Server: ${server.name}`);
|
|
1641
|
+
lines.push(`[${toMcpServerTableKey(server.name)}]`);
|
|
1642
|
+
lines.push(`command = "${escapeTomlString(server.command)}"`);
|
|
1643
|
+
lines.push(`args = [${server.args
|
|
1644
|
+
.map((arg) => `"${escapeTomlString(arg)}"`)
|
|
1645
|
+
.join(", ")}]`);
|
|
1646
|
+
lines.push(`enabled = ${server.enabled ? "true" : "false"}`);
|
|
1647
|
+
if (typeof server.startupTimeoutSec === "number") {
|
|
1648
|
+
lines.push(`startup_timeout_sec = ${server.startupTimeoutSec}`);
|
|
1649
|
+
}
|
|
1650
|
+
lines.push("");
|
|
1651
|
+
}
|
|
1652
|
+
lines.push("# ============================================================");
|
|
1653
|
+
lines.push(SHARED_MCP_REGISTRY_END_MARKER);
|
|
1654
|
+
return lines.join("\n");
|
|
1655
|
+
}
|
|
1656
|
+
export function mergeSharedMcpRegistryBlock(config, servers, sourcePath) {
|
|
1657
|
+
const stripped = stripExistingSharedMcpRegistryBlock(config);
|
|
1658
|
+
const existing = stripped.cleaned;
|
|
1659
|
+
const sharedRegistryBlock = getSharedMcpRegistryBlock(servers, sourcePath, existing);
|
|
1660
|
+
const body = existing.trimEnd();
|
|
1661
|
+
const merged = sharedRegistryBlock
|
|
1662
|
+
? body
|
|
1663
|
+
? `${body}\n\n${sharedRegistryBlock}\n`
|
|
1664
|
+
: `${sharedRegistryBlock}\n`
|
|
1665
|
+
: body
|
|
1666
|
+
? `${body}\n`
|
|
1667
|
+
: "";
|
|
1668
|
+
return addDefaultLauncherMcpStartupTimeouts(merged);
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* OMX table-section block (MCP servers, TUI).
|
|
1672
|
+
* Contains ONLY [table] sections — no bare keys.
|
|
1673
|
+
*/
|
|
1674
|
+
function getOmxTablesBlock(pkgRoot, includeTui = true, statusLinePreset = DEFAULT_STATUS_LINE_PRESET, codexHooksFile, hookOptions = {}, includeFirstPartyMcp = false, excludedHookTrustStateKeys = new Set()) {
|
|
1675
|
+
const lines = [
|
|
1676
|
+
"",
|
|
1677
|
+
"# ============================================================",
|
|
1678
|
+
"# oh-my-codex (OMX) Configuration",
|
|
1679
|
+
"# Managed by omx setup - manual edits preserved on next setup",
|
|
1680
|
+
"# ============================================================",
|
|
1681
|
+
];
|
|
1682
|
+
if (includeFirstPartyMcp) {
|
|
1683
|
+
for (const server of getOmxFirstPartySetupMcpServers(pkgRoot)) {
|
|
1684
|
+
lines.push("");
|
|
1685
|
+
lines.push(server.title);
|
|
1686
|
+
lines.push(`[mcp_servers.${server.name}]`);
|
|
1687
|
+
lines.push(`command = "${escapeTomlString(server.command)}"`);
|
|
1688
|
+
lines.push(`args = [${server.args
|
|
1689
|
+
.map((arg) => `"${escapeTomlString(arg)}"`)
|
|
1690
|
+
.join(", ")}]`);
|
|
1691
|
+
lines.push(`enabled = ${server.enabled ? "true" : "false"}`);
|
|
1692
|
+
if (typeof server.startupTimeoutSec === "number") {
|
|
1693
|
+
lines.push(`startup_timeout_sec = ${server.startupTimeoutSec}`);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
const hookTrustToml = renderManagedCodexHookTrustToml(buildManagedCodexHookTrustStateForConfig(codexHooksFile, pkgRoot, hookOptions), excludedHookTrustStateKeys);
|
|
1698
|
+
if (hookTrustToml) {
|
|
1699
|
+
lines.push("");
|
|
1700
|
+
lines.push("# OMX-owned Codex hook trust state");
|
|
1701
|
+
lines.push("# Trusts only setup-managed native hook wrappers.");
|
|
1702
|
+
lines.push(hookTrustToml);
|
|
1703
|
+
lines.push("# End OMX-owned Codex hook trust state");
|
|
1704
|
+
}
|
|
1705
|
+
lines.push(...(includeTui
|
|
1706
|
+
? [
|
|
1707
|
+
"",
|
|
1708
|
+
"# OMX TUI StatusLine (Codex CLI v0.101.0+)",
|
|
1709
|
+
"[tui]",
|
|
1710
|
+
OMX_MANAGED_STATUS_LINE_MARKER,
|
|
1711
|
+
statusLineForPreset(statusLinePreset),
|
|
1712
|
+
"",
|
|
1713
|
+
]
|
|
1714
|
+
: [""]));
|
|
1715
|
+
lines.push("# ============================================================");
|
|
1716
|
+
lines.push("# End oh-my-codex");
|
|
1717
|
+
lines.push("");
|
|
1718
|
+
return lines.join("\n");
|
|
1719
|
+
}
|
|
1720
|
+
// ---------------------------------------------------------------------------
|
|
1721
|
+
// Public API
|
|
1722
|
+
// ---------------------------------------------------------------------------
|
|
1723
|
+
/**
|
|
1724
|
+
* Merge OMX config into existing config.toml
|
|
1725
|
+
* Preserves existing user settings, appends OMX block if not present.
|
|
1726
|
+
*
|
|
1727
|
+
* Layout:
|
|
1728
|
+
* 1. OMX top-level keys (notify, model_reasoning_effort, developer_instructions)
|
|
1729
|
+
* 2. [features] with multi_agent + child_agents_md + hooks + goals
|
|
1730
|
+
* 3. [shell_environment_policy.set] with defaulted deprecated explore-routing opt-out
|
|
1731
|
+
* 4. … user sections …
|
|
1732
|
+
* 5. OMX [table] sections (mcp_servers, tui)
|
|
1733
|
+
*/
|
|
1734
|
+
export function buildMergedConfig(existingConfig, pkgRoot, options = {}) {
|
|
1735
|
+
let existing = existingConfig;
|
|
1736
|
+
const preservedFirstPartyMcpSections = options.preserveExistingFirstPartyMcp === true &&
|
|
1737
|
+
options.includeFirstPartyMcp !== true
|
|
1738
|
+
? extractFirstPartyOmxMcpSections(existing)
|
|
1739
|
+
: "";
|
|
1740
|
+
const includeTui = options.includeTui !== false;
|
|
1741
|
+
const statusLinePreset = options.statusLinePreset ?? DEFAULT_STATUS_LINE_PRESET;
|
|
1742
|
+
const customizedManagedTuiSections = extractCustomizedTuiSectionsFromOmxBlocks(existing);
|
|
1743
|
+
if (existing.includes(OMX_CONFIG_MARKER)) {
|
|
1744
|
+
const stripped = stripExistingOmxBlocks(existing);
|
|
1745
|
+
existing = stripped.cleaned;
|
|
1746
|
+
if (customizedManagedTuiSections.length > 0) {
|
|
1747
|
+
existing = `${existing.trimEnd()}\n\n${customizedManagedTuiSections.join("\n\n")}\n`;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
if (existing.includes(SHARED_MCP_REGISTRY_MARKER)) {
|
|
1751
|
+
const stripped = stripExistingSharedMcpRegistryBlock(existing);
|
|
1752
|
+
existing = stripped.cleaned;
|
|
1753
|
+
}
|
|
1754
|
+
const userNotifyToPreserve = options.notifyCommand === false &&
|
|
1755
|
+
!isOmxManagedNotifyCommand(getRootTomlArray(existing, "notify"), pkgRoot)
|
|
1756
|
+
? getRootTomlArray(existing, "notify")
|
|
1757
|
+
: null;
|
|
1758
|
+
existing = stripOmxTopLevelKeys(existing);
|
|
1759
|
+
if (userNotifyToPreserve) {
|
|
1760
|
+
existing = `${`notify = ${formatTomlStringArray(userNotifyToPreserve)}`}\n${existing.trimStart()}`;
|
|
1761
|
+
}
|
|
1762
|
+
existing = stripOrphanedManagedNotify(existing, pkgRoot);
|
|
1763
|
+
const managedTrustState = buildManagedCodexHookTrustStateForConfig(options.codexHooksFile, pkgRoot, {
|
|
1764
|
+
codexHomeDir: options.codexHomeDir,
|
|
1765
|
+
platform: options.hookCommandPlatform,
|
|
1766
|
+
});
|
|
1767
|
+
const hookTrustStrip = stripManagedCodexHookTrustStateWithResult(existing, {
|
|
1768
|
+
managedTrustState,
|
|
1769
|
+
});
|
|
1770
|
+
existing = hookTrustStrip.config;
|
|
1771
|
+
if (options.modelOverride) {
|
|
1772
|
+
existing = stripRootLevelKeys(existing, ["model"]);
|
|
1773
|
+
}
|
|
1774
|
+
existing = stripOrphanedOmxSections(existing);
|
|
1775
|
+
if (preservedFirstPartyMcpSections) {
|
|
1776
|
+
existing = `${existing.trimEnd()}\n\n${preservedFirstPartyMcpSections}\n`;
|
|
1777
|
+
}
|
|
1778
|
+
existing = upsertFeatureFlags(existing, options.codexHookFeatureFlag);
|
|
1779
|
+
existing = upsertEnvSettings(existing);
|
|
1780
|
+
existing = upsertAgentsSettings(existing);
|
|
1781
|
+
const tuiUpsert = includeTui
|
|
1782
|
+
? upsertTuiStatusLine(existing, statusLinePreset, {
|
|
1783
|
+
forceStatusLinePreset: options.forceStatusLinePreset,
|
|
1784
|
+
})
|
|
1785
|
+
: { cleaned: existing, hadExistingTui: false };
|
|
1786
|
+
existing = tuiUpsert.cleaned;
|
|
1787
|
+
const topLines = getOmxTopLevelLines(pkgRoot, existing, options.modelOverride, options.notifyCommand === undefined
|
|
1788
|
+
? getDefaultNotifyCommand(pkgRoot)
|
|
1789
|
+
: options.notifyCommand);
|
|
1790
|
+
const tablesBlock = getOmxTablesBlock(pkgRoot, includeTui && !tuiUpsert.hadExistingTui, statusLinePreset, options.codexHooksFile, {
|
|
1791
|
+
codexHomeDir: options.codexHomeDir,
|
|
1792
|
+
platform: options.hookCommandPlatform,
|
|
1793
|
+
}, options.includeFirstPartyMcp === true, hookTrustStrip.preservedConflictKeys);
|
|
1794
|
+
const sharedRegistryBlock = getSharedMcpRegistryBlock(options.sharedMcpServers ?? [], options.sharedMcpRegistrySource, existing);
|
|
1795
|
+
let body = existing.trimEnd();
|
|
1796
|
+
if (sharedRegistryBlock) {
|
|
1797
|
+
body = body ? `${body}\n\n${sharedRegistryBlock}` : sharedRegistryBlock;
|
|
1798
|
+
}
|
|
1799
|
+
return addDefaultLauncherMcpStartupTimeouts(topLines.join("\n") + "\n\n" + body + "\n" + tablesBlock);
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Detect and repair upgrade-era managed config incompatibilities in config.toml.
|
|
1803
|
+
*
|
|
1804
|
+
* After an omx version upgrade the OLD setup code (still loaded in memory)
|
|
1805
|
+
* may leave a config with duplicate [tui] sections or the retired
|
|
1806
|
+
* [mcp_servers.omx_team_run] table. Codex rejects duplicate tables and newer
|
|
1807
|
+
* OMX builds no longer ship the team MCP entrypoint, so we repair both before
|
|
1808
|
+
* the CLI is spawned.
|
|
1809
|
+
*
|
|
1810
|
+
* Returns `true` if a repair was performed.
|
|
1811
|
+
*/
|
|
1812
|
+
export async function repairConfigIfNeeded(configPath, pkgRoot, options = {}) {
|
|
1813
|
+
if (!existsSync(configPath))
|
|
1814
|
+
return false;
|
|
1815
|
+
const content = await readFile(configPath, "utf-8");
|
|
1816
|
+
const tuiCount = (content.match(/^\s*\[tui\]\s*$/gm) || []).length;
|
|
1817
|
+
const hasLegacyTeamRunTable = hasLegacyOmxTeamRunTable(content);
|
|
1818
|
+
const hasLauncherTimeoutGap = findLauncherTimeoutRepairTargets(content).length > 0;
|
|
1819
|
+
if (tuiCount <= 1 && !hasLegacyTeamRunTable && !hasLauncherTimeoutGap)
|
|
1820
|
+
return false;
|
|
1821
|
+
// Managed config compatibility issue detected — run full merge to repair
|
|
1822
|
+
const repaired = buildMergedConfig(content, pkgRoot, options);
|
|
1823
|
+
if (repaired === content)
|
|
1824
|
+
return false;
|
|
1825
|
+
await writeFile(configPath, repaired);
|
|
1826
|
+
return true;
|
|
1827
|
+
}
|
|
1828
|
+
export async function mergeConfig(configPath, pkgRoot, options = {}) {
|
|
1829
|
+
let existing = "";
|
|
1830
|
+
if (existsSync(configPath)) {
|
|
1831
|
+
existing = await readFile(configPath, "utf-8");
|
|
1832
|
+
}
|
|
1833
|
+
if (existing.includes("oh-my-codex (OMX) Configuration")) {
|
|
1834
|
+
const stripped = stripExistingOmxBlocks(existing);
|
|
1835
|
+
if (options.verbose && stripped.removed > 0) {
|
|
1836
|
+
console.log(" Updating existing OMX config block.");
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
const finalConfig = buildMergedConfig(existing, pkgRoot, options);
|
|
1840
|
+
await writeFile(configPath, finalConfig);
|
|
1841
|
+
if (options.verbose) {
|
|
1842
|
+
console.log(` Written to ${configPath}`);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
//# sourceMappingURL=generator.js.map
|