Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Fix for #5670: keep the product name out of the broker's needs-setup message
milind-soni074a49a98b3c
diff --git a/cloudflare/composio-broker/src/app-events.test.ts b/cloudflare/composio-broker/src/app-events.test.tsindex 8158bf23e3..1d6c13fbcd 100644--- a/cloudflare/composio-broker/src/app-events.test.ts+++ b/cloudflare/composio-broker/src/app-events.test.ts@@ -708,7 +708,7 @@ describe("event types", () => {const owner = await h.install();const response = await h.call(owner, "/v1/trigger-types/gmail_own_endpoint");expect(response.status).toBe(422);- expect(await response.json()).toEqual({ error: "GMAIL_OWN_ENDPOINT can't be used yet: this event needs setup on OpenMausBot's side first. Pick another event this app offers." });+ expect(await response.json()).toEqual({ error: "GMAIL_OWN_ENDPOINT can't be used yet: this event needs webhook setup on our side first. Pick another event this app offers." });expect((await h.call(owner, "/v1/trigger-types/GMAIL_OWN_ENDPOINT")).status).toBe(422);});});diff --git a/cloudflare/composio-broker/src/triggers.ts b/cloudflare/composio-broker/src/triggers.tsindex 1a90b7e105..0092fb96e9 100644--- a/cloudflare/composio-broker/src/triggers.ts+++ b/cloudflare/composio-broker/src/triggers.ts@@ -211,7 +211,7 @@ export async function listTriggerTypes(url: URL, installation: EventInstallationexport async function getTriggerType(slug: string, env: Env) {const type = await lookupTriggerType(env, slug);if (type === NEEDS_SETUP) {- return json({ error: `${slug.toUpperCase()} can't be used yet: this event needs setup on OpenMausBot's side first. Pick another event this app offers.` }, 422);+ return json({ error: `${slug.toUpperCase()} can't be used yet: this event needs webhook setup on our side first. Pick another event this app offers.` }, 422);}return type ? json(type) : json({ error: "unknown or unsupported event type" }, 404);}diff --git a/server/app-triggers.test.ts b/server/app-triggers.test.tsindex 932148a781..291f123d8c 100644--- a/server/app-triggers.test.ts+++ b/server/app-triggers.test.ts@@ -171,7 +171,7 @@ describe("AppTriggerManager", () => {it("says an event that needs setup on our side can't be used yet, and an unknown one can't be watched", async () => {const triggers = manager();const create = (event: string) => triggers.create({ botId: "bot-1", name: "New mail", prompt: "Summarize it.", app: "gmail", event });- await expect(create("GMAIL_OWN_ENDPOINT")).rejects.toThrow("GMAIL_OWN_ENDPOINT can't be used yet: this event needs setup on OpenMausBot's side first. Pick another event this app offers.");+ await expect(create("GMAIL_OWN_ENDPOINT")).rejects.toThrow("GMAIL_OWN_ENDPOINT can't be used yet: this event needs webhook setup on our side first. Pick another event this app offers.");await expect(create("GMAIL_NOT_A_THING")).rejects.toThrow("GMAIL_NOT_A_THING is not an event OpenMausBot can watch.");expect(triggers.list()).toEqual([]);});