mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
10 lines
456 B
Bash
10 lines
456 B
Bash
#!/usr/bin/env bash
|
|||
|
|
# Mock wrapper for codex — runs the bundled mock-agent in this agent's
|
||
|
|
# stdout protocol. The wrapper accepts (and ignores) any flags the real
|
||
|
|
# CLI would take; the mock doesn't honor model selection, tool gates, or
|
||
|
|
# permission modes — recording selection is via OD_MOCKS_*
|
||
|
|
# env vars (see ../README.md).
|
||
|
|
set -euo pipefail
|
||
|
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
||
|
|
exec node "$HERE/../mock-agent.mjs" --as codex "$@"
|