Đang tải…
Đang tải…
View DoorDash spend vs caps, edit the dd-guard spending policy interactively, and reconcile the intent ledger against real order history
npx claude-code-templates@latest --command doordash/doordash-budgetManage the dd-guard spending policy: $ARGUMENTS
State: ~/.claude/dd-guard/limits.json (policy) and
~/.claude/dd-guard/ledger.jsonl (spend ledger). This command is the ONLY
sanctioned way to modify limits.json — the doordash-spend-guard hook blocks
direct command-line writes to it by design.
cat ~/.claude/dd-guard/limits.json 2>/dev/null || echo "(no policy yet — dd-guard seeds defaults on first run)"bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh status 2>/dev/null || echo "(dd-guard.sh not installed — install the doordash-spend-guard skill)"Parse $ARGUMENTS and run the matching subcommand:
status (default when no arguments)Present the dd-guard status output as a friendly table: each cap, spend to date, headroom left. Note how many ledger entries are unreconciled intents and remind that subtotals exclude fees/tips.
setInteractive policy editing:
per_order_max, daily_max, weekly_max, monthly_max,
cooldown_minutes, allowed_hours.start/end). Setting a cap to null
removes it.~/.claude/dd-guard/limits.json with the Write tool (the hook
permits interactive edits through this command's flow, not shell
redirection).reconcileMatch unpaid intents against reality:
dd-cli order history and list recent orders."status": "intent", check whether a matching
order (by date/restaurant/amount proximity) appears in history:
"status": "paid"."status": "abandoned" so it stops counting against caps.ledger.jsonl preserving all other lines untouched
(read-modify-write; keep it valid JSONL).status.