ai-hist-native 0.23.0 → 0.25.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 +12 -6
- 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
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
/* auto-generated by NAPI-RS */
|
|
5
5
|
|
|
6
|
+
export declare function historyExport(requestJson: string, dbPath?: string | undefined | null): Promise<string>
|
|
7
|
+
/** Compatibility error only: this call cannot create a store or run an upload. */
|
|
6
8
|
export declare function historyDelivery(requestJson: string, dbPath?: string | undefined | null): Promise<string>
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
* Rust worker. `prepare` and `send` are the registered JavaScript destinations;
|
|
10
|
-
* `cancelled` reports a host stop request. None of them ever rejects.
|
|
11
|
-
*/
|
|
12
|
-
export declare function historyDeliveryDrain(optionsJson: string, dbPath: string | undefined | null, prepare: (arg: string) => any, send: (arg: string) => any, cancelled: () => any): Promise<string>
|
|
9
|
+
/** Compatibility error only. The local addon no longer accepts receivers. */
|
|
10
|
+
export declare function historyDeliveryDrain(optionsJson: string, dbPath?: string | undefined | null): Promise<string>
|
|
13
11
|
export declare function getSourceObservation(requestJson: string): Promise<string>
|
|
14
12
|
export declare function applySourceObservations(requestJson: string): Promise<string>
|
|
15
13
|
export declare function applySourceEvidence(requestJson: string): Promise<string>
|
|
@@ -530,6 +528,14 @@ export interface HydrateSessionResult {
|
|
|
530
528
|
presence: string
|
|
531
529
|
indexedThrough: HydrationIndexedThrough
|
|
532
530
|
evidence: HydrationEvidence
|
|
531
|
+
/**
|
|
532
|
+
* Bytes read from provider files by this hydration. About the size of
|
|
533
|
+
* the append when a live transcript grew, and small but **not zero** when
|
|
534
|
+
* the session was unchanged: deciding nothing changed means validating
|
|
535
|
+
* each cursor against a bounded window of the file it was written from.
|
|
536
|
+
* Zero is reserved for a pass that opened no provider file at all.
|
|
537
|
+
*/
|
|
538
|
+
bytesRead: number
|
|
533
539
|
/**
|
|
534
540
|
* Evidence kinds this hydration can have indexed, as wire names
|
|
535
541
|
* (`history`, `session_event`, `tool_call`, `file_edit`,
|
package/index.js
CHANGED
|
@@ -310,8 +310,9 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { historyDelivery, historyDeliveryDrain, getSourceObservation, applySourceObservations, applySourceEvidence, nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, getSessionToolCallsPage, getSessionUserTurnsPage, getSessionFileEditsPage, getSessionRequestsPage, getSessionUsage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, getSessionRelationships, getSessionTree, getSessionChildrenPage, sync, syncLocal, installGitHooks, linkGitCommit } = nativeBinding
|
|
313
|
+
const { historyExport, historyDelivery, historyDeliveryDrain, getSourceObservation, applySourceObservations, applySourceEvidence, nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, getSessionToolCallsPage, getSessionUserTurnsPage, getSessionFileEditsPage, getSessionRequestsPage, getSessionUsage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, getSessionRelationships, getSessionTree, getSessionChildrenPage, sync, syncLocal, installGitHooks, linkGitCommit } = nativeBinding
|
|
314
314
|
|
|
315
|
+
module.exports.historyExport = historyExport
|
|
315
316
|
module.exports.historyDelivery = historyDelivery
|
|
316
317
|
module.exports.historyDeliveryDrain = historyDeliveryDrain
|
|
317
318
|
module.exports.getSourceObservation = getSourceObservation
|
|
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.25.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.25.0",
|
|
48
|
+
"ai-hist-native-darwin-x64": "0.25.0",
|
|
49
|
+
"ai-hist-native-linux-x64-gnu": "0.25.0",
|
|
50
|
+
"ai-hist-native-linux-arm64-gnu": "0.25.0",
|
|
51
|
+
"ai-hist-native-linux-x64-musl": "0.25.0",
|
|
52
|
+
"ai-hist-native-linux-arm64-musl": "0.25.0",
|
|
53
|
+
"ai-hist-native-win32-x64-msvc": "0.25.0"
|
|
54
54
|
}
|
|
55
55
|
}
|