{"version":3,"file":"interrupts.mjs","names":[],"sources":["../../src/tanstack/interrupts.ts"],"sourcesContent":["import { defineInterrupt } from '@tanstack/ai'\nimport { z } from 'zod'\n\n/** Register on the server and client when using GitHub automatic approval. */\nexport const githubToolApproval = defineInterrupt({\n  id: 'github-tools.approval',\n  payloadSchema: z.object({\n    toolCallId: z.string().describe('The proposed tool call identifier.'),\n    toolName: z.string().describe('The GitHub tool to execute.'),\n    input: z.record(z.string(), z.unknown()).describe('The resolved tool input to approve.'),\n  }),\n  responseSchema: z.object({\n    approved: z.boolean().describe('Whether to execute this exact tool call.'),\n  }),\n})\n"],"mappings":";;;;AAIA,MAAa,qBAAqB,gBAAgB;CAChD,IAAI;CACJ,eAAe,EAAE,OAAO;EACtB,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC3D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CACzF,CAAC;CACD,gBAAgB,EAAE,OAAO,EACvB,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,EAC3E,CAAC;AACH,CAAC"}