@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.
- package/dist/{acp-host-DE2r7uCO.js → acp-host-CRC53GOb.js} +21 -4
- package/dist/acp-host-CRC53GOb.js.map +1 -0
- package/dist/{agent-list-BwgY3Xqv.js → agent-list-BX6JkB38.js} +2 -2
- package/dist/{agent-list-BwgY3Xqv.js.map → agent-list-BX6JkB38.js.map} +1 -1
- package/dist/{chat--hmAp3lB.js → chat-Cw-hbL7Z.js} +3 -3
- package/dist/{chat--hmAp3lB.js.map → chat-Cw-hbL7Z.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/{load-agents-hq5NXMmx.js → load-agents-DoFXzJLh.js} +15 -4
- package/dist/load-agents-DoFXzJLh.js.map +1 -0
- package/dist/{login-EVa3UJRh.js → login-B6E7mHeA.js} +4 -4
- package/dist/{login-EVa3UJRh.js.map → login-B6E7mHeA.js.map} +1 -1
- package/dist/{run-foreground-B05rDr1z.js → run-foreground-BeVJU31s.js} +51142 -603
- package/dist/run-foreground-BeVJU31s.js.map +1 -0
- package/dist/run-foreground-CHDDAH5L.js +2 -0
- package/package.json +1 -1
- package/dist/acp-host-DE2r7uCO.js.map +0 -1
- package/dist/load-agents-hq5NXMmx.js.map +0 -1
- package/dist/run-foreground-B05rDr1z.js.map +0 -1
- package/dist/run-foreground-Bcg0RA3e.js +0 -2
|
@@ -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-
|
|
10640
|
+
//# sourceMappingURL=acp-host-CRC53GOb.js.map
|