@adhdev/daemon-core 0.9.29 → 0.9.30
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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { DaemonCdpManager } from '../cdp/manager.js';
|
|
9
9
|
import { type SessionEntryProfile } from './builders.js';
|
|
10
10
|
import type { ProviderState } from '../providers/provider-instance.js';
|
|
11
|
-
import type { MachineInfo, RecentSessionBucket, StatusReportPayload } from '../shared-types.js';
|
|
11
|
+
import type { AvailableProviderInfo, MachineInfo, RecentSessionBucket, StatusReportPayload } from '../shared-types.js';
|
|
12
12
|
export interface StatusSnapshotOptions {
|
|
13
13
|
allStates: ProviderState[];
|
|
14
14
|
cdpManagers: Map<string, DaemonCdpManager>;
|
|
@@ -26,6 +26,10 @@ export interface StatusSnapshotOptions {
|
|
|
26
26
|
category: 'ide' | 'extension' | 'cli' | 'acp';
|
|
27
27
|
installed?: boolean;
|
|
28
28
|
detectedPath?: string | null;
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
machineStatus?: 'disabled' | 'enabled_unchecked' | 'not_detected' | 'detected';
|
|
31
|
+
lastDetection?: AvailableProviderInfo['lastDetection'];
|
|
32
|
+
lastVerification?: AvailableProviderInfo['lastVerification'];
|
|
29
33
|
}>;
|
|
30
34
|
};
|
|
31
35
|
detectedIdes: Array<{
|
package/package.json
CHANGED
package/src/status/snapshot.ts
CHANGED
|
@@ -45,6 +45,10 @@ export interface StatusSnapshotOptions {
|
|
|
45
45
|
category: 'ide' | 'extension' | 'cli' | 'acp';
|
|
46
46
|
installed?: boolean;
|
|
47
47
|
detectedPath?: string | null;
|
|
48
|
+
enabled?: boolean;
|
|
49
|
+
machineStatus?: 'disabled' | 'enabled_unchecked' | 'not_detected' | 'detected';
|
|
50
|
+
lastDetection?: AvailableProviderInfo['lastDetection'];
|
|
51
|
+
lastVerification?: AvailableProviderInfo['lastVerification'];
|
|
48
52
|
}>;
|
|
49
53
|
};
|
|
50
54
|
detectedIdes: Array<{
|
|
@@ -134,6 +138,10 @@ function buildAvailableProviders(
|
|
|
134
138
|
category: 'ide' | 'extension' | 'cli' | 'acp';
|
|
135
139
|
installed?: boolean;
|
|
136
140
|
detectedPath?: string | null;
|
|
141
|
+
enabled?: boolean;
|
|
142
|
+
machineStatus?: 'disabled' | 'enabled_unchecked' | 'not_detected' | 'detected';
|
|
143
|
+
lastDetection?: AvailableProviderInfo['lastDetection'];
|
|
144
|
+
lastVerification?: AvailableProviderInfo['lastVerification'];
|
|
137
145
|
}> = providerLoader.getAvailableProviderInfos?.() || providerLoader.getAll();
|
|
138
146
|
return providers.map((provider) => ({
|
|
139
147
|
type: provider.type,
|
|
@@ -143,6 +151,10 @@ function buildAvailableProviders(
|
|
|
143
151
|
category: provider.category,
|
|
144
152
|
...(provider.installed !== undefined ? { installed: provider.installed } : {}),
|
|
145
153
|
...(provider.detectedPath !== undefined ? { detectedPath: provider.detectedPath } : {}),
|
|
154
|
+
...(provider.enabled !== undefined ? { enabled: provider.enabled } : {}),
|
|
155
|
+
...(provider.machineStatus !== undefined ? { machineStatus: provider.machineStatus } : {}),
|
|
156
|
+
...(provider.lastDetection !== undefined ? { lastDetection: provider.lastDetection } : {}),
|
|
157
|
+
...(provider.lastVerification !== undefined ? { lastVerification: provider.lastVerification } : {}),
|
|
146
158
|
}));
|
|
147
159
|
}
|
|
148
160
|
|