@adhdev/daemon-core 0.6.79 → 0.7.0

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.
@@ -262,55 +262,14 @@ declare function getWorkspaceState(config: ADHDevConfig): {
262
262
  * IMPORTANT: This file must remain runtime-free (types only).
263
263
  */
264
264
 
265
- /** IDE entry as reported by daemon to dashboard */
266
- interface ManagedIdeEntry {
267
- ideType: string;
268
- ideVersion: string;
269
- instanceId: string;
270
- workspace: string | null;
271
- terminals: number;
272
- aiAgents: unknown[];
273
- activeChat: ActiveChatData | null;
274
- chats: unknown[];
275
- agentStreams: ManagedAgentStream[];
276
- cdpConnected: boolean;
277
- currentModel?: string;
278
- currentPlan?: string;
279
- currentAutoApprove?: string;
280
- }
281
- /** CLI entry as reported by daemon to dashboard */
282
- interface ManagedCliEntry {
283
- id: string;
284
- instanceId: string;
285
- cliType: string;
286
- cliName: string;
287
- status: string;
288
- mode: 'terminal';
289
- workspace: string;
290
- activeChat: ActiveChatData | null;
291
- }
292
- /** ACP entry as reported by daemon to dashboard */
293
- interface ManagedAcpEntry {
294
- id: string;
295
- acpType: string;
296
- acpName: string;
297
- status: string;
298
- mode: 'chat';
299
- workspace: string;
300
- activeChat: ActiveChatData | null;
301
- currentModel?: string;
302
- currentPlan?: string;
303
- acpConfigOptions?: AcpConfigOption[];
304
- acpModes?: AcpMode[];
305
- /** Error details */
306
- errorMessage?: string;
307
- errorReason?: 'not_installed' | 'auth_failed' | 'spawn_error' | 'init_failed' | 'crash' | 'timeout' | 'cdp_error' | 'disconnected';
308
- }
309
- /** Agent stream within an IDE (extension status) */
310
- interface ManagedAgentStream {
265
+ /** Agent stream snapshot carried by flattened UI entries. */
266
+ interface AgentSessionStream {
267
+ sessionId?: string;
268
+ parentSessionId?: string | null;
311
269
  agentType: string;
312
270
  agentName: string;
313
271
  extensionId: string;
272
+ transport?: SessionTransport;
314
273
  status: string;
315
274
  messages: ChatMessage[];
316
275
  inputContent: string;
@@ -320,6 +279,30 @@ interface ManagedAgentStream {
320
279
  buttons: string[];
321
280
  } | null;
322
281
  }
282
+ type SessionTransport = 'cdp-page' | 'cdp-webview' | 'pty' | 'acp';
283
+ type SessionKind = 'workspace' | 'agent';
284
+ type SessionCapability = 'read_chat' | 'send_message' | 'new_session' | 'list_sessions' | 'switch_session' | 'resolve_action' | 'terminal_io' | 'resize_terminal' | 'change_model' | 'set_mode' | 'set_thought_level';
285
+ interface SessionEntry {
286
+ id: string;
287
+ parentId: string | null;
288
+ providerType: string;
289
+ providerName: string;
290
+ kind: SessionKind;
291
+ transport: SessionTransport;
292
+ status: 'idle' | 'generating' | 'waiting_approval' | 'error' | 'stopped' | 'starting' | 'panel_hidden' | 'not_monitored' | 'disconnected';
293
+ title: string;
294
+ workspace: string | null;
295
+ activeChat: ActiveChatData | null;
296
+ capabilities: SessionCapability[];
297
+ cdpConnected?: boolean;
298
+ currentModel?: string;
299
+ currentPlan?: string;
300
+ currentAutoApprove?: string;
301
+ acpConfigOptions?: AcpConfigOption[];
302
+ acpModes?: AcpMode[];
303
+ errorMessage?: string;
304
+ errorReason?: ProviderErrorReason;
305
+ }
323
306
  /** Available provider information */
324
307
  interface AvailableProviderInfo {
325
308
  type: string;
@@ -397,12 +380,8 @@ interface StatusReportPayload {
397
380
  peers: number;
398
381
  screenshotActive?: boolean;
399
382
  };
400
- /** Managed IDE instances */
401
- managedIdes: ManagedIdeEntry[];
402
- /** Managed CLI instances */
403
- managedClis: ManagedCliEntry[];
404
- /** Managed ACP instances */
405
- managedAcps: ManagedAcpEntry[];
383
+ /** Canonical daemon runtime sessions */
384
+ sessions: SessionEntry[];
406
385
  /** Saved workspaces */
407
386
  workspaces?: WorkspaceEntry[];
408
387
  defaultWorkspaceId?: string | null;
@@ -861,4 +840,4 @@ declare function isManagedStatusWaiting(status?: string | null, opts?: {
861
840
  }): boolean;
862
841
  declare function normalizeActiveChatData<T extends ActiveChatData | null | undefined>(activeChat: T): T;
863
842
 
864
- export { type AcpProviderState as A, type ProviderInfo as B, type CommandResult as C, type DaemonEvent as D, type ExtensionInfo as E, type ProviderStatus as F, type SystemInfo as G, type WorkspaceEntry as H, type InstanceContext as I, addCliHistory as J, getWorkspaceActivity as K, getWorkspaceState as L, type ManagedIdeEntry as M, isManagedStatusWaiting as N, isManagedStatusWorking as O, type ProviderCategory as P, isSetupComplete as Q, type ResolvedProvider as R, type StatusResponse as S, loadConfig as T, markSetupComplete as U, normalizeActiveChatData as V, type WorkspaceActivity as W, normalizeManagedStatus as X, resetConfig as Y, saveConfig as Z, updateConfig as _, type ManagedCliEntry as a, type ManagedAcpEntry as b, type ProviderModule as c, type ProviderSettingSchema as d, type CdpTargetFilter as e, type ProviderInstance as f, type ProviderState as g, type ProviderEvent as h, type CliProviderState as i, type IdeProviderState as j, type StatusReportPayload as k, type AvailableProviderInfo as l, type ContentBlock as m, type AcpConfigOption as n, type AcpMode as o, type ActiveChatData as p, type AgentEntry as q, type ChatMessage as r, type DetectedIde as s, type DetectedIdeInfo as t, type ExtensionProviderState as u, type MachineInfo as v, type ManagedAgentStream as w, type ManagedStatus as x, type ProviderConfig as y, type ProviderErrorReason as z };
843
+ export { updateConfig as $, type AvailableProviderInfo as A, type ProviderStatus as B, type CommandResult as C, type DaemonEvent as D, type ExtensionInfo as E, type SessionCapability as F, type SessionKind as G, type SystemInfo as H, type InstanceContext as I, type WorkspaceEntry as J, addCliHistory as K, getWorkspaceActivity as L, type MachineInfo as M, getWorkspaceState as N, isManagedStatusWaiting as O, type ProviderCategory as P, isManagedStatusWorking as Q, type ResolvedProvider as R, type StatusResponse as S, isSetupComplete as T, loadConfig as U, markSetupComplete as V, type WorkspaceActivity as W, normalizeActiveChatData as X, normalizeManagedStatus as Y, resetConfig as Z, saveConfig as _, type SessionEntry as a, type ProviderModule as b, type ProviderSettingSchema as c, type CdpTargetFilter as d, type ProviderInstance as e, type ProviderState as f, type ProviderEvent as g, type SessionTransport as h, type StatusReportPayload as i, type AcpProviderState as j, type ContentBlock as k, type AcpConfigOption as l, type AcpMode as m, type ActiveChatData as n, type AgentEntry as o, type AgentSessionStream as p, type ChatMessage as q, type CliProviderState as r, type DetectedIde as s, type DetectedIdeInfo as t, type ExtensionProviderState as u, type IdeProviderState as v, type ManagedStatus as w, type ProviderConfig as x, type ProviderErrorReason as y, type ProviderInfo as z };
@@ -262,55 +262,14 @@ declare function getWorkspaceState(config: ADHDevConfig): {
262
262
  * IMPORTANT: This file must remain runtime-free (types only).
263
263
  */
264
264
 
265
- /** IDE entry as reported by daemon to dashboard */
266
- interface ManagedIdeEntry {
267
- ideType: string;
268
- ideVersion: string;
269
- instanceId: string;
270
- workspace: string | null;
271
- terminals: number;
272
- aiAgents: unknown[];
273
- activeChat: ActiveChatData | null;
274
- chats: unknown[];
275
- agentStreams: ManagedAgentStream[];
276
- cdpConnected: boolean;
277
- currentModel?: string;
278
- currentPlan?: string;
279
- currentAutoApprove?: string;
280
- }
281
- /** CLI entry as reported by daemon to dashboard */
282
- interface ManagedCliEntry {
283
- id: string;
284
- instanceId: string;
285
- cliType: string;
286
- cliName: string;
287
- status: string;
288
- mode: 'terminal';
289
- workspace: string;
290
- activeChat: ActiveChatData | null;
291
- }
292
- /** ACP entry as reported by daemon to dashboard */
293
- interface ManagedAcpEntry {
294
- id: string;
295
- acpType: string;
296
- acpName: string;
297
- status: string;
298
- mode: 'chat';
299
- workspace: string;
300
- activeChat: ActiveChatData | null;
301
- currentModel?: string;
302
- currentPlan?: string;
303
- acpConfigOptions?: AcpConfigOption[];
304
- acpModes?: AcpMode[];
305
- /** Error details */
306
- errorMessage?: string;
307
- errorReason?: 'not_installed' | 'auth_failed' | 'spawn_error' | 'init_failed' | 'crash' | 'timeout' | 'cdp_error' | 'disconnected';
308
- }
309
- /** Agent stream within an IDE (extension status) */
310
- interface ManagedAgentStream {
265
+ /** Agent stream snapshot carried by flattened UI entries. */
266
+ interface AgentSessionStream {
267
+ sessionId?: string;
268
+ parentSessionId?: string | null;
311
269
  agentType: string;
312
270
  agentName: string;
313
271
  extensionId: string;
272
+ transport?: SessionTransport;
314
273
  status: string;
315
274
  messages: ChatMessage[];
316
275
  inputContent: string;
@@ -320,6 +279,30 @@ interface ManagedAgentStream {
320
279
  buttons: string[];
321
280
  } | null;
322
281
  }
282
+ type SessionTransport = 'cdp-page' | 'cdp-webview' | 'pty' | 'acp';
283
+ type SessionKind = 'workspace' | 'agent';
284
+ type SessionCapability = 'read_chat' | 'send_message' | 'new_session' | 'list_sessions' | 'switch_session' | 'resolve_action' | 'terminal_io' | 'resize_terminal' | 'change_model' | 'set_mode' | 'set_thought_level';
285
+ interface SessionEntry {
286
+ id: string;
287
+ parentId: string | null;
288
+ providerType: string;
289
+ providerName: string;
290
+ kind: SessionKind;
291
+ transport: SessionTransport;
292
+ status: 'idle' | 'generating' | 'waiting_approval' | 'error' | 'stopped' | 'starting' | 'panel_hidden' | 'not_monitored' | 'disconnected';
293
+ title: string;
294
+ workspace: string | null;
295
+ activeChat: ActiveChatData | null;
296
+ capabilities: SessionCapability[];
297
+ cdpConnected?: boolean;
298
+ currentModel?: string;
299
+ currentPlan?: string;
300
+ currentAutoApprove?: string;
301
+ acpConfigOptions?: AcpConfigOption[];
302
+ acpModes?: AcpMode[];
303
+ errorMessage?: string;
304
+ errorReason?: ProviderErrorReason;
305
+ }
323
306
  /** Available provider information */
324
307
  interface AvailableProviderInfo {
325
308
  type: string;
@@ -397,12 +380,8 @@ interface StatusReportPayload {
397
380
  peers: number;
398
381
  screenshotActive?: boolean;
399
382
  };
400
- /** Managed IDE instances */
401
- managedIdes: ManagedIdeEntry[];
402
- /** Managed CLI instances */
403
- managedClis: ManagedCliEntry[];
404
- /** Managed ACP instances */
405
- managedAcps: ManagedAcpEntry[];
383
+ /** Canonical daemon runtime sessions */
384
+ sessions: SessionEntry[];
406
385
  /** Saved workspaces */
407
386
  workspaces?: WorkspaceEntry[];
408
387
  defaultWorkspaceId?: string | null;
@@ -861,4 +840,4 @@ declare function isManagedStatusWaiting(status?: string | null, opts?: {
861
840
  }): boolean;
862
841
  declare function normalizeActiveChatData<T extends ActiveChatData | null | undefined>(activeChat: T): T;
863
842
 
864
- export { type AcpProviderState as A, type ProviderInfo as B, type CommandResult as C, type DaemonEvent as D, type ExtensionInfo as E, type ProviderStatus as F, type SystemInfo as G, type WorkspaceEntry as H, type InstanceContext as I, addCliHistory as J, getWorkspaceActivity as K, getWorkspaceState as L, type ManagedIdeEntry as M, isManagedStatusWaiting as N, isManagedStatusWorking as O, type ProviderCategory as P, isSetupComplete as Q, type ResolvedProvider as R, type StatusResponse as S, loadConfig as T, markSetupComplete as U, normalizeActiveChatData as V, type WorkspaceActivity as W, normalizeManagedStatus as X, resetConfig as Y, saveConfig as Z, updateConfig as _, type ManagedCliEntry as a, type ManagedAcpEntry as b, type ProviderModule as c, type ProviderSettingSchema as d, type CdpTargetFilter as e, type ProviderInstance as f, type ProviderState as g, type ProviderEvent as h, type CliProviderState as i, type IdeProviderState as j, type StatusReportPayload as k, type AvailableProviderInfo as l, type ContentBlock as m, type AcpConfigOption as n, type AcpMode as o, type ActiveChatData as p, type AgentEntry as q, type ChatMessage as r, type DetectedIde as s, type DetectedIdeInfo as t, type ExtensionProviderState as u, type MachineInfo as v, type ManagedAgentStream as w, type ManagedStatus as x, type ProviderConfig as y, type ProviderErrorReason as z };
843
+ export { updateConfig as $, type AvailableProviderInfo as A, type ProviderStatus as B, type CommandResult as C, type DaemonEvent as D, type ExtensionInfo as E, type SessionCapability as F, type SessionKind as G, type SystemInfo as H, type InstanceContext as I, type WorkspaceEntry as J, addCliHistory as K, getWorkspaceActivity as L, type MachineInfo as M, getWorkspaceState as N, isManagedStatusWaiting as O, type ProviderCategory as P, isManagedStatusWorking as Q, type ResolvedProvider as R, type StatusResponse as S, isSetupComplete as T, loadConfig as U, markSetupComplete as V, type WorkspaceActivity as W, normalizeActiveChatData as X, normalizeManagedStatus as Y, resetConfig as Z, saveConfig as _, type SessionEntry as a, type ProviderModule as b, type ProviderSettingSchema as c, type CdpTargetFilter as d, type ProviderInstance as e, type ProviderState as f, type ProviderEvent as g, type SessionTransport as h, type StatusReportPayload as i, type AcpProviderState as j, type ContentBlock as k, type AcpConfigOption as l, type AcpMode as m, type ActiveChatData as n, type AgentEntry as o, type AgentSessionStream as p, type ChatMessage as q, type CliProviderState as r, type DetectedIde as s, type DetectedIdeInfo as t, type ExtensionProviderState as u, type IdeProviderState as v, type ManagedStatus as w, type ProviderConfig as x, type ProviderErrorReason as y, type ProviderInfo as z };
@@ -1 +1 @@
1
- export { x as ManagedStatus, N as isManagedStatusWaiting, O as isManagedStatusWorking, V as normalizeActiveChatData, X as normalizeManagedStatus } from '../normalize-igHDb198.mjs';
1
+ export { w as ManagedStatus, O as isManagedStatusWaiting, Q as isManagedStatusWorking, X as normalizeActiveChatData, Y as normalizeManagedStatus } from '../normalize-S2PmiRgB.mjs';
@@ -1 +1 @@
1
- export { x as ManagedStatus, N as isManagedStatusWaiting, O as isManagedStatusWorking, V as normalizeActiveChatData, X as normalizeManagedStatus } from '../normalize-igHDb198.js';
1
+ export { w as ManagedStatus, O as isManagedStatusWaiting, Q as isManagedStatusWorking, X as normalizeActiveChatData, Y as normalizeManagedStatus } from '../normalize-S2PmiRgB.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.6.79",
3
+ "version": "0.7.0",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",