@molecule/api-code-sandbox-flyio 1.3.4 → 1.3.6
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 +2 -2
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +10 -0
- package/package.json +3 -3
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
|
|
@@ -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/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,
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAaV,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;AAwzFD;;;;;;;;;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
|
@@ -300,6 +300,16 @@ const PROBE_EXEC_HEADROOM_SECONDS = 10;
|
|
|
300
300
|
*/
|
|
301
301
|
class FlyioSandboxProvider {
|
|
302
302
|
name = 'flyio';
|
|
303
|
+
/**
|
|
304
|
+
* Machines this provider runs live until destroyed and each app is reachable
|
|
305
|
+
* at its own routable URL (`https://<app>.fly.dev`, plus the shared private
|
|
306
|
+
* network for the platform's front) — the two things a long-lived hosting
|
|
307
|
+
* role needs, which is why this provider is selectable for it.
|
|
308
|
+
*/
|
|
309
|
+
hostingCapabilities = {
|
|
310
|
+
longLived: true,
|
|
311
|
+
routable: true,
|
|
312
|
+
};
|
|
303
313
|
/**
|
|
304
314
|
* The idle policy a sandbox gets when its own create does not name one — this
|
|
305
315
|
* provider's configured `autostop` (`FLY_PRODUCTION_AUTOSTOP` for production
|
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.6",
|
|
4
4
|
"description": "Fly.io Machines (Firecracker microVM) code sandbox provider",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@molecule/api-bond": "1.0.
|
|
34
|
-
"@molecule/api-code-sandbox": "1.
|
|
33
|
+
"@molecule/api-bond": "1.0.4",
|
|
34
|
+
"@molecule/api-code-sandbox": "1.5.0",
|
|
35
35
|
"@types/node": "26.6.5",
|
|
36
36
|
"typescript": "6.0.3",
|
|
37
37
|
"vitest": "4.1.12"
|