@adhdev/daemon-core 0.9.28 → 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.
- package/dist/config/config.d.ts +16 -0
- package/dist/index.js +374 -67
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +348 -41
- package/dist/index.mjs.map +1 -1
- package/dist/providers/provider-loader.d.ts +39 -8
- package/dist/shared-types.d.ts +35 -0
- package/dist/status/snapshot.d.ts +5 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +4 -3
- package/src/commands/cli-manager.ts +45 -15
- package/src/commands/router.ts +38 -2
- package/src/config/config.ts +46 -0
- package/src/providers/provider-loader.d.ts +23 -0
- package/src/providers/provider-loader.ts +286 -18
- package/src/shared-types.d.ts +4 -0
- package/src/shared-types.ts +36 -0
- package/src/status/snapshot.ts +12 -0
package/dist/config/config.d.ts
CHANGED
|
@@ -10,6 +10,21 @@ export type { SavedProviderSessionEntry } from './saved-sessions.js';
|
|
|
10
10
|
export type { DaemonState } from './state-store.js';
|
|
11
11
|
export type ProviderSourceMode = 'normal' | 'no-upstream';
|
|
12
12
|
export declare function resolveProviderSourceMode(providerSourceMode: unknown, legacyDisableUpstream: unknown): ProviderSourceMode;
|
|
13
|
+
export interface MachineProviderCheckResult {
|
|
14
|
+
ok: boolean;
|
|
15
|
+
stage?: 'detection' | 'runnable' | 'verification';
|
|
16
|
+
checkedAt?: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
command?: string;
|
|
19
|
+
path?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface MachineProviderConfig {
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
executable?: string;
|
|
24
|
+
args?: string[];
|
|
25
|
+
lastDetection?: MachineProviderCheckResult;
|
|
26
|
+
lastVerification?: MachineProviderCheckResult;
|
|
27
|
+
}
|
|
13
28
|
export interface ADHDevConfig {
|
|
14
29
|
serverUrl: string;
|
|
15
30
|
/**
|
|
@@ -46,6 +61,7 @@ export interface ADHDevConfig {
|
|
|
46
61
|
*/
|
|
47
62
|
registeredMachineId?: string;
|
|
48
63
|
providerSettings: Record<string, Record<string, any>>;
|
|
64
|
+
machineProviders: Record<string, MachineProviderConfig>;
|
|
49
65
|
ideSettings: Record<string, {
|
|
50
66
|
extensions?: Record<string, {
|
|
51
67
|
enabled: boolean;
|