Files
wehub-resource-sync 070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:00:47 +08:00

10 lines
462 B
Bash
Executable File

#!/usr/bin/env bash
# Mock wrapper for opencode — 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 opencode "$@"