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,2103 @@
|
|
|
1
|
+
import { after, before, describe, it } from "node:test";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import { existsSync } from "node:fs";
|
|
4
|
+
import { chmod, cp, mkdir, mkdtemp, readFile, readdir, rm, writeFile, } from "node:fs/promises";
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
6
|
+
import { dirname, join } from "node:path";
|
|
7
|
+
import { parse as parseToml } from "@iarna/toml";
|
|
8
|
+
import { setup } from "../setup.js";
|
|
9
|
+
import { uninstall } from "../uninstall.js";
|
|
10
|
+
import { OMX_DEVELOPER_INSTRUCTIONS, OMX_PLUGIN_DEVELOPER_INSTRUCTIONS, } from "../../config/generator.js";
|
|
11
|
+
const packageRoot = process.cwd();
|
|
12
|
+
let previousPathForFakeCodex;
|
|
13
|
+
let fakeCodexBinDir = null;
|
|
14
|
+
before(async () => {
|
|
15
|
+
previousPathForFakeCodex = process.env.PATH;
|
|
16
|
+
fakeCodexBinDir = await mkdtemp(join(tmpdir(), "omx-fake-codex-"));
|
|
17
|
+
const fakeCodexPath = join(fakeCodexBinDir, "codex");
|
|
18
|
+
await writeFile(fakeCodexPath, [
|
|
19
|
+
"#!/usr/bin/env node",
|
|
20
|
+
"if (process.argv[2] === 'features' && process.argv[3] === 'list') {",
|
|
21
|
+
" console.log('hooks stable true');",
|
|
22
|
+
" console.log('plugin_hooks experimental true');",
|
|
23
|
+
" console.log('goals experimental true');",
|
|
24
|
+
" process.exit(0);",
|
|
25
|
+
"}",
|
|
26
|
+
"if (process.argv.includes('--version') || process.argv[2] === '--version') {",
|
|
27
|
+
" console.log('codex-cli 0.999.0');",
|
|
28
|
+
" process.exit(0);",
|
|
29
|
+
"}",
|
|
30
|
+
"process.exit(0);",
|
|
31
|
+
"",
|
|
32
|
+
].join("\n"));
|
|
33
|
+
await chmod(fakeCodexPath, 0o755);
|
|
34
|
+
process.env.PATH = `${fakeCodexBinDir}${process.env.PATH ? `:${process.env.PATH}` : ""}`;
|
|
35
|
+
});
|
|
36
|
+
after(async () => {
|
|
37
|
+
if (previousPathForFakeCodex === undefined) {
|
|
38
|
+
delete process.env.PATH;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
process.env.PATH = previousPathForFakeCodex;
|
|
42
|
+
}
|
|
43
|
+
if (fakeCodexBinDir !== null) {
|
|
44
|
+
await rm(fakeCodexBinDir, { recursive: true, force: true });
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
async function withTempCwd(wd, fn) {
|
|
48
|
+
const previousCwd = process.cwd();
|
|
49
|
+
process.chdir(wd);
|
|
50
|
+
try {
|
|
51
|
+
await fn();
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
process.chdir(previousCwd);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function runSetupWithCapturedLogs(wd, options) {
|
|
58
|
+
const previousCwd = process.cwd();
|
|
59
|
+
const originalLog = console.log;
|
|
60
|
+
const logs = [];
|
|
61
|
+
process.chdir(wd);
|
|
62
|
+
console.log = (...args) => {
|
|
63
|
+
logs.push(args.map((arg) => String(arg)).join(" "));
|
|
64
|
+
};
|
|
65
|
+
try {
|
|
66
|
+
await setup(options);
|
|
67
|
+
return logs.join("\n");
|
|
68
|
+
}
|
|
69
|
+
finally {
|
|
70
|
+
console.log = originalLog;
|
|
71
|
+
process.chdir(previousCwd);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async function withIsolatedUserHome(wd, fn) {
|
|
75
|
+
const previousHome = process.env.HOME;
|
|
76
|
+
const previousCodexHome = process.env.CODEX_HOME;
|
|
77
|
+
const homeDir = join(wd, "home");
|
|
78
|
+
const codexHomeDir = join(homeDir, ".codex");
|
|
79
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
80
|
+
process.env.HOME = homeDir;
|
|
81
|
+
process.env.CODEX_HOME = codexHomeDir;
|
|
82
|
+
try {
|
|
83
|
+
return await fn(codexHomeDir);
|
|
84
|
+
}
|
|
85
|
+
finally {
|
|
86
|
+
if (typeof previousHome === "string")
|
|
87
|
+
process.env.HOME = previousHome;
|
|
88
|
+
else
|
|
89
|
+
delete process.env.HOME;
|
|
90
|
+
if (typeof previousCodexHome === "string") {
|
|
91
|
+
process.env.CODEX_HOME = previousCodexHome;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
delete process.env.CODEX_HOME;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
describe("notify setup scope", () => {
|
|
99
|
+
it("does not write unsupported project-scope notify", async () => {
|
|
100
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-project-no-notify-"));
|
|
101
|
+
try {
|
|
102
|
+
await withTempCwd(wd, async () => {
|
|
103
|
+
await setup({ scope: "project" });
|
|
104
|
+
});
|
|
105
|
+
const config = await readFile(join(wd, ".codex", "config.toml"), "utf-8");
|
|
106
|
+
assert.doesNotMatch(config, /^notify\s*=/m);
|
|
107
|
+
assert.doesNotMatch(config, /notify-hook\.js/);
|
|
108
|
+
}
|
|
109
|
+
finally {
|
|
110
|
+
await rm(wd, { recursive: true, force: true });
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
it("preserves existing user project-scope notify while suppressing OMX notify", async () => {
|
|
114
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-project-user-notify-"));
|
|
115
|
+
try {
|
|
116
|
+
await mkdir(join(wd, ".codex"), { recursive: true });
|
|
117
|
+
await writeFile(join(wd, ".codex", "config.toml"), 'notify = ["node", "/tmp/notify-hook.js"]\napproval_policy = "never"\n');
|
|
118
|
+
await withTempCwd(wd, async () => {
|
|
119
|
+
await setup({ scope: "project" });
|
|
120
|
+
});
|
|
121
|
+
const config = await readFile(join(wd, ".codex", "config.toml"), "utf-8");
|
|
122
|
+
assert.match(config, /^notify = \["node", "\/tmp\/notify-hook\.js"\]$/m);
|
|
123
|
+
assert.doesNotMatch(config, /oh-my-codex.*notify-hook\.js/);
|
|
124
|
+
assert.match(config, /^approval_policy = "never"$/m);
|
|
125
|
+
}
|
|
126
|
+
finally {
|
|
127
|
+
await rm(wd, { recursive: true, force: true });
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
it("wraps and restores an existing user notify", async () => {
|
|
131
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-user-notify-"));
|
|
132
|
+
try {
|
|
133
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
134
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
135
|
+
await writeFile(join(codexHomeDir, "config.toml"), 'notify = ["node", "/tmp/user-notify.js"]\napproval_policy = "on-failure"\n');
|
|
136
|
+
await withTempCwd(wd, async () => {
|
|
137
|
+
await setup({ scope: "user" });
|
|
138
|
+
});
|
|
139
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
140
|
+
assert.match(config, /^notify = \["node", ".*notify-dispatcher\.js", "--metadata", ".*notify-dispatch\.json"\]$/m);
|
|
141
|
+
const metadataPath = join(codexHomeDir, ".omx", "notify-dispatch.json");
|
|
142
|
+
const metadata = JSON.parse(await readFile(metadataPath, "utf-8"));
|
|
143
|
+
assert.deepEqual(metadata.previousNotify, ["node", "/tmp/user-notify.js"]);
|
|
144
|
+
assert.deepEqual(metadata.omxNotify?.slice(0, 1), ["node"]);
|
|
145
|
+
await withTempCwd(wd, async () => {
|
|
146
|
+
await setup({ scope: "user" });
|
|
147
|
+
});
|
|
148
|
+
const rerunConfig = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
149
|
+
assert.match(rerunConfig, /notify-dispatcher\.js/);
|
|
150
|
+
const rerunMetadata = JSON.parse(await readFile(metadataPath, "utf-8"));
|
|
151
|
+
assert.deepEqual(rerunMetadata.previousNotify, [
|
|
152
|
+
"node",
|
|
153
|
+
"/tmp/user-notify.js",
|
|
154
|
+
]);
|
|
155
|
+
await withTempCwd(wd, async () => {
|
|
156
|
+
await uninstall({ scope: "user" });
|
|
157
|
+
});
|
|
158
|
+
const restored = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
159
|
+
assert.match(restored, new RegExp('^notify = \\["node", "/tmp/user-notify\\.js"\\]$', "m"));
|
|
160
|
+
assert.doesNotMatch(restored, /notify-dispatcher\.js/);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
finally {
|
|
164
|
+
await rm(wd, { recursive: true, force: true });
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
it("does not preserve stale OMX dispatcher metadata as previous notify", async () => {
|
|
168
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-stale-dispatcher-notify-"));
|
|
169
|
+
try {
|
|
170
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
171
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
172
|
+
const metadataPath = join(codexHomeDir, ".omx", "notify-dispatch.json");
|
|
173
|
+
const stalePkgRoot = join(wd, "old-global", "oh-my-codex");
|
|
174
|
+
const staleDispatcher = join(stalePkgRoot, "dist", "scripts", "notify-dispatcher.js");
|
|
175
|
+
await mkdir(dirname(metadataPath), { recursive: true });
|
|
176
|
+
await writeFile(join(codexHomeDir, "config.toml"), `notify = ["node", "${staleDispatcher}", "--metadata", "${metadataPath}"]\napproval_policy = "on-failure"\n`);
|
|
177
|
+
await writeFile(metadataPath, JSON.stringify({
|
|
178
|
+
managedBy: "oh-my-codex",
|
|
179
|
+
version: 1,
|
|
180
|
+
previousNotify: [
|
|
181
|
+
"node",
|
|
182
|
+
staleDispatcher,
|
|
183
|
+
"--metadata",
|
|
184
|
+
metadataPath,
|
|
185
|
+
],
|
|
186
|
+
omxNotify: [
|
|
187
|
+
"node",
|
|
188
|
+
join(stalePkgRoot, "dist", "scripts", "notify-hook.js"),
|
|
189
|
+
],
|
|
190
|
+
dispatcherNotify: ["node", staleDispatcher, "--metadata", metadataPath],
|
|
191
|
+
}));
|
|
192
|
+
await withTempCwd(wd, async () => {
|
|
193
|
+
await setup({ scope: "user" });
|
|
194
|
+
});
|
|
195
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
196
|
+
assert.match(config, /^notify = \["node", ".*notify-hook\.js"\]$/m);
|
|
197
|
+
assert.doesNotMatch(config, /notify-dispatcher\.js/);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
finally {
|
|
201
|
+
await rm(wd, { recursive: true, force: true });
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
it("does not preserve nested encoded stale turn-ended previous notify metadata", async () => {
|
|
205
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-stale-nested-wrapper-notify-"));
|
|
206
|
+
try {
|
|
207
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
208
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
209
|
+
const metadataPath = join(codexHomeDir, ".omx", "notify-dispatch.json");
|
|
210
|
+
const stalePkgRoot = join(wd, "old-global", "oh-my-codex");
|
|
211
|
+
const staleDispatcher = join(stalePkgRoot, "dist", "scripts", "notify-dispatcher.js");
|
|
212
|
+
const staleTurnEndedWrapper = join(wd, "SkyComputerUseClient");
|
|
213
|
+
await mkdir(dirname(metadataPath), { recursive: true });
|
|
214
|
+
await writeFile(join(codexHomeDir, "config.toml"), `notify = ["node", "${staleDispatcher}", "--metadata", "${metadataPath}"]\napproval_policy = "on-failure"\n`);
|
|
215
|
+
const nestedWrapper = JSON.stringify([
|
|
216
|
+
"node",
|
|
217
|
+
staleTurnEndedWrapper,
|
|
218
|
+
"turn-ended",
|
|
219
|
+
"--previous-notify",
|
|
220
|
+
JSON.stringify(["node", staleDispatcher, "--metadata", metadataPath]),
|
|
221
|
+
]);
|
|
222
|
+
await writeFile(metadataPath, JSON.stringify({
|
|
223
|
+
managedBy: "oh-my-codex",
|
|
224
|
+
version: 1,
|
|
225
|
+
previousNotify: [
|
|
226
|
+
"node",
|
|
227
|
+
staleTurnEndedWrapper,
|
|
228
|
+
"turn-ended",
|
|
229
|
+
"--previous-notify",
|
|
230
|
+
JSON.stringify(nestedWrapper),
|
|
231
|
+
],
|
|
232
|
+
omxNotify: [
|
|
233
|
+
"node",
|
|
234
|
+
join(stalePkgRoot, "dist", "scripts", "notify-hook.js"),
|
|
235
|
+
],
|
|
236
|
+
dispatcherNotify: ["node", staleDispatcher, "--metadata", metadataPath],
|
|
237
|
+
}));
|
|
238
|
+
await withTempCwd(wd, async () => {
|
|
239
|
+
await setup({ scope: "user" });
|
|
240
|
+
});
|
|
241
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
242
|
+
assert.match(config, /^notify = \["node", ".*notify-hook\.js"\]$/m);
|
|
243
|
+
assert.doesNotMatch(config, /notify-dispatcher\.js/);
|
|
244
|
+
assert.doesNotMatch(config, /SkyComputerUseClient/);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
finally {
|
|
248
|
+
await rm(wd, { recursive: true, force: true });
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
it("does not preserve stale turn-ended wrappers with OMX previous notify metadata", async () => {
|
|
252
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-stale-wrapper-notify-"));
|
|
253
|
+
try {
|
|
254
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
255
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
256
|
+
const metadataPath = join(codexHomeDir, ".omx", "notify-dispatch.json");
|
|
257
|
+
const stalePkgRoot = join(wd, "old-global", "oh-my-codex");
|
|
258
|
+
const staleDispatcher = join(stalePkgRoot, "dist", "scripts", "notify-dispatcher.js");
|
|
259
|
+
const staleTurnEndedWrapper = join(wd, "SkyComputerUseClient");
|
|
260
|
+
await mkdir(dirname(metadataPath), { recursive: true });
|
|
261
|
+
await writeFile(join(codexHomeDir, "config.toml"), `notify = ["node", "${staleDispatcher}", "--metadata", "${metadataPath}"]\napproval_policy = "on-failure"\n`);
|
|
262
|
+
await writeFile(metadataPath, JSON.stringify({
|
|
263
|
+
managedBy: "oh-my-codex",
|
|
264
|
+
version: 1,
|
|
265
|
+
previousNotify: [
|
|
266
|
+
"node",
|
|
267
|
+
staleTurnEndedWrapper,
|
|
268
|
+
"turn-ended",
|
|
269
|
+
"--previous-notify",
|
|
270
|
+
JSON.stringify([
|
|
271
|
+
"node",
|
|
272
|
+
staleDispatcher,
|
|
273
|
+
"--metadata",
|
|
274
|
+
metadataPath,
|
|
275
|
+
]),
|
|
276
|
+
],
|
|
277
|
+
omxNotify: [
|
|
278
|
+
"node",
|
|
279
|
+
join(stalePkgRoot, "dist", "scripts", "notify-hook.js"),
|
|
280
|
+
],
|
|
281
|
+
dispatcherNotify: ["node", staleDispatcher, "--metadata", metadataPath],
|
|
282
|
+
}));
|
|
283
|
+
await withTempCwd(wd, async () => {
|
|
284
|
+
await setup({ scope: "user" });
|
|
285
|
+
});
|
|
286
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
287
|
+
assert.match(config, /^notify = \["node", ".*notify-hook\.js"\]$/m);
|
|
288
|
+
assert.doesNotMatch(config, /notify-dispatcher\.js/);
|
|
289
|
+
assert.doesNotMatch(config, /SkyComputerUseClient/);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
finally {
|
|
293
|
+
await rm(wd, { recursive: true, force: true });
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
it("repairs reporter-shaped SkyComputerUseClient dispatcher metadata on rerun", async () => {
|
|
297
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-reporter-wrapper-notify-"));
|
|
298
|
+
try {
|
|
299
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
300
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
301
|
+
const metadataPath = join(codexHomeDir, ".omx", "notify-dispatch.json");
|
|
302
|
+
const stalePkgRoot = join(wd, "pkg-without-managed-name");
|
|
303
|
+
const staleDispatcher = join(stalePkgRoot, "dist", "scripts", "notify-dispatcher.js");
|
|
304
|
+
const staleTurnEndedWrapper = join(wd, "SkyComputerUseClient");
|
|
305
|
+
await mkdir(dirname(metadataPath), { recursive: true });
|
|
306
|
+
await writeFile(join(codexHomeDir, "config.toml"), `notify = ["node", "${staleDispatcher}", "--metadata", "${metadataPath}"]
|
|
307
|
+
approval_policy = "on-failure"
|
|
308
|
+
`);
|
|
309
|
+
await writeFile(metadataPath, JSON.stringify({
|
|
310
|
+
managedBy: "oh-my-codex",
|
|
311
|
+
version: 1,
|
|
312
|
+
previousNotify: [
|
|
313
|
+
staleTurnEndedWrapper,
|
|
314
|
+
"turn-ended",
|
|
315
|
+
"--previous-notify",
|
|
316
|
+
JSON.stringify([
|
|
317
|
+
"node",
|
|
318
|
+
staleDispatcher,
|
|
319
|
+
"--metadata",
|
|
320
|
+
metadataPath,
|
|
321
|
+
]),
|
|
322
|
+
],
|
|
323
|
+
omxNotify: [
|
|
324
|
+
"node",
|
|
325
|
+
join(stalePkgRoot, "dist", "scripts", "notify-hook.js"),
|
|
326
|
+
],
|
|
327
|
+
dispatcherNotify: ["node", staleDispatcher, "--metadata", metadataPath],
|
|
328
|
+
}));
|
|
329
|
+
await withTempCwd(wd, async () => {
|
|
330
|
+
await setup({ scope: "user" });
|
|
331
|
+
});
|
|
332
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
333
|
+
assert.match(config, /^notify = \["node", ".*notify-hook\.js"\]$/m);
|
|
334
|
+
assert.doesNotMatch(config, /notify-dispatcher\.js/);
|
|
335
|
+
assert.doesNotMatch(config, /SkyComputerUseClient/);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
finally {
|
|
339
|
+
await rm(wd, { recursive: true, force: true });
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
it("does not wrap stale global OMX notify hooks as user notify commands", async () => {
|
|
343
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-stale-hook-notify-"));
|
|
344
|
+
try {
|
|
345
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
346
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
347
|
+
const staleHook = join("/opt", "homebrew", "lib", "node_modules", "oh-my-codex", "dist", "scripts", "notify-hook.js");
|
|
348
|
+
await writeFile(join(codexHomeDir, "config.toml"), `notify = ["node", "${staleHook}"]\napproval_policy = "on-failure"\n`);
|
|
349
|
+
await withTempCwd(wd, async () => {
|
|
350
|
+
await setup({ scope: "user" });
|
|
351
|
+
});
|
|
352
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
353
|
+
assert.match(config, /^notify = \["node", ".*notify-hook\.js"\]$/m);
|
|
354
|
+
assert.doesNotMatch(config, /notify-dispatcher\.js/);
|
|
355
|
+
assert.doesNotMatch(config, /lib\/node_modules\/oh-my-codex\/dist\/scripts\/notify-hook\.js/);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
finally {
|
|
359
|
+
await rm(wd, { recursive: true, force: true });
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
async function assertProjectPluginModeArtifacts(wd) {
|
|
364
|
+
assert.equal(existsSync(join(wd, ".codex", "hooks.json")), false);
|
|
365
|
+
const config = await readFile(join(wd, ".codex", "config.toml"), "utf-8");
|
|
366
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
367
|
+
assert.doesNotMatch(config, /^hooks = true$/m);
|
|
368
|
+
assert.match(config, /^goals = true$/m);
|
|
369
|
+
assert.doesNotMatch(config, /developer_instructions|notify-hook/g);
|
|
370
|
+
assert.equal(existsSync(join(wd, ".codex", "skills", "ask", "SKILL.md")), false);
|
|
371
|
+
assert.equal(existsSync(join(wd, ".codex", "agents", "planner.toml")), true);
|
|
372
|
+
assert.equal(existsSync(join(wd, ".codex", "prompts", "executor.md")), false);
|
|
373
|
+
assert.equal(existsSync(join(wd, "AGENTS.md")), true);
|
|
374
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
375
|
+
assert.deepEqual(persisted, {
|
|
376
|
+
scope: "project",
|
|
377
|
+
installMode: "plugin",
|
|
378
|
+
mcpMode: "none",
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
async function captureConsoleOutput(fn) {
|
|
382
|
+
const originalLog = console.log;
|
|
383
|
+
const originalWarn = console.warn;
|
|
384
|
+
const lines = [];
|
|
385
|
+
console.log = (...args) => {
|
|
386
|
+
lines.push(args.map(String).join(" "));
|
|
387
|
+
};
|
|
388
|
+
console.warn = (...args) => {
|
|
389
|
+
lines.push(args.map(String).join(" "));
|
|
390
|
+
};
|
|
391
|
+
try {
|
|
392
|
+
await fn();
|
|
393
|
+
}
|
|
394
|
+
finally {
|
|
395
|
+
console.log = originalLog;
|
|
396
|
+
console.warn = originalWarn;
|
|
397
|
+
}
|
|
398
|
+
return lines.join("\n");
|
|
399
|
+
}
|
|
400
|
+
async function seedPluginCacheFromInstalledSkills(codexHomeDir) {
|
|
401
|
+
const artifactPath = join(codexHomeDir, "plugins", "cache", "local-marketplace", "oh-my-codex", "local");
|
|
402
|
+
await mkdir(join(artifactPath, ".codex-plugin"), { recursive: true });
|
|
403
|
+
await writeFile(join(artifactPath, ".codex-plugin", "plugin.json"), JSON.stringify({ name: "oh-my-codex", version: "local" }));
|
|
404
|
+
const manifest = JSON.parse(await readFile(join(packageRoot, "src", "catalog", "manifest.json"), "utf-8"));
|
|
405
|
+
const installableSkillNames = new Set([
|
|
406
|
+
...manifest.skills
|
|
407
|
+
.filter((skill) => skill.status === "active" || skill.status === "internal")
|
|
408
|
+
.map((skill) => skill.name),
|
|
409
|
+
"wiki",
|
|
410
|
+
]);
|
|
411
|
+
await mkdir(join(artifactPath, "skills"), { recursive: true });
|
|
412
|
+
await Promise.all([...installableSkillNames].map((skillName) => cp(join(codexHomeDir, "skills", skillName), join(artifactPath, "skills", skillName), {
|
|
413
|
+
recursive: true,
|
|
414
|
+
})));
|
|
415
|
+
}
|
|
416
|
+
async function seedStalePluginDiscoveryCache(codexHomeDir) {
|
|
417
|
+
const artifactPath = join(codexHomeDir, "plugins", "cache", "oh-my-codex-local", "oh-my-codex");
|
|
418
|
+
await mkdir(join(artifactPath, ".codex-plugin"), { recursive: true });
|
|
419
|
+
await writeFile(join(artifactPath, ".codex-plugin", "plugin.json"), JSON.stringify({ name: "oh-my-codex", version: "0.0.0", skills: "./skills/" }, null, 2));
|
|
420
|
+
await mkdir(join(artifactPath, "skills", "old-only"), { recursive: true });
|
|
421
|
+
await writeFile(join(artifactPath, "skills", "old-only", "SKILL.md"), "# old\n");
|
|
422
|
+
return artifactPath;
|
|
423
|
+
}
|
|
424
|
+
async function seedSameVersionPluginCacheWithStaleHooks(codexHomeDir) {
|
|
425
|
+
const cacheDir = await packagedPluginCacheDir(codexHomeDir);
|
|
426
|
+
await mkdir(dirname(cacheDir), { recursive: true });
|
|
427
|
+
await cp(join(packageRoot, "plugins", "oh-my-codex"), cacheDir, {
|
|
428
|
+
recursive: true,
|
|
429
|
+
});
|
|
430
|
+
await writeFile(join(cacheDir, "hooks", "omx-command.json"), JSON.stringify({ command: process.execPath, argsPrefix: [join(packageRoot, "dist", "cli", "omx.js")] }, null, 2) + "\n");
|
|
431
|
+
const hooksPath = join(cacheDir, "hooks", "hooks.json");
|
|
432
|
+
const hooks = JSON.parse(await readFile(hooksPath, "utf-8"));
|
|
433
|
+
const preToolUse = hooks.hooks?.PreToolUse?.[0];
|
|
434
|
+
assert.ok(preToolUse, "expected packaged plugin PreToolUse hook fixture");
|
|
435
|
+
preToolUse.matcher = "Bash";
|
|
436
|
+
await writeFile(hooksPath, JSON.stringify(hooks, null, 2) + "\n");
|
|
437
|
+
return cacheDir;
|
|
438
|
+
}
|
|
439
|
+
async function seedSameVersionPluginCacheWithStaleLauncher(codexHomeDir) {
|
|
440
|
+
const cacheDir = await packagedPluginCacheDir(codexHomeDir);
|
|
441
|
+
await mkdir(dirname(cacheDir), { recursive: true });
|
|
442
|
+
await cp(join(packageRoot, "plugins", "oh-my-codex"), cacheDir, {
|
|
443
|
+
recursive: true,
|
|
444
|
+
});
|
|
445
|
+
await writeFile(join(cacheDir, "hooks", "omx-command.json"), JSON.stringify({ command: "/stale/node", argsPrefix: ["/stale/omx.js"] }, null, 2) + "\n");
|
|
446
|
+
return cacheDir;
|
|
447
|
+
}
|
|
448
|
+
async function packagedPluginCacheDir(codexHomeDir) {
|
|
449
|
+
const manifest = JSON.parse(await readFile(join(packageRoot, "plugins", "oh-my-codex", ".codex-plugin", "plugin.json"), "utf-8"));
|
|
450
|
+
return join(codexHomeDir, "plugins", "cache", "oh-my-codex-local", "oh-my-codex", manifest.version);
|
|
451
|
+
}
|
|
452
|
+
describe("omx setup install mode behavior", () => {
|
|
453
|
+
it("summarizes and keeps persisted setup preferences when review chooses keep", async () => {
|
|
454
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
455
|
+
try {
|
|
456
|
+
await withIsolatedUserHome(wd, async () => {
|
|
457
|
+
await withTempCwd(wd, async () => {
|
|
458
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
459
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "user", installMode: "legacy" }));
|
|
460
|
+
const output = await captureConsoleOutput(async () => {
|
|
461
|
+
await setup({
|
|
462
|
+
persistedSetupReviewPrompt: async (preferences) => {
|
|
463
|
+
assert.deepEqual(preferences, {
|
|
464
|
+
scope: "user",
|
|
465
|
+
installMode: "legacy",
|
|
466
|
+
});
|
|
467
|
+
return "keep";
|
|
468
|
+
},
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
assert.match(output, /Setup preference review: keep \(scope=user, installMode=legacy, mcpMode=not recorded\)/);
|
|
472
|
+
assert.match(output, /Using setup scope: user \(from \.omx\/setup-scope\.json\)/);
|
|
473
|
+
assert.match(output, /Using setup install mode: legacy \(from \.omx\/setup-scope\.json\)/);
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
finally {
|
|
478
|
+
await rm(wd, { recursive: true, force: true });
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
it("uses persisted choices as defaults when review changes setup preferences", async () => {
|
|
482
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
483
|
+
try {
|
|
484
|
+
await withIsolatedUserHome(wd, async () => {
|
|
485
|
+
await withTempCwd(wd, async () => {
|
|
486
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
487
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "user", installMode: "legacy" }));
|
|
488
|
+
await setup({
|
|
489
|
+
persistedSetupReviewPrompt: async () => "review",
|
|
490
|
+
setupScopePrompt: async (defaultScope) => {
|
|
491
|
+
assert.equal(defaultScope, "user");
|
|
492
|
+
return "user";
|
|
493
|
+
},
|
|
494
|
+
installModePrompt: async (defaultMode) => {
|
|
495
|
+
assert.equal(defaultMode, "legacy");
|
|
496
|
+
return "plugin";
|
|
497
|
+
},
|
|
498
|
+
});
|
|
499
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
500
|
+
assert.deepEqual(persisted, {
|
|
501
|
+
scope: "user",
|
|
502
|
+
installMode: "plugin",
|
|
503
|
+
mcpMode: "none",
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
finally {
|
|
509
|
+
await rm(wd, { recursive: true, force: true });
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
it("clears user-scope install mode when review switches setup to project scope", async () => {
|
|
513
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
514
|
+
try {
|
|
515
|
+
await withIsolatedUserHome(wd, async () => {
|
|
516
|
+
await withTempCwd(wd, async () => {
|
|
517
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
518
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "user", installMode: "plugin" }));
|
|
519
|
+
await setup({
|
|
520
|
+
persistedSetupReviewPrompt: async () => "review",
|
|
521
|
+
setupScopePrompt: async (defaultScope) => {
|
|
522
|
+
assert.equal(defaultScope, "user");
|
|
523
|
+
return "project";
|
|
524
|
+
},
|
|
525
|
+
});
|
|
526
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
527
|
+
assert.deepEqual(persisted, { scope: "project", mcpMode: "none" });
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
finally {
|
|
532
|
+
await rm(wd, { recursive: true, force: true });
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
it("reviews persisted scope when only install mode is provided", async () => {
|
|
536
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
537
|
+
try {
|
|
538
|
+
await withIsolatedUserHome(wd, async () => {
|
|
539
|
+
await withTempCwd(wd, async () => {
|
|
540
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
541
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "project" }));
|
|
542
|
+
let reviewed = false;
|
|
543
|
+
await setup({
|
|
544
|
+
installMode: "plugin",
|
|
545
|
+
persistedSetupReviewPrompt: async () => {
|
|
546
|
+
reviewed = true;
|
|
547
|
+
return "reset";
|
|
548
|
+
},
|
|
549
|
+
setupScopePrompt: async (defaultScope) => {
|
|
550
|
+
assert.equal(defaultScope, "user");
|
|
551
|
+
return "user";
|
|
552
|
+
},
|
|
553
|
+
});
|
|
554
|
+
assert.equal(reviewed, true);
|
|
555
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
556
|
+
assert.deepEqual(persisted, {
|
|
557
|
+
scope: "user",
|
|
558
|
+
installMode: "plugin",
|
|
559
|
+
mcpMode: "none",
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
finally {
|
|
565
|
+
await rm(wd, { recursive: true, force: true });
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
it("reviews persisted install mode when only user scope is provided", async () => {
|
|
569
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
570
|
+
try {
|
|
571
|
+
await withIsolatedUserHome(wd, async () => {
|
|
572
|
+
await withTempCwd(wd, async () => {
|
|
573
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
574
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "user", installMode: "legacy" }));
|
|
575
|
+
let reviewed = false;
|
|
576
|
+
await setup({
|
|
577
|
+
scope: "user",
|
|
578
|
+
persistedSetupReviewPrompt: async () => {
|
|
579
|
+
reviewed = true;
|
|
580
|
+
return "review";
|
|
581
|
+
},
|
|
582
|
+
installModePrompt: async (defaultMode) => {
|
|
583
|
+
assert.equal(defaultMode, "legacy");
|
|
584
|
+
return "plugin";
|
|
585
|
+
},
|
|
586
|
+
});
|
|
587
|
+
assert.equal(reviewed, true);
|
|
588
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
589
|
+
assert.deepEqual(persisted, {
|
|
590
|
+
scope: "user",
|
|
591
|
+
installMode: "plugin",
|
|
592
|
+
mcpMode: "none",
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
finally {
|
|
598
|
+
await rm(wd, { recursive: true, force: true });
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
it("ignores persisted setup preferences when review chooses reset", async () => {
|
|
602
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
603
|
+
try {
|
|
604
|
+
await withIsolatedUserHome(wd, async () => {
|
|
605
|
+
await withTempCwd(wd, async () => {
|
|
606
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
607
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "project", installMode: "plugin" }));
|
|
608
|
+
await setup({
|
|
609
|
+
persistedSetupReviewPrompt: async () => "reset",
|
|
610
|
+
setupScopePrompt: async (defaultScope) => {
|
|
611
|
+
assert.equal(defaultScope, "user");
|
|
612
|
+
return "user";
|
|
613
|
+
},
|
|
614
|
+
installModePrompt: async (defaultMode) => {
|
|
615
|
+
assert.equal(defaultMode, "legacy");
|
|
616
|
+
return "legacy";
|
|
617
|
+
},
|
|
618
|
+
});
|
|
619
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
620
|
+
assert.deepEqual(persisted, {
|
|
621
|
+
scope: "user",
|
|
622
|
+
installMode: "legacy",
|
|
623
|
+
mcpMode: "none",
|
|
624
|
+
});
|
|
625
|
+
});
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
finally {
|
|
629
|
+
await rm(wd, { recursive: true, force: true });
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
it("installs native agent TOML files in plugin mode so agent_type roles are available", async () => {
|
|
633
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
634
|
+
try {
|
|
635
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
636
|
+
const output = await runSetupWithCapturedLogs(wd, {
|
|
637
|
+
scope: "user",
|
|
638
|
+
installMode: "plugin",
|
|
639
|
+
});
|
|
640
|
+
assert.match(output, /Next steps:/);
|
|
641
|
+
assert.match(output, /Registered Codex marketplace oh-my-codex-local supplies OMX skills and workflow surfaces/);
|
|
642
|
+
assert.match(output, /Native agent role TOML files written to \.codex\/agents\//);
|
|
643
|
+
for (const role of ["architect", "critic", "scholastic"]) {
|
|
644
|
+
const tomlPath = join(codexHomeDir, "agents", `${role}.toml`);
|
|
645
|
+
assert.equal(existsSync(tomlPath), true, `${role}.toml should exist`);
|
|
646
|
+
const toml = await readFile(tomlPath, "utf-8");
|
|
647
|
+
assert.match(toml, new RegExp(`^name = "${role}"$`, "m"));
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
finally {
|
|
652
|
+
await rm(wd, { recursive: true, force: true });
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
it("omits Team plugin skills and native team executor when plugin mode disables Team", async () => {
|
|
656
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-no-team-"));
|
|
657
|
+
try {
|
|
658
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
659
|
+
await withTempCwd(wd, async () => {
|
|
660
|
+
await setup({
|
|
661
|
+
scope: "user",
|
|
662
|
+
installMode: "plugin",
|
|
663
|
+
teamMode: "disabled",
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
const pkg = JSON.parse(await readFile(join(packageRoot, "package.json"), "utf-8"));
|
|
667
|
+
const cacheSkillsDir = join(codexHomeDir, "plugins", "cache", "oh-my-codex-local", "oh-my-codex", pkg.version, "skills");
|
|
668
|
+
assert.equal(existsSync(join(cacheSkillsDir, "team", "SKILL.md")), false);
|
|
669
|
+
assert.equal(existsSync(join(cacheSkillsDir, "worker", "SKILL.md")), false);
|
|
670
|
+
assert.equal(existsSync(join(cacheSkillsDir, "ralph", "SKILL.md")), true);
|
|
671
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "team-executor.toml")), false);
|
|
672
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "executor.toml")), true);
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
finally {
|
|
676
|
+
await rm(wd, { recursive: true, force: true });
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
it("keeps legacy-mode next steps describing native agent TOML output", async () => {
|
|
680
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
681
|
+
try {
|
|
682
|
+
await withIsolatedUserHome(wd, async () => {
|
|
683
|
+
const output = await runSetupWithCapturedLogs(wd, {
|
|
684
|
+
scope: "user",
|
|
685
|
+
installMode: "legacy",
|
|
686
|
+
});
|
|
687
|
+
assert.match(output, /Next steps:/);
|
|
688
|
+
assert.match(output, /Native agent defaults configured in config\.toml \[agents\] and TOML files written to \.codex\/agents\//);
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
finally {
|
|
692
|
+
await rm(wd, { recursive: true, force: true });
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
it("persists user install mode choices alongside setup scope", async () => {
|
|
696
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
697
|
+
try {
|
|
698
|
+
await withIsolatedUserHome(wd, async () => {
|
|
699
|
+
await withTempCwd(wd, async () => {
|
|
700
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
701
|
+
});
|
|
702
|
+
});
|
|
703
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
704
|
+
assert.deepEqual(persisted, {
|
|
705
|
+
scope: "user",
|
|
706
|
+
installMode: "plugin",
|
|
707
|
+
mcpMode: "none",
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
finally {
|
|
711
|
+
await rm(wd, { recursive: true, force: true });
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
it("defaults setup to no first-party MCP blocks", async () => {
|
|
715
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-mcp-mode-"));
|
|
716
|
+
try {
|
|
717
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
718
|
+
await withTempCwd(wd, async () => {
|
|
719
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
720
|
+
});
|
|
721
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
722
|
+
assert.doesNotMatch(config, /^\[mcp_servers\.omx_state\]$/m);
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
finally {
|
|
726
|
+
await rm(wd, { recursive: true, force: true });
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
it("emits first-party MCP blocks when compat MCP mode is requested", async () => {
|
|
730
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-mcp-mode-"));
|
|
731
|
+
try {
|
|
732
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
733
|
+
await withTempCwd(wd, async () => {
|
|
734
|
+
await setup({ scope: "user", installMode: "legacy", mcpMode: "compat" });
|
|
735
|
+
});
|
|
736
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
737
|
+
assert.match(config, /^\[mcp_servers\.omx_state\]$/m);
|
|
738
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
739
|
+
assert.equal(persisted.mcpMode, "compat");
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
finally {
|
|
743
|
+
await rm(wd, { recursive: true, force: true });
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
it("warns and preserves existing first-party MCP registrations in non-interactive default setup", async () => {
|
|
747
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-mcp-preserve-"));
|
|
748
|
+
try {
|
|
749
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
750
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
751
|
+
await writeFile(configPath, [
|
|
752
|
+
"[mcp_servers.omx_state]",
|
|
753
|
+
'command = "node"',
|
|
754
|
+
'args = ["/tmp/state-server.js"]',
|
|
755
|
+
"",
|
|
756
|
+
"[mcp_servers.user_tool]",
|
|
757
|
+
'command = "user-tool"',
|
|
758
|
+
"",
|
|
759
|
+
].join("\n"));
|
|
760
|
+
const output = await runSetupWithCapturedLogs(wd, {
|
|
761
|
+
scope: "user",
|
|
762
|
+
installMode: "legacy",
|
|
763
|
+
});
|
|
764
|
+
const config = await readFile(configPath, "utf-8");
|
|
765
|
+
assert.match(output, /deprecated first-party OMX MCP registrations were detected but preserved/);
|
|
766
|
+
assert.match(config, /^\[mcp_servers\.omx_state\]$/m);
|
|
767
|
+
assert.match(config, /^\[mcp_servers\.user_tool\]$/m);
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
finally {
|
|
771
|
+
await rm(wd, { recursive: true, force: true });
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
it("removes existing first-party MCP registrations only when the interactive migration prompt is accepted", async () => {
|
|
775
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-mcp-remove-"));
|
|
776
|
+
try {
|
|
777
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
778
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
779
|
+
await writeFile(configPath, [
|
|
780
|
+
"[mcp_servers.omx_state]",
|
|
781
|
+
'command = "node"',
|
|
782
|
+
'args = ["/tmp/state-server.js"]',
|
|
783
|
+
"",
|
|
784
|
+
"[mcp_servers.omx_team_run]",
|
|
785
|
+
'command = "node"',
|
|
786
|
+
"",
|
|
787
|
+
"[mcp_servers.user_tool]",
|
|
788
|
+
'command = "user-tool"',
|
|
789
|
+
"",
|
|
790
|
+
].join("\n"));
|
|
791
|
+
const output = await runSetupWithCapturedLogs(wd, {
|
|
792
|
+
scope: "user",
|
|
793
|
+
installMode: "legacy",
|
|
794
|
+
firstPartyMcpRemovalPrompt: async (_path, kinds) => {
|
|
795
|
+
assert.deepEqual(kinds, ["config.toml [mcp_servers.omx_*]"]);
|
|
796
|
+
return true;
|
|
797
|
+
},
|
|
798
|
+
});
|
|
799
|
+
const config = await readFile(configPath, "utf-8");
|
|
800
|
+
assert.match(output, /Deprecated first-party OMX MCP registrations will be removed/);
|
|
801
|
+
assert.doesNotMatch(config, /^\[mcp_servers\.omx_state\]$/m);
|
|
802
|
+
assert.doesNotMatch(config, /^\[mcp_servers\.omx_team_run\]$/m);
|
|
803
|
+
assert.match(config, /^\[mcp_servers\.user_tool\]$/m);
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
finally {
|
|
807
|
+
await rm(wd, { recursive: true, force: true });
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
it("preserves existing first-party MCP registrations when the interactive migration prompt is declined", async () => {
|
|
811
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-mcp-decline-"));
|
|
812
|
+
try {
|
|
813
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
814
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
815
|
+
await writeFile(configPath, "[mcp_servers.omx_memory]\ncommand = \"node\"\n\n[mcp_servers.user_tool]\ncommand = \"user-tool\"\n");
|
|
816
|
+
await withTempCwd(wd, async () => {
|
|
817
|
+
await setup({
|
|
818
|
+
scope: "user",
|
|
819
|
+
installMode: "legacy",
|
|
820
|
+
firstPartyMcpRemovalPrompt: async () => false,
|
|
821
|
+
});
|
|
822
|
+
});
|
|
823
|
+
const config = await readFile(configPath, "utf-8");
|
|
824
|
+
assert.match(config, /^\[mcp_servers\.omx_memory\]$/m);
|
|
825
|
+
assert.match(config, /^\[mcp_servers\.user_tool\]$/m);
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
finally {
|
|
829
|
+
await rm(wd, { recursive: true, force: true });
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
it("defaults to plugin mode when an installed oh-my-codex plugin cache is discovered", async () => {
|
|
833
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
834
|
+
try {
|
|
835
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
836
|
+
await withTempCwd(wd, async () => {
|
|
837
|
+
const pluginDir = join(codexHomeDir, "plugins", "cache", "oh-my-codex-local", "oh-my-codex");
|
|
838
|
+
await mkdir(join(pluginDir, ".codex-plugin"), { recursive: true });
|
|
839
|
+
await writeFile(join(pluginDir, ".codex-plugin", "plugin.json"), JSON.stringify({ name: "oh-my-codex", version: "local" }));
|
|
840
|
+
await setup({ scope: "user" });
|
|
841
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
842
|
+
assert.deepEqual(persisted, {
|
|
843
|
+
scope: "user",
|
|
844
|
+
installMode: "plugin",
|
|
845
|
+
mcpMode: "none",
|
|
846
|
+
});
|
|
847
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "ask", "SKILL.md")), false);
|
|
848
|
+
assert.equal(existsSync(join(codexHomeDir, "hooks.json")), false);
|
|
849
|
+
});
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
finally {
|
|
853
|
+
await rm(wd, { recursive: true, force: true });
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
it("invalidates stale plugin discovery caches so updated plugin skills refresh", async () => {
|
|
857
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
858
|
+
try {
|
|
859
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
860
|
+
await withTempCwd(wd, async () => {
|
|
861
|
+
const cacheDir = await seedStalePluginDiscoveryCache(codexHomeDir);
|
|
862
|
+
const output = await captureConsoleOutput(async () => {
|
|
863
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
864
|
+
});
|
|
865
|
+
assert.equal(existsSync(join(cacheDir, "skills", "old-only", "SKILL.md")), false);
|
|
866
|
+
assert.equal(existsSync(join(await packagedPluginCacheDir(codexHomeDir), "skills", "ask", "SKILL.md")), true);
|
|
867
|
+
assert.match(output, /Invalidated 1 stale Codex plugin discovery cache entry/);
|
|
868
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "old-only", "SKILL.md")), false);
|
|
869
|
+
});
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
finally {
|
|
873
|
+
await rm(wd, { recursive: true, force: true });
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
it("invalidates same-version plugin caches when hook file contents drift", async () => {
|
|
877
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
878
|
+
try {
|
|
879
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
880
|
+
await withTempCwd(wd, async () => {
|
|
881
|
+
const cacheDir = await seedSameVersionPluginCacheWithStaleHooks(codexHomeDir);
|
|
882
|
+
const output = await captureConsoleOutput(async () => {
|
|
883
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
884
|
+
});
|
|
885
|
+
const refreshedHooks = JSON.parse(await readFile(join(cacheDir, "hooks", "hooks.json"), "utf-8"));
|
|
886
|
+
assert.equal(refreshedHooks.hooks?.PreToolUse?.[0]?.matcher, undefined);
|
|
887
|
+
assert.match(output, /Invalidated 1 stale Codex plugin discovery cache entry/);
|
|
888
|
+
assert.match(output, /Installed local Codex plugin cache/);
|
|
889
|
+
});
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
finally {
|
|
893
|
+
await rm(wd, { recursive: true, force: true });
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
it("invalidates same-version plugin caches when the pinned hook launcher drifts", async () => {
|
|
897
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
898
|
+
try {
|
|
899
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
900
|
+
await withTempCwd(wd, async () => {
|
|
901
|
+
const cacheDir = await seedSameVersionPluginCacheWithStaleLauncher(codexHomeDir);
|
|
902
|
+
const output = await captureConsoleOutput(async () => {
|
|
903
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
904
|
+
});
|
|
905
|
+
const launcher = JSON.parse(await readFile(join(cacheDir, "hooks", "omx-command.json"), "utf-8"));
|
|
906
|
+
assert.equal(launcher.command, process.execPath);
|
|
907
|
+
assert.deepEqual(launcher.argsPrefix, [join(packageRoot, "dist", "cli", "omx.js")]);
|
|
908
|
+
assert.match(output, /Invalidated 1 stale Codex plugin discovery cache entry/);
|
|
909
|
+
assert.match(output, /Installed local Codex plugin cache/);
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
finally {
|
|
914
|
+
await rm(wd, { recursive: true, force: true });
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
it("reports stale plugin discovery cache invalidation during dry-run without deleting it", async () => {
|
|
918
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
919
|
+
try {
|
|
920
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
921
|
+
await withTempCwd(wd, async () => {
|
|
922
|
+
const cacheDir = await seedStalePluginDiscoveryCache(codexHomeDir);
|
|
923
|
+
const output = await captureConsoleOutput(async () => {
|
|
924
|
+
await setup({ scope: "user", installMode: "plugin", dryRun: true });
|
|
925
|
+
});
|
|
926
|
+
assert.equal(existsSync(cacheDir), true);
|
|
927
|
+
assert.match(output, /Would invalidate 1 stale Codex plugin discovery cache entry/);
|
|
928
|
+
});
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
finally {
|
|
932
|
+
await rm(wd, { recursive: true, force: true });
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
it("reports plugin cache materialization during dry-run without writing cache", async () => {
|
|
936
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
937
|
+
try {
|
|
938
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
939
|
+
await withTempCwd(wd, async () => {
|
|
940
|
+
const output = await captureConsoleOutput(async () => {
|
|
941
|
+
await setup({ scope: "user", installMode: "plugin", dryRun: true });
|
|
942
|
+
});
|
|
943
|
+
const cacheDir = await packagedPluginCacheDir(codexHomeDir);
|
|
944
|
+
assert.equal(existsSync(cacheDir), false);
|
|
945
|
+
assert.match(output, /Would install local Codex plugin cache/);
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
finally {
|
|
950
|
+
await rm(wd, { recursive: true, force: true });
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
it("does not prompt for install mode during project-scoped setup", async () => {
|
|
954
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
955
|
+
let promptCalls = 0;
|
|
956
|
+
try {
|
|
957
|
+
await withTempCwd(wd, async () => {
|
|
958
|
+
await setup({
|
|
959
|
+
scope: "project",
|
|
960
|
+
installModePrompt: async () => {
|
|
961
|
+
promptCalls += 1;
|
|
962
|
+
return "plugin";
|
|
963
|
+
},
|
|
964
|
+
});
|
|
965
|
+
});
|
|
966
|
+
assert.equal(promptCalls, 0);
|
|
967
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
968
|
+
assert.deepEqual(persisted, { scope: "project", mcpMode: "none" });
|
|
969
|
+
}
|
|
970
|
+
finally {
|
|
971
|
+
await rm(wd, { recursive: true, force: true });
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
it("does not reuse stale user install mode for project-scoped setup", async () => {
|
|
975
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
976
|
+
try {
|
|
977
|
+
await withIsolatedUserHome(wd, async () => {
|
|
978
|
+
await withTempCwd(wd, async () => {
|
|
979
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
980
|
+
await setup({ scope: "project" });
|
|
981
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
982
|
+
assert.deepEqual(persisted, { scope: "project", mcpMode: "none" });
|
|
983
|
+
assert.equal(existsSync(join(wd, ".codex", "skills", "ask", "SKILL.md")), true);
|
|
984
|
+
await setup({ scope: "project" });
|
|
985
|
+
const repeatedPersisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
986
|
+
assert.deepEqual(repeatedPersisted, { scope: "project", mcpMode: "none" });
|
|
987
|
+
assert.equal(existsSync(join(wd, ".codex", "agents", "planner.toml")), true);
|
|
988
|
+
assert.equal(existsSync(join(wd, ".codex", "prompts", "executor.md")), true);
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
finally {
|
|
993
|
+
await rm(wd, { recursive: true, force: true });
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
it("does not reuse stale project install mode for user-scoped setup", async () => {
|
|
997
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
998
|
+
try {
|
|
999
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1000
|
+
await withTempCwd(wd, async () => {
|
|
1001
|
+
await setup({ scope: "project", installMode: "plugin" });
|
|
1002
|
+
await setup({ scope: "user" });
|
|
1003
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
1004
|
+
assert.deepEqual(persisted, {
|
|
1005
|
+
scope: "user",
|
|
1006
|
+
installMode: "legacy",
|
|
1007
|
+
mcpMode: "none",
|
|
1008
|
+
});
|
|
1009
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "ask", "SKILL.md")), true);
|
|
1010
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "planner.toml")), true);
|
|
1011
|
+
assert.equal(existsSync(join(codexHomeDir, "prompts", "executor.md")), true);
|
|
1012
|
+
});
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
finally {
|
|
1016
|
+
await rm(wd, { recursive: true, force: true });
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
it("registers the local Codex plugin marketplace without reintroducing legacy assets", async () => {
|
|
1020
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1021
|
+
try {
|
|
1022
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1023
|
+
await withTempCwd(wd, async () => {
|
|
1024
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1025
|
+
await writeFile(configPath, [
|
|
1026
|
+
'model = "gpt-5.5"',
|
|
1027
|
+
"",
|
|
1028
|
+
"[marketplaces.other]",
|
|
1029
|
+
'source_type = "local"',
|
|
1030
|
+
'source = "/tmp/other"',
|
|
1031
|
+
"",
|
|
1032
|
+
"[marketplaces.oh-my-codex-local]",
|
|
1033
|
+
'source_type = "local"',
|
|
1034
|
+
'source = "/tmp/stale-oh-my-codex"',
|
|
1035
|
+
"",
|
|
1036
|
+
].join("\n"));
|
|
1037
|
+
await setup({ scope: "user", installMode: "plugin", force: true });
|
|
1038
|
+
await setup({ scope: "user", installMode: "plugin", force: true });
|
|
1039
|
+
const config = await readFile(configPath, "utf-8");
|
|
1040
|
+
const parsed = parseToml(config);
|
|
1041
|
+
assert.equal(parsed.marketplaces?.["oh-my-codex-local"]?.source_type, "local");
|
|
1042
|
+
assert.equal(parsed.marketplaces?.["oh-my-codex-local"]?.source, packageRoot);
|
|
1043
|
+
assert.equal(parsed.marketplaces?.other?.source_type, "local");
|
|
1044
|
+
assert.equal(parsed.marketplaces?.other?.source, "/tmp/other");
|
|
1045
|
+
assert.equal((config.match(/^\[marketplaces\.oh-my-codex-local\]$/gm) ?? [])
|
|
1046
|
+
.length, 1);
|
|
1047
|
+
assert.equal((config.match(/^\[plugins\."oh-my-codex@oh-my-codex-local"\]$/gm) ?? [])
|
|
1048
|
+
.length, 1);
|
|
1049
|
+
assert.equal(parsed.plugins?.["oh-my-codex@oh-my-codex-local"]?.enabled, true);
|
|
1050
|
+
const cacheDir = await packagedPluginCacheDir(codexHomeDir);
|
|
1051
|
+
assert.equal(existsSync(join(cacheDir, ".codex-plugin", "plugin.json")), true);
|
|
1052
|
+
assert.equal(existsSync(join(cacheDir, "skills", "ask", "SKILL.md")), true);
|
|
1053
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1054
|
+
assert.doesNotMatch(config, /^hooks = true$/m);
|
|
1055
|
+
assert.doesNotMatch(config, /^codex_hooks = true$/m);
|
|
1056
|
+
assert.doesNotMatch(config, /\[mcp_servers\./);
|
|
1057
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "ask", "SKILL.md")), false);
|
|
1058
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "planner.toml")), true);
|
|
1059
|
+
assert.equal(existsSync(join(codexHomeDir, "prompts", "executor.md")), false);
|
|
1060
|
+
});
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
finally {
|
|
1064
|
+
await rm(wd, { recursive: true, force: true });
|
|
1065
|
+
}
|
|
1066
|
+
});
|
|
1067
|
+
it("enables the local Codex plugin while preserving plugin subtable policy", async () => {
|
|
1068
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1069
|
+
try {
|
|
1070
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1071
|
+
await withTempCwd(wd, async () => {
|
|
1072
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1073
|
+
await writeFile(configPath, [
|
|
1074
|
+
"[plugins.\"oh-my-codex@oh-my-codex-local\"]",
|
|
1075
|
+
"enabled = false",
|
|
1076
|
+
"",
|
|
1077
|
+
"[plugins.\"oh-my-codex@oh-my-codex-local\".mcp_servers.omx_state]",
|
|
1078
|
+
"enabled = false",
|
|
1079
|
+
"",
|
|
1080
|
+
].join("\n"));
|
|
1081
|
+
await setup({ scope: "user", installMode: "plugin", force: true });
|
|
1082
|
+
await setup({ scope: "user", installMode: "plugin", force: true });
|
|
1083
|
+
const config = await readFile(configPath, "utf-8");
|
|
1084
|
+
const parsed = parseToml(config);
|
|
1085
|
+
assert.equal((config.match(/^\[plugins\."oh-my-codex@oh-my-codex-local"\]$/gm) ?? [])
|
|
1086
|
+
.length, 1);
|
|
1087
|
+
assert.equal(parsed.plugins?.["oh-my-codex@oh-my-codex-local"]?.enabled, true);
|
|
1088
|
+
assert.equal(parsed.plugins?.["oh-my-codex@oh-my-codex-local"]?.mcp_servers
|
|
1089
|
+
?.omx_state?.enabled, false);
|
|
1090
|
+
});
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
finally {
|
|
1094
|
+
await rm(wd, { recursive: true, force: true });
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
it("registers plugin MCP subtables only when compat MCP mode is requested", async () => {
|
|
1098
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1099
|
+
try {
|
|
1100
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1101
|
+
await withTempCwd(wd, async () => {
|
|
1102
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1103
|
+
await setup({
|
|
1104
|
+
scope: "user",
|
|
1105
|
+
installMode: "plugin",
|
|
1106
|
+
mcpMode: "compat",
|
|
1107
|
+
force: true,
|
|
1108
|
+
});
|
|
1109
|
+
let parsed = parseToml(await readFile(configPath, "utf-8"));
|
|
1110
|
+
assert.equal(parsed.plugins?.["oh-my-codex@oh-my-codex-local"]?.mcp_servers
|
|
1111
|
+
?.omx_state?.enabled, true);
|
|
1112
|
+
await setup({
|
|
1113
|
+
scope: "user",
|
|
1114
|
+
installMode: "plugin",
|
|
1115
|
+
mcpMode: "none",
|
|
1116
|
+
force: true,
|
|
1117
|
+
});
|
|
1118
|
+
parsed = parseToml(await readFile(configPath, "utf-8"));
|
|
1119
|
+
assert.equal(parsed.plugins?.["oh-my-codex@oh-my-codex-local"]?.mcp_servers
|
|
1120
|
+
?.omx_state?.enabled, true);
|
|
1121
|
+
});
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
finally {
|
|
1125
|
+
await rm(wd, { recursive: true, force: true });
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
it("removes plugin MCP registrations only when the migration prompt is accepted", async () => {
|
|
1129
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-plugin-mcp-remove-"));
|
|
1130
|
+
try {
|
|
1131
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1132
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1133
|
+
await writeFile(configPath, [
|
|
1134
|
+
"[mcp_servers.omx_state]",
|
|
1135
|
+
'command = "node"',
|
|
1136
|
+
"",
|
|
1137
|
+
'[plugins."oh-my-codex@oh-my-codex-local"]',
|
|
1138
|
+
"enabled = true",
|
|
1139
|
+
"",
|
|
1140
|
+
'[plugins."oh-my-codex@oh-my-codex-local".mcp_servers.omx_memory]',
|
|
1141
|
+
"enabled = true",
|
|
1142
|
+
"",
|
|
1143
|
+
].join("\n"));
|
|
1144
|
+
await withTempCwd(wd, async () => {
|
|
1145
|
+
await setup({
|
|
1146
|
+
scope: "user",
|
|
1147
|
+
installMode: "plugin",
|
|
1148
|
+
firstPartyMcpRemovalPrompt: async (_path, kinds) => {
|
|
1149
|
+
assert.deepEqual(kinds, [
|
|
1150
|
+
"config.toml [mcp_servers.omx_*]",
|
|
1151
|
+
"plugin mcp_servers overrides",
|
|
1152
|
+
]);
|
|
1153
|
+
return true;
|
|
1154
|
+
},
|
|
1155
|
+
});
|
|
1156
|
+
});
|
|
1157
|
+
const config = await readFile(configPath, "utf-8");
|
|
1158
|
+
assert.doesNotMatch(config, /mcp_servers\.omx_state/);
|
|
1159
|
+
assert.doesNotMatch(config, /mcp_servers\.omx_memory/);
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
finally {
|
|
1163
|
+
await rm(wd, { recursive: true, force: true });
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
it("preserves plugin-mode top-level MCP registrations without duplicating them when removal is declined", async () => {
|
|
1167
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-plugin-mcp-preserve-"));
|
|
1168
|
+
try {
|
|
1169
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1170
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1171
|
+
await writeFile(configPath, [
|
|
1172
|
+
"[mcp_servers.omx_state]",
|
|
1173
|
+
'command = "node"',
|
|
1174
|
+
"",
|
|
1175
|
+
"[mcp_servers.user_tool]",
|
|
1176
|
+
'command = "user-tool"',
|
|
1177
|
+
"",
|
|
1178
|
+
].join("\n"));
|
|
1179
|
+
await withTempCwd(wd, async () => {
|
|
1180
|
+
await setup({
|
|
1181
|
+
scope: "user",
|
|
1182
|
+
installMode: "plugin",
|
|
1183
|
+
firstPartyMcpRemovalPrompt: async () => false,
|
|
1184
|
+
});
|
|
1185
|
+
});
|
|
1186
|
+
const config = await readFile(configPath, "utf-8");
|
|
1187
|
+
assert.equal(config.match(/^\[mcp_servers\.omx_state\]$/gm)?.length, 1);
|
|
1188
|
+
assert.match(config, /^\[mcp_servers\.user_tool\]$/m);
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
finally {
|
|
1192
|
+
await rm(wd, { recursive: true, force: true });
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
it("reports plugin marketplace registration during dry-run without mutating config", async () => {
|
|
1196
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1197
|
+
try {
|
|
1198
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1199
|
+
await withTempCwd(wd, async () => {
|
|
1200
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1201
|
+
await writeFile(configPath, 'model = "gpt-5.5"\n');
|
|
1202
|
+
const output = await captureConsoleOutput(async () => {
|
|
1203
|
+
await setup({ scope: "user", installMode: "plugin", dryRun: true });
|
|
1204
|
+
});
|
|
1205
|
+
assert.match(output, /Would register local Codex plugin marketplace oh-my-codex-local/);
|
|
1206
|
+
assert.equal(await readFile(configPath, "utf-8"), 'model = "gpt-5.5"\n');
|
|
1207
|
+
});
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
finally {
|
|
1211
|
+
await rm(wd, { recursive: true, force: true });
|
|
1212
|
+
}
|
|
1213
|
+
});
|
|
1214
|
+
it("uses plugin-scoped hooks when plugin mode is selected", async () => {
|
|
1215
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1216
|
+
try {
|
|
1217
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1218
|
+
await withTempCwd(wd, async () => {
|
|
1219
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
1220
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
1221
|
+
assert.equal(existsSync(join(codexHomeDir, "hooks.json")), false);
|
|
1222
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
1223
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1224
|
+
assert.doesNotMatch(config, /^hooks = true$/m);
|
|
1225
|
+
assert.doesNotMatch(config, /^codex_hooks = true$/m);
|
|
1226
|
+
assert.match(config, /^goals = true$/m);
|
|
1227
|
+
assert.doesNotMatch(config, /\[hooks\.state\./);
|
|
1228
|
+
assert.doesNotMatch(config, /developer_instructions|notify-hook/g);
|
|
1229
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "ask", "SKILL.md")), false);
|
|
1230
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "planner.toml")), true);
|
|
1231
|
+
assert.equal(existsSync(join(codexHomeDir, "prompts", "executor.md")), false);
|
|
1232
|
+
assert.equal(existsSync(join(codexHomeDir, "AGENTS.md")), true);
|
|
1233
|
+
});
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
finally {
|
|
1237
|
+
await rm(wd, { recursive: true, force: true });
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
1240
|
+
it("can opt into plugin AGENTS.md and developer_instructions defaults", async () => {
|
|
1241
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1242
|
+
try {
|
|
1243
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1244
|
+
await withTempCwd(wd, async () => {
|
|
1245
|
+
await setup({
|
|
1246
|
+
scope: "user",
|
|
1247
|
+
installMode: "plugin",
|
|
1248
|
+
pluginAgentsMdPrompt: async () => true,
|
|
1249
|
+
pluginDeveloperInstructionsPrompt: async () => true,
|
|
1250
|
+
});
|
|
1251
|
+
assert.equal(existsSync(join(codexHomeDir, "hooks.json")), false);
|
|
1252
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "ask", "SKILL.md")), false);
|
|
1253
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "planner.toml")), true);
|
|
1254
|
+
assert.equal(existsSync(join(codexHomeDir, "prompts", "executor.md")), false);
|
|
1255
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
1256
|
+
assert.match(config, /developer_instructions\s*=/);
|
|
1257
|
+
assert.match(config, /<omx version=\\"1\\">You have oh-my-codex installed through Codex plugin mode/);
|
|
1258
|
+
assert.ok(config.includes("detail.</omx>"));
|
|
1259
|
+
assert.match(config, /Registered Codex plugin marketplace surfaces supply OMX workflows and plugin-scoped companion resources/);
|
|
1260
|
+
assert.match(config, /User-installed skills may still live under ~\/.codex\/skills/);
|
|
1261
|
+
assert.match(config, /native agent roles are installed as setup-owned Codex agent TOML files in plugin mode so agent_type routing works/i);
|
|
1262
|
+
assert.doesNotMatch(config, /Native subagents live in \.codex\/agents/);
|
|
1263
|
+
assert.doesNotMatch(config, /Treat installed prompts as narrower execution surfaces/);
|
|
1264
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1265
|
+
assert.doesNotMatch(config, /notify-hook/);
|
|
1266
|
+
assert.doesNotMatch(config, /^\s*\[mcp_servers[.\]]/m);
|
|
1267
|
+
assert.doesNotMatch(config, /mcp_servers\.omx_state/);
|
|
1268
|
+
const agentsMd = await readFile(join(codexHomeDir, "AGENTS.md"), "utf-8");
|
|
1269
|
+
assert.match(agentsMd, /oh-my-codex - Intelligent Multi-Agent Orchestration/);
|
|
1270
|
+
assert.match(agentsMd, /<!-- omx:generated:agents-md -->/);
|
|
1271
|
+
assert.match(agentsMd, /<!-- OMX:MODELS:START -->/);
|
|
1272
|
+
assert.match(agentsMd, /<!-- OMX:MODELS:END -->/);
|
|
1273
|
+
assert.match(agentsMd, /<guidance_schema_contract>/);
|
|
1274
|
+
assert.match(agentsMd, /<execution_protocols>/);
|
|
1275
|
+
assert.match(agentsMd, /AGENTS\.md is the top-level operating contract/);
|
|
1276
|
+
assert.match(agentsMd, /Registered Codex plugin marketplace surfaces supply OMX workflows and plugin-scoped companion resources/);
|
|
1277
|
+
assert.match(agentsMd, /User-installed skills may still live under `~\/.codex\/skills`/);
|
|
1278
|
+
assert.match(agentsMd, /native agent roles are installed as setup-owned Codex agent TOML files in plugin mode so agent_type routing works/i);
|
|
1279
|
+
assert.doesNotMatch(agentsMd, /Role prompts under `prompts\/\*\.md`/);
|
|
1280
|
+
assert.doesNotMatch(agentsMd, /load the installed prompt\/skill\/agent surfaces from/);
|
|
1281
|
+
});
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
finally {
|
|
1285
|
+
await rm(wd, { recursive: true, force: true });
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
it("uses project-scoped plugin AGENTS.md wording without legacy prompt or agent paths", async () => {
|
|
1289
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1290
|
+
try {
|
|
1291
|
+
await withIsolatedUserHome(wd, async () => {
|
|
1292
|
+
await withTempCwd(wd, async () => {
|
|
1293
|
+
await setup({
|
|
1294
|
+
scope: "project",
|
|
1295
|
+
installMode: "plugin",
|
|
1296
|
+
pluginAgentsMdPrompt: async () => true,
|
|
1297
|
+
pluginDeveloperInstructionsPrompt: async () => false,
|
|
1298
|
+
});
|
|
1299
|
+
const agentsMd = await readFile(join(wd, "AGENTS.md"), "utf-8");
|
|
1300
|
+
assert.match(agentsMd, /Registered Codex plugin marketplace surfaces supply OMX workflows and plugin-scoped companion resources/);
|
|
1301
|
+
assert.match(agentsMd, /User-installed skills may still live under `\.\/.codex\/skills` for project scope, or `~\/.codex\/skills` for user-installed skills/);
|
|
1302
|
+
assert.doesNotMatch(agentsMd, /`~\/.codex\/prompts`/);
|
|
1303
|
+
assert.doesNotMatch(agentsMd, /`~\/.codex\/agents`/);
|
|
1304
|
+
assert.doesNotMatch(agentsMd, /Role prompts under `prompts\/\*\.md`/);
|
|
1305
|
+
});
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
finally {
|
|
1309
|
+
await rm(wd, { recursive: true, force: true });
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
it("preserves custom developer_instructions without prompting", async () => {
|
|
1313
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1314
|
+
try {
|
|
1315
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1316
|
+
await withTempCwd(wd, async () => {
|
|
1317
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1318
|
+
const existingConfig = 'developer_instructions = "custom"\n';
|
|
1319
|
+
await writeFile(configPath, existingConfig);
|
|
1320
|
+
let promptCount = 0;
|
|
1321
|
+
await setup({
|
|
1322
|
+
scope: "user",
|
|
1323
|
+
installMode: "plugin",
|
|
1324
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1325
|
+
promptCount += 1;
|
|
1326
|
+
return true;
|
|
1327
|
+
},
|
|
1328
|
+
});
|
|
1329
|
+
assert.equal(promptCount, 0);
|
|
1330
|
+
const config = await readFile(configPath, "utf-8");
|
|
1331
|
+
assert.match(config, /^developer_instructions = "custom"$/m);
|
|
1332
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1333
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1334
|
+
});
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
finally {
|
|
1338
|
+
await rm(wd, { recursive: true, force: true });
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
it("preserves current wrapped developer_instructions without prompting", async () => {
|
|
1342
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1343
|
+
try {
|
|
1344
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1345
|
+
await withTempCwd(wd, async () => {
|
|
1346
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1347
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(OMX_PLUGIN_DEVELOPER_INSTRUCTIONS)}\n`);
|
|
1348
|
+
let promptCount = 0;
|
|
1349
|
+
await setup({
|
|
1350
|
+
scope: "user",
|
|
1351
|
+
installMode: "plugin",
|
|
1352
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1353
|
+
promptCount += 1;
|
|
1354
|
+
return "refresh";
|
|
1355
|
+
},
|
|
1356
|
+
});
|
|
1357
|
+
assert.equal(promptCount, 0);
|
|
1358
|
+
const config = await readFile(configPath, "utf-8");
|
|
1359
|
+
assert.match(config, /<omx version=\\"1\\">You have oh-my-codex installed through Codex plugin mode/);
|
|
1360
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1361
|
+
});
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
finally {
|
|
1365
|
+
await rm(wd, { recursive: true, force: true });
|
|
1366
|
+
}
|
|
1367
|
+
});
|
|
1368
|
+
it("preserves latest unwrapped developer_instructions without prompting", async () => {
|
|
1369
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1370
|
+
try {
|
|
1371
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1372
|
+
await withTempCwd(wd, async () => {
|
|
1373
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1374
|
+
const latestUnwrapped = "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.";
|
|
1375
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(latestUnwrapped)}\n`);
|
|
1376
|
+
let promptCount = 0;
|
|
1377
|
+
await setup({
|
|
1378
|
+
scope: "user",
|
|
1379
|
+
installMode: "plugin",
|
|
1380
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1381
|
+
promptCount += 1;
|
|
1382
|
+
return "refresh";
|
|
1383
|
+
},
|
|
1384
|
+
});
|
|
1385
|
+
assert.equal(promptCount, 0);
|
|
1386
|
+
const config = await readFile(configPath, "utf-8");
|
|
1387
|
+
assert.match(config, /You have oh-my-codex installed through Codex plugin mode/);
|
|
1388
|
+
assert.doesNotMatch(config, /<omx version=/);
|
|
1389
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1390
|
+
});
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
finally {
|
|
1394
|
+
await rm(wd, { recursive: true, force: true });
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
it("updates managed classic developer_instructions during plugin migration", async () => {
|
|
1398
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1399
|
+
try {
|
|
1400
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1401
|
+
await withTempCwd(wd, async () => {
|
|
1402
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1403
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(OMX_DEVELOPER_INSTRUCTIONS)}\n`);
|
|
1404
|
+
let promptCount = 0;
|
|
1405
|
+
await setup({
|
|
1406
|
+
scope: "user",
|
|
1407
|
+
installMode: "plugin",
|
|
1408
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1409
|
+
promptCount += 1;
|
|
1410
|
+
return true;
|
|
1411
|
+
},
|
|
1412
|
+
});
|
|
1413
|
+
assert.equal(promptCount, 1);
|
|
1414
|
+
const config = await readFile(configPath, "utf-8");
|
|
1415
|
+
assert.match(config, /<omx version=\\"1\\">You have oh-my-codex installed through Codex plugin mode/);
|
|
1416
|
+
assert.doesNotMatch(config, /You have oh-my-codex installed\\. AGENTS\\.md/);
|
|
1417
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1418
|
+
});
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
finally {
|
|
1422
|
+
await rm(wd, { recursive: true, force: true });
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
it("preserves managed classic developer_instructions when plugin migration refresh is declined", async () => {
|
|
1426
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1427
|
+
try {
|
|
1428
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1429
|
+
await withTempCwd(wd, async () => {
|
|
1430
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1431
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(OMX_DEVELOPER_INSTRUCTIONS)}\n`);
|
|
1432
|
+
await setup({
|
|
1433
|
+
scope: "user",
|
|
1434
|
+
installMode: "plugin",
|
|
1435
|
+
pluginDeveloperInstructionsPrompt: async () => false,
|
|
1436
|
+
});
|
|
1437
|
+
const config = await readFile(configPath, "utf-8");
|
|
1438
|
+
assert.match(config, /You have oh-my-codex installed\. AGENTS\.md/);
|
|
1439
|
+
assert.doesNotMatch(config, /<omx version=/);
|
|
1440
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1441
|
+
});
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
finally {
|
|
1445
|
+
await rm(wd, { recursive: true, force: true });
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
it("preserves edited classic developer_instructions containing the legacy phrase", async () => {
|
|
1449
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1450
|
+
try {
|
|
1451
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1452
|
+
await withTempCwd(wd, async () => {
|
|
1453
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1454
|
+
const edited = `${OMX_DEVELOPER_INSTRUCTIONS}\nCustom local rule: keep this line.`;
|
|
1455
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(edited)}\n`);
|
|
1456
|
+
let promptCount = 0;
|
|
1457
|
+
await setup({
|
|
1458
|
+
scope: "user",
|
|
1459
|
+
installMode: "plugin",
|
|
1460
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1461
|
+
promptCount += 1;
|
|
1462
|
+
return true;
|
|
1463
|
+
},
|
|
1464
|
+
});
|
|
1465
|
+
assert.equal(promptCount, 0);
|
|
1466
|
+
const config = await readFile(configPath, "utf-8");
|
|
1467
|
+
assert.match(config, /You have oh-my-codex installed\. AGENTS\.md/);
|
|
1468
|
+
assert.match(config, /Custom local rule: keep this line/);
|
|
1469
|
+
assert.doesNotMatch(config, /<omx version=/);
|
|
1470
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1471
|
+
});
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
finally {
|
|
1475
|
+
await rm(wd, { recursive: true, force: true });
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1478
|
+
it("preserves edited wrapper developer_instructions as custom without prompting", async () => {
|
|
1479
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1480
|
+
try {
|
|
1481
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1482
|
+
await withTempCwd(wd, async () => {
|
|
1483
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1484
|
+
const edited = '<omx version="1">Custom instructions</omx>';
|
|
1485
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(edited)}\n`);
|
|
1486
|
+
let promptCount = 0;
|
|
1487
|
+
await setup({
|
|
1488
|
+
scope: "user",
|
|
1489
|
+
installMode: "plugin",
|
|
1490
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1491
|
+
promptCount += 1;
|
|
1492
|
+
return "refresh";
|
|
1493
|
+
},
|
|
1494
|
+
});
|
|
1495
|
+
assert.equal(promptCount, 0);
|
|
1496
|
+
const config = await readFile(configPath, "utf-8");
|
|
1497
|
+
assert.match(config, /Custom instructions/);
|
|
1498
|
+
assert.doesNotMatch(config, /Registered Codex plugin marketplace surfaces supply OMX workflows/);
|
|
1499
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1500
|
+
});
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
finally {
|
|
1504
|
+
await rm(wd, { recursive: true, force: true });
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
it("preserves changed-version wrapper developer_instructions as custom without prompting", async () => {
|
|
1508
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1509
|
+
try {
|
|
1510
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1511
|
+
await withTempCwd(wd, async () => {
|
|
1512
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1513
|
+
const edited = '<omx version="2">Custom instructions</omx>';
|
|
1514
|
+
await writeFile(configPath, `developer_instructions = ${JSON.stringify(edited)}\n`);
|
|
1515
|
+
let promptCount = 0;
|
|
1516
|
+
await setup({
|
|
1517
|
+
scope: "user",
|
|
1518
|
+
installMode: "plugin",
|
|
1519
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1520
|
+
promptCount += 1;
|
|
1521
|
+
return "refresh";
|
|
1522
|
+
},
|
|
1523
|
+
});
|
|
1524
|
+
assert.equal(promptCount, 0);
|
|
1525
|
+
const config = await readFile(configPath, "utf-8");
|
|
1526
|
+
assert.match(config, /version=\\"2\\">Custom instructions/);
|
|
1527
|
+
assert.doesNotMatch(config, /Registered Codex plugin marketplace surfaces supply OMX workflows/);
|
|
1528
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1529
|
+
});
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
finally {
|
|
1533
|
+
await rm(wd, { recursive: true, force: true });
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
it("does not refresh custom developer_instructions from plugin policy prompt", async () => {
|
|
1537
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1538
|
+
try {
|
|
1539
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1540
|
+
await withTempCwd(wd, async () => {
|
|
1541
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1542
|
+
await writeFile(configPath, 'developer_instructions = "custom"\n');
|
|
1543
|
+
let promptCount = 0;
|
|
1544
|
+
await setup({
|
|
1545
|
+
scope: "user",
|
|
1546
|
+
installMode: "plugin",
|
|
1547
|
+
pluginDeveloperInstructionsPrompt: async () => {
|
|
1548
|
+
promptCount += 1;
|
|
1549
|
+
return "refresh";
|
|
1550
|
+
},
|
|
1551
|
+
});
|
|
1552
|
+
assert.equal(promptCount, 0);
|
|
1553
|
+
const config = await readFile(configPath, "utf-8");
|
|
1554
|
+
assert.match(config, /^developer_instructions = "custom"$/m);
|
|
1555
|
+
assert.equal((config.match(/^developer_instructions\s*=/gm) ?? []).length, 1);
|
|
1556
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1557
|
+
assert.doesNotMatch(config, /\[hooks\.state\./);
|
|
1558
|
+
});
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
finally {
|
|
1562
|
+
await rm(wd, { recursive: true, force: true });
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
it("does not add developer_instructions in non-interactive plugin mode", async () => {
|
|
1566
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1567
|
+
try {
|
|
1568
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1569
|
+
await withTempCwd(wd, async () => {
|
|
1570
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1571
|
+
await setup({
|
|
1572
|
+
scope: "user",
|
|
1573
|
+
installMode: "plugin",
|
|
1574
|
+
});
|
|
1575
|
+
const config = await readFile(configPath, "utf-8");
|
|
1576
|
+
assert.doesNotMatch(config, /^developer_instructions\s*=/m);
|
|
1577
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1578
|
+
});
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
finally {
|
|
1582
|
+
await rm(wd, { recursive: true, force: true });
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
it("uses legacy codex_hooks only when the installed Codex reports that hook feature", async () => {
|
|
1586
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1587
|
+
try {
|
|
1588
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1589
|
+
await withTempCwd(wd, async () => {
|
|
1590
|
+
await setup({
|
|
1591
|
+
scope: "user",
|
|
1592
|
+
installMode: "plugin",
|
|
1593
|
+
codexFeaturesProbe: () => "codex_hooks experimental true\n",
|
|
1594
|
+
codexVersionProbe: () => "codex-cli 0.129.0",
|
|
1595
|
+
});
|
|
1596
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
1597
|
+
assert.match(config, /^codex_hooks = true$/m);
|
|
1598
|
+
assert.doesNotMatch(config, /^hooks = true$/m);
|
|
1599
|
+
});
|
|
1600
|
+
});
|
|
1601
|
+
}
|
|
1602
|
+
finally {
|
|
1603
|
+
await rm(wd, { recursive: true, force: true });
|
|
1604
|
+
}
|
|
1605
|
+
});
|
|
1606
|
+
it("removes legacy setup-managed hook wrappers when plugin-scoped hooks are supported", async () => {
|
|
1607
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1608
|
+
try {
|
|
1609
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1610
|
+
await withTempCwd(wd, async () => {
|
|
1611
|
+
await setup({
|
|
1612
|
+
scope: "user",
|
|
1613
|
+
installMode: "plugin",
|
|
1614
|
+
codexFeaturesProbe: () => "hooks stable true\n",
|
|
1615
|
+
});
|
|
1616
|
+
const hooksPath = join(codexHomeDir, "hooks.json");
|
|
1617
|
+
assert.equal(existsSync(hooksPath), true);
|
|
1618
|
+
await setup({
|
|
1619
|
+
scope: "user",
|
|
1620
|
+
installMode: "plugin",
|
|
1621
|
+
codexFeaturesProbe: () => [
|
|
1622
|
+
"hooks stable true",
|
|
1623
|
+
"plugin_hooks experimental true",
|
|
1624
|
+
"",
|
|
1625
|
+
].join("\n"),
|
|
1626
|
+
});
|
|
1627
|
+
assert.equal(existsSync(hooksPath), false);
|
|
1628
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
1629
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1630
|
+
assert.doesNotMatch(config, /^hooks = true$/m);
|
|
1631
|
+
assert.doesNotMatch(config, /\[hooks\.state\./);
|
|
1632
|
+
});
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
finally {
|
|
1636
|
+
await rm(wd, { recursive: true, force: true });
|
|
1637
|
+
}
|
|
1638
|
+
});
|
|
1639
|
+
it("preserves existing user hooks while using plugin-scoped hooks", async () => {
|
|
1640
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1641
|
+
try {
|
|
1642
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1643
|
+
await withTempCwd(wd, async () => {
|
|
1644
|
+
const hooksPath = join(codexHomeDir, "hooks.json");
|
|
1645
|
+
const existingHooks = JSON.stringify({ hooks: { UserPromptSubmit: [] } }, null, 2) + "\n";
|
|
1646
|
+
await writeFile(hooksPath, existingHooks);
|
|
1647
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
1648
|
+
const hooks = await readFile(hooksPath, "utf-8");
|
|
1649
|
+
assert.match(hooks, /"UserPromptSubmit"/);
|
|
1650
|
+
assert.doesNotMatch(hooks, /codex-native-hook\.js/);
|
|
1651
|
+
const config = await readFile(join(codexHomeDir, "config.toml"), "utf-8");
|
|
1652
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1653
|
+
});
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
finally {
|
|
1657
|
+
await rm(wd, { recursive: true, force: true });
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
it("preserves same-key user hook trust state in plugin-scoped setup", async () => {
|
|
1661
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1662
|
+
try {
|
|
1663
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1664
|
+
await withTempCwd(wd, async () => {
|
|
1665
|
+
const hooksPath = join(codexHomeDir, "hooks.json");
|
|
1666
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1667
|
+
await writeFile(hooksPath, JSON.stringify({
|
|
1668
|
+
hooks: {
|
|
1669
|
+
PostCompact: [
|
|
1670
|
+
{
|
|
1671
|
+
hooks: [
|
|
1672
|
+
{
|
|
1673
|
+
type: "command",
|
|
1674
|
+
command: "/usr/bin/python3 /tmp/user-hook.py",
|
|
1675
|
+
timeout: 5,
|
|
1676
|
+
},
|
|
1677
|
+
],
|
|
1678
|
+
},
|
|
1679
|
+
],
|
|
1680
|
+
},
|
|
1681
|
+
}, null, 2) + "\n");
|
|
1682
|
+
await writeFile(configPath, [
|
|
1683
|
+
'model = "gpt-5.5"',
|
|
1684
|
+
"",
|
|
1685
|
+
`[hooks.state."${hooksPath}:post_compact:0:0"]`,
|
|
1686
|
+
'trusted_hash = "sha256:user"',
|
|
1687
|
+
"enabled = false",
|
|
1688
|
+
"",
|
|
1689
|
+
].join("\n"));
|
|
1690
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
1691
|
+
const config = await readFile(configPath, "utf-8");
|
|
1692
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1693
|
+
assert.match(config, /^trusted_hash = "sha256:user"$/m);
|
|
1694
|
+
assert.match(config, /^enabled = false$/m);
|
|
1695
|
+
assert.equal(config
|
|
1696
|
+
.split(/\r?\n/)
|
|
1697
|
+
.filter((line) => line.trim() ===
|
|
1698
|
+
`[hooks.state."${hooksPath}:post_compact:0:0"]`).length, 1, "plugin setup must not duplicate preserved user hook trust state");
|
|
1699
|
+
assert.doesNotThrow(() => parseToml(config));
|
|
1700
|
+
});
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1703
|
+
finally {
|
|
1704
|
+
await rm(wd, { recursive: true, force: true });
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1707
|
+
it("honors persisted project-scoped plugin mode on repeat setup", async () => {
|
|
1708
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1709
|
+
try {
|
|
1710
|
+
await withTempCwd(wd, async () => {
|
|
1711
|
+
await setup({ scope: "project", installMode: "plugin" });
|
|
1712
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
1713
|
+
assert.deepEqual(persisted, {
|
|
1714
|
+
scope: "project",
|
|
1715
|
+
installMode: "plugin",
|
|
1716
|
+
mcpMode: "none",
|
|
1717
|
+
});
|
|
1718
|
+
await setup({ scope: "project" });
|
|
1719
|
+
assert.equal(existsSync(join(wd, ".codex", "skills", "ask", "SKILL.md")), false);
|
|
1720
|
+
assert.equal(existsSync(join(wd, ".codex", "agents", "planner.toml")), true);
|
|
1721
|
+
assert.equal(existsSync(join(wd, ".codex", "prompts", "executor.md")), false);
|
|
1722
|
+
assert.equal(existsSync(join(wd, ".codex", "hooks.json")), false);
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
finally {
|
|
1726
|
+
await rm(wd, { recursive: true, force: true });
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
it("lets explicit project legacy setup clear persisted project plugin mode", async () => {
|
|
1730
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1731
|
+
try {
|
|
1732
|
+
await withTempCwd(wd, async () => {
|
|
1733
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
1734
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "project", installMode: "plugin" }));
|
|
1735
|
+
await setup({ scope: "project", installMode: "legacy" });
|
|
1736
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
1737
|
+
assert.deepEqual(persisted, { scope: "project", mcpMode: "none" });
|
|
1738
|
+
assert.equal(existsSync(join(wd, ".codex", "skills", "ask", "SKILL.md")), true);
|
|
1739
|
+
assert.equal(existsSync(join(wd, ".codex", "agents", "planner.toml")), true);
|
|
1740
|
+
assert.equal(existsSync(join(wd, ".codex", "prompts", "executor.md")), true);
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
finally {
|
|
1744
|
+
await rm(wd, { recursive: true, force: true });
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
it("lets explicit user legacy setup override persisted user plugin mode", async () => {
|
|
1748
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1749
|
+
try {
|
|
1750
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1751
|
+
await withTempCwd(wd, async () => {
|
|
1752
|
+
await mkdir(join(wd, ".omx"), { recursive: true });
|
|
1753
|
+
await writeFile(join(wd, ".omx", "setup-scope.json"), JSON.stringify({ scope: "user", installMode: "plugin" }));
|
|
1754
|
+
await setup({ installMode: "legacy" });
|
|
1755
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
1756
|
+
assert.deepEqual(persisted, {
|
|
1757
|
+
scope: "user",
|
|
1758
|
+
installMode: "legacy",
|
|
1759
|
+
mcpMode: "none",
|
|
1760
|
+
});
|
|
1761
|
+
assert.equal(existsSync(join(codexHomeDir, "skills", "ask", "SKILL.md")), true);
|
|
1762
|
+
assert.equal(existsSync(join(codexHomeDir, "agents", "planner.toml")), true);
|
|
1763
|
+
assert.equal(existsSync(join(codexHomeDir, "prompts", "executor.md")), true);
|
|
1764
|
+
});
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
finally {
|
|
1768
|
+
await rm(wd, { recursive: true, force: true });
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
it("dedupes plugin-mode hook trust state when switching user setup back to legacy", async () => {
|
|
1772
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1773
|
+
try {
|
|
1774
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1775
|
+
await withTempCwd(wd, async () => {
|
|
1776
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1777
|
+
await setup({ scope: "user", installMode: "plugin", force: true });
|
|
1778
|
+
const pluginConfig = await readFile(configPath, "utf-8");
|
|
1779
|
+
const staleUnfencedPluginConfig = pluginConfig
|
|
1780
|
+
.split(/\r?\n/)
|
|
1781
|
+
.filter((line) => line.trim() !== "# OMX-owned Codex hook trust state" &&
|
|
1782
|
+
line.trim() !==
|
|
1783
|
+
"# Trusts only setup-managed codex-native-hook.js wrappers." &&
|
|
1784
|
+
line.trim() !== "# End OMX-owned Codex hook trust state")
|
|
1785
|
+
.join("\n");
|
|
1786
|
+
await writeFile(configPath, staleUnfencedPluginConfig);
|
|
1787
|
+
assert.doesNotThrow(() => parseToml(staleUnfencedPluginConfig));
|
|
1788
|
+
await setup({ scope: "user", installMode: "legacy", force: true });
|
|
1789
|
+
const legacyConfig = await readFile(configPath, "utf-8");
|
|
1790
|
+
assert.doesNotThrow(() => parseToml(legacyConfig));
|
|
1791
|
+
assert.equal(legacyConfig
|
|
1792
|
+
.split(/\r?\n/)
|
|
1793
|
+
.filter((line) => line.trim() ===
|
|
1794
|
+
`[hooks.state."${join(codexHomeDir, "hooks.json")}:post_compact:0:0"]`).length, 1, "legacy setup should replace stale plugin-mode hook trust state instead of duplicating it");
|
|
1795
|
+
assert.match(legacyConfig, /# OMX-owned Codex hook trust state[\s\S]*# End OMX-owned Codex hook trust state/);
|
|
1796
|
+
const persisted = JSON.parse(await readFile(join(wd, ".omx", "setup-scope.json"), "utf-8"));
|
|
1797
|
+
assert.deepEqual(persisted, {
|
|
1798
|
+
scope: "user",
|
|
1799
|
+
installMode: "legacy",
|
|
1800
|
+
mcpMode: "none",
|
|
1801
|
+
});
|
|
1802
|
+
});
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
finally {
|
|
1806
|
+
await rm(wd, { recursive: true, force: true });
|
|
1807
|
+
}
|
|
1808
|
+
});
|
|
1809
|
+
it("uses project-scoped plugin hooks when plugin mode is explicitly requested", async () => {
|
|
1810
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1811
|
+
try {
|
|
1812
|
+
await withTempCwd(wd, async () => {
|
|
1813
|
+
await setup({ scope: "project", installMode: "plugin" });
|
|
1814
|
+
await assertProjectPluginModeArtifacts(wd);
|
|
1815
|
+
});
|
|
1816
|
+
}
|
|
1817
|
+
finally {
|
|
1818
|
+
await rm(wd, { recursive: true, force: true });
|
|
1819
|
+
}
|
|
1820
|
+
});
|
|
1821
|
+
it("honors persisted project plugin mode on repeat setup", async () => {
|
|
1822
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1823
|
+
try {
|
|
1824
|
+
await withTempCwd(wd, async () => {
|
|
1825
|
+
await setup({ scope: "project", installMode: "plugin" });
|
|
1826
|
+
await setup();
|
|
1827
|
+
await assertProjectPluginModeArtifacts(wd);
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
finally {
|
|
1831
|
+
await rm(wd, { recursive: true, force: true });
|
|
1832
|
+
}
|
|
1833
|
+
});
|
|
1834
|
+
it("prints plugin-mode next steps without legacy-only claims", async () => {
|
|
1835
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1836
|
+
try {
|
|
1837
|
+
await withIsolatedUserHome(wd, async () => {
|
|
1838
|
+
await withTempCwd(wd, async () => {
|
|
1839
|
+
const pluginOutput = await captureConsoleOutput(async () => {
|
|
1840
|
+
await setup({ scope: "project", installMode: "plugin" });
|
|
1841
|
+
});
|
|
1842
|
+
assert.match(pluginOutput, /Using setup install mode: plugin/);
|
|
1843
|
+
assert.match(pluginOutput, /Plugin-scoped Codex hooks and runtime feature flags refresh complete .*plugin_hooks, goals/);
|
|
1844
|
+
assert.doesNotMatch(pluginOutput, /user-scope skill delivery mode/);
|
|
1845
|
+
assert.doesNotMatch(pluginOutput, /Native agent defaults configured.*TOML files written to \.codex\/agents\//);
|
|
1846
|
+
assert.doesNotMatch(pluginOutput, /Use role\/workflow keywords like \$architect, \$executor, and \$plan/);
|
|
1847
|
+
assert.doesNotMatch(pluginOutput, /AGENTS keyword routing can also activate them implicitly/);
|
|
1848
|
+
assert.doesNotMatch(pluginOutput, /The AGENTS\.md orchestration brain is loaded automatically/);
|
|
1849
|
+
assert.match(pluginOutput, /Registered Codex marketplace oh-my-codex-local supplies OMX skills and workflow surfaces/);
|
|
1850
|
+
assert.match(pluginOutput, /Browse plugin-provided skills with \/skills/);
|
|
1851
|
+
assert.match(pluginOutput, /Plugin-mode AGENTS\.md defaults provide persistent orchestration guidance; developer_instructions is an optional bootstrap/);
|
|
1852
|
+
const legacyWd = join(wd, "legacy");
|
|
1853
|
+
await mkdir(legacyWd, { recursive: true });
|
|
1854
|
+
await withTempCwd(legacyWd, async () => {
|
|
1855
|
+
const legacyOutput = await captureConsoleOutput(async () => {
|
|
1856
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
1857
|
+
});
|
|
1858
|
+
assert.match(legacyOutput, /Native agent defaults configured.*TOML files written to \.codex\/agents\//);
|
|
1859
|
+
assert.match(legacyOutput, /Use role\/workflow keywords like \$architect, \$executor, and \$plan/);
|
|
1860
|
+
assert.match(legacyOutput, /AGENTS keyword routing can also activate them implicitly/);
|
|
1861
|
+
assert.match(legacyOutput, /The AGENTS\.md orchestration brain is loaded automatically/);
|
|
1862
|
+
});
|
|
1863
|
+
});
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
finally {
|
|
1867
|
+
await rm(wd, { recursive: true, force: true });
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1870
|
+
it("removes legacy user components when plugin mode is selected", async () => {
|
|
1871
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1872
|
+
try {
|
|
1873
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1874
|
+
await withTempCwd(wd, async () => {
|
|
1875
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
1876
|
+
const askSkillPath = join(codexHomeDir, "skills", "ask", "SKILL.md");
|
|
1877
|
+
const promptPath = join(codexHomeDir, "prompts", "executor.md");
|
|
1878
|
+
const agentPath = join(codexHomeDir, "agents", "planner.toml");
|
|
1879
|
+
const hooksPath = join(codexHomeDir, "hooks.json");
|
|
1880
|
+
const configPath = join(codexHomeDir, "config.toml");
|
|
1881
|
+
const agentsMdPath = join(codexHomeDir, "AGENTS.md");
|
|
1882
|
+
assert.equal(existsSync(askSkillPath), true);
|
|
1883
|
+
assert.equal(existsSync(promptPath), true);
|
|
1884
|
+
assert.equal(existsSync(agentPath), true);
|
|
1885
|
+
assert.equal(existsSync(hooksPath), true);
|
|
1886
|
+
assert.equal(existsSync(configPath), true);
|
|
1887
|
+
assert.equal(existsSync(agentsMdPath), true);
|
|
1888
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
1889
|
+
assert.equal(existsSync(askSkillPath), false);
|
|
1890
|
+
assert.equal(existsSync(promptPath), false);
|
|
1891
|
+
assert.equal(existsSync(agentPath), true);
|
|
1892
|
+
assert.equal(existsSync(hooksPath), false);
|
|
1893
|
+
assert.equal(existsSync(agentsMdPath), true);
|
|
1894
|
+
const config = await readFile(configPath, "utf-8");
|
|
1895
|
+
assert.match(config, /^plugin_hooks = true$/m);
|
|
1896
|
+
assert.doesNotMatch(config, /^\s*(?:notify)\s*=|^\s*\[mcp_servers[.\]]/m);
|
|
1897
|
+
assert.match(config, /^developer_instructions\s*=/m);
|
|
1898
|
+
assert.match(config, /You have oh-my-codex installed\. AGENTS\.md/);
|
|
1899
|
+
});
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
finally {
|
|
1903
|
+
await rm(wd, { recursive: true, force: true });
|
|
1904
|
+
}
|
|
1905
|
+
});
|
|
1906
|
+
it("preserves existing AGENTS.md when plugin AGENTS defaults are declined", async () => {
|
|
1907
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1908
|
+
try {
|
|
1909
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1910
|
+
await withTempCwd(wd, async () => {
|
|
1911
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
1912
|
+
const agentsMdPath = join(codexHomeDir, "AGENTS.md");
|
|
1913
|
+
const before = await readFile(agentsMdPath, "utf-8");
|
|
1914
|
+
assert.match(before, /<!-- omx:generated:agents-md -->/);
|
|
1915
|
+
await setup({
|
|
1916
|
+
scope: "user",
|
|
1917
|
+
installMode: "plugin",
|
|
1918
|
+
pluginAgentsMdPrompt: async () => false,
|
|
1919
|
+
});
|
|
1920
|
+
assert.equal(await readFile(agentsMdPath, "utf-8"), before);
|
|
1921
|
+
});
|
|
1922
|
+
});
|
|
1923
|
+
}
|
|
1924
|
+
finally {
|
|
1925
|
+
await rm(wd, { recursive: true, force: true });
|
|
1926
|
+
}
|
|
1927
|
+
});
|
|
1928
|
+
it("repairs existing AGENTS.md during non-interactive plugin force setup", async () => {
|
|
1929
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1930
|
+
try {
|
|
1931
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1932
|
+
await withTempCwd(wd, async () => {
|
|
1933
|
+
await mkdir(codexHomeDir, { recursive: true });
|
|
1934
|
+
const agentsMdPath = join(codexHomeDir, "AGENTS.md");
|
|
1935
|
+
await writeFile(agentsMdPath, "# local instructions\n");
|
|
1936
|
+
await setup({ scope: "user", installMode: "plugin", force: true });
|
|
1937
|
+
const after = await readFile(agentsMdPath, "utf-8");
|
|
1938
|
+
assert.match(after, /<!-- omx:generated:agents-md -->/);
|
|
1939
|
+
assert.match(after, /oh-my-codex - Intelligent Multi-Agent Orchestration/);
|
|
1940
|
+
const backupRoot = join(wd, "home", ".omx", "backups", "setup");
|
|
1941
|
+
const backupRuns = await readdir(backupRoot);
|
|
1942
|
+
assert.equal(backupRuns.some((entry) => existsSync(join(backupRoot, entry, ".codex", "AGENTS.md"))), true);
|
|
1943
|
+
});
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
finally {
|
|
1947
|
+
await rm(wd, { recursive: true, force: true });
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
it("archives stale legacy prompts and refreshes generated native agents when plugin mode refreshes", async () => {
|
|
1951
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1952
|
+
try {
|
|
1953
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1954
|
+
await withTempCwd(wd, async () => {
|
|
1955
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
1956
|
+
const promptPath = join(codexHomeDir, "prompts", "executor.md");
|
|
1957
|
+
const agentPath = join(codexHomeDir, "agents", "planner.toml");
|
|
1958
|
+
await writeFile(promptPath, "---\ndescription: stale legacy executor prompt\n---\n\nold executor body\n");
|
|
1959
|
+
await writeFile(agentPath, [
|
|
1960
|
+
"# oh-my-codex agent: planner",
|
|
1961
|
+
'name = "planner"',
|
|
1962
|
+
'description = "stale legacy generated planner"',
|
|
1963
|
+
'developer_instructions = """old planner body"""',
|
|
1964
|
+
"",
|
|
1965
|
+
].join("\n"));
|
|
1966
|
+
const output = await captureConsoleOutput(async () => {
|
|
1967
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
1968
|
+
});
|
|
1969
|
+
assert.equal(existsSync(promptPath), false);
|
|
1970
|
+
assert.equal(existsSync(agentPath), true);
|
|
1971
|
+
assert.match(await readFile(agentPath, "utf-8"), /^name = "planner"$/m);
|
|
1972
|
+
assert.match(output, /Archived and removed .* legacy OMX-managed prompt file/);
|
|
1973
|
+
assert.match(output, /Native agent role refresh complete/);
|
|
1974
|
+
const backupRoot = join(wd, "home", ".omx", "backups", "setup");
|
|
1975
|
+
const backupRuns = await readdir(backupRoot);
|
|
1976
|
+
assert.ok(backupRuns.length > 0);
|
|
1977
|
+
assert.equal(backupRuns.some((entry) => existsSync(join(backupRoot, entry, ".codex", "prompts", "executor.md"))), true);
|
|
1978
|
+
assert.equal(backupRuns.some((entry) => existsSync(join(backupRoot, entry, ".codex", "agents", "planner.toml"))), true);
|
|
1979
|
+
});
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
finally {
|
|
1983
|
+
await rm(wd, { recursive: true, force: true });
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
it("preserves unmanaged native agent TOMLs with obsolete skill_ref during plugin refresh", async () => {
|
|
1987
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
1988
|
+
try {
|
|
1989
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
1990
|
+
await withTempCwd(wd, async () => {
|
|
1991
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
1992
|
+
const customAgentPath = join(codexHomeDir, "agents", "custom-reviewer.toml");
|
|
1993
|
+
const generatedAgentPath = join(codexHomeDir, "agents", "ghost.toml");
|
|
1994
|
+
const customAgentToml = [
|
|
1995
|
+
'name = "custom-reviewer"',
|
|
1996
|
+
'description = "user-managed reviewer"',
|
|
1997
|
+
'skill_ref = "custom-reviewer"',
|
|
1998
|
+
"",
|
|
1999
|
+
].join("\n");
|
|
2000
|
+
await writeFile(customAgentPath, customAgentToml);
|
|
2001
|
+
await writeFile(generatedAgentPath, [
|
|
2002
|
+
"# oh-my-codex agent: ghost",
|
|
2003
|
+
'name = "ghost"',
|
|
2004
|
+
'description = "obsolete generated reviewer"',
|
|
2005
|
+
'skill_ref = "ghost"',
|
|
2006
|
+
"",
|
|
2007
|
+
].join("\n"));
|
|
2008
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
2009
|
+
assert.equal(await readFile(customAgentPath, "utf-8"), customAgentToml);
|
|
2010
|
+
assert.equal(existsSync(generatedAgentPath), false);
|
|
2011
|
+
});
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
finally {
|
|
2015
|
+
await rm(wd, { recursive: true, force: true });
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
it("counts plugin cleanup skill directory backups in the setup summary", async () => {
|
|
2019
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
2020
|
+
try {
|
|
2021
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
2022
|
+
await withTempCwd(wd, async () => {
|
|
2023
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
2024
|
+
await seedPluginCacheFromInstalledSkills(codexHomeDir);
|
|
2025
|
+
const output = await captureConsoleOutput(async () => {
|
|
2026
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
2027
|
+
});
|
|
2028
|
+
const skillsSummary = output.match(/skills: updated=0, unchanged=0, backed_up=(\d+), skipped=0, removed=(\d+)/);
|
|
2029
|
+
assert.notEqual(skillsSummary, null);
|
|
2030
|
+
const backedUp = Number(skillsSummary?.[1]);
|
|
2031
|
+
const removed = Number(skillsSummary?.[2]);
|
|
2032
|
+
assert.ok(backedUp > 0);
|
|
2033
|
+
assert.equal(backedUp, removed);
|
|
2034
|
+
});
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
finally {
|
|
2038
|
+
await rm(wd, { recursive: true, force: true });
|
|
2039
|
+
}
|
|
2040
|
+
});
|
|
2041
|
+
it("removes matching legacy user skills even when plugin readiness is proven", async () => {
|
|
2042
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
2043
|
+
try {
|
|
2044
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
2045
|
+
await withTempCwd(wd, async () => {
|
|
2046
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
2047
|
+
await seedPluginCacheFromInstalledSkills(codexHomeDir);
|
|
2048
|
+
const askSkillDir = join(codexHomeDir, "skills", "ask");
|
|
2049
|
+
const wikiSkillDir = join(codexHomeDir, "skills", "wiki");
|
|
2050
|
+
assert.equal(existsSync(askSkillDir), true);
|
|
2051
|
+
assert.equal(existsSync(wikiSkillDir), true);
|
|
2052
|
+
const outputLines = [];
|
|
2053
|
+
const previousLog = console.log;
|
|
2054
|
+
console.log = (...args) => {
|
|
2055
|
+
outputLines.push(args.join(" "));
|
|
2056
|
+
};
|
|
2057
|
+
try {
|
|
2058
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
2059
|
+
}
|
|
2060
|
+
finally {
|
|
2061
|
+
console.log = previousLog;
|
|
2062
|
+
}
|
|
2063
|
+
const setupOutput = outputLines.join("\n");
|
|
2064
|
+
assert.equal(existsSync(askSkillDir), false);
|
|
2065
|
+
assert.equal(existsSync(wikiSkillDir), false);
|
|
2066
|
+
assert.match(setupOutput, /skills: updated=0, unchanged=0, backed_up=\d+, skipped=0, removed=\d+/);
|
|
2067
|
+
const backupSetupRoot = join(wd, "home", ".omx", "backups", "setup");
|
|
2068
|
+
const backupTimestamps = await readdir(backupSetupRoot);
|
|
2069
|
+
assert.equal(backupTimestamps.length, 1);
|
|
2070
|
+
const backupSkillsDir = join(backupSetupRoot, backupTimestamps[0], ".codex", "skills");
|
|
2071
|
+
const backedUpSkillNames = await readdir(backupSkillsDir);
|
|
2072
|
+
assert.ok(backedUpSkillNames.includes("ask"));
|
|
2073
|
+
assert.ok(backedUpSkillNames.includes("wiki"));
|
|
2074
|
+
assert.match(setupOutput, new RegExp(`skills: updated=0, unchanged=0, backed_up=${backedUpSkillNames.length}, skipped=0, removed=${backedUpSkillNames.length}`));
|
|
2075
|
+
});
|
|
2076
|
+
});
|
|
2077
|
+
}
|
|
2078
|
+
finally {
|
|
2079
|
+
await rm(wd, { recursive: true, force: true });
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
it("preserves customized legacy user skills during plugin cleanup", async () => {
|
|
2083
|
+
const wd = await mkdtemp(join(tmpdir(), "omx-setup-install-mode-"));
|
|
2084
|
+
try {
|
|
2085
|
+
await withIsolatedUserHome(wd, async (codexHomeDir) => {
|
|
2086
|
+
await withTempCwd(wd, async () => {
|
|
2087
|
+
await setup({ scope: "user", installMode: "legacy" });
|
|
2088
|
+
await seedPluginCacheFromInstalledSkills(codexHomeDir);
|
|
2089
|
+
const askSkillPath = join(codexHomeDir, "skills", "ask", "SKILL.md");
|
|
2090
|
+
const wikiSkillDir = join(codexHomeDir, "skills", "wiki");
|
|
2091
|
+
await writeFile(askSkillPath, "# customized ask\n");
|
|
2092
|
+
await setup({ scope: "user", installMode: "plugin" });
|
|
2093
|
+
assert.equal(await readFile(askSkillPath, "utf-8"), "# customized ask\n");
|
|
2094
|
+
assert.equal(existsSync(wikiSkillDir), false);
|
|
2095
|
+
});
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
finally {
|
|
2099
|
+
await rm(wd, { recursive: true, force: true });
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
});
|
|
2103
|
+
//# sourceMappingURL=setup-install-mode.test.js.map
|