@adhdev/daemon-core 0.9.4 → 0.9.6
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/chat-history.d.ts +4 -3
- package/dist/daemon/dev-auto-implement.d.ts +6 -0
- package/dist/index.js +194 -186
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +194 -186
- package/dist/index.mjs.map +1 -1
- package/dist/providers/cli-provider-instance.d.ts +7 -0
- package/dist/providers/contracts.d.ts +111 -0
- package/dist/providers/provider-session-id.d.ts +6 -2
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/commands/cli-manager.ts +19 -10
- package/src/commands/stream-commands.ts +2 -3
- package/src/config/chat-history.ts +33 -32
- package/src/config/state-store.ts +6 -14
- package/src/daemon/dev-auto-implement.ts +36 -45
- package/src/providers/cli-provider-instance.ts +92 -83
- package/src/providers/contracts.ts +115 -0
- package/src/providers/provider-schema.ts +6 -0
- package/src/providers/provider-session-id.ts +17 -15
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* - Auto-rotation (delete files older than 30 days)
|
|
9
9
|
* - Async/non-blocking (no impact on chat collection)
|
|
10
10
|
*/
|
|
11
|
+
import type { ProviderHistoryBehavior } from '../providers/contracts.js';
|
|
11
12
|
export declare const SAVED_HISTORY_ROLLUP_THRESHOLD_BYTES: number;
|
|
12
13
|
interface HistoryMessage {
|
|
13
14
|
ts: string;
|
|
@@ -75,7 +76,7 @@ export declare class ChatHistoryWriter {
|
|
|
75
76
|
}): void;
|
|
76
77
|
writeSessionStart(agentType: string, historySessionId: string, workspace: string, instanceId?: string): void;
|
|
77
78
|
promoteHistorySession(agentType: string, previousHistorySessionId: string, nextHistorySessionId: string): void;
|
|
78
|
-
compactHistorySession(agentType: string, historySessionId: string): void;
|
|
79
|
+
compactHistorySession(agentType: string, historySessionId: string, historyBehavior?: ProviderHistoryBehavior): void;
|
|
79
80
|
/** Called when agent session is explicitly changed */
|
|
80
81
|
onSessionChange(agentType: string): void;
|
|
81
82
|
/** Delete history files older than 30 days */
|
|
@@ -91,14 +92,14 @@ export declare class ChatHistoryWriter {
|
|
|
91
92
|
* the newest N messages are skipped so older-history pagination can avoid
|
|
92
93
|
* duplicating the live transcript tail already shown in the UI.
|
|
93
94
|
*/
|
|
94
|
-
export declare function readChatHistory(agentType: string, offset?: number, limit?: number, historySessionId?: string, excludeRecentCount?: number): {
|
|
95
|
+
export declare function readChatHistory(agentType: string, offset?: number, limit?: number, historySessionId?: string, excludeRecentCount?: number, historyBehavior?: ProviderHistoryBehavior): {
|
|
95
96
|
messages: HistoryMessage[];
|
|
96
97
|
hasMore: boolean;
|
|
97
98
|
};
|
|
98
99
|
export declare function listSavedHistorySessions(agentType: string, options?: {
|
|
99
100
|
offset?: number;
|
|
100
101
|
limit?: number;
|
|
101
|
-
}): {
|
|
102
|
+
}, historyBehavior?: ProviderHistoryBehavior): {
|
|
102
103
|
sessions: SavedHistorySessionSummary[];
|
|
103
104
|
hasMore: boolean;
|
|
104
105
|
};
|
|
@@ -23,6 +23,12 @@ type CliExerciseVerification = {
|
|
|
23
23
|
fixtureName?: string;
|
|
24
24
|
fixtureNames?: string[];
|
|
25
25
|
};
|
|
26
|
+
export declare function shouldScheduleAutoStopOnQuiet(options: {
|
|
27
|
+
verification?: unknown;
|
|
28
|
+
autoImpl?: {
|
|
29
|
+
autoStopOnQuiet?: boolean;
|
|
30
|
+
} | null;
|
|
31
|
+
}): boolean;
|
|
26
32
|
export declare function getDefaultAutoImplReference(ctx: DevServerContext, category: string, type: string): string;
|
|
27
33
|
export declare function resolveAutoImplReference(ctx: DevServerContext, category: string, requestedReference: string | undefined, targetType: string): string | null;
|
|
28
34
|
export declare function getLatestScriptVersionDir(scriptsDir: string): string | null;
|