@agentconnect.md/daemon 1.0.0-rc.269 → 1.0.0-rc.270

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.
@@ -1,7 +1,7 @@
1
1
  import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE-6LUnI.js";
2
2
  import { t as require_src$1 } from "./src-DDtlVutj.js";
3
3
  import { T as NEVER, _ as record, a as array, b as unknown, d as literal, l as int, m as object, o as boolean, p as number, u as intersection, v as string, x as url, y as union } from "./schemas-CQkO9hC5.js";
4
- import { d as normalizeGitUrl, x as MEMORY_INDEX } from "./load-agents-BcaxKtWB.js";
4
+ import { d as normalizeGitUrl, x as MEMORY_INDEX } from "./load-agents-DhUBoDuc.js";
5
5
  import { c as registryPath, s as registryCachePath } from "./paths-DEcUO8lC.js";
6
6
  import { delimiter, dirname, isAbsolute, join, normalize, relative, resolve, sep } from "node:path";
7
7
  import { accessSync, constants, existsSync, mkdirSync, promises, readFileSync, rmSync, writeFileSync } from "node:fs";
@@ -343,10 +343,26 @@ const MEMORY_TOOLS = [
343
343
  /** The memory tool names — used to strip them for a `native`-memory agent (which
344
344
  * uses the runtime's own memory instead). */
345
345
  const MEMORY_TOOL_NAMES = new Set(MEMORY_TOOLS.map((t) => t.name));
346
+ /**
347
+ * Agent-collaboration tools — available to EVERY agent regardless of platform
348
+ * (discovery is org/coords-level, not platform-gated). `listChannelAgents` asks
349
+ * the CP who else is in the current channel so an agent can find peers to work
350
+ * with. The requesting agent's identity is injected by the daemon from the
351
+ * session context — it is NOT a tool input.
352
+ */
353
+ const COLLABORATION_TOOLS = [{
354
+ name: "listChannelAgents",
355
+ description: "List the other AI agents present in a channel — their id, name, displayName, description, and status — so you can discover peers to collaborate with. Omit `channel` to list agents in the channel this conversation is happening in. Only channels you are a member of can be listed, and only agents you are allowed to reach are returned.",
356
+ inputSchema: obj({ channel: {
357
+ type: "string",
358
+ description: "Channel/chat id to list agents for. Defaults to the current channel."
359
+ } })
360
+ }];
346
361
  [...new Set([
347
362
  ...SLACK_TOOLS,
348
363
  ...TELEGRAM_TOOLS,
349
- ...MEMORY_TOOLS
364
+ ...MEMORY_TOOLS,
365
+ ...COLLABORATION_TOOLS
350
366
  ].map((t) => t.name))];
351
367
  /**
352
368
  * The default MCP tool set for an agent. The memory tools are always present
@@ -366,6 +382,7 @@ function toolsForIntegrations(integrations) {
366
382
  }
367
383
  };
368
384
  add(MEMORY_TOOLS);
385
+ add(COLLABORATION_TOOLS);
369
386
  if (integrations.some((i) => i.platform === "slack")) add(SLACK_TOOLS);
370
387
  if (integrations.some((i) => i.platform === "telegram")) add(TELEGRAM_TOOLS);
371
388
  return tools;
@@ -9993,4 +10010,4 @@ var AcpHost = class {
9993
10010
  //#endregion
9994
10011
  export { resolveRuntimes as S, writeMemoryFile as _, initGitInjection as a, cachedRuntimeNames as b, simpleGit as c, memoryProviderFor as d, MemoryConflictError as f, resolveInMemoryDir as g, listMemory as h, prepareWorkspace as i, createMemoryProvider as l, MemoryTooLargeError as m, installedRuntimes as n, probeGitVersion as o, MemoryPathError as p, prefetchWorkspace as r, sessionGitEnv as s, AcpHost as t, memoryKindOf as u, MEMORY_TOOL_NAMES as v, cachedRuntimeVersions as x, toolsForIntegrations as y };
9995
10012
 
9996
- //# sourceMappingURL=acp-host-htcdepjb.js.map
10013
+ //# sourceMappingURL=acp-host-xCr--GKm.js.map