@adhdev/daemon-core 0.9.82-rc.7 → 0.9.82-rc.9

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.
@@ -261,15 +261,146 @@ export interface RepoMeshStatus {
261
261
  repoIdentity: string;
262
262
  refreshedAt: string;
263
263
  nodes: RepoMeshNodeStatus[];
264
+ queue?: RepoMeshQueueStatus;
265
+ ledger?: RepoMeshLedgerStatus;
266
+ }
267
+
268
+ export interface RepoMeshSessionStatus {
269
+ sessionId: string;
270
+ providerType?: string;
271
+ state?: string;
272
+ lifecycle?: 'starting' | 'running' | 'stopping' | 'stopped' | 'failed' | 'interrupted';
273
+ surfaceKind?: 'live_runtime' | 'recovery_snapshot' | 'inactive_record';
274
+ recoveryState?: string | null;
275
+ workspace?: string | null;
276
+ title?: string | null;
277
+ lastActivityAt?: string | null;
278
+ isCached?: boolean;
279
+ }
280
+
281
+ export type RepoMeshPeerConnectionState = 'self' | 'connected' | 'connecting' | 'disconnected' | 'failed' | 'closed' | 'unknown';
282
+ export type RepoMeshPeerConnectionTransport = 'local' | 'direct' | 'relay' | 'unknown';
283
+
284
+ export interface RepoMeshPeerConnectionStatus {
285
+ perspective: 'selected_coordinator';
286
+ source: 'mesh_peer_status' | 'not_reported';
287
+ state: RepoMeshPeerConnectionState;
288
+ transport: RepoMeshPeerConnectionTransport;
289
+ reported: boolean;
290
+ reason?: string;
291
+ lastStateChangeAt?: string;
292
+ lastConnectedAt?: string;
293
+ lastCommandAt?: string;
264
294
  }
265
295
 
266
296
  export interface RepoMeshNodeStatus {
267
297
  nodeId: string;
268
298
  machineLabel: string;
269
299
  workspace: string;
300
+ repoRoot?: string;
301
+ daemonId?: string;
302
+ machineId?: string;
303
+ machineStatus?: string;
304
+ isLocalWorktree?: boolean;
305
+ worktreeBranch?: string;
270
306
  health: RepoMeshNodeHealth;
271
307
  git?: GitRepoStatus;
272
308
  providers: string[];
273
309
  activeSessions: string[];
310
+ activeSessionDetails?: RepoMeshSessionStatus[];
311
+ providerPriority?: string[];
312
+ launchReady?: boolean;
313
+ lastSeenAt?: string;
314
+ updatedAt?: string;
315
+ connection?: RepoMeshPeerConnectionStatus;
274
316
  error?: string;
275
317
  }
318
+
319
+ export type RepoMeshQueueTaskStatus = 'pending' | 'assigned' | 'completed' | 'failed' | 'cancelled';
320
+
321
+ export interface RepoMeshQueueTask {
322
+ id: string;
323
+ meshId: string;
324
+ message: string;
325
+ status: RepoMeshQueueTaskStatus;
326
+ targetNodeId?: string;
327
+ targetSessionId?: string;
328
+ assignedNodeId?: string;
329
+ assignedSessionId?: string;
330
+ cancelReason?: string;
331
+ cancelledAt?: string;
332
+ requeueReason?: string;
333
+ requeuedAt?: string;
334
+ requeueCount?: number;
335
+ autoLaunch?: {
336
+ status: 'skipped' | 'started' | 'failed' | 'completed';
337
+ reason?: string;
338
+ nodeId?: string;
339
+ providerType?: string;
340
+ sessionId?: string;
341
+ updatedAt: string;
342
+ };
343
+ dispatchTimestamp?: string;
344
+ createdAt: string;
345
+ updatedAt: string;
346
+ }
347
+
348
+ export interface RepoMeshQueueSummary {
349
+ total: number;
350
+ active: number;
351
+ historical: number;
352
+ pending: number;
353
+ assigned: number;
354
+ completed: number;
355
+ failed: number;
356
+ cancelled: number;
357
+ activeCounts: {
358
+ pending: number;
359
+ assigned: number;
360
+ };
361
+ historicalCounts: {
362
+ completed: number;
363
+ failed: number;
364
+ cancelled: number;
365
+ };
366
+ activeAssignments: Array<{
367
+ id: string;
368
+ nodeId?: string;
369
+ sessionId?: string;
370
+ message: string;
371
+ }>;
372
+ }
373
+
374
+ export interface RepoMeshQueueStatus {
375
+ tasks: RepoMeshQueueTask[];
376
+ summary: RepoMeshQueueSummary;
377
+ }
378
+
379
+ export interface RepoMeshLedgerEntryStatus {
380
+ id: string;
381
+ meshId: string;
382
+ timestamp: string;
383
+ kind: string;
384
+ nodeId?: string;
385
+ sessionId?: string;
386
+ providerType?: string;
387
+ payload: Record<string, unknown>;
388
+ }
389
+
390
+ export interface RepoMeshLedgerSummaryStatus {
391
+ meshId: string;
392
+ totalEntries: number;
393
+ taskDispatched: number;
394
+ taskCompleted: number;
395
+ taskFailed: number;
396
+ taskStalled: number;
397
+ sessionLaunched: number;
398
+ checkpointCreated: number;
399
+ lastActivityAt: string | null;
400
+ recentFailures: number;
401
+ }
402
+
403
+ export interface RepoMeshLedgerStatus {
404
+ entries: RepoMeshLedgerEntryStatus[];
405
+ summary: RepoMeshLedgerSummaryStatus;
406
+ }