@agentconnect.md/daemon 1.0.0-rc.224 → 1.0.0-rc.225

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.
@@ -537,15 +537,32 @@ const IntegrationSlackConfig = object({
537
537
  bindRules: array(IntegrationBindRule).default([])
538
538
  });
539
539
  /**
540
+ * The Telegram config the daemon needs to open long-polling + route (grammY).
541
+ * Telegram has a SINGLE BotFather HTTP token — no app-level token and no signing
542
+ * secret (long-polling authenticates every getUpdates call with the bot token).
543
+ */
544
+ const IntegrationTelegramConfig = object({
545
+ botToken: string(),
546
+ allowedUserIds: array(string()).default([]),
547
+ bindRules: array(IntegrationBindRule).default([])
548
+ });
549
+ /**
540
550
  * One platform integration, owned by exactly one agent. Also the element type of
541
- * `RegisterOk.integrations[]` (the per-daemon reconcile set).
551
+ * `RegisterOk.integrations[]` (the per-daemon reconcile set). Discriminated on
552
+ * `platform`: the daemon opens a Slack Socket Mode connection or a Telegram
553
+ * long-poll from whichever variant is delivered.
542
554
  */
543
- const IntegrationSpec = object({
555
+ const IntegrationSpec = discriminatedUnion("platform", [object({
544
556
  integrationId: string().uuid(),
545
557
  agentId: string().uuid(),
546
558
  platform: literal("slack"),
547
559
  slack: IntegrationSlackConfig
548
- });
560
+ }), object({
561
+ integrationId: string().uuid(),
562
+ agentId: string().uuid(),
563
+ platform: literal("telegram"),
564
+ telegram: IntegrationTelegramConfig
565
+ })]);
549
566
  /** C→D EVT — install/update an integration on the owning agent's daemon. */
550
567
  const IntegrationUpsert = IntegrationSpec;
551
568
  /** C→D EVT — remove an integration from the daemon. */
@@ -10620,4 +10637,4 @@ var AcpHost = class {
10620
10637
  //#endregion
10621
10638
  export { cachedRuntimeNames as _, initGitInjection as a, simpleGit as c, MAX_FRAME_BYTES as d, buildEnvelope as f, RESERVED_MCP_SERVER_NAME as g, MEMORY_INDEX as h, prepareWorkspace as i, isFrame as l, encode as m, installedRuntimes as n, probeGitVersion as o, decodeEnvelope as p, prefetchWorkspace as r, sessionGitEnv as s, AcpHost as t, normalizeGitUrl as u, cachedRuntimeVersions as v, resolveRuntimes as y };
10622
10639
 
10623
- //# sourceMappingURL=acp-host-DE2r7uCO.js.map
10640
+ //# sourceMappingURL=acp-host-CRC53GOb.js.map