@adhdev/daemon-core 0.9.45 → 0.9.47
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 +6 -4
- package/dist/index.js +191 -713
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +191 -713
- package/dist/index.mjs.map +1 -1
- package/dist/providers/cli-provider-instance.d.ts +2 -7
- package/dist/providers/contracts.d.ts +23 -14
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +1 -0
- package/src/commands/router.ts +5 -1
- package/src/config/chat-history.ts +161 -680
- package/src/providers/cli-provider-instance.ts +32 -70
- package/src/providers/contracts.ts +24 -14
- package/src/providers/provider-schema.ts +40 -0
|
@@ -98,10 +98,8 @@ export declare function listSavedHistorySessions(agentType: string, options?: {
|
|
|
98
98
|
sessions: SavedHistorySessionSummary[];
|
|
99
99
|
hasMore: boolean;
|
|
100
100
|
};
|
|
101
|
-
export
|
|
102
|
-
export declare function
|
|
103
|
-
export declare function resolveCodexSessionTranscriptPath(historySessionId: string, workspace?: string): string | null;
|
|
104
|
-
export declare function rebuildCodexSavedHistoryFromNativeSession(historySessionId: string, workspace?: string): boolean;
|
|
101
|
+
export type ProviderNativeHistoryScripts = Record<string, ((input: any) => any) | undefined>;
|
|
102
|
+
export declare function materializeProviderNativeHistory(agentType: string, canonicalHistory: ProviderCanonicalHistoryConfig | undefined, historySessionId: string, workspace?: string, scripts?: ProviderNativeHistoryScripts): boolean;
|
|
105
103
|
export declare function isNativeSourceCanonicalHistory(canonicalHistory?: ProviderCanonicalHistoryConfig): boolean;
|
|
106
104
|
export declare function readProviderChatHistory(agentType: string, options?: {
|
|
107
105
|
canonicalHistory?: ProviderCanonicalHistoryConfig;
|
|
@@ -111,16 +109,20 @@ export declare function readProviderChatHistory(agentType: string, options?: {
|
|
|
111
109
|
limit?: number;
|
|
112
110
|
excludeRecentCount?: number;
|
|
113
111
|
historyBehavior?: ProviderHistoryBehavior;
|
|
112
|
+
scripts?: ProviderNativeHistoryScripts;
|
|
114
113
|
}): {
|
|
115
114
|
messages: HistoryMessage[];
|
|
116
115
|
hasMore: boolean;
|
|
117
116
|
source: 'provider-native' | 'adhdev-mirror' | 'native-unavailable';
|
|
117
|
+
sourcePath?: string;
|
|
118
|
+
sourceMtimeMs?: number;
|
|
118
119
|
};
|
|
119
120
|
export declare function listProviderHistorySessions(agentType: string, options?: {
|
|
120
121
|
canonicalHistory?: ProviderCanonicalHistoryConfig;
|
|
121
122
|
offset?: number;
|
|
122
123
|
limit?: number;
|
|
123
124
|
historyBehavior?: ProviderHistoryBehavior;
|
|
125
|
+
scripts?: ProviderNativeHistoryScripts;
|
|
124
126
|
}): {
|
|
125
127
|
sessions: SavedHistorySessionSummary[];
|
|
126
128
|
hasMore: boolean;
|