@adhdev/daemon-core 0.9.77-rc.32 → 0.9.77-rc.33
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/mesh/mesh-events.ts +7 -3
package/dist/index.js
CHANGED
|
@@ -1380,10 +1380,12 @@ function triggerMeshQueue(components, meshId) {
|
|
|
1380
1380
|
const state = inst.getState();
|
|
1381
1381
|
const settings = state.settings || {};
|
|
1382
1382
|
const instMeshId = readNonEmptyString(settings.meshNodeFor);
|
|
1383
|
-
if (instMeshId !== meshId
|
|
1383
|
+
if (instMeshId !== meshId) continue;
|
|
1384
1384
|
const nodeId = readNonEmptyString(settings.meshNodeId) || readNonEmptyString(settings.nodeId);
|
|
1385
1385
|
if (!nodeId) continue;
|
|
1386
|
-
|
|
1386
|
+
const status = readNonEmptyString(state.status).toLowerCase();
|
|
1387
|
+
if (["stopped", "failed", "terminated", "exited", "closed"].includes(status)) continue;
|
|
1388
|
+
if (status !== "idle" && state.activeChat?.status !== "waiting_input") continue;
|
|
1387
1389
|
const sessionId = state.instanceId;
|
|
1388
1390
|
const providerType = state.type || readNonEmptyString(settings.providerType);
|
|
1389
1391
|
if (providerType) {
|