@adhdev/daemon-core 0.7.39 → 0.7.41

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.
@@ -46,6 +46,7 @@ export interface HostedCliRuntimeDescriptor {
46
46
  cliType: string;
47
47
  workspace: string;
48
48
  cliArgs?: string[];
49
+ launchMode?: string;
49
50
  }
50
51
  export declare class DaemonCliManager {
51
52
  readonly adapters: Map<string, CliAdapter>;
@@ -58,7 +59,7 @@ export declare class DaemonCliManager {
58
59
  private createAdapter;
59
60
  private startCliExitMonitor;
60
61
  private registerCliInstance;
61
- startSession(cliType: string, workingDir: string, cliArgs?: string[], initialModel?: string): Promise<void>;
62
+ startSession(cliType: string, workingDir: string, cliArgs?: string[], initialModel?: string, launchMode?: string, launchOptionValues?: Record<string, string | boolean | number>): Promise<void>;
62
63
  stopSession(key: string): Promise<void>;
63
64
  stopSessionWithMode(key: string, mode: 'hard' | 'save'): Promise<void>;
64
65
  shutdownAll(): void;
@@ -34,8 +34,10 @@ export interface ADHDevConfig {
34
34
  defaultWorkspaceId?: string | null;
35
35
  /** Unified recent activity across IDE / CLI / ACP launch flows */
36
36
  recentActivity?: RecentActivityEntry[];
37
- /** Last seen timestamps for machine-facing recent/session entries */
38
- recentSessionReads?: Record<string, number>;
37
+ /** Last seen timestamps for live sessions, keyed by sessionId */
38
+ sessionReads?: Record<string, number>;
39
+ /** Last seen completion marker for live sessions, keyed by sessionId */
40
+ sessionReadMarkers?: Record<string, string>;
39
41
  machineNickname: string | null;
40
42
  /**
41
43
  * Stable local machine ID (prefix: `mach_`) — generated locally on first run.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Unified recent activity — machine-facing "pick up where you left off".
2
+ * Unified recent activity — launcher-facing "pick up where you launched".
3
3
  *
4
- * Unlike cliHistory or workspaceActivity, this is task/session oriented:
4
+ * Unlike live session state, this is launch oriented:
5
5
  * - one normalized row shape for IDE / CLI / ACP
6
6
  * - deduped by kind + providerType + workspace
7
- * - optionally linked to a live sessionId when known
7
+ * - used only for quick-launch shortcuts
8
8
  */
9
9
  import type { ADHDevConfig } from './config.js';
10
10
  export interface RecentActivityEntry {
@@ -14,7 +14,6 @@ export interface RecentActivityEntry {
14
14
  providerName: string;
15
15
  workspace?: string | null;
16
16
  currentModel?: string;
17
- sessionId?: string | null;
18
17
  title?: string;
19
18
  lastUsedAt: number;
20
19
  }
@@ -23,5 +22,6 @@ export declare function appendRecentActivity(config: ADHDevConfig, entry: Omit<R
23
22
  lastUsedAt?: number;
24
23
  }): ADHDevConfig;
25
24
  export declare function getRecentActivity(config: ADHDevConfig, limit?: number): RecentActivityEntry[];
26
- export declare function getRecentSessionSeenAt(config: ADHDevConfig, recentKey: string): number;
27
- export declare function markRecentSessionSeen(config: ADHDevConfig, recentKey: string, seenAt?: number): ADHDevConfig;
25
+ export declare function getSessionSeenAt(config: ADHDevConfig, sessionId: string): number;
26
+ export declare function getSessionSeenMarker(config: ADHDevConfig, sessionId: string): string;
27
+ export declare function markSessionSeen(config: ADHDevConfig, sessionId: string, seenAt?: number, completionMarker?: string | null): ADHDevConfig;
package/dist/index.d.ts CHANGED
@@ -7,11 +7,11 @@ export type { ChatMessage, ExtensionInfo, CommandResult as CoreCommandResult, Pr
7
7
  export type { SessionEntry, SessionTransport, SessionKind, SessionCapability, AgentSessionStream, AvailableProviderInfo, AcpConfigOption, AcpMode, ProviderControlSchema, StatusReportPayload, MachineInfo, DetectedIdeInfo, WorkspaceEntry, ProviderStatus, ProviderErrorReason, ActiveChatData, IdeProviderState, CliProviderState, AcpProviderState, ExtensionProviderState, } from './shared-types.js';
8
8
  import type { RuntimeWriteOwner as _RuntimeWriteOwner } from './shared-types-extra.js';
9
9
  import type { RuntimeAttachedClient as _RuntimeAttachedClient } from './shared-types-extra.js';
10
- import type { RecentSessionEntry as _RecentSessionEntry } from './shared-types.js';
10
+ import type { RecentLaunchEntry as _RecentLaunchEntry } from './shared-types.js';
11
11
  import type { TerminalBackendStatus as _TerminalBackendStatus } from './shared-types-extra.js';
12
12
  export type RuntimeWriteOwner = _RuntimeWriteOwner;
13
13
  export type RuntimeAttachedClient = _RuntimeAttachedClient;
14
- export type RecentSessionEntry = _RecentSessionEntry;
14
+ export type RecentLaunchEntry = _RecentLaunchEntry;
15
15
  export type TerminalBackendStatus = _TerminalBackendStatus;
16
16
  export type SessionStatus = 'idle' | 'generating' | 'waiting_approval' | 'error' | 'stopped' | 'starting' | 'panel_hidden' | 'not_monitored' | 'disconnected';
17
17
  export type RecentSessionBucket = 'needs_attention' | 'working' | 'task_complete' | 'idle';