@meistrari/sandbox-sdk 1.5.0 → 1.5.1
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/index.d.cts +23 -0
- package/dist/index.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -58,6 +58,29 @@ interface CreateRunRequest {
|
|
|
58
58
|
runtime?: SandboxRuntime;
|
|
59
59
|
/** Backend to run on (`agent-sandbox`, `lambda-microvm`, `e2b`); the deployment's default when omitted. */
|
|
60
60
|
provider?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Backend to try when `provider` does not deliver. Naming it is asking for
|
|
63
|
+
* the swap, so it applies even when `provider` is named. Rejected on a run
|
|
64
|
+
* that targets an existing `sandboxId`.
|
|
65
|
+
*/
|
|
66
|
+
fallback?: string;
|
|
67
|
+
/**
|
|
68
|
+
* How long getting a sandbox ready may take. `timeoutMs` is the other
|
|
69
|
+
* half: how long the code may then run. Either omitted leaves the
|
|
70
|
+
* deployment's own limit in place; exceeding either ends the run as
|
|
71
|
+
* `timeout`.
|
|
72
|
+
*/
|
|
73
|
+
startTimeoutMs?: number;
|
|
74
|
+
/**
|
|
75
|
+
* What a blown budget does. `start` retries on the fallback and defaults
|
|
76
|
+
* to true — no code has executed yet, so it duplicates nothing. `session`
|
|
77
|
+
* runs the code a second time and defaults to false: the first attempt may
|
|
78
|
+
* have sent requests or written data before it hung.
|
|
79
|
+
*/
|
|
80
|
+
retry?: {
|
|
81
|
+
start?: boolean;
|
|
82
|
+
session?: boolean;
|
|
83
|
+
};
|
|
61
84
|
}
|
|
62
85
|
interface CreateSandboxRequest {
|
|
63
86
|
cpuSize?: number;
|
package/dist/index.d.mts
CHANGED
|
@@ -58,6 +58,29 @@ interface CreateRunRequest {
|
|
|
58
58
|
runtime?: SandboxRuntime;
|
|
59
59
|
/** Backend to run on (`agent-sandbox`, `lambda-microvm`, `e2b`); the deployment's default when omitted. */
|
|
60
60
|
provider?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Backend to try when `provider` does not deliver. Naming it is asking for
|
|
63
|
+
* the swap, so it applies even when `provider` is named. Rejected on a run
|
|
64
|
+
* that targets an existing `sandboxId`.
|
|
65
|
+
*/
|
|
66
|
+
fallback?: string;
|
|
67
|
+
/**
|
|
68
|
+
* How long getting a sandbox ready may take. `timeoutMs` is the other
|
|
69
|
+
* half: how long the code may then run. Either omitted leaves the
|
|
70
|
+
* deployment's own limit in place; exceeding either ends the run as
|
|
71
|
+
* `timeout`.
|
|
72
|
+
*/
|
|
73
|
+
startTimeoutMs?: number;
|
|
74
|
+
/**
|
|
75
|
+
* What a blown budget does. `start` retries on the fallback and defaults
|
|
76
|
+
* to true — no code has executed yet, so it duplicates nothing. `session`
|
|
77
|
+
* runs the code a second time and defaults to false: the first attempt may
|
|
78
|
+
* have sent requests or written data before it hung.
|
|
79
|
+
*/
|
|
80
|
+
retry?: {
|
|
81
|
+
start?: boolean;
|
|
82
|
+
session?: boolean;
|
|
83
|
+
};
|
|
61
84
|
}
|
|
62
85
|
interface CreateSandboxRequest {
|
|
63
86
|
cpuSize?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,29 @@ interface CreateRunRequest {
|
|
|
58
58
|
runtime?: SandboxRuntime;
|
|
59
59
|
/** Backend to run on (`agent-sandbox`, `lambda-microvm`, `e2b`); the deployment's default when omitted. */
|
|
60
60
|
provider?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Backend to try when `provider` does not deliver. Naming it is asking for
|
|
63
|
+
* the swap, so it applies even when `provider` is named. Rejected on a run
|
|
64
|
+
* that targets an existing `sandboxId`.
|
|
65
|
+
*/
|
|
66
|
+
fallback?: string;
|
|
67
|
+
/**
|
|
68
|
+
* How long getting a sandbox ready may take. `timeoutMs` is the other
|
|
69
|
+
* half: how long the code may then run. Either omitted leaves the
|
|
70
|
+
* deployment's own limit in place; exceeding either ends the run as
|
|
71
|
+
* `timeout`.
|
|
72
|
+
*/
|
|
73
|
+
startTimeoutMs?: number;
|
|
74
|
+
/**
|
|
75
|
+
* What a blown budget does. `start` retries on the fallback and defaults
|
|
76
|
+
* to true — no code has executed yet, so it duplicates nothing. `session`
|
|
77
|
+
* runs the code a second time and defaults to false: the first attempt may
|
|
78
|
+
* have sent requests or written data before it hung.
|
|
79
|
+
*/
|
|
80
|
+
retry?: {
|
|
81
|
+
start?: boolean;
|
|
82
|
+
session?: boolean;
|
|
83
|
+
};
|
|
61
84
|
}
|
|
62
85
|
interface CreateSandboxRequest {
|
|
63
86
|
cpuSize?: number;
|