@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.
- package/dist/{acp-host-D9z7hKHJ.js → acp-host-D_V0pKJA.js} +42 -16
- package/dist/{acp-host-D9z7hKHJ.js.map → acp-host-D_V0pKJA.js.map} +1 -1
- package/dist/{agent-list-BAjZvFsO.js → agent-list-LnizWro3.js} +2 -2
- package/dist/{agent-list-BAjZvFsO.js.map → agent-list-LnizWro3.js.map} +1 -1
- package/dist/{bridge-DXIVgEzf.js → bridge-e0ZVvjJV.js} +2 -2
- package/dist/{bridge-DXIVgEzf.js.map → bridge-e0ZVvjJV.js.map} +1 -1
- package/dist/{chat-ca2lVcnb.js → chat-vW2um2DS.js} +3 -3
- package/dist/{chat-ca2lVcnb.js.map → chat-vW2um2DS.js.map} +1 -1
- package/dist/esm-shims-DxGcm4Hw.js +14 -0
- package/dist/esm-shims-DxGcm4Hw.js.map +1 -0
- package/dist/index.js +37 -46
- package/dist/index.js.map +1 -1
- package/dist/{load-agents-tb8Rcwan.js → load-agents-C3pJSVeT.js} +30 -11
- package/dist/load-agents-C3pJSVeT.js.map +1 -0
- package/dist/{login-UiyjTM47.js → login-fEVCtx9V.js} +4 -4
- package/dist/{login-UiyjTM47.js.map → login-fEVCtx9V.js.map} +1 -1
- package/dist/{run-foreground-B5RyE_L1.js → run-foreground-DKdGzA2H.js} +78002 -1097
- package/dist/run-foreground-DKdGzA2H.js.map +1 -0
- package/dist/run-foreground-zCnpcNs6.js +2 -0
- package/dist/{stdio-CwrB9yrX.js → stdio-DnS8WcXi.js} +2 -2
- package/dist/{stdio-CwrB9yrX.js.map → stdio-DnS8WcXi.js.map} +1 -1
- package/package.json +1 -1
- package/dist/load-agents-tb8Rcwan.js.map +0 -1
- package/dist/run-foreground-B5RyE_L1.js.map +0 -1
- package/dist/run-foreground-CSpqnnI0.js +0 -2
|
@@ -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([
|
|
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
|
|
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", [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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-
|
|
10852
|
+
//# sourceMappingURL=acp-host-D_V0pKJA.js.map
|