ai-hist-native 0.15.9 → 0.17.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 CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
+ export declare function historyDelivery(requestJson: string, dbPath?: string | undefined | null): Promise<string>
7
+ export declare function getSourceObservation(requestJson: string): Promise<string>
8
+ export declare function applySourceObservations(requestJson: string): Promise<string>
9
+ export declare function applySourceEvidence(requestJson: string): Promise<string>
6
10
  /** Contract version implemented by this native addon. */
7
11
  export declare function nativeContractVersion(): number
8
12
  /**
@@ -223,6 +227,7 @@ export declare function listSessionCatalogPage(options?: ListCatalogOptions | un
223
227
  /** Convenience first-page catalog listing with identical cache-only semantics. */
224
228
  export declare function listSessionCatalog(options?: ListCatalogOptions | undefined | null): Promise<Array<CatalogSession>>
225
229
  export interface DiscoverOptions {
230
+ sourceConnectors?: Array<string>
226
231
  scope?: string
227
232
  dbPath?: string
228
233
  sources?: Array<string>
@@ -268,6 +273,7 @@ export interface DiscoverResult {
268
273
  /** Explicit bounded provider discovery. It updates only the session catalog. */
269
274
  export declare function discoverSessions(options?: DiscoverOptions | undefined | null): Promise<DiscoverResult>
270
275
  export interface HydrateSessionOptions {
276
+ sourceConnectors?: Array<string>
271
277
  source: string
272
278
  sessionId: string
273
279
  scope?: string
@@ -410,6 +416,7 @@ export declare function getSessionTree(options: SessionTreeOptions): Promise<Nat
410
416
  */
411
417
  export declare function getSessionChildrenPage(options: SessionChildrenPageOptions): Promise<NativeSessionChildrenPage>
412
418
  export interface SyncOptions {
419
+ sourceConnectors?: Array<string>
413
420
  dbPath?: string
414
421
  scope?: string
415
422
  }
@@ -422,50 +429,5 @@ export interface SyncResult {
422
429
  export declare function sync(options?: SyncOptions | undefined | null): Promise<SyncResult>
423
430
  /** Backward-compatible internal capture entry point; not used by the SDK. */
424
431
  export declare function syncLocal(): Promise<void>
425
- export interface SyncPushResult {
426
- sent: number
427
- accepted: number
428
- authenticated: boolean
429
- syncSkipped: boolean
430
- }
431
- /** Cloud capture hook retained for Agent Relay integration. */
432
- export declare function syncAndPush(): Promise<SyncPushResult>
433
- export interface CloudOptions {
434
- dbPath?: string
435
- baseUrl?: string
436
- relayAccessToken?: string
437
- label?: string
438
- }
439
- export declare function accessToken(baseUrl?: string | undefined | null): Promise<string>
440
- export interface ReplayOptions {
441
- baseUrl?: string
442
- limit?: number
443
- maxContent?: number
444
- json?: boolean
445
- out?: string
446
- }
447
- export interface ReplayResult {
448
- eventCount: number
449
- transcript?: string
450
- outputPath?: string
451
- }
452
- export declare function replay(sessionId: string, options?: ReplayOptions | undefined | null): Promise<ReplayResult>
453
- export interface CloudAuth {
454
- baseUrl: string
455
- accessToken: string
456
- refreshToken?: string
457
- }
458
- export interface CloudPushResult {
459
- baseUrl: string
460
- sent: number
461
- accepted: number
462
- syncSkipped: boolean
463
- }
464
- export declare function cloudLoadAuth(baseUrl?: string | undefined | null): Promise<CloudAuth | null>
465
- export declare function cloudValidateExchangeBaseUrl(baseUrl?: string | undefined | null): Promise<void>
466
- export declare function cloudLogin(options?: CloudOptions | undefined | null): Promise<CloudAuth>
467
- export declare function enableCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
468
- export declare function pushCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
469
432
  export declare function installGitHooks(optionsJson: string, node: string, sdkUrl: string): Promise<string>
470
433
  export declare function linkGitCommit(optionsJson: string): Promise<string>
471
- export declare function createShareableTrace(sessionId: string, visibility: string, source?: string | undefined | null, baseUrl?: string | undefined | null): Promise<string>
package/index.js CHANGED
@@ -310,8 +310,12 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, getSessionToolCallsPage, getSessionFileEditsPage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, getSessionRelationships, getSessionTree, getSessionChildrenPage, sync, syncLocal, syncAndPush, accessToken, replay, cloudLoadAuth, cloudValidateExchangeBaseUrl, cloudLogin, enableCloud, pushCloud, installGitHooks, linkGitCommit, createShareableTrace } = nativeBinding
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
314
314
 
315
+ module.exports.historyDelivery = historyDelivery
316
+ module.exports.getSourceObservation = getSourceObservation
317
+ module.exports.applySourceObservations = applySourceObservations
318
+ module.exports.applySourceEvidence = applySourceEvidence
315
319
  module.exports.nativeContractVersion = nativeContractVersion
316
320
  module.exports.nativeBuildProfile = nativeBuildProfile
317
321
  module.exports.search = search
@@ -330,14 +334,5 @@ module.exports.getSessionTree = getSessionTree
330
334
  module.exports.getSessionChildrenPage = getSessionChildrenPage
331
335
  module.exports.sync = sync
332
336
  module.exports.syncLocal = syncLocal
333
- module.exports.syncAndPush = syncAndPush
334
- module.exports.accessToken = accessToken
335
- module.exports.replay = replay
336
- module.exports.cloudLoadAuth = cloudLoadAuth
337
- module.exports.cloudValidateExchangeBaseUrl = cloudValidateExchangeBaseUrl
338
- module.exports.cloudLogin = cloudLogin
339
- module.exports.enableCloud = enableCloud
340
- module.exports.pushCloud = pushCloud
341
337
  module.exports.installGitHooks = installGitHooks
342
338
  module.exports.linkGitCommit = linkGitCommit
343
- module.exports.createShareableTrace = createShareableTrace
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-darwin-arm64",
3
- "version": "0.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.0",
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.15.9",
3
+ "version": "0.17.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.15.9",
48
- "ai-hist-native-darwin-x64": "0.15.9",
49
- "ai-hist-native-linux-x64-gnu": "0.15.9",
50
- "ai-hist-native-linux-arm64-gnu": "0.15.9",
51
- "ai-hist-native-linux-x64-musl": "0.15.9",
52
- "ai-hist-native-linux-arm64-musl": "0.15.9",
53
- "ai-hist-native-win32-x64-msvc": "0.15.9"
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"
54
54
  }
55
55
  }