diff --git a/main.ts b/main.ts index 5583c73..fd7315e 100644 --- a/main.ts +++ b/main.ts @@ -18,6 +18,8 @@ export interface MainResult { error?: string | undefined; } +export type PromptJSON = {}; + export async function main(inputs: Inputs): Promise { try { log.info("Starting agent run..."); @@ -36,6 +38,10 @@ export async function main(inputs: Inputs): Promise { log.info("Running Claude Agent SDK..."); log.box(inputs.prompt, { title: "Prompt" }); + // TODO: check if `inputs.prompts` is JSON + // if yes, check if it's a webhook payload or toJSON(github.event) + // for webhook payloads, check the specified `agent` field + const result = await claude.run({ prompt: inputs.prompt, mcpServers,