Packages

Prompt Runner SDK - packet-first prompt execution for Elixir and CLI workflows with verifier-owned completion, retry, repair, and git-aware repository orchestration.

Current section

Files

Jump to
prompt_runner_sdk examples simulated_recovery_packet setup.sh
Raw

examples/simulated_recovery_packet/setup.sh

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
WORKSPACE="$ROOT/workspace"
rm -rf "$ROOT/.prompt_runner" "$WORKSPACE"
mkdir -p "$WORKSPACE"
git -C "$WORKSPACE" init -q
git -C "$WORKSPACE" config user.name "Prompt Runner Example"
git -C "$WORKSPACE" config user.email "prompt-runner@example.com"
printf "# Simulated Recovery Example\n" >"$WORKSPACE/README.md"
git -C "$WORKSPACE" add README.md
git -C "$WORKSPACE" commit -q -m "initial"
echo "Workspace ready: $WORKSPACE"