@nimbus-sh/worker 0.5.0 → 0.7.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 +2 -2
- package/dist/_shared/preview-host.d.ts +26 -8
- package/dist/_shared/preview-host.d.ts.map +1 -1
- package/dist/_shared/preview-host.js +51 -11
- package/dist/cirrus-npm-cjs.generated.d.ts +1 -1
- package/dist/cirrus-npm-cjs.generated.js +1 -1
- package/dist/facets/cirrus-real.d.ts.map +1 -1
- package/dist/facets/cirrus-real.js +6 -5
- package/dist/facets/compose.d.ts +148 -0
- package/dist/facets/compose.d.ts.map +1 -0
- package/dist/facets/compose.js +146 -0
- package/dist/facets/durable-images.d.ts +18 -5
- package/dist/facets/durable-images.d.ts.map +1 -1
- package/dist/facets/durable-images.js +36 -7
- package/dist/facets/durable-slots.d.ts +1 -1
- package/dist/facets/durable-slots.d.ts.map +1 -1
- package/dist/facets/durable-slots.js +2 -1
- package/dist/facets/esbuild-bundle-pool.d.ts +49 -0
- package/dist/facets/esbuild-bundle-pool.d.ts.map +1 -0
- package/dist/facets/esbuild-bundle-pool.js +122 -0
- package/dist/facets/exec-telemetry.d.ts +8 -0
- package/dist/facets/exec-telemetry.d.ts.map +1 -1
- package/dist/facets/manager.d.ts +337 -123
- package/dist/facets/manager.d.ts.map +1 -1
- package/dist/facets/manager.js +1100 -449
- package/dist/facets/process.d.ts +20 -16
- package/dist/facets/process.d.ts.map +1 -1
- package/dist/facets/process.js +59 -28
- package/dist/facets/real-vite-fs-shim.js +2 -2
- package/dist/facets/resident-identity.d.ts +23 -0
- package/dist/facets/resident-identity.d.ts.map +1 -0
- package/dist/facets/resident-identity.js +31 -0
- package/dist/facets/vite-dev-server.d.ts +25 -47
- package/dist/facets/vite-dev-server.d.ts.map +1 -1
- package/dist/facets/vite-dev-server.js +185 -219
- package/dist/facets/wasm-image-digest.d.ts +25 -0
- package/dist/facets/wasm-image-digest.d.ts.map +1 -0
- package/dist/facets/wasm-image-digest.js +25 -0
- package/dist/facets/wasm-swap-registry.d.ts +51 -92
- package/dist/facets/wasm-swap-registry.d.ts.map +1 -1
- package/dist/facets/wasm-swap-registry.js +68 -227
- package/dist/git/commands.d.ts +0 -1
- package/dist/git/commands.d.ts.map +1 -1
- package/dist/git/commands.js +0 -3
- package/dist/git/network-facet.d.ts.map +1 -1
- package/dist/git/network-facet.js +6 -5
- package/dist/loaders/child-process/spawn-pool.d.ts +3 -2
- package/dist/loaders/child-process/spawn-pool.d.ts.map +1 -1
- package/dist/loaders/child-process/spawn-pool.js +3 -2
- package/dist/loaders/generated-workers.d.ts +2 -2
- package/dist/loaders/generated-workers.d.ts.map +1 -1
- package/dist/loaders/generated-workers.js +3 -3
- package/dist/loaders/npm-resolve-preamble.d.ts +3 -6
- package/dist/loaders/npm-resolve-preamble.d.ts.map +1 -1
- package/dist/loaders/npm-resolve-preamble.js +34 -108
- package/dist/node-shims-artifact.generated.js +3 -3
- package/dist/npm/install-batch-facet.d.ts +3 -2
- package/dist/npm/install-batch-facet.d.ts.map +1 -1
- package/dist/npm/install-batch-facet.js +45 -15
- package/dist/npm/installer.d.ts +22 -17
- package/dist/npm/installer.d.ts.map +1 -1
- package/dist/npm/installer.js +209 -193
- package/dist/npm/pre-bundle-facet.d.ts +1 -1
- package/dist/npm/pre-bundle-facet.d.ts.map +1 -1
- package/dist/npm/pre-bundle-facet.js +1 -1
- package/dist/npm/resolve-facet.d.ts +6 -0
- package/dist/npm/resolve-facet.d.ts.map +1 -1
- package/dist/npm/resolve-one-facet.d.ts +21 -20
- package/dist/npm/resolve-one-facet.d.ts.map +1 -1
- package/dist/npm/resolve-one-facet.js +85 -84
- package/dist/npm/semver.d.ts +59 -0
- package/dist/npm/semver.d.ts.map +1 -0
- package/dist/npm/semver.js +226 -0
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +47 -10
- package/dist/router/public-directory.d.ts +5 -1
- package/dist/router/public-directory.d.ts.map +1 -1
- package/dist/router/public-directory.js +9 -2
- package/dist/router/remote-api.d.ts +18 -0
- package/dist/router/remote-api.d.ts.map +1 -1
- package/dist/router/remote-api.js +64 -5
- package/dist/runtime/cpython-resident.d.ts.map +1 -1
- package/dist/runtime/cpython-resident.js +3 -1
- package/dist/runtime/html-entrypoint.d.ts +7 -0
- package/dist/runtime/html-entrypoint.d.ts.map +1 -1
- package/dist/runtime/html-entrypoint.js +18 -2
- package/dist/runtime/node-runner.d.ts +3 -0
- package/dist/runtime/node-runner.d.ts.map +1 -1
- package/dist/runtime/node-runner.js +7 -0
- package/dist/runtime/node-shims.d.ts.map +1 -1
- package/dist/runtime/node-shims.js +305 -29
- package/dist/runtime/opencode-facet-runner.js +2 -2
- package/dist/runtime/package-manager.d.ts +44 -1
- package/dist/runtime/package-manager.d.ts.map +1 -1
- package/dist/runtime/package-manager.js +168 -3
- package/dist/runtime/ruby-resident.d.ts.map +1 -1
- package/dist/runtime/ruby-resident.js +2 -0
- package/dist/session/agent.d.ts.map +1 -1
- package/dist/session/agent.js +28 -1
- package/dist/session/helpers.d.ts +38 -0
- package/dist/session/helpers.d.ts.map +1 -1
- package/dist/session/helpers.js +76 -0
- package/dist/session/init-phases.d.ts +1 -1
- package/dist/session/init-phases.d.ts.map +1 -1
- package/dist/session/init-phases.js +2 -12
- package/dist/session/init.d.ts +15 -1
- package/dist/session/init.d.ts.map +1 -1
- package/dist/session/init.js +91 -603
- package/dist/session/keys.d.ts +4 -0
- package/dist/session/keys.d.ts.map +1 -1
- package/dist/session/keys.js +4 -0
- package/dist/session/nimbus-session.d.ts +90 -23
- package/dist/session/nimbus-session.d.ts.map +1 -1
- package/dist/session/nimbus-session.js +200 -110
- package/dist/session/npm-install-port.d.ts +16 -0
- package/dist/session/npm-install-port.d.ts.map +1 -0
- package/dist/session/npm-install-port.js +37 -0
- package/dist/session/port-capability.d.ts +90 -0
- package/dist/session/port-capability.d.ts.map +1 -1
- package/dist/session/port-capability.js +219 -9
- package/dist/session/programmatic.d.ts +125 -5
- package/dist/session/programmatic.d.ts.map +1 -1
- package/dist/session/programmatic.js +439 -89
- package/dist/session/routes.d.ts +39 -17
- package/dist/session/routes.d.ts.map +1 -1
- package/dist/session/routes.js +67 -131
- package/dist/session/rpc.d.ts +39 -16
- package/dist/session/rpc.d.ts.map +1 -1
- package/dist/session/rpc.js +137 -130
- package/dist/session/serving-port.d.ts +27 -0
- package/dist/session/serving-port.d.ts.map +1 -0
- package/dist/session/serving-port.js +27 -0
- package/dist/session/start-real-vite.d.ts +12 -0
- package/dist/session/start-real-vite.d.ts.map +1 -1
- package/dist/session/start-real-vite.js +4 -4
- package/dist/session/supervisor-op.d.ts +41 -4
- package/dist/session/supervisor-op.d.ts.map +1 -1
- package/dist/session/supervisor-op.js +101 -73
- package/dist/session/supervisor-rpc.d.ts +7 -7
- package/dist/session/supervisor-rpc.d.ts.map +1 -1
- package/dist/session/supervisor-rpc.js +6 -3
- package/dist/session/vite-command.d.ts +18 -0
- package/dist/session/vite-command.d.ts.map +1 -0
- package/dist/session/vite-command.js +609 -0
- package/dist/session/ws.d.ts +61 -0
- package/dist/session/ws.d.ts.map +1 -1
- package/dist/session/ws.js +122 -12
- package/dist/shell/npm-bin-entrypoints.d.ts +0 -35
- package/dist/shell/npm-bin-entrypoints.d.ts.map +1 -1
- package/dist/shell/npm-bin-entrypoints.js +12 -85
- package/package.json +24 -4
- package/public/_assets/runtime/{node-shims-9e1380d9ee430fcc.js → node-shims-8f8c64edd2a1f0f5.js} +305 -29
- package/public/index.html +1 -1
- package/scripts/bundle-facet-workers.mjs +1 -1
- package/scripts/bundle-npm-cjs.mjs +2 -2
- package/dist/facets/on-demand-bundle-gate.d.ts +0 -65
- package/dist/facets/on-demand-bundle-gate.d.ts.map +0 -1
- package/dist/facets/on-demand-bundle-gate.js +0 -125
- package/dist/npm/install-args.d.ts +0 -21
- package/dist/npm/install-args.d.ts.map +0 -1
- package/dist/npm/install-args.js +0 -70
- package/dist/npm/npm-log.d.ts +0 -31
- package/dist/npm/npm-log.d.ts.map +0 -1
- package/dist/npm/npm-log.js +0 -51
package/dist/session/routes.d.ts
CHANGED
|
@@ -25,24 +25,46 @@
|
|
|
25
25
|
*/
|
|
26
26
|
type RoutesHost = any;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
28
|
+
* Restore the dev server a previous isolate left behind.
|
|
29
|
+
*
|
|
30
|
+
* Hibernation takes the ViteDevServer and the whole port registry with it;
|
|
31
|
+
* only the `vite-config` blob survives in DO storage. Restoring it is the
|
|
32
|
+
* first thing every route that can reach that server does, so a woken session
|
|
33
|
+
* serves on all of them rather than on whichever one happened to carry the
|
|
34
|
+
* restore.
|
|
35
|
+
*
|
|
36
|
+
* `onlyPort` scopes the restore to a config that would listen there: a
|
|
37
|
+
* request for a port nothing ever persisted stays an honest 502, and a port
|
|
38
|
+
* something else already holds is left alone.
|
|
39
|
+
*
|
|
40
|
+
* Idempotent, and silent on failure — a session with no dev server to restore
|
|
41
|
+
* is the normal case, not an error.
|
|
42
|
+
*/
|
|
43
|
+
export declare function restorePersistedDevServer(self: RoutesHost, onlyPort?: number): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* The name-addressed door: `/app/<name>/…` — what the scoped `<name>--<sid>`
|
|
46
|
+
* host is forwarded as, and reachable in path form as `/s/<sid>/app/<name>/`.
|
|
47
|
+
* The name is a reservation alias only this session's records know, so it
|
|
48
|
+
* is resolved here and the request continues exactly as the port form would
|
|
49
|
+
* — same routing, same durable re-drive, same capability gate. A name
|
|
50
|
+
* nothing holds is a 404, never a guess.
|
|
51
|
+
*/
|
|
52
|
+
export declare function routeToSessionApp(self: RoutesHost, name: string, request: Request, innerPath: string, capability?: string): Promise<Response>;
|
|
53
|
+
/**
|
|
54
|
+
* Accept a Vite HMR WebSocket for the running cirrus-real facet and wire it
|
|
55
|
+
* into the facet's HMR bridge.
|
|
56
|
+
*
|
|
57
|
+
* Handled in the DO, never through the port-registry proxy: that proxy moves a
|
|
58
|
+
* Request/Response over RPC and drops the `webSocket` handshake, so a HMR
|
|
59
|
+
* upgrade routed through it hangs. This is the ONE place a preview HMR socket
|
|
60
|
+
* is accepted — shared by the `/preview/` path and the `<port>--<sid>` host's
|
|
61
|
+
* `/port/N` route, so HMR works the same on both.
|
|
62
|
+
*
|
|
63
|
+
* ctx.acceptWebSocket (hibernatable) is required because HMR messages arrive
|
|
64
|
+
* from a DIFFERENT request context (the facet's long-poll RPC), and workerd
|
|
65
|
+
* forbids cross-request I/O on a `server.accept()`'d socket.
|
|
42
66
|
*/
|
|
43
|
-
export declare function
|
|
44
|
-
/** Route a capability-authenticated embedder request to a guest HTTP server. */
|
|
45
|
-
export declare function routeCapabilityPort(self: RoutesHost, port: number, capability: string, request: Request, innerPath: string): Promise<Response>;
|
|
67
|
+
export declare function acceptCirrusHmrWs(self: RoutesHost, request: Request): Response;
|
|
46
68
|
export declare function handleFetch(self: RoutesHost, request: Request): Promise<Response>;
|
|
47
69
|
export {};
|
|
48
70
|
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/session/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/session/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAkEH,KAAK,UAAU,GAAG,GAAG,CAAC;AAyBtB;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuFlG;AAeD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,QAAQ,CAAC,CAMnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,QAAQ,CAiB9E;AAmDD,wBAAsB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CA0hCvF"}
|
package/dist/session/routes.js
CHANGED
|
@@ -28,27 +28,32 @@ import { replicasSuspended as _w12ReplicasSuspended } from '../replica/suspensio
|
|
|
28
28
|
import { sanitizeUntrustedRequest } from '@nimbus-sh/core/_shared/untrusted-request.js';
|
|
29
29
|
import { matchLogsPath, handleLogsWebSocketRequest, handleProcessesListRequest, } from '../runtime/process-logs-api.js';
|
|
30
30
|
import { readDiagCounters } from '@nimbus-sh/platform/diag-counters.js';
|
|
31
|
+
import { readSupervisorAllocationBudget } from '@nimbus-sh/platform/heavy-alloc-coord.js';
|
|
31
32
|
import { getFailures, getLastRpcFrame, getLastFacetId, getRecoveryEvents, recordRecoveryEvent, resetRecoveryEvents, } from '@nimbus-sh/platform/oom-discriminator.js';
|
|
32
33
|
import { DEFAULT_VITE_PORT, LRU_MAX_ENTRIES } from '@nimbus-sh/core/constants.js';
|
|
34
|
+
import { SEED_PROJECT_DIR, SEED_PROJECT_NAME } from '@nimbus-sh/core/vfs/seed-project.js';
|
|
33
35
|
import { BASE_PATH_HEADER } from '../_shared/session-router.js';
|
|
34
36
|
import { VITE_CONFIG_KEY } from './keys.js';
|
|
35
37
|
import { estimateSupervisorHeap, WORKERD_EVICTION_LABELS } from '@nimbus-sh/platform/heap-estimate.js';
|
|
36
|
-
import { loadShellState, loadKernelMounts, getScrollbackStats, clearSessionState,
|
|
38
|
+
import { loadShellState, loadKernelMounts, getScrollbackStats, clearSessionState, loadScrollback } from './state-store.js';
|
|
37
39
|
import { classifyWsUpgrade, joinExistingSession } from './init-phases.js';
|
|
40
|
+
import { shellTerminalTee } from './ws.js';
|
|
38
41
|
import { closeStaleShellSockets, tagShellSocket } from './shell-socket.js';
|
|
39
42
|
import { EsbuildService } from '@nimbus-sh/core/runtime/esbuild-service.js';
|
|
40
43
|
import { ViteDevServer } from '../facets/vite-dev-server.js';
|
|
41
44
|
import { notifyTerminalEvent, wireProcessLogSocketBroadcast } from '../runtime/process-logs-api.js';
|
|
42
45
|
import { makeLongRunningPortStub } from '@nimbus-sh/core/runtime/long-running-handle.js';
|
|
43
46
|
import { startRealVite } from './start-real-vite.js';
|
|
47
|
+
import { withResolvers } from '@nimbus-sh/fabric/turn-budget.js';
|
|
44
48
|
import { getLoadedCodesStats } from '@nimbus-sh/fabric/bindings.js';
|
|
45
49
|
import { generation } from '@nimbus-sh/fabric/generation.js';
|
|
46
50
|
import { facetIdBudget } from '@nimbus-sh/fabric/budgets.js';
|
|
47
51
|
import { loaderLedgerStats } from '@nimbus-sh/fabric/budgets.js';
|
|
48
52
|
import { HOSTED_WEBSOCKET_CAPABILITY_HEADER, HOSTED_WEBSOCKET_KEY_HEADER, } from '@nimbus-sh/fabric/process-host.js';
|
|
49
53
|
import { routeHostedWebSocket } from './rpc.js';
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
54
|
+
import { isCirrusHmrPath, readPortCapability, normalizeForwardedHttpPath, readPortReservationByName, readoptCapability, routeToSessionPort, } from './port-capability.js';
|
|
55
|
+
import { registerServingPort } from './serving-port.js';
|
|
56
|
+
import { PREVIEW_CAPABILITY_HEADER, CALLER_SCOPES_HEADER } from '../_shared/session-router.js';
|
|
52
57
|
import { renderNoDevServerHtml } from './helpers.js';
|
|
53
58
|
import { handleAgentRequest } from './agent.js';
|
|
54
59
|
import { captureSessionAiCredential } from './ai.js';
|
|
@@ -60,6 +65,11 @@ import { R2CacheClient, packumentL2Url, tarballL2Url, parseTarballAddress } from
|
|
|
60
65
|
import { fetchEsbuildWasmBytes, ESBUILD_WASM_L2_KEY } from '../runtime/esbuild-wasm-bytes.js';
|
|
61
66
|
import { Fanout, IN_DO_THRESHOLD, MAX_PEER_FANOUT } from '@nimbus-sh/fabric/fanout.js';
|
|
62
67
|
import { z } from 'zod/v4';
|
|
68
|
+
// `SessionPortHost`, `routeToSessionPort` and `routeCapabilityPort` live in
|
|
69
|
+
// session/port-capability.ts so the composed manager's `apps` surface can
|
|
70
|
+
// call the one implementation without importing this file (which reaches
|
|
71
|
+
// `cloudflare:workers` through fabric bindings). The session-only helpers
|
|
72
|
+
// the route delegates to stay here and arrive on the host as fields.
|
|
63
73
|
const TestSpawnEmitterBodySchema = z.object({
|
|
64
74
|
lines: z.coerce.number().optional(),
|
|
65
75
|
lineText: z.unknown().optional().transform((value) => value == null ? 'line' : String(value)),
|
|
@@ -74,10 +84,6 @@ const RecoverySessionStateSchema = z.enum([
|
|
|
74
84
|
'wire',
|
|
75
85
|
'online',
|
|
76
86
|
]);
|
|
77
|
-
function normalizeForwardedHttpPath(path) {
|
|
78
|
-
const text = path || '/';
|
|
79
|
-
return '/' + text.replace(/^\/+/, '');
|
|
80
|
-
}
|
|
81
87
|
/**
|
|
82
88
|
* Restore the dev server a previous isolate left behind.
|
|
83
89
|
*
|
|
@@ -94,7 +100,7 @@ function normalizeForwardedHttpPath(path) {
|
|
|
94
100
|
* Idempotent, and silent on failure — a session with no dev server to restore
|
|
95
101
|
* is the normal case, not an error.
|
|
96
102
|
*/
|
|
97
|
-
async function restorePersistedDevServer(self, onlyPort) {
|
|
103
|
+
export async function restorePersistedDevServer(self, onlyPort) {
|
|
98
104
|
if (self.cirrusReal?.isRunning || self.viteDevServer?.isRunning)
|
|
99
105
|
return;
|
|
100
106
|
if (onlyPort != null && self.portRegistry.has(onlyPort))
|
|
@@ -151,7 +157,12 @@ async function restorePersistedDevServer(self, onlyPort) {
|
|
|
151
157
|
const basePath = self.viteBasePath || config.basePath;
|
|
152
158
|
// process diagnostics support: re-allocate a PID so log streaming has
|
|
153
159
|
// somewhere to land. Without this, the restored server would be silent.
|
|
154
|
-
|
|
160
|
+
// The restored server is the same application the persisted config
|
|
161
|
+
// describes: its pid is given the cwd+argv the original had, so the
|
|
162
|
+
// identity the app verbs derive from the process table is unchanged
|
|
163
|
+
// across the hibernation — a reservation exposed under a name re-adopts
|
|
164
|
+
// its capability at registration below.
|
|
165
|
+
const entry = self.processes.spawn('vite (rehydrated, ' + config.root + ')', Array.isArray(config.identity?.argv) ? config.identity.argv.map(String) : [], typeof config.identity?.cwd === 'string' ? config.identity.cwd : config.root, { longRunning: true });
|
|
155
166
|
self.viteDevServer = new ViteDevServer({
|
|
156
167
|
vfs: self.sqliteFs, esbuild: self.esbuildService, root: config.root,
|
|
157
168
|
aliases: config.aliases, define: config.define,
|
|
@@ -161,6 +172,7 @@ async function restorePersistedDevServer(self, onlyPort) {
|
|
|
161
172
|
basePath,
|
|
162
173
|
env: self.env,
|
|
163
174
|
ctx: self.ctx,
|
|
175
|
+
bundlePool: self.ensureBundlePool(),
|
|
164
176
|
port,
|
|
165
177
|
pid: entry.pid,
|
|
166
178
|
processes: self.processes,
|
|
@@ -170,8 +182,7 @@ async function restorePersistedDevServer(self, onlyPort) {
|
|
|
170
182
|
// restored server across hibernation cycles.
|
|
171
183
|
try {
|
|
172
184
|
self.portRegistry.bindFacetStub(entry.pid, makeLongRunningPortStub(self.viteDevServer));
|
|
173
|
-
await
|
|
174
|
-
self.portRegistry.register(port, entry.pid);
|
|
185
|
+
await registerServingPort(self, entry.pid, port);
|
|
175
186
|
await readoptCapability(self, port, persistedCapability);
|
|
176
187
|
self._viteShimPid = entry.pid;
|
|
177
188
|
self._viteShimPort = port;
|
|
@@ -180,105 +191,6 @@ async function restorePersistedDevServer(self, onlyPort) {
|
|
|
180
191
|
}
|
|
181
192
|
catch { /* nothing to restore — callers fall through to their own empty-state response */ }
|
|
182
193
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Route a request to whatever is listening on a session port.
|
|
185
|
-
*
|
|
186
|
-
* The one implementation behind every port-addressed surface: `/port/<n>/`,
|
|
187
|
-
* `/preview/?port=N`, and the `<port>--<sid>` preview hostname, which the
|
|
188
|
-
* router forwards as `/port/<n>/`. They differ only in how the port and the
|
|
189
|
-
* inner path are spelled, so they must not differ in what answers.
|
|
190
|
-
*
|
|
191
|
-
* `mountBase` is the public URL prefix the served app is mounted at for THIS
|
|
192
|
-
* request — '' for a root-mounted `<port>--<sid>` host, '/s/<sid>/preview' for
|
|
193
|
-
* the preview path. The in-process Cirrus dev server rewrites base-relative
|
|
194
|
-
* URLs (module URLs, <base href>, BASE_URL, router basename), so it is handed
|
|
195
|
-
* the base directly: the generic port proxy strips the Nimbus base header at
|
|
196
|
-
* the untrusted-code boundary and cannot carry it, and a plain user server on
|
|
197
|
-
* any other port is mounted at root and needs no rewriting.
|
|
198
|
-
*/
|
|
199
|
-
export async function routeToSessionPort(self, port, request, innerPath, mountBase, capability) {
|
|
200
|
-
await restorePersistedDevServer(self, port);
|
|
201
|
-
// The durable seam: a request on a port nothing is serving may be a
|
|
202
|
-
// durable application a reset left dead — the alarm pump would re-drive
|
|
203
|
-
// it eventually, but a URL in someone's hands cannot wait for eventually.
|
|
204
|
-
// 'absent' falls through to the honest 502 unchanged; 'started' continues
|
|
205
|
-
// to normal routing with the port freshly bound; 'failed' is mid-launch
|
|
206
|
-
// or a lost boot, so the page re-asks on its own timer.
|
|
207
|
-
if (self.ensureDurableAppOnPort !== undefined) {
|
|
208
|
-
const durable = await self.ensureDurableAppOnPort(port);
|
|
209
|
-
if (durable === 'failed') {
|
|
210
|
-
return new Response(renderPortStartingHtml(port), {
|
|
211
|
-
status: 503,
|
|
212
|
-
headers: {
|
|
213
|
-
'Content-Type': 'text/html; charset=utf-8',
|
|
214
|
-
'Cache-Control': 'no-store',
|
|
215
|
-
'Retry-After': '3',
|
|
216
|
-
},
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (capability !== undefined) {
|
|
221
|
-
// A rebuilt supervisor holds a capability nobody was handed; the durable
|
|
222
|
-
// one is the value in circulation, so it wins before the check.
|
|
223
|
-
await restorePortCapability(self, port);
|
|
224
|
-
if (!self.portRegistry.hasCapability(port, capability)) {
|
|
225
|
-
// 404, not 403: a wrong capability must not confirm that the port is
|
|
226
|
-
// listening at all.
|
|
227
|
-
return new Response('Not found', { status: 404 });
|
|
228
|
-
}
|
|
229
|
-
// The public bearer form arrived without a session attach: the
|
|
230
|
-
// capability is real, but it authorises this route only for a port the
|
|
231
|
-
// owner deliberately exposed — the stored visibility is the gate.
|
|
232
|
-
if (request.headers.get(PUBLIC_BEARER_HEADER) !== null) {
|
|
233
|
-
const reservation = await readPortReservation(self.ctx, port);
|
|
234
|
-
if (reservation === null || reservation.visibility !== 'public') {
|
|
235
|
-
return new Response('Not found', { status: 404 });
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
if (port === self._viteShimPort) {
|
|
240
|
-
// The preview HMR WebSocket can't cross the port-registry RPC, so it is
|
|
241
|
-
// accepted in-DO for both dev servers — the same handling `/preview/` uses.
|
|
242
|
-
if (self.cirrusReal?.isRunning && isCirrusHmrPath(innerPath)) {
|
|
243
|
-
return acceptCirrusHmrWs(self, request);
|
|
244
|
-
}
|
|
245
|
-
// The Cirrus dev server rewrites base-relative URLs per request and the
|
|
246
|
-
// generic proxy strips the base header, so hand it the request directly.
|
|
247
|
-
if (self.viteDevServer?.isRunning) {
|
|
248
|
-
return self.viteDevServer.handleRequest(request, innerPath, mountBase);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
const proxied = capability === undefined
|
|
252
|
-
? await self.portRegistry.routeRequest(port, request, innerPath)
|
|
253
|
-
: await self.portRegistry.routeCapabilityRequest(port, capability, request, innerPath);
|
|
254
|
-
if (proxied)
|
|
255
|
-
return proxied;
|
|
256
|
-
return new Response(`No process listening on port ${port}`, { status: 502 });
|
|
257
|
-
}
|
|
258
|
-
/** The "durable application is (re)starting" 503 page — self-refreshing. */
|
|
259
|
-
function renderPortStartingHtml(port) {
|
|
260
|
-
return renderSessionStatusPage({
|
|
261
|
-
title: 'Starting',
|
|
262
|
-
heading: 'Starting…',
|
|
263
|
-
body: `The application on port <code>${port}</code> is restarting.<br>This page refreshes itself.`,
|
|
264
|
-
metaRefreshSeconds: 3,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Re-adopt a preview capability the embedder already holds, after a restore
|
|
269
|
-
* re-registered the port under a freshly minted one.
|
|
270
|
-
*/
|
|
271
|
-
async function readoptCapability(self, port, capability) {
|
|
272
|
-
if (!capability)
|
|
273
|
-
return;
|
|
274
|
-
if (self.portRegistry.restoreCapability(port, capability)) {
|
|
275
|
-
await persistPortCapability(self, port, capability);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
/** Route a capability-authenticated embedder request to a guest HTTP server. */
|
|
279
|
-
export function routeCapabilityPort(self, port, capability, request, innerPath) {
|
|
280
|
-
return routeToSessionPort(self, port, request, normalizeForwardedHttpPath(innerPath), '', capability);
|
|
281
|
-
}
|
|
282
194
|
/**
|
|
283
195
|
* The public URL prefix a port-routed request is mounted at. `<port>--<sid>`
|
|
284
196
|
* hosts arrive with an empty base header (mounted at the origin root); the
|
|
@@ -291,12 +203,21 @@ function portRouteMountBase(request, port) {
|
|
|
291
203
|
const header = request.headers.get(BASE_PATH_HEADER);
|
|
292
204
|
return header ? `${header}/port/${port}` : '';
|
|
293
205
|
}
|
|
294
|
-
/**
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
206
|
+
/**
|
|
207
|
+
* The name-addressed door: `/app/<name>/…` — what the scoped `<name>--<sid>`
|
|
208
|
+
* host is forwarded as, and reachable in path form as `/s/<sid>/app/<name>/`.
|
|
209
|
+
* The name is a reservation alias only this session's records know, so it
|
|
210
|
+
* is resolved here and the request continues exactly as the port form would
|
|
211
|
+
* — same routing, same durable re-drive, same capability gate. A name
|
|
212
|
+
* nothing holds is a 404, never a guess.
|
|
213
|
+
*/
|
|
214
|
+
export async function routeToSessionApp(self, name, request, innerPath, capability) {
|
|
215
|
+
const held = await readPortReservationByName(self.ctx, name);
|
|
216
|
+
if (held === null)
|
|
217
|
+
return new Response('Not found', { status: 404 });
|
|
218
|
+
const header = request.headers.get(BASE_PATH_HEADER);
|
|
219
|
+
const mountBase = header ? `${header}/app/${name}` : '';
|
|
220
|
+
return routeToSessionPort(self, held.port, request, innerPath, mountBase, capability);
|
|
300
221
|
}
|
|
301
222
|
/**
|
|
302
223
|
* Accept a Vite HMR WebSocket for the running cirrus-real facet and wire it
|
|
@@ -312,7 +233,7 @@ function isCirrusHmrPath(innerPath) {
|
|
|
312
233
|
* from a DIFFERENT request context (the facet's long-poll RPC), and workerd
|
|
313
234
|
* forbids cross-request I/O on a `server.accept()`'d socket.
|
|
314
235
|
*/
|
|
315
|
-
function acceptCirrusHmrWs(self, request) {
|
|
236
|
+
export function acceptCirrusHmrWs(self, request) {
|
|
316
237
|
if (request.headers.get('Upgrade') !== 'websocket') {
|
|
317
238
|
return new Response('Expected WebSocket', { status: 426 });
|
|
318
239
|
}
|
|
@@ -480,7 +401,7 @@ export async function handleFetch(self, request) {
|
|
|
480
401
|
// Warm rejoin path. The existing Shell is alive; we just
|
|
481
402
|
// swap the WebSocketTerminal's ws ref + replay scrollback.
|
|
482
403
|
try {
|
|
483
|
-
joinExistingSession(self, server,
|
|
404
|
+
joinExistingSession(self, server, shellTerminalTee(self), loadScrollback);
|
|
484
405
|
}
|
|
485
406
|
catch (err) {
|
|
486
407
|
console.error('warm-rejoin error:', err?.message, err?.stack);
|
|
@@ -782,6 +703,12 @@ export async function handleFetch(self, request) {
|
|
|
782
703
|
},
|
|
783
704
|
// ── v3 / C' observability foundation ──────────────────────
|
|
784
705
|
heap,
|
|
706
|
+
// The shared byte budget every heavy allocator in this isolate
|
|
707
|
+
// queues on. `queued` is the one number that distinguishes a
|
|
708
|
+
// launch that is working from a launch that is parked: a claim
|
|
709
|
+
// larger than what is free waits in the FIFO with no error, no
|
|
710
|
+
// alarm and no CPU, which reads exactly like a launch that stopped.
|
|
711
|
+
alloc: readSupervisorAllocationBudget(),
|
|
785
712
|
evictionLabels: WORKERD_EVICTION_LABELS,
|
|
786
713
|
recoveryEvents: getRecoveryEvents(),
|
|
787
714
|
// ── W9: hibernation observability ───────────────────────────
|
|
@@ -1025,7 +952,7 @@ export async function handleFetch(self, request) {
|
|
|
1025
952
|
? {
|
|
1026
953
|
...(cirrusRealStats || {}),
|
|
1027
954
|
running: true,
|
|
1028
|
-
root: legacyViteStats?.root ?? cirrusRealStats?.root ??
|
|
955
|
+
root: legacyViteStats?.root ?? cirrusRealStats?.root ?? SEED_PROJECT_DIR,
|
|
1029
956
|
backend: 'real',
|
|
1030
957
|
}
|
|
1031
958
|
: legacyViteStats;
|
|
@@ -1104,7 +1031,7 @@ export async function handleFetch(self, request) {
|
|
|
1104
1031
|
// surface still see a real process in `ps` and stream
|
|
1105
1032
|
// diagnostics into the Process tab.
|
|
1106
1033
|
const apiVitePort = (typeof body.port === 'number' && body.port > 0) ? body.port : 5173;
|
|
1107
|
-
const apiViteEntry = self.processes.spawn('vite (api/start-vite, ' + root + ')', [], root, { longRunning: true });
|
|
1034
|
+
const apiViteEntry = self.processes.spawn('vite (api/start-vite, ' + root + ')', ['vite', '--port', String(apiVitePort)], root, { longRunning: true });
|
|
1108
1035
|
self.viteDevServer = new ViteDevServer({
|
|
1109
1036
|
vfs: self.sqliteFs, esbuild: self.esbuildService, root,
|
|
1110
1037
|
aliases: body.aliases, define: body.define,
|
|
@@ -1112,13 +1039,14 @@ export async function handleFetch(self, request) {
|
|
|
1112
1039
|
sql: self.ctx.storage.sql,
|
|
1113
1040
|
injectBasename: body.injectBasename,
|
|
1114
1041
|
basePath,
|
|
1115
|
-
//
|
|
1116
|
-
//
|
|
1117
|
-
// for /preview/@modules/<spec> cold-path bundles —
|
|
1118
|
-
// on large packages (lucide-react). See
|
|
1119
|
-
// ensureOnDemandPool / serveModule.
|
|
1042
|
+
// The shared bundle pool enables the on-demand facet bundle
|
|
1043
|
+
// path. Without it, ViteDevServer falls back to in-supervisor
|
|
1044
|
+
// esbuild for /preview/@modules/<spec> cold-path bundles —
|
|
1045
|
+
// which OOMs on large packages (lucide-react). See
|
|
1046
|
+
// vite-dev-server.ts: ensureOnDemandPool / serveModule.
|
|
1120
1047
|
env: self.env,
|
|
1121
1048
|
ctx: self.ctx,
|
|
1049
|
+
bundlePool: self.ensureBundlePool(),
|
|
1122
1050
|
port: apiVitePort,
|
|
1123
1051
|
pid: apiViteEntry.pid,
|
|
1124
1052
|
processes: self.processes,
|
|
@@ -1127,8 +1055,7 @@ export async function handleFetch(self, request) {
|
|
|
1127
1055
|
try {
|
|
1128
1056
|
const apiViteStub = makeLongRunningPortStub(self.viteDevServer);
|
|
1129
1057
|
self.portRegistry.bindFacetStub(apiViteEntry.pid, apiViteStub);
|
|
1130
|
-
await
|
|
1131
|
-
self.portRegistry.register(apiVitePort, apiViteEntry.pid);
|
|
1058
|
+
await registerServingPort(self, apiViteEntry.pid, apiVitePort);
|
|
1132
1059
|
self._viteShimPid = apiViteEntry.pid;
|
|
1133
1060
|
self._viteShimPort = apiVitePort;
|
|
1134
1061
|
}
|
|
@@ -1141,6 +1068,7 @@ export async function handleFetch(self, request) {
|
|
|
1141
1068
|
await self.ctx.storage.put(VITE_CONFIG_KEY, {
|
|
1142
1069
|
root, aliases: body.aliases, define: body.define,
|
|
1143
1070
|
injectBasename: body.injectBasename, basePath, port: apiVitePort,
|
|
1071
|
+
identity: { cwd: apiViteEntry.cwd, argv: apiViteEntry.argv },
|
|
1144
1072
|
});
|
|
1145
1073
|
return Response.json({ ok: true, root, running: true });
|
|
1146
1074
|
}
|
|
@@ -1240,15 +1168,15 @@ export async function handleFetch(self, request) {
|
|
|
1240
1168
|
const hasSeed = (() => {
|
|
1241
1169
|
try {
|
|
1242
1170
|
const vfs = self.sqliteFs.as(CRED_KERNEL);
|
|
1243
|
-
return vfs.exists(
|
|
1244
|
-
vfs.exists('
|
|
1171
|
+
return vfs.exists(SEED_PROJECT_DIR) &&
|
|
1172
|
+
vfs.exists(SEED_PROJECT_DIR + '/package.json');
|
|
1245
1173
|
}
|
|
1246
1174
|
catch {
|
|
1247
1175
|
return false;
|
|
1248
1176
|
}
|
|
1249
1177
|
})();
|
|
1250
1178
|
const hint = hasSeed
|
|
1251
|
-
?
|
|
1179
|
+
? `cd ${SEED_PROJECT_NAME} && npm install && npm run dev`
|
|
1252
1180
|
: 'vite';
|
|
1253
1181
|
// The placeholder JS polls the session's /api/stats. If this DO was
|
|
1254
1182
|
// reached directly (no session prefix), fall back to a relative path.
|
|
@@ -1337,6 +1265,12 @@ export async function handleFetch(self, request) {
|
|
|
1337
1265
|
const capability = request.headers.get(PREVIEW_CAPABILITY_HEADER);
|
|
1338
1266
|
return routeToSessionPort(self, port, request, path, portRouteMountBase(request, port), capability ?? undefined);
|
|
1339
1267
|
}
|
|
1268
|
+
// ── App route: the same door, addressed by a reservation's name ──
|
|
1269
|
+
const appMatch = url.pathname.match(/^\/app\/([a-z0-9][a-z0-9-]{0,62})(\/.*)?$/);
|
|
1270
|
+
if (appMatch) {
|
|
1271
|
+
const capability = request.headers.get(PREVIEW_CAPABILITY_HEADER);
|
|
1272
|
+
return routeToSessionApp(self, appMatch[1], request, normalizeForwardedHttpPath(appMatch[2] || '/'), capability ?? undefined);
|
|
1273
|
+
}
|
|
1340
1274
|
// ── /api/_diag/cache — per-tier cache observability ───────────────
|
|
1341
1275
|
//
|
|
1342
1276
|
// Cache-observability wave: surfaces the L1/L2/L3/L4 × tarball/
|
|
@@ -1395,7 +1329,9 @@ export async function handleFetch(self, request) {
|
|
|
1395
1329
|
if (!callerScopes.includes('session:admin')) {
|
|
1396
1330
|
return new Response('forbidden: session:admin scope required', { status: 403 });
|
|
1397
1331
|
}
|
|
1398
|
-
|
|
1332
|
+
const { promise: abortDue, resolve: abortReady } = withResolvers();
|
|
1333
|
+
self.ctx.waitUntil(abortDue.then(() => self.ctx.abort()));
|
|
1334
|
+
setTimeout(abortReady, 250);
|
|
1399
1335
|
return new Response(null, { status: 204 });
|
|
1400
1336
|
}
|
|
1401
1337
|
return new Response('Not found', { status: 404 });
|
package/dist/session/rpc.d.ts
CHANGED
|
@@ -21,19 +21,37 @@
|
|
|
21
21
|
* these ~3 sites would each need ctx threaded through; cast at boundary
|
|
22
22
|
* is acceptable per plan §IX recommendation 1.
|
|
23
23
|
*/
|
|
24
|
+
import { SqliteRuntimeFsBridge } from '@nimbus-sh/core/runtime/sqlite-runtime-fs-bridge.js';
|
|
24
25
|
import { type ResidentFacet } from '@nimbus-sh/fabric/workerd-facet-host.js';
|
|
25
26
|
import { type HostedHttpRequest, type HostedHttpResponse } from '@nimbus-sh/fabric/process-host.js';
|
|
26
|
-
import { type RuntimeOpenFlags, type VfsAcquireResult, type VfsListPage } from '@nimbus-sh/core/runtime/os-contracts.js';
|
|
27
|
+
import { type RuntimeOpenFlags, type VfsAcquireResult, type VfsCred, type VfsListPage } from '@nimbus-sh/core/runtime/os-contracts.js';
|
|
27
28
|
import type { WriteBatchStreamResult } from '@nimbus-sh/core/vfs/sqlite-vfs.js';
|
|
28
29
|
import { z } from 'zod/v4';
|
|
29
30
|
type RpcHost = any;
|
|
30
|
-
export declare function
|
|
31
|
+
export declare function checkedReadPayloadBytes(bytes: number): number;
|
|
32
|
+
/**
|
|
33
|
+
* Bytes a ranged read can actually return, so the reservation covers the
|
|
34
|
+
* result rather than the ask. A 64 KiB range over a 200-byte file retains 200
|
|
35
|
+
* bytes; reserving the range would let a handful of small reads exhaust the
|
|
36
|
+
* read reserve and serialise a workload whose real cost is negligible.
|
|
37
|
+
*
|
|
38
|
+
* `stat` here is a local SQLite lookup inside the DO — the same one
|
|
39
|
+
* `_rpcReadFile` makes for the same reason — not a second round trip.
|
|
40
|
+
*/
|
|
41
|
+
export declare function rangeReadBytes(fs: SqliteRuntimeFsBridge, path: string, offset: number, length: number): Promise<number>;
|
|
42
|
+
export declare function withReadAllocation<T>(bytes: number, read: () => Promise<T>): Promise<T>;
|
|
43
|
+
/**
|
|
44
|
+
* `files.readFile` — the read with the supervisor's allocation lease.
|
|
45
|
+
* The body lives in `buildSessionSupervisorOps`'s `readFile` override so
|
|
46
|
+
* direct `_rpc*` calls and the supervisor envelope share it.
|
|
47
|
+
*/
|
|
48
|
+
export declare function _rpcReadFile(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<string | null>;
|
|
31
49
|
/**
|
|
32
50
|
* Read a file as raw bytes (Uint8Array). Used by git network facet for
|
|
33
51
|
* binary .git/objects/** and packfile reads, where TextDecoder/TextEncoder
|
|
34
52
|
* round-tripping through readFile (string) would corrupt bytes.
|
|
35
53
|
*/
|
|
36
|
-
export declare function _rpcReadFileBytes(self: RpcHost, path: string, pid?: number): Promise<Uint8Array | null>;
|
|
54
|
+
export declare function _rpcReadFileBytes(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<Uint8Array | null>;
|
|
37
55
|
/**
|
|
38
56
|
* Phase-3 inner-DO fetch dispatcher. Called by NimbusDOStub.fetch()
|
|
39
57
|
* from the inner Worker via the env.NIMBUS_SESSION loopback. We
|
|
@@ -58,7 +76,7 @@ export declare function _rpcInnerDoFetch(self: RpcHost, req: {
|
|
|
58
76
|
headers: [string, string][];
|
|
59
77
|
body: ArrayBuffer | null;
|
|
60
78
|
}>;
|
|
61
|
-
export declare function _rpcWriteFile(self: RpcHost, path: string, content: string | Uint8Array, pid?: number): Promise<number>;
|
|
79
|
+
export declare function _rpcWriteFile(self: RpcHost, path: string, content: string | Uint8Array, pid?: number, cred?: VfsCred): Promise<number>;
|
|
62
80
|
/**
|
|
63
81
|
* Write one host-governed file at a session root and let ordinary Unix
|
|
64
82
|
* permissions keep it that way: the root becomes a sticky 1777 directory owned
|
|
@@ -74,26 +92,31 @@ export declare function _rpcWriteFile(self: RpcHost, path: string, content: stri
|
|
|
74
92
|
* may write it.
|
|
75
93
|
*/
|
|
76
94
|
export declare function _rpcWriteProtectedRootFile(self: RpcHost, rootPath: string, path: string, content: string | Uint8Array): Promise<void>;
|
|
77
|
-
export declare function _rpcStat(self: RpcHost, path: string, pid?: number): Promise<any>;
|
|
78
|
-
export declare function _rpcLstat(self: RpcHost, path: string, pid?: number): Promise<any>;
|
|
95
|
+
export declare function _rpcStat(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<any>;
|
|
96
|
+
export declare function _rpcLstat(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<any>;
|
|
79
97
|
export declare function _rpcHasLegacySymlinkUnder(self: RpcHost, path: string, pid?: number): Promise<boolean>;
|
|
80
98
|
export declare function _rpcUtimes(self: RpcHost, path: string, atimeMs: number, mtimeMs: number, pid?: number): Promise<void>;
|
|
81
|
-
export declare function _rpcChmod(self: RpcHost, path: string, mode: number, pid?: number): Promise<void>;
|
|
99
|
+
export declare function _rpcChmod(self: RpcHost, path: string, mode: number, pid?: number, cred?: VfsCred): Promise<void>;
|
|
82
100
|
export declare function _rpcAccess(self: RpcHost, path: string, mode: number, pid?: number): Promise<void>;
|
|
83
101
|
export declare function _rpcChown(self: RpcHost, path: string, uid: number, gid: number, pid?: number, options?: {
|
|
84
102
|
followSymlinks?: boolean;
|
|
85
103
|
}): Promise<void>;
|
|
86
104
|
export declare function _rpcSetUmask(self: RpcHost, mask: number, pid?: number): Promise<number>;
|
|
87
|
-
export declare function _rpcReaddir(self: RpcHost, path: string, pid?: number): Promise<{
|
|
105
|
+
export declare function _rpcReaddir(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<{
|
|
88
106
|
name: string;
|
|
89
107
|
type: string;
|
|
90
108
|
}[]>;
|
|
91
|
-
export declare function _rpcExists(self: RpcHost, path: string, pid?: number): Promise<boolean>;
|
|
92
|
-
export declare function _rpcMkdir(self: RpcHost, path: string, pid?: number): Promise<void>;
|
|
109
|
+
export declare function _rpcExists(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<boolean>;
|
|
110
|
+
export declare function _rpcMkdir(self: RpcHost, path: string, pid?: number, cred?: VfsCred): Promise<void>;
|
|
93
111
|
export declare function _rpcRmdir(self: RpcHost, path: string, pid?: number): Promise<void>;
|
|
94
|
-
export declare function _rpcRename(self: RpcHost, from: string, to: string, pid?: number): Promise<void>;
|
|
112
|
+
export declare function _rpcRename(self: RpcHost, from: string, to: string, pid?: number, cred?: VfsCred): Promise<void>;
|
|
95
113
|
export declare function _rpcReadlink(self: RpcHost, path: string, pid?: number): Promise<string | null>;
|
|
96
114
|
export declare function _rpcSymlink(self: RpcHost, target: string, path: string, pid?: number): Promise<void>;
|
|
115
|
+
export declare const FsReadRangeArgsSchema: z.ZodObject<{
|
|
116
|
+
path: z.ZodString;
|
|
117
|
+
offset: z.ZodNumber;
|
|
118
|
+
length: z.ZodNumber;
|
|
119
|
+
}, z.core.$strip>;
|
|
97
120
|
declare const FsReadBatchArgsSchema: z.ZodArray<z.ZodObject<{
|
|
98
121
|
path: z.ZodString;
|
|
99
122
|
offset: z.ZodNumber;
|
|
@@ -135,12 +158,12 @@ export declare function _rpcFsAcquire(self: RpcHost, epoch: string | null, curso
|
|
|
135
158
|
/**
|
|
136
159
|
* Enumerate the session filesystem for a process, one bounded page at a time.
|
|
137
160
|
*
|
|
138
|
-
* Goes through `
|
|
161
|
+
* Goes through `self.supervisorBridge(pid)` like every other fs RPC, so the listing
|
|
139
162
|
* is filtered by the calling process's own credential rather than the kernel's
|
|
140
163
|
* — a process must not learn of a path it could not stat.
|
|
141
164
|
*/
|
|
142
165
|
export declare function _rpcFsList(self: RpcHost, after: string | null, limit: number | null, pid?: number): Promise<VfsListPage>;
|
|
143
|
-
export declare function _rpcFsReadRange(self: RpcHost, path: string, offset: number, length: number, pid?: number): Promise<Uint8Array | null>;
|
|
166
|
+
export declare function _rpcFsReadRange(self: RpcHost, path: string, offset: number, length: number, pid?: number, cred?: VfsCred): Promise<Uint8Array | null>;
|
|
144
167
|
/**
|
|
145
168
|
* The same read, through the same process credential and the same bridge, with
|
|
146
169
|
* the LRU content cache bypassed.
|
|
@@ -235,8 +258,8 @@ export declare function _rpcPutRegistryEntries(self: RpcHost, entries: any[]): P
|
|
|
235
258
|
failed: number;
|
|
236
259
|
}>;
|
|
237
260
|
export declare const PRIOR_GENERATION_EXIT_REASON = "process lost: instance reset";
|
|
238
|
-
export declare function _rpcStdout(self: RpcHost, pid: number, data:
|
|
239
|
-
export declare function _rpcStderr(self: RpcHost, pid: number, data:
|
|
261
|
+
export declare function _rpcStdout(self: RpcHost, pid: number, data: Uint8Array): Promise<void>;
|
|
262
|
+
export declare function _rpcStderr(self: RpcHost, pid: number, data: Uint8Array): Promise<void>;
|
|
240
263
|
/**
|
|
241
264
|
* Called by facets from their `finally` block after I/O has drained.
|
|
242
265
|
* Marks the log store so `logs` / `ps` can show the exit code, and
|
|
@@ -308,7 +331,7 @@ export declare function _rpcTransform(self: RpcHost, code: string, loader: strin
|
|
|
308
331
|
export declare function _rpcCpSpawn(self: RpcHost, req: any): Promise<{
|
|
309
332
|
childPid: number;
|
|
310
333
|
}>;
|
|
311
|
-
export declare function _rpcCpStdinWrite(self: RpcHost, childPid: number, data:
|
|
334
|
+
export declare function _rpcCpStdinWrite(self: RpcHost, childPid: number, data: Uint8Array): Promise<{
|
|
312
335
|
ok: boolean;
|
|
313
336
|
}>;
|
|
314
337
|
export declare function _rpcCpStdinEnd(self: RpcHost, childPid: number): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../src/session/rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAgBH,OAAO,EAEL,KAAK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