Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(docs): add Photon integration (#1059)

Colton Paddenf8b5ecfeb3bf
diff --git a/apps/docs/lib/integrations/data.ts b/apps/docs/lib/integrations/data.ts
index 62c356625..a4e09dc31 100644
--- a/apps/docs/lib/integrations/data.ts
+++ b/apps/docs/lib/integrations/data.ts
@@ -846,6 +846,65 @@ export default channel;
See the [Kapso adapter documentation](https://chat-sdk.dev/adapters/vendor-official/kapso) for supported events, capabilities, and credentials.`,
configure: `Connect a WhatsApp number in Kapso, set \`KAPSO_API_KEY\`, \`KAPSO_PHONE_NUMBER_ID\`, and \`KAPSO_WEBHOOK_SECRET\`, then point the Kapso webhook at \`/eve/v1/kapso\`. Use this provider-managed option when you do not want to integrate directly with the WhatsApp Cloud API. See the [Chat SDK channel docs](/docs/channels/chat-sdk) for eve session dispatch, state, streaming, and human-in-the-loop behavior.`,
},
+ "chat-sdk-photon": {
+ logo: "photon",
+ docsHref: "/docs/channels/chat-sdk",
+ badge: "Provider official",
+ keywords: [
+ "chat sdk",
+ "imessage",
+ "apple messages",
+ "sms",
+ "mms",
+ "rcs",
+ "photon",
+ "sendblue",
+ "linq",
+ "agentphone",
+ "dial",
+ ],
+ install: `Install eve, Chat SDK, the Photon adapter, and a state adapter:
+
+\`\`\`bash
+npm install eve@latest chat @photon-ai/chat-adapter-imessage @chat-adapter/state-memory
+\`\`\`
+
+The in-memory state store is for local development. Use Redis or PostgreSQL in production. The adapter is vendor-official.`,
+ quickStart: `Create \`agent/channels/imessage.ts\`:
+
+\`\`\`ts
+// agent/channels/imessage.ts
+import { createiMessageAdapter } from "@photon-ai/chat-adapter-imessage";
+import { createMemoryState } from "@chat-adapter/state-memory";
+import { chatSdkChannel } from "eve/channels/chat-sdk";
+
+export const { bot, channel, send } = chatSdkChannel({
+ userName: "My Agent",
+ adapters: {
+ imessage: createiMessageAdapter({
+ local: false,
+ projectId: process.env.IMESSAGE_PROJECT_ID,
+ projectSecret: process.env.IMESSAGE_PROJECT_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 [Photon adapter documentation](https://chat-sdk.dev/adapters/vendor-official/photon) for all supported events and credentials.`,
+ configure: `Set \`IMESSAGE_PROJECT_ID\` and \`IMESSAGE_PROJECT_SECRET\`, then point Photon’s signed webhook at \`/eve/v1/imessage\`. Photon supports cloud, self-hosted, and local macOS deployments. 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 ef8ab35e3..cfb6c0570 100644
--- a/apps/docs/lib/integrations/logos.tsx
+++ b/apps/docs/lib/integrations/logos.tsx
@@ -390,6 +390,15 @@ export const kapsoLogo = (props: LogoProps) => (
</svg>
);
+export const photonLogo = (props: LogoProps) => (
+ <svg fill="none" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" {...props}>
+ <path
+ d="m34 13-4 16h9l4-16h-9Zm-17 13-4 16h9l4-16h-9Zm16 10-4 16h9l4-16h-9Z"
+ fill="currentColor"
+ />
+ </svg>
+);
+
export const googlechatLogo = (props: LogoProps) => <SiGooglechat color="default" {...props} />;
export const whatsappLogo = (props: LogoProps) => <SiWhatsapp color="default" {...props} />;
@@ -533,6 +542,7 @@ export const logos = {
liveblocks: liveblocksLogo,
linq: linqLogo,
kapso: kapsoLogo,
+ photon: photonLogo,
googlechat: googlechatLogo,
whatsapp: whatsappLogo,
messenger: messengerLogo,
diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.ts
index 2882bc3a5..fed9ba2e1 100644
--- a/packages/eve-catalog/src/index.ts
+++ b/packages/eve-catalog/src/index.ts
@@ -220,6 +220,13 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [
tagline: "Managed WhatsApp conversations, media, buttons, and history through Kapso.",
surfaces: { scaffoldable: false, gallery: true },
},
+ {
+ slug: "chat-sdk-photon",
+ name: "Photon",
+ kind: "channel",
+ tagline: "Cloud, self-hosted, and local iMessage messaging through Photon.",
+ surfaces: { scaffoldable: false, gallery: true },
+ },
{
slug: "agent-browser",
name: "agent-browser",