diff --git a/.gitignore b/.gitignore index cdcab433..44b0a783 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ coverage/ .pi_config/ tui-debug.log compaction-results/ +.opencode/ diff --git a/.opencode/tool/sleep.ts b/.opencode/tool/sleep.ts deleted file mode 100644 index 97ecebb0..00000000 --- a/.opencode/tool/sleep.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { tool } from "@opencode-ai/plugin" - -export default tool({ - description: "Sleep for a specified number of milliseconds", - args: { - ms: tool.schema.number().describe("Number of milliseconds to sleep"), - }, - async execute(args, context) { - if (context.abort.aborted) { - throw new Error("Sleep aborted") - } - await new Promise((resolve, reject) => { - const timeout = setTimeout(resolve, args.ms) - const onAbort = () => { - clearTimeout(timeout) - reject(new Error("Sleep aborted")) - } - context.abort.addEventListener("abort", onAbort, { once: true }) - }) - return `Slept for ${args.ms}ms` - }, -})