@opengeni/runtime 2.5.2-canary.0 → 2.5.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/dist/{chunk-GBHOT4KS.js → chunk-GJC7H2FC.js} +6 -6
- package/dist/{chunk-GBHOT4KS.js.map → chunk-GJC7H2FC.js.map} +1 -1
- package/dist/{chunk-LEIGL6X2.js → chunk-LGLJ5PVD.js} +1320 -2284
- package/dist/chunk-LGLJ5PVD.js.map +1 -0
- package/dist/index.js +2 -6
- package/dist/sandbox/index.d.ts +1 -5
- package/dist/sandbox/index.js +1 -5
- package/dist/sandbox/workspace-archive.d.ts +0 -7
- package/dist/workspace-tool-gateway.js +2 -2
- package/package.json +11 -11
- package/src/sandbox/index.ts +203 -292
- package/src/sandbox/workspace-archive.ts +1 -54
- package/dist/chunk-LEIGL6X2.js.map +0 -1
- package/dist/sandbox/archive-spool.d.ts +0 -14
- package/dist/sandbox/host-archive-spool.d.ts +0 -19
- package/src/sandbox/archive-spool.ts +0 -16
- package/src/sandbox/host-archive-spool.ts +0 -1040
package/dist/index.js
CHANGED
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
workspaceEnvironmentInstructions,
|
|
248
248
|
wrapAttemptToolDefinitions,
|
|
249
249
|
wrapAttemptToolExecute
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-GJC7H2FC.js";
|
|
251
251
|
import {
|
|
252
252
|
ActiveBackendUnresolvableError,
|
|
253
253
|
BROWSER_CONTROL_ADMIN_TOKEN_FILE,
|
|
@@ -361,7 +361,6 @@ import {
|
|
|
361
361
|
buildTerminalServerScript,
|
|
362
362
|
cancelSelfhostedOp,
|
|
363
363
|
captureVerifiedWorkspaceArchive,
|
|
364
|
-
captureWorkspaceArchiveForStorage,
|
|
365
364
|
classifyProviderSandboxFailure,
|
|
366
365
|
clearRunCredentials,
|
|
367
366
|
clearRunCredentialsForAttempt,
|
|
@@ -386,7 +385,6 @@ import {
|
|
|
386
385
|
describeNativeSnapshotArchive,
|
|
387
386
|
deserializeSandboxSessionStateEnvelope,
|
|
388
387
|
desktopCapableBackend,
|
|
389
|
-
disposeWorkspaceArchive,
|
|
390
388
|
dockerNetworkExposedPortEndpoint,
|
|
391
389
|
drainingExhaustedError,
|
|
392
390
|
drainingMessage,
|
|
@@ -519,7 +517,7 @@ import {
|
|
|
519
517
|
withRunCredentialsClient,
|
|
520
518
|
withRunCredentialsSession,
|
|
521
519
|
withoutSandboxProviderIdentity
|
|
522
|
-
} from "./chunk-
|
|
520
|
+
} from "./chunk-LGLJ5PVD.js";
|
|
523
521
|
import "./chunk-CD22I76N.js";
|
|
524
522
|
import {
|
|
525
523
|
SKILL_MAX_FILES,
|
|
@@ -761,7 +759,6 @@ export {
|
|
|
761
759
|
callModelInputFilterForSettings,
|
|
762
760
|
cancelSelfhostedOp,
|
|
763
761
|
captureVerifiedWorkspaceArchive,
|
|
764
|
-
captureWorkspaceArchiveForStorage,
|
|
765
762
|
clampCompactionThresholdRatio,
|
|
766
763
|
classifyProviderSandboxFailure,
|
|
767
764
|
clearRunCredentials,
|
|
@@ -807,7 +804,6 @@ export {
|
|
|
807
804
|
describeNativeSnapshotArchive,
|
|
808
805
|
deserializeSandboxSessionStateEnvelope,
|
|
809
806
|
desktopCapableBackend,
|
|
810
|
-
disposeWorkspaceArchive,
|
|
811
807
|
dockerNetworkExposedPortEndpoint,
|
|
812
808
|
drainingExhaustedError,
|
|
813
809
|
drainingMessage,
|
package/dist/sandbox/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export type { ProviderCommandPersistence, ProviderCommandSession, } from "./provider-command-session.js";
|
|
2
2
|
import type { Settings } from "@opengeni/config";
|
|
3
|
-
|
|
4
|
-
import type { WorkspaceArchiveSpool } from "./archive-spool.js";
|
|
5
|
-
export { captureWorkspaceArchiveForStorage, disposeWorkspaceArchive, type VerifiedWorkspaceArchivePayload, } from "./workspace-archive.js";
|
|
6
|
-
import { type WorkspaceArchiveObjectRef, type SandboxBackend, type SandboxProviderContinuityRecovery } from "@opengeni/contracts";
|
|
3
|
+
import { type SandboxBackend, type SandboxProviderContinuityRecovery } from "@opengeni/contracts";
|
|
7
4
|
import type { SandboxClient, SandboxSessionState } from "@openai/agents/sandbox";
|
|
8
5
|
import { type WorkspaceArchiveDescriptor } from "./workspace-archive.js";
|
|
9
6
|
import type { RuntimeMetricsHooks } from "../metrics.js";
|
|
@@ -205,7 +202,6 @@ export declare function withoutSandboxProviderIdentity(envelope: Record<string,
|
|
|
205
202
|
export declare function establishSandboxSessionFromEnvelope(settings: Settings, envelope: Record<string, unknown> | null, opts: {
|
|
206
203
|
sessionId: string;
|
|
207
204
|
recovery: "create-or-restore" | "resume-only";
|
|
208
|
-
loadHostWorkspaceArchive?: (ref: WorkspaceArchiveObjectRef) => Promise<WorkspaceArchiveSpool>;
|
|
209
205
|
backendOverride?: SandboxBackend;
|
|
210
206
|
environment?: Record<string, string>;
|
|
211
207
|
onSandboxCreated?: SandboxCreatedCallback;
|
package/dist/sandbox/index.js
CHANGED
|
@@ -110,7 +110,6 @@ import {
|
|
|
110
110
|
buildTerminalServerScript,
|
|
111
111
|
cancelSelfhostedOp,
|
|
112
112
|
captureVerifiedWorkspaceArchive,
|
|
113
|
-
captureWorkspaceArchiveForStorage,
|
|
114
113
|
classifyProviderSandboxFailure,
|
|
115
114
|
clearRunCredentials,
|
|
116
115
|
clearRunCredentialsForAttempt,
|
|
@@ -135,7 +134,6 @@ import {
|
|
|
135
134
|
describeNativeSnapshotArchive,
|
|
136
135
|
deserializeSandboxSessionStateEnvelope,
|
|
137
136
|
desktopCapableBackend,
|
|
138
|
-
disposeWorkspaceArchive,
|
|
139
137
|
dockerNetworkExposedPortEndpoint,
|
|
140
138
|
drainingExhaustedError,
|
|
141
139
|
drainingMessage,
|
|
@@ -267,7 +265,7 @@ import {
|
|
|
267
265
|
withRunCredentialsClient,
|
|
268
266
|
withRunCredentialsSession,
|
|
269
267
|
withoutSandboxProviderIdentity
|
|
270
|
-
} from "../chunk-
|
|
268
|
+
} from "../chunk-LGLJ5PVD.js";
|
|
271
269
|
import "../chunk-CD22I76N.js";
|
|
272
270
|
import "../chunk-25B3EQRW.js";
|
|
273
271
|
import "../chunk-PZ5AY32C.js";
|
|
@@ -383,7 +381,6 @@ export {
|
|
|
383
381
|
buildTerminalServerScript,
|
|
384
382
|
cancelSelfhostedOp,
|
|
385
383
|
captureVerifiedWorkspaceArchive,
|
|
386
|
-
captureWorkspaceArchiveForStorage,
|
|
387
384
|
classifyProviderSandboxFailure,
|
|
388
385
|
clearRunCredentials,
|
|
389
386
|
clearRunCredentialsForAttempt,
|
|
@@ -408,7 +405,6 @@ export {
|
|
|
408
405
|
describeNativeSnapshotArchive,
|
|
409
406
|
deserializeSandboxSessionStateEnvelope,
|
|
410
407
|
desktopCapableBackend,
|
|
411
|
-
disposeWorkspaceArchive,
|
|
412
408
|
dockerNetworkExposedPortEndpoint,
|
|
413
409
|
drainingExhaustedError,
|
|
414
410
|
drainingMessage,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type NativeSnapshotDescriptor, type NativeSnapshotRef, type WorkspaceArchiveDescriptor, type WorkspaceTreeFingerprint } from "@opengeni/contracts";
|
|
2
|
-
import type { VerifiedHostWorkspaceArchive } from "./archive-spool.js";
|
|
3
2
|
export { WORKSPACE_ARCHIVE_DESCRIPTOR_VERSION, decodeNativeSnapshotRef, encodeNativeSnapshotRef, parseWorkspaceArchiveDescriptor, type NativeSnapshotDescriptor, type NativeSnapshotProvider, type NativeSnapshotRef, type TarWorkspaceArchiveDescriptor, type WorkspaceArchiveDescriptor, type WorkspaceTreeFingerprint, } from "@opengeni/contracts";
|
|
4
3
|
export type VerifiedWorkspaceArchive = {
|
|
5
4
|
bytes: Uint8Array;
|
|
@@ -8,12 +7,6 @@ export type VerifiedWorkspaceArchive = {
|
|
|
8
7
|
kind: "tar" | "provider_snapshot";
|
|
9
8
|
nativeSnapshot?: NativeSnapshotRef;
|
|
10
9
|
};
|
|
11
|
-
export type VerifiedWorkspaceArchivePayload = VerifiedWorkspaceArchive | VerifiedHostWorkspaceArchive;
|
|
12
|
-
/** Host-backed portable archives can go directly to object storage without an
|
|
13
|
-
* intermediate whole-document string or buffer. Existing inline/provider APIs
|
|
14
|
-
* retain their compatibility path when disk-backed publication is unavailable. */
|
|
15
|
-
export declare function captureWorkspaceArchiveForStorage(session: unknown, capturedAtMs: number, options: WorkspaceArchiveCaptureOptions, objectStorageAvailable: boolean): Promise<VerifiedWorkspaceArchivePayload>;
|
|
16
|
-
export declare function disposeWorkspaceArchive(archive: VerifiedWorkspaceArchivePayload | undefined): Promise<void>;
|
|
17
10
|
export type WorkspaceArchiveIntegrityCode = "archive_metadata_missing" | "archive_metadata_invalid" | "archive_base64_invalid" | "archive_hash_mismatch" | "archive_hydration_failed" | "workspace_fingerprint_unavailable" | "workspace_changed_during_capture" | "workspace_fingerprint_mismatch" | "native_snapshot_reference_invalid" | "native_snapshot_fallback_unverified";
|
|
18
11
|
export declare class WorkspaceArchiveIntegrityError extends Error {
|
|
19
12
|
readonly code: WorkspaceArchiveIntegrityCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/runtime",
|
|
3
|
-
"version": "2.5.2
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -62,16 +62,16 @@
|
|
|
62
62
|
"@openai/agents": "0.14.3",
|
|
63
63
|
"@openai/agents-core": "0.14.3",
|
|
64
64
|
"@openai/agents-extensions": "0.14.3",
|
|
65
|
-
"@opengeni/agent-proto": "^0.5.1
|
|
66
|
-
"@opengeni/capabilities": "^0.3.3
|
|
67
|
-
"@opengeni/codemode": "^0.5.5
|
|
68
|
-
"@opengeni/codex": "^0.2.22
|
|
69
|
-
"@opengeni/config": "^1.1.1
|
|
70
|
-
"@opengeni/contracts": "^3.0.1
|
|
71
|
-
"@opengeni/network": "^0.3.1
|
|
72
|
-
"@opengeni/sdk": "^5.0.3
|
|
73
|
-
"@opengeni/tool-gateway": "^0.1.6
|
|
74
|
-
"@opengeni/xai-subscription": "^0.1.4
|
|
65
|
+
"@opengeni/agent-proto": "^0.5.1",
|
|
66
|
+
"@opengeni/capabilities": "^0.3.3",
|
|
67
|
+
"@opengeni/codemode": "^0.5.5",
|
|
68
|
+
"@opengeni/codex": "^0.2.22",
|
|
69
|
+
"@opengeni/config": "^1.1.1",
|
|
70
|
+
"@opengeni/contracts": "^3.0.1",
|
|
71
|
+
"@opengeni/network": "^0.3.1",
|
|
72
|
+
"@opengeni/sdk": "^5.0.3",
|
|
73
|
+
"@opengeni/tool-gateway": "^0.1.6",
|
|
74
|
+
"@opengeni/xai-subscription": "^0.1.4",
|
|
75
75
|
"debug": "4.4.3",
|
|
76
76
|
"modal": "0.9.0",
|
|
77
77
|
"openai": "6.47.0",
|