update todos, cleanup

This commit is contained in:
David Blass
2025-11-19 12:25:49 -05:00
parent 06a19567c0
commit e477ad81b2
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -131,7 +131,8 @@ export async function main(inputs: Inputs): Promise<MainResult> {
// attempt JSON parsing
const parsedPrompt = JSON.parse(inputs.prompt);
if (!("~pullfrog" in parsedPrompt)) {
throw new Error("Invalid prompt: not a pullfrog webhook payload");
// is non-pullfrog JSON (probably from a GitHub event), treat it as a plain text prompt
throw new Error();
}
payload = parsedPrompt as Payload;
} catch {