ai-hist-native 0.9.2 → 0.10.0
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/index.d.ts +38 -0
- package/index.js +2 -1
- package/npm/darwin-arm64/ai-hist-native.darwin-arm64.node +0 -0
- package/npm/darwin-arm64/package.json +1 -1
- package/npm/darwin-x64/ai-hist-native.darwin-x64.node +0 -0
- package/npm/darwin-x64/package.json +1 -1
- package/npm/linux-arm64-gnu/ai-hist-native.linux-arm64-gnu.node +0 -0
- package/npm/linux-arm64-gnu/package.json +1 -1
- package/npm/linux-arm64-musl/ai-hist-native.linux-arm64-musl.node +0 -0
- package/npm/linux-arm64-musl/package.json +1 -1
- package/npm/linux-x64-gnu/ai-hist-native.linux-x64-gnu.node +0 -0
- package/npm/linux-x64-gnu/package.json +1 -1
- package/npm/linux-x64-musl/ai-hist-native.linux-x64-musl.node +0 -0
- package/npm/linux-x64-musl/package.json +1 -1
- package/npm/win32-x64-msvc/ai-hist-native.win32-x64-msvc.node +0 -0
- package/npm/win32-x64-msvc/package.json +1 -1
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -191,6 +191,44 @@ export interface DiscoverResult {
|
|
|
191
191
|
}
|
|
192
192
|
/** Explicit bounded provider discovery. It updates only the session catalog. */
|
|
193
193
|
export declare function discoverSessions(options?: DiscoverOptions | undefined | null): Promise<DiscoverResult>
|
|
194
|
+
export interface HydrateSessionOptions {
|
|
195
|
+
source: string
|
|
196
|
+
sessionId: string
|
|
197
|
+
scope?: string
|
|
198
|
+
dbPath?: string
|
|
199
|
+
includeRelated?: boolean
|
|
200
|
+
}
|
|
201
|
+
export interface HydrationIndexedThrough {
|
|
202
|
+
sourceStamp?: string
|
|
203
|
+
lastEventAtMs?: number
|
|
204
|
+
}
|
|
205
|
+
export interface HydrationEvidence {
|
|
206
|
+
prompts: number
|
|
207
|
+
events: number
|
|
208
|
+
toolCalls: number
|
|
209
|
+
relatedSessions: number
|
|
210
|
+
}
|
|
211
|
+
export interface HydrationDiagnostic {
|
|
212
|
+
code: string
|
|
213
|
+
message: string
|
|
214
|
+
durationMs?: number
|
|
215
|
+
sourceBytes?: number
|
|
216
|
+
recordsParsed?: number
|
|
217
|
+
}
|
|
218
|
+
export interface HydrateSessionResult {
|
|
219
|
+
contractVersion: number
|
|
220
|
+
source: string
|
|
221
|
+
sessionId: string
|
|
222
|
+
status: string
|
|
223
|
+
discoveryState: string
|
|
224
|
+
presence: string
|
|
225
|
+
indexedThrough: HydrationIndexedThrough
|
|
226
|
+
evidence: HydrationEvidence
|
|
227
|
+
relatedSessionIds: Array<string>
|
|
228
|
+
diagnostics: Array<HydrationDiagnostic>
|
|
229
|
+
}
|
|
230
|
+
/** Fully index one cataloged session without enumerating unrelated sessions. */
|
|
231
|
+
export declare function hydrateSession(options: HydrateSessionOptions): Promise<HydrateSessionResult>
|
|
194
232
|
export interface SyncOptions {
|
|
195
233
|
dbPath?: string
|
|
196
234
|
scope?: string
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, sync, syncLocal, syncAndPush } = nativeBinding
|
|
313
|
+
const { nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, sync, syncLocal, syncAndPush } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.nativeContractVersion = nativeContractVersion
|
|
316
316
|
module.exports.nativeBuildProfile = nativeBuildProfile
|
|
@@ -322,6 +322,7 @@ module.exports.stats = stats
|
|
|
322
322
|
module.exports.listSessionCatalogPage = listSessionCatalogPage
|
|
323
323
|
module.exports.listSessionCatalog = listSessionCatalog
|
|
324
324
|
module.exports.discoverSessions = discoverSessions
|
|
325
|
+
module.exports.hydrateSession = hydrateSession
|
|
325
326
|
module.exports.sync = sync
|
|
326
327
|
module.exports.syncLocal = syncLocal
|
|
327
328
|
module.exports.syncAndPush = syncAndPush
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-hist-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Mandatory Node-API engine for RelayHistory.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@napi-rs/cli": "^2.18.4"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"ai-hist-native-darwin-arm64": "0.
|
|
48
|
-
"ai-hist-native-darwin-x64": "0.
|
|
49
|
-
"ai-hist-native-linux-x64-gnu": "0.
|
|
50
|
-
"ai-hist-native-linux-arm64-gnu": "0.
|
|
51
|
-
"ai-hist-native-linux-x64-musl": "0.
|
|
52
|
-
"ai-hist-native-linux-arm64-musl": "0.
|
|
53
|
-
"ai-hist-native-win32-x64-msvc": "0.
|
|
47
|
+
"ai-hist-native-darwin-arm64": "0.10.0",
|
|
48
|
+
"ai-hist-native-darwin-x64": "0.10.0",
|
|
49
|
+
"ai-hist-native-linux-x64-gnu": "0.10.0",
|
|
50
|
+
"ai-hist-native-linux-arm64-gnu": "0.10.0",
|
|
51
|
+
"ai-hist-native-linux-x64-musl": "0.10.0",
|
|
52
|
+
"ai-hist-native-linux-arm64-musl": "0.10.0",
|
|
53
|
+
"ai-hist-native-win32-x64-msvc": "0.10.0"
|
|
54
54
|
}
|
|
55
55
|
}
|