@agentconnect.md/daemon 1.0.0-rc.47 → 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.
- package/dist/agent-list-CZbaXHPF.js +21 -0
- package/dist/agent-list-CZbaXHPF.js.map +1 -0
- package/dist/{bridge-hZMpl3k6.js → bridge-NDvTO1zB.js} +2 -2
- package/dist/{bridge-hZMpl3k6.js.map → bridge-NDvTO1zB.js.map} +1 -1
- package/dist/index.js +26 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3045,7 +3045,7 @@ var $ZodEncodeError = class extends Error {
|
|
|
3045
3045
|
};
|
|
3046
3046
|
(_a$2 = globalThis).__zod_globalConfig ?? (_a$2.__zod_globalConfig = {});
|
|
3047
3047
|
const globalConfig = globalThis.__zod_globalConfig;
|
|
3048
|
-
function config
|
|
3048
|
+
function config(newConfig) {
|
|
3049
3049
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
3050
3050
|
return globalConfig;
|
|
3051
3051
|
}
|
|
@@ -3437,7 +3437,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
3437
3437
|
}, ctx);
|
|
3438
3438
|
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
3439
3439
|
if (result.issues.length) {
|
|
3440
|
-
const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
3440
|
+
const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
3441
3441
|
captureStackTrace(e, _params?.callee);
|
|
3442
3442
|
throw e;
|
|
3443
3443
|
}
|
|
@@ -3454,7 +3454,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
3454
3454
|
}, ctx);
|
|
3455
3455
|
if (result instanceof Promise) result = await result;
|
|
3456
3456
|
if (result.issues.length) {
|
|
3457
|
-
const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
3457
|
+
const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
3458
3458
|
captureStackTrace(e, params?.callee);
|
|
3459
3459
|
throw e;
|
|
3460
3460
|
}
|
|
@@ -3472,7 +3472,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
3472
3472
|
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
3473
3473
|
return result.issues.length ? {
|
|
3474
3474
|
success: false,
|
|
3475
|
-
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
3475
|
+
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
3476
3476
|
} : {
|
|
3477
3477
|
success: true,
|
|
3478
3478
|
data: result.value
|
|
@@ -3491,7 +3491,7 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
3491
3491
|
if (result instanceof Promise) result = await result;
|
|
3492
3492
|
return result.issues.length ? {
|
|
3493
3493
|
success: false,
|
|
3494
|
-
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
3494
|
+
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
3495
3495
|
} : {
|
|
3496
3496
|
success: true,
|
|
3497
3497
|
data: result.value
|
|
@@ -4732,7 +4732,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
4732
4732
|
code: "invalid_union",
|
|
4733
4733
|
input: final.value,
|
|
4734
4734
|
inst,
|
|
4735
|
-
errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
4735
|
+
errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
4736
4736
|
});
|
|
4737
4737
|
return final;
|
|
4738
4738
|
}
|
|
@@ -4957,7 +4957,7 @@ const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
|
4957
4957
|
payload.issues.push({
|
|
4958
4958
|
code: "invalid_key",
|
|
4959
4959
|
origin: "record",
|
|
4960
|
-
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
4960
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
4961
4961
|
input: key,
|
|
4962
4962
|
path: [key],
|
|
4963
4963
|
inst
|
|
@@ -5012,7 +5012,7 @@ const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
|
5012
5012
|
else payload.issues.push({
|
|
5013
5013
|
code: "invalid_key",
|
|
5014
5014
|
origin: "record",
|
|
5015
|
-
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
5015
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
5016
5016
|
input: key,
|
|
5017
5017
|
path: [key],
|
|
5018
5018
|
inst
|
|
@@ -5209,7 +5209,7 @@ const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
|
5209
5209
|
if (result.issues.length) {
|
|
5210
5210
|
payload.value = def.catchValue({
|
|
5211
5211
|
...payload,
|
|
5212
|
-
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
5212
|
+
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
|
|
5213
5213
|
input: payload.value
|
|
5214
5214
|
});
|
|
5215
5215
|
payload.issues = [];
|
|
@@ -5221,7 +5221,7 @@ const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
|
5221
5221
|
if (result.issues.length) {
|
|
5222
5222
|
payload.value = def.catchValue({
|
|
5223
5223
|
...payload,
|
|
5224
|
-
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config
|
|
5224
|
+
error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
|
|
5225
5225
|
input: payload.value
|
|
5226
5226
|
});
|
|
5227
5227
|
payload.issues = [];
|
|
@@ -83700,7 +83700,7 @@ program.command("run").description("Run the daemon in the foreground").action(as
|
|
|
83700
83700
|
}
|
|
83701
83701
|
});
|
|
83702
83702
|
program.command("mcp-bridge", { hidden: true }).description("internal: stdio MCP bridge to the running daemon").action(async () => {
|
|
83703
|
-
const { runBridge } = await import("./bridge-
|
|
83703
|
+
const { runBridge } = await import("./bridge-NDvTO1zB.js");
|
|
83704
83704
|
await runBridge();
|
|
83705
83705
|
});
|
|
83706
83706
|
const controller = () => resolveController({ root: program.opts().root });
|
|
@@ -83802,20 +83802,20 @@ program.command("login").description("Interactive onboarding: test the Control P
|
|
|
83802
83802
|
process.exit(1);
|
|
83803
83803
|
}
|
|
83804
83804
|
});
|
|
83805
|
-
|
|
83806
|
-
const
|
|
83807
|
-
|
|
83808
|
-
};
|
|
83809
|
-
|
|
83810
|
-
|
|
83811
|
-
|
|
83812
|
-
|
|
83813
|
-
|
|
83814
|
-
|
|
83815
|
-
|
|
83816
|
-
|
|
83817
|
-
|
|
83818
|
-
|
|
83805
|
+
program.command("agent").description("Inspect local agent directories").command("list").description("List agents discovered under --agents-dir (id, status, runtime, name, dir)").action(async () => {
|
|
83806
|
+
const opts = program.opts();
|
|
83807
|
+
try {
|
|
83808
|
+
const { runAgentList } = await import("./agent-list-CZbaXHPF.js");
|
|
83809
|
+
await runAgentList({
|
|
83810
|
+
agentsDir: opts.agentsDir,
|
|
83811
|
+
configPath: opts.config,
|
|
83812
|
+
root: opts.root
|
|
83813
|
+
});
|
|
83814
|
+
} catch (err) {
|
|
83815
|
+
console.error(`agentconnect agent list: ${err.message}`);
|
|
83816
|
+
process.exit(1);
|
|
83817
|
+
}
|
|
83818
|
+
});
|
|
83819
83819
|
program.command("chat [message]").description("Discover an agent under --agents-dir (or --agent <name>) and chat over ACP").action(async (message) => {
|
|
83820
83820
|
const opts = program.opts();
|
|
83821
83821
|
try {
|
|
@@ -83834,6 +83834,6 @@ program.command("chat [message]").description("Discover an agent under --agents-
|
|
|
83834
83834
|
});
|
|
83835
83835
|
program.parse();
|
|
83836
83836
|
//#endregion
|
|
83837
|
-
export {
|
|
83837
|
+
export { datetime as C, __toESM as E, unknown as S, __commonJSMin as T, optional as _, loadConfig as a, string as b, array as c, discriminatedUnion as d, intersection as f, object as g, number as h, discoverAgents as i, boolean as l, looseObject as m, encodeFrame as n, _enum as o, literal as p, DAEMON_VERSION as r, _null as s, decodeFrames as t, custom as u, preprocess as v, safeParse$1 as w, union as x, record as y };
|
|
83838
83838
|
|
|
83839
83839
|
//# sourceMappingURL=index.js.map
|