@agentconnect.md/daemon 1.0.0-rc.235 → 1.0.0-rc.236

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,7 +252,8 @@ const AuthOk = object({
252
252
  const Platform = _enum([
253
253
  "slack",
254
254
  "telegram",
255
- "webchat"
255
+ "webchat",
256
+ "discord"
256
257
  ]);
257
258
  const SessionKey = object({
258
259
  platform: Platform,
@@ -325,7 +326,11 @@ const DrainDone = object({ released: array(SessionKey) });
325
326
  * platform output).
326
327
  */
327
328
  const CronTarget = object({
328
- platform: _enum(["slack", "telegram"]).default("slack"),
329
+ platform: _enum([
330
+ "slack",
331
+ "telegram",
332
+ "discord"
333
+ ]).default("slack"),
329
334
  channel: string(),
330
335
  integrationId: string().uuid().optional()
331
336
  });
@@ -565,22 +570,43 @@ const IntegrationTelegramConfig = object({
565
570
  bindRules: array(IntegrationBindRule).default([])
566
571
  });
567
572
  /**
573
+ * The Discord config the daemon needs to open the Gateway + route (discord.js).
574
+ * Discord authenticates the Gateway with a SINGLE bot token — no Slack-style
575
+ * app-level token and no signing secret. `applicationId` is public metadata (the
576
+ * client id for the OAuth2 bot-invite URL); it is not secret material.
577
+ */
578
+ const IntegrationDiscordConfig = object({
579
+ botToken: string(),
580
+ applicationId: string().optional(),
581
+ allowedUserIds: array(string()).default([]),
582
+ bindRules: array(IntegrationBindRule).default([])
583
+ });
584
+ /**
568
585
  * One platform integration, owned by exactly one agent. Also the element type of
569
586
  * `RegisterOk.integrations[]` (the per-daemon reconcile set). Discriminated on
570
- * `platform`: the daemon opens a Slack Socket Mode connection or a Telegram
571
- * long-poll from whichever variant is delivered.
587
+ * `platform`: the daemon opens a Slack Socket Mode connection, a Telegram
588
+ * long-poll, or a Discord Gateway from whichever variant is delivered.
572
589
  */
573
- const IntegrationSpec = discriminatedUnion("platform", [object({
574
- integrationId: string().uuid(),
575
- agentId: string().uuid(),
576
- platform: literal("slack"),
577
- slack: IntegrationSlackConfig
578
- }), object({
579
- integrationId: string().uuid(),
580
- agentId: string().uuid(),
581
- platform: literal("telegram"),
582
- telegram: IntegrationTelegramConfig
583
- })]);
590
+ const IntegrationSpec = discriminatedUnion("platform", [
591
+ object({
592
+ integrationId: string().uuid(),
593
+ agentId: string().uuid(),
594
+ platform: literal("slack"),
595
+ slack: IntegrationSlackConfig
596
+ }),
597
+ object({
598
+ integrationId: string().uuid(),
599
+ agentId: string().uuid(),
600
+ platform: literal("telegram"),
601
+ telegram: IntegrationTelegramConfig
602
+ }),
603
+ object({
604
+ integrationId: string().uuid(),
605
+ agentId: string().uuid(),
606
+ platform: literal("discord"),
607
+ discord: IntegrationDiscordConfig
608
+ })
609
+ ]);
584
610
  /** C→D EVT — install/update an integration on the owning agent's daemon. */
585
611
  const IntegrationUpsert = IntegrationSpec;
586
612
  /** C→D EVT — remove an integration from the daemon. */
@@ -10823,4 +10849,4 @@ var AcpHost = class {
10823
10849
  //#endregion
10824
10850
  export { resolveRuntimes as C, cachedRuntimeVersions as S, encode as _, initGitInjection as a, RESERVED_MCP_SERVER_NAME as b, simpleGit as c, RELAY_DAEMON_SUBPROTOCOL as d, RELAY_DAEMON_WS_PATH as f, decodeEnvelope as g, buildEnvelope as h, prepareWorkspace as i, isFrame as l, decodeRelayDaemonFrame as m, installedRuntimes as n, probeGitVersion as o, buildRelayDaemonFrame as p, prefetchWorkspace as r, sessionGitEnv as s, AcpHost as t, normalizeGitUrl as u, MAX_FRAME_BYTES as v, cachedRuntimeNames as x, MEMORY_INDEX as y };
10825
10851
 
10826
- //# sourceMappingURL=acp-host-D9z7hKHJ.js.map
10852
+ //# sourceMappingURL=acp-host-D_V0pKJA.js.map