@microvac/plugin-daytona 0.0.0-stage → 0.1.0-rc.14
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/README.md +98 -2
- package/dist/archive-stream-window.test.d.ts +2 -0
- package/dist/archive-stream-window.test.d.ts.map +1 -0
- package/dist/archive-stream-window.test.js +93 -0
- package/dist/archive-stream-window.test.js.map +1 -0
- package/dist/archive-stream.d.ts +10 -0
- package/dist/archive-stream.d.ts.map +1 -0
- package/dist/archive-stream.js +159 -0
- package/dist/archive-stream.js.map +1 -0
- package/dist/archive-stream.test.d.ts +2 -0
- package/dist/archive-stream.test.d.ts.map +1 -0
- package/dist/archive-stream.test.js +121 -0
- package/dist/archive-stream.test.js.map +1 -0
- package/dist/duplex-close-deadline.test.d.ts +2 -0
- package/dist/duplex-close-deadline.test.d.ts.map +1 -0
- package/dist/duplex-close-deadline.test.js +106 -0
- package/dist/duplex-close-deadline.test.js.map +1 -0
- package/dist/duplex-command-stream.d.ts +98 -0
- package/dist/duplex-command-stream.d.ts.map +1 -0
- package/dist/duplex-command-stream.js +218 -0
- package/dist/duplex-command-stream.js.map +1 -0
- package/dist/duplex-command-stream.live.test.d.ts +2 -0
- package/dist/duplex-command-stream.live.test.d.ts.map +1 -0
- package/dist/duplex-command-stream.live.test.js +324 -0
- package/dist/duplex-command-stream.live.test.js.map +1 -0
- package/dist/duplex-command-stream.test.d.ts +2 -0
- package/dist/duplex-command-stream.test.d.ts.map +1 -0
- package/dist/duplex-command-stream.test.js +519 -0
- package/dist/duplex-command-stream.test.js.map +1 -0
- package/dist/file-sync-capacity.live.test.d.ts +2 -0
- package/dist/file-sync-capacity.live.test.d.ts.map +1 -0
- package/dist/file-sync-capacity.live.test.js +122 -0
- package/dist/file-sync-capacity.live.test.js.map +1 -0
- package/dist/file-sync-capacity.test.d.ts +2 -0
- package/dist/file-sync-capacity.test.d.ts.map +1 -0
- package/dist/file-sync-capacity.test.js +337 -0
- package/dist/file-sync-capacity.test.js.map +1 -0
- package/dist/file-sync-diagnostics.test.d.ts +2 -0
- package/dist/file-sync-diagnostics.test.d.ts.map +1 -0
- package/dist/file-sync-diagnostics.test.js +165 -0
- package/dist/file-sync-diagnostics.test.js.map +1 -0
- package/dist/file-sync.d.ts +80 -0
- package/dist/file-sync.d.ts.map +1 -0
- package/dist/file-sync.js +1362 -0
- package/dist/file-sync.js.map +1 -0
- package/dist/file-sync.test.d.ts +2 -0
- package/dist/file-sync.test.d.ts.map +1 -0
- package/dist/file-sync.test.js +1214 -0
- package/dist/file-sync.test.js.map +1 -0
- package/dist/idle-activity.d.ts +40 -0
- package/dist/idle-activity.d.ts.map +1 -0
- package/dist/idle-activity.js +145 -0
- package/dist/idle-activity.js.map +1 -0
- package/dist/idle-activity.test.d.ts +2 -0
- package/dist/idle-activity.test.d.ts.map +1 -0
- package/dist/idle-activity.test.js +159 -0
- package/dist/idle-activity.test.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/lease-tracing.d.ts +7 -0
- package/dist/lease-tracing.d.ts.map +1 -0
- package/dist/lease-tracing.js +31 -0
- package/dist/lease-tracing.js.map +1 -0
- package/dist/lease-tracing.test.d.ts +2 -0
- package/dist/lease-tracing.test.d.ts.map +1 -0
- package/dist/lease-tracing.test.js +298 -0
- package/dist/lease-tracing.test.js.map +1 -0
- package/dist/login-pty.d.ts +162 -0
- package/dist/login-pty.d.ts.map +1 -0
- package/dist/login-pty.js +258 -0
- package/dist/login-pty.js.map +1 -0
- package/dist/login-pty.test.d.ts +2 -0
- package/dist/login-pty.test.d.ts.map +1 -0
- package/dist/login-pty.test.js +319 -0
- package/dist/login-pty.test.js.map +1 -0
- package/dist/manifest.d.ts +5 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +189 -0
- package/dist/manifest.js.map +1 -0
- package/dist/one-shot-exec-deadline.test.d.ts +2 -0
- package/dist/one-shot-exec-deadline.test.d.ts.map +1 -0
- package/dist/one-shot-exec-deadline.test.js +73 -0
- package/dist/one-shot-exec-deadline.test.js.map +1 -0
- package/dist/plugin.d.ts +103 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +3572 -0
- package/dist/plugin.js.map +1 -0
- package/dist/plugin.test.d.ts +2 -0
- package/dist/plugin.test.d.ts.map +1 -0
- package/dist/plugin.test.js +7276 -0
- package/dist/plugin.test.js.map +1 -0
- package/dist/pty-chunked-input.d.ts +48 -0
- package/dist/pty-chunked-input.d.ts.map +1 -0
- package/dist/pty-chunked-input.js +74 -0
- package/dist/pty-chunked-input.js.map +1 -0
- package/dist/pty-chunked-input.test.d.ts +2 -0
- package/dist/pty-chunked-input.test.d.ts.map +1 -0
- package/dist/pty-chunked-input.test.js +115 -0
- package/dist/pty-chunked-input.test.js.map +1 -0
- package/dist/runner-ingress.sdk-integration.d.ts +2 -0
- package/dist/runner-ingress.sdk-integration.d.ts.map +1 -0
- package/dist/runner-ingress.sdk-integration.js +87 -0
- package/dist/runner-ingress.sdk-integration.js.map +1 -0
- package/dist/session-command-completion.test.d.ts +2 -0
- package/dist/session-command-completion.test.d.ts.map +1 -0
- package/dist/session-command-completion.test.js +251 -0
- package/dist/session-command-completion.test.js.map +1 -0
- package/dist/session-stream-exit.d.ts +13 -0
- package/dist/session-stream-exit.d.ts.map +1 -0
- package/dist/session-stream-exit.js +48 -0
- package/dist/session-stream-exit.js.map +1 -0
- package/dist/tar-listing.test.d.ts +2 -0
- package/dist/tar-listing.test.d.ts.map +1 -0
- package/dist/tar-listing.test.js +220 -0
- package/dist/tar-listing.test.js.map +1 -0
- package/dist/worker.d.ts +3 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +5 -0
- package/dist/worker.js.map +1 -0
- package/package.json +42 -4
package/dist/manifest.js
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
const PLUGIN_ID = "paperclip.daytona-sandbox-provider";
|
|
2
|
+
export const DEFAULT_DAYTONA_OPERATION_TIMEOUT_MS = 300_000;
|
|
3
|
+
// The bundled-plugin boot reconcile refreshes the persisted manifest for an
|
|
4
|
+
// existing install only when PLUGIN_VERSION changes. A manifest change without a
|
|
5
|
+
// version bump never reaches an existing install. The reconcile also reads the
|
|
6
|
+
// persisted manifest raw and does not re-run the validator, so it never
|
|
7
|
+
// canonicalizes a renamed capability.
|
|
8
|
+
//
|
|
9
|
+
// 0.1.3 renamed the login transport flag from `supportsSetupTokenLogin` to the
|
|
10
|
+
// neutral `supportsLoginPty`.
|
|
11
|
+
// 0.1.4 adds the `concurrentSyncOperations` sandbox capability to the driver.
|
|
12
|
+
// 0.1.5 adds the `duplexCommandStream` sandbox capability to the driver.
|
|
13
|
+
// 0.1.6 adds private authenticated WebSocket ingress for paperclip_runner.
|
|
14
|
+
// 0.1.7 exposes host-owned warm/cold runner lifecycle controls.
|
|
15
|
+
// 0.1.8 declares the default provider acquisition budget to the host.
|
|
16
|
+
// 0.1.11 raises the default sandbox disk allocation from 10 GiB to 20 GiB.
|
|
17
|
+
const PLUGIN_VERSION = "0.1.11";
|
|
18
|
+
const manifest = {
|
|
19
|
+
id: PLUGIN_ID,
|
|
20
|
+
apiVersion: 1,
|
|
21
|
+
version: PLUGIN_VERSION,
|
|
22
|
+
displayName: "Daytona Sandbox Provider",
|
|
23
|
+
description: "First-party sandbox provider plugin that provisions Daytona sandboxes as Paperclip execution environments.",
|
|
24
|
+
author: "Paperclip",
|
|
25
|
+
categories: ["automation"],
|
|
26
|
+
capabilities: ["environment.drivers.register"],
|
|
27
|
+
entrypoints: {
|
|
28
|
+
worker: "./dist/worker.js",
|
|
29
|
+
},
|
|
30
|
+
environmentDrivers: [
|
|
31
|
+
{
|
|
32
|
+
driverKey: "daytona",
|
|
33
|
+
defaultAcquireTimeoutMs: DEFAULT_DAYTONA_OPERATION_TIMEOUT_MS,
|
|
34
|
+
kind: "sandbox_provider",
|
|
35
|
+
displayName: "Daytona Sandbox",
|
|
36
|
+
description: "Provisions Daytona sandboxes with configurable image or snapshot selection, startup timeouts, and lease reuse.",
|
|
37
|
+
supportsReusableLeases: true,
|
|
38
|
+
creationOperationVersion: 1,
|
|
39
|
+
// Daytona keeps a persistent session and tails its callback log form, so it
|
|
40
|
+
// emits incremental session output while the command runs. Declare the
|
|
41
|
+
// opt-in capability so the host selects the session-output streaming path.
|
|
42
|
+
// A generic one-shot provider that omits this key keeps the poll path.
|
|
43
|
+
//
|
|
44
|
+
// Daytona also runs file transfers into and out of the sandbox in parallel.
|
|
45
|
+
// Each concurrent sync hook call uses separate temporary state (random
|
|
46
|
+
// scratch names and per-mapping host temporary directories), and teardown
|
|
47
|
+
// waits for all active calls. Declare the opt-in capability so the host may
|
|
48
|
+
// schedule sync operations concurrently. The host resolves it `true` only
|
|
49
|
+
// when the worker also verifies both sync verbs.
|
|
50
|
+
//
|
|
51
|
+
// Daytona carries the sandbox callback bridge on one live duplex channel
|
|
52
|
+
// over a raw pseudo-terminal. Declare the opt-in capability so the host may
|
|
53
|
+
// select the duplex transport. The host resolves it `true` only when the
|
|
54
|
+
// worker also verifies the `duplexChannelOpen` handler.
|
|
55
|
+
//
|
|
56
|
+
// Daytona is the first provider that runs the HTTP/2 transport over this
|
|
57
|
+
// channel. HTTP/2 is the preferred transport. `queue_v1` is the
|
|
58
|
+
// soft-deprecated fallback.
|
|
59
|
+
sandboxCapabilities: {
|
|
60
|
+
incrementalSessionOutput: true,
|
|
61
|
+
concurrentSyncOperations: true,
|
|
62
|
+
duplexCommandStream: true,
|
|
63
|
+
runnerWebSocketIngress: true,
|
|
64
|
+
},
|
|
65
|
+
supportsInteractiveSetup: true,
|
|
66
|
+
interactiveSetupConnectionTypes: ["ssh"],
|
|
67
|
+
supportsTemplateCapture: true,
|
|
68
|
+
templateRefKind: "snapshot",
|
|
69
|
+
templateConfigBinding: {
|
|
70
|
+
field: "snapshot",
|
|
71
|
+
unsetFields: ["image"],
|
|
72
|
+
},
|
|
73
|
+
templateIdentityPaths: ["apiUrl"],
|
|
74
|
+
supportsTemplateDelete: true,
|
|
75
|
+
// Daytona hosts an interactive login on a real pseudo-terminal. It is the
|
|
76
|
+
// only bundled provider that implements the login pseudo-terminal methods,
|
|
77
|
+
// so it advertises the capability. The session home helpers and the
|
|
78
|
+
// credential reader run on node, and the sandbox already runs node for the
|
|
79
|
+
// Paperclip bridge. So the login has no extra runtime prerequisite, and the
|
|
80
|
+
// advertised capability matches the runtime contract for every configured
|
|
81
|
+
// image or snapshot.
|
|
82
|
+
supportsLoginPty: true,
|
|
83
|
+
configSchema: {
|
|
84
|
+
type: "object",
|
|
85
|
+
properties: {
|
|
86
|
+
apiKey: {
|
|
87
|
+
type: "string",
|
|
88
|
+
format: "secret-ref",
|
|
89
|
+
description: "Environment-specific Daytona API key. Paste a key or an existing Paperclip secret reference; saved environments store pasted values as company secrets. Falls back to DAYTONA_API_KEY if omitted.",
|
|
90
|
+
},
|
|
91
|
+
apiUrl: {
|
|
92
|
+
type: "string",
|
|
93
|
+
description: "Optional Daytona API base URL. If omitted, the Daytona SDK uses its configured default endpoint.",
|
|
94
|
+
},
|
|
95
|
+
target: {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: "Optional Daytona target/region identifier.",
|
|
98
|
+
},
|
|
99
|
+
snapshot: {
|
|
100
|
+
type: "string",
|
|
101
|
+
description: "Optional Daytona snapshot name to start from.",
|
|
102
|
+
},
|
|
103
|
+
image: {
|
|
104
|
+
type: "string",
|
|
105
|
+
description: "Optional base image or Daytona Image reference. If set, the sandbox is created from this image instead of a snapshot.",
|
|
106
|
+
default: "daytonaio/sandbox:0.8.0",
|
|
107
|
+
},
|
|
108
|
+
language: {
|
|
109
|
+
type: "string",
|
|
110
|
+
description: "Optional Daytona language hint for direct code execution. If omitted, Daytona uses its default runtime.",
|
|
111
|
+
},
|
|
112
|
+
cpu: {
|
|
113
|
+
type: "integer",
|
|
114
|
+
description: "Optional CPU allocation in cores.",
|
|
115
|
+
minimum: 1,
|
|
116
|
+
default: 4,
|
|
117
|
+
},
|
|
118
|
+
memory: {
|
|
119
|
+
type: "integer",
|
|
120
|
+
description: "Optional memory allocation in GiB. Supported sandbox sizes are 1, 2, 4, and 8 GiB.",
|
|
121
|
+
enum: [1, 2, 4, 8],
|
|
122
|
+
default: 4,
|
|
123
|
+
},
|
|
124
|
+
disk: {
|
|
125
|
+
type: "integer",
|
|
126
|
+
description: "Optional disk allocation in GiB.",
|
|
127
|
+
minimum: 1,
|
|
128
|
+
default: 20,
|
|
129
|
+
},
|
|
130
|
+
gpu: {
|
|
131
|
+
type: "integer",
|
|
132
|
+
description: "Optional GPU allocation in units.",
|
|
133
|
+
minimum: 1,
|
|
134
|
+
},
|
|
135
|
+
timeoutMs: {
|
|
136
|
+
type: "number",
|
|
137
|
+
description: "Timeout for Daytona operations in milliseconds. Fresh lease acquisition shares one budget across creation, setup, and inline cleanup.",
|
|
138
|
+
default: DEFAULT_DAYTONA_OPERATION_TIMEOUT_MS,
|
|
139
|
+
},
|
|
140
|
+
livenessTimeoutMs: {
|
|
141
|
+
type: "number",
|
|
142
|
+
description: "Per-call timeout in milliseconds for the sandbox liveness read (refreshData). A silently unresponsive sandbox connection surfaces as a fast error instead of stalling until the outer RPC ceiling. The start and recovery calls derive their own deadline from timeoutMs, not this bound. `0` or less disables the bound. Defaults to 30000 when unset.",
|
|
143
|
+
default: 30000,
|
|
144
|
+
},
|
|
145
|
+
ttlMinutes: {
|
|
146
|
+
type: "integer",
|
|
147
|
+
minimum: 1,
|
|
148
|
+
description: "Optional wall-clock lifetime in minutes from creation. Daytona destroys the sandbox and its files at expiry in any state, even while active. Omit to leave the lifetime unchanged.",
|
|
149
|
+
},
|
|
150
|
+
autoStopInterval: {
|
|
151
|
+
type: "number",
|
|
152
|
+
description: "Daytona auto-stop interval in minutes. `0` disables auto-stop. Defaults to 15 when unset. A reusable sandbox that keeps a warm runner never auto-stops before the warm idle window plus 5 minutes, and a sandbox running a Paperclip runner never auto-stops before the host's runner reconnect grace plus 5 minutes.",
|
|
153
|
+
default: 15,
|
|
154
|
+
},
|
|
155
|
+
autoArchiveInterval: {
|
|
156
|
+
type: "number",
|
|
157
|
+
description: "Daytona auto-archive interval in minutes. Stopped sandboxes still count against the storage quota until archived, so this defaults to 60 when unset. `0` uses Daytona's max interval.",
|
|
158
|
+
default: 60,
|
|
159
|
+
},
|
|
160
|
+
autoDeleteInterval: {
|
|
161
|
+
type: "number",
|
|
162
|
+
description: "Daytona auto-delete interval in minutes. Backstop reaper for sandboxes nobody resumes; defaults to 10080 (7 days) when unset. `-1` disables auto-delete and `0` deletes immediately after stop.",
|
|
163
|
+
default: 10080,
|
|
164
|
+
},
|
|
165
|
+
reuseLease: {
|
|
166
|
+
type: "boolean",
|
|
167
|
+
description: "Whether to stop and later resume the sandbox across runs instead of deleting it on release.",
|
|
168
|
+
default: false,
|
|
169
|
+
},
|
|
170
|
+
runnerLifecycleMode: {
|
|
171
|
+
type: "string",
|
|
172
|
+
enum: ["inherit", "per_turn", "warm"],
|
|
173
|
+
description: "paperclip_runner lifecycle for this environment. Inherit uses the agent setting; warm keeps runnerd and the sandbox available between turns.",
|
|
174
|
+
default: "inherit",
|
|
175
|
+
},
|
|
176
|
+
runnerIdleTimeoutMs: {
|
|
177
|
+
type: "integer",
|
|
178
|
+
description: "How long an idle warm paperclip_runner stays alive before it checkpoints and suspends.",
|
|
179
|
+
minimum: 1000,
|
|
180
|
+
maximum: 86400000,
|
|
181
|
+
default: 300000,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
};
|
|
188
|
+
export default manifest;
|
|
189
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,oCAAoC,CAAC;AACvD,MAAM,CAAC,MAAM,oC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AO,EAAE,IAAI;wBACb,OAAO,EAAE,QAAQ;wBACjB,OAAO,EAAE,MAAM;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-shot-exec-deadline.test.d.ts","sourceRoot":"","sources":["../src/one-shot-exec-deadline.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
+
const getSandbox = vi.hoisted(() => vi.fn());
|
|
3
|
+
vi.mock("@daytonaio/sdk", () => ({
|
|
4
|
+
Daytona: class {
|
|
5
|
+
get = getSandbox;
|
|
6
|
+
},
|
|
7
|
+
DaytonaNotFoundError: class extends Error {
|
|
8
|
+
},
|
|
9
|
+
DaytonaTimeoutError: class extends Error {
|
|
10
|
+
},
|
|
11
|
+
}));
|
|
12
|
+
import plugin, { __resetDaytonaSandboxHandleCacheForTest } from "./plugin.js";
|
|
13
|
+
function fixture() {
|
|
14
|
+
const process = { executeCommand: vi.fn() };
|
|
15
|
+
const fs = { uploadFile: vi.fn().mockResolvedValue(undefined), deleteFile: vi.fn().mockResolvedValue(undefined) };
|
|
16
|
+
getSandbox.mockResolvedValue({ id: "fixture-sandbox", state: "started", process, fs });
|
|
17
|
+
const execute = (stdin) => plugin.definition.onEnvironmentExecute({
|
|
18
|
+
driverKey: "daytona", companyId: "fixture-company", environmentId: "fixture-environment",
|
|
19
|
+
config: { apiKey: "fixture-not-a-key", timeoutMs: 300_000 }, bypassSession: true,
|
|
20
|
+
lease: { providerLeaseId: "fixture-sandbox", metadata: {} },
|
|
21
|
+
command: "/pack/bin/opencode", args: ["--version"], timeoutMs: 30_000,
|
|
22
|
+
...(stdin !== undefined ? { stdin } : {}),
|
|
23
|
+
});
|
|
24
|
+
return { process, fs, execute };
|
|
25
|
+
}
|
|
26
|
+
describe("Daytona one-shot exec request deadline", () => {
|
|
27
|
+
beforeEach(() => {
|
|
28
|
+
__resetDaytonaSandboxHandleCacheForTest();
|
|
29
|
+
getSandbox.mockReset();
|
|
30
|
+
vi.useFakeTimers();
|
|
31
|
+
});
|
|
32
|
+
afterEach(() => {
|
|
33
|
+
vi.useRealTimers();
|
|
34
|
+
__resetDaytonaSandboxHandleCacheForTest();
|
|
35
|
+
});
|
|
36
|
+
it("returns a timed-out result when the provider exec request outlives the command deadline", async () => {
|
|
37
|
+
const { process, execute } = fixture();
|
|
38
|
+
process.executeCommand.mockImplementation(() => new Promise(() => undefined));
|
|
39
|
+
let settled = false;
|
|
40
|
+
const pending = execute().finally(() => { settled = true; });
|
|
41
|
+
await vi.advanceTimersByTimeAsync(34_999);
|
|
42
|
+
expect(settled).toBe(false);
|
|
43
|
+
await vi.advanceTimersByTimeAsync(1);
|
|
44
|
+
expect(await pending).toMatchObject({
|
|
45
|
+
exitCode: null, timedOut: true,
|
|
46
|
+
metadata: { timeoutScope: "provider_exec_request", commandExitConfirmed: false },
|
|
47
|
+
});
|
|
48
|
+
expect(process.executeCommand).toHaveBeenCalledOnce();
|
|
49
|
+
});
|
|
50
|
+
it("keeps a slow exec that answers within the request deadline", async () => {
|
|
51
|
+
const { process, execute } = fixture();
|
|
52
|
+
process.executeCommand.mockImplementation(() => new Promise(resolve => setTimeout(() => resolve({ exitCode: 0, result: "1.2.3", artifacts: { stdout: "1.2.3" } }), 34_000)));
|
|
53
|
+
const pending = execute();
|
|
54
|
+
await vi.advanceTimersByTimeAsync(34_000);
|
|
55
|
+
expect(await pending).toMatchObject({ exitCode: 0, timedOut: false, stdout: "1.2.3" });
|
|
56
|
+
});
|
|
57
|
+
it("bounds a stalled stdin cleanup after a timed-out exec request", async () => {
|
|
58
|
+
const { process, fs, execute } = fixture();
|
|
59
|
+
process.executeCommand.mockImplementation(() => new Promise(() => undefined));
|
|
60
|
+
fs.deleteFile.mockImplementation(() => new Promise(() => undefined));
|
|
61
|
+
let settled = false;
|
|
62
|
+
const pending = execute("input").finally(() => { settled = true; });
|
|
63
|
+
await vi.advanceTimersByTimeAsync(39_999);
|
|
64
|
+
expect(settled).toBe(false);
|
|
65
|
+
await vi.advanceTimersByTimeAsync(1);
|
|
66
|
+
expect(await pending).toMatchObject({
|
|
67
|
+
exitCode: null, timedOut: true,
|
|
68
|
+
metadata: { timeoutScope: "provider_exec_request", commandExitConfirmed: false },
|
|
69
|
+
});
|
|
70
|
+
expect(fs.deleteFile).toHaveBeenCalledOnce();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=one-shot-exec-deadline.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-shot-exec-deadline.test.js","sourceRoot":"","sources":["../src/one-shot-exec-deadline.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEzE,MAAM,UAAU,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7C,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/B,OAAO,EAAE;QAAQ,GAAG,GAAG,UAAU,CAAC;KAAE;IACpC,oBAAoB,EAAE,KAAM,SAAQ,KAAK;KAAG;IAC5C,mBAAmB,EAAE,KAAM,SAAQ,KAAK;KAAG;CAC5C,CAAC,CAAC,CAAC;AAEJ,OAAO,MAAM,EAAE,EAAE,uCAAuC,EAAE,MAAM,aAAa,CAAC;AAE9E,SAAS,OAAO;IACd,MAAM,OAAO,GAAG,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAC5C,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,U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C;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { PluginContext, PluginTracer } from "@paperclipai/plugin-sdk";
|
|
2
|
+
export { createDaytonaLoginPtySessionOpener, openDaytonaLoginPtySession, createDaytonaLoginHomeFs, } from "./login-pty.js";
|
|
3
|
+
export type { LoginPtySession, LoginPtySessionOpener, LoginPtyLaunchDescriptor, DaytonaPtyHandle, DaytonaPtyProcess, DaytonaPtyCreateOptions, DaytonaLoginPtyOptions, DaytonaLoginHomeFs, } from "./login-pty.js";
|
|
4
|
+
export { createDaytonaDuplexChannelSessionOpener, openDaytonaDuplexChannelSession, buildDuplexChannelLaunchWrapper, } from "./duplex-command-stream.js";
|
|
5
|
+
export type { DuplexChannelSession, DuplexChannelSessionOpener, DaytonaDuplexChannelOptions, } from "./duplex-command-stream.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return the plugin tracer. It is the injected `ctx.tracer` after `setup`, or a
|
|
8
|
+
* no-op before it. A provider span opened through it records only when tracing
|
|
9
|
+
* is on and an active host trace context is present.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getPluginTracer(): PluginTracer;
|
|
12
|
+
/**
|
|
13
|
+
* Test seam: set the module-level plugin context, and return a restore function.
|
|
14
|
+
* `plugin.test.ts` uses it to inject a recording tracer without running `setup`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function __setDaytonaPluginContextForTest(ctx: PluginContext | null): () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Test seam: override the provider-timing clock and return a restore function.
|
|
19
|
+
* Not used in production, where the default wall clock always applies.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setDaytonaTimingClockForTest(now: () => number): () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Test seam: override the handle-cache freshness clock and return a restore
|
|
24
|
+
* function. Not used in production, where the default wall clock always applies.
|
|
25
|
+
*/
|
|
26
|
+
export declare function setDaytonaHandleFreshnessClockForTest(now: () => number): () => void;
|
|
27
|
+
interface DaytonaDriverConfig {
|
|
28
|
+
apiKey: string | null;
|
|
29
|
+
apiUrl: string | null;
|
|
30
|
+
target: string | null;
|
|
31
|
+
snapshot: string | null;
|
|
32
|
+
image: string | null;
|
|
33
|
+
language: string | null;
|
|
34
|
+
timeoutMs: number;
|
|
35
|
+
livenessTimeoutMs: number;
|
|
36
|
+
cpu: number | null;
|
|
37
|
+
memory: number | null;
|
|
38
|
+
disk: number | null;
|
|
39
|
+
gpu: number | null;
|
|
40
|
+
autoStopInterval: number | null;
|
|
41
|
+
autoArchiveInterval: number | null;
|
|
42
|
+
autoDeleteInterval: number | null;
|
|
43
|
+
ttlMinutes: number | null;
|
|
44
|
+
reuseLease: boolean;
|
|
45
|
+
archiveOnRelease: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Host-owned warm runner idle window (ms) for a reusable warm lease, or null
|
|
48
|
+
* when the host keeps no warm runner on this sandbox. Never persisted in the
|
|
49
|
+
* normalized provider config; it only raises the effective auto-stop.
|
|
50
|
+
*/
|
|
51
|
+
warmIdleTimeoutMs: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* Host-owned remote runner reconnect grace (ms): how long the host still
|
|
54
|
+
* reattaches a live remote runner after a controller outage. Null when the
|
|
55
|
+
* lease hosts no remote runner. Never persisted in the normalized provider
|
|
56
|
+
* config; it only raises the effective auto-stop.
|
|
57
|
+
*/
|
|
58
|
+
runnerReconnectGraceMs: number | null;
|
|
59
|
+
}
|
|
60
|
+
export declare const DEFAULT_WARM_RUNNER_IDLE_TIMEOUT_MS = 300000;
|
|
61
|
+
export declare const WARM_IDLE_AUTO_STOP_MARGIN_MINUTES = 5;
|
|
62
|
+
/**
|
|
63
|
+
* Effective Daytona auto-stop (minutes) for a sandbox. An explicit 0 (disabled)
|
|
64
|
+
* is preserved. A sandbox never auto-stops before a host-owned window (the warm
|
|
65
|
+
* idle window of a warm reusable lease, or the remote runner reconnect grace)
|
|
66
|
+
* plus {@link WARM_IDLE_AUTO_STOP_MARGIN_MINUTES}.
|
|
67
|
+
*/
|
|
68
|
+
export declare function effectiveAutoStopIntervalMinutes(config: Pick<DaytonaDriverConfig, "autoStopInterval" | "warmIdleTimeoutMs" | "runnerReconnectGraceMs">): number | null;
|
|
69
|
+
/**
|
|
70
|
+
* How long a sandbox may stay `stopping` before a start forces the stop. The
|
|
71
|
+
* host stops an idle sandbox gracefully with a 30 s budget, so a stop still
|
|
72
|
+
* pending after this is stuck, typically on a process that ignores SIGTERM.
|
|
73
|
+
* Daytona can leave such a sandbox `stopping` for many minutes.
|
|
74
|
+
*/
|
|
75
|
+
export declare const STUCK_STOPPING_FORCE_AFTER_MS = 30000;
|
|
76
|
+
/**
|
|
77
|
+
* One forced stop per stuck stop, whichever caller sends it. A confirmed start
|
|
78
|
+
* ends the episode early (see {@link endForcedStopEpisode}).
|
|
79
|
+
*/
|
|
80
|
+
export declare const FORCED_STOP_COOLDOWN_MS: number;
|
|
81
|
+
/**
|
|
82
|
+
* Test seam: clear the process-scoped handle cache between tests so a handle
|
|
83
|
+
* memoized under a reused composite key in one test never leaks into the next.
|
|
84
|
+
* Not used in production.
|
|
85
|
+
*/
|
|
86
|
+
export declare function __resetDaytonaSandboxHandleCacheForTest(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Test seam: read the advisory writable directories recorded for a sync scope.
|
|
89
|
+
* The caller passes the same `onEnvironmentSyncIn` inputs, so this rebuilds the
|
|
90
|
+
* exact scope key the hook used. Not used in production.
|
|
91
|
+
*/
|
|
92
|
+
export declare function __getDaytonaWritableDirsForTest(input: {
|
|
93
|
+
driverKey: string;
|
|
94
|
+
companyId: string;
|
|
95
|
+
environmentId: string;
|
|
96
|
+
lease: {
|
|
97
|
+
providerLeaseId?: string | null;
|
|
98
|
+
};
|
|
99
|
+
config: Record<string, unknown>;
|
|
100
|
+
}): string[];
|
|
101
|
+
declare const plugin: import("@paperclipai/plugin-sdk").PaperclipPlugin;
|
|
102
|
+
export default plugin;
|
|
103
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,aAAa,EAIb,YAAY,EAkCb,MAAM,yBAAyB,CAAC;AAajC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAgBxB,OAAO,EACL,uCAAuC,EACvC,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAmBpC;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAMD;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,GAAG,MAAM,IAAI,CAMtF;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,MAAM,GAAG,MAAM,IAAI,CAM1E;AAQD;;;GAGG;AACH,wBAAgB,qCAAqC,CAAC,GAAG,EAAE,MAAM,MAAM,GAAG,MAAM,IAAI,CAMnF;AAED,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;I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