ai-hist-native 0.17.0 → 0.18.1

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 CHANGED
@@ -4,6 +4,12 @@
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
6
  export declare function historyDelivery(requestJson: string, dbPath?: string | undefined | null): Promise<string>
7
+ /**
8
+ * One bounded drain of every selected delivery job, run by the single generic
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>
7
13
  export declare function getSourceObservation(requestJson: string): Promise<string>
8
14
  export declare function applySourceObservations(requestJson: string): Promise<string>
9
15
  export declare function applySourceEvidence(requestJson: string): Promise<string>
package/index.js CHANGED
@@ -310,9 +310,10 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { historyDelivery, getSourceObservation, applySourceObservations, applySourceEvidence, nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, getSessionToolCallsPage, getSessionFileEditsPage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, getSessionRelationships, getSessionTree, getSessionChildrenPage, sync, syncLocal, installGitHooks, linkGitCommit } = nativeBinding
313
+ const { historyDelivery, historyDeliveryDrain, getSourceObservation, applySourceObservations, applySourceEvidence, nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, getSessionToolCallsPage, getSessionFileEditsPage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, getSessionRelationships, getSessionTree, getSessionChildrenPage, sync, syncLocal, installGitHooks, linkGitCommit } = nativeBinding
314
314
 
315
315
  module.exports.historyDelivery = historyDelivery
316
+ module.exports.historyDeliveryDrain = historyDeliveryDrain
316
317
  module.exports.getSourceObservation = getSourceObservation
317
318
  module.exports.applySourceObservations = applySourceObservations
318
319
  module.exports.applySourceEvidence = applySourceEvidence
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-darwin-arm64",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "darwin"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-darwin-x64",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "darwin"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-arm64-gnu",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-arm64-musl",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-x64-gnu",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-x64-musl",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-win32-x64-msvc",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "os": [
5
5
  "win32"
6
6
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
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.17.0",
48
- "ai-hist-native-darwin-x64": "0.17.0",
49
- "ai-hist-native-linux-x64-gnu": "0.17.0",
50
- "ai-hist-native-linux-arm64-gnu": "0.17.0",
51
- "ai-hist-native-linux-x64-musl": "0.17.0",
52
- "ai-hist-native-linux-arm64-musl": "0.17.0",
53
- "ai-hist-native-win32-x64-msvc": "0.17.0"
47
+ "ai-hist-native-darwin-arm64": "0.18.1",
48
+ "ai-hist-native-darwin-x64": "0.18.1",
49
+ "ai-hist-native-linux-x64-gnu": "0.18.1",
50
+ "ai-hist-native-linux-arm64-gnu": "0.18.1",
51
+ "ai-hist-native-linux-x64-musl": "0.18.1",
52
+ "ai-hist-native-linux-arm64-musl": "0.18.1",
53
+ "ai-hist-native-win32-x64-msvc": "0.18.1"
54
54
  }
55
55
  }