@nimbus-sh/worker 0.1.2 → 0.1.3
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/LICENSE +21 -0
- package/NOTICE.md +6 -0
- package/dist/_shared/cache-stats.d.ts +1 -1
- package/dist/_shared/cache-stats.js +1 -1
- package/dist/_shared/exports-resolver.d.ts +0 -2
- package/dist/_shared/exports-resolver.d.ts.map +1 -1
- package/dist/_shared/exports-resolver.js +0 -2
- package/dist/_shared/session-router.d.ts +0 -1
- package/dist/_shared/session-router.d.ts.map +1 -1
- package/dist/_shared/session-router.js +0 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +0 -1
- package/dist/facets/cirrus-real.d.ts +1 -1
- package/dist/facets/cirrus-real.js +1 -1
- package/dist/facets/manager.d.ts +0 -1
- package/dist/facets/manager.d.ts.map +1 -1
- package/dist/facets/manager.js +3 -15
- package/dist/facets/process.d.ts +2 -2
- package/dist/facets/process.js +2 -2
- package/dist/facets/vite-dev-server.d.ts +3 -3
- package/dist/facets/vite-dev-server.d.ts.map +1 -1
- package/dist/facets/vite-dev-server.js +6 -8
- package/dist/facets/wasm-swap-registry.d.ts +15 -21
- package/dist/facets/wasm-swap-registry.d.ts.map +1 -1
- package/dist/facets/wasm-swap-registry.js +41 -54
- package/dist/facets/ws-terminal.d.ts +4 -5
- package/dist/facets/ws-terminal.d.ts.map +1 -1
- package/dist/facets/ws-terminal.js +7 -8
- package/dist/git/commands.d.ts.map +1 -1
- package/dist/git/commands.js +0 -1
- package/dist/git/network-facet.d.ts.map +1 -1
- package/dist/git/network-facet.js +0 -2
- package/dist/git-bundle.generated.d.ts +2 -3
- package/dist/git-bundle.generated.d.ts.map +1 -1
- package/dist/git-bundle.generated.js +3 -4
- package/dist/loaders/child-process/spawn-facet.d.ts +7 -52
- package/dist/loaders/child-process/spawn-facet.d.ts.map +1 -1
- package/dist/loaders/child-process/spawn-facet.js +7 -49
- package/dist/loaders/child-process/spawn-pool.d.ts +5 -44
- package/dist/loaders/child-process/spawn-pool.d.ts.map +1 -1
- package/dist/loaders/child-process/spawn-pool.js +5 -44
- package/dist/loaders/fanout-pool.d.ts +18 -65
- package/dist/loaders/fanout-pool.d.ts.map +1 -1
- package/dist/loaders/fanout-pool.js +25 -87
- package/dist/loaders/generated-workers.d.ts +1 -2
- package/dist/loaders/generated-workers.d.ts.map +1 -1
- package/dist/loaders/generated-workers.js +5 -6
- package/dist/loaders/loader-pool.d.ts +1 -2
- package/dist/loaders/loader-pool.d.ts.map +1 -1
- package/dist/loaders/loader-pool.js +1 -1
- package/dist/loaders/npm-resolve-preamble.d.ts +4 -5
- package/dist/loaders/npm-resolve-preamble.d.ts.map +1 -1
- package/dist/loaders/npm-resolve-preamble.js +14 -21
- package/dist/loaders/pre-bundle-preamble.d.ts.map +1 -1
- package/dist/loaders/pre-bundle-preamble.js +0 -1
- package/dist/npm/cache.js +1 -1
- package/dist/npm/install-batch-facet.d.ts.map +1 -1
- package/dist/npm/install-batch-facet.js +7 -12
- package/dist/npm/installer.d.ts +5 -7
- package/dist/npm/installer.d.ts.map +1 -1
- package/dist/npm/installer.js +20 -101
- package/dist/npm/r2-cache.d.ts +17 -29
- package/dist/npm/r2-cache.d.ts.map +1 -1
- package/dist/npm/r2-cache.js +16 -27
- package/dist/npm/resolve-facet.d.ts +11 -17
- package/dist/npm/resolve-facet.d.ts.map +1 -1
- package/dist/npm/resolve-facet.js +14 -28
- package/dist/npm/resolve-one-facet.d.ts +10 -13
- package/dist/npm/resolve-one-facet.d.ts.map +1 -1
- package/dist/npm/resolve-one-facet.js +8 -10
- package/dist/npm/resolver.d.ts +0 -2
- package/dist/npm/resolver.d.ts.map +1 -1
- package/dist/npm/resolver.js +0 -12
- package/dist/observability/oom-discriminator.d.ts +0 -2
- package/dist/observability/oom-discriminator.d.ts.map +1 -1
- package/dist/observability/oom-discriminator.js +0 -2
- package/dist/replica/routing.js +1 -1
- package/dist/runtime/barrel-synthesizer.js +1 -1
- package/dist/runtime/clang-runner.d.ts +5 -6
- package/dist/runtime/clang-runner.d.ts.map +1 -1
- package/dist/runtime/clang-runner.js +5 -6
- package/dist/runtime/esbuild-service.d.ts.map +1 -1
- package/dist/runtime/esbuild-service.js +0 -3
- package/dist/runtime/framework-detect.d.ts +0 -1
- package/dist/runtime/framework-detect.d.ts.map +1 -1
- package/dist/runtime/framework-detect.js +0 -1
- package/dist/runtime/node-runner.d.ts +1 -1
- package/dist/runtime/node-runner.js +1 -1
- package/dist/runtime/node-shims.d.ts.map +1 -1
- package/dist/runtime/node-shims.js +0 -22
- package/dist/runtime/package-manager.d.ts +2 -7
- package/dist/runtime/package-manager.d.ts.map +1 -1
- package/dist/runtime/package-manager.js +2 -7
- package/dist/runtime/process-logs-api.js +1 -1
- package/dist/runtime/process-logs.d.ts +0 -1
- package/dist/runtime/process-logs.d.ts.map +1 -1
- package/dist/runtime/process-table.d.ts +2 -2
- package/dist/runtime/process-table.d.ts.map +1 -1
- package/dist/runtime/process-table.js +1 -1
- package/dist/runtime/python-repl.d.ts +0 -1
- package/dist/runtime/python-repl.d.ts.map +1 -1
- package/dist/runtime/python-repl.js +0 -1
- package/dist/runtime/python-runner.d.ts +1 -2
- package/dist/runtime/python-runner.d.ts.map +1 -1
- package/dist/runtime/python-runner.js +1 -3
- package/dist/runtime/repl-session.d.ts +0 -1
- package/dist/runtime/repl-session.d.ts.map +1 -1
- package/dist/runtime/repl-session.js +1 -2
- package/dist/runtime/require-resolver.d.ts.map +1 -1
- package/dist/runtime/require-resolver.js +1 -4
- package/dist/runtime/ruby-runner.d.ts +0 -1
- package/dist/runtime/ruby-runner.d.ts.map +1 -1
- package/dist/runtime/ruby-runner.js +0 -1
- package/dist/runtime/runtime-catalog.d.ts +2 -4
- package/dist/runtime/runtime-catalog.d.ts.map +1 -1
- package/dist/runtime/runtime-catalog.js +2 -4
- package/dist/runtime/runtime-registry.d.ts +1 -1
- package/dist/runtime/runtime-registry.js +1 -1
- package/dist/runtime/streams.d.ts.map +1 -1
- package/dist/runtime/streams.js +0 -1
- package/dist/runtime/wasi-instance.d.ts +35 -45
- package/dist/runtime/wasi-instance.d.ts.map +1 -1
- package/dist/runtime/wasi-instance.js +87 -103
- package/dist/runtime/wasm-runner.d.ts +9 -15
- package/dist/runtime/wasm-runner.d.ts.map +1 -1
- package/dist/runtime/wasm-runner.js +23 -29
- package/dist/session/bindings.d.ts +2 -7
- package/dist/session/bindings.d.ts.map +1 -1
- package/dist/session/bindings.js +3 -8
- package/dist/session/helpers.d.ts +2 -9
- package/dist/session/helpers.d.ts.map +1 -1
- package/dist/session/helpers.js +2 -10
- package/dist/session/init.d.ts +3 -6
- package/dist/session/init.d.ts.map +1 -1
- package/dist/session/init.js +25 -30
- package/dist/session/nimbus-session.d.ts +1 -1
- package/dist/session/nimbus-session.js +5 -5
- package/dist/session/routes.d.ts.map +1 -1
- package/dist/session/routes.js +9 -16
- package/dist/session/rpc.d.ts +2 -2
- package/dist/session/rpc.js +6 -6
- package/dist/session/supervisor-rpc.d.ts +1 -2
- package/dist/session/supervisor-rpc.d.ts.map +1 -1
- package/dist/session/supervisor-rpc.js +1 -5
- package/dist/shell/features.d.ts +5 -5
- package/dist/shell/features.js +6 -6
- package/dist/shell/unix-commands.js +15 -15
- package/dist/vfs/dev-provider.d.ts +1 -1
- package/dist/vfs/dev-provider.js +1 -1
- package/dist/vfs/sqlite-vfs.d.ts +3 -3
- package/dist/vfs/sqlite-vfs.d.ts.map +1 -1
- package/dist/vfs/sqlite-vfs.js +10 -11
- package/package.json +12 -2
- package/public/s/index.html +44 -75
- package/scripts/bundle-facet-workers.mjs +1 -1
- package/scripts/bundle-git.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oom-discriminator.d.ts","sourceRoot":"","sources":["../../src/observability/oom-discriminator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"oom-discriminator.d.ts","sourceRoot":"","sources":["../../src/observability/oom-discrimin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,QAAQ,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CASjD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAoCxD"}
|
|
@@ -33,8 +33,6 @@
|
|
|
33
33
|
* - per-facet-id: single slot, one object.
|
|
34
34
|
*
|
|
35
35
|
* Snapshot ≤40 KB even with both rings full. Verified by
|
|
36
|
-
* audit/probes/w5/functional/ring-persistence.mjs (failures) and
|
|
37
|
-
* audit/probes/c-prime/recovery-events/ (recovery — Phase 1 C'.2).
|
|
38
36
|
*/
|
|
39
37
|
const KEY = '__NIMBUS_W5_OOM_DISC__';
|
|
40
38
|
const RING_SIZE = 50;
|
package/dist/replica/routing.js
CHANGED
|
@@ -55,7 +55,7 @@ export function classifyReplicaPolicy(pathname, method) {
|
|
|
55
55
|
// ── Worker / port routes — facets are owned by the primary; no
|
|
56
56
|
// replica representation. Always primary-only.
|
|
57
57
|
//
|
|
58
|
-
//
|
|
58
|
+
// runtime primitive support: `/__nimbus/worker/*` is the canonical route;
|
|
59
59
|
// `/worker/*` is the deprecated legacy form, kept here for back-
|
|
60
60
|
// compat (one release sunset; see routes.ts for the Deprecation
|
|
61
61
|
// header). Both classify the same way.
|
|
@@ -222,7 +222,7 @@ export function buildSyntheticEntry(vfs, nmDir, pkgName, names) {
|
|
|
222
222
|
// `default` (default re-export with no rename) is rare; skip.
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
//
|
|
225
|
+
// barrel fallback support — `export * from './x.js'` support.
|
|
226
226
|
//
|
|
227
227
|
// Many barrel packages (date-fns, several utility libraries, some
|
|
228
228
|
// icon kits) use `export *` aggregation instead of per-name
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* clang-runner.ts —
|
|
2
|
+
* clang-runner.ts — compile, link, and execute C programs as wasm32-wasi.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Architecture (compile-link-run, two facet calls):
|
|
5
5
|
*
|
|
6
6
|
* compile : clang.wasm + memfs.wasm + sysroot subset for C includes
|
|
7
7
|
* + user .c → produces .o bytes (returned to supervisor).
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
* write : final .wasm flushed to user VFS at the requested path.
|
|
12
12
|
*
|
|
13
13
|
* Splitting compile and link into separate LOADER calls keeps each
|
|
14
|
-
* call under the empirical
|
|
15
|
-
* path B). Each ships:
|
|
14
|
+
* call under the empirical loader payload ceiling. Each ships:
|
|
16
15
|
*
|
|
17
16
|
* - compile: 31 MiB clang.wasm + 0.35 MiB memfs + ~1.3 MiB sysroot
|
|
18
17
|
* subset (C includes) = ~32.6 MiB.
|
|
@@ -23,8 +22,8 @@
|
|
|
23
22
|
* parser. The full 9.3 MiB sysroot.tar is parsed once per compile;
|
|
24
23
|
* only the files matching the role's prefix-allowlist are forwarded.
|
|
25
24
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* Dispatch stays direct: no sleeps, no caller-side retries, and no
|
|
26
|
+
* catch-and-continue around loader failures.
|
|
28
27
|
*/
|
|
29
28
|
import type { RuntimeManifest } from './runtime-catalog.js';
|
|
30
29
|
import type { SqliteVFS } from '../vfs/sqlite-vfs.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clang-runner.d.ts","sourceRoot":"","sources":["../../src/runtime/clang-runner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"clang-runner.d.ts","sourceRoot":"","sources":["../../src/runtime/clang-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,4DAA4D;AAC5D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,QAAQ,EAAE,YAAY,CAAC;IACvB,GAAG,EAAE,SAAS,CAAC;CAChB,GAAG,CAAC,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,KAC7F,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,CAqShC;AAqZD,eAAO,MAAM,qBAAqB,imXA4UjC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* clang-runner.ts —
|
|
2
|
+
* clang-runner.ts — compile, link, and execute C programs as wasm32-wasi.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Architecture (compile-link-run, two facet calls):
|
|
5
5
|
*
|
|
6
6
|
* compile : clang.wasm + memfs.wasm + sysroot subset for C includes
|
|
7
7
|
* + user .c → produces .o bytes (returned to supervisor).
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
* write : final .wasm flushed to user VFS at the requested path.
|
|
12
12
|
*
|
|
13
13
|
* Splitting compile and link into separate LOADER calls keeps each
|
|
14
|
-
* call under the empirical
|
|
15
|
-
* path B). Each ships:
|
|
14
|
+
* call under the empirical loader payload ceiling. Each ships:
|
|
16
15
|
*
|
|
17
16
|
* - compile: 31 MiB clang.wasm + 0.35 MiB memfs + ~1.3 MiB sysroot
|
|
18
17
|
* subset (C includes) = ~32.6 MiB.
|
|
@@ -23,8 +22,8 @@
|
|
|
23
22
|
* parser. The full 9.3 MiB sysroot.tar is parsed once per compile;
|
|
24
23
|
* only the files matching the role's prefix-allowlist are forwarded.
|
|
25
24
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* Dispatch stays direct: no sleeps, no caller-side retries, and no
|
|
26
|
+
* catch-and-continue around loader failures.
|
|
28
27
|
*/
|
|
29
28
|
/** Build the runner factory. Closes over facetMgr + vfs. */
|
|
30
29
|
export function makeClangRunnerFactory(deps) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild-service.d.ts","sourceRoot":"","sources":["../../src/runtime/esbuild-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CA4DrE;
|
|
1
|
+
{"version":3,"file":"esbuild-service.d.ts","sourceRoot":"","sources":["../../src/runtime/esbuild-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CA4DrE;AA0qBD,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,GAAG,CAAA;KAAE,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ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G,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"}
|
|
@@ -537,7 +537,6 @@ function convertEsmImportsToRequire(src) {
|
|
|
537
537
|
// CLASSIFY (is this an import line?) and the original line to
|
|
538
538
|
// EXTRACT the actual import shape (specifier, bindings).
|
|
539
539
|
//
|
|
540
|
-
// See .seal-internal/2026-05-11-sk-mjs-fix/audit.md.
|
|
541
540
|
const strippedLines = stripCommentsAndStrings(src).split('\n');
|
|
542
541
|
const requires = [];
|
|
543
542
|
const bodyLines = [];
|
|
@@ -629,7 +628,6 @@ function convertEsmImportsToRequire(src) {
|
|
|
629
628
|
// SyntaxError "Unexpected token 'export'" at facet pre-compile.
|
|
630
629
|
//
|
|
631
630
|
// Rewrite each top-level export to a CJS-compatible equivalent (see
|
|
632
|
-
// .seal-internal/2026-05-11-sk-exports-fix/audit.md for shape table).
|
|
633
631
|
// Same defences as imports:
|
|
634
632
|
// - String-content masking (template-literal exports don't trigger)
|
|
635
633
|
// - $-aware identifier regex ([\w$]+, esbuild emits foo$1 ids)
|
|
@@ -1003,7 +1001,6 @@ export class EsbuildService {
|
|
|
1003
1001
|
// user code has no .catch() (e.g. create-astro.mjs's
|
|
1004
1002
|
// `import('./dist/index.js').then(({main}) => main())`), the
|
|
1005
1003
|
// rejection is unhandled and the facet exits silently
|
|
1006
|
-
// exitCode=0. See .seal-internal/2026-05-11-astro-silent-exit/audit.md.
|
|
1007
1004
|
supported: { 'dynamic-import': false },
|
|
1008
1005
|
});
|
|
1009
1006
|
const { requires, body } = convertEsmImportsToRequire(pass1.code);
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
* Bare `@remix-run/react` without `@remix-run/dev` falls through to step 7
|
|
29
29
|
* — it's a runtime dep alone, not a Remix v2 vite-plugin project.
|
|
30
30
|
*
|
|
31
|
-
* See audit/sections/W11-plan.md §4 for the full spec + rationale.
|
|
32
31
|
*/
|
|
33
32
|
export type Framework = 'next' | 'astro' | 'nuxt' | 'remix' | 'sveltekit' | 'vite' | 'wrangler' | 'unknown';
|
|
34
33
|
export type DevCommand = 'next-cli' | 'astro-cli' | 'nuxt-cli' | 'remix-cli' | 'sveltekit-vite' | 'vite-real' | 'wrangler-dev' | 'generic';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-detect.d.ts","sourceRoot":"","sources":["../../src/runtime/framework-detect.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"framework-detect.d.ts","sourceRoot":"","sources":["../../src/runtime/framework-detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,WAAW,GACX,MAAM,GACN,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,cAAc,GACd,SAAS,CAAC;AAEd,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE;QACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAClC,CAAC;IACF,2EAA2E;IAC3E,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,UAAU,EAAE,UAAU,CAAC;CACxB;AA2BD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAsBhE;AAwGD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAK3D"}
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
* Bare `@remix-run/react` without `@remix-run/dev` falls through to step 7
|
|
29
29
|
* — it's a runtime dep alone, not a Remix v2 vite-plugin project.
|
|
30
30
|
*
|
|
31
|
-
* See audit/sections/W11-plan.md §4 for the full spec + rationale.
|
|
32
31
|
*/
|
|
33
32
|
const WRANGLER_CONFIG_FILES = ['wrangler.toml', 'wrangler.jsonc', 'wrangler.json'];
|
|
34
33
|
const VITE_CONFIG_FILES = ['vite.config.ts', 'vite.config.js', 'vite.config.mjs', 'vite.config.cjs'];
|
|
@@ -103,7 +103,7 @@ export interface RunFreshOpts {
|
|
|
103
103
|
*/
|
|
104
104
|
export declare function runFresh(facetMgr: FacetManager, code: string, opts: RunFreshOpts): Promise<RunFreshResult>;
|
|
105
105
|
/**
|
|
106
|
-
* BACKWARD-COMPAT shim. The
|
|
106
|
+
* BACKWARD-COMPAT shim. The child-process isolation design's `runNodeScript` is now an
|
|
107
107
|
* alias for `runFresh` so the call sites in src/session/init.ts don't
|
|
108
108
|
* need to change in this commit.
|
|
109
109
|
*/
|
|
@@ -187,7 +187,7 @@ export async function runFresh(facetMgr, code, opts) {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
|
-
* BACKWARD-COMPAT shim. The
|
|
190
|
+
* BACKWARD-COMPAT shim. The child-process isolation design's `runNodeScript` is now an
|
|
191
191
|
* alias for `runFresh` so the call sites in src/session/init.ts don't
|
|
192
192
|
* need to change in this commit.
|
|
193
193
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-shims.d.ts","sourceRoot":"","sources":["../../src/runtime/node-shims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA2BH,wBAAgB,iBAAiB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"node-shims.d.ts","sourceRoot":"","sources":["../../src/runtime/node-shims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA2BH,wBAAgB,iBAAiB,IAAI,MAAM,CAu4F1C"}
|
|
@@ -100,7 +100,6 @@ __pathMod.posix = __pathMod;
|
|
|
100
100
|
// posix implementation is functionally correct for any path content the
|
|
101
101
|
// workers will ever see. Aliasing posix to win32 satisfies the structural
|
|
102
102
|
// contract without spawning a separate code path. See
|
|
103
|
-
// audit/sections/X5Z5-build-retro.md §3.
|
|
104
103
|
__pathMod.win32 = __pathMod;
|
|
105
104
|
|
|
106
105
|
// ═══════════════════════════════════════════════════════════════════════
|
|
@@ -172,7 +171,6 @@ const __fsMod = (() => {
|
|
|
172
171
|
// Pre-fix the Uint8Array branch UTF-8-decoded the bytes to a string,
|
|
173
172
|
// which mangled every byte ≥ 0x80 to U+FFFD (3-byte EF BF BD on the
|
|
174
173
|
// re-encode), corrupting all binary fs writes. See
|
|
175
|
-
// /workspace/.seal-internal/2026-05-10-binary-fs/.
|
|
176
174
|
function _isBytes(v) { return v instanceof Uint8Array; }
|
|
177
175
|
// Length in bytes regardless of shape — used by statSync's size field
|
|
178
176
|
// and the bundle-cap accounting on the host side.
|
|
@@ -205,7 +203,6 @@ const __fsMod = (() => {
|
|
|
205
203
|
// that failed the startsWith('/') guard below and got misrouted via
|
|
206
204
|
// path.resolve(cwd, 'file:///…') → corrupt path → ENOENT (verify-90993b3
|
|
207
205
|
// §3 bucket O: vite). Strip 'file://' and unwrap URL instances first.
|
|
208
|
-
// See audit/probes/x5npqo/functional/o-fs-url.mjs.
|
|
209
206
|
let s;
|
|
210
207
|
if (p && typeof p === "object" && p.protocol === "file:" && typeof p.pathname === "string") {
|
|
211
208
|
// URL instance — pathname is already a POSIX path with leading /
|
|
@@ -321,7 +318,6 @@ const __fsMod = (() => {
|
|
|
321
318
|
// the O(N) bundle-prefix scan. The manifest is uncapped and always
|
|
322
319
|
// reflects the real directory shape, even when the file content for
|
|
323
320
|
// a directory's contents was excluded by the 4 MiB / 500-file content
|
|
324
|
-
// bundle cap. (facet-manager.ts:453, audit/sections/W2.5-rootcause.md)
|
|
325
321
|
if (__vfsManifest) {
|
|
326
322
|
if (k in __vfsManifest) return true;
|
|
327
323
|
// Path may be a file listed by its parent's manifest entry.
|
|
@@ -395,7 +391,6 @@ const __fsMod = (() => {
|
|
|
395
391
|
// listings. The legacy bundle-prefix scan is kept as a fallback for paths
|
|
396
392
|
// not in the manifest (e.g. dirs created at exec time via mkdirSync) and
|
|
397
393
|
// is unioned with __vfsWrites so newly-written files become visible.
|
|
398
|
-
// (facet-manager.ts:453, audit/sections/W2.5-rootcause.md)
|
|
399
394
|
function readdirSync(p, opts) {
|
|
400
395
|
const absPath = _resolve(p);
|
|
401
396
|
const k = _strip(absPath);
|
|
@@ -499,7 +494,6 @@ const __fsMod = (() => {
|
|
|
499
494
|
// ── realpathSync (X.5-T per X5Z5-plan §4.3 + X526b-retro §3.1) ──
|
|
500
495
|
// VFS has no symlinks; identity-resolve to the absolute path. The
|
|
501
496
|
// .native static is required by TypeScript's getNodeSystem at
|
|
502
|
-
// typescript.js:8291 (see audit/probes/x5t/functional/realpath-native-defined.mjs).
|
|
503
497
|
function realpathSync(p, opts) { return _resolve(String(p)); }
|
|
504
498
|
realpathSync.native = realpathSync;
|
|
505
499
|
|
|
@@ -1000,7 +994,6 @@ const __eventsMod = (() => {
|
|
|
1000
994
|
// never runs on that target so \`_e\` is undefined. The lazy guard
|
|
1001
995
|
// \`(this._e ??= {})\` matches Node's behaviour (Node initializes
|
|
1002
996
|
// _events on first use too) and makes mixin-copy patterns safe.
|
|
1003
|
-
// See audit/sections/X5Z5-build-retro.md §3.
|
|
1004
997
|
class EE {
|
|
1005
998
|
constructor() { this._e = {}; this._maxListeners = 10; }
|
|
1006
999
|
on(n, fn) { const e = (this._e ??= {}); (e[n] = e[n] || []).push(fn); return this; }
|
|
@@ -1056,8 +1049,6 @@ const __utilMod = {
|
|
|
1056
1049
|
// util.types.isProxy (lib/web/fetch/headers.js). Expanding to the
|
|
1057
1050
|
// 17-method shape below mirrors Node.js's util.types surface for the
|
|
1058
1051
|
// common cases; isProxy returns false (no userland Proxy detection).
|
|
1059
|
-
// See audit/probes/x5npqo/investigate/Q-undici-types-survey.md and
|
|
1060
|
-
// audit/probes/x5npqo/functional/q-util-types.mjs.
|
|
1061
1052
|
types: {
|
|
1062
1053
|
isDate: (v) => v instanceof Date,
|
|
1063
1054
|
isRegExp: (v) => v instanceof RegExp,
|
|
@@ -1086,7 +1077,6 @@ const __utilMod = {
|
|
|
1086
1077
|
// both throw 'Object prototype may only be an Object or null: undefined'
|
|
1087
1078
|
// — same surface as Defect A but for shim namespaces with no synthetic
|
|
1088
1079
|
// .prototype. Mirrors the canonical inherits_browser.js fallback.
|
|
1089
|
-
// See audit/sections/X5Z5-plan.md §1.3 Defensive fix.
|
|
1090
1080
|
if (s == null || s.prototype == null) return;
|
|
1091
1081
|
c.super_ = s;
|
|
1092
1082
|
c.prototype = Object.create(s.prototype, { constructor: { value: c, enumerable: false, writable: true, configurable: true } });
|
|
@@ -1179,8 +1169,6 @@ const __utilMod = {
|
|
|
1179
1169
|
//
|
|
1180
1170
|
// where the rolldown-CJS polyfill for import.meta.url evaluates to literal
|
|
1181
1171
|
// null (the bare word) in our facet (no document, no location, polyfill doesn't reach
|
|
1182
|
-
// __filename for CJS-loaded modules — see audit/sections/X5M-plan.md §1
|
|
1183
|
-
// M-3 + audit/probes/x5m/investigate/vite-url-stack{5,A,B,D}.txt).
|
|
1184
1172
|
//
|
|
1185
1173
|
// workerd's URL constructor strict-rejects null/undefined base, throwing
|
|
1186
1174
|
// "Invalid URL string." at module top-level eval — breaks require('vite').
|
|
@@ -1206,7 +1194,6 @@ const __utilMod = {
|
|
|
1206
1194
|
// (set+restored by __loadModule per call). When set, the fallback becomes
|
|
1207
1195
|
// "file:///" + __currentModulePath so relative URLs resolve against
|
|
1208
1196
|
// the real on-VFS module location — restoring proper import.meta.url
|
|
1209
|
-
// semantics for ESM-transformed CJS. See audit/sections/X5M3-plan.md §3.
|
|
1210
1197
|
(() => {
|
|
1211
1198
|
const _Orig = globalThis.URL;
|
|
1212
1199
|
class _Shim extends _Orig {
|
|
@@ -2198,8 +2185,6 @@ builtins.stream = __streamMod;
|
|
|
2198
2185
|
// \`class ClientSideCacheProvider extends stream_1.EventEmitter {}\` where
|
|
2199
2186
|
// \`stream_1 = require("stream")\`. Without this re-export, \`stream_1.EventEmitter\`
|
|
2200
2187
|
// is undefined and \`class … extends undefined\` throws "Class extends value
|
|
2201
|
-
// undefined is not a constructor or null". See audit/sections/X5R-plan.md §3
|
|
2202
|
-
// + audit/probes/x5r/functional/r-stream-eventemitter-shape.mjs.
|
|
2203
2188
|
// Idempotent guard so a future streams.ts revision that already exposes
|
|
2204
2189
|
// EventEmitter doesn't get clobbered.
|
|
2205
2190
|
if (!__streamMod.EventEmitter) __streamMod.EventEmitter = __eventsMod;
|
|
@@ -2347,7 +2332,6 @@ builtins.perf_hooks = { performance: globalThis.performance || { now:()=>Date.no
|
|
|
2347
2332
|
// snapshots, so 'false' is the correct answer. Other v8 introspection
|
|
2348
2333
|
// APIs (cachedDataVersionTag, getHeapStatistics, etc.) return inert
|
|
2349
2334
|
// values that satisfy the shape contract without offering real data.
|
|
2350
|
-
// See audit/sections/X5Z5-build-retro.md §3.
|
|
2351
2335
|
builtins.v8 = {
|
|
2352
2336
|
startupSnapshot: {
|
|
2353
2337
|
isBuildingSnapshot: () => false,
|
|
@@ -2501,7 +2485,6 @@ builtins["node:dns/promises"] = builtins["dns/promises"];
|
|
|
2501
2485
|
// subpath missed. Mirror the dns/promises (M-2) pattern. The
|
|
2502
2486
|
// builtins.util.types object is the X.5-Q-expanded 17-method polyfill
|
|
2503
2487
|
// (see line 707), sufficient for undici@7.25.0 + undici@8.2.0.
|
|
2504
|
-
// See audit/probes/x5npqo/investigate/Q-undici-types-survey.md.
|
|
2505
2488
|
builtins["util/types"] = builtins.util.types;
|
|
2506
2489
|
builtins["node:util/types"] = builtins["util/types"];
|
|
2507
2490
|
|
|
@@ -2619,7 +2602,6 @@ function __resolveFile(base) {
|
|
|
2619
2602
|
// Emitted from src/_shared/exports-resolver.ts via getExportsResolverJS().
|
|
2620
2603
|
// Declares: resolveExports, resolveConditionValue, resolvePackageEntry,
|
|
2621
2604
|
// DEFAULT_ESM_CONDITIONS, DEFAULT_CJS_CONDITIONS.
|
|
2622
|
-
// See audit/sections/03-resolver-gaps.md §3.1 for the bug this fixes:
|
|
2623
2605
|
// the prior hand-rolled __resolvePkgEntry only honoured top-level
|
|
2624
2606
|
// require|default|import and dropped subpath maps, wildcards, nested
|
|
2625
2607
|
// conditions, the imports field, and null-target enforcement.
|
|
@@ -2806,7 +2788,6 @@ function __resolveImportsField(name, fromDir) {
|
|
|
2806
2788
|
// slot alignment while letting the body's binding win.
|
|
2807
2789
|
//
|
|
2808
2790
|
// Symmetric for \`__filename\` because open@10's idiom often emits both.
|
|
2809
|
-
// See audit/sections/X5S-plan.md §3, audit/probes/x5s/investigation/repro.mjs.
|
|
2810
2791
|
function __mkCompiledFn(code) {
|
|
2811
2792
|
const reFn = /(?:^|\\n|;)\\s*(?:const|let|var)\\s+__filename\\s*=/m;
|
|
2812
2793
|
const reDn = /(?:^|\\n|;)\\s*(?:const|let|var)\\s+__dirname\\s*=/m;
|
|
@@ -2865,7 +2846,6 @@ function __loadModule(resolvedPath) {
|
|
|
2865
2846
|
// relative URLs against the real module location — synthesizing
|
|
2866
2847
|
// import.meta.url semantics for ESM that esbuild CJS-emit reduced to
|
|
2867
2848
|
// const import_meta = {}. Save+restore for recursive __loadModule.
|
|
2868
|
-
// See audit/sections/X5M3-plan.md §3.
|
|
2869
2849
|
const __prevModulePath = globalThis.__currentModulePath;
|
|
2870
2850
|
globalThis.__currentModulePath = resolvedPath;
|
|
2871
2851
|
try {
|
|
@@ -2910,7 +2890,6 @@ function __loadModule(resolvedPath) {
|
|
|
2910
2890
|
// W3.5 Fix C: if the file was in the bundle but its pre-compile
|
|
2911
2891
|
// failed at facet startup, surface the original SyntaxError
|
|
2912
2892
|
// instead of the misleading "file was not pre-bundled" text.
|
|
2913
|
-
// See audit/sections/W3.5-plan.md §1 Failure 2.
|
|
2914
2893
|
const normalizedPath2 = resolvedPath.replace(/^\\/+/, "");
|
|
2915
2894
|
const compileErr =
|
|
2916
2895
|
(typeof __compileFailures !== "undefined" && __compileFailures &&
|
|
@@ -2952,7 +2931,6 @@ function __resolveFrom(id, fromDir) {
|
|
|
2952
2931
|
// fastify via ajv/dist/compile/jtd, redis via @redis/client/dist/lib/client).
|
|
2953
2932
|
// Normalize so they take the relative-resolve branch (which then probes
|
|
2954
2933
|
// index.js / package.json#main via __resolveFile). See
|
|
2955
|
-
// audit/probes/x5npqo/functional/p-parent-dir.mjs.
|
|
2956
2934
|
if (id === ".") id = "./";
|
|
2957
2935
|
else if (id === "..") id = "../";
|
|
2958
2936
|
// Relative path
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* package-manager.ts — `nimbus install <runtime>` shell verb.
|
|
3
3
|
*
|
|
4
|
-
* Implements True-OS Wave-3's package-manager surface per
|
|
5
|
-
* /workspace/.seal-internal/2026-05-10-true-os/plan.md §2.
|
|
6
|
-
*
|
|
7
4
|
* Subcommands (all under `nimbus install`):
|
|
8
5
|
*
|
|
9
6
|
* nimbus install <name> install latest of <name>
|
|
@@ -13,7 +10,7 @@
|
|
|
13
10
|
* nimbus install --reinstall <name> force refetch
|
|
14
11
|
* nimbus uninstall <name> remove installed runtime
|
|
15
12
|
*
|
|
16
|
-
* Per-user
|
|
13
|
+
* Per-user VFS layout:
|
|
17
14
|
*
|
|
18
15
|
* ~/.nimbus/runtimes/<name>/<version>/
|
|
19
16
|
* manifest.json
|
|
@@ -26,9 +23,7 @@
|
|
|
26
23
|
* each `entrypoints[].binName` as a shell command pointing at the
|
|
27
24
|
* named runner factory.
|
|
28
25
|
*
|
|
29
|
-
*
|
|
30
|
-
* - NO setTimeout / NO retry / NO defensive-catch in dispatch path.
|
|
31
|
-
* - Errors throw + bubble up to the user as a single diagnostic line.
|
|
26
|
+
* Errors throw and bubble up to the user as a single diagnostic line.
|
|
32
27
|
*/
|
|
33
28
|
import { type RuntimeCatalogEnv, type RuntimeManifest } from './runtime-catalog.js';
|
|
34
29
|
import type { SqliteVFS } from '../vfs/sqlite-vfs.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manager.d.ts","sourceRoot":"","sources":["../../src/runtime/package-manager.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"package-manager.d.ts","sourceRoot":"","sources":["../../src/runtime/package-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,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,CAAC;IAC3B,OAAO,IAAI,MAAM,CAAC;CACnB,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAMpF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,GAAG,EAAE,iBAAiB,CAAC;IACvB,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;+CAC2C;IAC3C,OAAO,IAAI,MAAM,CAAC;CACnB,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,CAoBhC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* package-manager.ts — `nimbus install <runtime>` shell verb.
|
|
3
3
|
*
|
|
4
|
-
* Implements True-OS Wave-3's package-manager surface per
|
|
5
|
-
* /workspace/.seal-internal/2026-05-10-true-os/plan.md §2.
|
|
6
|
-
*
|
|
7
4
|
* Subcommands (all under `nimbus install`):
|
|
8
5
|
*
|
|
9
6
|
* nimbus install <name> install latest of <name>
|
|
@@ -13,7 +10,7 @@
|
|
|
13
10
|
* nimbus install --reinstall <name> force refetch
|
|
14
11
|
* nimbus uninstall <name> remove installed runtime
|
|
15
12
|
*
|
|
16
|
-
* Per-user
|
|
13
|
+
* Per-user VFS layout:
|
|
17
14
|
*
|
|
18
15
|
* ~/.nimbus/runtimes/<name>/<version>/
|
|
19
16
|
* manifest.json
|
|
@@ -26,9 +23,7 @@
|
|
|
26
23
|
* each `entrypoints[].binName` as a shell command pointing at the
|
|
27
24
|
* named runner factory.
|
|
28
25
|
*
|
|
29
|
-
*
|
|
30
|
-
* - NO setTimeout / NO retry / NO defensive-catch in dispatch path.
|
|
31
|
-
* - Errors throw + bubble up to the user as a single diagnostic line.
|
|
26
|
+
* Errors throw and bubble up to the user as a single diagnostic line.
|
|
32
27
|
*/
|
|
33
28
|
import { fetchCatalog, fetchManifest, fetchBlob } from './runtime-catalog.js';
|
|
34
29
|
/** Map of runner-key → factory. Populated by init.ts before install. */
|
|
@@ -219,7 +219,7 @@ export function handleProcessesListRequest(processTable, processLogs) {
|
|
|
219
219
|
command: p.command,
|
|
220
220
|
state: p.state,
|
|
221
221
|
exitCode: p.exitCode,
|
|
222
|
-
//
|
|
222
|
+
// child-process isolation gap #2: prefer the explicit longRunning flag set by
|
|
223
223
|
// FacetManager.spawn; fall back to the command-string heuristic
|
|
224
224
|
// for legacy entries that didn't go through that primitive.
|
|
225
225
|
longRunning: p.longRunning === true || LONG_RUNNING_CMD_RE.test(p.command),
|
|
@@ -63,7 +63,6 @@ export interface ProcessExitInfo {
|
|
|
63
63
|
reason?: string;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* W9 PersistAdapter — see audit/sections/W9-plan.md §3.1. Implementations
|
|
67
66
|
* live in NimbusSession (production: ctx.storage.sql) and in test
|
|
68
67
|
* harnesses (functional probes: in-memory mock).
|
|
69
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-logs.d.ts","sourceRoot":"","sources":["../../src/runtime/process-logs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5C,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,CAAC;CAC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E,MAAM,CAAC;QAC5B,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;KACzB;IAmBD,sDAAsD;IACtD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI;IAQ7F,OAAO,CAAC,YAAY;IAiCpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAQ;IAsDhB;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,YAAY;IAyCpB,kDAAkD;IAClD,IAAI,KAAK;;;;;;;;MAoBR;IAED,OAAO,CAAC,MAAM;IA8Bd,OAAO,CAAC,OAAO;CAMhB"}
|
|
@@ -16,7 +16,7 @@ export interface ProcessEntry {
|
|
|
16
16
|
exitCode: number | null;
|
|
17
17
|
startTime: number;
|
|
18
18
|
endTime: number | null;
|
|
19
|
-
/**
|
|
19
|
+
/** child-process isolation: explicit long-running flag set by FacetManager.spawn
|
|
20
20
|
* when a script is forked to a long-lived Worker Loader (vite,
|
|
21
21
|
* http.listen, --watch, …). Distinct from the regex heuristic in
|
|
22
22
|
* process-logs-api.ts:LONG_RUNNING_CMD_RE — when set, the API
|
|
@@ -43,7 +43,7 @@ export declare class ProcessTable {
|
|
|
43
43
|
* disagrees with the ring-buffer footer that still says
|
|
44
44
|
* "[process killed: killed]".
|
|
45
45
|
*/
|
|
46
|
-
/**
|
|
46
|
+
/** child-process isolation: mark an existing entry as long-running. Idempotent. */
|
|
47
47
|
setLongRunning(pid: number): void;
|
|
48
48
|
exit(pid: number, exitCode: number): void;
|
|
49
49
|
/** Mark a process as killed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-table.d.ts","sourceRoot":"","sources":["../../src/runtime/process-table.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,YAA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,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,UAAU,CAA6B;IAE/C,iDAAiD;IACjD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,YAAY;IAmBjE;;;;;;;;;;;;;OAaG;IACH,mFAAmF;IACnF,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKjC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IASzC,gCAAgC;IAChC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAS1B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAI1C,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAKvD,UAAU,IAAI,YAAY,EAAE;IAI5B,MAAM,IAAI,YAAY,EAAE;IAIxB,sDAAsD;IACtD,IAAI,CAAC,MAAM,SAAS,GAAG,MAAM;IAa7B,IAAI,KAAK;;;;;;MASR;CACF"}
|
|
@@ -42,7 +42,7 @@ export class ProcessTable {
|
|
|
42
42
|
* disagrees with the ring-buffer footer that still says
|
|
43
43
|
* "[process killed: killed]".
|
|
44
44
|
*/
|
|
45
|
-
/**
|
|
45
|
+
/** child-process isolation: mark an existing entry as long-running. Idempotent. */
|
|
46
46
|
setLongRunning(pid) {
|
|
47
47
|
const entry = this.processes.get(pid);
|
|
48
48
|
if (entry)
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* result.
|
|
10
10
|
* 2. Adapter wiring (banner, push, close, ps1/ps2 prompts).
|
|
11
11
|
*
|
|
12
|
-
* Design per /workspace/.seal-internal/2026-05-11-repl-plan/plan.md §5:
|
|
13
12
|
* - State persistence: same NimbusLoaderPool reference held across
|
|
14
13
|
* submits → same child-facet isolate → globalThis.__nimbusPyodideInstance
|
|
15
14
|
* persists.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"python-repl.d.ts","sourceRoot":"","sources":["../../src/runtime/python-repl.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"python-repl.d.ts","sourceRoot":"","sources":["../../src/runtime/python-repl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,yDAAyD;AACzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAC;IACvB,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAwhBD;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAOzE"}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* result.
|
|
10
10
|
* 2. Adapter wiring (banner, push, close, ps1/ps2 prompts).
|
|
11
11
|
*
|
|
12
|
-
* Design per /workspace/.seal-internal/2026-05-11-repl-plan/plan.md §5:
|
|
13
12
|
* - State persistence: same NimbusLoaderPool reference held across
|
|
14
13
|
* submits → same child-facet isolate → globalThis.__nimbusPyodideInstance
|
|
15
14
|
* persists.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* python-runner.ts — Pyodide v0.29.4 runner (
|
|
2
|
+
* python-runner.ts — Pyodide v0.29.4 runner (runtime package manager v2 / Pyodide v1).
|
|
3
3
|
*
|
|
4
|
-
* v1 scope per /workspace/.seal-internal/2026-05-10-pyodide-research/plan.md
|
|
5
4
|
* D1-D7:
|
|
6
5
|
* - `python --version` / `python -c '<code>'` / `python script.py`
|
|
7
6
|
* - stdlib subset (full python_stdlib.zip ships)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"python-runner.d.ts","sourceRoot":"","sources":["../../src/runtime/python-runner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"python-runner.d.ts","sourceRoot":"","sources":["../../src/runtime/python-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,QAAQ,EAAE,YAAY,CAAC;IACvB,GAAG,EAAE,SAAS,CAAC;CAChB,GAAG,CAAC,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,KAC7F,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,CA2HhC;AAkPD;;;;;;GAMG;AAKH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAyFhF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* python-runner.ts — Pyodide v0.29.4 runner (
|
|
2
|
+
* python-runner.ts — Pyodide v0.29.4 runner (runtime package manager v2 / Pyodide v1).
|
|
3
3
|
*
|
|
4
|
-
* v1 scope per /workspace/.seal-internal/2026-05-10-pyodide-research/plan.md
|
|
5
4
|
* D1-D7:
|
|
6
5
|
* - `python --version` / `python -c '<code>'` / `python script.py`
|
|
7
6
|
* - stdlib subset (full python_stdlib.zip ships)
|
|
@@ -487,7 +486,6 @@ export function buildPyodidePreamble(asmJsSrc, stdlibB64) {
|
|
|
487
486
|
// bootstrap promise never resolves → workerd cancels the request as
|
|
488
487
|
// hung. (This v2 redesign was directly motivated by the
|
|
489
488
|
// /tmp/pyodide-smoketest finding — see
|
|
490
|
-
// /workspace/.seal-internal/2026-05-11-pyodide-v2/smoketest-result.md.)
|
|
491
489
|
//
|
|
492
490
|
// Architecture:
|
|
493
491
|
//
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* repl-session.ts — substrate for interactive REPL sessions.
|
|
3
3
|
*
|
|
4
|
-
* Per /workspace/.seal-internal/2026-05-11-repl-plan/plan.md §§2-4:
|
|
5
4
|
* Layer 1: long-lived runtime via repeated execute() into a cached
|
|
6
5
|
* child-facet isolate (state persists on globalThis).
|
|
7
6
|
* Layer 2: stdin routing via WebSocketTerminal.attachRepl().
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl-session.d.ts","sourceRoot":"","sources":["../../src/runtime/repl-session.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"repl-session.d.ts","sourceRoot":"","sources":["../../src/runtime/repl-session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;mCAC+B;IAC/B,MAAM,IAAI,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5C;6DACyD;IACzD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,yCAAyC;IACzC,GAAG,EA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IAU1E;4EACwE;IAClE,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;IAyD5B;;;;;;OAMG;YACW,UAAU;IASxB;;qCAEiC;YACnB,WAAW;IA6EzB,qDAAqD;YACvC,UAAU;IA8ExB,6CAA6C;IAC7C,OAAO,CAAC,SAAS;IAMjB,mDAAmD;IACnD,OAAO,CAAC,WAAW;IAUnB,gEAAgE;IAChE,OAAO,CAAC,kBAAkB;IAW1B;;8DAE0D;IAC1D,OAAO,CAAC,iBAAiB;IAIzB,mEAAmE;YACrD,UAAU;CAYzB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* repl-session.ts — substrate for interactive REPL sessions.
|
|
3
3
|
*
|
|
4
|
-
* Per /workspace/.seal-internal/2026-05-11-repl-plan/plan.md §§2-4:
|
|
5
4
|
* Layer 1: long-lived runtime via repeated execute() into a cached
|
|
6
5
|
* child-facet isolate (state persists on globalThis).
|
|
7
6
|
* Layer 2: stdin routing via WebSocketTerminal.attachRepl().
|
|
@@ -288,7 +287,7 @@ export class ReplSession {
|
|
|
288
287
|
// as three discrete WS frames in deterministic order. Without
|
|
289
288
|
// flushNow() between them, the 5 ms coalescer in WebSocketTerminal
|
|
290
289
|
// joins them into one `{type:'output'}` payload — probes asserting
|
|
291
|
-
// frame ordering see false-
|
|
290
|
+
// frame ordering see false-failing, and xterm renders correctly only
|
|
292
291
|
// because string-order is preserved. flushNow() guarantees both
|
|
293
292
|
// are true: bytes-in-order AND frame-boundary-after-each-stream.
|
|
294
293
|
if (result.kind === 'output') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require-resolver.d.ts","sourceRoot":"","sources":["../../src/runtime/require-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"require-resolver.d.ts","sourceRoot":"","sources":["../../src/runtime/require-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAobtD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,SAAS,EACd,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE,MAAM,GACjB,cAAc,CAmOhB"}
|