Files
shockbot/utils
Colin McDonnell 995b39a122 refactor: server-side user prompt construction with @pullfrog tag check (#123)
- Move prompt construction logic from action-side to server-side (webhook handler and trigger page)
- Include issue/comment body in USER PROMPT only if @pullfrog was tagged (checked server-side using containsTriggerPhrase)
- Add repoInstructions as separate REPO-LEVEL INSTRUCTIONS section in FULL prompt
- Macro-expand repoInstructions server-side before sending to action
- Trigger page never includes body (manual triggers)
- Remove redundant customInstructions field (now combined into prompt server-side)

files changed:
- action/external.ts: add repoInstructions to WriteablePayload, remove customInstructions
- action/utils/payload.ts: add repoInstructions to JsonPayload schema, remove customInstructions
- action/utils/repoSettings.ts: add repoInstructions to RepoSettings interface
- action/utils/instructions.ts: use payload.prompt directly, add repo section to full prompt, add repo field to ResolvedInstructions
- utils/webhooks/handleWebhook.ts: check @pullfrog tag and include body if tagged, macro-expand repoInstructions
- app/trigger/[owner]/[repo]/[number]/page.tsx: macro-expand repoInstructions (never include body)
2026-01-19 17:16:20 +00:00
..
2026-01-16 18:43:09 +00:00
2026-01-16 18:43:09 +00:00
2025-12-17 12:59:43 -08:00
2026-01-15 22:06:53 +00:00
2026-01-16 07:16:25 +00:00
2026-01-16 07:16:25 +00:00
2026-01-16 07:16:25 +00:00
2026-01-16 18:43:09 +00:00
2026-01-16 18:43:09 +00:00
2025-12-27 16:28:41 -08:00
2026-01-16 18:43:09 +00:00
2026-01-16 07:16:25 +00:00
2025-12-15 21:12:55 -08:00
2025-12-17 12:43:08 -08:00
2026-01-16 07:16:25 +00:00
2026-01-16 18:43:09 +00:00