@adhdev/daemon-core 0.9.82-rc.179 → 0.9.82-rc.180
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/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/mesh/mesh-events.ts +19 -0
package/dist/index.js
CHANGED
|
@@ -5342,6 +5342,18 @@ function setupMeshEventForwarding(components) {
|
|
|
5342
5342
|
} catch {
|
|
5343
5343
|
}
|
|
5344
5344
|
if (!meshIdFromDirectDispatch) return;
|
|
5345
|
+
} else {
|
|
5346
|
+
const workspaceMesh = getCachedMeshByWorkspace(workspace);
|
|
5347
|
+
const workspaceMeshId = readNonEmptyString2(workspaceMesh?.id);
|
|
5348
|
+
if (workspaceMeshId) {
|
|
5349
|
+
try {
|
|
5350
|
+
const activeDispatches = getActiveDirectDispatches(workspaceMeshId);
|
|
5351
|
+
if (activeDispatches.some((d) => d.sessionId === instanceId) || hasUnterminalDirectDispatchLedgerEntry(workspaceMeshId, instanceId)) {
|
|
5352
|
+
meshIdFromDirectDispatch = workspaceMeshId;
|
|
5353
|
+
}
|
|
5354
|
+
} catch {
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5345
5357
|
}
|
|
5346
5358
|
const meshIdFromRuntime = readNonEmptyString2(settings.meshNodeFor) || meshIdFromDirectDispatch;
|
|
5347
5359
|
const isMeshDelegate = Boolean(meshIdFromRuntime || settings.launchedByCoordinator);
|