@nimbus-sh/worker 0.1.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 +219 -0
- package/dist/_shared/bytes.d.ts +18 -0
- package/dist/_shared/bytes.d.ts.map +1 -0
- package/dist/_shared/bytes.js +17 -0
- package/dist/_shared/cache-stats.d.ts +146 -0
- package/dist/_shared/cache-stats.d.ts.map +1 -0
- package/dist/_shared/cache-stats.js +162 -0
- package/dist/_shared/exports-resolver.d.ts +76 -0
- package/dist/_shared/exports-resolver.d.ts.map +1 -0
- package/dist/_shared/exports-resolver.js +284 -0
- package/dist/_shared/install-phase.d.ts +47 -0
- package/dist/_shared/install-phase.d.ts.map +1 -0
- package/dist/_shared/install-phase.js +1 -0
- package/dist/_shared/real-node-imports.d.ts +38 -0
- package/dist/_shared/real-node-imports.d.ts.map +1 -0
- package/dist/_shared/real-node-imports.js +46 -0
- package/dist/_shared/retry.d.ts +93 -0
- package/dist/_shared/retry.d.ts.map +1 -0
- package/dist/_shared/retry.js +161 -0
- package/dist/_shared/session-id.d.ts +39 -0
- package/dist/_shared/session-id.d.ts.map +1 -0
- package/dist/_shared/session-id.js +127 -0
- package/dist/_shared/session-router.d.ts +104 -0
- package/dist/_shared/session-router.d.ts.map +1 -0
- package/dist/_shared/session-router.js +165 -0
- package/dist/_shared/w7-frame.d.ts +93 -0
- package/dist/_shared/w7-frame.d.ts.map +1 -0
- package/dist/_shared/w7-frame.js +402 -0
- package/dist/auth/index.d.ts +16 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +15 -0
- package/dist/auth/middleware.d.ts +85 -0
- package/dist/auth/middleware.d.ts.map +1 -0
- package/dist/auth/middleware.js +150 -0
- package/dist/auth/token.d.ts +96 -0
- package/dist/auth/token.d.ts.map +1 -0
- package/dist/auth/token.js +226 -0
- package/dist/auth/types.d.ts +141 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/types.js +114 -0
- package/dist/bindings/d1.d.ts +102 -0
- package/dist/bindings/d1.d.ts.map +1 -0
- package/dist/bindings/d1.js +549 -0
- package/dist/bindings/kv.d.ts +82 -0
- package/dist/bindings/kv.d.ts.map +1 -0
- package/dist/bindings/kv.js +290 -0
- package/dist/bindings/r2.d.ts +137 -0
- package/dist/bindings/r2.d.ts.map +1 -0
- package/dist/bindings/r2.js +379 -0
- package/dist/cirrus-npm-cjs.generated.d.ts +17 -0
- package/dist/cirrus-npm-cjs.generated.d.ts.map +1 -0
- package/dist/cirrus-npm-cjs.generated.js +41 -0
- package/dist/cirrus-plugin-react.generated.d.ts +34 -0
- package/dist/cirrus-plugin-react.generated.d.ts.map +1 -0
- package/dist/cirrus-plugin-react.generated.js +33 -0
- package/dist/constants.d.ts +34 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +116 -0
- package/dist/esbuild-wasm-bundle.generated.d.ts +41 -0
- package/dist/esbuild-wasm-bundle.generated.d.ts.map +1 -0
- package/dist/esbuild-wasm-bundle.generated.js +40 -0
- package/dist/facets/cirrus-real.d.ts +147 -0
- package/dist/facets/cirrus-real.d.ts.map +1 -0
- package/dist/facets/cirrus-real.js +981 -0
- package/dist/facets/inner-do-registry.d.ts +41 -0
- package/dist/facets/inner-do-registry.d.ts.map +1 -0
- package/dist/facets/inner-do-registry.js +51 -0
- package/dist/facets/manager.d.ts +314 -0
- package/dist/facets/manager.d.ts.map +1 -0
- package/dist/facets/manager.js +2681 -0
- package/dist/facets/process.d.ts +318 -0
- package/dist/facets/process.d.ts.map +1 -0
- package/dist/facets/process.js +567 -0
- package/dist/facets/real-vite-fs-shim.d.ts +151 -0
- package/dist/facets/real-vite-fs-shim.d.ts.map +1 -0
- package/dist/facets/real-vite-fs-shim.js +1279 -0
- package/dist/facets/real-vite-hmr.d.ts +142 -0
- package/dist/facets/real-vite-hmr.d.ts.map +1 -0
- package/dist/facets/real-vite-hmr.js +476 -0
- package/dist/facets/vite-dev-server.d.ts +293 -0
- package/dist/facets/vite-dev-server.d.ts.map +1 -0
- package/dist/facets/vite-dev-server.js +2580 -0
- package/dist/facets/wasm-swap-registry.d.ts +261 -0
- package/dist/facets/wasm-swap-registry.d.ts.map +1 -0
- package/dist/facets/wasm-swap-registry.js +551 -0
- package/dist/facets/ws-terminal.d.ts +107 -0
- package/dist/facets/ws-terminal.d.ts.map +1 -0
- package/dist/facets/ws-terminal.js +207 -0
- package/dist/git/commands.d.ts +13 -0
- package/dist/git/commands.d.ts.map +1 -0
- package/dist/git/commands.js +633 -0
- package/dist/git/network-facet.d.ts +61 -0
- package/dist/git/network-facet.d.ts.map +1 -0
- package/dist/git/network-facet.js +700 -0
- package/dist/git-bundle.generated.d.ts +16 -0
- package/dist/git-bundle.generated.d.ts.map +1 -0
- package/dist/git-bundle.generated.js +15 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/loaders/child-process/spawn-facet.d.ts +90 -0
- package/dist/loaders/child-process/spawn-facet.d.ts.map +1 -0
- package/dist/loaders/child-process/spawn-facet.js +103 -0
- package/dist/loaders/child-process/spawn-pool.d.ts +110 -0
- package/dist/loaders/child-process/spawn-pool.d.ts.map +1 -0
- package/dist/loaders/child-process/spawn-pool.js +161 -0
- package/dist/loaders/fanout-pool.d.ts +195 -0
- package/dist/loaders/fanout-pool.d.ts.map +1 -0
- package/dist/loaders/fanout-pool.js +326 -0
- package/dist/loaders/generated-workers.d.ts +26 -0
- package/dist/loaders/generated-workers.d.ts.map +1 -0
- package/dist/loaders/generated-workers.js +25 -0
- package/dist/loaders/index.d.ts +15 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/loaders/index.js +13 -0
- package/dist/loaders/loader-pool.d.ts +273 -0
- package/dist/loaders/loader-pool.d.ts.map +1 -0
- package/dist/loaders/loader-pool.js +624 -0
- package/dist/loaders/npm-resolve-preamble.d.ts +34 -0
- package/dist/loaders/npm-resolve-preamble.d.ts.map +1 -0
- package/dist/loaders/npm-resolve-preamble.js +237 -0
- package/dist/loaders/pre-bundle-preamble.d.ts +41 -0
- package/dist/loaders/pre-bundle-preamble.d.ts.map +1 -0
- package/dist/loaders/pre-bundle-preamble.js +114 -0
- package/dist/loaders/vendor/codegen.d.ts +24 -0
- package/dist/loaders/vendor/codegen.d.ts.map +1 -0
- package/dist/loaders/vendor/codegen.js +44 -0
- package/dist/loaders/vendor/errors.d.ts +24 -0
- package/dist/loaders/vendor/errors.d.ts.map +1 -0
- package/dist/loaders/vendor/errors.js +46 -0
- package/dist/loaders/vendor/index.d.ts +16 -0
- package/dist/loaders/vendor/index.d.ts.map +1 -0
- package/dist/loaders/vendor/index.js +11 -0
- package/dist/loaders/vendor/pool.d.ts +88 -0
- package/dist/loaders/vendor/pool.d.ts.map +1 -0
- package/dist/loaders/vendor/pool.js +353 -0
- package/dist/loaders/vendor/primitives.d.ts +11 -0
- package/dist/loaders/vendor/primitives.d.ts.map +1 -0
- package/dist/loaders/vendor/primitives.js +33 -0
- package/dist/loaders/vendor/serialize.d.ts +3 -0
- package/dist/loaders/vendor/serialize.d.ts.map +1 -0
- package/dist/loaders/vendor/serialize.js +25 -0
- package/dist/loaders/vendor/types.d.ts +60 -0
- package/dist/loaders/vendor/types.d.ts.map +1 -0
- package/dist/loaders/vendor/types.js +4 -0
- package/dist/npm/cache.d.ts +136 -0
- package/dist/npm/cache.d.ts.map +1 -0
- package/dist/npm/cache.js +429 -0
- package/dist/npm/install-batch-facet.d.ts +129 -0
- package/dist/npm/install-batch-facet.d.ts.map +1 -0
- package/dist/npm/install-batch-facet.js +598 -0
- package/dist/npm/install-facet.d.ts +29 -0
- package/dist/npm/install-facet.d.ts.map +1 -0
- package/dist/npm/install-facet.js +9 -0
- package/dist/npm/installer.d.ts +239 -0
- package/dist/npm/installer.d.ts.map +1 -0
- package/dist/npm/installer.js +2022 -0
- package/dist/npm/npx-install.d.ts +74 -0
- package/dist/npm/npx-install.d.ts.map +1 -0
- package/dist/npm/npx-install.js +302 -0
- package/dist/npm/pre-bundle-facet.d.ts +168 -0
- package/dist/npm/pre-bundle-facet.d.ts.map +1 -0
- package/dist/npm/pre-bundle-facet.js +653 -0
- package/dist/npm/r2-cache.d.ts +286 -0
- package/dist/npm/r2-cache.d.ts.map +1 -0
- package/dist/npm/r2-cache.js +506 -0
- package/dist/npm/resolve-facet.d.ts +202 -0
- package/dist/npm/resolve-facet.d.ts.map +1 -0
- package/dist/npm/resolve-facet.js +833 -0
- package/dist/npm/resolve-one-facet.d.ts +204 -0
- package/dist/npm/resolve-one-facet.d.ts.map +1 -0
- package/dist/npm/resolve-one-facet.js +437 -0
- package/dist/npm/resolver.d.ts +109 -0
- package/dist/npm/resolver.d.ts.map +1 -0
- package/dist/npm/resolver.js +899 -0
- package/dist/npm/tarball-stream.d.ts +85 -0
- package/dist/npm/tarball-stream.d.ts.map +1 -0
- package/dist/npm/tarball-stream.js +205 -0
- package/dist/npm/tarball.d.ts +51 -0
- package/dist/npm/tarball.d.ts.map +1 -0
- package/dist/npm/tarball.js +185 -0
- package/dist/observability/diag-counters.d.ts +292 -0
- package/dist/observability/diag-counters.d.ts.map +1 -0
- package/dist/observability/diag-counters.js +302 -0
- package/dist/observability/heap-estimate.d.ts +166 -0
- package/dist/observability/heap-estimate.d.ts.map +1 -0
- package/dist/observability/heap-estimate.js +192 -0
- package/dist/observability/heavy-alloc-coord.d.ts +95 -0
- package/dist/observability/heavy-alloc-coord.d.ts.map +1 -0
- package/dist/observability/heavy-alloc-coord.js +149 -0
- package/dist/observability/oom-classify.d.ts +56 -0
- package/dist/observability/oom-classify.d.ts.map +1 -0
- package/dist/observability/oom-classify.js +118 -0
- package/dist/observability/oom-discriminator.d.ts +192 -0
- package/dist/observability/oom-discriminator.d.ts.map +1 -0
- package/dist/observability/oom-discriminator.js +233 -0
- package/dist/real-vite-bundle.generated.d.ts +46 -0
- package/dist/real-vite-bundle.generated.d.ts.map +1 -0
- package/dist/real-vite-bundle.generated.js +53 -0
- package/dist/replica/routing.d.ts +171 -0
- package/dist/replica/routing.d.ts.map +1 -0
- package/dist/replica/routing.js +288 -0
- package/dist/replica/suspension.d.ts +36 -0
- package/dist/replica/suspension.d.ts.map +1 -0
- package/dist/replica/suspension.js +49 -0
- package/dist/router/index.d.ts +156 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/index.js +220 -0
- package/dist/runtime/assets-loader.d.ts +71 -0
- package/dist/runtime/assets-loader.d.ts.map +1 -0
- package/dist/runtime/assets-loader.js +128 -0
- package/dist/runtime/barrel-detect.d.ts +46 -0
- package/dist/runtime/barrel-detect.d.ts.map +1 -0
- package/dist/runtime/barrel-detect.js +73 -0
- package/dist/runtime/barrel-synthesizer.d.ts +181 -0
- package/dist/runtime/barrel-synthesizer.d.ts.map +1 -0
- package/dist/runtime/barrel-synthesizer.js +541 -0
- package/dist/runtime/bun-repl.d.ts +46 -0
- package/dist/runtime/bun-repl.d.ts.map +1 -0
- package/dist/runtime/bun-repl.js +326 -0
- package/dist/runtime/bun-runner.d.ts +66 -0
- package/dist/runtime/bun-runner.d.ts.map +1 -0
- package/dist/runtime/bun-runner.js +219 -0
- package/dist/runtime/clang-runner.d.ts +38 -0
- package/dist/runtime/clang-runner.d.ts.map +1 -0
- package/dist/runtime/clang-runner.js +1033 -0
- package/dist/runtime/comment-strip.d.ts +37 -0
- package/dist/runtime/comment-strip.d.ts.map +1 -0
- package/dist/runtime/comment-strip.js +74 -0
- package/dist/runtime/esbuild-service.d.ts +201 -0
- package/dist/runtime/esbuild-service.d.ts.map +1 -0
- package/dist/runtime/esbuild-service.js +1444 -0
- package/dist/runtime/esbuild-wasm-bytes.d.ts +87 -0
- package/dist/runtime/esbuild-wasm-bytes.d.ts.map +1 -0
- package/dist/runtime/esbuild-wasm-bytes.js +131 -0
- package/dist/runtime/framework-detect.d.ts +71 -0
- package/dist/runtime/framework-detect.d.ts.map +1 -0
- package/dist/runtime/framework-detect.js +178 -0
- package/dist/runtime/long-running-handle.d.ts +133 -0
- package/dist/runtime/long-running-handle.d.ts.map +1 -0
- package/dist/runtime/long-running-handle.js +192 -0
- package/dist/runtime/node-repl.d.ts +36 -0
- package/dist/runtime/node-repl.d.ts.map +1 -0
- package/dist/runtime/node-repl.js +293 -0
- package/dist/runtime/node-runner.d.ts +111 -0
- package/dist/runtime/node-runner.d.ts.map +1 -0
- package/dist/runtime/node-runner.js +194 -0
- package/dist/runtime/node-shims.d.ts +24 -0
- package/dist/runtime/node-shims.d.ts.map +1 -0
- package/dist/runtime/node-shims.js +3019 -0
- package/dist/runtime/package-manager.d.ts +118 -0
- package/dist/runtime/package-manager.d.ts.map +1 -0
- package/dist/runtime/package-manager.js +420 -0
- package/dist/runtime/port-registry.d.ts +80 -0
- package/dist/runtime/port-registry.d.ts.map +1 -0
- package/dist/runtime/port-registry.js +166 -0
- package/dist/runtime/process-logs-api.d.ts +102 -0
- package/dist/runtime/process-logs-api.d.ts.map +1 -0
- package/dist/runtime/process-logs-api.js +253 -0
- package/dist/runtime/process-logs.d.ts +311 -0
- package/dist/runtime/process-logs.d.ts.map +1 -0
- package/dist/runtime/process-logs.js +656 -0
- package/dist/runtime/process-table.d.ts +65 -0
- package/dist/runtime/process-table.d.ts.map +1 -0
- package/dist/runtime/process-table.js +107 -0
- package/dist/runtime/project-detect.d.ts +21 -0
- package/dist/runtime/project-detect.d.ts.map +1 -0
- package/dist/runtime/project-detect.js +46 -0
- package/dist/runtime/python-repl.d.ts +66 -0
- package/dist/runtime/python-repl.d.ts.map +1 -0
- package/dist/runtime/python-repl.js +563 -0
- package/dist/runtime/python-runner.d.ts +50 -0
- package/dist/runtime/python-runner.d.ts.map +1 -0
- package/dist/runtime/python-runner.js +870 -0
- package/dist/runtime/repl-session.d.ts +160 -0
- package/dist/runtime/repl-session.d.ts.map +1 -0
- package/dist/runtime/repl-session.js +393 -0
- package/dist/runtime/require-resolver.d.ts +52 -0
- package/dist/runtime/require-resolver.d.ts.map +1 -0
- package/dist/runtime/require-resolver.js +690 -0
- package/dist/runtime/router-basename.d.ts +36 -0
- package/dist/runtime/router-basename.d.ts.map +1 -0
- package/dist/runtime/router-basename.js +310 -0
- package/dist/runtime/ruby-repl.d.ts +43 -0
- package/dist/runtime/ruby-repl.d.ts.map +1 -0
- package/dist/runtime/ruby-repl.js +229 -0
- package/dist/runtime/ruby-runner.d.ts +62 -0
- package/dist/runtime/ruby-runner.d.ts.map +1 -0
- package/dist/runtime/ruby-runner.js +737 -0
- package/dist/runtime/runtime-catalog.d.ts +99 -0
- package/dist/runtime/runtime-catalog.d.ts.map +1 -0
- package/dist/runtime/runtime-catalog.js +183 -0
- package/dist/runtime/runtime-registry.d.ts +136 -0
- package/dist/runtime/runtime-registry.d.ts.map +1 -0
- package/dist/runtime/runtime-registry.js +318 -0
- package/dist/runtime/streams.d.ts +13 -0
- package/dist/runtime/streams.d.ts.map +1 -0
- package/dist/runtime/streams.js +402 -0
- package/dist/runtime/wasi-instance.d.ts +190 -0
- package/dist/runtime/wasi-instance.d.ts.map +1 -0
- package/dist/runtime/wasi-instance.js +2044 -0
- package/dist/runtime/wasm-runner.d.ts +117 -0
- package/dist/runtime/wasm-runner.d.ts.map +1 -0
- package/dist/runtime/wasm-runner.js +705 -0
- package/dist/session/bindings.d.ts +168 -0
- package/dist/session/bindings.d.ts.map +1 -0
- package/dist/session/bindings.js +524 -0
- package/dist/session/ctx-exports.d.ts +16 -0
- package/dist/session/ctx-exports.d.ts.map +1 -0
- package/dist/session/ctx-exports.js +22 -0
- package/dist/session/diag.d.ts +62 -0
- package/dist/session/diag.d.ts.map +1 -0
- package/dist/session/diag.js +118 -0
- package/dist/session/fs-watch.d.ts +132 -0
- package/dist/session/fs-watch.d.ts.map +1 -0
- package/dist/session/fs-watch.js +255 -0
- package/dist/session/helpers.d.ts +150 -0
- package/dist/session/helpers.d.ts.map +1 -0
- package/dist/session/helpers.js +472 -0
- package/dist/session/hibernation.d.ts +145 -0
- package/dist/session/hibernation.d.ts.map +1 -0
- package/dist/session/hibernation.js +385 -0
- package/dist/session/init-phases.d.ts +87 -0
- package/dist/session/init-phases.d.ts.map +1 -0
- package/dist/session/init-phases.js +137 -0
- package/dist/session/init.d.ts +46 -0
- package/dist/session/init.d.ts.map +1 -0
- package/dist/session/init.js +3579 -0
- package/dist/session/keys.d.ts +56 -0
- package/dist/session/keys.d.ts.map +1 -0
- package/dist/session/keys.js +55 -0
- package/dist/session/nimbus-session.d.ts +434 -0
- package/dist/session/nimbus-session.d.ts.map +1 -0
- package/dist/session/nimbus-session.js +1084 -0
- package/dist/session/programmatic.d.ts +105 -0
- package/dist/session/programmatic.d.ts.map +1 -0
- package/dist/session/programmatic.js +326 -0
- package/dist/session/replica-routes.d.ts +68 -0
- package/dist/session/replica-routes.d.ts.map +1 -0
- package/dist/session/replica-routes.js +77 -0
- package/dist/session/routes.d.ts +29 -0
- package/dist/session/routes.d.ts.map +1 -0
- package/dist/session/routes.js +1331 -0
- package/dist/session/rpc.d.ts +323 -0
- package/dist/session/rpc.d.ts.map +1 -0
- package/dist/session/rpc.js +808 -0
- package/dist/session/state-store.d.ts +210 -0
- package/dist/session/state-store.d.ts.map +1 -0
- package/dist/session/state-store.js +459 -0
- package/dist/session/supervisor-rpc.d.ts +269 -0
- package/dist/session/supervisor-rpc.d.ts.map +1 -0
- package/dist/session/supervisor-rpc.js +437 -0
- package/dist/session/ws-hibernation-config.d.ts +64 -0
- package/dist/session/ws-hibernation-config.d.ts.map +1 -0
- package/dist/session/ws-hibernation-config.js +89 -0
- package/dist/session/ws.d.ts +95 -0
- package/dist/session/ws.d.ts.map +1 -0
- package/dist/session/ws.js +395 -0
- package/dist/shell/features.d.ts +410 -0
- package/dist/shell/features.d.ts.map +1 -0
- package/dist/shell/features.js +1885 -0
- package/dist/shell/unix-commands.d.ts +15 -0
- package/dist/shell/unix-commands.d.ts.map +1 -0
- package/dist/shell/unix-commands.js +3703 -0
- package/dist/stubs/lifo-ui.d.ts +10 -0
- package/dist/stubs/lifo-ui.d.ts.map +1 -0
- package/dist/stubs/lifo-ui.js +1 -0
- package/dist/tailwind-play.generated.d.ts +19 -0
- package/dist/tailwind-play.generated.d.ts.map +1 -0
- package/dist/tailwind-play.generated.js +18 -0
- package/dist/vfs/dev-provider.d.ts +64 -0
- package/dist/vfs/dev-provider.d.ts.map +1 -0
- package/dist/vfs/dev-provider.js +191 -0
- package/dist/vfs/events.d.ts +51 -0
- package/dist/vfs/events.d.ts.map +1 -0
- package/dist/vfs/events.js +127 -0
- package/dist/vfs/path.d.ts +30 -0
- package/dist/vfs/path.d.ts.map +1 -0
- package/dist/vfs/path.js +41 -0
- package/dist/vfs/seed-project.d.ts +62 -0
- package/dist/vfs/seed-project.d.ts.map +1 -0
- package/dist/vfs/seed-project.js +1045 -0
- package/dist/vfs/sqlite-vfs.d.ts +435 -0
- package/dist/vfs/sqlite-vfs.d.ts.map +1 -0
- package/dist/vfs/sqlite-vfs.js +1670 -0
- package/dist/vfs/symlink-registry.d.ts +64 -0
- package/dist/vfs/symlink-registry.d.ts.map +1 -0
- package/dist/vfs/symlink-registry.js +137 -0
- package/dist/wrangler/nimbus-wrangler.d.ts +157 -0
- package/dist/wrangler/nimbus-wrangler.d.ts.map +1 -0
- package/dist/wrangler/nimbus-wrangler.js +931 -0
- package/package.json +77 -0
- package/public/_assets/cirrus-plugin-react.bundle.js +70740 -0
- package/public/_assets/esbuild-0.24.2.wasm +0 -0
- package/public/_assets/real-vite-bundle.js +101478 -0
- package/public/_assets/rollup.wasm +0 -0
- package/public/favicon.svg +8 -0
- package/public/index.html +565 -0
- package/public/s/index.html +2379 -0
- package/scripts/bundle-esbuild-wasm.mjs +244 -0
- package/scripts/bundle-facet-workers.mjs +137 -0
- package/scripts/bundle-git.mjs +118 -0
- package/scripts/bundle-npm-cjs.mjs +363 -0
- package/scripts/bundle-plugin-react.mjs +480 -0
- package/scripts/bundle-real-vite.mjs +959 -0
- package/scripts/bundle-runtime.mjs +600 -0
- package/scripts/bundle-tailwind-play.mjs +130 -0
- package/scripts/patch-lifo-ui.mjs +131 -0
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SqliteVFS — Demand-paged virtual filesystem on DO SQLite.
|
|
3
|
+
*
|
|
4
|
+
* Architecture (from webcontainer-v2-feasibility.md §4):
|
|
5
|
+
*
|
|
6
|
+
* ┌─────────────────────────────────────────┐
|
|
7
|
+
* │ Nimbus VFS (in-memory) │
|
|
8
|
+
* │ INode tree: always-resident metadata │ ~10-20 MB for 50K files
|
|
9
|
+
* │ ContentCache: LRU file content cache │ ~32 MB (512 × 64KB)
|
|
10
|
+
* │ ─────────────────────────────────────── │
|
|
11
|
+
* │ On cache miss → SQLite read │
|
|
12
|
+
* │ On eviction → SQLite write (if dirty) │
|
|
13
|
+
* │ On npm install → batch SQLite writes │
|
|
14
|
+
* └─────────────────────────────────────────┘
|
|
15
|
+
* │ │
|
|
16
|
+
* ▼ ▼
|
|
17
|
+
* ┌─────────────────┐ ┌─────────────────────┐
|
|
18
|
+
* │ file_chunks │ │ inodes │
|
|
19
|
+
* │ (path, chunk_id,│ │ (path, type, mode, │
|
|
20
|
+
* │ data BLOB) │ │ size, mtime, ...) │
|
|
21
|
+
* │ 64KB chunks │ │ │
|
|
22
|
+
* └─────────────────┘ └─────────────────────┘
|
|
23
|
+
* DO SQLite (10 GB)
|
|
24
|
+
*
|
|
25
|
+
* Key design from do86's SqlPageStore:
|
|
26
|
+
* - LRU eviction with dirty-write-back
|
|
27
|
+
* - Microtask-deferred batch writes (64 rows per INSERT)
|
|
28
|
+
* - All operations SYNCHRONOUS (DO sql.exec() is sync)
|
|
29
|
+
*
|
|
30
|
+
* Durability (audit C1):
|
|
31
|
+
* - writeFile() returns void (sync) — preserved to match LIFO's
|
|
32
|
+
* MountProvider.writeFile(subpath, content): void contract.
|
|
33
|
+
* - Deferred-flush failures (from transactionSync or individual row
|
|
34
|
+
* inserts) are retried ONCE without a transaction wrapper. Entries
|
|
35
|
+
* that fail both attempts land in failedWrites and are surfaced to
|
|
36
|
+
* subscribers via onWriteError(). flushAll() throws if any failed
|
|
37
|
+
* writes accumulated since last clearWriteFailures().
|
|
38
|
+
* - Callers that need a hard guarantee can use flushAndWait() (async)
|
|
39
|
+
* at explicit persistence boundaries.
|
|
40
|
+
*
|
|
41
|
+
* Key design decisions:
|
|
42
|
+
* - 64KB chunks (not 4KB): file access is sequential, fewer rows
|
|
43
|
+
* - INode metadata always in memory (small: ~200B per file)
|
|
44
|
+
* - File content demand-paged through LRU cache
|
|
45
|
+
*/
|
|
46
|
+
import { VfsEventEmitter } from './events.js';
|
|
47
|
+
/** Entry for bulk inode creation via writeBatch(). */
|
|
48
|
+
export interface BatchInodeEntry {
|
|
49
|
+
path: string;
|
|
50
|
+
parentPath: string;
|
|
51
|
+
isDir: boolean;
|
|
52
|
+
size: number;
|
|
53
|
+
mtime: number;
|
|
54
|
+
mode: number;
|
|
55
|
+
chunkCount: number;
|
|
56
|
+
}
|
|
57
|
+
/** Entry for bulk chunk creation via writeBatch(). */
|
|
58
|
+
export interface BatchChunkEntry {
|
|
59
|
+
path: string;
|
|
60
|
+
chunkId: number;
|
|
61
|
+
data: Uint8Array;
|
|
62
|
+
}
|
|
63
|
+
/** Payload for writeBatch() — all inodes + chunks written in ONE transactionSync(). */
|
|
64
|
+
export interface BatchWritePayload {
|
|
65
|
+
inodes: BatchInodeEntry[];
|
|
66
|
+
chunks: BatchChunkEntry[];
|
|
67
|
+
/** Paths to delete before writing (for clean reinstall). */
|
|
68
|
+
deletePaths?: string[];
|
|
69
|
+
}
|
|
70
|
+
export declare class SqliteVFS {
|
|
71
|
+
private sql;
|
|
72
|
+
private ctx;
|
|
73
|
+
readonly events: VfsEventEmitter;
|
|
74
|
+
private inodes;
|
|
75
|
+
/** Children index: parentPath → Set of child paths. O(1) readdir. */
|
|
76
|
+
private children;
|
|
77
|
+
private cache;
|
|
78
|
+
/** Actual bytes in cache (not all chunks are full 64KB) */
|
|
79
|
+
private _cacheBytes;
|
|
80
|
+
private _lruMaxEntries;
|
|
81
|
+
private _lruShrinkRefcount;
|
|
82
|
+
private _totalFiles;
|
|
83
|
+
private _totalDirs;
|
|
84
|
+
private _usedBytes;
|
|
85
|
+
private pendingWrites;
|
|
86
|
+
/**
|
|
87
|
+
* Sum of `data.length` across pendingWrites entries. Maintained
|
|
88
|
+
* in lockstep with the Map by every code path that mutates it
|
|
89
|
+
* (deferWrite/clearPendingWritesForPath/flushPendingWrites/
|
|
90
|
+
* cleanupAfterDelete). Read by getStats() so /api/_diag/memory's
|
|
91
|
+
* `heap.breakdown.vfsInFlightBytes` is no longer a hardcoded 0.
|
|
92
|
+
* (N3, heap-correctness wave.)
|
|
93
|
+
*/
|
|
94
|
+
private _pendingWriteBytes;
|
|
95
|
+
/**
|
|
96
|
+
* N2 (heap-correctness wave). Sum of bytes currently held in the
|
|
97
|
+
* `chunks: []` spool inside writeStream(). Maintained per-chunk so
|
|
98
|
+
* a long-running drain shows live, not the steady-state 0.
|
|
99
|
+
* Reset (or decremented to the drained amount) inside writeStream's
|
|
100
|
+
* finally block, after transactionSync has either consumed the
|
|
101
|
+
* bytes or thrown.
|
|
102
|
+
*
|
|
103
|
+
* Sums into `heap.breakdown.vfsInFlightBytes` alongside
|
|
104
|
+
* _pendingWriteBytes so a single value reflects ALL transient
|
|
105
|
+
* write-bytes the supervisor is holding.
|
|
106
|
+
*/
|
|
107
|
+
private _writeStreamSpoolBytes;
|
|
108
|
+
private writeFlushScheduled;
|
|
109
|
+
private failedWrites;
|
|
110
|
+
private writeErrorHandlers;
|
|
111
|
+
private _writeFailures;
|
|
112
|
+
private _cacheHits;
|
|
113
|
+
private _cacheMisses;
|
|
114
|
+
private _evictions;
|
|
115
|
+
private _sqlReads;
|
|
116
|
+
private _sqlWrites;
|
|
117
|
+
private _batchWrites;
|
|
118
|
+
private _batchWriteRows;
|
|
119
|
+
constructor(sql: SqlStorage, ctx?: DurableObjectState);
|
|
120
|
+
private initSchema;
|
|
121
|
+
private migrateFromLegacy;
|
|
122
|
+
private loadInodes;
|
|
123
|
+
private _addToChildrenIndex;
|
|
124
|
+
private _removeFromChildrenIndex;
|
|
125
|
+
private cacheKey;
|
|
126
|
+
private cacheGet;
|
|
127
|
+
private cacheSet;
|
|
128
|
+
private evictOne;
|
|
129
|
+
shrinkForInstall(targetEntries?: number): void;
|
|
130
|
+
/** Decrement the heavy-alloc refcount. When the count returns to
|
|
131
|
+
* zero, restore the cap to LRU_MAX_ENTRIES. No re-population —
|
|
132
|
+
* the cache warms naturally on next reads. */
|
|
133
|
+
restoreAfterInstall(): void;
|
|
134
|
+
/**
|
|
135
|
+
* Drop EVERY cache entry, flushing dirty ones via deferWrite. Used
|
|
136
|
+
* by the W5 Lever 9 SQLITE_NOMEM retry path to free pages owned by
|
|
137
|
+
* us before retrying a smaller batch. Sync; safe inside the input
|
|
138
|
+
* gate.
|
|
139
|
+
*/
|
|
140
|
+
evictAll(): void;
|
|
141
|
+
/**
|
|
142
|
+
* Invalidate all cache entries for a path.
|
|
143
|
+
* @param discard If true, dirty entries are discarded (not flushed).
|
|
144
|
+
* Use discard=true when the file is about to be overwritten or deleted.
|
|
145
|
+
*/
|
|
146
|
+
private cacheInvalidate;
|
|
147
|
+
/** Remove all pending writes for a path (prevents orphan chunks). */
|
|
148
|
+
private clearPendingWritesForPath;
|
|
149
|
+
/**
|
|
150
|
+
* Batch version of cacheInvalidate — invalidate every cache entry
|
|
151
|
+
* whose path is in `paths`. One pass over the cache instead of one
|
|
152
|
+
* pass per path (audit R2: writeBatch was O(P × C) before this).
|
|
153
|
+
*
|
|
154
|
+
* `discard` semantics match cacheInvalidate(path, discard): when
|
|
155
|
+
* false, dirty entries are re-queued for persistence before being
|
|
156
|
+
* dropped from the cache; when true (the writeBatch case — the row
|
|
157
|
+
* is about to be overwritten), dirty data is abandoned.
|
|
158
|
+
*/
|
|
159
|
+
private cacheInvalidateBatch;
|
|
160
|
+
/** Batch version of clearPendingWritesForPath — one pass for N paths. */
|
|
161
|
+
private clearPendingWritesForPaths;
|
|
162
|
+
private deferWrite;
|
|
163
|
+
private flushPendingWrites;
|
|
164
|
+
/**
|
|
165
|
+
* Move an un-writable chunk into failedWrites and notify subscribers.
|
|
166
|
+
* Called from the retry path of flushPendingWrites(). Entries recorded
|
|
167
|
+
* here are the ones that failed BOTH the original attempt and the
|
|
168
|
+
* one-shot retry; they are considered lost (we do not re-queue a
|
|
169
|
+
* third time — the audit recommendation was a single retry). The
|
|
170
|
+
* chunk bytes are NOT retained — see failedWrites comment above.
|
|
171
|
+
*/
|
|
172
|
+
private _recordFailedWrite;
|
|
173
|
+
/**
|
|
174
|
+
* Subscribe to write failures. Fires once per chunk that failed both
|
|
175
|
+
* its first attempt AND the one-shot retry. Returns an unsubscribe
|
|
176
|
+
* function. Multiple subscribers are permitted.
|
|
177
|
+
*
|
|
178
|
+
* Handlers run synchronously inside the flush microtask. Keep them
|
|
179
|
+
* cheap and non-throwing; errors thrown by a handler are caught and
|
|
180
|
+
* discarded so one bad subscriber can't break the flush path.
|
|
181
|
+
*/
|
|
182
|
+
onWriteError(handler: (err: {
|
|
183
|
+
path: string;
|
|
184
|
+
chunkId: number;
|
|
185
|
+
error: string;
|
|
186
|
+
attempts: number;
|
|
187
|
+
}) => void): () => void;
|
|
188
|
+
/**
|
|
189
|
+
* Snapshot of currently-recorded write failures. Intended for
|
|
190
|
+
* diagnostics (e.g. /api/stats). The underlying Map is not exposed
|
|
191
|
+
* so external code can't accidentally mutate it.
|
|
192
|
+
*/
|
|
193
|
+
getWriteFailures(): Array<{
|
|
194
|
+
path: string;
|
|
195
|
+
chunkId: number;
|
|
196
|
+
error: string;
|
|
197
|
+
attempts: number;
|
|
198
|
+
}>;
|
|
199
|
+
/**
|
|
200
|
+
* Clear recorded failures. Callers that have recovered (e.g. retried
|
|
201
|
+
* the user-facing operation, or logged the error and decided to move
|
|
202
|
+
* on) can call this to reset the counter so flushAll() stops
|
|
203
|
+
* throwing. Without this, a single poisoned chunk would make every
|
|
204
|
+
* subsequent flushAll() throw forever.
|
|
205
|
+
*/
|
|
206
|
+
clearWriteFailures(): number;
|
|
207
|
+
/**
|
|
208
|
+
* Force flush all dirty cache entries and pending writes to SQLite.
|
|
209
|
+
*
|
|
210
|
+
* Throws if any chunk failed both its first attempt AND the one-shot
|
|
211
|
+
* retry during this or any previous flush in this DO's lifetime.
|
|
212
|
+
* Callers that invoke flushAll() on a critical boundary (e.g.
|
|
213
|
+
* webSocketClose) get a synchronous error signal; callers that don't
|
|
214
|
+
* want to assert cleanliness should use flushAndWait() instead.
|
|
215
|
+
*
|
|
216
|
+
* Staying synchronous preserves the sqlite-vfs invariant that all
|
|
217
|
+
* file ops are sync (documented at the top of this file) — required
|
|
218
|
+
* by the LIFO @lifo-sh/core MountProvider interface.
|
|
219
|
+
*/
|
|
220
|
+
flushAll(): void;
|
|
221
|
+
/**
|
|
222
|
+
* Force-flush and resolve only after the flush completes with no
|
|
223
|
+
* recorded failures. Rejects with the same error shape as flushAll()
|
|
224
|
+
* when one or more chunks are un-writable after retry.
|
|
225
|
+
*
|
|
226
|
+
* Use this at explicit persistence boundaries (e.g. end of
|
|
227
|
+
* `npm install`, end of `git clone`, seed-filesystem completion) to
|
|
228
|
+
* guarantee data landed. Synchronous `writeFile()` callers that
|
|
229
|
+
* don't opt in continue to get best-effort semantics — the audit's
|
|
230
|
+
* alternative fix path (keep void API, surface errors through
|
|
231
|
+
* onWriteError + throwing flushAll).
|
|
232
|
+
*/
|
|
233
|
+
flushAndWait(): Promise<void>;
|
|
234
|
+
private now;
|
|
235
|
+
private parentPath;
|
|
236
|
+
private blobToUint8Array;
|
|
237
|
+
private readChunkFromSql;
|
|
238
|
+
exists(path: string): boolean;
|
|
239
|
+
isDirectory(path: string): boolean;
|
|
240
|
+
isFile(path: string): boolean;
|
|
241
|
+
mkdir(path: string, options?: {
|
|
242
|
+
recursive?: boolean;
|
|
243
|
+
}): void;
|
|
244
|
+
private _mkdirSingle;
|
|
245
|
+
writeFile(path: string, content: string | Uint8Array): void;
|
|
246
|
+
readFile(path: string): Uint8Array;
|
|
247
|
+
readFileString(path: string): string;
|
|
248
|
+
stat(path: string): {
|
|
249
|
+
type: string;
|
|
250
|
+
size: number;
|
|
251
|
+
ctime: number;
|
|
252
|
+
mtime: number;
|
|
253
|
+
mode: number;
|
|
254
|
+
};
|
|
255
|
+
readdir(path: string): {
|
|
256
|
+
name: string;
|
|
257
|
+
type: string;
|
|
258
|
+
}[];
|
|
259
|
+
unlink(path: string): void;
|
|
260
|
+
rmdir(path: string): void;
|
|
261
|
+
rename(oldPath: string, newPath: string): void;
|
|
262
|
+
copyFile(src: string, dest: string): void;
|
|
263
|
+
/**
|
|
264
|
+
* Atomic bulk write: ALL inodes + chunks in ONE transactionSync().
|
|
265
|
+
*
|
|
266
|
+
* Why this exists:
|
|
267
|
+
* writeFile() does 1 DELETE + 1 INSERT per inode (each auto-committed)
|
|
268
|
+
* plus deferWrite() which flushes at 500-threshold.
|
|
269
|
+
* For 30K files: ~60K sync SQL ops → 30-60s, often crashes DO.
|
|
270
|
+
*
|
|
271
|
+
* writeBatch() does:
|
|
272
|
+
* 1 transactionSync() containing:
|
|
273
|
+
* - N DELETE for old paths (if any)
|
|
274
|
+
* - Multi-row INSERT for inodes (up to 4000/statement)
|
|
275
|
+
* - Multi-row INSERT for chunks (up to 200/statement, blob-heavy)
|
|
276
|
+
* Total: 1 transactionSync() per wave of ~300-500 files.
|
|
277
|
+
*
|
|
278
|
+
* Speedup: 60K ops → ~60 ops (1000x fewer transaction commits).
|
|
279
|
+
*/
|
|
280
|
+
writeBatch(payload: BatchWritePayload): {
|
|
281
|
+
inodes: number;
|
|
282
|
+
chunks: number;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* W7 — streaming bulk-write. Same semantics as writeBatch() but
|
|
286
|
+
* accepts the chunks list as an `AsyncIterable<BatchChunkEntry>`
|
|
287
|
+
* rather than a fully-realised array.
|
|
288
|
+
*
|
|
289
|
+
* v1 (this wave) is "spool-then-commit": we drain the iterator into
|
|
290
|
+
* an in-memory Array<BatchChunkEntry>, then delegate to writeBatch.
|
|
291
|
+
* The HEAP-savings claim of W7 lives on the FACET side — by the
|
|
292
|
+
* time chunks reach this method (post-RPC), they've already
|
|
293
|
+
* traversed the byte-stream boundary without hitting the 32 MiB
|
|
294
|
+
* structured-clone cap.
|
|
295
|
+
*
|
|
296
|
+
* Heap-correctness wave (N2): the spool is bounded by the peer's
|
|
297
|
+
* SHARED_RPC_FLUSH_THRESHOLD (4 MiB; see install-batch-facet.ts:196)
|
|
298
|
+
* — a peer never sends more than ~4 MiB of chunk-bytes per
|
|
299
|
+
* writeBatchStream RPC, AND workerd's input gate serialises
|
|
300
|
+
* concurrent RPCs on the same DO. So the supervisor's `chunks: []`
|
|
301
|
+
* spool peak is ≤ 4 MiB + path-overhead per call.
|
|
302
|
+
*
|
|
303
|
+
* What this method DID lack: the spool bytes were invisible to the
|
|
304
|
+
* heap estimator. We now maintain `_writeStreamSpoolBytes` that
|
|
305
|
+
* tracks the live spool contents during the drain; the diag's
|
|
306
|
+
* vfsInFlightBytes contributor now sums pendingWriteBytes +
|
|
307
|
+
* writeStreamSpoolBytes. The N2 RED probe asserts on this sum.
|
|
308
|
+
*
|
|
309
|
+
* Throws on SQLITE_NOMEM (with halve-retry per writeBatch); any
|
|
310
|
+
* iterator-source error propagates unchanged. Atomicity guarantee
|
|
311
|
+
* matches writeBatch: either ALL inodes + chunks land in SQLite or
|
|
312
|
+
* NONE do.
|
|
313
|
+
*/
|
|
314
|
+
writeStream(payload: {
|
|
315
|
+
inodes: BatchInodeEntry[];
|
|
316
|
+
chunkIter: AsyncIterable<BatchChunkEntry>;
|
|
317
|
+
deletePaths?: string[];
|
|
318
|
+
}): Promise<{
|
|
319
|
+
inodes: number;
|
|
320
|
+
chunks: number;
|
|
321
|
+
}>;
|
|
322
|
+
private _writeBatchWithRetry;
|
|
323
|
+
/**
|
|
324
|
+
* Estimate the byte cost of a writeBatch payload. Used by the W5
|
|
325
|
+
* recordFailure call so /api/_diag/memory can report inFlightBytes
|
|
326
|
+
* at the moment of the SQLITE_NOMEM. Fast (no copy).
|
|
327
|
+
*/
|
|
328
|
+
private _estimateBatchBytes;
|
|
329
|
+
/** Best-effort process.memoryUsage().heapUsed; 0 in DO contexts. */
|
|
330
|
+
private _safeHeapUsed;
|
|
331
|
+
/**
|
|
332
|
+
* Partition a writeBatch payload into two halves with disjoint
|
|
333
|
+
* path-sets. Preserves the W2.5 invariant: deletePaths and chunks
|
|
334
|
+
* follow their owning inode into the same half. Used by the
|
|
335
|
+
* SQLITE_NOMEM retry path.
|
|
336
|
+
*/
|
|
337
|
+
private _halveBatchPayload;
|
|
338
|
+
private _writeBatchOnce;
|
|
339
|
+
/**
|
|
340
|
+
* Bulk mkdir: create all directories in a single transactionSync.
|
|
341
|
+
* Pre-creates the full directory tree before file writes to avoid
|
|
342
|
+
* per-file mkdir overhead.
|
|
343
|
+
*/
|
|
344
|
+
mkdirBatch(paths: string[]): number;
|
|
345
|
+
/**
|
|
346
|
+
* Debug-only: recompute counters from scratch and return any drift
|
|
347
|
+
* against the running counters. Returns null if consistent. Used by
|
|
348
|
+
* the B3 runtime test; production paths should never call this
|
|
349
|
+
* (the whole point of B3 is avoiding the O(N) walk).
|
|
350
|
+
*/
|
|
351
|
+
_verifyCounters(): null | {
|
|
352
|
+
expected: {
|
|
353
|
+
files: number;
|
|
354
|
+
dirs: number;
|
|
355
|
+
bytes: number;
|
|
356
|
+
};
|
|
357
|
+
actual: {
|
|
358
|
+
files: number;
|
|
359
|
+
dirs: number;
|
|
360
|
+
bytes: number;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
getStats(): {
|
|
364
|
+
files: number;
|
|
365
|
+
directories: number;
|
|
366
|
+
usedBytes: number;
|
|
367
|
+
capacityBytes: number;
|
|
368
|
+
backend: string;
|
|
369
|
+
cache: {
|
|
370
|
+
entries: number;
|
|
371
|
+
maxEntries: number;
|
|
372
|
+
chunkSize: number;
|
|
373
|
+
hotBytes: number;
|
|
374
|
+
maxBytes: number;
|
|
375
|
+
hits: number;
|
|
376
|
+
misses: number;
|
|
377
|
+
hitRate: number;
|
|
378
|
+
evictions: number;
|
|
379
|
+
lruShrunk: boolean;
|
|
380
|
+
};
|
|
381
|
+
sql: {
|
|
382
|
+
reads: number;
|
|
383
|
+
writes: number;
|
|
384
|
+
batchWrites: number;
|
|
385
|
+
batchWriteRows: number;
|
|
386
|
+
pendingWrites: number;
|
|
387
|
+
pendingWriteBytes: number;
|
|
388
|
+
writeStreamSpoolBytes: number;
|
|
389
|
+
failedWrites: number;
|
|
390
|
+
totalWriteFailures: number;
|
|
391
|
+
};
|
|
392
|
+
events: {
|
|
393
|
+
totalEmitted: number;
|
|
394
|
+
totalBatches: number;
|
|
395
|
+
globalListeners: number;
|
|
396
|
+
pathListeners: number;
|
|
397
|
+
pending: number;
|
|
398
|
+
};
|
|
399
|
+
inodes: {
|
|
400
|
+
total: number;
|
|
401
|
+
files: number;
|
|
402
|
+
directories: number;
|
|
403
|
+
memoryEstimate: number;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
export declare class SqliteVFSProvider {
|
|
408
|
+
private vfs;
|
|
409
|
+
private prefix;
|
|
410
|
+
constructor(vfs: SqliteVFS, prefix: string);
|
|
411
|
+
private resolve;
|
|
412
|
+
readFile(sub: string): Uint8Array;
|
|
413
|
+
readFileString(sub: string): string;
|
|
414
|
+
writeFile(sub: string, content: string | Uint8Array): void;
|
|
415
|
+
exists(sub: string): boolean;
|
|
416
|
+
stat(sub: string): {
|
|
417
|
+
type: string;
|
|
418
|
+
size: number;
|
|
419
|
+
ctime: number;
|
|
420
|
+
mtime: number;
|
|
421
|
+
mode: number;
|
|
422
|
+
};
|
|
423
|
+
readdir(sub: string): {
|
|
424
|
+
name: string;
|
|
425
|
+
type: string;
|
|
426
|
+
}[];
|
|
427
|
+
unlink(sub: string): void;
|
|
428
|
+
mkdir(sub: string, opts?: {
|
|
429
|
+
recursive?: boolean;
|
|
430
|
+
}): void;
|
|
431
|
+
rmdir(sub: string): void;
|
|
432
|
+
rename(o: string, n: string): void;
|
|
433
|
+
copyFile(s: string, d: string): void;
|
|
434
|
+
}
|
|
435
|
+
//# sourceMappingURL=sqlite-vfs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-vfs.d.ts","sourceRoot":"","sources":["../../src/vfs/sqlite-vfs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAE,eAAe,EAAqB,MAAM,aAAa,CAAC;AAyBjE,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,uFAAuF;AACvF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAYD,qBAAa,SAAS;IACpB,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,GAAG,CAAqB;IAChC,SAAgB,MAAM,EAAE,eAAe,CAAC;IAGxC,OAAO,CAAC,MAAM,CAA4B;IAC1C,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAkC;IAIlD,OAAO,CAAC,KAAK,CAAiC;IAC9C,2DAA2D;IAC3D,OAAO,CAA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