- runner: provider abstraction (claude | codex); per-run launch.sh keeps long argv out of tmux; Codex via notify callback + -c config for rules and the peppa MCP server; session env carries DATABASE_URL/PEPPA_HOME - testkit: mock-claude / mock-codex driven by scenarios — real hooks, notify, MCP calls, raw-mode TUI input with bracketed paste, permission dialog, usage limits, hangs, crashes, /clear - 21 CJM tests on an isolated DB, tmux server and state dir (all green) - fix: watchdog crash/stall alerts showed blank lines instead of the tail - bins load .env without overriding the caller's env; tmux socket option - AGENTS.md (was CLAUDE.md) and shared RULES.md: mock-first rule with a mock prefix for anything blocked on external dependencies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
407 B
Bash
Executable File
8 lines
407 B
Bash
Executable File
#!/usr/bin/env bash
|
|
PEPPA_ROOT="$(cd "$(dirname "$(readlink -f "$0")")/../../.." && pwd)"
|
|
# Not a Peppa session: nothing to do, skip node startup.
|
|
[ -z "${PEPPA_SESSION_ID:-}" ] && { [ "${1:-}" = codex-notify ] || cat >/dev/null; exit 0; }
|
|
. "$PEPPA_ROOT/scripts/lib/load-env.sh"
|
|
mkdir -p "${PEPPA_HOME:-$HOME/.peppa}"
|
|
exec "$PEPPA_ROOT/node_modules/.bin/tsx" "$PEPPA_ROOT/packages/runner/src/hook.ts" "$@"
|