@agentconnect.md/daemon 1.0.0-rc.46 → 1.0.0-rc.48

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.
@@ -0,0 +1,21 @@
1
+ import { a as loadConfig, i as discoverAgents } from "./index.js";
2
+ //#region src/cli/agent-list.ts
3
+ async function runAgentList(opts) {
4
+ const out = opts.out ?? process.stdout;
5
+ const agentsDir = loadConfig({
6
+ root: opts.root,
7
+ configPath: opts.configPath,
8
+ optional: true,
9
+ overrides: { agentsDir: opts.agentsDir }
10
+ }).agentsDir;
11
+ const discovered = discoverAgents(agentsDir);
12
+ if (discovered.length === 0) {
13
+ out.write(`no agents found under ${agentsDir}\n`);
14
+ return;
15
+ }
16
+ for (const { agent, dir } of discovered) out.write(`${agent.id}\t${agent.status}\t${agent.runtime}\t${agent.name}\t${dir}\n`);
17
+ }
18
+ //#endregion
19
+ export { runAgentList };
20
+
21
+ //# sourceMappingURL=agent-list-CZbaXHPF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-list-CZbaXHPF.js","names":[],"sources":["../src/cli/agent-list.ts"],"sourcesContent":["import { loadConfig } from '../config/load-config.js'\nimport { discoverAgents } from '../agents/load-agents.js'\n\nexport interface RunAgentListOpts {\n agentsDir?: string\n configPath?: string\n root?: string\n out?: NodeJS.WritableStream\n}\n\n// Read-only view of the local agent directory. Mutating agents (add/remove/\n// enable/disable) is intentionally not a CLI command — agent business config is\n// owned by the Control Plane (agent/upsert + register/ok roster, see\n// cp/cp-agent-registry.ts) or by hand-editing agent.json; the daemon only\n// reconciles what it finds on disk. This lists what that discovery sees.\nexport async function runAgentList(opts: RunAgentListOpts): Promise<void> {\n const out = opts.out ?? process.stdout\n const cfg = loadConfig({\n root: opts.root,\n configPath: opts.configPath,\n optional: true,\n overrides: { agentsDir: opts.agentsDir }\n })\n const agentsDir = cfg.agentsDir!\n const discovered = discoverAgents(agentsDir)\n if (discovered.length === 0) {\n out.write(`no agents found under ${agentsDir}\\n`)\n return\n }\n for (const { agent, dir } of discovered) {\n out.write(`${agent.id}\\t${agent.status}\\t${agent.runtime}\\t${agent.name}\\t${dir}\\n`)\n }\n}\n"],"mappings":";;AAeA,eAAsB,aAAa,MAAuC;CACxE,MAAM,MAAM,KAAK,OAAO,QAAQ;CAOhC,MAAM,YANM,WAAW;EACrB,MAAM,KAAK;EACX,YAAY,KAAK;EACjB,UAAU;EACV,WAAW,EAAE,WAAW,KAAK,UAAU;CACzC,CACoB,CAAC,CAAC;CACtB,MAAM,aAAa,eAAe,SAAS;CAC3C,IAAI,WAAW,WAAW,GAAG;EAC3B,IAAI,MAAM,yBAAyB,UAAU,GAAG;EAChD;CACF;CACA,KAAK,MAAM,EAAE,OAAO,SAAS,YAC3B,IAAI,MAAM,GAAG,MAAM,GAAG,IAAI,MAAM,OAAO,IAAI,MAAM,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,GAAG;AAEvF"}
@@ -1,4 +1,4 @@
1
- import { C as __commonJSMin, S as safeParse$1, _ as record, a as _null, b as unknown, c as custom, d as literal, f as looseObject, g as preprocess, h as optional, i as _enum, l as discriminatedUnion, m as object, n as encodeFrame, o as array, p as number, r as DAEMON_VERSION, s as boolean, t as decodeFrames, u as intersection, v as string, w as __toESM, x as datetime, y as union } from "./index.js";
1
+ import { C as datetime, E as __toESM, S as unknown, T as __commonJSMin, _ as optional, b as string, c as array, d as discriminatedUnion, f as intersection, g as object, h as number, l as boolean, m as looseObject, n as encodeFrame, o as _enum, p as literal, r as DAEMON_VERSION, s as _null, t as decodeFrames, u as custom, v as preprocess, w as safeParse$1, x as union, y as record } from "./index.js";
2
2
  import process$1 from "node:process";
3
3
  import net from "node:net";
4
4
  //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
@@ -9898,4 +9898,4 @@ async function runBridge() {
9898
9898
  //#endregion
9899
9899
  export { runBridge };
9900
9900
 
9901
- //# sourceMappingURL=bridge-hZMpl3k6.js.map
9901
+ //# sourceMappingURL=bridge-NDvTO1zB.js.map