@adhdev/daemon-core 0.9.77-rc.1 → 0.9.77-rc.11

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.
@@ -24,6 +24,7 @@ import {
24
24
  normalizeManagedStatus,
25
25
  type NormalizeActiveChatOptions,
26
26
  } from './normalize.js';
27
+ import { getMeshQueueStats } from '../mesh/mesh-work-queue.js';
27
28
  import { normalizeProviderStateControlValues } from '../providers/provider-patch-state.js';
28
29
  import { normalizeProviderSummaryMetadata } from '../providers/summary-metadata.js';
29
30
  import {
@@ -177,6 +178,8 @@ function buildIdeWorkspaceSession(
177
178
  const workspace = state.workspace || null;
178
179
  const git = getGitSummaryForWorkspace(workspace, options);
179
180
  const title = activeChat?.title || state.name;
181
+ const meshCoordinatorFor = state.settings?.meshCoordinatorFor as string | undefined;
182
+ const meshQueueStats = meshCoordinatorFor ? getMeshQueueStats(meshCoordinatorFor) : undefined;
180
183
  return {
181
184
  id: state.instanceId || state.type,
182
185
  parentId: null,
@@ -200,6 +203,7 @@ function buildIdeWorkspaceSession(
200
203
  errorReason: state.errorReason,
201
204
  lastUpdated: state.lastUpdated,
202
205
  settings: state.settings,
206
+ ...(meshQueueStats && { meshQueueStats }),
203
207
  };
204
208
  }
205
209
 
@@ -216,6 +220,8 @@ function buildExtensionAgentSession(
216
220
  const includeSessionControls = shouldIncludeSessionControls(profile);
217
221
  const workspace = parent.workspace || null;
218
222
  const git = getGitSummaryForWorkspace(workspace, options);
223
+ const meshCoordinatorFor = ext.settings?.meshCoordinatorFor as string | undefined;
224
+ const meshQueueStats = meshCoordinatorFor ? getMeshQueueStats(meshCoordinatorFor) : undefined;
219
225
  return {
220
226
  id: ext.instanceId || `${parent.instanceId}:${ext.type}`,
221
227
  parentId: parent.instanceId || parent.type,
@@ -239,6 +245,7 @@ function buildExtensionAgentSession(
239
245
  errorReason: ext.errorReason,
240
246
  lastUpdated: ext.lastUpdated,
241
247
  settings: ext.settings,
248
+ ...(meshQueueStats && { meshQueueStats }),
242
249
  };
243
250
  }
244
251
 
@@ -279,6 +286,8 @@ function buildCliSession(state: CliProviderState, options: SessionEntryBuildOpti
279
286
  const includeSessionControls = shouldIncludeSessionControls(profile);
280
287
  const workspace = state.workspace || null;
281
288
  const git = getGitSummaryForWorkspace(workspace, options);
289
+ const meshCoordinatorFor = state.settings?.meshCoordinatorFor as string | undefined;
290
+ const meshQueueStats = meshCoordinatorFor ? getMeshQueueStats(meshCoordinatorFor) : undefined;
282
291
  return {
283
292
  id: state.instanceId,
284
293
  parentId: null,
@@ -318,6 +327,7 @@ function buildCliSession(state: CliProviderState, options: SessionEntryBuildOpti
318
327
  errorReason: state.errorReason,
319
328
  lastUpdated: state.lastUpdated,
320
329
  settings: state.settings,
330
+ ...(meshQueueStats && { meshQueueStats }),
321
331
  };
322
332
  }
323
333
 
@@ -330,6 +340,8 @@ function buildAcpSession(state: AcpProviderState, options: SessionEntryBuildOpti
330
340
  const includeSessionControls = shouldIncludeSessionControls(profile);
331
341
  const workspace = state.workspace || null;
332
342
  const git = getGitSummaryForWorkspace(workspace, options);
343
+ const meshCoordinatorFor = state.settings?.meshCoordinatorFor as string | undefined;
344
+ const meshQueueStats = meshCoordinatorFor ? getMeshQueueStats(meshCoordinatorFor) : undefined;
333
345
  return {
334
346
  id: state.instanceId,
335
347
  parentId: null,
@@ -352,6 +364,7 @@ function buildAcpSession(state: AcpProviderState, options: SessionEntryBuildOpti
352
364
  errorReason: state.errorReason,
353
365
  lastUpdated: state.lastUpdated,
354
366
  settings: state.settings,
367
+ ...(meshQueueStats && { meshQueueStats }),
355
368
  };
356
369
  }
357
370