@adhdev/daemon-core 0.9.77-rc.19 → 0.9.77-rc.20
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 +11 -0
- package/src/providers/cli-provider-instance.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1405,6 +1405,15 @@ function injectMeshSystemMessage(components, args) {
|
|
|
1405
1405
|
}, 500);
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
+
} else if (args.event === "agent:ready") {
|
|
1409
|
+
const sessionId = readNonEmptyString(args.metadataEvent.targetSessionId);
|
|
1410
|
+
const nodeId = readNonEmptyString(args.metadataEvent.nodeId) || readNonEmptyString(args.metadataEvent.meshNodeId);
|
|
1411
|
+
const providerType = readNonEmptyString(args.metadataEvent.providerType);
|
|
1412
|
+
if (sessionId && nodeId && providerType) {
|
|
1413
|
+
setTimeout(() => {
|
|
1414
|
+
tryAssignQueueTask(components, args.meshId, nodeId, sessionId, providerType);
|
|
1415
|
+
}, 500);
|
|
1416
|
+
}
|
|
1408
1417
|
} else if (args.event === "agent:stopped") {
|
|
1409
1418
|
const sessionId = readNonEmptyString(args.metadataEvent.targetSessionId);
|
|
1410
1419
|
if (sessionId) {
|
|
@@ -1584,6 +1593,7 @@ var init_mesh_events = __esm({
|
|
|
1584
1593
|
"agent:generating_completed",
|
|
1585
1594
|
"agent:waiting_approval",
|
|
1586
1595
|
"agent:stopped",
|
|
1596
|
+
"agent:ready",
|
|
1587
1597
|
"monitor:long_generating"
|
|
1588
1598
|
]);
|
|
1589
1599
|
EVENT_TO_LEDGER_KIND = {
|
|
@@ -16845,6 +16855,8 @@ var CliProviderInstance = class {
|
|
|
16845
16855
|
this.completedDebounceTimer = null;
|
|
16846
16856
|
}, 3e3);
|
|
16847
16857
|
}
|
|
16858
|
+
} else if (newStatus === "idle" && this.lastStatus === "starting") {
|
|
16859
|
+
this.pushEvent({ event: "agent:ready", chatTitle, timestamp: now });
|
|
16848
16860
|
} else if (newStatus === "stopped") {
|
|
16849
16861
|
if (this.generatingDebounceTimer) {
|
|
16850
16862
|
clearTimeout(this.generatingDebounceTimer);
|