@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.
@@ -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 {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * ADHDev Launcher — Configuration
3
3
  *
4
- * Manages launcher config, server connection tokens, and user preferences.
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`. Corresponds to `machineId` in server DO context
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;