@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.mjs
CHANGED
|
@@ -1374,10 +1374,12 @@ function triggerMeshQueue(components, meshId) {
|
|
|
1374
1374
|
const state = inst.getState();
|
|
1375
1375
|
const settings = state.settings || {};
|
|
1376
1376
|
const instMeshId = readNonEmptyString(settings.meshNodeFor);
|
|
1377
|
-
if (instMeshId !== meshId
|
|
1377
|
+
if (instMeshId !== meshId) continue;
|
|
1378
1378
|
const nodeId = readNonEmptyString(settings.meshNodeId) || readNonEmptyString(settings.nodeId);
|
|
1379
1379
|
if (!nodeId) continue;
|
|
1380
|
-
|
|
1380
|
+
const status = readNonEmptyString(state.status).toLowerCase();
|
|
1381
|
+
if (["stopped", "failed", "terminated", "exited", "closed"].includes(status)) continue;
|
|
1382
|
+
if (status !== "idle" && state.activeChat?.status !== "waiting_input") continue;
|
|
1381
1383
|
const sessionId = state.instanceId;
|
|
1382
1384
|
const providerType = state.type || readNonEmptyString(settings.providerType);
|
|
1383
1385
|
if (providerType) {
|