@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.
@@ -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;