Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(routines): type the partly-done attempt's options
milind-sonifc0e56df4126
diff --git a/server/routines.test.ts b/server/routines.test.tsindex 2500a76c8e..1cf1f981d2 100644--- a/server/routines.test.ts+++ b/server/routines.test.ts@@ -305,7 +305,7 @@ describe("bounded scheduled overlap and run health", () => {const h = harness(start);const routine = h.manager.create({ ...input(), enabled: false });const event = (threadId: string, patch: Record<string, unknown>) => h.manager.handleRuntimeEvent({ eventId: `e-${Math.random()}`, provider: "fake", threadId, createdAt: new Date().toISOString(), ...patch } as Parameters<typeof h.manager.handleRuntimeEvent>[0]);- const attempt = async (threadId: string, partial: boolean, { reply = true, cutOff = false, stopReason } = {}) => {+ const attempt = async (threadId: string, partial: boolean, { reply = true, cutOff = false, stopReason }: { reply?: boolean; cutOff?: boolean; stopReason?: string } = {}) => {h.manager.runNow(routine.id); await h.manager.tick();if (reply) event(threadId, { type: "item.completed", itemType: "assistant_text", itemId: "reply", text: "Here is the summary." });event(threadId, { type: "runtime.error", message: "Stopped because the tool call “read_file” failed.", terminal: true, ...(partial ? { partial: true } : {}) });