@nimbus-sh/worker 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 +46 -43
- package/dist/_shared/preview-host.d.ts +14 -1
- package/dist/_shared/preview-host.d.ts.map +1 -1
- package/dist/_shared/preview-host.js +28 -3
- package/dist/_shared/session-router.d.ts +43 -0
- package/dist/_shared/session-router.d.ts.map +1 -1
- package/dist/_shared/session-router.js +59 -12
- package/dist/facets/durable-images.d.ts +50 -0
- package/dist/facets/durable-images.d.ts.map +1 -0
- package/dist/facets/durable-images.js +75 -0
- package/dist/facets/durable-slots.d.ts +45 -0
- package/dist/facets/durable-slots.d.ts.map +1 -0
- package/dist/facets/durable-slots.js +94 -0
- package/dist/facets/esbuild-transform.d.ts +10 -0
- package/dist/facets/esbuild-transform.d.ts.map +1 -0
- package/dist/facets/esbuild-transform.js +36 -0
- package/dist/facets/manager.d.ts +160 -5
- package/dist/facets/manager.d.ts.map +1 -1
- package/dist/facets/manager.js +554 -97
- package/dist/git/commands.d.ts +22 -0
- package/dist/git/commands.d.ts.map +1 -1
- package/dist/git/commands.js +431 -424
- package/dist/git-bundle.generated.d.ts +2 -2
- package/dist/git-bundle.generated.d.ts.map +1 -1
- package/dist/git-bundle.generated.js +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/node-shims-artifact.generated.js +3 -3
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +59 -2
- package/dist/router/public-directory-do.d.ts +17 -0
- package/dist/router/public-directory-do.d.ts.map +1 -0
- package/dist/router/public-directory-do.js +16 -0
- package/dist/router/public-directory.d.ts +75 -0
- package/dist/router/public-directory.d.ts.map +1 -0
- package/dist/router/public-directory.js +115 -0
- package/dist/router/remote-api.d.ts +9 -1
- package/dist/router/remote-api.d.ts.map +1 -1
- package/dist/router/remote-api.js +19 -2
- package/dist/runtime/node-shims.d.ts +4 -1
- package/dist/runtime/node-shims.d.ts.map +1 -1
- package/dist/runtime/node-shims.js +324 -6
- package/dist/session/agent.d.ts +11 -0
- package/dist/session/agent.d.ts.map +1 -1
- package/dist/session/helpers.js +1 -1
- package/dist/session/init-phases.d.ts +17 -23
- package/dist/session/init-phases.d.ts.map +1 -1
- package/dist/session/init-phases.js +17 -41
- package/dist/session/init.d.ts.map +1 -1
- package/dist/session/init.js +19 -15
- package/dist/session/keys.d.ts +8 -0
- package/dist/session/keys.d.ts.map +1 -1
- package/dist/session/keys.js +8 -0
- package/dist/session/nimbus-session.d.ts +29 -4
- package/dist/session/nimbus-session.d.ts.map +1 -1
- package/dist/session/nimbus-session.js +62 -9
- package/dist/session/port-capability.d.ts +95 -8
- package/dist/session/port-capability.d.ts.map +1 -1
- package/dist/session/port-capability.js +165 -8
- package/dist/session/programmatic.d.ts +50 -2
- package/dist/session/programmatic.d.ts.map +1 -1
- package/dist/session/programmatic.js +104 -6
- package/dist/session/routes.d.ts +17 -0
- package/dist/session/routes.d.ts.map +1 -1
- package/dist/session/routes.js +92 -25
- package/dist/session/rpc.d.ts.map +1 -1
- package/dist/session/rpc.js +14 -4
- package/dist/session/shell-socket.d.ts +76 -0
- package/dist/session/shell-socket.d.ts.map +1 -0
- package/dist/session/shell-socket.js +172 -0
- package/dist/session/start-real-vite.js +1 -1
- package/dist/session/supervisor-op.d.ts +5 -0
- package/dist/session/supervisor-op.d.ts.map +1 -0
- package/dist/session/supervisor-op.js +74 -0
- package/dist/session/supervisor-rpc.d.ts +6 -10
- package/dist/session/supervisor-rpc.d.ts.map +1 -1
- package/dist/session/supervisor-rpc.js +91 -70
- package/dist/session/ws.d.ts.map +1 -1
- package/dist/session/ws.js +19 -4
- package/package.json +4 -4
- package/public/_assets/runtime/{node-shims-fea906843f6d594e.js → node-shims-9e1380d9ee430fcc.js} +320 -5
- package/public/s/index.html +101 -5
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* facets/durable-slots.ts — the durable application's facet-name allocator.
|
|
3
|
+
*
|
|
4
|
+
* A durable application's storage has to answer under ONE facet name for its
|
|
5
|
+
* whole life: abort ends the process, not the store, so relaunch and eviction
|
|
6
|
+
* re-attach the same SQLite — which is only true while the name is stable.
|
|
7
|
+
* The ephemeral slot book in `workerd-facet-host.ts` cannot supply it: it is
|
|
8
|
+
* in-memory, and a fresh incarnation restarts `proc-slot-<n>` numbering from
|
|
9
|
+
* zero, so a durable name needs a store of its own — the DO storage this file
|
|
10
|
+
* keeps it in.
|
|
11
|
+
*
|
|
12
|
+
* The rows:
|
|
13
|
+
*
|
|
14
|
+
* durable-slot:next — the lowest never-issued slot number. Minting burns
|
|
15
|
+
* one facet ID forever, so a freed name goes to
|
|
16
|
+
* `free`, never back to `next`.
|
|
17
|
+
* durable-slot:free — slot numbers whose applications were removed.
|
|
18
|
+
* durable-slot:<owner> — the owner's pinned slot. Written once, ever;
|
|
19
|
+
* re-read on every relaunch and re-drive.
|
|
20
|
+
*
|
|
21
|
+
* Names carry the `app-slot-` prefix, disjoint by construction from the
|
|
22
|
+
* ephemeral book's `proc-slot-` — the two namespaces share the facet-ID
|
|
23
|
+
* budget, and a collision would hand one application's retained storage to
|
|
24
|
+
* another process.
|
|
25
|
+
*/
|
|
26
|
+
import { DURABLE_SLOT_KEY_PREFIX } from '../session/keys.js';
|
|
27
|
+
import { DURABLE_FACET_NAME_PREFIX } from '@nimbus-sh/fabric/workerd-facet-host.js';
|
|
28
|
+
import { facetNameCountDurable, recordFacetNameMinted } from '@nimbus-sh/fabric/budgets.js';
|
|
29
|
+
const NEXT_KEY = `${DURABLE_SLOT_KEY_PREFIX}next`;
|
|
30
|
+
const FREE_KEY = `${DURABLE_SLOT_KEY_PREFIX}free`;
|
|
31
|
+
const ownerKey = (owner) => `${DURABLE_SLOT_KEY_PREFIX}${owner}`;
|
|
32
|
+
/** The facet name a durable slot number names. */
|
|
33
|
+
export function durableFacetName(slot) {
|
|
34
|
+
return `${DURABLE_FACET_NAME_PREFIX}${slot}`;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The owner's facet name, minted on first call and pinned for the
|
|
38
|
+
* application's life. The owner key, counter and free list move inside one
|
|
39
|
+
* transaction, so a concurrent spawn cannot split the claim, and a re-read
|
|
40
|
+
* after a reset — or after eviction — answers the same name.
|
|
41
|
+
*
|
|
42
|
+
* A fresh name records the mint against the lifetime facet-ID ledger so the
|
|
43
|
+
* budget a durable spawn consumes is counted the same way an ephemeral one's
|
|
44
|
+
* is.
|
|
45
|
+
*/
|
|
46
|
+
export async function acquireDurableFacetSlot(ctx, owner) {
|
|
47
|
+
let minted = false;
|
|
48
|
+
const slot = await ctx.storage.transaction(async (txn) => {
|
|
49
|
+
const held = await txn.get(ownerKey(owner));
|
|
50
|
+
if (typeof held === 'number')
|
|
51
|
+
return held;
|
|
52
|
+
const free = await txn.get(FREE_KEY);
|
|
53
|
+
const freeList = Array.isArray(free) ? free.filter((n) => typeof n === 'number') : [];
|
|
54
|
+
if (freeList.length > 0) {
|
|
55
|
+
freeList.sort((a, b) => a - b);
|
|
56
|
+
const reused = freeList.shift();
|
|
57
|
+
await txn.put(FREE_KEY, freeList);
|
|
58
|
+
await txn.put(ownerKey(owner), reused);
|
|
59
|
+
return reused;
|
|
60
|
+
}
|
|
61
|
+
const next = await txn.get(NEXT_KEY);
|
|
62
|
+
const slot = typeof next === 'number' ? next : 0;
|
|
63
|
+
await txn.put(NEXT_KEY, slot + 1);
|
|
64
|
+
await txn.put(ownerKey(owner), slot);
|
|
65
|
+
minted = true;
|
|
66
|
+
return slot;
|
|
67
|
+
});
|
|
68
|
+
if (minted) {
|
|
69
|
+
// The ledger counts EVERY name ever minted on this DO; the durable slot
|
|
70
|
+
// number alone is not that count (proc-slot names share the budget), so
|
|
71
|
+
// the record is the adopted total advanced by one — never an undercount.
|
|
72
|
+
recordFacetNameMinted(ctx, await facetNameCountDurable(ctx) + 1);
|
|
73
|
+
}
|
|
74
|
+
return durableFacetName(slot);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Hand the owner's slot back to the free list and drop its pin — the last
|
|
78
|
+
* step of explicit removal, after the facet's SQLite is already gone. Answers
|
|
79
|
+
* the freed name, or null when the owner held nothing.
|
|
80
|
+
*/
|
|
81
|
+
export async function freeDurableFacetSlot(ctx, owner) {
|
|
82
|
+
return ctx.storage.transaction(async (txn) => {
|
|
83
|
+
const held = await txn.get(ownerKey(owner));
|
|
84
|
+
if (typeof held !== 'number')
|
|
85
|
+
return null;
|
|
86
|
+
await txn.delete(ownerKey(owner));
|
|
87
|
+
const free = await txn.get(FREE_KEY);
|
|
88
|
+
const freeList = Array.isArray(free) ? free.filter((n) => typeof n === 'number') : [];
|
|
89
|
+
freeList.push(held);
|
|
90
|
+
freeList.sort((a, b) => a - b);
|
|
91
|
+
await txn.put(FREE_KEY, freeList);
|
|
92
|
+
return durableFacetName(held);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type EsbuildTransformOptions, type TransformResult } from '@nimbus-sh/core/runtime/esbuild-service.js';
|
|
2
|
+
import type { DurableObject } from 'cloudflare:workers';
|
|
3
|
+
import type { WorkerCode } from '@nimbus-sh/fabric/vendor/types.js';
|
|
4
|
+
export declare const ESBUILD_TRANSFORM_WORKER_ID: string;
|
|
5
|
+
export type EsbuildTransformFacetRpc = DurableObject & {
|
|
6
|
+
transform(code: string, options: EsbuildTransformOptions): Promise<TransformResult>;
|
|
7
|
+
};
|
|
8
|
+
/** Slim Worker Loader module whose DO class owns the esbuild wasm heap. */
|
|
9
|
+
export declare function esbuildTransformWorkerCode(wasmBytes: ArrayBuffer): WorkerCode;
|
|
10
|
+
//# sourceMappingURL=esbuild-transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esbuild-transform.d.ts","sourceRoot":"","sources":["../../src/facets/esbuild-transform.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACrB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAMpE,eAAO,MAAM,2BAA2B,QAC+B,CAAC;AAExE,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG;IACrD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACrF,CAAC;AAEF,2EAA2E;AAC3E,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,WAAW,GAAG,UAAU,CA8B7E"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CF_COMPAT_DATE } from '@nimbus-sh/core/constants.js';
|
|
2
|
+
import { BUNDLER_VERSION, generateEsbuildTransformRuntimeSource, } from '@nimbus-sh/core/runtime/esbuild-service.js';
|
|
3
|
+
import { ESBUILD_NAME_GLOBAL_SHIM } from '@nimbus-sh/core/_shared/esbuild-facet-shim.js';
|
|
4
|
+
import { ESBUILD_WASM_JS_FN_BODY, ESBUILD_WASM_VERSION, } from '../esbuild-wasm-bundle.generated.js';
|
|
5
|
+
export const ESBUILD_TRANSFORM_WORKER_ID = `nimbus-esbuild-transform:${ESBUILD_WASM_VERSION}:${BUNDLER_VERSION}`;
|
|
6
|
+
/** Slim Worker Loader module whose DO class owns the esbuild wasm heap. */
|
|
7
|
+
export function esbuildTransformWorkerCode(wasmBytes) {
|
|
8
|
+
const source = [
|
|
9
|
+
'import { DurableObject } from "cloudflare:workers";',
|
|
10
|
+
'import wasmModule from "esbuild.wasm";',
|
|
11
|
+
`const esbuild = new Function(${JSON.stringify(ESBUILD_WASM_JS_FN_BODY)})();`,
|
|
12
|
+
ESBUILD_NAME_GLOBAL_SHIM,
|
|
13
|
+
generateEsbuildTransformRuntimeSource(),
|
|
14
|
+
'let initialized;',
|
|
15
|
+
'function ensureInitialized() {',
|
|
16
|
+
' initialized ||= esbuild.initialize({ wasmModule, worker: false });',
|
|
17
|
+
' return initialized;',
|
|
18
|
+
'}',
|
|
19
|
+
'export class EsbuildTransformFacet extends DurableObject {',
|
|
20
|
+
' async transform(code, options) {',
|
|
21
|
+
' await ensureInitialized();',
|
|
22
|
+
' return transformWithEsbuild(esbuild, code, options);',
|
|
23
|
+
' }',
|
|
24
|
+
'}',
|
|
25
|
+
].join('\n');
|
|
26
|
+
return {
|
|
27
|
+
compatibilityDate: CF_COMPAT_DATE,
|
|
28
|
+
compatibilityFlags: ['nodejs_compat'],
|
|
29
|
+
mainModule: 'worker.js',
|
|
30
|
+
modules: {
|
|
31
|
+
'worker.js': source,
|
|
32
|
+
'esbuild.wasm': { wasm: wasmBytes },
|
|
33
|
+
},
|
|
34
|
+
globalOutbound: null,
|
|
35
|
+
};
|
|
36
|
+
}
|
package/dist/facets/manager.d.ts
CHANGED
|
@@ -20,10 +20,12 @@ import { SessionProcessSupervisor } from '@nimbus-sh/core/runtime/session-proces
|
|
|
20
20
|
import type { CredentialedVfs, SqliteVFS, VfsStat } from '@nimbus-sh/core/vfs/sqlite-vfs.js';
|
|
21
21
|
import type { PortRegistry } from '@nimbus-sh/core/runtime/port-registry.js';
|
|
22
22
|
import { TurnBudget } from '@nimbus-sh/fabric/turn-budget.js';
|
|
23
|
-
import { EsbuildService } from '@nimbus-sh/core/runtime/esbuild-service.js';
|
|
24
|
-
import { type ProcessHostFactory } from '@nimbus-sh/fabric/process-fabric.js';
|
|
23
|
+
import { EsbuildService, type TransformResult } from '@nimbus-sh/core/runtime/esbuild-service.js';
|
|
24
|
+
import { type ProcessHostFactory, type ResidentCodeSpec } from '@nimbus-sh/fabric/process-fabric.js';
|
|
25
25
|
import { type OpencodeRunnerOptions } from '../runtime/opencode-facet-runner.js';
|
|
26
26
|
import { type FacetBundleProfile } from '@nimbus-sh/core/runtime/bundle-profile.js';
|
|
27
|
+
type EsbuildTransformOptions = NonNullable<Parameters<EsbuildService['transform']>[1]>;
|
|
28
|
+
type LargeEsmTransform = (code: string, options: EsbuildTransformOptions) => Promise<TransformResult>;
|
|
27
29
|
/** Result returned from a facet execution */
|
|
28
30
|
export interface FacetExecResult {
|
|
29
31
|
exitCode: number;
|
|
@@ -532,8 +534,32 @@ export declare function isBundleModuleCandidate(path: string): boolean;
|
|
|
532
534
|
* EXTENSION, where `.js` files transform on their content — `looksLikeEsm` is
|
|
533
535
|
* the right question for a file that is already valid JS either way, and the
|
|
534
536
|
* wrong one for a file that is never valid JS.
|
|
537
|
+
*
|
|
538
|
+
* A declaration file (`.d.ts`, `.d.mts`, `.d.cts`) is not a source: it has
|
|
539
|
+
* no runtime form, nothing `require()`s one, and esbuild's output for it is
|
|
540
|
+
* empty by definition. It is DATA — read by the program that ships it, which
|
|
541
|
+
* is exactly typescript: `tsc` reads its own `lib/lib.*.d.ts` with
|
|
542
|
+
* `readFileSync`, and every declaration it type-checks against comes from
|
|
543
|
+
* those bytes. Transforming them handed the compiler an 811-byte license
|
|
544
|
+
* comment where `lib.es5.d.ts` (217 KB) had been, and every global type was
|
|
545
|
+
* gone. So a declaration file is left exactly as it was staged.
|
|
535
546
|
*/
|
|
536
547
|
export declare function bundleTypescriptLoader(path: string): 'ts' | 'tsx' | null;
|
|
548
|
+
/** `name.d.ts` / `name.d.mts` / `name.d.cts`, by TypeScript's own rule. */
|
|
549
|
+
export declare function isTypescriptDeclarationFile(path: string): boolean;
|
|
550
|
+
export declare function compiledCellKey(path: string): string;
|
|
551
|
+
/** The source path a compiled-cell key stands for, or null for a plain path. */
|
|
552
|
+
export declare function compiledCellPath(key: string): string | null;
|
|
553
|
+
/**
|
|
554
|
+
* The pre-compile loop both generated facets run at module evaluation, the
|
|
555
|
+
* only moment workerd lets a string become code. One definition so the two
|
|
556
|
+
* facets cannot drift on what they compile: every JavaScript-shaped cell
|
|
557
|
+
* (`.js`, `.mjs`, `.cjs` and the extensionless bin scripts) from its own
|
|
558
|
+
* bytes, and every TypeScript source from its compiled cell — which is
|
|
559
|
+
* removed from the bundle here, so a `readFileSync` of the source path
|
|
560
|
+
* returns the source and a directory listing never shows the key.
|
|
561
|
+
*/
|
|
562
|
+
export declare const BUNDLE_PRECOMPILE_LOOP: string;
|
|
537
563
|
/**
|
|
538
564
|
* W2.6a: build the prefetch bundle for FacetManager.exec.
|
|
539
565
|
*
|
|
@@ -550,7 +576,7 @@ export declare function bundleTypescriptLoader(path: string): 'ts' | 'tsx' | nul
|
|
|
550
576
|
* behaviour for code paths that don't have esbuild handy).
|
|
551
577
|
*
|
|
552
578
|
*/
|
|
553
|
-
export declare function buildPrefetchBundle(vfs: CredentialedVfs, scriptPath: string | undefined, cwd: string, entryCode: string, esbuild?: EsbuildService, bundleProfile?: FacetBundleProfile, observedReads?: ReadonlySet<string>, pacer?: TurnBudget): Promise<FacetVfsState>;
|
|
579
|
+
export declare function buildPrefetchBundle(vfs: CredentialedVfs, scriptPath: string | undefined, cwd: string, entryCode: string, esbuild?: EsbuildService, bundleProfile?: FacetBundleProfile, observedReads?: ReadonlySet<string>, pacer?: TurnBudget, isolatedTransform?: LargeEsmTransform): Promise<FacetVfsState>;
|
|
554
580
|
/**
|
|
555
581
|
* Optional hooks wired in by NimbusSession. Kept as callbacks so
|
|
556
582
|
* FacetManager stays unaware of the session / log-store types.
|
|
@@ -583,6 +609,23 @@ export interface FacetManagerHooks {
|
|
|
583
609
|
* survives until someone reconnects to read it.
|
|
584
610
|
*/
|
|
585
611
|
notify?: (line: string) => void;
|
|
612
|
+
transformLargeEsm?: LargeEsmTransform;
|
|
613
|
+
/**
|
|
614
|
+
* Resolve the launch inputs a journalled worker launch needs re-driven with.
|
|
615
|
+
* Keyed by `recipe.owner`: the embedder's own record of the durable
|
|
616
|
+
* application decides — `null` means it is stopped or removed, so it is not
|
|
617
|
+
* restarted.
|
|
618
|
+
*/
|
|
619
|
+
resolveWorkerLaunch?: (recipe: WorkerRecipe) => Promise<ResolvedWorkerLaunch | null>;
|
|
620
|
+
/**
|
|
621
|
+
* The session's own default resolver, reading the durable image store a
|
|
622
|
+
* self-owned spawn persisted under `.nimbus/images/`. Consulted ONLY when
|
|
623
|
+
* `resolveWorkerLaunch` is absent — an embedder's hook still overrides
|
|
624
|
+
* everything. Being the fallback is also what it is *not*: it can never
|
|
625
|
+
* re-mint a live globalOutbound binding, so a durable spawn carrying one
|
|
626
|
+
* is refused unless the embedder hook exists.
|
|
627
|
+
*/
|
|
628
|
+
resolveWorkerLaunchFallback?: (recipe: WorkerRecipe) => Promise<ResolvedWorkerLaunch | null>;
|
|
586
629
|
}
|
|
587
630
|
export interface LongRunningWorkerSpawnOptions {
|
|
588
631
|
port?: number;
|
|
@@ -597,8 +640,23 @@ export interface LongRunningWorkerSpawnOptions {
|
|
|
597
640
|
*/
|
|
598
641
|
vfsWasmModules?: Record<string, string>;
|
|
599
642
|
compatibilityFlags?: string[];
|
|
643
|
+
compatibilityDate?: string;
|
|
644
|
+
env?: ResidentCodeSpec['env'];
|
|
645
|
+
globalOutbound?: ResidentCodeSpec['globalOutbound'];
|
|
600
646
|
/** Forwarded verbatim to the runner's startProcess. */
|
|
601
647
|
startArgs?: unknown;
|
|
648
|
+
/**
|
|
649
|
+
* Set for a worker a durable application owns: the launch is journalled and
|
|
650
|
+
* re-driven after an instance reset through `hooks.resolveWorkerLaunch`.
|
|
651
|
+
* A plain spawnWorker stays unjournaled.
|
|
652
|
+
*/
|
|
653
|
+
durable?: {
|
|
654
|
+
owner: string;
|
|
655
|
+
image?: {
|
|
656
|
+
runner: string;
|
|
657
|
+
application: string;
|
|
658
|
+
};
|
|
659
|
+
};
|
|
602
660
|
}
|
|
603
661
|
/** What `spawnNode` needs to build and boot one resident Node process. */
|
|
604
662
|
export interface ResidentSpawnOptions {
|
|
@@ -614,6 +672,33 @@ export interface ResidentSpawnOptions {
|
|
|
614
672
|
callerPid?: number;
|
|
615
673
|
bundleProfile?: FacetBundleProfile;
|
|
616
674
|
}
|
|
675
|
+
/** The launch inputs a re-drive rebuilds a worker from: content digests and
|
|
676
|
+
* transport, never env or credentials — the embedder resolves those. */
|
|
677
|
+
export interface WorkerRecipe {
|
|
678
|
+
kind: 'worker';
|
|
679
|
+
/** The durable application this process belongs to, keyed by the embedder. */
|
|
680
|
+
owner: string;
|
|
681
|
+
/** Content digests of the two images the launch was built from. */
|
|
682
|
+
image: {
|
|
683
|
+
runner: string;
|
|
684
|
+
application: string;
|
|
685
|
+
};
|
|
686
|
+
port: number;
|
|
687
|
+
cwd: string;
|
|
688
|
+
compatibilityDate: string;
|
|
689
|
+
compatibilityFlags: string[];
|
|
690
|
+
startArgs: unknown;
|
|
691
|
+
}
|
|
692
|
+
/** What the embedder supplies for a re-driven worker launch. */
|
|
693
|
+
export interface ResolvedWorkerLaunch {
|
|
694
|
+
/** Null is the absent answer — the same JSON the image blob carries. */
|
|
695
|
+
env: ResidentCodeSpec['env'] | null;
|
|
696
|
+
globalOutbound: ResidentCodeSpec['globalOutbound'];
|
|
697
|
+
/** Module name → source text, including the `worker.js` main module. */
|
|
698
|
+
modules: Record<string, string>;
|
|
699
|
+
/** Module name → VFS path of a wasm image, restored with the launch. */
|
|
700
|
+
vfsWasmModules?: Record<string, string>;
|
|
701
|
+
}
|
|
617
702
|
export declare class FacetManager {
|
|
618
703
|
private ctx;
|
|
619
704
|
private env;
|
|
@@ -647,7 +732,7 @@ export declare class FacetManager {
|
|
|
647
732
|
* The resident-launch journal (fabric's fenced-work.ts): the durable
|
|
648
733
|
* record of every resident this session owes the user, and its recovery
|
|
649
734
|
* after an instance reset. This manager supplies what a launch IS — the
|
|
650
|
-
*
|
|
735
|
+
* recipe `_redrive` re-drives from — and how its loss is reported.
|
|
651
736
|
*/
|
|
652
737
|
private readonly launchJournal;
|
|
653
738
|
/**
|
|
@@ -691,12 +776,13 @@ export declare class FacetManager {
|
|
|
691
776
|
* prefetch cache above so a profile can only ever seed the bundle it was
|
|
692
777
|
* measured against.
|
|
693
778
|
*
|
|
694
|
-
* Lifetime is the supervisor incarnation's, same as the cache — a restart
|
|
695
779
|
* costs one more loud failure and then relearns. Persisting it would be a
|
|
696
780
|
* schema and a migration bought with nothing the in-memory form does not
|
|
697
781
|
* already deliver for the case that matters: running the command again.
|
|
698
782
|
*/
|
|
699
783
|
private residencyProfiles;
|
|
784
|
+
/** In-flight request-driven durable-app ensures, single-flight per port. */
|
|
785
|
+
private ensureInflight;
|
|
700
786
|
private static readonly RESIDENCY_PROFILE_MAX_ENTRIES;
|
|
701
787
|
/**
|
|
702
788
|
* A program that reads a directory of data files misses once per file, so
|
|
@@ -725,6 +811,11 @@ export declare class FacetManager {
|
|
|
725
811
|
* store itself decides nothing about modes.
|
|
726
812
|
*/
|
|
727
813
|
private _imageBlobs;
|
|
814
|
+
/**
|
|
815
|
+
* The kernel-scoped VFS the durable image store reads and writes through —
|
|
816
|
+
* `.nimbus/images/<sha256>` is session kernel data, not user content.
|
|
817
|
+
*/
|
|
818
|
+
private _imageVfs;
|
|
728
819
|
/**
|
|
729
820
|
* W3.5 Fix B: hand the FacetManager a pre-warmed EsbuildService for
|
|
730
821
|
* the ESM→CJS bundle pre-pass. NimbusSession already lazy-creates one
|
|
@@ -987,6 +1078,13 @@ export declare class FacetManager {
|
|
|
987
1078
|
private _flushVfsWrites;
|
|
988
1079
|
/** Execution timeout. */
|
|
989
1080
|
private _execWithTimeout;
|
|
1081
|
+
/**
|
|
1082
|
+
* Re-drive a journalled launch after an instance reset. What the journal
|
|
1083
|
+
* row carries is the recipe and nothing else: env and credentials are never
|
|
1084
|
+
* written to storage, so a worker launch's are re-resolved by the embedder
|
|
1085
|
+
* through `hooks.resolveWorkerLaunch`.
|
|
1086
|
+
*/
|
|
1087
|
+
private _redrive;
|
|
990
1088
|
/**
|
|
991
1089
|
* Spawn a long-running Node process with the same shimmed require/fs/http
|
|
992
1090
|
* environment used by foreground `node <script>` execution.
|
|
@@ -1036,11 +1134,68 @@ export declare class FacetManager {
|
|
|
1036
1134
|
pid: number;
|
|
1037
1135
|
boot: unknown;
|
|
1038
1136
|
}>;
|
|
1137
|
+
/** `attempt` is the journal's re-drive budget, as `_spawnResident` carries it. */
|
|
1138
|
+
private _spawnWorker;
|
|
1139
|
+
/**
|
|
1140
|
+
* A resident process announcing it bound `port`. When the port is reserved,
|
|
1141
|
+
* the reservation's owner is stamped onto this pid's journal row — the
|
|
1142
|
+
* reservation is what declares which application the port serves, and a
|
|
1143
|
+
* resident that binds it inherits the whole durable contract: the row names
|
|
1144
|
+
* the port `ensureDurableAppOnPort` looks up, the minted capability is
|
|
1145
|
+
* re-adopted rather than retired, and `removeDurableApp` can find the launch
|
|
1146
|
+
* by owner.
|
|
1147
|
+
*
|
|
1148
|
+
* A pid with no journal row — a process outside the resident lifecycle —
|
|
1149
|
+
* registering on a reserved port takes it as today: the stored capability
|
|
1150
|
+
* is retired and a fresh one is minted, the reservation stays with the
|
|
1151
|
+
* owner. An accidental port reuse inside one session therefore cannot
|
|
1152
|
+
* inherit the public capability; same-session processes are one trust
|
|
1153
|
+
* domain, so this is hygiene, not a security boundary.
|
|
1154
|
+
*/
|
|
1155
|
+
private _registerResidentPort;
|
|
1039
1156
|
registerPort(pid: number, port: number): Promise<void>;
|
|
1040
1157
|
waitForRouteablePorts(pid: number, timeoutMs?: number): Promise<number[]>;
|
|
1041
1158
|
finishProcess(pid: number, exitCode: number, reason?: string): void;
|
|
1042
1159
|
/** Kill a running process by PID. */
|
|
1043
1160
|
kill(pid: number): boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* Remove a durable application: the ONLY path that deletes durable facet
|
|
1163
|
+
* storage. Owner-checked by construction — `freeDurableFacetSlot` answers
|
|
1164
|
+
* only a slot the owner actually holds, and the reservation release refuses
|
|
1165
|
+
* a foreign owner's record — so another owner's name cannot be reached.
|
|
1166
|
+
*
|
|
1167
|
+
* One ordered teardown: the live process is killed first (a released
|
|
1168
|
+
* durable facet only aborts, so nothing else ends it), the port reservation
|
|
1169
|
+
* is released, the journal rows for the owner are purged (nothing is owed a
|
|
1170
|
+
* removed application), the facet's SQLite is deleted, and the slot row is
|
|
1171
|
+
* freed last — so a crash mid-removal leaves a name still claimed rather
|
|
1172
|
+
* than a store nobody can re-drive.
|
|
1173
|
+
*/
|
|
1174
|
+
removeDurableApp(owner: string): Promise<boolean>;
|
|
1175
|
+
/** The session-shaped view the public-directory helpers read env from. */
|
|
1176
|
+
private _publicDirectoryHost;
|
|
1177
|
+
/**
|
|
1178
|
+
* Whether a request addressed to `port` can reach a durable application —
|
|
1179
|
+
* and, when the application is journaled but dead, drive its re-drive and
|
|
1180
|
+
* wait for the boot, bounded.
|
|
1181
|
+
*
|
|
1182
|
+
* The port request is the one surface a reset leaves dark: the alarm pump
|
|
1183
|
+
* re-drives journaled launches eventually, but a URL a user is holding
|
|
1184
|
+
* cannot wait for an alarm that may never fire. 'started' means a live
|
|
1185
|
+
* process owns the port now; 'absent' means nothing durable claims it
|
|
1186
|
+
* (the caller answers 502 as it always has); 'failed' means a re-drive
|
|
1187
|
+
* ran and lost, or outlived its bound — the caller answers 503 and lets
|
|
1188
|
+
* the page re-ask.
|
|
1189
|
+
*
|
|
1190
|
+
* Single-flight per port: parallel requests on a woken page share one
|
|
1191
|
+
* ensure, which shares the journal's per-row drive with recovery — a
|
|
1192
|
+
* request that lands mid-recovery waits on that boot, it never boots a
|
|
1193
|
+
* second process.
|
|
1194
|
+
*/
|
|
1195
|
+
ensureDurableAppOnPort(port: number): Promise<'started' | 'absent' | 'failed'>;
|
|
1196
|
+
private _ensureDurableAppOnPort;
|
|
1197
|
+
/** Poll for a port registration the in-flight launch has not made yet. */
|
|
1198
|
+
private _waitForPort;
|
|
1044
1199
|
get stats(): {
|
|
1045
1200
|
total: number;
|
|
1046
1201
|
running: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/facets/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,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