@opengeni/runtime 0.2.1 → 0.2.3
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-2PO56VAL.js → chunk-KNW7AMQB.js} +11 -4
- package/dist/chunk-KNW7AMQB.js.map +1 -0
- package/dist/index.d.ts +113 -177
- package/dist/index.js +371 -171
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +6 -4
- package/dist/sandbox/index.js +1 -1
- package/package.json +5 -5
- package/src/context-compaction.ts +217 -348
- package/src/image-history.ts +149 -0
- package/src/index.ts +184 -60
- package/src/sandbox/display-stack.ts +61 -12
- package/src/sandbox-computer.ts +90 -18
- package/dist/chunk-2PO56VAL.js.map +0 -1
package/dist/sandbox/index.d.ts
CHANGED
|
@@ -220,7 +220,7 @@ declare function mintStreamToken(secret: string, input: MintStreamTokenInput): P
|
|
|
220
220
|
declare function verifyStreamToken(secret: string, token: string, nowSeconds?: number): Promise<StreamTokenPayload | null>;
|
|
221
221
|
|
|
222
222
|
declare const STREAM_PORT = 6080;
|
|
223
|
-
declare const DISPLAY_STACK_TIMEOUT_MS =
|
|
223
|
+
declare const DISPLAY_STACK_TIMEOUT_MS = 90000;
|
|
224
224
|
/** Desktop geometry for the framebuffer. v1 has no live RANDR: a resolution
|
|
225
225
|
* change is a full down -> up restart (a separate op). */
|
|
226
226
|
type DesktopGeometry = {
|
|
@@ -230,11 +230,13 @@ type DesktopGeometry = {
|
|
|
230
230
|
};
|
|
231
231
|
declare const DEFAULT_DESKTOP_GEOMETRY: DesktopGeometry;
|
|
232
232
|
/** Thrown when a stage of the launch script failed. exitCode 11/12/13 map to
|
|
233
|
-
* Xvfb / x11vnc / websockify respectively (the stage that died)
|
|
234
|
-
*
|
|
233
|
+
* Xvfb / x11vnc / websockify respectively (the stage that died); 14 is the
|
|
234
|
+
* PAINTABLE-FRAME gate (ports listening but scrot still yields an empty frame —
|
|
235
|
+
* the display is up but not actually painting). Degradation is surfaced as a
|
|
236
|
+
* value to viewers by the caller; this error is for diagnostics. */
|
|
235
237
|
declare class DisplayStackError extends Error {
|
|
236
238
|
readonly exitCode: number;
|
|
237
|
-
readonly stage: "xvfb" | "x11vnc" | "websockify" | "unknown";
|
|
239
|
+
readonly stage: "xvfb" | "x11vnc" | "websockify" | "paint" | "unknown";
|
|
238
240
|
constructor(exitCode: number, output: string);
|
|
239
241
|
}
|
|
240
242
|
/** Thrown when the provider session cannot run commands (a headless-only
|
package/dist/sandbox/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"typecheck": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@opengeni/agent-proto": "^0.2.
|
|
32
|
-
"@opengeni/config": "^0.2.
|
|
33
|
-
"@opengeni/contracts": "^0.
|
|
31
|
+
"@opengeni/agent-proto": "^0.2.1",
|
|
32
|
+
"@opengeni/config": "^0.2.3",
|
|
33
|
+
"@opengeni/contracts": "^0.5.0",
|
|
34
34
|
"@openai/agents": "^0.11.6",
|
|
35
35
|
"@openai/agents-extensions": "^0.11.6",
|
|
36
36
|
"modal": "^0.7.4",
|
|
37
37
|
"openai": "6.36.0",
|
|
38
|
-
"@opengeni/codex": "^0.2.
|
|
38
|
+
"@opengeni/codex": "^0.2.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"tsup": "^8.5.0",
|