Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(docs): add Linq integration (#1077)

Colton Paddena074f8586c9f
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.ts
index d3618ba18..aaa2af7c5 100644
--- a/apps/docs/lib/integrations/data.ts
+++ b/apps/docs/lib/integrations/data.ts
@@ -753,6 +753,52 @@ export default channel;
See the [Liveblocks adapter documentation](https://chat-sdk.dev/adapters/vendor-official/liveblocks) for supported events, capabilities, and credentials.`,
configure: `Create a Liveblocks webhook, set \`LIVEBLOCKS_SECRET_KEY\` and \`LIVEBLOCKS_WEBHOOK_SECRET\`, and send comment events to \`/eve/v1/liveblocks\`. The adapter maps rooms to channels, comment threads to threads, and comments to messages. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,
},
+ "chat-sdk-linq": {
+ logo: "linq",
+ docsHref: "/docs/channels/chat-sdk",
+ badge: "Provider official",
+ keywords: ["chat sdk", "linq", "imessage", "sms", "apple messages", "tapbacks", "phone"],
+ install: `Install eve, Chat SDK, the Linq adapter, and a state adapter:
+
+\`\`\`bash
+npm install eve@latest chat @linqapp/chat-sdk-adapter @chat-adapter/state-memory
+\`\`\`
+
+The in-memory state store is for local development. Use Redis or PostgreSQL in production. This adapter is built and maintained by Linq.`,
+ quickStart: `Create \`agent/channels/linq.ts\`:
+
+\`\`\`ts
+// agent/channels/linq.ts
+import { createLinqAdapter } from "@linqapp/chat-sdk-adapter";
+import { createMemoryState } from "@chat-adapter/state-memory";
+import { chatSdkChannel } from "eve/channels/chat-sdk";
+
+export const { bot, channel, send } = chatSdkChannel({
+ userName: "My Agent",
+ adapters: {
+ linq: createLinqAdapter({
+ apiKey: process.env.LINQ_API_KEY!,
+ signingSecret: process.env.LINQ_WEBHOOK_SECRET!,
+ }),
+ },
+ state: createMemoryState(),
+});
+
+bot.onNewMention(async (thread, message) => {
+ await thread.subscribe();
+ await send(message.text, { thread });
+});
+
+bot.onSubscribedMessage(async (thread, message) => {
+ await send(message.text, { thread });
+});
+
+export default channel;
+\`\`\`
+
+See the [Linq adapter documentation](https://chat-sdk.dev/adapters/vendor-official/linq) for supported events, capabilities, and credentials.`,
+ configure: `Create a Linq account, set \`LINQ_API_KEY\` and \`LINQ_WEBHOOK_SECRET\`, then point its signed webhook at \`/eve/v1/linq\`. Linq supports iMessage and SMS DMs and group chats, media, buffered streaming, and tapbacks. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,
+ },
};
const extensionPresentations: Record<string, ExtensionPresentation> = {
diff --git a/apps/docs/lib/integrations/logos.tsx b/apps/docs/lib/integrations/logos.tsx
index 307b8bb36..a2d3dbe37 100644
--- a/apps/docs/lib/integrations/logos.tsx
+++ b/apps/docs/lib/integrations/logos.tsx
@@ -363,6 +363,19 @@ export const liveblocksLogo = (props: LogoProps) => (
</svg>
);
+export const linqLogo = (props: LogoProps) => (
+ <svg fill="none" viewBox="0 0 629.586 757.741" xmlns="http://www.w3.org/2000/svg" {...props}>
+ <path
+ fill="currentColor"
+ d="M444.2 3.316c-4.4 1.8-18.1 7.2-30.5 12.1-12.4 4.8-27.4 10.7-33.5 13-6 2.4-20.4 8-32 12.5-11.5 4.5-23.9 9.3-27.5 10.7-19.3 7.6-47.2 18.4-67.5 26.3-12.6 4.8-31.8 12.2-42.5 16.4-24.4 9.6-38.8 15.2-65.5 25.6-11.5 4.4-27.7 10.8-36 14-8.2 3.3-24.9 9.7-36.9 14.4-12.1 4.7-22.1 8.7-22.3 8.9-.1.2 2.8 7.8 6.6 16.8 8.2 19.6 41.6 99 47.9 113.9 2.4 5.8 5.9 14.1 7.7 18.5s7.6 18.3 13 31c5.3 12.6 18 42.6 28 66.5 10.1 23.9 27.8 66.2 39.5 94s22 52.2 22.8 54.2c.8 2.1 2.1 3.8 2.8 3.8s6.8-2.2 13.6-4.9c6.8-2.8 20-8 29.3-11.6 36.5-14.3 99.4-39.1 152.5-60 21.7-8.6 43.1-17 47.5-18.7 4.4-1.8 20.2-8 35-13.8 14.9-5.9 34-13.4 42.5-16.8 61.3-23.9 85-33.3 85-33.8s-18.4-44-32-75.9c-3.7-8.8-15.2-35.8-25.5-60-19.2-45.1-38.6-90.9-63.3-149-7.7-18.2-18.2-42.7-23.2-54.5-23.9-56.4-24.2-57-25.9-56.9-.9 0-5.2 1.5-9.6 3.3m-1.1 28.8c8.1 18.8 15.6 37.2 15.6 38.3 0 .8-1 1.7-2.2 2.1-2.9.8-21.3 7.9-51.8 19.9-12.9 5.1-34.1 13.4-47 18.4-12.9 5.1-30.2 11.8-38.5 15.1-23.9 9.3-26.6 10.3-27.6 9.3-1.4-1.4-17-39.4-16.7-40.5.4-1 22.8-10.3 45.8-18.9 5.8-2.1 11.4-4.3 12.5-4.9 1.1-.5 20.2-8 42.5-16.6s45.9-17.9 52.5-20.5 12.3-4.8 12.7-4.8c.4-.1 1.4 1.4 2.2 3.1m32.6 77c4 9.5 13.6 31.9 21.2 49.7s14.1 33.4 14.4 34.5c.5 2.2-1 2.8-98.6 40.8-14 5.5-26.8 10.5-28.5 11.3-11.3 4.9-39.1 15.2-39.8 14.6-.4-.4-5.9-13.1-12.3-28.2s-16-37.8-21.4-50.4c-7.4-17.3-9.5-23.3-8.7-24.1.7-.6 10.4-4.7 21.7-9.1 64.4-25.1 98.1-38.3 119.5-46.7 13.2-5.2 24.3-9.5 24.6-9.5.3-.1 3.9 7.7 7.9 17.1m-254.8 27.9c4.3 10.1 8.6 20.3 9.7 22.5l2 4.2 17.7-6.9c9.8-3.8 18.1-6.6 18.5-6.2.5.7 7.5 17.1 29.4 69.3 2.9 6.9 8.1 19 11.5 27 8.8 20.8 9.6 22.9 8.5 23.8-.6.5-9.8 4.3-20.5 8.5-25.3 9.9-77.8 30.4-95 37.2-25.5 10.1-50.3 19.5-50.5 19.3s-6.7-15.6-14.5-34.3-20.1-48-27.3-65c-25.2-60.1-27.7-66-27.7-67 0-.6 5.7-3.2 12.8-5.9 7-2.7 22.4-8.7 34.2-13.3s24.9-9.7 29-11.3 17.6-7 30-11.9 23-8.8 23.5-8.7c.6.1 4.5 8.5 8.7 18.7m311.4 105.5c5.6 13.1 16.8 39.4 24.8 58.3 8.1 19 14.3 34.8 13.9 35.1-.5.4-5.2 2.5-10.7 4.6-5.4 2.1-10 4.4-10.3 5.1-.3.6 1.6 6 4.1 11.9 2.6 5.9 4.3 11.1 3.9 11.4-.5.4-5.6 2.6-11.5 4.9-9.9 4-10.6 4.4-9.8 6.4.4 1.2 2.4 6 4.4 10.5 2 4.6 3.6 8.9 3.6 9.6s-5.3 3.4-11.7 5.9c-6.5 2.5-33.6 13.2-60.2 23.6-26.7 10.5-48.8 18.8-49.1 18.4-.4-.5-2.7-5.8-5.2-11.8-9.9-23.7-36.8-87.4-57-134.7-3.9-9.2-6.8-17.3-6.5-18.1s2.3-2 4.4-2.7 5.2-1.8 6.8-2.5c1.7-.8 7.1-2.9 12-4.8 5-1.9 15.5-6.1 23.5-9.2s30-11.7 49-19.2c19-7.4 42.4-16.5 52-20.3s18-6.8 18.5-6.7c.6.2 5.6 11.1 11.1 24.3m-198.1 62.7c2.6 6.1 8.1 19.1 12.2 28.7s9 21.1 10.8 25.5c5.4 13 10.5 25.2 24 57 16.6 39 17.6 41.8 16.8 42.6-.5.4-5.5 2.6-11.3 4.8s-24.9 9.7-42.4 16.6c-17.6 6.9-32.3 12.2-32.7 11.8-.4-.5-2.6-5.3-4.9-10.8s-4.6-10.4-5-10.9c-.8-.8-21.5 6.6-23.3 8.4-.5.4 1.3 5.8 3.8 12.1 4.4 10.6 4.6 11.4 2.9 12.6-1 .7-2.2 1.3-2.6 1.3-.5 0-11.6 4.3-24.9 9.6-13.2 5.3-24.6 9.4-25.3 9.1-1.2-.5-4.7-8.5-24.7-56.2-12.8-30.7-29.8-70.9-40.6-96.4-2.4-5.7-4.3-11-4.1-11.8s7.2-4.1 15.8-7.5c8.5-3.3 21.6-8.4 29-11.3 22.4-8.8 46.2-18.1 51.3-20 2.9-1.1 5.2-1.4 5.7-.9s2.8 5.4 5 10.9c2.3 5.5 4.3 10.1 4.5 10.3.2.3 22.7-8.6 23.3-9.3.3-.2-1.4-4.8-3.6-10.2-2.3-5.4-4.2-10.4-4.4-11.2-.2-.9 5.9-3.8 19.2-9.1 10.7-4.3 19.8-7.6 20.2-7.4.3.2 2.7 5.5 5.3 11.7m253.1 66.8c2.5 5.6 4.1 10.6 3.7 11-1.6 1.5-21.8 8.8-22.4 8.1-1-1-8.9-20.3-8.9-21.6 0-1.5 21.2-9.6 22.4-8.6.4.4 2.8 5.4 5.2 11.1"
+ />
+ <path
+ fill="currentColor"
+ d="M31.7 176.616c0 .7-1.5 9.6-3.4 20-1.9 10.3-6 33-9.1 50.3s-8.5 47.2-12 66.5c-3.5 19.2-6.7 37.3-7.1 40.2-.7 5.4.6 8.7 21.6 58.3 4.5 10.6 15 35.7 27 64.5 6.2 14.8 13.8 33.1 17 40.5s7.9 18.7 10.5 25 16.4 39.4 30.7 73.5 27.7 66 29.8 71c22 53.1 29.7 70.8 30.8 71.2.7.3 3-.2 5-1 2-.9 11.1-4.5 20.2-8.1 9.1-3.5 28.4-11.1 43-16.9s36-14.2 47.5-18.7c11.6-4.5 21.9-8.6 23-9.1 1.9-.8 59.7-23.7 89.5-35.4 27.5-10.8 43-16.9 61-24 10.2-4 28.4-11.2 40.5-15.9 12.1-4.8 22.9-9.1 24-9.6s8.5-3.4 16.5-6.5c16.6-6.5 36.2-14.4 36.5-14.7s17.9-54.8 40.1-123.8c5.8-17.9 11.7-35.9 13.1-40.2 1.4-4.2 2.4-8.1 2.2-8.6-.2-.6-10.5 3-22.9 7.9s-28.1 11.1-35 13.8-21 8.3-31.5 12.4c-10.4 4.1-26.4 10.4-35.5 14s-26.8 10.6-39.5 15.5c-12.6 5-31.8 12.5-42.5 16.7-10.7 4.3-31.2 12.3-45.5 18-14.3 5.6-34.1 13.4-44 17.3s-36.4 14.3-59 23.2c-22.5 8.9-46.8 18.4-53.8 21.2-7.2 2.8-13.2 4.7-13.7 4.2-.4-.5-2.9-6.1-5.5-12.4s-6.7-16.2-9.2-22-9.7-22.9-16-38c-6.4-15.1-14-33.4-17-40.5-3-7.2-8.3-19.8-11.8-28-3.4-8.3-11.5-27.6-18-43s-14.1-33.6-17-40.5-9.4-22.4-14.5-34.5-10.3-24.5-11.5-27.5-6.6-15.9-12-28.5c-5.3-12.7-11.2-26.6-13-31s-5.8-13.9-8.8-21c-3-7.2-8.5-20.2-12.2-29-6.4-15.2-8.5-19.4-8.5-16.8"
+ />
+ </svg>
+);
+
export const googlechatLogo = (props: LogoProps) => <SiGooglechat color="default" {...props} />;
export const whatsappLogo = (props: LogoProps) => <SiWhatsapp color="default" {...props} />;
@@ -504,6 +517,7 @@ export const logos = {
sendblue: sendblueLogo,
novu: novuLogo,
liveblocks: liveblocksLogo,
+ linq: linqLogo,
googlechat: googlechatLogo,
whatsapp: whatsappLogo,
messenger: messengerLogo,
diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.ts
index c8bf233da..be8c04fbc 100644
--- a/packages/eve-catalog/src/index.ts
+++ b/packages/eve-catalog/src/index.ts
@@ -206,6 +206,13 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [
tagline: "Bring your agent into Liveblocks comment threads, mentions, and reactions.",
surfaces: { scaffoldable: false, gallery: true },
},
+ {
+ slug: "chat-sdk-linq",
+ name: "Linq",
+ kind: "channel",
+ tagline: "iMessage and SMS conversations, media, and tapbacks through Linq.",
+ surfaces: { scaffoldable: false, gallery: true },
+ },
{
slug: "agent-browser",
name: "agent-browser",