@adhdev/daemon-core 0.6.77 → 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.
@@ -11,7 +11,7 @@ import { loadConfig } from '../config/config.js';
11
11
  import { getWorkspaceState } from '../config/workspaces.js';
12
12
  import { getWorkspaceActivity } from '../config/workspace-activity.js';
13
13
  import { getHostMemorySnapshot } from '../system/host-memory.js';
14
- import { buildAllManagedEntries, isCdpConnected } from './builders.js';
14
+ import { buildSessionEntries, isCdpConnected } from './builders.js';
15
15
  import type { ProviderState } from '../providers/provider-instance.js';
16
16
  import type {
17
17
  AvailableProviderInfo,
@@ -80,15 +80,9 @@ export function buildStatusSnapshot(options: StatusSnapshotOptions): StatusSnaps
80
80
  const cfg = loadConfig();
81
81
  const wsState = getWorkspaceState(cfg);
82
82
  const memSnap = getHostMemorySnapshot();
83
- const { managedIdes, managedClis, managedAcps } = buildAllManagedEntries(
83
+ const sessions = buildSessionEntries(
84
84
  options.allStates,
85
85
  options.cdpManagers as Map<string, any>,
86
- {
87
- detectedIdes: options.detectedIdes.map((ide) => ({
88
- id: ide.id,
89
- installed: ide.installed !== false,
90
- })),
91
- },
92
86
  );
93
87
 
94
88
  return {
@@ -111,9 +105,7 @@ export function buildStatusSnapshot(options: StatusSnapshotOptions): StatusSnaps
111
105
  timestamp: options.timestamp ?? Date.now(),
112
106
  detectedIdes: buildDetectedIdeInfos(options.detectedIdes, options.cdpManagers),
113
107
  ...(options.p2p ? { p2p: options.p2p } : {}),
114
- managedIdes,
115
- managedClis,
116
- managedAcps,
108
+ sessions,
117
109
  workspaces: wsState.workspaces,
118
110
  defaultWorkspaceId: wsState.defaultWorkspaceId,
119
111
  defaultWorkspacePath: wsState.defaultWorkspacePath,