@adhdev/daemon-standalone 0.9.77-rc.16 → 0.9.77-rc.18
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/package.json
CHANGED
|
@@ -34534,9 +34534,6 @@ function buildCoordinatorDelegatedCliLaunchOptions(input) {
|
|
|
34534
34534
|
const cliType = String(input.cliType || "").trim();
|
|
34535
34535
|
const cliArgs = Array.isArray(input.cliArgs) ? [...input.cliArgs] : [];
|
|
34536
34536
|
const env2 = { ...input.env || {}, ...COORDINATOR_DELEGATED_ENV_UNSETS };
|
|
34537
|
-
if (cliType === "hermes-cli" && !hasCliArg(cliArgs, "--ignore-user-config")) {
|
|
34538
|
-
cliArgs.unshift("--ignore-user-config");
|
|
34539
|
-
}
|
|
34540
34537
|
if (cliType === "claude-cli" && !hasCliArg(cliArgs, "--mcp-config")) {
|
|
34541
34538
|
cliArgs.unshift("--mcp-config", ensureEmptyDelegatedMcpConfig(input.workspace));
|
|
34542
34539
|
}
|
|
@@ -57833,10 +57830,7 @@ async function meshListNodes(ctx) {
|
|
|
57833
57830
|
async function meshEnqueueTask(ctx, args) {
|
|
57834
57831
|
try {
|
|
57835
57832
|
const task = enqueueTask(ctx.mesh.id, args.message);
|
|
57836
|
-
if (ctx.transport
|
|
57837
|
-
ctx.transport.meshCommand(ctx.localDaemonId, "trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
57838
|
-
});
|
|
57839
|
-
} else if (isLocalTransport(ctx.transport)) {
|
|
57833
|
+
if (isLocalTransport(ctx.transport)) {
|
|
57840
57834
|
ctx.transport.command("trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
57841
57835
|
});
|
|
57842
57836
|
}
|
|
@@ -57868,7 +57862,8 @@ async function meshSendTask(ctx, args) {
|
|
|
57868
57862
|
return JSON.stringify(res);
|
|
57869
57863
|
}
|
|
57870
57864
|
const task = enqueueTask(ctx.mesh.id, args.message, { targetNodeId: args.node_id });
|
|
57871
|
-
|
|
57865
|
+
const isLocalNode = ctx.localMachineId && node.machineId === ctx.localMachineId || ctx.localDaemonId && node.daemonId === ctx.localDaemonId;
|
|
57866
|
+
if (ctx.transport instanceof IpcTransport && node.daemonId && !isLocalNode) {
|
|
57872
57867
|
ctx.transport.meshCommand(node.daemonId, "trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
57873
57868
|
});
|
|
57874
57869
|
} else if (isLocalTransport(ctx.transport)) {
|
|
@@ -58015,7 +58010,8 @@ async function meshLaunchSession(ctx, args) {
|
|
|
58015
58010
|
});
|
|
58016
58011
|
} catch {
|
|
58017
58012
|
}
|
|
58018
|
-
|
|
58013
|
+
const isLocalNode = ctx.localMachineId && node.machineId === ctx.localMachineId || ctx.localDaemonId && node.daemonId === ctx.localDaemonId;
|
|
58014
|
+
if (ctx.transport instanceof IpcTransport && node.daemonId && !isLocalNode) {
|
|
58019
58015
|
ctx.transport.meshCommand(node.daemonId, "trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
58020
58016
|
});
|
|
58021
58017
|
} else if (isLocalTransport(ctx.transport)) {
|