Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Train: tests follow the send guard's optional summary and the held reason on a resolved ask

milind-sonid80359c7817c
diff --git a/server/drivers/agents-bridge.test.ts b/server/drivers/agents-bridge.test.ts
index e0b3bb9bba..b9713c42d7 100644
--- a/server/drivers/agents-bridge.test.ts
+++ b/server/drivers/agents-bridge.test.ts
@@ -167,14 +167,14 @@ describe("what a bridged turn is listed", () => {
for (const { name, profile: turn } of everyProfile()) {
const tools = availableTools(turn) as BridgeTool[];
const bridge = createToolBridge(tools);
- const outward = names(tools).filter((tool) => reportedAs(tool).some(isOutboundTool));
+ const outward = names(tools).filter((tool) => reportedAs(tool).some((name) => isOutboundTool(name)));
expect(names(bridge.listed), name).toEqual(expect.arrayContaining(outward));
for (const hidden of bridge.hidden) {
for (const spelling of reportedAs(hidden.name)) expect(isOutboundTool(spelling), `${name}: ${spelling}`).toBe(false);
}
}
// today that is publish_page and share, listed for themselves, and the two the hot list names anyway
- expect(names(availableTools(profile({ ...FULL_CHIEF }))).filter((tool) => reportedAs(tool).some(isOutboundTool))).toEqual(["publish_page", "post_to_room", "post_to_thread", "send_voice_note", "share"]);
+ expect(names(availableTools(profile({ ...FULL_CHIEF }))).filter((tool) => reportedAs(tool).some((name) => isOutboundTool(name)))).toEqual(["publish_page", "post_to_room", "post_to_thread", "send_voice_note", "share"]);
// and the bridge's own two names are not outward either
for (const spelling of [...reportedAs(USE_TOOL), ...reportedAs(FIND_TOOL)]) expect(isOutboundTool(spelling), spelling).toBe(false);
// derived, not listed by hand: a future tool named like a send is kept,
diff --git a/server/routine-waits.test.ts b/server/routine-waits.test.ts
index 7d74db3bc8..a9e32166c7 100644
--- a/server/routine-waits.test.ts
+++ b/server/routine-waits.test.ts
@@ -56,6 +56,6 @@ describe("routine-waits heldReason propagation", () => {
behavior: "deny",
source: "timeout",
});
- expect(repeat.heldReason).toBeUndefined();
+ expect((repeat as { heldReason?: string }).heldReason).toBeUndefined();
});
});