ai-hist-native 0.16.0 → 0.18.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 +13 -54
- package/index.js +6 -12
- 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
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
/**
|
|
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>
|
|
13
|
+
export declare function getSourceObservation(requestJson: string): Promise<string>
|
|
14
|
+
export declare function applySourceObservations(requestJson: string): Promise<string>
|
|
15
|
+
export declare function applySourceEvidence(requestJson: string): Promise<string>
|
|
6
16
|
/** Contract version implemented by this native addon. */
|
|
7
17
|
export declare function nativeContractVersion(): number
|
|
8
18
|
/**
|
|
@@ -223,6 +233,7 @@ export declare function listSessionCatalogPage(options?: ListCatalogOptions | un
|
|
|
223
233
|
/** Convenience first-page catalog listing with identical cache-only semantics. */
|
|
224
234
|
export declare function listSessionCatalog(options?: ListCatalogOptions | undefined | null): Promise<Array<CatalogSession>>
|
|
225
235
|
export interface DiscoverOptions {
|
|
236
|
+
sourceConnectors?: Array<string>
|
|
226
237
|
scope?: string
|
|
227
238
|
dbPath?: string
|
|
228
239
|
sources?: Array<string>
|
|
@@ -268,6 +279,7 @@ export interface DiscoverResult {
|
|
|
268
279
|
/** Explicit bounded provider discovery. It updates only the session catalog. */
|
|
269
280
|
export declare function discoverSessions(options?: DiscoverOptions | undefined | null): Promise<DiscoverResult>
|
|
270
281
|
export interface HydrateSessionOptions {
|
|
282
|
+
sourceConnectors?: Array<string>
|
|
271
283
|
source: string
|
|
272
284
|
sessionId: string
|
|
273
285
|
scope?: string
|
|
@@ -410,6 +422,7 @@ export declare function getSessionTree(options: SessionTreeOptions): Promise<Nat
|
|
|
410
422
|
*/
|
|
411
423
|
export declare function getSessionChildrenPage(options: SessionChildrenPageOptions): Promise<NativeSessionChildrenPage>
|
|
412
424
|
export interface SyncOptions {
|
|
425
|
+
sourceConnectors?: Array<string>
|
|
413
426
|
dbPath?: string
|
|
414
427
|
scope?: string
|
|
415
428
|
}
|
|
@@ -422,59 +435,5 @@ export interface SyncResult {
|
|
|
422
435
|
export declare function sync(options?: SyncOptions | undefined | null): Promise<SyncResult>
|
|
423
436
|
/** Backward-compatible internal capture entry point; not used by the SDK. */
|
|
424
437
|
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
|
-
accessTokenExpiresAt?: string
|
|
458
|
-
orgId?: string
|
|
459
|
-
workspaceId?: string
|
|
460
|
-
}
|
|
461
|
-
export interface CloudPushResult {
|
|
462
|
-
baseUrl: string
|
|
463
|
-
sent: number
|
|
464
|
-
accepted: number
|
|
465
|
-
syncSkipped: boolean
|
|
466
|
-
}
|
|
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>
|
|
474
|
-
export declare function cloudValidateExchangeBaseUrl(baseUrl?: string | undefined | null): Promise<void>
|
|
475
|
-
export declare function cloudLogin(options?: CloudOptions | undefined | null): Promise<CloudAuth>
|
|
476
|
-
export declare function enableCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
|
|
477
|
-
export declare function pushCloud(options?: CloudOptions | undefined | null): Promise<CloudPushResult>
|
|
478
438
|
export declare function installGitHooks(optionsJson: string, node: string, sdkUrl: string): Promise<string>
|
|
479
439
|
export declare function linkGitCommit(optionsJson: string): Promise<string>
|
|
480
|
-
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,13 @@ 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,
|
|
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
|
+
module.exports.historyDelivery = historyDelivery
|
|
316
|
+
module.exports.historyDeliveryDrain = historyDeliveryDrain
|
|
317
|
+
module.exports.getSourceObservation = getSourceObservation
|
|
318
|
+
module.exports.applySourceObservations = applySourceObservations
|
|
319
|
+
module.exports.applySourceEvidence = applySourceEvidence
|
|
315
320
|
module.exports.nativeContractVersion = nativeContractVersion
|
|
316
321
|
module.exports.nativeBuildProfile = nativeBuildProfile
|
|
317
322
|
module.exports.search = search
|
|
@@ -330,16 +335,5 @@ module.exports.getSessionTree = getSessionTree
|
|
|
330
335
|
module.exports.getSessionChildrenPage = getSessionChildrenPage
|
|
331
336
|
module.exports.sync = sync
|
|
332
337
|
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.cloudResolveSession = cloudResolveSession
|
|
338
|
-
module.exports.cloudRefreshSession = cloudRefreshSession
|
|
339
|
-
module.exports.cloudValidateExchangeBaseUrl = cloudValidateExchangeBaseUrl
|
|
340
|
-
module.exports.cloudLogin = cloudLogin
|
|
341
|
-
module.exports.enableCloud = enableCloud
|
|
342
|
-
module.exports.pushCloud = pushCloud
|
|
343
338
|
module.exports.installGitHooks = installGitHooks
|
|
344
339
|
module.exports.linkGitCommit = linkGitCommit
|
|
345
|
-
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.
|
|
3
|
+
"version": "0.18.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.18.0",
|
|
48
|
+
"ai-hist-native-darwin-x64": "0.18.0",
|
|
49
|
+
"ai-hist-native-linux-x64-gnu": "0.18.0",
|
|
50
|
+
"ai-hist-native-linux-arm64-gnu": "0.18.0",
|
|
51
|
+
"ai-hist-native-linux-x64-musl": "0.18.0",
|
|
52
|
+
"ai-hist-native-linux-arm64-musl": "0.18.0",
|
|
53
|
+
"ai-hist-native-win32-x64-msvc": "0.18.0"
|
|
54
54
|
}
|
|
55
55
|
}
|