@adhdev/daemon-core 0.7.40 → 0.7.42
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/cli-adapters/provider-cli-adapter.d.ts +1 -0
- package/dist/commands/cli-manager.d.ts +3 -0
- package/dist/config/config.d.ts +2 -22
- package/dist/index.js +310 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +310 -34
- package/dist/index.mjs.map +1 -1
- package/dist/providers/cli-provider-instance.d.ts +3 -0
- package/dist/providers/extension-provider-instance.d.ts +1 -0
- package/dist/shared-types.d.ts +2 -0
- package/dist/status/normalize.js +67 -1
- package/dist/status/normalize.js.map +1 -1
- package/dist/status/normalize.mjs +67 -1
- package/dist/status/normalize.mjs.map +1 -1
- package/dist/status/reporter.d.ts +1 -0
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/agent-stream/forward.ts +21 -1
- package/src/agent-stream/poller.ts +6 -1
- package/src/cli-adapters/provider-cli-adapter.ts +37 -2
- package/src/commands/cli-manager.ts +45 -2
- package/src/commands/router.ts +1 -0
- package/src/commands/stream-commands.ts +14 -0
- package/src/config/config.d.ts +5 -50
- package/src/config/config.ts +71 -49
- package/src/config/workspaces.d.ts +1 -4
- package/src/providers/cli-provider-instance.ts +18 -5
- package/src/providers/contracts.ts +0 -1
- package/src/providers/extension-provider-instance.ts +27 -0
- package/src/providers/ide-provider-instance.ts +12 -0
- package/src/shared-types.ts +2 -0
- package/src/status/builders.ts +8 -1
- package/src/status/normalize.ts +85 -0
- package/src/status/reporter.ts +31 -2
|
@@ -171,6 +171,7 @@ export declare class ProviderCliAdapter implements CliAdapter {
|
|
|
171
171
|
private static readonly MAX_ACCUMULATED_BUFFER;
|
|
172
172
|
private currentTurnScope;
|
|
173
173
|
private syncMessageViews;
|
|
174
|
+
private normalizeParsedMessages;
|
|
174
175
|
private sliceFromOffset;
|
|
175
176
|
private buildParseInput;
|
|
176
177
|
private setStatus;
|
|
@@ -53,6 +53,8 @@ export declare class DaemonCliManager {
|
|
|
53
53
|
private providerLoader;
|
|
54
54
|
constructor(deps: CliManagerDeps, providerLoader: ProviderLoader);
|
|
55
55
|
getCliKey(cliType: string, dir: string): string;
|
|
56
|
+
getSessionPresentationMode(sessionId: string): 'terminal' | 'chat' | null;
|
|
57
|
+
isTerminalSession(sessionId: string): boolean;
|
|
56
58
|
private persistRecentActivity;
|
|
57
59
|
private getTransportFactory;
|
|
58
60
|
private createAdapter;
|
|
@@ -77,6 +79,7 @@ export declare class DaemonCliManager {
|
|
|
77
79
|
adapter: CliAdapter;
|
|
78
80
|
key: string;
|
|
79
81
|
} | null;
|
|
82
|
+
private findAdapterBySessionId;
|
|
80
83
|
handleCliCommand(cmd: string, args: any): Promise<CommandResult | null>;
|
|
81
84
|
}
|
|
82
85
|
export {};
|
package/dist/config/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ADHDev Launcher — Configuration
|
|
3
3
|
*
|
|
4
|
-
* Manages launcher config,
|
|
4
|
+
* Manages launcher config, machine auth, and user preferences.
|
|
5
5
|
*/
|
|
6
6
|
import type { WorkspaceEntry } from './workspaces.js';
|
|
7
7
|
import type { RecentActivityEntry } from './recent-activity.js';
|
|
@@ -9,24 +9,13 @@ export type { WorkspaceEntry } from './workspaces.js';
|
|
|
9
9
|
export type { RecentActivityEntry } from './recent-activity.js';
|
|
10
10
|
export interface ADHDevConfig {
|
|
11
11
|
serverUrl: string;
|
|
12
|
-
apiToken: string | null;
|
|
13
|
-
connectionToken: string | null;
|
|
14
12
|
selectedIde: string | null;
|
|
15
13
|
configuredIdes: string[];
|
|
16
14
|
installedExtensions: string[];
|
|
17
|
-
autoConnect: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Not read at runtime. Notification preferences are now managed by:
|
|
20
|
-
* - Web UI layer: useNotificationPrefs (localStorage)
|
|
21
|
-
* - Daemon layer: per-provider settings (approvalAlert, longGeneratingAlert)
|
|
22
|
-
* Kept for backward config compat — will be removed in v0.7+.
|
|
23
|
-
*/
|
|
24
|
-
notifications: boolean;
|
|
25
15
|
userEmail: string | null;
|
|
26
16
|
userName: string | null;
|
|
27
17
|
setupCompleted: boolean;
|
|
28
18
|
setupDate: string | null;
|
|
29
|
-
configuredCLIs: string[];
|
|
30
19
|
enabledIdes: string[];
|
|
31
20
|
/** Saved workspaces for IDE/CLI/ACP launch (daemon-local) */
|
|
32
21
|
workspaces?: WorkspaceEntry[];
|
|
@@ -42,17 +31,12 @@ export interface ADHDevConfig {
|
|
|
42
31
|
/**
|
|
43
32
|
* Stable local machine ID (prefix: `mach_`) — generated locally on first run.
|
|
44
33
|
* Used as daemon instance key (`daemon_<machineId>`) and in status reports.
|
|
45
|
-
* NOT the same as the server-side D1 `machines.id` — see `registeredMachineId`.
|
|
46
34
|
*/
|
|
47
35
|
machineId?: string;
|
|
48
36
|
machineSecret?: string | null;
|
|
49
37
|
/**
|
|
50
38
|
* Server-side D1 `machines.id` — the row ID assigned when daemon registers via
|
|
51
|
-
* `POST /cli/complete`.
|
|
52
|
-
* (`DaemonConnection.machineId`, `StatusContext.machineId`).
|
|
53
|
-
*
|
|
54
|
-
* Naming differs from server-side `machineId` to avoid confusion with the local
|
|
55
|
-
* `config.machineId` (mach_ prefix) which is a different value.
|
|
39
|
+
* `POST /cli/complete`. Used as fallback for machine lookup on re-auth.
|
|
56
40
|
*
|
|
57
41
|
* @deprecated Legacy bridge field — will be removed after 2026-04-06.
|
|
58
42
|
* Modern auth flow uses `machineSecret` (adm_) to identify machines.
|
|
@@ -97,7 +81,3 @@ export declare function isSetupComplete(): boolean;
|
|
|
97
81
|
* Reset configuration
|
|
98
82
|
*/
|
|
99
83
|
export declare function resetConfig(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Generate a connection token for server authentication
|
|
102
|
-
*/
|
|
103
|
-
export declare function generateConnectionToken(): string;
|