@adhdev/daemon-standalone 0.9.77-rc.16 → 0.9.77-rc.17
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
|
@@ -57833,10 +57833,7 @@ async function meshListNodes(ctx) {
|
|
|
57833
57833
|
async function meshEnqueueTask(ctx, args) {
|
|
57834
57834
|
try {
|
|
57835
57835
|
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)) {
|
|
57836
|
+
if (isLocalTransport(ctx.transport)) {
|
|
57840
57837
|
ctx.transport.command("trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
57841
57838
|
});
|
|
57842
57839
|
}
|
|
@@ -57868,7 +57865,8 @@ async function meshSendTask(ctx, args) {
|
|
|
57868
57865
|
return JSON.stringify(res);
|
|
57869
57866
|
}
|
|
57870
57867
|
const task = enqueueTask(ctx.mesh.id, args.message, { targetNodeId: args.node_id });
|
|
57871
|
-
|
|
57868
|
+
const isLocalNode = ctx.localMachineId && node.machineId === ctx.localMachineId || ctx.localDaemonId && node.daemonId === ctx.localDaemonId;
|
|
57869
|
+
if (ctx.transport instanceof IpcTransport && node.daemonId && !isLocalNode) {
|
|
57872
57870
|
ctx.transport.meshCommand(node.daemonId, "trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
57873
57871
|
});
|
|
57874
57872
|
} else if (isLocalTransport(ctx.transport)) {
|
|
@@ -58015,7 +58013,8 @@ async function meshLaunchSession(ctx, args) {
|
|
|
58015
58013
|
});
|
|
58016
58014
|
} catch {
|
|
58017
58015
|
}
|
|
58018
|
-
|
|
58016
|
+
const isLocalNode = ctx.localMachineId && node.machineId === ctx.localMachineId || ctx.localDaemonId && node.daemonId === ctx.localDaemonId;
|
|
58017
|
+
if (ctx.transport instanceof IpcTransport && node.daemonId && !isLocalNode) {
|
|
58019
58018
|
ctx.transport.meshCommand(node.daemonId, "trigger_mesh_queue", { meshId: ctx.mesh.id }).catch(() => {
|
|
58020
58019
|
});
|
|
58021
58020
|
} else if (isLocalTransport(ctx.transport)) {
|