@molecule/api-code-sandbox-flyio 1.3.3 → 1.3.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.
- package/README.md +3 -3
- package/dist/exec.d.ts.map +1 -1
- package/dist/exec.js +3 -4
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +3 -4
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-26T04:22:26.020Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-code-sandbox-flyio
|
|
@@ -389,7 +389,7 @@ interface FlyioConfig {
|
|
|
389
389
|
* `SandboxProvider.defaultIdleAction`. A caller can override it for one sandbox
|
|
390
390
|
* with `SandboxConfig.idleAction` and restore this value afterwards with
|
|
391
391
|
* `Sandbox.setIdleAction` — which is what a production deploy does so its
|
|
392
|
-
* destination cannot suspend mid-copy
|
|
392
|
+
* destination cannot suspend mid-copy.
|
|
393
393
|
*/
|
|
394
394
|
autostop?: 'off' | 'stop' | 'suspend'
|
|
395
395
|
/**
|
|
@@ -1505,7 +1505,7 @@ An unrecognized future state falls through to `stopped`, which is the safe
|
|
|
1505
1505
|
default: a caller retries a start rather than assuming a usable sandbox.
|
|
1506
1506
|
|
|
1507
1507
|
```typescript
|
|
1508
|
-
function mapMachineState(state: FlyMachineState): 'creating' | '
|
|
1508
|
+
function mapMachineState(state: FlyMachineState): 'creating' | 'running' | 'sleeping' | 'stopped'
|
|
1509
1509
|
```
|
|
1510
1510
|
|
|
1511
1511
|
- `state` — Raw Fly Machine state string.
|
package/dist/exec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../src/exec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAGzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAKjD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,KAAK,CAAA;AAE9C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAW5C;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../src/exec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAGzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAKjD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,KAAK,CAAA;AAE9C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAW5C;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAkB,CAAA;AA4BxD;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,QAAS,CAAA;AAY5C;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC,0FAA0F;AAC1F,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;AAE7F;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,UAAU,CAiBlE;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,UAAU,EAAE,MAAM,GACjB,MAAM,CAGR;AAmDD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,UAAU,CAAC,CAqBrB"}
|
package/dist/exec.js
CHANGED
|
@@ -55,10 +55,9 @@ export const MAX_CAPTURED_OUTPUT_BYTES = 5 * 1024 * 1024;
|
|
|
55
55
|
* Fly documents NO output ceiling for the Machines API: the exec response's
|
|
56
56
|
* `flydv1.ExecResponse` schema types `stdout` and `stderr` as plain,
|
|
57
57
|
* unconstrained strings (https://docs.machines.dev/openapi.json). The live API
|
|
58
|
-
* still returns SHORT output with `exit_code: 0` once a response is large
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* 512 KiB slice missing, with no error at all. So the collector asks for no
|
|
58
|
+
* still returns SHORT output with `exit_code: 0` once a response is large: one
|
|
59
|
+
* read of a 1,421,432-byte database file came back 897,144 bytes long, exactly
|
|
60
|
+
* one 512 KiB slice missing, with no error at all. So the collector asks for no
|
|
62
61
|
* more than this per response and checks every response's decoded length
|
|
63
62
|
* against what it asked for, shrinking the request when the transport cuts it.
|
|
64
63
|
*/
|
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAYV,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAwBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAIV,WAAW,EAUZ,MAAM,YAAY,CAAA;AAkBnB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAIjG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE5E;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAYV,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAwBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAIV,WAAW,EAUZ,MAAM,YAAY,CAAA;AAkBnB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAIjG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE5E;AA6yFD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,eAAe,CAEjB"}
|
package/dist/provider.js
CHANGED
|
@@ -231,10 +231,9 @@ const EXEC_BODY_MACHINE_NOT_RUNNING = /machine not running/i;
|
|
|
231
231
|
* Attempts for one exec when Fly answers a transient 412 — either body of
|
|
232
232
|
* {@link isTransientExecPrecondition}. Four attempts over the three backoffs
|
|
233
233
|
* below is under 12 s of waiting, against the ~75 s each fresh production
|
|
234
|
-
* deploy costs when this is left to a caller:
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* covering `machine not running` on a Machine Fly reported `started`.
|
|
234
|
+
* deploy costs when this is left to a caller: a dropped connection has cost
|
|
235
|
+
* three consecutive deploys, and a budget that did not cover `machine not
|
|
236
|
+
* running` on a Machine Fly reported `started` has cost a whole redeploy.
|
|
238
237
|
*/
|
|
239
238
|
const EXEC_PRECONDITION_ATTEMPTS = 4;
|
|
240
239
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export interface FlyioConfig {
|
|
|
116
116
|
* `SandboxProvider.defaultIdleAction`. A caller can override it for one sandbox
|
|
117
117
|
* with `SandboxConfig.idleAction` and restore this value afterwards with
|
|
118
118
|
* `Sandbox.setIdleAction` — which is what a production deploy does so its
|
|
119
|
-
* destination cannot suspend mid-copy
|
|
119
|
+
* destination cannot suspend mid-copy.
|
|
120
120
|
*/
|
|
121
121
|
autostop?: 'off' | 'stop' | 'suspend';
|
|
122
122
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-code-sandbox-flyio",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Fly.io Machines (Firecracker microVM) code sandbox provider",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@molecule/api-bond": "1.0.
|
|
33
|
+
"@molecule/api-bond": "1.0.4",
|
|
34
34
|
"@molecule/api-code-sandbox": "1.4.1",
|
|
35
35
|
"@types/node": "26.6.5",
|
|
36
36
|
"typescript": "6.0.3",
|