ai-hist-native 0.26.0 → 0.27.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 +15 -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
|
@@ -8,6 +8,16 @@ export declare function historyExport(requestJson: string, dbPath?: string | und
|
|
|
8
8
|
export declare function historyDelivery(requestJson: string, dbPath?: string | undefined | null): Promise<string>
|
|
9
9
|
/** Compatibility error only. The local addon no longer accepts receivers. */
|
|
10
10
|
export declare function historyDeliveryDrain(optionsJson: string, dbPath?: string | undefined | null): Promise<string>
|
|
11
|
+
/**
|
|
12
|
+
* One JSON request against the `SessionStore` facade.
|
|
13
|
+
*
|
|
14
|
+
* `op` names the read (`markers`, `requests`, `usage_summary`, `user_turns`,
|
|
15
|
+
* `capabilities`) and `args_json` carries `{dbPath?, source, sessionId?,
|
|
16
|
+
* limit?, after?}`. The answer is the same camelCase document the matching
|
|
17
|
+
* typed function returns. A missing database answers an empty page, never an
|
|
18
|
+
* error, and never creates the file.
|
|
19
|
+
*/
|
|
20
|
+
export declare function sessionStoreCall(op: string, argsJson: string): Promise<string>
|
|
11
21
|
export declare function getSourceObservation(requestJson: string): Promise<string>
|
|
12
22
|
export declare function applySourceObservations(requestJson: string): Promise<string>
|
|
13
23
|
export declare function applySourceEvidence(requestJson: string): Promise<string>
|
|
@@ -104,6 +114,11 @@ export interface NativeSessionEvent {
|
|
|
104
114
|
isSidechain?: boolean
|
|
105
115
|
isMeta?: boolean
|
|
106
116
|
turnId?: string
|
|
117
|
+
/**
|
|
118
|
+
* Why a user-role row is not a human prompt; null for a genuine prompt
|
|
119
|
+
* and for every model-output row.
|
|
120
|
+
*/
|
|
121
|
+
controlKind?: string
|
|
107
122
|
}
|
|
108
123
|
export interface EventCursor {
|
|
109
124
|
tsMs: number
|
package/index.js
CHANGED
|
@@ -310,11 +310,12 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
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
|
|
313
|
+
const { historyExport, historyDelivery, historyDeliveryDrain, sessionStoreCall, 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
315
|
module.exports.historyExport = historyExport
|
|
316
316
|
module.exports.historyDelivery = historyDelivery
|
|
317
317
|
module.exports.historyDeliveryDrain = historyDeliveryDrain
|
|
318
|
+
module.exports.sessionStoreCall = sessionStoreCall
|
|
318
319
|
module.exports.getSourceObservation = getSourceObservation
|
|
319
320
|
module.exports.applySourceObservations = applySourceObservations
|
|
320
321
|
module.exports.applySourceEvidence = applySourceEvidence
|
|
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.27.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.27.0",
|
|
48
|
+
"ai-hist-native-darwin-x64": "0.27.0",
|
|
49
|
+
"ai-hist-native-linux-x64-gnu": "0.27.0",
|
|
50
|
+
"ai-hist-native-linux-arm64-gnu": "0.27.0",
|
|
51
|
+
"ai-hist-native-linux-x64-musl": "0.27.0",
|
|
52
|
+
"ai-hist-native-linux-arm64-musl": "0.27.0",
|
|
53
|
+
"ai-hist-native-win32-x64-msvc": "0.27.0"
|
|
54
54
|
}
|
|
55
55
|
}
|