@agentconnect.md/daemon 1.0.0-rc.176 → 1.0.0-rc.178
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/index.js +42 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13336,6 +13336,44 @@ const SessionToolBodyChunk = object({
|
|
|
13336
13336
|
nextOffset: number().int().optional()
|
|
13337
13337
|
});
|
|
13338
13338
|
//#endregion
|
|
13339
|
+
//#region ../protocol/dist/frames/channel.js
|
|
13340
|
+
/**
|
|
13341
|
+
* Channel agent directory (D→C REQ → REP) — agent collaboration lookup.
|
|
13342
|
+
*
|
|
13343
|
+
* An agent asks (via a daemon-side tool) "who else is in this channel?". The
|
|
13344
|
+
* daemon forwards it to the CP — the ONLY authority for the FULL channel roster,
|
|
13345
|
+
* because agents in one channel may run on different daemons (each daemon knows
|
|
13346
|
+
* only its own agents). The CP joins the channel's integrations to their agents
|
|
13347
|
+
* and returns their public metadata (name / displayName / description / status).
|
|
13348
|
+
* Metadata only — never message content (§1/§12).
|
|
13349
|
+
*
|
|
13350
|
+
* Direction is daemon→CP (like `auth` / `register`): the daemon sends the REQ and
|
|
13351
|
+
* the CP replies with `channel/agents/ok` (corr = the req id).
|
|
13352
|
+
*/
|
|
13353
|
+
/** One agent visible in a channel — the collaboration directory entry. */
|
|
13354
|
+
const ChannelAgent = object({
|
|
13355
|
+
agentId: string().uuid(),
|
|
13356
|
+
name: string(),
|
|
13357
|
+
displayName: string().optional(),
|
|
13358
|
+
description: string().optional(),
|
|
13359
|
+
status: _enum([
|
|
13360
|
+
"active",
|
|
13361
|
+
"inactive",
|
|
13362
|
+
"paused"
|
|
13363
|
+
])
|
|
13364
|
+
});
|
|
13365
|
+
/** D→C REQ: list the agents in a channel (for the asking agent's collaboration tool). */
|
|
13366
|
+
const ChannelAgentsReq = object({
|
|
13367
|
+
platform: Platform,
|
|
13368
|
+
channel: string()
|
|
13369
|
+
});
|
|
13370
|
+
/** C→D REP (corr = req id): every agent in the channel across all daemons. */
|
|
13371
|
+
const ChannelAgentsOk = object({
|
|
13372
|
+
platform: Platform,
|
|
13373
|
+
channel: string(),
|
|
13374
|
+
agents: array(ChannelAgent)
|
|
13375
|
+
});
|
|
13376
|
+
//#endregion
|
|
13339
13377
|
//#region ../protocol/dist/frames/workspace.js
|
|
13340
13378
|
/**
|
|
13341
13379
|
* Agent workspace file browsing (C→D REQ → REP) — the console's on-demand pulls.
|
|
@@ -13724,6 +13762,8 @@ const FRAME_SCHEMAS = {
|
|
|
13724
13762
|
"session/history/page": SessionHistoryPage,
|
|
13725
13763
|
"session/tool-body": SessionToolBodyReq,
|
|
13726
13764
|
"session/tool-body/chunk": SessionToolBodyChunk,
|
|
13765
|
+
"channel/agents": ChannelAgentsReq,
|
|
13766
|
+
"channel/agents/ok": ChannelAgentsOk,
|
|
13727
13767
|
"workspace/list": WorkspaceListReq,
|
|
13728
13768
|
"workspace/list/page": WorkspaceListPage,
|
|
13729
13769
|
"workspace/read": WorkspaceReadReq,
|
|
@@ -13804,6 +13844,8 @@ discriminatedUnion("type", [
|
|
|
13804
13844
|
frame("session/history/page", FRAME_SCHEMAS["session/history/page"]),
|
|
13805
13845
|
frame("session/tool-body", FRAME_SCHEMAS["session/tool-body"]),
|
|
13806
13846
|
frame("session/tool-body/chunk", FRAME_SCHEMAS["session/tool-body/chunk"]),
|
|
13847
|
+
frame("channel/agents", FRAME_SCHEMAS["channel/agents"]),
|
|
13848
|
+
frame("channel/agents/ok", FRAME_SCHEMAS["channel/agents/ok"]),
|
|
13807
13849
|
frame("workspace/list", FRAME_SCHEMAS["workspace/list"]),
|
|
13808
13850
|
frame("workspace/list/page", FRAME_SCHEMAS["workspace/list/page"]),
|
|
13809
13851
|
frame("workspace/read", FRAME_SCHEMAS["workspace/read"]),
|