@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.
- package/dist/commands/cli-manager.d.ts +2 -1
- package/dist/config/config.d.ts +4 -2
- package/dist/config/recent-activity.d.ts +6 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +247 -224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +247 -224
- package/dist/index.mjs.map +1 -1
- package/dist/providers/cli-provider-instance.d.ts +10 -1
- package/dist/providers/contracts.d.ts +79 -0
- package/dist/providers/provider-instance.d.ts +2 -0
- package/dist/shared-types-extra.d.ts +1 -1
- package/dist/shared-types.d.ts +8 -12
- package/dist/status/snapshot.d.ts +13 -0
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/commands/cli-manager.ts +43 -5
- package/src/commands/router.ts +26 -16
- package/src/config/config.ts +6 -3
- package/src/config/recent-activity.ts +24 -12
- package/src/index.ts +2 -2
- package/src/providers/cli-provider-instance.ts +29 -2
- package/src/providers/contracts.ts +80 -0
- package/src/providers/provider-instance.ts +2 -0
- package/src/shared-types-extra.ts +1 -1
- package/src/shared-types.d.ts +4 -6
- package/src/shared-types.ts +8 -12
- package/src/status/builders.ts +2 -0
- package/src/status/reporter.ts +1 -1
- package/src/status/snapshot.ts +61 -91
|
@@ -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;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -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
|
|
38
|
-
|
|
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 —
|
|
2
|
+
* Unified recent activity — launcher-facing "pick up where you launched".
|
|
3
3
|
*
|
|
4
|
-
* Unlike
|
|
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
|
-
* -
|
|
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
|
|
27
|
-
export declare function
|
|
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 {
|
|
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
|
|
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';
|