ai-hist-native 0.15.9 → 0.16.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
@@ -454,6 +454,9 @@ export interface CloudAuth {
454
454
  baseUrl: string
455
455
  accessToken: string
456
456
  refreshToken?: string
457
+ accessTokenExpiresAt?: string
458
+ orgId?: string
459
+ workspaceId?: string
457
460
  }
458
461
  export interface CloudPushResult {
459
462
  baseUrl: string
@@ -462,6 +465,12 @@ export interface CloudPushResult {
462
465
  syncSkipped: boolean
463
466
  }
464
467
  export declare function cloudLoadAuth(baseUrl?: string | undefined | null): Promise<CloudAuth | null>
468
+ export interface CloudSessionResolution {
469
+ auth?: CloudAuth
470
+ detail?: string
471
+ }
472
+ export declare function cloudResolveSession(baseUrl: string | undefined | null, now: number): Promise<CloudSessionResolution>
473
+ export declare function cloudRefreshSession(baseUrl: string, rejectedToken: string): Promise<CloudAuth | null>
465
474
  export declare function cloudValidateExchangeBaseUrl(baseUrl?: string | undefined | null): Promise<void>
466
475
  export declare function cloudLogin(options?: CloudOptions | undefined | null): Promise<CloudAuth>
467
476
  export declare function enableCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
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, 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 { nativeContractVersion, nativeBuildProfile, search, recent, getSession, getSessionEventsPage, getSessionToolCallsPage, getSessionFileEditsPage, stats, listSessionCatalogPage, listSessionCatalog, discoverSessions, hydrateSession, getSessionRelationships, getSessionTree, getSessionChildrenPage, sync, syncLocal, syncAndPush, accessToken, replay, cloudLoadAuth, cloudResolveSession, cloudRefreshSession, cloudValidateExchangeBaseUrl, cloudLogin, enableCloud, pushCloud, installGitHooks, linkGitCommit, createShareableTrace } = nativeBinding
314
314
 
315
315
  module.exports.nativeContractVersion = nativeContractVersion
316
316
  module.exports.nativeBuildProfile = nativeBuildProfile
@@ -334,6 +334,8 @@ module.exports.syncAndPush = syncAndPush
334
334
  module.exports.accessToken = accessToken
335
335
  module.exports.replay = replay
336
336
  module.exports.cloudLoadAuth = cloudLoadAuth
337
+ module.exports.cloudResolveSession = cloudResolveSession
338
+ module.exports.cloudRefreshSession = cloudRefreshSession
337
339
  module.exports.cloudValidateExchangeBaseUrl = cloudValidateExchangeBaseUrl
338
340
  module.exports.cloudLogin = cloudLogin
339
341
  module.exports.enableCloud = enableCloud
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-darwin-arm64",
3
- "version": "0.15.9",
3
+ "version": "0.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.0",
48
+ "ai-hist-native-darwin-x64": "0.16.0",
49
+ "ai-hist-native-linux-x64-gnu": "0.16.0",
50
+ "ai-hist-native-linux-arm64-gnu": "0.16.0",
51
+ "ai-hist-native-linux-x64-musl": "0.16.0",
52
+ "ai-hist-native-linux-arm64-musl": "0.16.0",
53
+ "ai-hist-native-win32-x64-msvc": "0.16.0"
54
54
  }
55
55
  }