This commit is contained in:
Colin McDonnell
2025-11-05 22:35:56 -08:00
parent 220652f27b
commit f31e3a026e
+6
View File
@@ -18,6 +18,8 @@ export interface MainResult {
error?: string | undefined;
}
export type PromptJSON = {};
export async function main(inputs: Inputs): Promise<MainResult> {
try {
log.info("Starting agent run...");
@@ -36,6 +38,10 @@ export async function main(inputs: Inputs): Promise<MainResult> {
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,