@nimbus-sh/core 0.4.0 → 0.5.0
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 +35 -7
- package/dist/_shared/error-text.d.ts +15 -0
- package/dist/_shared/error-text.d.ts.map +1 -0
- package/dist/_shared/error-text.js +21 -0
- package/dist/_shared/exports-resolver.d.ts +19 -7
- package/dist/_shared/exports-resolver.d.ts.map +1 -1
- package/dist/_shared/exports-resolver.js +1 -1
- package/dist/_shared/retry.d.ts.map +1 -1
- package/dist/_shared/retry.js +3 -1
- package/dist/_shared/w7-frame.js +2 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +30 -16
- package/dist/observability/oom-classify.d.ts +1 -1
- package/dist/observability/oom-classify.d.ts.map +1 -1
- package/dist/observability/oom-classify.js +7 -0
- package/dist/observability/oom-discriminator.d.ts +1 -1
- package/dist/runtime/esbuild-service.d.ts +4 -3
- package/dist/runtime/esbuild-service.d.ts.map +1 -1
- package/dist/runtime/esbuild-service.js +9 -4
- package/dist/runtime/installed-runtimes.d.ts +4 -3
- package/dist/runtime/installed-runtimes.d.ts.map +1 -1
- package/dist/runtime/long-running-handle.d.ts +3 -3
- package/dist/runtime/long-running-handle.d.ts.map +1 -1
- package/dist/runtime/os-contracts.d.ts +7 -5
- package/dist/runtime/os-contracts.d.ts.map +1 -1
- package/dist/runtime/port-registry.d.ts +28 -0
- package/dist/runtime/port-registry.d.ts.map +1 -1
- package/dist/runtime/port-registry.js +79 -9
- package/dist/runtime/process-logs.d.ts +9 -1
- package/dist/runtime/process-logs.d.ts.map +1 -1
- package/dist/runtime/project-detect.d.ts +6 -1
- package/dist/runtime/project-detect.d.ts.map +1 -1
- package/dist/runtime/require-resolver.d.ts.map +1 -1
- package/dist/runtime/require-resolver.js +3 -4
- package/dist/runtime/runtime-registry.d.ts +4 -3
- package/dist/runtime/runtime-registry.d.ts.map +1 -1
- package/dist/runtime/runtime-registry.js +2 -1
- package/dist/runtime/sqlite-runtime-fs-bridge.js +1 -5
- package/dist/runtime/virtual-socket-kernel.d.ts.map +1 -1
- package/dist/runtime/virtual-socket-kernel.generated.d.ts +1 -1
- package/dist/runtime/virtual-socket-kernel.generated.d.ts.map +1 -1
- package/dist/runtime/virtual-socket-kernel.generated.js +2 -2
- package/dist/runtime/virtual-socket-kernel.js +10 -5
- package/dist/runtime/wasm-runner.d.ts.map +1 -1
- package/dist/runtime/wasm-runner.js +22 -14
- package/dist/shell/features.d.ts.map +1 -1
- package/dist/shell/features.js +5 -4
- package/dist/shell/unix-commands.d.ts +14 -1
- package/dist/shell/unix-commands.d.ts.map +1 -1
- package/dist/shell/unix-commands.js +115 -69
- package/dist/substrate/lifo/commands/net/ip.d.ts.map +1 -1
- package/dist/substrate/lifo/commands/system/ps.d.ts +2 -1
- package/dist/substrate/lifo/commands/system/ps.d.ts.map +1 -1
- package/dist/substrate/lifo/kernel/ServiceManager.d.ts.map +1 -1
- package/dist/substrate/lifo/kernel/ServiceManager.js +0 -2
- package/dist/substrate/lifo/kernel/network/NetworkStack.d.ts +22 -11
- package/dist/substrate/lifo/kernel/network/NetworkStack.d.ts.map +1 -1
- package/dist/substrate/lifo/kernel/network/NetworkStack.js +0 -2
- package/dist/substrate/lifo/kernel/network/tunnel/WebSocketTunnel.d.ts +2 -1
- package/dist/substrate/lifo/kernel/network/tunnel/WebSocketTunnel.d.ts.map +1 -1
- package/dist/substrate/lifo/kernel/network/tunnel/WebSocketTunnel.js +3 -4
- package/dist/substrate/lifo/kernel/vfs/VFS.d.ts +17 -0
- package/dist/substrate/lifo/kernel/vfs/VFS.d.ts.map +1 -1
- package/dist/substrate/lifo/kernel/vfs/VFS.js +33 -0
- package/dist/substrate/lifo/node-compat/esbuild.d.ts.map +1 -1
- package/dist/substrate/lifo/node-compat/esbuild.js +2 -4
- package/dist/substrate/lifo/node-compat/index.d.ts.map +1 -1
- package/dist/substrate/lifo/node-compat/index.js +3 -2
- package/dist/substrate/lifo/node-compat/loose-equality.d.ts +19 -0
- package/dist/substrate/lifo/node-compat/loose-equality.d.ts.map +1 -0
- package/dist/substrate/lifo/node-compat/loose-equality.js +91 -0
- package/dist/substrate/lifo/node-compat/process.d.ts.map +1 -1
- package/dist/substrate/lifo/node-compat/process.js +6 -3
- package/dist/substrate/lifo/shell/Shell.d.ts +19 -0
- package/dist/substrate/lifo/shell/Shell.d.ts.map +1 -1
- package/dist/substrate/lifo/shell/Shell.js +86 -75
- package/dist/substrate/lifo/shell/lexer.d.ts +9 -0
- package/dist/substrate/lifo/shell/lexer.d.ts.map +1 -1
- package/dist/substrate/lifo/shell/lexer.js +40 -0
- package/dist/vfs/seed-project.d.ts.map +1 -1
- package/dist/vfs/seed-project.js +8 -2
- package/dist/vfs/sqlite-vfs.d.ts +61 -1
- package/dist/vfs/sqlite-vfs.d.ts.map +1 -1
- package/dist/vfs/sqlite-vfs.js +199 -35
- package/package.json +1 -1
- package/src/_shared/error-text.ts +21 -0
- package/src/_shared/exports-resolver.ts +24 -4
- package/src/_shared/retry.ts +4 -2
- package/src/_shared/w7-frame.ts +2 -1
- package/src/constants.ts +30 -16
- package/src/observability/oom-classify.ts +7 -0
- package/src/observability/oom-discriminator.ts +1 -1
- package/src/runtime/esbuild-service.ts +16 -11
- package/src/runtime/installed-runtimes.ts +4 -3
- package/src/runtime/long-running-handle.ts +3 -3
- package/src/runtime/os-contracts.ts +7 -5
- package/src/runtime/port-registry.ts +97 -9
- package/src/runtime/process-logs.ts +12 -3
- package/src/runtime/project-detect.ts +7 -1
- package/src/runtime/require-resolver.ts +7 -7
- package/src/runtime/runtime-registry.ts +9 -7
- package/src/runtime/sqlite-runtime-fs-bridge.ts +9 -6
- package/src/runtime/virtual-socket-kernel.generated.ts +2 -2
- package/src/runtime/virtual-socket-kernel.ts +10 -5
- package/src/runtime/wasm-runner.ts +55 -29
- package/src/shell/features.ts +5 -4
- package/src/shell/unix-commands.ts +273 -128
- package/src/substrate/lifo/commands/net/ip.ts +15 -15
- package/src/substrate/lifo/commands/system/ps.ts +2 -1
- package/src/substrate/lifo/kernel/ServiceManager.ts +0 -2
- package/src/substrate/lifo/kernel/network/NetworkStack.ts +24 -17
- package/src/substrate/lifo/kernel/network/tunnel/WebSocketTunnel.ts +37 -12
- package/src/substrate/lifo/kernel/vfs/VFS.ts +34 -0
- package/src/substrate/lifo/node-compat/esbuild.ts +16 -8
- package/src/substrate/lifo/node-compat/index.ts +3 -2
- package/src/substrate/lifo/node-compat/loose-equality.ts +81 -0
- package/src/substrate/lifo/node-compat/process.ts +5 -2
- package/src/substrate/lifo/shell/Shell.ts +92 -70
- package/src/substrate/lifo/shell/lexer.ts +38 -0
- package/src/vfs/seed-project.ts +10 -3
- package/src/vfs/sqlite-vfs.ts +209 -36
package/README.md
CHANGED
|
@@ -38,14 +38,38 @@ await ws.fs.writeFile('/home/user/hello.txt', 'hi\n');
|
|
|
38
38
|
const out = await ws.exec('cat /home/user/hello.txt | wc -c'); // { stdout: '3\n', exitCode: 0 }
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Inside a Cloudflare Durable Object
|
|
41
|
+
Inside a Cloudflare Durable Object, complete:
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
import { DurableObject } from 'cloudflare:workers';
|
|
45
|
+
import { NimbusWorkspace } from '@nimbus-sh/core/workspace';
|
|
46
|
+
|
|
47
|
+
export class Workspace extends DurableObject {
|
|
48
|
+
private ws?: Promise<NimbusWorkspace>;
|
|
49
|
+
|
|
50
|
+
private workspace(): Promise<NimbusWorkspace> {
|
|
51
|
+
this.ws ??= (async () => {
|
|
52
|
+
// Bump a persisted counter once per instance. Never a constant and
|
|
53
|
+
// never Date.now(): pids derive from the generation, so a repeated
|
|
54
|
+
// one hands a dead process live write authority, and the platform
|
|
55
|
+
// re-instantiates this class far more often than it looks like it
|
|
56
|
+
// does (cold starts, hibernation wakes, resets). Use the bumped
|
|
57
|
+
// value only after the put resolves.
|
|
58
|
+
const generation = ((await this.ctx.storage.get<number>('generation')) ?? 0) + 1;
|
|
59
|
+
await this.ctx.storage.put('generation', generation);
|
|
60
|
+
return NimbusWorkspace.create({
|
|
61
|
+
sql: this.ctx.storage.sql,
|
|
62
|
+
transactions: this.ctx,
|
|
63
|
+
generation,
|
|
64
|
+
});
|
|
65
|
+
})();
|
|
66
|
+
return this.ws;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async exec(command: string) {
|
|
70
|
+
return (await this.workspace()).exec(command);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
49
73
|
```
|
|
50
74
|
|
|
51
75
|
Files written through `.fs` are owned by the session user (uid 1000), not
|
|
@@ -83,7 +107,11 @@ package carries the same manifest and the same sha256-verified blobs the
|
|
|
83
107
|
hosted product serves from R2 — one publisher, two transports.
|
|
84
108
|
|
|
85
109
|
Without `facets` and `runtimes` you still get the full shell and coreutils;
|
|
86
|
-
the wasm runtimes are a dependency you add, not a mode you enable.
|
|
110
|
+
the wasm runtimes are a dependency you add, not a mode you enable. One caveat:
|
|
111
|
+
`localFacetHost()` covers bun and node only — on workerd the CSP forbids
|
|
112
|
+
request-time `WebAssembly.instantiate`, so wasm has to ride the Worker Loader
|
|
113
|
+
module map, which is the machinery in `@nimbus-sh/worker` and
|
|
114
|
+
`@nimbus-sh/fabric`; the shell, coreutils, and filesystem need none of it.
|
|
87
115
|
|
|
88
116
|
## Sharing a database with your own app
|
|
89
117
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* error-text.ts — the text a caught value carries.
|
|
3
|
+
*
|
|
4
|
+
* A `catch` binding is `unknown`: the throw site may have thrown an Error, a
|
|
5
|
+
* string, or a plain object with a `message`, and the shell and runtime paths
|
|
6
|
+
* report all three the same way. This is that report, in one place, so a
|
|
7
|
+
* command's diagnostics do not depend on which of those a facet threw.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The message a thrown value names, or the value itself when it names none.
|
|
11
|
+
* Empty and other falsy messages fall through to the value, so an
|
|
12
|
+
* `new Error('')` still reports as `Error` rather than as nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare function errorText(error: unknown): string;
|
|
15
|
+
//# sourceMappingURL=error-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-text.d.ts","sourceRoot":"","sources":["../../src/_shared/error-text.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMhD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* error-text.ts — the text a caught value carries.
|
|
3
|
+
*
|
|
4
|
+
* A `catch` binding is `unknown`: the throw site may have thrown an Error, a
|
|
5
|
+
* string, or a plain object with a `message`, and the shell and runtime paths
|
|
6
|
+
* report all three the same way. This is that report, in one place, so a
|
|
7
|
+
* command's diagnostics do not depend on which of those a facet threw.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The message a thrown value names, or the value itself when it names none.
|
|
11
|
+
* Empty and other falsy messages fall through to the value, so an
|
|
12
|
+
* `new Error('')` still reports as `Error` rather than as nothing.
|
|
13
|
+
*/
|
|
14
|
+
export function errorText(error) {
|
|
15
|
+
if (typeof error === 'object' && error !== null && 'message' in error) {
|
|
16
|
+
const { message } = error;
|
|
17
|
+
if (message)
|
|
18
|
+
return String(message);
|
|
19
|
+
}
|
|
20
|
+
return String(error);
|
|
21
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* 1. Install-time supervisor (TS) — `src/npm-resolver.ts` re-exports the
|
|
8
8
|
* typed functions for tree resolution.
|
|
9
9
|
*
|
|
10
|
-
* 2.
|
|
10
|
+
* 2. LoaderPool isolates (JS string) — `src/loaders/pre-bundle-preamble.ts`
|
|
11
11
|
* embeds `getExportsResolverJS()` as part of the pool preamble so the
|
|
12
12
|
* pre-bundle facet uses identical resolution semantics to the supervisor.
|
|
13
13
|
*
|
|
@@ -34,6 +34,22 @@
|
|
|
34
34
|
export declare const DEFAULT_ESM_CONDITIONS: string[];
|
|
35
35
|
/** Default conditions for CJS runtime resolution (user-shell node). */
|
|
36
36
|
export declare const DEFAULT_CJS_CONDITIONS: string[];
|
|
37
|
+
/**
|
|
38
|
+
* A `package.json#exports` / `#imports` value: a target path, an ordered list
|
|
39
|
+
* of fallbacks to try in turn, or a map keyed by subpath (`"./client"`) or by
|
|
40
|
+
* condition (`"import"`) whose values are the same shape again. `null` is the
|
|
41
|
+
* spec's "this subpath is not exported" marker, and blocks fallback.
|
|
42
|
+
*/
|
|
43
|
+
export type ExportsField = string | null | ExportsField[] | {
|
|
44
|
+
[key: string]: ExportsField;
|
|
45
|
+
};
|
|
46
|
+
/** The package.json fields entry-point resolution reads. */
|
|
47
|
+
export interface ResolvablePackageJson {
|
|
48
|
+
exports?: ExportsField;
|
|
49
|
+
imports?: ExportsField;
|
|
50
|
+
main?: string;
|
|
51
|
+
module?: string;
|
|
52
|
+
}
|
|
37
53
|
/**
|
|
38
54
|
* Resolve `package.json#exports` (or `#imports`) per Node spec.
|
|
39
55
|
*
|
|
@@ -42,18 +58,14 @@ export declare const DEFAULT_CJS_CONDITIONS: string[];
|
|
|
42
58
|
* @param conditions Active conditions, in priority order
|
|
43
59
|
* @returns Relative path target string, or null if not found / forbidden
|
|
44
60
|
*/
|
|
45
|
-
export declare function resolveExports(exportsField:
|
|
61
|
+
export declare function resolveExports(exportsField: ExportsField | undefined, subpath?: string, conditions?: string[]): string | null;
|
|
46
62
|
/**
|
|
47
63
|
* Resolve a package's entry-point file relative to its directory.
|
|
48
64
|
* Priority: exports → module → main → null.
|
|
49
65
|
* For non-root subpaths without an `exports` field, returns the subpath
|
|
50
66
|
* itself (caller probes filesystem with extension-list).
|
|
51
67
|
*/
|
|
52
|
-
export declare function resolvePackageEntry(pkg:
|
|
53
|
-
exports?: any;
|
|
54
|
-
module?: string;
|
|
55
|
-
main?: string;
|
|
56
|
-
}, subpath?: string, conditions?: string[]): string | null;
|
|
68
|
+
export declare function resolvePackageEntry(pkg: ResolvablePackageJson, subpath?: string, conditions?: string[]): string | null;
|
|
57
69
|
/**
|
|
58
70
|
* Returns the resolver source as plain JavaScript (no TypeScript syntax),
|
|
59
71
|
* suitable for embedding into a generated worker preamble or shim string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports-resolver.d.ts","sourceRoot":"","sources":["../../src/_shared/exports-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,UAA6C,CAAC;AAEjF,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,UAAiC,CAAC;AAErE
|
|
1
|
+
{"version":3,"file":"exports-resolver.d.ts","sourceRoot":"","sources":["../../src/_shared/exports-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,UAA6C,CAAC;AAEjF,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,UAAiC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,IAAI,GACJ,YAAY,EAAE,GACd;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAEpC,4DAA4D;AAC5D,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,YAAY,GAAG,SAAS,EACtC,OAAO,GAAE,MAAY,EACrB,UAAU,GAAE,MAAM,EAA2B,GAC5C,MAAM,GAAG,IAAI,CAkEf;AAwCD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,qBAAqB,EAC1B,OAAO,GAAE,MAAY,EACrB,UAAU,GAAE,MAAM,EAA2B,GAC5C,MAAM,GAAG,IAAI,CAsBf;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAkG7C"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* 1. Install-time supervisor (TS) — `src/npm-resolver.ts` re-exports the
|
|
8
8
|
* typed functions for tree resolution.
|
|
9
9
|
*
|
|
10
|
-
* 2.
|
|
10
|
+
* 2. LoaderPool isolates (JS string) — `src/loaders/pre-bundle-preamble.ts`
|
|
11
11
|
* embeds `getExportsResolverJS()` as part of the pool preamble so the
|
|
12
12
|
* pre-bundle facet uses identical resolution semantics to the supervisor.
|
|
13
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../src/_shared/retry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../src/_shared/retry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAKH,gFAAgF;AAChF,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,oEAAoE;AACpE,eAAO,MAAM,UAAU,EAAE,SAAS,MAAM,EAAsB,CAAC;AAE/D,4DAA4D;AAC5D,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED,qDAAqD;AACrD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzD;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEnF,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5F;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,WAAW,EAClB,IAAI,CAAC,EAAE,qBAAqB,GAC3B,OAAO,CAAC,QAAQ,CAAC,CAsFnB"}
|
package/dist/_shared/retry.js
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
* equivalent retry loops inside their isolated function bodies.
|
|
24
24
|
*/
|
|
25
25
|
import { disposeRpcResource } from './rpc-dispose.js';
|
|
26
|
+
import { errorText } from './error-text.js';
|
|
26
27
|
/** Default retry count AFTER the first attempt (3 = up to 4 total attempts). */
|
|
27
28
|
export const DEFAULT_RETRIES = 3;
|
|
28
29
|
/** Base backoff delays in ms. Index = retry attempt (0-indexed). */
|
|
@@ -142,7 +143,8 @@ export async function retryableFetch(url, init, opts) {
|
|
|
142
143
|
throw e;
|
|
143
144
|
}
|
|
144
145
|
const delayMs = jittered(BACKOFF_MS[Math.min(attempt, BACKOFF_MS.length - 1)]);
|
|
145
|
-
const
|
|
146
|
+
const isAbort = typeof e === 'object' && e !== null && 'name' in e && e.name === 'AbortError';
|
|
147
|
+
const reason = isAbort ? 'timeout' : errorText(e);
|
|
146
148
|
opts?.onRetry?.(attempt + 1, totalRetries, delayMs, reason);
|
|
147
149
|
await new Promise((r) => setTimeout(r, delayMs));
|
|
148
150
|
}
|
package/dist/_shared/w7-frame.js
CHANGED
|
@@ -724,7 +724,8 @@ function updateRecordCheck(seed, ...parts) {
|
|
|
724
724
|
const CRC_SEED = 0xffff_ffff;
|
|
725
725
|
let crcTable = null;
|
|
726
726
|
function crc32Update(check, bytes) {
|
|
727
|
-
|
|
727
|
+
crcTable ??= createCrcTable();
|
|
728
|
+
const table = crcTable;
|
|
728
729
|
let value = check;
|
|
729
730
|
for (const byte of bytes)
|
|
730
731
|
value = table[(value ^ byte) & 0xff] ^ (value >>> 8);
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,cAAc,UAAU,CAAC;AA+BtC,eAAO,MAAM,YAAY,aAAa,CAAC;AACvC,eAAO,MAAM,aAAa;;;;CAAyD,CAAC;AACpF,eAAO,MAAM,eAAe,WAAW,CAAC;AAQxC,eAAO,MAAM,aAAa,WAAW,CAAC;AAQtC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAGzC,eAAO,MAAM,UAAU,QAAS,CAAC;AACjC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,YAAY,QAA0B,CAAC;AACpD,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AACjD,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,oCAAoC,QAAkB,CAAC;AAKpE,eAAO,MAAM,0BAA0B,QAAmB,CAAC;AAyB3D,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,2BAA2B,QAAkB,CAAC;AAa3D,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC;;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BAAwB,QAAmB,CAAC;AAiBzD,eAAO,MAAM,wBAAwB,QAAmB,CAAC;AAoBzD,eAAO,MAAM,2BAA2B,QAAkB,CAAC;AAG3D,eAAO,MAAM,YAAY,+BAA+B,CAAC;AACzD,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAC7C,eAAO,MAAM,0BAA0B,QAA6B,CAAC;AACrE,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAGxC,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAC/C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AASxC,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAG3C,eAAO,MAAM,cAAc,eAAe,CAAC;AA6B3C,eAAO,MAAM,6BAA6B,QAAmB,CAAC;AAO9D,eAAO,MAAM,4CAA4C,QAAmB,CAAC;AAY7E,eAAO,MAAM,6BAA6B,QAAc,CAAC;AAGzD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,YAAY,eAAe,CAAC;AACzC,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,YAAY,2EAA2E,CAAC;AACrG,eAAO,MAAM,oBAAoB,UAAqD,CAAC;AAiBvF,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAAe,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -132,10 +132,13 @@ export const FACET_TIMEOUT_MS = 30_000; // 30s execution timeout
|
|
|
132
132
|
// JavaScript, so workerd's per-module text-size limit applies to the
|
|
133
133
|
// JSON-escaped form (each `\n` / `\"` / `\u` adds bytes, plus the
|
|
134
134
|
// per-key string-quote overhead).
|
|
135
|
-
//
|
|
136
|
-
//
|
|
137
|
-
//
|
|
138
|
-
//
|
|
135
|
+
// Measured: 8 MiB raw failed to boot; the passing raw bound was measured
|
|
136
|
+
// too, but the number was lost to comment truncation before it ever
|
|
137
|
+
// reached git, so only the failing side is known. Encoded as JSON that's
|
|
138
|
+
// roughly 18-25 MiB of module text. We target 22 MiB encoded as the hard
|
|
139
|
+
// ceiling, leaving ~2-3 MiB of headroom for the rest of the worker module
|
|
140
|
+
// (shims, runner boot code) and any minor drift in the eviction loop's
|
|
141
|
+
// accounting.
|
|
139
142
|
//
|
|
140
143
|
// facet-manager.ts:buildPrefetchBundle uses TextEncoder().encode().length
|
|
141
144
|
// to measure exact UTF-8 bytes (not JS string .length, which counts UTF-16
|
|
@@ -207,20 +210,31 @@ export const NIMBUS_AI_GATEWAY_PORT = 8790;
|
|
|
207
210
|
export const CF_COMPAT_DATE = '2026-04-01';
|
|
208
211
|
// ── Supervisor heap budget [C'.1] ───────────────────────────────────────
|
|
209
212
|
//
|
|
210
|
-
//
|
|
211
|
-
// (per docs/research/cf-primitives-dossier.md §6 invariant I1 — 128 MiB
|
|
212
|
-
// per V8 isolate, may be shared across same-class peer DOs co-tenanting in
|
|
213
|
-
// one process). Nimbus targets HALF of that as a self-imposed soft ceiling
|
|
214
|
-
// so the supervisor always has runway when workerd LRU-evicts neighbours
|
|
215
|
-
// or AIR (Asynchronous Isolate Recreation) folds growing isolates.
|
|
213
|
+
// Three distinct memory regimes, not one shared pool:
|
|
216
214
|
//
|
|
217
|
-
//
|
|
215
|
+
// - Supervisor DO isolate: 128 MiB HARD platform ceiling ("Each isolate
|
|
216
|
+
// can consume up to 128 MB of memory" —
|
|
217
|
+
// https://developers.cloudflare.com/workers/platform/limits/).
|
|
218
|
+
// - Facets: ~208-256 MiB EACH, measured — memory independent of the
|
|
219
|
+
// supervisor and of each other (1,664 MiB live across 8 facets +
|
|
220
|
+
// parent) but CPU SHARED across the actor thread. See
|
|
221
|
+
// packages/worker/src/loaders/process-fabric.ts.
|
|
222
|
+
// - Peer DOs: independent memory AND CPU budgets, measured 1.2 GiB
|
|
223
|
+
// live across 8 peers.
|
|
224
|
+
//
|
|
225
|
+
// Nimbus targets HALF of the supervisor's 128 MiB as a self-imposed soft
|
|
226
|
+
// ceiling so the supervisor always has runway when workerd LRU-evicts
|
|
227
|
+
// neighbours or AIR (Asynchronous Isolate Recreation) folds growing
|
|
228
|
+
// isolates.
|
|
229
|
+
//
|
|
230
|
+
// 64 MiB is a soft admission budget, not a measurement — the right value
|
|
231
|
+
// is unmeasured — and nothing enforces it directly.
|
|
218
232
|
// src/observability/heap-estimate.ts sums the INSTRUMENTED contributors —
|
|
219
|
-
// the supervisor baseline, VFS LRU and in-flight writes, pre-bundle
|
|
220
|
-
//
|
|
221
|
-
//
|
|
222
|
-
//
|
|
223
|
-
//
|
|
233
|
+
// the supervisor baseline, VFS LRU and in-flight writes, pre-bundle
|
|
234
|
+
// slices, streaming RPC buffers, and the prefetch-bundle build lease and
|
|
235
|
+
// cache gauge — which is a lower bound, not full coverage; allocation
|
|
236
|
+
// sites known to be missing are listed in HEAP_BLIND_SPOTS. Read a low
|
|
237
|
+
// percentOfCeiling accordingly.
|
|
224
238
|
export const SUPERVISOR_HEAP_CEILING_BYTES = 64 * 1024 * 1024;
|
|
225
239
|
// Shared allowance for transient allocations in the supervisor DO. With the
|
|
226
240
|
// VFS LRU shrunk to 8 MiB during an active reservation, 40 MiB of admitted
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
* the union narrow and additive — adding a new value is fine, but
|
|
61
61
|
* never re-purpose an existing one.
|
|
62
62
|
*/
|
|
63
|
-
declare const OOM_CAUSES: readonly ["sqlite_nomem", "oom", "cpu_exceeded", "clone_refused", "rpc_timeout", "subrequest_cap", "condemnation", "hard_evict", "unknown"];
|
|
63
|
+
declare const OOM_CAUSES: readonly ["sqlite_nomem", "oom", "cpu_exceeded", "clone_refused", "rpc_timeout", "subrequest_cap", "dynamic_worker_cap", "condemnation", "hard_evict", "unknown"];
|
|
64
64
|
export type OomCause = typeof OOM_CAUSES[number];
|
|
65
65
|
export declare function isOomCause(input: unknown): input is OomCause;
|
|
66
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oom-classify.d.ts","sourceRoot":"","sources":["../../src/observability/oom-classify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"oom-classify.d.ts","sourceRoot":"","sources":["../../src/observability/oom-classify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,QAAA,MAAM,UAAU,mKAWN,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAEjD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAItD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CA0DrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAO1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEtD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAgBpD"}
|
|
@@ -67,6 +67,7 @@ const OOM_CAUSES = [
|
|
|
67
67
|
'clone_refused',
|
|
68
68
|
'rpc_timeout',
|
|
69
69
|
'subrequest_cap',
|
|
70
|
+
'dynamic_worker_cap',
|
|
70
71
|
'condemnation',
|
|
71
72
|
'hard_evict',
|
|
72
73
|
'unknown',
|
|
@@ -115,6 +116,12 @@ export function classifyMessage(msg) {
|
|
|
115
116
|
// Subrequest cap (Cloudflare platform)
|
|
116
117
|
if (m.includes('too many subrequests'))
|
|
117
118
|
return 'subrequest_cap';
|
|
119
|
+
// Worker Loader concurrency cap (Cloudflare platform): a Durable Object
|
|
120
|
+
// admits ~5-6 concurrent dynamic workers, and loader-cache entries are
|
|
121
|
+
// never released — every distinct loader.get(id) permanently consumes a
|
|
122
|
+
// slot, so this cap recurs until the DO itself is replaced.
|
|
123
|
+
if (m.includes('too many concurrent dynamic workers'))
|
|
124
|
+
return 'dynamic_worker_cap';
|
|
118
125
|
// Memory exhaustion. workerd trace outcome `exceededMemory`; in-band it
|
|
119
126
|
// arrives as a `broken.exceededMemory` actor break, a "…exceeded [its]
|
|
120
127
|
// memory limit" kill, or the "Memory limit exceeded" RangeError.
|
|
@@ -116,7 +116,7 @@ export interface DiagRecoveryEvent {
|
|
|
116
116
|
toState: SessionState;
|
|
117
117
|
/** Human-readable trigger ('ws-close', 'isolate-evicted', etc.). */
|
|
118
118
|
trigger: string;
|
|
119
|
-
/**
|
|
119
|
+
/** _isolateGen at the time of the event. Lets a probe detect the
|
|
120
120
|
* difference between an in-isolate transition and a cross-isolate one
|
|
121
121
|
* (the latter implies workerd recycled the DO). */
|
|
122
122
|
isolateGen: number;
|
|
@@ -100,12 +100,13 @@ export declare function getSharedRuntimeExternals(specifier: string): string[];
|
|
|
100
100
|
* Unicode identifier tables.
|
|
101
101
|
*/
|
|
102
102
|
export declare function hasTopLevelAwait(src: string): boolean;
|
|
103
|
+
import type * as esbuild from 'esbuild-wasm';
|
|
103
104
|
export interface TransformResult {
|
|
104
105
|
code: string;
|
|
105
106
|
map: string;
|
|
106
107
|
warnings: {
|
|
107
108
|
text: string;
|
|
108
|
-
location?:
|
|
109
|
+
location?: esbuild.Location | null;
|
|
109
110
|
}[];
|
|
110
111
|
}
|
|
111
112
|
export interface BuildOutputFile {
|
|
@@ -116,11 +117,11 @@ export interface BuildResult {
|
|
|
116
117
|
outputFiles: BuildOutputFile[];
|
|
117
118
|
errors: {
|
|
118
119
|
text: string;
|
|
119
|
-
location?:
|
|
120
|
+
location?: esbuild.Location | null;
|
|
120
121
|
}[];
|
|
121
122
|
warnings: {
|
|
122
123
|
text: string;
|
|
123
|
-
location?:
|
|
124
|
+
location?: esbuild.Location | null;
|
|
124
125
|
}[];
|
|
125
126
|
}
|
|
126
127
|
export declare class EsbuildService {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild-service.d.ts","sourceRoot":"","sources":["../../src/runtime/esbuild-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"esbuild-service.d.ts","sourceRoot":"","sources":["../../src/runtime/esbuild-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CA4DrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAyCrD;AAuiBD,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAC;AAuC7C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,GAAG,IA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AC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACjC,GACA,OAAO,CAAC,eAAe,CAAC;IAsF3B;;OAEG;IACG,KAAK,CACT,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;QAChC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;QAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;QAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,GACA,OAAO,CAAC,WAAW,CAAC;IA0CvB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IA4UrB,IAAI,aAAa,YAA+B;CACjD"}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
import { CRED_KERNEL } from './os-contracts.js';
|
|
20
20
|
import { resolvePackageEntry, resolveExports } from '../_shared/exports-resolver.js';
|
|
21
21
|
import { normalizeVfsPath, stripLeadingSlashes } from '../vfs/path.js';
|
|
22
|
+
import { errorText } from '../_shared/error-text.js';
|
|
22
23
|
/**
|
|
23
24
|
* Bundler version tag. BUMP THIS whenever bundling semantics change —
|
|
24
25
|
* the esbuild plugin's resolver logic, the shared-externals rules, the
|
|
@@ -174,7 +175,6 @@ export function hasTopLevelAwait(src) {
|
|
|
174
175
|
// inside `(...)`; a `{` only opens a function body when a `function`/
|
|
175
176
|
// `=>` is pending AND we're at parenDepth 0 (past the param list).
|
|
176
177
|
const re = /\b(await|function|class)\b|=>|\{|\}|\(|\)/g;
|
|
177
|
-
let m;
|
|
178
178
|
const fnEntryDepths = [];
|
|
179
179
|
let depth = 0;
|
|
180
180
|
let parenDepth = 0;
|
|
@@ -188,7 +188,7 @@ export function hasTopLevelAwait(src) {
|
|
|
188
188
|
// `x => ({ ... })` (object-returning expression body, `{` at parenDepth
|
|
189
189
|
// 1) does not leak a body slot onto a later top-level block.
|
|
190
190
|
let arrowPending = false;
|
|
191
|
-
|
|
191
|
+
for (let m = re.exec(stripped); m !== null; m = re.exec(stripped)) {
|
|
192
192
|
const tok = m[0];
|
|
193
193
|
if (arrowPending && tok !== '{')
|
|
194
194
|
arrowPending = false;
|
|
@@ -892,6 +892,10 @@ export class EsbuildService {
|
|
|
892
892
|
let initTimeout = null;
|
|
893
893
|
await Promise.race([
|
|
894
894
|
esb.initialize({
|
|
895
|
+
// wrangler resolves this static `.wasm` import to a compiled
|
|
896
|
+
// module at bundle time; the asset stub for a `.wasm` module can
|
|
897
|
+
// only declare its default export as a string, and the guard
|
|
898
|
+
// above is what checks the resolution actually happened.
|
|
895
899
|
wasmModule: esbuildWasmUrl,
|
|
896
900
|
worker: false,
|
|
897
901
|
}),
|
|
@@ -907,13 +911,14 @@ export class EsbuildService {
|
|
|
907
911
|
this.initialized = true;
|
|
908
912
|
}
|
|
909
913
|
catch (e) {
|
|
914
|
+
const message = errorText(e);
|
|
910
915
|
// "Cannot call initialize more than once" means it's already ready
|
|
911
|
-
if (
|
|
916
|
+
if (message.includes('more than once')) {
|
|
912
917
|
this.initialized = true;
|
|
913
918
|
return;
|
|
914
919
|
}
|
|
915
920
|
this.initPromise = null;
|
|
916
|
-
throw new Error('esbuild init failed: ' +
|
|
921
|
+
throw new Error('esbuild init failed: ' + message);
|
|
917
922
|
}
|
|
918
923
|
})();
|
|
919
924
|
return this.initPromise;
|
|
@@ -16,19 +16,20 @@
|
|
|
16
16
|
* tree itself gets working commands out of this with nothing else in play.
|
|
17
17
|
*/
|
|
18
18
|
import type { CredentialedVfs, SqliteVFS } from '../vfs/sqlite-vfs.js';
|
|
19
|
+
import type { Command } from '../substrate/lifo/commands/types.js';
|
|
19
20
|
import { type RuntimePackageAbi } from './os-contracts.js';
|
|
20
21
|
import { type ManifestEntrypoint, type RuntimeManifest } from './runtime-manifest.js';
|
|
21
22
|
/** Minimal shell-registry shape we depend on. */
|
|
22
23
|
export interface MinShellRegistry {
|
|
23
|
-
register(name: string, handler:
|
|
24
|
+
register(name: string, handler: Command): void;
|
|
24
25
|
unregister?(name: string): void;
|
|
25
|
-
resolve?(name: string):
|
|
26
|
+
resolve?(name: string): Promise<Command | null | undefined> | Command | null | undefined;
|
|
26
27
|
}
|
|
27
28
|
/** Runner-factory contract. Each registered runner produces a shell-
|
|
28
29
|
* command handler given the manifest + the installed root dir. The
|
|
29
30
|
* package manager invokes the factory at install-time + at boot-time
|
|
30
31
|
* rehydration. */
|
|
31
|
-
export type RunnerFactory = (manifest: RuntimeManifest, installRoot: string, binName: string, binKind: string | undefined) =>
|
|
32
|
+
export type RunnerFactory = (manifest: RuntimeManifest, installRoot: string, binName: string, binKind: string | undefined) => Command;
|
|
32
33
|
/**
|
|
33
34
|
* How a manifest entrypoint's `runner` key is resolved to code.
|
|
34
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installed-runtimes.d.ts","sourceRoot":"","sources":["../../src/runtime/installed-runtimes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAKL,K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,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,MAAM,GACd;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAEnC;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,eAAe,EACpB,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,YAAY,GACtB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAYnC;AAED,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,MAAM,GACd,cAAc,EAAE,CAUlB"}
|
|
@@ -79,7 +79,7 @@ export declare function parsePortFromArgv(argv: string[]): number | null;
|
|
|
79
79
|
*/
|
|
80
80
|
export declare function resolveLongRunningPort(opts: {
|
|
81
81
|
argv?: string[];
|
|
82
|
-
env?: Record<string,
|
|
82
|
+
env?: Record<string, string> | undefined;
|
|
83
83
|
configPort?: number | undefined;
|
|
84
84
|
fallback: number;
|
|
85
85
|
}): number;
|
|
@@ -109,11 +109,11 @@ export declare function resolveLongRunningPort(opts: {
|
|
|
109
109
|
* That is intentional — full shell semantics belong in the shell, not
|
|
110
110
|
* the argv expander; this helper covers ~95% of dev-script usage.
|
|
111
111
|
*/
|
|
112
|
-
export declare function expandShellDefaults(token: string, env: Record<string,
|
|
112
|
+
export declare function expandShellDefaults(token: string, env: Record<string, string> | undefined): string;
|
|
113
113
|
/**
|
|
114
114
|
* Apply `expandShellDefaults` to every argv token. Used at the top of
|
|
115
115
|
* a long-running handler before argv parsing so flag values are
|
|
116
116
|
* fully resolved.
|
|
117
117
|
*/
|
|
118
|
-
export declare function expandArgvShellDefaults(argv: ReadonlyArray<string>, env: Record<string,
|
|
118
|
+
export declare function expandArgvShellDefaults(argv: ReadonlyArray<string>, env: Record<string, string> | undefined): string[];
|
|
119
119
|
//# sourceMappingURL=long-running-handle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"long-running-handle.d.ts","sourceRoot":"","sources":["../../src/runtime/long-running-handle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,sBAAsB;+BAElC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;EAM/D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAkB/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"long-running-handle.d.ts","sourceRoot":"","sources":["../../src/runtime/long-running-handle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,sBAAsB;+BAElC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;EAM/D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAkB/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAYT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GACtC,MAAM,CAiBR;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GACtC,MAAM,EAAE,CAEV"}
|
|
@@ -272,11 +272,12 @@ export interface RuntimeTtyOptions {
|
|
|
272
272
|
/**
|
|
273
273
|
* Where a registered port's traffic goes: one process, reached by HTTP.
|
|
274
274
|
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
275
|
+
* Ordinary HTTP may cross Workers RPC as Request/Response values. A WebSocket
|
|
276
|
+
* upgrade may not: its 101 Response owns a live socket, and RPC's
|
|
277
|
+
* Request/Response transport reconstructs the value rather than handing over
|
|
278
|
+
* the socket. So a target that can serve an upgrade exposes a separate
|
|
279
|
+
* fetch-semantic entrypoint, and every hop of an upgrade stays on the HTTP
|
|
280
|
+
* service-binding path. A target that omits it serves HTTP only.
|
|
280
281
|
*
|
|
281
282
|
* Lives here rather than beside the registry because both ends need it and
|
|
282
283
|
* neither owns it: the port registry stores these, and the process fabric
|
|
@@ -285,6 +286,7 @@ export interface RuntimeTtyOptions {
|
|
|
285
286
|
*/
|
|
286
287
|
export interface RouteableFacetTarget {
|
|
287
288
|
handleHttpRequest(request: Request): Promise<Response>;
|
|
289
|
+
handleWebSocketRequest?(request: Request): Promise<Response>;
|
|
288
290
|
}
|
|
289
291
|
export interface RuntimePortBridge {
|
|
290
292
|
register(port: number, processId: number, handler: (request: Request) => Promise<Response>): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"os-contracts.d.ts","sourceRoot":"","sources":["../../src/runtime/os-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAEvF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC/D;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;CAC1C;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,EAAE,O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