@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.
- package/dist/cli-adapters/provider-cli-adapter.d.ts +2 -0
- package/dist/cli-adapters/provider-cli-shared.d.ts +14 -4
- package/dist/commands/mesh-coordinator.d.ts +8 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1018 -216
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1014 -224
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events.d.ts +11 -1
- package/dist/mesh/mesh-ledger.d.ts +90 -0
- package/dist/mesh/mesh-sync.d.ts +10 -0
- package/dist/mesh/mesh-work-queue.d.ts +50 -0
- package/dist/repo-mesh-types.d.ts +6 -0
- package/dist/shared-types.d.ts +12 -0
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-adapter.ts +10 -4
- package/src/cli-adapters/provider-cli-shared.ts +14 -4
- package/src/commands/mesh-coordinator.ts +28 -6
- package/src/commands/router.ts +222 -0
- package/src/commands/stream-commands.ts +8 -1
- package/src/index.ts +11 -0
- package/src/mesh/coordinator-prompt.ts +27 -12
- package/src/mesh/mesh-events.ts +200 -1
- package/src/mesh/mesh-ledger.ts +378 -0
- package/src/mesh/mesh-sync.ts +32 -0
- package/src/mesh/mesh-work-queue.ts +164 -0
- package/src/repo-mesh-types.ts +7 -0
- package/src/shared-types.ts +12 -0
- package/src/status/builders.ts +13 -0
package/src/status/builders.ts
CHANGED
|
@@ -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
|
|