@adhdev/daemon-core 0.9.82-rc.243 → 0.9.82-rc.244
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 +2 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -15
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events-coordinator.d.ts +0 -21
- package/package.json +1 -1
- package/src/mesh/mesh-events-coordinator.ts +2 -18
|
@@ -39,7 +39,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
39
39
|
duplicateCompletion?: undefined;
|
|
40
40
|
duplicateStopped?: undefined;
|
|
41
41
|
error?: undefined;
|
|
42
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
43
42
|
} | {
|
|
44
43
|
success: boolean;
|
|
45
44
|
forwarded: number;
|
|
@@ -52,7 +51,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
52
51
|
duplicateCompletion?: undefined;
|
|
53
52
|
duplicateStopped?: undefined;
|
|
54
53
|
error?: undefined;
|
|
55
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
56
54
|
} | {
|
|
57
55
|
success: boolean;
|
|
58
56
|
forwarded: number;
|
|
@@ -65,7 +63,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
65
63
|
duplicateCompletion?: undefined;
|
|
66
64
|
duplicateStopped?: undefined;
|
|
67
65
|
error?: undefined;
|
|
68
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
69
66
|
} | {
|
|
70
67
|
success: boolean;
|
|
71
68
|
forwarded: number;
|
|
@@ -78,7 +75,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
78
75
|
duplicateCompletion?: undefined;
|
|
79
76
|
duplicateStopped?: undefined;
|
|
80
77
|
error?: undefined;
|
|
81
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
82
78
|
} | {
|
|
83
79
|
success: boolean;
|
|
84
80
|
forwarded: number;
|
|
@@ -91,7 +87,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
91
87
|
duplicateApproval?: undefined;
|
|
92
88
|
duplicateStopped?: undefined;
|
|
93
89
|
error?: undefined;
|
|
94
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
95
90
|
} | {
|
|
96
91
|
success: boolean;
|
|
97
92
|
forwarded: number;
|
|
@@ -104,7 +99,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
104
99
|
duplicateApproval?: undefined;
|
|
105
100
|
duplicateStopped?: undefined;
|
|
106
101
|
error?: undefined;
|
|
107
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
108
102
|
} | {
|
|
109
103
|
success: boolean;
|
|
110
104
|
forwarded: number;
|
|
@@ -117,7 +111,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
117
111
|
duplicateApproval?: undefined;
|
|
118
112
|
duplicateCompletion?: undefined;
|
|
119
113
|
error?: undefined;
|
|
120
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
121
114
|
} | {
|
|
122
115
|
success: boolean;
|
|
123
116
|
forwarded: number;
|
|
@@ -130,20 +123,6 @@ export declare function handleMeshForwardEvent(components: DaemonComponents, pay
|
|
|
130
123
|
duplicateCompletion?: undefined;
|
|
131
124
|
duplicateStopped?: undefined;
|
|
132
125
|
error?: undefined;
|
|
133
|
-
bufferedForGeneratingCoordinator?: undefined;
|
|
134
|
-
} | {
|
|
135
|
-
success: boolean;
|
|
136
|
-
forwarded: number;
|
|
137
|
-
bufferedForGeneratingCoordinator: boolean;
|
|
138
|
-
suppressed?: undefined;
|
|
139
|
-
intentionalCleanupStop?: undefined;
|
|
140
|
-
terminalLedgerEvidence?: undefined;
|
|
141
|
-
terminalLedgerKind?: undefined;
|
|
142
|
-
duplicateRefineTerminalEvent?: undefined;
|
|
143
|
-
duplicateApproval?: undefined;
|
|
144
|
-
duplicateCompletion?: undefined;
|
|
145
|
-
duplicateStopped?: undefined;
|
|
146
|
-
error?: undefined;
|
|
147
126
|
} | {
|
|
148
127
|
success: boolean;
|
|
149
128
|
error: string;
|
package/package.json
CHANGED
|
@@ -1340,15 +1340,7 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
|
|
|
1340
1340
|
return { success: true, forwarded: 0 };
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
|
|
1344
|
-
const s = inst.getState();
|
|
1345
|
-
const status = readNonEmptyString(s.status).toLowerCase();
|
|
1346
|
-
const activeChatStatus = readNonEmptyString(s.activeChat?.status).toLowerCase();
|
|
1347
|
-
return status === 'generating' || status === 'streaming' || status === 'long_generating'
|
|
1348
|
-
|| activeChatStatus === 'generating' || activeChatStatus === 'streaming';
|
|
1349
|
-
});
|
|
1350
|
-
|
|
1351
|
-
if (!isTerminalEvent || allCoordinatorsGenerating) {
|
|
1343
|
+
if (!isTerminalEvent) {
|
|
1352
1344
|
if (queuePendingMeshCoordinatorEvent({
|
|
1353
1345
|
event: args.event,
|
|
1354
1346
|
meshId: args.meshId,
|
|
@@ -1363,18 +1355,10 @@ function injectMeshSystemMessage(components: DaemonComponents, args: {
|
|
|
1363
1355
|
queuedAt: Date.now(),
|
|
1364
1356
|
...(workerCoordinatorDaemonId ? { targetCoordinatorDaemonId: workerCoordinatorDaemonId } : {}),
|
|
1365
1357
|
})) {
|
|
1366
|
-
|
|
1367
|
-
LOG.info('MeshEvents', `Queued ${args.event} for generating CLI coordinator (mesh ${args.meshId}) — will be delivered via get_pending_mesh_events when coordinator returns to idle`);
|
|
1368
|
-
} else {
|
|
1369
|
-
LOG.info('MeshEvents', `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
1370
|
-
}
|
|
1358
|
+
LOG.info('MeshEvents', `Queued ${args.event} for MCP coordinator (mesh ${args.meshId})`);
|
|
1371
1359
|
}
|
|
1372
1360
|
}
|
|
1373
1361
|
|
|
1374
|
-
if (allCoordinatorsGenerating) {
|
|
1375
|
-
return { success: true, forwarded: 0, bufferedForGeneratingCoordinator: true };
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
1362
|
for (const coord of coordinatorInstances) {
|
|
1379
1363
|
const coordState = coord.getState();
|
|
1380
1364
|
LOG.info('MeshEvents', `Forwarding mesh event to coordinator ${coordState.instanceId}`);
|