Files
open-design/mocks/bin/opencode-cli
T

8 lines
357 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Alias wrapper for opencode-cli — the primary bin name OD resolves for
# the opencode RuntimeAgentDef (bin: 'opencode-cli', fallbackBins: ['opencode']).
# Delegates to the same mock as mocks/bin/opencode.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
exec node "$HERE/../mock-agent.mjs" --as opencode "$@"