peppa/packages/cli/bin/git-credential-peppa
Асель 1df550bb86 Add Codex provider, mock agents and end-to-end CJM suite
- 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>
2026-11-12 20:09:43 +05:00

12 lines
544 B
Bash
Executable File

#!/usr/bin/env bash
# Git credential helper: answers for the Peppa Gitea host with peppa-bot's token.
# Enabled per repo (never globally): git config credential.helper peppa
PEPPA_ROOT="$(cd "$(dirname "$(readlink -f "$0")")/../../.." && pwd)"
[ "$1" = "get" ] || exit 0
. "$PEPPA_ROOT/scripts/lib/load-env.sh"
want="${GITEA_URL#*://}"; host=""
while IFS='=' read -r k v; do [ -z "$k" ] && break; [ "$k" = host ] && host="$v"; done
[ "$host" = "$want" ] && [ -n "$GITEA_TOKEN" ] || exit 0
echo "username=peppa-bot"
echo "password=$GITEA_TOKEN"