- startSession: trusts the workspace in ~/.claude.json, runs interactive claude in tmux with PEPPA_SESSION_ID, remain-on-exit for crash status - answerAndDeliver: PM answers go into the terminal (permission menu keys, approval -> task status + instruction, free text via bracketed paste) - peppa-hook: session-start/prompt/notification/stop/session-end update session status and raise PM questions; never fails the Claude session - watchdog: detects dead panes, vanished sessions, stalls, usage limits; launchd agent under caffeinate (scripts/install-launchd.sh) - CLI: peppa session start|list|send|attach|stop, peppa watchdog Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
391 B
Bash
Executable File
8 lines
391 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:-}" ] && { cat >/dev/null; exit 0; }
|
|
[ -f "$PEPPA_ROOT/.env" ] && set -a && . "$PEPPA_ROOT/.env" && set +a
|
|
mkdir -p "$HOME/.peppa"
|
|
exec "$PEPPA_ROOT/node_modules/.bin/tsx" "$PEPPA_ROOT/packages/runner/src/hook.ts" "$@"
|