ai-hist-native 0.15.1 → 0.15.2
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 +38 -0
- package/index.js +10 -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
|
@@ -430,3 +430,41 @@ export interface SyncPushResult {
|
|
|
430
430
|
}
|
|
431
431
|
/** Cloud capture hook retained for Agent Relay integration. */
|
|
432
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 cloudLogin(options?: CloudOptions | undefined | null): Promise<CloudAuth>
|
|
466
|
+
export declare function enableCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
|
|
467
|
+
export declare function pushCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
|
|
468
|
+
export declare function installGitHooks(optionsJson: string, node: string, sdkUrl: string): Promise<string>
|
|
469
|
+
export declare function linkGitCommit(optionsJson: string): Promise<string>
|
|
470
|
+
export declare function createShareableTrace(sessionId: string, visibility: string, source?: string | undefined | null, baseUrl?: string | undefined | null): Promise<string>
|
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 } = 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, cloudLogin, enableCloud, pushCloud, installGitHooks, linkGitCommit, createShareableTrace } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.nativeContractVersion = nativeContractVersion
|
|
316
316
|
module.exports.nativeBuildProfile = nativeBuildProfile
|
|
@@ -331,3 +331,12 @@ module.exports.getSessionChildrenPage = getSessionChildrenPage
|
|
|
331
331
|
module.exports.sync = sync
|
|
332
332
|
module.exports.syncLocal = syncLocal
|
|
333
333
|
module.exports.syncAndPush = syncAndPush
|
|
334
|
+
module.exports.accessToken = accessToken
|
|
335
|
+
module.exports.replay = replay
|
|
336
|
+
module.exports.cloudLoadAuth = cloudLoadAuth
|
|
337
|
+
module.exports.cloudLogin = cloudLogin
|
|
338
|
+
module.exports.enableCloud = enableCloud
|
|
339
|
+
module.exports.pushCloud = pushCloud
|
|
340
|
+
module.exports.installGitHooks = installGitHooks
|
|
341
|
+
module.exports.linkGitCommit = linkGitCommit
|
|
342
|
+
module.exports.createShareableTrace = createShareableTrace
|
|
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.15.
|
|
3
|
+
"version": "0.15.2",
|
|
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.
|
|
48
|
-
"ai-hist-native-darwin-x64": "0.15.
|
|
49
|
-
"ai-hist-native-linux-x64-gnu": "0.15.
|
|
50
|
-
"ai-hist-native-linux-arm64-gnu": "0.15.
|
|
51
|
-
"ai-hist-native-linux-x64-musl": "0.15.
|
|
52
|
-
"ai-hist-native-linux-arm64-musl": "0.15.
|
|
53
|
-
"ai-hist-native-win32-x64-msvc": "0.15.
|
|
47
|
+
"ai-hist-native-darwin-arm64": "0.15.2",
|
|
48
|
+
"ai-hist-native-darwin-x64": "0.15.2",
|
|
49
|
+
"ai-hist-native-linux-x64-gnu": "0.15.2",
|
|
50
|
+
"ai-hist-native-linux-arm64-gnu": "0.15.2",
|
|
51
|
+
"ai-hist-native-linux-x64-musl": "0.15.2",
|
|
52
|
+
"ai-hist-native-linux-arm64-musl": "0.15.2",
|
|
53
|
+
"ai-hist-native-win32-x64-msvc": "0.15.2"
|
|
54
54
|
}
|
|
55
55
|
}
|