import { z } from "zod";
import { tool } from "@anthropic-ai/claude-agent-sdk";
export const finishTool = tool("finish", "Signal that the current task is complete and the agent should go back to sleep. Call this when there is nothing more to do in the current wake cycle. IMPORTANT: After calling this tool, you MUST immediately end your turn with no further tool calls or text. Do not call any more tools after finish.", {
    reason: z
        .string()
        .optional()
        .describe("Optional reason for finishing (e.g. 'task completed', 'nothing to do')"),
}, (args) => {
    return Promise.resolve({
        content: [
            {
                type: "text",
                text: `Finished: ${args.reason ?? "No further action needed."}\n\nIMPORTANT: You have called finish. Do NOT call any more tools. End your turn immediately with no further output.`,
            },
        ],
    });
});
//# sourceMappingURL=finish.js.map