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

11 lines
557 B
Bash
Executable File

#!/usr/bin/env bash
# Mock wrapper for amp — runs the bundled mock-agent in this agent's
# stdout protocol. Amp's `-x --stream-json` emits the Claude Code-compatible
# stream JSON format, so the mock renders via the claude renderer. The
# wrapper accepts (and ignores) any flags the real CLI would take; the mock
# doesn't honor mode selection or tool gates — 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 amp "$@"