@codebolt/narrative 1.12.4 → 1.12.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NarrativeTransport } from '../transport';
|
|
2
|
-
import { CreateSnapshotParams, CreateSnapshotResult, SnapshotIdParam, CreateArchiveResult, ImportArchiveParams, ImportArchiveResult, ExportBundleParams, ExportBundleResult, AddBundleParams, AddBundleResult, BrowseSnapshotParams, BrowseResult, MergeSnapshotParams, MergeSnapshotResult, CheckSnapshotConflictsParams, CheckConflictsResult, AddCommitParams, AddCommitResult, CheckRecoveryParams, RecoveryCheck, CheckoutSnapshotParams, CheckoutResult, DeleteResult, PruneSnapshotsParams, PruneResult } from '../types/snapshot';
|
|
2
|
+
import { CreateSnapshotParams, CreateSnapshotResult, SnapshotIdParam, CreateArchiveResult, ImportArchiveParams, ImportArchiveResult, ExportBundleParams, ExportBundleResult, AddBundleParams, AddBundleResult, BrowseSnapshotParams, BrowseResult, MergeSnapshotParams, MergeSnapshotResult, CheckSnapshotConflictsParams, CheckConflictsResult, AddCommitParams, AddCommitResult, CheckRecoveryParams, RecoveryCheck, CheckoutSnapshotParams, CheckoutResult, DeleteResult, PruneSnapshotsParams, PruneResult, ExportUnifiedBundleParams, ExportUnifiedBundleResult, ImportUnifiedBundleParams, ImportUnifiedBundleResult } from '../types/snapshot';
|
|
3
3
|
export declare class SnapshotApi {
|
|
4
4
|
private readonly transport;
|
|
5
5
|
constructor(transport: NarrativeTransport);
|
|
@@ -16,4 +16,6 @@ export declare class SnapshotApi {
|
|
|
16
16
|
checkoutSnapshot(params: CheckoutSnapshotParams): Promise<CheckoutResult>;
|
|
17
17
|
deleteSnapshot(params: SnapshotIdParam): Promise<DeleteResult>;
|
|
18
18
|
pruneSnapshots(params?: PruneSnapshotsParams): Promise<PruneResult>;
|
|
19
|
+
exportUnifiedBundle(params: ExportUnifiedBundleParams): Promise<ExportUnifiedBundleResult>;
|
|
20
|
+
importUnifiedBundle(params: ImportUnifiedBundleParams): Promise<ImportUnifiedBundleResult>;
|
|
19
21
|
}
|
package/dist/api/snapshot.api.js
CHANGED
|
@@ -44,5 +44,11 @@ class SnapshotApi {
|
|
|
44
44
|
async pruneSnapshots(params = {}) {
|
|
45
45
|
return this.transport.request('pruneSnapshots', params);
|
|
46
46
|
}
|
|
47
|
+
async exportUnifiedBundle(params) {
|
|
48
|
+
return this.transport.request('exportUnifiedBundle', params);
|
|
49
|
+
}
|
|
50
|
+
async importUnifiedBundle(params) {
|
|
51
|
+
return this.transport.request('importUnifiedBundle', params);
|
|
52
|
+
}
|
|
47
53
|
}
|
|
48
54
|
exports.SnapshotApi = SnapshotApi;
|
package/dist/types/snapshot.d.ts
CHANGED
|
@@ -142,3 +142,30 @@ export interface PruneResult {
|
|
|
142
142
|
pruned_count: number;
|
|
143
143
|
pruned_ids: string[];
|
|
144
144
|
}
|
|
145
|
+
export interface ExportUnifiedBundleParams {
|
|
146
|
+
snapshot_id: string;
|
|
147
|
+
incremental?: boolean;
|
|
148
|
+
base_snapshot_id?: string;
|
|
149
|
+
}
|
|
150
|
+
export interface NarrativeDataSummary {
|
|
151
|
+
snapshots_count: number;
|
|
152
|
+
commits_count: number;
|
|
153
|
+
execution_traces_count: number;
|
|
154
|
+
trace_records_count: number;
|
|
155
|
+
agent_runs_count: number;
|
|
156
|
+
}
|
|
157
|
+
export interface ExportUnifiedBundleResult {
|
|
158
|
+
bundle_path: string;
|
|
159
|
+
snapshot_id: string;
|
|
160
|
+
base_snapshot_id: string | null;
|
|
161
|
+
narrative_summary: NarrativeDataSummary;
|
|
162
|
+
}
|
|
163
|
+
export interface ImportUnifiedBundleParams {
|
|
164
|
+
bundle_path: string;
|
|
165
|
+
}
|
|
166
|
+
export interface ImportUnifiedBundleResult {
|
|
167
|
+
imported_refs: [string, string][];
|
|
168
|
+
snapshot_ids: string[];
|
|
169
|
+
narrative_imported: boolean;
|
|
170
|
+
narrative_summary: NarrativeDataSummary;
|
|
171
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebolt/narrative",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
4
4
|
"description": "TypeScript client for the Codebolt Narrative Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"dist/**/*"
|
|
18
18
|
],
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@codebolt/narrative-darwin-arm64": "1.12.
|
|
21
|
-
"@codebolt/narrative-darwin-x64": "1.12.
|
|
22
|
-
"@codebolt/narrative-linux-x64": "1.12.
|
|
23
|
-
"@codebolt/narrative-linux-arm64": "1.12.
|
|
24
|
-
"@codebolt/narrative-win32-x64": "1.12.
|
|
20
|
+
"@codebolt/narrative-darwin-arm64": "1.12.5",
|
|
21
|
+
"@codebolt/narrative-darwin-x64": "1.12.5",
|
|
22
|
+
"@codebolt/narrative-linux-x64": "1.12.5",
|
|
23
|
+
"@codebolt/narrative-linux-arm64": "1.12.5",
|
|
24
|
+
"@codebolt/narrative-win32-x64": "1.12.5"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT"
|
|
27
27
|
}
|