@ogygia/core 0.0.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -1
- package/ambient.d.ts +194 -0
- package/dist/ClientBindingStub.svelte +6 -0
- package/dist/ClientBindingStub.svelte.d.ts +26 -0
- package/dist/KeepHost.svelte +19 -0
- package/dist/KeepHost.svelte.d.ts +10 -0
- package/dist/LakeBoundary.svelte +16 -0
- package/dist/LakeBoundary.svelte.d.ts +11 -0
- package/dist/LateIsland.svelte +22 -0
- package/dist/LateIsland.svelte.d.ts +15 -0
- package/dist/LateIslandAwait.svelte +17 -0
- package/dist/LateIslandAwait.svelte.d.ts +15 -0
- package/dist/LiveHost.svelte +19 -0
- package/dist/LiveHost.svelte.d.ts +10 -0
- package/dist/NestedProvider.svelte +13 -0
- package/dist/NestedProvider.svelte.d.ts +8 -0
- package/dist/OgygiaBoundary.svelte +5 -0
- package/dist/OgygiaBoundary.svelte.d.ts +17 -0
- package/dist/PromiseRegion.svelte +40 -0
- package/dist/PromiseRegion.svelte.d.ts +15 -0
- package/dist/PromiseRegionAwait.svelte +27 -0
- package/dist/PromiseRegionAwait.svelte.d.ts +15 -0
- package/dist/Provide.svelte +27 -0
- package/dist/Provide.svelte.d.ts +8 -0
- package/dist/RawHtml.svelte +9 -0
- package/dist/RawHtml.svelte.d.ts +6 -0
- package/dist/Region.svelte +1173 -0
- package/dist/Region.svelte.d.ts +68 -0
- package/dist/SlotBoundary.svelte +13 -0
- package/dist/SlotBoundary.svelte.d.ts +7 -0
- package/dist/app.d.ts +4 -0
- package/dist/app.js +3 -0
- package/dist/boundary.d.ts +35 -0
- package/dist/boundary.js +127 -0
- package/dist/build-cache.d.ts +13 -0
- package/dist/build-cache.js +77 -0
- package/dist/compiler/blank-styles.d.ts +1 -0
- package/dist/compiler/blank-styles.js +63 -0
- package/dist/compiler/bom.d.ts +2 -0
- package/dist/compiler/bom.js +15 -0
- package/dist/compiler/browser-full.d.ts +8 -0
- package/dist/compiler/browser-full.js +8 -0
- package/dist/compiler/browser.d.ts +11 -0
- package/dist/compiler/browser.js +11 -0
- package/dist/compiler/content/transportables.d.ts +26 -0
- package/dist/compiler/content/transportables.js +219 -0
- package/dist/compiler/ctx.d.ts +185 -0
- package/dist/compiler/ctx.js +203 -0
- package/dist/compiler/debarrel/barrel.d.ts +55 -0
- package/dist/compiler/debarrel/barrel.js +248 -0
- package/dist/compiler/debarrel/options.d.ts +67 -0
- package/dist/compiler/debarrel/options.js +31 -0
- package/dist/compiler/debarrel/parse.d.ts +65 -0
- package/dist/compiler/debarrel/parse.js +256 -0
- package/dist/compiler/debarrel/plugin.d.ts +31 -0
- package/dist/compiler/debarrel/plugin.js +190 -0
- package/dist/compiler/debarrel/rewrite.d.ts +27 -0
- package/dist/compiler/debarrel/rewrite.js +118 -0
- package/dist/compiler/debarrel/svelte.d.ts +13 -0
- package/dist/compiler/debarrel/svelte.js +56 -0
- package/dist/compiler/dev/css-scope.d.ts +16 -0
- package/dist/compiler/dev/css-scope.js +38 -0
- package/dist/compiler/dev/dev-hmr.d.ts +25 -0
- package/dist/compiler/dev/dev-hmr.js +29 -0
- package/dist/compiler/dev/hmr.d.ts +34 -0
- package/dist/compiler/dev/hmr.js +57 -0
- package/dist/compiler/dev/region-bytes.d.ts +34 -0
- package/dist/compiler/dev/region-bytes.js +126 -0
- package/dist/compiler/driver.d.ts +280 -0
- package/dist/compiler/driver.js +1352 -0
- package/dist/compiler/flags.d.ts +16 -0
- package/dist/compiler/flags.js +101 -0
- package/dist/compiler/fouc-css.d.ts +97 -0
- package/dist/compiler/fouc-css.js +335 -0
- package/dist/compiler/free-vars.d.ts +20 -0
- package/dist/compiler/free-vars.js +327 -0
- package/dist/compiler/host.d.ts +65 -0
- package/dist/compiler/host.js +51 -0
- package/dist/compiler/ids.d.ts +84 -0
- package/dist/compiler/ids.js +86 -0
- package/dist/compiler/index.d.ts +11 -0
- package/dist/compiler/index.js +11 -0
- package/dist/compiler/kit.d.ts +129 -0
- package/dist/compiler/kit.js +563 -0
- package/dist/compiler/link/build-output.d.ts +44 -0
- package/dist/compiler/link/build-output.js +147 -0
- package/dist/compiler/link/caps.d.ts +48 -0
- package/dist/compiler/link/caps.js +64 -0
- package/dist/compiler/link/context-detect.d.ts +23 -0
- package/dist/compiler/link/context-detect.js +137 -0
- package/dist/compiler/link/emit-gate.d.ts +11 -0
- package/dist/compiler/link/emit-gate.js +40 -0
- package/dist/compiler/link/entry-shim.d.ts +4 -0
- package/dist/compiler/link/entry-shim.js +29 -0
- package/dist/compiler/link/island-deps.d.ts +142 -0
- package/dist/compiler/link/island-deps.js +525 -0
- package/dist/compiler/link/manifest.d.ts +5 -0
- package/dist/compiler/link/manifest.js +9 -0
- package/dist/compiler/link/page-keys.d.ts +64 -0
- package/dist/compiler/link/page-keys.js +683 -0
- package/dist/compiler/link/registry-stub.d.ts +41 -0
- package/dist/compiler/link/registry-stub.js +212 -0
- package/dist/compiler/link/router-config.d.ts +11 -0
- package/dist/compiler/link/router-config.js +15 -0
- package/dist/compiler/link/router-css.d.ts +22 -0
- package/dist/compiler/link/router-css.js +142 -0
- package/dist/compiler/link/runtime-entry.d.ts +71 -0
- package/dist/compiler/link/runtime-entry.js +132 -0
- package/dist/compiler/link/server-manifest.d.ts +12 -0
- package/dist/compiler/link/server-manifest.js +45 -0
- package/dist/compiler/link/speculation.d.ts +17 -0
- package/dist/compiler/link/speculation.js +36 -0
- package/dist/compiler/link/transport.d.ts +31 -0
- package/dist/compiler/link/transport.js +67 -0
- package/dist/compiler/macros/bake.d.ts +20 -0
- package/dist/compiler/macros/bake.js +317 -0
- package/dist/compiler/macros/browser.d.ts +11 -0
- package/dist/compiler/macros/browser.js +69 -0
- package/dist/compiler/macros/dedent.d.ts +12 -0
- package/dist/compiler/macros/dedent.js +36 -0
- package/dist/compiler/macros/dollar.d.ts +15 -0
- package/dist/compiler/macros/dollar.js +387 -0
- package/dist/compiler/macros/pipeline.d.ts +31 -0
- package/dist/compiler/macros/pipeline.js +106 -0
- package/dist/compiler/macros/source.d.ts +6 -0
- package/dist/compiler/macros/source.js +127 -0
- package/dist/compiler/macros/store.d.ts +17 -0
- package/dist/compiler/macros/store.js +244 -0
- package/dist/compiler/macros/wire.d.ts +14 -0
- package/dist/compiler/macros/wire.js +160 -0
- package/dist/compiler/ownership-stamps.d.ts +6 -0
- package/dist/compiler/ownership-stamps.js +144 -0
- package/dist/compiler/parse/oxc.d.ts +34 -0
- package/dist/compiler/parse/oxc.js +59 -0
- package/dist/compiler/parse/scan.d.ts +43 -0
- package/dist/compiler/parse/scan.js +232 -0
- package/dist/compiler/program.d.ts +140 -0
- package/dist/compiler/program.js +242 -0
- package/dist/compiler/region/emit.d.ts +169 -0
- package/dist/compiler/region/emit.js +286 -0
- package/dist/compiler/region/identity.d.ts +28 -0
- package/dist/compiler/region/identity.js +75 -0
- package/dist/compiler/region/ir.d.ts +65 -0
- package/dist/compiler/region/ir.js +0 -0
- package/dist/compiler/region/transform.d.ts +178 -0
- package/dist/compiler/region/transform.js +1933 -0
- package/dist/compiler/script-request.d.ts +1 -0
- package/dist/compiler/script-request.js +43 -0
- package/dist/context-bridge.d.ts +65 -0
- package/dist/context-bridge.js +217 -0
- package/dist/context-registry.d.ts +40 -0
- package/dist/context-registry.js +15 -0
- package/dist/context.d.ts +72 -0
- package/dist/context.js +158 -0
- package/dist/current-region.d.ts +14 -0
- package/dist/current-region.js +36 -0
- package/dist/document.d.ts +41 -0
- package/dist/document.js +125 -0
- package/dist/entry-hydrate.d.ts +5 -0
- package/dist/entry-hydrate.js +42 -0
- package/dist/escape.d.ts +18 -0
- package/dist/escape.js +37 -0
- package/dist/events/bus.d.ts +33 -0
- package/dist/events/bus.js +153 -0
- package/dist/events/index.d.ts +4 -0
- package/dist/events/index.js +4 -0
- package/dist/events/schema.d.ts +389 -0
- package/dist/events/schema.js +23 -0
- package/dist/events/server-registry.d.ts +7 -0
- package/dist/events/server-registry.js +13 -0
- package/dist/events/sinks.d.ts +64 -0
- package/dist/events/sinks.js +85 -0
- package/dist/fn-transport.d.ts +33 -0
- package/dist/fn-transport.js +140 -0
- package/dist/frame.d.ts +20 -0
- package/dist/frame.js +19 -0
- package/dist/holes-record.d.ts +6 -0
- package/dist/holes-record.js +8 -0
- package/dist/hooks.d.ts +43 -0
- package/dist/hooks.js +1191 -0
- package/dist/hydration-info.d.ts +1 -0
- package/dist/hydration-info.js +31 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +17 -0
- package/dist/insights/attr-rules.d.ts +15 -0
- package/dist/insights/attr-rules.js +27 -0
- package/dist/insights/cpu.d.ts +82 -0
- package/dist/insights/cpu.js +177 -0
- package/dist/insights/fp-drift.d.ts +28 -0
- package/dist/insights/fp-drift.js +148 -0
- package/dist/insights/hole-segments.d.ts +26 -0
- package/dist/insights/hole-segments.js +50 -0
- package/dist/insights/html-diff.d.ts +25 -0
- package/dist/insights/html-diff.js +157 -0
- package/dist/insights/hydration-hazards.d.ts +36 -0
- package/dist/insights/hydration-hazards.js +136 -0
- package/dist/insights/hydration-status.d.ts +2 -0
- package/dist/insights/hydration-status.js +0 -0
- package/dist/insights/index.d.ts +14 -0
- package/dist/insights/index.js +12 -0
- package/dist/insights/page-assets.d.ts +211 -0
- package/dist/insights/page-assets.js +608 -0
- package/dist/insights/page-insights.d.ts +749 -0
- package/dist/insights/page-insights.js +2157 -0
- package/dist/insights/session-data.d.ts +108 -0
- package/dist/insights/session-data.js +0 -0
- package/dist/insights/session-insights.d.ts +121 -0
- package/dist/insights/session-insights.js +548 -0
- package/dist/insights/switch.d.ts +53 -0
- package/dist/insights/switch.js +91 -0
- package/dist/insights/testing-version.d.ts +19 -0
- package/dist/insights/testing-version.js +21 -0
- package/dist/insights/third-party.d.ts +75 -0
- package/dist/insights/third-party.js +160 -0
- package/dist/internal-instruments.d.ts +13 -0
- package/dist/internal-instruments.js +12 -0
- package/dist/internal-reconcile.d.ts +3 -0
- package/dist/internal-reconcile.js +3 -0
- package/dist/internal-register.d.ts +7 -0
- package/dist/internal-register.js +7 -0
- package/dist/internal-server.d.ts +7 -0
- package/dist/internal-server.js +7 -0
- package/dist/internal.d.ts +13 -0
- package/dist/internal.js +13 -0
- package/dist/island-graph.d.ts +36 -0
- package/dist/island-graph.js +89 -0
- package/dist/keep-fallback-marker.d.ts +7 -0
- package/dist/keep-fallback-marker.js +9 -0
- package/dist/keep-fallback.d.ts +13 -0
- package/dist/keep-fallback.js +39 -0
- package/dist/kit-paths.d.ts +2 -0
- package/dist/kit-paths.js +39 -0
- package/dist/late-region-registry.d.ts +40 -0
- package/dist/late-region-registry.js +36 -0
- package/dist/live-transport.d.ts +57 -0
- package/dist/live-transport.js +145 -0
- package/dist/markup.d.ts +4 -0
- package/dist/markup.js +4 -0
- package/dist/own-package.d.ts +15 -0
- package/dist/own-package.js +20 -0
- package/dist/page-defer.d.ts +33 -0
- package/dist/page-defer.js +35 -0
- package/dist/page-facts-script.d.ts +7 -0
- package/dist/page-facts-script.js +9 -0
- package/dist/page-seed-registry.d.ts +72 -0
- package/dist/page-seed-registry.js +31 -0
- package/dist/plugin/capability.d.ts +14 -0
- package/dist/plugin/capability.js +44 -0
- package/dist/plugin/client.d.ts +39 -0
- package/dist/plugin/client.js +6 -0
- package/dist/plugin/css.d.ts +3 -0
- package/dist/plugin/css.js +54 -0
- package/dist/plugin/facts.d.ts +42 -0
- package/dist/plugin/facts.js +37 -0
- package/dist/plugin/hooks.d.ts +33 -0
- package/dist/plugin/hooks.js +38 -0
- package/dist/plugin/index.d.ts +127 -0
- package/dist/plugin/index.js +26 -0
- package/dist/plugin/routes.d.ts +32 -0
- package/dist/plugin/routes.js +35 -0
- package/dist/plugin/server.d.ts +27 -0
- package/dist/plugin/server.js +92 -0
- package/dist/plugin/standard-schema.d.ts +27 -0
- package/dist/plugin/standard-schema.js +0 -0
- package/dist/plugin/testing.d.ts +13 -0
- package/dist/plugin/testing.js +54 -0
- package/dist/plugin/utils.d.ts +13 -0
- package/dist/plugin/utils.js +19 -0
- package/dist/portable-form.d.ts +22 -0
- package/dist/portable-form.js +52 -0
- package/dist/preference.d.ts +35 -0
- package/dist/preference.js +84 -0
- package/dist/preload.d.ts +1 -0
- package/dist/preload.js +21 -0
- package/dist/ref-watch.d.ts +31 -0
- package/dist/ref-watch.js +66 -0
- package/dist/ref.d.ts +124 -0
- package/dist/ref.js +272 -0
- package/dist/region-brand.d.ts +8 -0
- package/dist/region-brand.js +10 -0
- package/dist/region-core.d.ts +2 -0
- package/dist/region-core.js +1 -0
- package/dist/region-snippet.d.ts +73 -0
- package/dist/region-snippet.js +351 -0
- package/dist/region.d.ts +127 -0
- package/dist/region.js +162 -0
- package/dist/request-event.d.ts +1 -0
- package/dist/request-event.js +37 -0
- package/dist/router-css.d.ts +39 -0
- package/dist/router-css.js +66 -0
- package/dist/runtime/app-transport.d.ts +2 -0
- package/dist/runtime/app-transport.js +13 -0
- package/dist/runtime/beacon.d.ts +271 -0
- package/dist/runtime/beacon.js +2190 -0
- package/dist/runtime/boot-link.d.ts +1 -0
- package/dist/runtime/boot-link.js +44 -0
- package/dist/runtime/client-hooks.d.ts +5 -0
- package/dist/runtime/client-hooks.js +22 -0
- package/dist/runtime/client-plugins.d.ts +8 -0
- package/dist/runtime/client-plugins.js +34 -0
- package/dist/runtime/concurrency.d.ts +12 -0
- package/dist/runtime/concurrency.js +29 -0
- package/dist/runtime/connected.d.ts +12 -0
- package/dist/runtime/connected.js +16 -0
- package/dist/runtime/context.d.ts +1 -0
- package/dist/runtime/context.js +19 -0
- package/dist/runtime/core.d.ts +15 -0
- package/dist/runtime/core.js +1173 -0
- package/dist/runtime/drift-watch.d.ts +9 -0
- package/dist/runtime/drift-watch.js +60 -0
- package/dist/runtime/entry-locations.d.ts +33 -0
- package/dist/runtime/entry-locations.js +119 -0
- package/dist/runtime/foreign-props.d.ts +8 -0
- package/dist/runtime/foreign-props.js +14 -0
- package/dist/runtime/form-continuity.d.ts +10 -0
- package/dist/runtime/form-continuity.js +107 -0
- package/dist/runtime/frame-nav.d.ts +36 -0
- package/dist/runtime/frame-nav.js +225 -0
- package/dist/runtime/frame-store.d.ts +62 -0
- package/dist/runtime/frame-store.js +214 -0
- package/dist/runtime/frames.d.ts +1 -0
- package/dist/runtime/frames.js +25 -0
- package/dist/runtime/full.d.ts +4 -0
- package/dist/runtime/full.js +32 -0
- package/dist/runtime/hash.d.ts +41 -0
- package/dist/runtime/hash.js +79 -0
- package/dist/runtime/hole-facts.d.ts +8 -0
- package/dist/runtime/hole-facts.js +57 -0
- package/dist/runtime/host-classes.d.ts +24 -0
- package/dist/runtime/host-classes.js +43 -0
- package/dist/runtime/hydrate-core.d.ts +101 -0
- package/dist/runtime/hydrate-core.js +605 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/interaction-replay.d.ts +11 -0
- package/dist/runtime/interaction-replay.js +70 -0
- package/dist/runtime/interaction.d.ts +33 -0
- package/dist/runtime/interaction.js +217 -0
- package/dist/runtime/island-graph-preload.d.ts +13 -0
- package/dist/runtime/island-graph-preload.js +99 -0
- package/dist/runtime/kit-boot.d.ts +29 -0
- package/dist/runtime/kit-boot.js +60 -0
- package/dist/runtime/kit-page-thread.svelte.d.ts +1 -0
- package/dist/runtime/kit-page-thread.svelte.js +116 -0
- package/dist/runtime/lake-anchors.d.ts +13 -0
- package/dist/runtime/lake-anchors.js +19 -0
- package/dist/runtime/lakes.d.ts +15 -0
- package/dist/runtime/lakes.js +212 -0
- package/dist/runtime/live.d.ts +3 -0
- package/dist/runtime/live.js +17 -0
- package/dist/runtime/load-scheduler.d.ts +53 -0
- package/dist/runtime/load-scheduler.js +317 -0
- package/dist/runtime/morph.d.ts +42 -0
- package/dist/runtime/morph.js +671 -0
- package/dist/runtime/nav-handle.d.ts +25 -0
- package/dist/runtime/nav-handle.js +71 -0
- package/dist/runtime/nav-hooks.d.ts +2 -0
- package/dist/runtime/nav-hooks.js +23 -0
- package/dist/runtime/nearest-attr.d.ts +4 -0
- package/dist/runtime/nearest-attr.js +16 -0
- package/dist/runtime/observe.d.ts +27 -0
- package/dist/runtime/observe.js +63 -0
- package/dist/runtime/own-cost.d.ts +9 -0
- package/dist/runtime/own-cost.js +35 -0
- package/dist/runtime/ownership.d.ts +101 -0
- package/dist/runtime/ownership.js +115 -0
- package/dist/runtime/page-cache.d.ts +23 -0
- package/dist/runtime/page-cache.js +74 -0
- package/dist/runtime/page-defer.d.ts +14 -0
- package/dist/runtime/page-defer.js +103 -0
- package/dist/runtime/parse-html.d.ts +40 -0
- package/dist/runtime/parse-html.js +81 -0
- package/dist/runtime/reconcile.d.ts +41 -0
- package/dist/runtime/reconcile.js +194 -0
- package/dist/runtime/region-attrs.d.ts +95 -0
- package/dist/runtime/region-attrs.js +153 -0
- package/dist/runtime/region-endpoint-url.d.ts +76 -0
- package/dist/runtime/region-endpoint-url.js +169 -0
- package/dist/runtime/region-ids.d.ts +8 -0
- package/dist/runtime/region-ids.js +33 -0
- package/dist/runtime/remote-seeds.d.ts +2 -0
- package/dist/runtime/remote-seeds.js +21 -0
- package/dist/runtime/render-blocking.d.ts +2 -0
- package/dist/runtime/render-blocking.js +30 -0
- package/dist/runtime/restore.d.ts +34 -0
- package/dist/runtime/restore.js +390 -0
- package/dist/runtime/router-nav.d.ts +63 -0
- package/dist/runtime/router-nav.js +740 -0
- package/dist/runtime/router.d.ts +201 -0
- package/dist/runtime/router.js +593 -0
- package/dist/runtime/schedule.d.ts +49 -0
- package/dist/runtime/schedule.js +256 -0
- package/dist/runtime/seeds.d.ts +50 -0
- package/dist/runtime/seeds.js +208 -0
- package/dist/runtime/session.d.ts +52 -0
- package/dist/runtime/session.js +130 -0
- package/dist/runtime/sidecar.d.ts +3 -0
- package/dist/runtime/sidecar.js +56 -0
- package/dist/runtime/slots.d.ts +183 -0
- package/dist/runtime/slots.js +44 -0
- package/dist/runtime/spa-cacheable.d.ts +7 -0
- package/dist/runtime/spa-cacheable.js +18 -0
- package/dist/runtime/speculate-hint.d.ts +1 -0
- package/dist/runtime/speculate-hint.js +35 -0
- package/dist/runtime/svelte-warnings.d.ts +28 -0
- package/dist/runtime/svelte-warnings.js +71 -0
- package/dist/runtime/wire-classes.d.ts +3 -0
- package/dist/runtime/wire-classes.js +69 -0
- package/dist/runtime/wire-format.d.ts +7 -0
- package/dist/runtime/wire-format.js +22 -0
- package/dist/script.d.ts +134 -0
- package/dist/script.js +184 -0
- package/dist/seed-refs.d.ts +105 -0
- package/dist/seed-refs.js +487 -0
- package/dist/server/capability-lifetime.d.ts +28 -0
- package/dist/server/capability-lifetime.js +31 -0
- package/dist/server/dead-kit-resolves.d.ts +1 -0
- package/dist/server/dead-kit-resolves.js +39 -0
- package/dist/server/document-assembly.d.ts +30 -0
- package/dist/server/document-assembly.js +26 -0
- package/dist/server/document-tail.d.ts +113 -0
- package/dist/server/document-tail.js +208 -0
- package/dist/server/endpoint.d.ts +51 -0
- package/dist/server/endpoint.js +90 -0
- package/dist/server/entry-location.d.ts +8 -0
- package/dist/server/entry-location.js +29 -0
- package/dist/server/fingerprint.d.ts +1 -0
- package/dist/server/fingerprint.js +25 -0
- package/dist/server/head-presence.d.ts +45 -0
- package/dist/server/head-presence.js +156 -0
- package/dist/server/hmac.d.ts +38 -0
- package/dist/server/hmac.js +89 -0
- package/dist/server/hole-graph.d.ts +7 -0
- package/dist/server/hole-graph.js +71 -0
- package/dist/server/hole-urls.d.ts +3 -0
- package/dist/server/hole-urls.js +76 -0
- package/dist/server/html-scan.d.ts +19 -0
- package/dist/server/html-scan.js +60 -0
- package/dist/server/kit-context.d.ts +78 -0
- package/dist/server/kit-context.js +110 -0
- package/dist/server/late-wire.d.ts +22 -0
- package/dist/server/late-wire.js +28 -0
- package/dist/server/page-facts.d.ts +25 -0
- package/dist/server/page-facts.js +138 -0
- package/dist/server/page-seed.d.ts +33 -0
- package/dist/server/page-seed.js +60 -0
- package/dist/server/page-stream.d.ts +55 -0
- package/dist/server/page-stream.js +121 -0
- package/dist/server/payload.d.ts +6 -0
- package/dist/server/payload.js +22 -0
- package/dist/server/personal-response.d.ts +6 -0
- package/dist/server/personal-response.js +13 -0
- package/dist/server/props-wire.d.ts +56 -0
- package/dist/server/props-wire.js +178 -0
- package/dist/server/rate-limit.d.ts +22 -0
- package/dist/server/rate-limit.js +63 -0
- package/dist/server/region-css.d.ts +5 -0
- package/dist/server/region-css.js +30 -0
- package/dist/server/region-endpoint.d.ts +35 -0
- package/dist/server/region-endpoint.js +142 -0
- package/dist/server/region-props.d.ts +6 -0
- package/dist/server/region-props.js +44 -0
- package/dist/server/remote-seed-gate.d.ts +50 -0
- package/dist/server/remote-seed-gate.js +66 -0
- package/dist/server/render-cache.d.ts +26 -0
- package/dist/server/render-cache.js +51 -0
- package/dist/server/render-page.d.ts +51 -0
- package/dist/server/render-page.js +176 -0
- package/dist/server/render-region-html.d.ts +2 -0
- package/dist/server/render-region-html.js +19 -0
- package/dist/server/request-stats.d.ts +174 -0
- package/dist/server/request-stats.js +54 -0
- package/dist/server/reversible.d.ts +83 -0
- package/dist/server/reversible.js +994 -0
- package/dist/server/seed-shape.d.ts +22 -0
- package/dist/server/seed-shape.js +24 -0
- package/dist/server/shared-cache.d.ts +35 -0
- package/dist/server/shared-cache.js +104 -0
- package/dist/server/signing-key.d.ts +11 -0
- package/dist/server/signing-key.js +47 -0
- package/dist/server/sized-lru.d.ts +20 -0
- package/dist/server/sized-lru.js +68 -0
- package/dist/server/split-regions.d.ts +81 -0
- package/dist/server/split-regions.js +368 -0
- package/dist/server/stream-regions.d.ts +5 -0
- package/dist/server/stream-regions.js +36 -0
- package/dist/shared-state.d.ts +7 -0
- package/dist/shared-state.js +152 -0
- package/dist/shims/app-environment.d.ts +4 -0
- package/dist/shims/app-environment.js +6 -0
- package/dist/shims/app-navigation.d.ts +33 -0
- package/dist/shims/app-navigation.js +119 -0
- package/dist/shims/app-paths.d.ts +6 -0
- package/dist/shims/app-paths.js +18 -0
- package/dist/shims/app-state.svelte.d.ts +23 -0
- package/dist/shims/app-state.svelte.js +50 -0
- package/dist/shims/app-stores.d.ts +21 -0
- package/dist/shims/app-stores.js +54 -0
- package/dist/shims/kit-bridge.d.ts +29 -0
- package/dist/shims/kit-bridge.js +7 -0
- package/dist/shims/kit-remote/client-stub.d.ts +27 -0
- package/dist/shims/kit-remote/client-stub.js +43 -0
- package/dist/shims/kit-remote/paths-internal-stub.d.ts +3 -0
- package/dist/shims/kit-remote/paths-internal-stub.js +5 -0
- package/dist/shims/kit-remote/remote-cache.d.ts +49 -0
- package/dist/shims/kit-remote/remote-cache.js +73 -0
- package/dist/shims/kit-remote/state-stub.d.ts +8 -0
- package/dist/shims/kit-remote/state-stub.js +8 -0
- package/dist/shims/page-store.svelte.d.ts +39 -0
- package/dist/shims/page-store.svelte.js +77 -0
- package/dist/source.d.ts +29 -0
- package/dist/source.js +87 -0
- package/dist/store-transport.d.ts +86 -0
- package/dist/store-transport.js +229 -0
- package/dist/tool-fetches.d.ts +5 -0
- package/dist/tool-fetches.js +41 -0
- package/dist/transport.d.ts +48 -0
- package/dist/transport.js +181 -0
- package/dist/unscoped-css.d.ts +26 -0
- package/dist/unscoped-css.js +53 -0
- package/dist/vite/dev-maps.d.ts +33 -0
- package/dist/vite/dev-maps.js +140 -0
- package/dist/vite/index.d.ts +19 -0
- package/dist/vite/index.js +820 -0
- package/dist/vite/kit-dirs.d.ts +7 -0
- package/dist/vite/kit-dirs.js +67 -0
- package/dist/vite/late-island.d.ts +25 -0
- package/dist/vite/late-island.js +33 -0
- package/dist/vite/module-map.d.ts +8 -0
- package/dist/vite/module-map.js +144 -0
- package/dist/vite/options.d.ts +208 -0
- package/dist/vite/options.js +74 -0
- package/dist/vite/package-files.d.ts +3 -0
- package/dist/vite/package-files.js +84 -0
- package/dist/vite/paths.d.ts +45 -0
- package/dist/vite/paths.js +112 -0
- package/dist/vite/plugin-api.d.ts +166 -0
- package/dist/vite/plugin-api.js +212 -0
- package/dist/vite/profiler-maps.d.ts +23 -0
- package/dist/vite/profiler-maps.js +178 -0
- package/dist/vite/server-sourcemaps.d.ts +8 -0
- package/dist/vite/server-sourcemaps.js +80 -0
- package/dist/vite/sourcemaps.d.ts +18 -0
- package/dist/vite/sourcemaps.js +80 -0
- package/dist/vite/style-preprocess.d.ts +2 -0
- package/dist/vite/style-preprocess.js +96 -0
- package/package.json +180 -6
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { walk } from "estree-walker";
|
|
2
|
+
// src/compiler/free-vars.ts
|
|
3
|
+
/**
|
|
4
|
+
* Free-variable analysis over a Svelte 5 template subtree.
|
|
5
|
+
*
|
|
6
|
+
* Given an array of top-level template nodes (a hoisted island subtree), returns
|
|
7
|
+
* the set of identifier names that are referenced inside the subtree but bound
|
|
8
|
+
* OUTSIDE it (host `<script>` vars, outer `{#each}` locals, component imports,
|
|
9
|
+
* globals...), PLUS the set of those free names that are the TARGET of a mutation
|
|
10
|
+
* (assignment / update / compound-assign / destructuring-assignment / `bind:`).
|
|
11
|
+
* Identifiers bound *within* the subtree (snippet params, each locals, `{@const}`,
|
|
12
|
+
* `{#await}` value/error, `let:` directives, and JS-level function params) are
|
|
13
|
+
* excluded from both sets.
|
|
14
|
+
*
|
|
15
|
+
* The mutation set powers a build-time guard: captured host state crosses the
|
|
16
|
+
* boundary as a serialized SNAPSHOT, so writing to it inside an island updates
|
|
17
|
+
* nothing. The transform turns a mutated capture into a precise error.
|
|
18
|
+
*/
|
|
19
|
+
const FUNCTION_TYPES = /* @__PURE__ */ new Set([
|
|
20
|
+
"FunctionDeclaration",
|
|
21
|
+
"FunctionExpression",
|
|
22
|
+
"ArrowFunctionExpression"
|
|
23
|
+
]);
|
|
24
|
+
/** Collect bound names from an estree binding pattern. */
|
|
25
|
+
function collect_pattern_names(node, out) {
|
|
26
|
+
if (!node) return;
|
|
27
|
+
switch (node.type) {
|
|
28
|
+
case "Identifier":
|
|
29
|
+
out.add(node.name);
|
|
30
|
+
break;
|
|
31
|
+
case "ObjectPattern":
|
|
32
|
+
for (const prop of node.properties) if (prop.type === "RestElement") collect_pattern_names(prop.argument, out);
|
|
33
|
+
else collect_pattern_names(prop.value, out);
|
|
34
|
+
break;
|
|
35
|
+
case "ArrayPattern":
|
|
36
|
+
for (const el of node.elements) collect_pattern_names(el, out);
|
|
37
|
+
break;
|
|
38
|
+
case "AssignmentPattern":
|
|
39
|
+
collect_pattern_names(node.left, out);
|
|
40
|
+
break;
|
|
41
|
+
case "RestElement": collect_pattern_names(node.argument, out);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** The leftmost identifier name of a member chain (`a.b.c` -> `a`), or null. */
|
|
45
|
+
function member_root(node) {
|
|
46
|
+
let cur = node;
|
|
47
|
+
while (cur && cur.type === "MemberExpression") cur = cur.object;
|
|
48
|
+
return cur && cur.type === "Identifier" ? cur.name : null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Collect the ROOT identifier names written by an assignment/update target — an
|
|
52
|
+
* Identifier (`x = …`), a MemberExpression (`x.a = …` -> `x`), or a destructuring
|
|
53
|
+
* pattern (`[x] = …`, `({ x } = …)`, defaults, rests, nested member targets).
|
|
54
|
+
*/
|
|
55
|
+
function collect_write_roots(target, roots) {
|
|
56
|
+
if (!target) return;
|
|
57
|
+
switch (target.type) {
|
|
58
|
+
case "Identifier":
|
|
59
|
+
roots.add(target.name);
|
|
60
|
+
break;
|
|
61
|
+
case "MemberExpression": {
|
|
62
|
+
const r = member_root(target);
|
|
63
|
+
if (r) roots.add(r);
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
case "ObjectPattern":
|
|
67
|
+
for (const prop of target.properties) if (prop.type === "RestElement") collect_write_roots(prop.argument, roots);
|
|
68
|
+
else collect_write_roots(prop.value, roots);
|
|
69
|
+
break;
|
|
70
|
+
case "ArrayPattern":
|
|
71
|
+
for (const el of target.elements) if (el) collect_write_roots(el, roots);
|
|
72
|
+
break;
|
|
73
|
+
case "AssignmentPattern":
|
|
74
|
+
collect_write_roots(target.left, roots);
|
|
75
|
+
break;
|
|
76
|
+
case "RestElement": collect_write_roots(target.argument, roots);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/** Is this Identifier node a *reference* (a read) rather than a binding/property name? */
|
|
80
|
+
function is_reference(node, parent, key) {
|
|
81
|
+
if (!parent) return true;
|
|
82
|
+
switch (parent.type) {
|
|
83
|
+
case "MemberExpression":
|
|
84
|
+
if (key === "property" && !parent.computed) return false;
|
|
85
|
+
return true;
|
|
86
|
+
case "Property":
|
|
87
|
+
if (key === "key" && !parent.computed) return parent.shorthand;
|
|
88
|
+
return true;
|
|
89
|
+
case "VariableDeclarator": return key !== "id";
|
|
90
|
+
case "FunctionDeclaration":
|
|
91
|
+
case "FunctionExpression":
|
|
92
|
+
case "ArrowFunctionExpression": return key !== "id" && key !== "params";
|
|
93
|
+
case "ImportSpecifier":
|
|
94
|
+
case "ImportDefaultSpecifier":
|
|
95
|
+
case "ImportNamespaceSpecifier": return false;
|
|
96
|
+
case "LabeledStatement":
|
|
97
|
+
case "BreakStatement":
|
|
98
|
+
case "ContinueStatement": return key !== "label";
|
|
99
|
+
case "CatchClause": return key !== "param";
|
|
100
|
+
default: return true;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Walk one estree expression, adding any free references (not bound by inner
|
|
105
|
+
* JS function scopes and not in `svelte_bound`) into `sink.refs`, and any free
|
|
106
|
+
* assignment/update targets into `sink.mutated`.
|
|
107
|
+
*/
|
|
108
|
+
function add_expression_refs(expr, svelte_bound, sink) {
|
|
109
|
+
if (!expr) return;
|
|
110
|
+
const scopes = [/* @__PURE__ */ new Set()];
|
|
111
|
+
const has = (name) => {
|
|
112
|
+
if (svelte_bound.has(name)) return true;
|
|
113
|
+
for (let i = scopes.length - 1; i >= 0; i--) if (scopes[i].has(name)) return true;
|
|
114
|
+
return false;
|
|
115
|
+
};
|
|
116
|
+
const record_writes = (target) => {
|
|
117
|
+
const roots = /* @__PURE__ */ new Set();
|
|
118
|
+
collect_write_roots(target, roots);
|
|
119
|
+
for (const r of roots) if (!has(r)) sink.mutated.add(r);
|
|
120
|
+
};
|
|
121
|
+
walk(expr, {
|
|
122
|
+
enter(node, parent, key) {
|
|
123
|
+
if (FUNCTION_TYPES.has(node.type)) {
|
|
124
|
+
const s = /* @__PURE__ */ new Set();
|
|
125
|
+
const fn = node;
|
|
126
|
+
if (fn.id && node.type !== "ArrowFunctionExpression") s.add(fn.id.name);
|
|
127
|
+
for (const p of fn.params) collect_pattern_names(p, s);
|
|
128
|
+
scopes.push(s);
|
|
129
|
+
} else if (node.type === "BlockStatement" && !FUNCTION_TYPES.has(parent?.type ?? "")) scopes.push(/* @__PURE__ */ new Set());
|
|
130
|
+
else if (node.type === "VariableDeclarator") collect_pattern_names(node.id, scopes[scopes.length - 1]);
|
|
131
|
+
else if (node.type === "CatchClause" && node.param) collect_pattern_names(node.param, scopes[scopes.length - 1]);
|
|
132
|
+
else if (node.type === "AssignmentExpression") record_writes(node.left);
|
|
133
|
+
else if (node.type === "UpdateExpression") record_writes(node.argument);
|
|
134
|
+
else if (node.type === "Identifier" && is_reference(node, parent, key)) {
|
|
135
|
+
if (!has(node.name)) {
|
|
136
|
+
sink.refs.add(node.name);
|
|
137
|
+
const at = node;
|
|
138
|
+
if (node.name.startsWith("$") && at.start != null && at.end != null) {
|
|
139
|
+
let sites = sink.stores.get(node.name);
|
|
140
|
+
if (!sites) sink.stores.set(node.name, sites = []);
|
|
141
|
+
sites.push({
|
|
142
|
+
start: at.start,
|
|
143
|
+
end: at.end
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
leave(node, parent) {
|
|
150
|
+
if (FUNCTION_TYPES.has(node.type)) scopes.pop();
|
|
151
|
+
else if (node.type === "BlockStatement" && !FUNCTION_TYPES.has(parent?.type ?? "")) scopes.pop();
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/** Names introduced by `let:` directives on an element/component. */
|
|
156
|
+
function let_directive_names(node) {
|
|
157
|
+
const names = /* @__PURE__ */ new Set();
|
|
158
|
+
for (const attr of node.attributes ?? []) if (attr.type === "LetDirective") {
|
|
159
|
+
if (attr.expression) collect_pattern_names(attr.expression, names);
|
|
160
|
+
else names.add(attr.name);
|
|
161
|
+
}
|
|
162
|
+
return names;
|
|
163
|
+
}
|
|
164
|
+
/** Walk attribute expressions of an element/component (not `let:`, which binds). */
|
|
165
|
+
function add_attribute_refs(node, bound, sink) {
|
|
166
|
+
for (const attr of node.attributes ?? []) switch (attr.type) {
|
|
167
|
+
case "Attribute":
|
|
168
|
+
if (attr.value === true) break;
|
|
169
|
+
if (Array.isArray(attr.value)) {
|
|
170
|
+
for (const part of attr.value) if (part.type === "ExpressionTag") add_expression_refs(part.expression, bound, sink);
|
|
171
|
+
} else if (attr.value?.type === "ExpressionTag") add_expression_refs(attr.value.expression, bound, sink);
|
|
172
|
+
break;
|
|
173
|
+
case "SpreadAttribute":
|
|
174
|
+
add_expression_refs(attr.expression, bound, sink);
|
|
175
|
+
break;
|
|
176
|
+
case "LetDirective": break;
|
|
177
|
+
case "BindDirective":
|
|
178
|
+
if (attr.expression) {
|
|
179
|
+
add_expression_refs(attr.expression, bound, sink);
|
|
180
|
+
const root = attr.expression.type === "Identifier" ? attr.expression.name : member_root(attr.expression);
|
|
181
|
+
if (root && !bound.has(root)) sink.mutated.add(root);
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
default: if (attr.expression) add_expression_refs(attr.expression, bound, sink);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/** Collect snippet names + const-declared names defined at this fragment level. */
|
|
188
|
+
function sibling_bindings(nodes) {
|
|
189
|
+
const names = /* @__PURE__ */ new Set();
|
|
190
|
+
for (const n of nodes) if (n.type === "SnippetBlock" && n.expression) names.add(n.expression.name);
|
|
191
|
+
else if (n.type === "ConstTag") for (const d of n.declaration.declarations) collect_pattern_names(d.id, names);
|
|
192
|
+
return names;
|
|
193
|
+
}
|
|
194
|
+
function fragment_nodes(fragment) {
|
|
195
|
+
return fragment?.nodes ?? [];
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @param nodes top-level nodes of the subtree
|
|
199
|
+
* @param outer_bound names bound outside (usually empty at entry)
|
|
200
|
+
* @param sink accumulates free references + mutations
|
|
201
|
+
*/
|
|
202
|
+
function walk_template(nodes, outer_bound, sink) {
|
|
203
|
+
const bound = new Set(outer_bound);
|
|
204
|
+
for (const name of sibling_bindings(nodes)) bound.add(name);
|
|
205
|
+
for (const node of nodes) switch (node.type) {
|
|
206
|
+
case "Text":
|
|
207
|
+
case "Comment": break;
|
|
208
|
+
case "ExpressionTag":
|
|
209
|
+
case "HtmlTag":
|
|
210
|
+
case "RenderTag":
|
|
211
|
+
add_expression_refs(node.expression, bound, sink);
|
|
212
|
+
break;
|
|
213
|
+
case "ConstTag":
|
|
214
|
+
for (const d of node.declaration.declarations) add_expression_refs(d.init, bound, sink);
|
|
215
|
+
break;
|
|
216
|
+
case "IfBlock":
|
|
217
|
+
add_expression_refs(node.test, bound, sink);
|
|
218
|
+
walk_template(fragment_nodes(node.consequent), bound, sink);
|
|
219
|
+
if (node.alternate) walk_template(fragment_nodes(node.alternate), bound, sink);
|
|
220
|
+
break;
|
|
221
|
+
case "EachBlock": {
|
|
222
|
+
add_expression_refs(node.expression, bound, sink);
|
|
223
|
+
const each_bound = new Set(bound);
|
|
224
|
+
collect_pattern_names(node.context, each_bound);
|
|
225
|
+
if (node.index) each_bound.add(node.index);
|
|
226
|
+
if (node.key) add_expression_refs(node.key, each_bound, sink);
|
|
227
|
+
walk_template(fragment_nodes(node.body), each_bound, sink);
|
|
228
|
+
if (node.fallback) walk_template(fragment_nodes(node.fallback), bound, sink);
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
case "AwaitBlock":
|
|
232
|
+
add_expression_refs(node.expression, bound, sink);
|
|
233
|
+
if (node.pending) walk_template(fragment_nodes(node.pending), bound, sink);
|
|
234
|
+
if (node.then) {
|
|
235
|
+
const then_bound = new Set(bound);
|
|
236
|
+
if (node.value) collect_pattern_names(node.value, then_bound);
|
|
237
|
+
walk_template(fragment_nodes(node.then), then_bound, sink);
|
|
238
|
+
}
|
|
239
|
+
if (node.catch) {
|
|
240
|
+
const catch_bound = new Set(bound);
|
|
241
|
+
if (node.error) collect_pattern_names(node.error, catch_bound);
|
|
242
|
+
walk_template(fragment_nodes(node.catch), catch_bound, sink);
|
|
243
|
+
}
|
|
244
|
+
break;
|
|
245
|
+
case "KeyBlock":
|
|
246
|
+
add_expression_refs(node.expression, bound, sink);
|
|
247
|
+
walk_template(fragment_nodes(node.fragment), bound, sink);
|
|
248
|
+
break;
|
|
249
|
+
case "SnippetBlock": {
|
|
250
|
+
const snip_bound = new Set(bound);
|
|
251
|
+
for (const p of node.parameters ?? []) collect_pattern_names(p, snip_bound);
|
|
252
|
+
walk_template(fragment_nodes(node.body), snip_bound, sink);
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
case "Component":
|
|
256
|
+
case "SvelteComponent": {
|
|
257
|
+
const root = String(node.name || "").split(".")[0];
|
|
258
|
+
if (root && !bound.has(root)) sink.refs.add(root);
|
|
259
|
+
add_attribute_refs(node, bound, sink);
|
|
260
|
+
const el_bound1 = new Set(bound);
|
|
261
|
+
for (const name of let_directive_names(node)) el_bound1.add(name);
|
|
262
|
+
if (node.fragment) walk_template(fragment_nodes(node.fragment), el_bound1, sink);
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
case "RegularElement":
|
|
266
|
+
case "SvelteElement":
|
|
267
|
+
case "SvelteSelf":
|
|
268
|
+
case "SvelteFragment":
|
|
269
|
+
case "SvelteBoundary":
|
|
270
|
+
case "SlotElement":
|
|
271
|
+
case "TitleElement": {
|
|
272
|
+
if (node.tag) add_expression_refs(node.tag, bound, sink);
|
|
273
|
+
add_attribute_refs(node, bound, sink);
|
|
274
|
+
const el_bound = new Set(bound);
|
|
275
|
+
for (const name of let_directive_names(node)) el_bound.add(name);
|
|
276
|
+
if (node.fragment) walk_template(fragment_nodes(node.fragment), el_bound, sink);
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
default: if (node.fragment) walk_template(fragment_nodes(node.fragment), bound, sink);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
/** Collect all snippet names defined anywhere in a subtree (for cross-boundary error detection). */
|
|
283
|
+
function collectSnippetNames(nodes) {
|
|
284
|
+
const out = /* @__PURE__ */ new Set();
|
|
285
|
+
const visit = (list) => {
|
|
286
|
+
for (const n of list ?? []) {
|
|
287
|
+
if (n.type === "SnippetBlock" && n.expression) out.add(n.expression.name);
|
|
288
|
+
for (const k of [
|
|
289
|
+
"consequent",
|
|
290
|
+
"alternate",
|
|
291
|
+
"body",
|
|
292
|
+
"fallback",
|
|
293
|
+
"pending",
|
|
294
|
+
"then",
|
|
295
|
+
"catch",
|
|
296
|
+
"fragment"
|
|
297
|
+
]) if (n[k]?.nodes) visit(n[k].nodes);
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
visit(nodes);
|
|
301
|
+
return out;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* @param nodes hoisted subtree top-level nodes
|
|
305
|
+
* @returns free identifier names + free mutation targets + `$store` read sites
|
|
306
|
+
*/
|
|
307
|
+
function collectCaptureInfo(nodes) {
|
|
308
|
+
const sink = {
|
|
309
|
+
refs: /* @__PURE__ */ new Set(),
|
|
310
|
+
mutated: /* @__PURE__ */ new Set(),
|
|
311
|
+
stores: /* @__PURE__ */ new Map()
|
|
312
|
+
};
|
|
313
|
+
walk_template(nodes, /* @__PURE__ */ new Set(), sink);
|
|
314
|
+
return {
|
|
315
|
+
free: sink.refs,
|
|
316
|
+
mutated: sink.mutated,
|
|
317
|
+
stores: sink.stores
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @param nodes hoisted subtree top-level nodes
|
|
322
|
+
* @returns free identifier names
|
|
323
|
+
*/
|
|
324
|
+
function collectFreeIdentifiers(nodes) {
|
|
325
|
+
return collectCaptureInfo(nodes).free;
|
|
326
|
+
}
|
|
327
|
+
export { collectCaptureInfo, collectFreeIdentifiers, collectSnippetNames };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** Directory entry (a `readdirSync(dir, { withFileTypes: true })` element). */
|
|
2
|
+
export interface HostDirent {
|
|
3
|
+
name: string;
|
|
4
|
+
isDirectory(): boolean;
|
|
5
|
+
isFile(): boolean;
|
|
6
|
+
}
|
|
7
|
+
/** File stats (`statSync`) — only the members the compiler reads. */
|
|
8
|
+
export interface HostStats {
|
|
9
|
+
isDirectory(): boolean;
|
|
10
|
+
isFile(): boolean;
|
|
11
|
+
mtimeMs?: number;
|
|
12
|
+
size?: number;
|
|
13
|
+
}
|
|
14
|
+
/** The filesystem surface the compiler uses. Reads must be real (the driver resolves the module graph
|
|
15
|
+
* through them); writes are the build's on-disk emits — a browser host keeps them in memory or no-ops. */
|
|
16
|
+
export interface HostFs {
|
|
17
|
+
/** `enc`: the text encoding (the compiler always reads `'utf8'`) */
|
|
18
|
+
readFileSync(p: string, enc?: string): string;
|
|
19
|
+
existsSync(p: string): boolean;
|
|
20
|
+
/** names (`string`s) normally, {@link HostDirent}s with `{ withFileTypes: true }`: read entries
|
|
21
|
+
* through {@link dir_entries}, which says which */
|
|
22
|
+
readdirSync(p: string, opts?: {
|
|
23
|
+
withFileTypes?: boolean;
|
|
24
|
+
}): unknown[];
|
|
25
|
+
statSync(p: string): HostStats;
|
|
26
|
+
globSync(pattern: string | string[], opts?: Record<string, unknown>): string[];
|
|
27
|
+
writeFileSync(p: string, data: string): void;
|
|
28
|
+
mkdirSync(p: string, opts?: {
|
|
29
|
+
recursive?: boolean;
|
|
30
|
+
}): void;
|
|
31
|
+
rmSync(p: string, opts?: {
|
|
32
|
+
recursive?: boolean;
|
|
33
|
+
force?: boolean;
|
|
34
|
+
}): void;
|
|
35
|
+
renameSync(from: string, to: string): void;
|
|
36
|
+
}
|
|
37
|
+
/** The `path` surface (node's `path` and `path`-browserify both satisfy this). */
|
|
38
|
+
export type HostPath = typeof import("node:path");
|
|
39
|
+
/** The one hash the compiler needs — `createHash(algo).update(s).digest('hex')` (md5 ids, sha256 hashes). */
|
|
40
|
+
export interface HostHasher {
|
|
41
|
+
update(data: string): HostHasher;
|
|
42
|
+
digest(enc: "hex"): string;
|
|
43
|
+
}
|
|
44
|
+
export interface HostCrypto {
|
|
45
|
+
createHash(algo: string): HostHasher;
|
|
46
|
+
}
|
|
47
|
+
/** A complete host environment. Install one in a non-Node realm via {@link set_host}. */
|
|
48
|
+
export interface CompilerHost {
|
|
49
|
+
fs: HostFs;
|
|
50
|
+
path: HostPath;
|
|
51
|
+
crypto: HostCrypto;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Install a browser (or test) host. No-arg resets to the Node default. Call once, before the first
|
|
55
|
+
* compile: the browser worker builds a virtual host over its workspace file-map and installs it here.
|
|
56
|
+
*/
|
|
57
|
+
export declare function set_host(h?: CompilerHost): void;
|
|
58
|
+
/** The current host's `fs` — read `fs.readFileSync(…)` exactly as with `node:fs`. */
|
|
59
|
+
export declare const fs: HostFs;
|
|
60
|
+
/** The entries of `dir` on the current host (`readdirSync(dir, { withFileTypes: true })`). */
|
|
61
|
+
export declare function dir_entries(dir: string): HostDirent[];
|
|
62
|
+
/** The current host's `path` — `path.join(…)` / `path.sep` exactly as with `node:path`. */
|
|
63
|
+
export declare const path: HostPath;
|
|
64
|
+
/** The current host's `createHash` — `createHash('md5').update(s).digest('hex')`. */
|
|
65
|
+
export declare function createHash(algo: string): HostHasher;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
// src/compiler/host.ts
|
|
3
|
+
/**
|
|
4
|
+
* The compiler's HOST environment — the filesystem, path, and hash primitives it reaches for. Node is
|
|
5
|
+
* the default (the shipped Vite plugin uses real `node:fs` / `node:path` / `node:crypto`, unchanged and
|
|
6
|
+
* at full speed); a BROWSER build (the Observatory REPL / `compiler/browser`) installs a virtual host via
|
|
7
|
+
* {@link set_host} — an in-memory filesystem over the workspace file-map, `path`-browserify, and a small
|
|
8
|
+
* md5/sha implementation — so the SAME compiler runs in-browser with no bundler shims.
|
|
9
|
+
*
|
|
10
|
+
* This is the same seam as {@link ./parse/oxc.ts set_parser}: a settable singleton, defaulting to Node,
|
|
11
|
+
* that keeps the driver bundler- and platform-agnostic. `fs` and `path` are exposed as thin proxies over
|
|
12
|
+
* the current host so call-sites read exactly as before (`fs.readFileSync(…)`, `path.join(…)`) — the get
|
|
13
|
+
* indirection is off the token-hot path (the transform's own reads go through the injected `HostCtx`, not
|
|
14
|
+
* this), so it costs the Node build nothing measurable.
|
|
15
|
+
*/
|
|
16
|
+
let node_host;
|
|
17
|
+
function node_default() {
|
|
18
|
+
if (!node_host) {
|
|
19
|
+
const require = createRequire(import.meta.url);
|
|
20
|
+
node_host = {
|
|
21
|
+
fs: require("node:fs"),
|
|
22
|
+
path: require("node:path"),
|
|
23
|
+
crypto: require("node:crypto")
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return node_host;
|
|
27
|
+
}
|
|
28
|
+
let current = null;
|
|
29
|
+
function host() {
|
|
30
|
+
return current ?? node_default();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Install a browser (or test) host. No-arg resets to the Node default. Call once, before the first
|
|
34
|
+
* compile: the browser worker builds a virtual host over its workspace file-map and installs it here.
|
|
35
|
+
*/
|
|
36
|
+
function set_host(h) {
|
|
37
|
+
current = h ?? null;
|
|
38
|
+
}
|
|
39
|
+
/** The current host's `fs` — read `fs.readFileSync(…)` exactly as with `node:fs`. */
|
|
40
|
+
const fs = new Proxy({}, { get: (_t, key) => host().fs[key] });
|
|
41
|
+
/** The entries of `dir` on the current host (`readdirSync(dir, { withFileTypes: true })`). */
|
|
42
|
+
function dir_entries(dir) {
|
|
43
|
+
return fs.readdirSync(dir, { withFileTypes: true });
|
|
44
|
+
}
|
|
45
|
+
/** The current host's `path` — `path.join(…)` / `path.sep` exactly as with `node:path`. */
|
|
46
|
+
const path = new Proxy({}, { get: (_t, key) => host().path[key] });
|
|
47
|
+
/** The current host's `createHash` — `createHash('md5').update(s).digest('hex')`. */
|
|
48
|
+
function createHash(algo) {
|
|
49
|
+
return host().crypto.createHash(algo);
|
|
50
|
+
}
|
|
51
|
+
export { createHash, dir_entries, fs, path, set_host };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `virtual:ogygia/*` id vocabulary — every virtual module id the compiler mints or serves, the
|
|
3
|
+
* `\0`-prefix resolver, and the per-island entry-id naming. Pure string constants + naming functions,
|
|
4
|
+
* no state: the shared vocabulary the driver's resolve/emit dispatch and the linker key on.
|
|
5
|
+
*/
|
|
6
|
+
export declare const V_RUNTIME_URL = "virtual:ogygia/runtime-url";
|
|
7
|
+
export declare const V_MANIFEST = "virtual:ogygia/manifest";
|
|
8
|
+
export declare const V_RUNTIME = "virtual:ogygia-runtime";
|
|
9
|
+
/** Generated sticky entry — static-imports only the features selected from build marks. */
|
|
10
|
+
export declare const V_RUNTIME_ENTRY = "virtual:ogygia/runtime-entry";
|
|
11
|
+
/** Generated hydrate-phase feature module — imported statically by the hydrate core (link/runtime-entry.ts). */
|
|
12
|
+
export declare const V_HYDRATE_FEATURES = "virtual:ogygia/hydrate-features";
|
|
13
|
+
export declare const V_DEV_HMR = "virtual:ogygia/dev-hmr";
|
|
14
|
+
export declare const V_DEV_HMR_URL = "virtual:ogygia/dev-hmr-url";
|
|
15
|
+
export declare const V_DEVTOOLS_BOOT = "virtual:ogygia/devtools-boot";
|
|
16
|
+
export declare const V_DEVTOOLS_BOOT_URL = "virtual:ogygia/devtools-boot-url";
|
|
17
|
+
export declare const V_DEVTOOLS_META = "virtual:ogygia/devtools-meta";
|
|
18
|
+
export declare const V_ISLAND_DEPS = "virtual:ogygia/island-deps";
|
|
19
|
+
export declare const V_FN_MANIFEST = "virtual:ogygia/fn-manifest";
|
|
20
|
+
export declare const V_SECRET = "virtual:ogygia/secret";
|
|
21
|
+
export declare const V_SIGN = "virtual:ogygia/sign";
|
|
22
|
+
export declare const V_RATE_LIMIT = "virtual:ogygia/rate-limit";
|
|
23
|
+
/** The app's plugins' SERVER halves, statically imported in plugin order.
|
|
24
|
+
* SERVER only; the client gets an empty list. */
|
|
25
|
+
export declare const V_SERVER_PLUGINS = "virtual:ogygia/server-plugins";
|
|
26
|
+
/** THE PROFILER'S MAPS, carried as code: the server build's module map and every server chunk's
|
|
27
|
+
* sourcemap, written into this module's chunk after the build (a file read by path does not survive
|
|
28
|
+
* an adapter that traces imports or re-bundles; an import does). Imported only by the profiler, only
|
|
29
|
+
* when it resolves a frame. Build + SSR + profiler on: the placeholder below, filled in closeBundle */
|
|
30
|
+
export declare const V_PROFILER_MAPS = "virtual:ogygia/profiler-maps";
|
|
31
|
+
/** the string the maps module exports until the build fills it (build-time only: never in runtime code,
|
|
32
|
+
* so the one literal in the output is the one to replace) */
|
|
33
|
+
export declare const PROFILER_MAPS_PLACEHOLDER = "__ogygia_profiler_maps_placeholder__";
|
|
34
|
+
/** the filled maps payload's mark: gzipped JSON, base64 (vite/profiler-maps.ts writes it, the
|
|
35
|
+
* profiler's embedded-maps reads it) */
|
|
36
|
+
export declare const PROFILER_MAPS_GZ_PREFIX = "gz:";
|
|
37
|
+
export declare const V_SESSION_COOKIE = "virtual:ogygia/session-cookie";
|
|
38
|
+
export declare const V_REGION_TTL = "virtual:ogygia/region-ttl";
|
|
39
|
+
export declare const V_ROUTER_CONFIG = "virtual:ogygia/router-config";
|
|
40
|
+
/** Generated component→CSS registrations for the SERVER router — the module that makes a router
|
|
41
|
+
* page's `<style>` reach the document (see link/router-css.ts). SSR-only, imported by `ogygia/plugin/css`. */
|
|
42
|
+
export declare const V_ROUTER_CSS = "virtual:ogygia/router-css";
|
|
43
|
+
export declare const V_SERVER_MANIFEST = "virtual:ogygia/server-manifest";
|
|
44
|
+
/** The server islands' loaders (`id → () => import(entry)`), reached only through the manifest's
|
|
45
|
+
* `load_islands()` — see link/server-manifest.ts for why they live one dynamic import away. */
|
|
46
|
+
export declare const V_SERVER_ISLANDS = "virtual:ogygia/server-islands";
|
|
47
|
+
export declare const V_REQUEST_EVENT = "virtual:ogygia/request-event";
|
|
48
|
+
/** SSR-only map of csr=true route ids — lets Region degrade a csr=false layout's islands to inline
|
|
49
|
+
* when the LEAF page is csr=true (Kit hydrates the whole document). Client leg is an empty set;
|
|
50
|
+
* the client uses `kit_hydrates_page()` for the identical signal. */
|
|
51
|
+
export declare const V_ROUTE_CSR = "virtual:ogygia/route-csr";
|
|
52
|
+
export declare const V_REGION_ENDPOINT = "virtual:ogygia/region-endpoint";
|
|
53
|
+
export declare const V_KIT_WIRE = "virtual:ogygia/kit-wire";
|
|
54
|
+
export declare const V_TRANSPORT = "virtual:ogygia/transport";
|
|
55
|
+
/** The app's Kit `transport` hook (`ogygia.transport`), generated per-app: the codec cluster when the
|
|
56
|
+
* app crosses regions/wired-values over the wire, an empty map for a pure-island app (no dead codecs). */
|
|
57
|
+
export declare const V_KIT_TRANSPORT = "virtual:ogygia/kit-transport";
|
|
58
|
+
export declare const V_TRANSPORTABLES = "virtual:ogygia/transportables";
|
|
59
|
+
/** What an island entry imports for the transportable codecs: the SERVER's eager registration (the
|
|
60
|
+
* region endpoint decodes signed props of any island); empty in the browser, where the runtime
|
|
61
|
+
* loads an island's classes from `V_TRANSPORTABLES`' lazy map. */
|
|
62
|
+
export declare const V_TRANSPORTABLES_EAGER = "virtual:ogygia/transportables-eager";
|
|
63
|
+
/** Every Kit page route id → the keys plugins claim inside Kit's `config` page option, merged
|
|
64
|
+
* (`b.routeConfig`). SERVER only (empty on the client; the route list never ships to the browser). */
|
|
65
|
+
export declare const V_ROUTE_CONFIG = "virtual:ogygia/route-config";
|
|
66
|
+
/** Resolve a virtual id to its `\0`-prefixed resolved form (Vite/rollup convention). */
|
|
67
|
+
export declare const RESOLVED: (id: string) => string;
|
|
68
|
+
/** Virtual island ENTRY module id — JS re-export of the real component (not a thin .svelte). */
|
|
69
|
+
export declare const islandVirtualId: (iid: string) => string;
|
|
70
|
+
/**
|
|
71
|
+
* Region-binding module id. A `with { region: 'raw' }` import is rewritten to import this JS
|
|
72
|
+
* module, whose source is leg-split by the plugin `load` hook: the SSR leg carries the server
|
|
73
|
+
* signer (so `region()` can mint a capability), the client leg is metadata-only (no server
|
|
74
|
+
* code crosses into the browser bundle).
|
|
75
|
+
*/
|
|
76
|
+
export declare const regionBindingVirtualId: (iid: string) => string;
|
|
77
|
+
/**
|
|
78
|
+
* The wake island wrapper's CLIENT-leg component source — the leg-split twin of the wrapper: the SSR
|
|
79
|
+
* wrapper imports the island entry (it must render), the client wrapper imports THIS, a module that
|
|
80
|
+
* imports the entry only when the document rendered the island (emit.ts `lazy_entry_source`). It is
|
|
81
|
+
* how a csr=true host's page graph stops at the wrapper, the same rule the csr=false registry stub
|
|
82
|
+
* applies one level up: what a page ships is decided by what it RENDERED, never by its import graph.
|
|
83
|
+
*/
|
|
84
|
+
export declare const lazyEntryVirtualId: (iid: string) => string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// src/compiler/ids.ts
|
|
2
|
+
/**
|
|
3
|
+
* The `virtual:ogygia/*` id vocabulary — every virtual module id the compiler mints or serves, the
|
|
4
|
+
* `\0`-prefix resolver, and the per-island entry-id naming. Pure string constants + naming functions,
|
|
5
|
+
* no state: the shared vocabulary the driver's resolve/emit dispatch and the linker key on.
|
|
6
|
+
*/
|
|
7
|
+
const V_RUNTIME_URL = "virtual:ogygia/runtime-url";
|
|
8
|
+
const V_MANIFEST = "virtual:ogygia/manifest";
|
|
9
|
+
const V_RUNTIME = "virtual:ogygia-runtime";
|
|
10
|
+
/** Generated sticky entry — static-imports only the features selected from build marks. */
|
|
11
|
+
const V_RUNTIME_ENTRY = "virtual:ogygia/runtime-entry";
|
|
12
|
+
/** Generated hydrate-phase feature module — imported statically by the hydrate core (link/runtime-entry.ts). */
|
|
13
|
+
const V_HYDRATE_FEATURES = "virtual:ogygia/hydrate-features";
|
|
14
|
+
const V_DEV_HMR = "virtual:ogygia/dev-hmr";
|
|
15
|
+
const V_DEV_HMR_URL = "virtual:ogygia/dev-hmr-url";
|
|
16
|
+
const V_DEVTOOLS_BOOT = "virtual:ogygia/devtools-boot";
|
|
17
|
+
const V_DEVTOOLS_BOOT_URL = "virtual:ogygia/devtools-boot-url";
|
|
18
|
+
const V_DEVTOOLS_META = "virtual:ogygia/devtools-meta";
|
|
19
|
+
const V_ISLAND_DEPS = "virtual:ogygia/island-deps";
|
|
20
|
+
const V_FN_MANIFEST = "virtual:ogygia/fn-manifest";
|
|
21
|
+
const V_SECRET = "virtual:ogygia/secret";
|
|
22
|
+
const V_SIGN = "virtual:ogygia/sign";
|
|
23
|
+
const V_RATE_LIMIT = "virtual:ogygia/rate-limit";
|
|
24
|
+
/** The app's plugins' SERVER halves, statically imported in plugin order.
|
|
25
|
+
* SERVER only; the client gets an empty list. */
|
|
26
|
+
const V_SERVER_PLUGINS = "virtual:ogygia/server-plugins";
|
|
27
|
+
/** THE PROFILER'S MAPS, carried as code: the server build's module map and every server chunk's
|
|
28
|
+
* sourcemap, written into this module's chunk after the build (a file read by path does not survive
|
|
29
|
+
* an adapter that traces imports or re-bundles; an import does). Imported only by the profiler, only
|
|
30
|
+
* when it resolves a frame. Build + SSR + profiler on: the placeholder below, filled in closeBundle */
|
|
31
|
+
const V_PROFILER_MAPS = "virtual:ogygia/profiler-maps";
|
|
32
|
+
/** the string the maps module exports until the build fills it (build-time only: never in runtime code,
|
|
33
|
+
* so the one literal in the output is the one to replace) */
|
|
34
|
+
const PROFILER_MAPS_PLACEHOLDER = "__ogygia_profiler_maps_placeholder__";
|
|
35
|
+
/** the filled maps payload's mark: gzipped JSON, base64 (vite/profiler-maps.ts writes it, the
|
|
36
|
+
* profiler's embedded-maps reads it) */
|
|
37
|
+
const PROFILER_MAPS_GZ_PREFIX = "gz:";
|
|
38
|
+
const V_SESSION_COOKIE = "virtual:ogygia/session-cookie";
|
|
39
|
+
const V_REGION_TTL = "virtual:ogygia/region-ttl";
|
|
40
|
+
const V_ROUTER_CONFIG = "virtual:ogygia/router-config";
|
|
41
|
+
/** Generated component→CSS registrations for the SERVER router — the module that makes a router
|
|
42
|
+
* page's `<style>` reach the document (see link/router-css.ts). SSR-only, imported by `ogygia/plugin/css`. */
|
|
43
|
+
const V_ROUTER_CSS = "virtual:ogygia/router-css";
|
|
44
|
+
const V_SERVER_MANIFEST = "virtual:ogygia/server-manifest";
|
|
45
|
+
/** The server islands' loaders (`id → () => import(entry)`), reached only through the manifest's
|
|
46
|
+
* `load_islands()` — see link/server-manifest.ts for why they live one dynamic import away. */
|
|
47
|
+
const V_SERVER_ISLANDS = "virtual:ogygia/server-islands";
|
|
48
|
+
const V_REQUEST_EVENT = "virtual:ogygia/request-event";
|
|
49
|
+
/** SSR-only map of csr=true route ids — lets Region degrade a csr=false layout's islands to inline
|
|
50
|
+
* when the LEAF page is csr=true (Kit hydrates the whole document). Client leg is an empty set;
|
|
51
|
+
* the client uses `kit_hydrates_page()` for the identical signal. */
|
|
52
|
+
const V_ROUTE_CSR = "virtual:ogygia/route-csr";
|
|
53
|
+
const V_REGION_ENDPOINT = "virtual:ogygia/region-endpoint";
|
|
54
|
+
const V_KIT_WIRE = "virtual:ogygia/kit-wire";
|
|
55
|
+
const V_TRANSPORT = "virtual:ogygia/transport";
|
|
56
|
+
/** The app's Kit `transport` hook (`ogygia.transport`), generated per-app: the codec cluster when the
|
|
57
|
+
* app crosses regions/wired-values over the wire, an empty map for a pure-island app (no dead codecs). */
|
|
58
|
+
const V_KIT_TRANSPORT = "virtual:ogygia/kit-transport";
|
|
59
|
+
const V_TRANSPORTABLES = "virtual:ogygia/transportables";
|
|
60
|
+
/** What an island entry imports for the transportable codecs: the SERVER's eager registration (the
|
|
61
|
+
* region endpoint decodes signed props of any island); empty in the browser, where the runtime
|
|
62
|
+
* loads an island's classes from `V_TRANSPORTABLES`' lazy map. */
|
|
63
|
+
const V_TRANSPORTABLES_EAGER = "virtual:ogygia/transportables-eager";
|
|
64
|
+
/** Every Kit page route id → the keys plugins claim inside Kit's `config` page option, merged
|
|
65
|
+
* (`b.routeConfig`). SERVER only (empty on the client; the route list never ships to the browser). */
|
|
66
|
+
const V_ROUTE_CONFIG = "virtual:ogygia/route-config";
|
|
67
|
+
/** Resolve a virtual id to its `\0`-prefixed resolved form (Vite/rollup convention). */
|
|
68
|
+
const RESOLVED = (id) => "\0" + id;
|
|
69
|
+
/** Virtual island ENTRY module id — JS re-export of the real component (not a thin .svelte). */
|
|
70
|
+
const islandVirtualId = (iid) => `virtual:ogygia/island/${iid}.js`;
|
|
71
|
+
/**
|
|
72
|
+
* Region-binding module id. A `with { region: 'raw' }` import is rewritten to import this JS
|
|
73
|
+
* module, whose source is leg-split by the plugin `load` hook: the SSR leg carries the server
|
|
74
|
+
* signer (so `region()` can mint a capability), the client leg is metadata-only (no server
|
|
75
|
+
* code crosses into the browser bundle).
|
|
76
|
+
*/
|
|
77
|
+
const regionBindingVirtualId = (iid) => `virtual:ogygia/region/${iid}.js`;
|
|
78
|
+
/**
|
|
79
|
+
* The wake island wrapper's CLIENT-leg component source — the leg-split twin of the wrapper: the SSR
|
|
80
|
+
* wrapper imports the island entry (it must render), the client wrapper imports THIS, a module that
|
|
81
|
+
* imports the entry only when the document rendered the island (emit.ts `lazy_entry_source`). It is
|
|
82
|
+
* how a csr=true host's page graph stops at the wrapper, the same rule the csr=false registry stub
|
|
83
|
+
* applies one level up: what a page ships is decided by what it RENDERED, never by its import graph.
|
|
84
|
+
*/
|
|
85
|
+
const lazyEntryVirtualId = (iid) => `virtual:ogygia/lazy/${iid}.js`;
|
|
86
|
+
export { PROFILER_MAPS_GZ_PREFIX, PROFILER_MAPS_PLACEHOLDER, RESOLVED, V_DEVTOOLS_BOOT, V_DEVTOOLS_BOOT_URL, V_DEVTOOLS_META, V_DEV_HMR, V_DEV_HMR_URL, V_FN_MANIFEST, V_HYDRATE_FEATURES, V_ISLAND_DEPS, V_KIT_TRANSPORT, V_KIT_WIRE, V_MANIFEST, V_PROFILER_MAPS, V_RATE_LIMIT, V_REGION_ENDPOINT, V_REGION_TTL, V_REQUEST_EVENT, V_ROUTER_CONFIG, V_ROUTER_CSS, V_ROUTE_CONFIG, V_ROUTE_CSR, V_RUNTIME, V_RUNTIME_ENTRY, V_RUNTIME_URL, V_SECRET, V_SERVER_ISLANDS, V_SERVER_MANIFEST, V_SERVER_PLUGINS, V_SESSION_COOKIE, V_SIGN, V_TRANSPORT, V_TRANSPORTABLES, V_TRANSPORTABLES_EAGER, islandVirtualId, lazyEntryVirtualId, regionBindingVirtualId };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CLIENT_BINDING_STUB, DEFAULT_IMPORT_KEYS, ISLAND_DIR, ImportKeys, asRegionLocals, import_keys_hint, is_island_path, islandChunkFileName, islandId, islandPublicUrl, normalize_hydrate_value, normalize_import_keys, normalize_region_value, transformHost, transformTsRegions, wrapperVirtualId } from "./region/transform.js";
|
|
2
|
+
import { RawParse, set_parser } from "./parse/oxc.js";
|
|
3
|
+
import { CssReachOptions, FOUC_CSS_PREFIX, FOUC_SCOPED_PREFIX, FoucAlias, buildFoucCssModuleSource, collectFoucCssReachable, compileFoucScopedCss, foucCssVirtualId, foucRelFromId, foucScopedVirtualId, isFoucCssId, isFoucScopedId, listStaticImports, resolveFoucImportSpec, svelteHasStyle } from "./fouc-css.js";
|
|
4
|
+
import { regionId, regionIdentity, strategyKey } from "./region/identity.js";
|
|
5
|
+
import { collectCaptureInfo, collectFreeIdentifiers, collectSnippetNames } from "./free-vars.js";
|
|
6
|
+
import { Compiler, Profiler } from "./driver.js";
|
|
7
|
+
import { Program, host_key, strip_id } from "./program.js";
|
|
8
|
+
import { CompileCtx, CompileCtxInit } from "./ctx.js";
|
|
9
|
+
import { PROFILER_MAPS_GZ_PREFIX, PROFILER_MAPS_PLACEHOLDER, RESOLVED, V_DEVTOOLS_BOOT, V_DEVTOOLS_BOOT_URL, V_DEVTOOLS_META, V_DEV_HMR, V_DEV_HMR_URL, V_FN_MANIFEST, V_HYDRATE_FEATURES, V_ISLAND_DEPS, V_KIT_TRANSPORT, V_KIT_WIRE, V_MANIFEST, V_PROFILER_MAPS, V_RATE_LIMIT, V_REGION_ENDPOINT, V_REGION_TTL, V_REQUEST_EVENT, V_ROUTER_CONFIG, V_ROUTER_CSS, V_ROUTE_CONFIG, V_ROUTE_CSR, V_RUNTIME, V_RUNTIME_ENTRY, V_RUNTIME_URL, V_SECRET, V_SERVER_ISLANDS, V_SERVER_MANIFEST, V_SERVER_PLUGINS, V_SESSION_COOKIE, V_SIGN, V_TRANSPORT, V_TRANSPORTABLES, V_TRANSPORTABLES_EAGER, islandVirtualId, lazyEntryVirtualId, regionBindingVirtualId } from "./ids.js";
|
|
10
|
+
import { FLAGS_SPEC, FlagSite, collect_flag_sites, flags_manifest } from "./flags.js";
|
|
11
|
+
export { CLIENT_BINDING_STUB, CompileCtx, type CompileCtxInit, Compiler, CssReachOptions, DEFAULT_IMPORT_KEYS, FLAGS_SPEC, FOUC_CSS_PREFIX, FOUC_SCOPED_PREFIX, type FlagSite, FoucAlias, ISLAND_DIR, ImportKeys, PROFILER_MAPS_GZ_PREFIX, PROFILER_MAPS_PLACEHOLDER, type Profiler, Program, RESOLVED, type RawParse, V_DEVTOOLS_BOOT, V_DEVTOOLS_BOOT_URL, V_DEVTOOLS_META, V_DEV_HMR, V_DEV_HMR_URL, V_FN_MANIFEST, V_HYDRATE_FEATURES, V_ISLAND_DEPS, V_KIT_TRANSPORT, V_KIT_WIRE, V_MANIFEST, V_PROFILER_MAPS, V_RATE_LIMIT, V_REGION_ENDPOINT, V_REGION_TTL, V_REQUEST_EVENT, V_ROUTER_CONFIG, V_ROUTER_CSS, V_ROUTE_CONFIG, V_ROUTE_CSR, V_RUNTIME, V_RUNTIME_ENTRY, V_RUNTIME_URL, V_SECRET, V_SERVER_ISLANDS, V_SERVER_MANIFEST, V_SERVER_PLUGINS, V_SESSION_COOKIE, V_SIGN, V_TRANSPORT, V_TRANSPORTABLES, V_TRANSPORTABLES_EAGER, asRegionLocals, buildFoucCssModuleSource, collectCaptureInfo, collectFoucCssReachable, collectFreeIdentifiers, collectSnippetNames, collect_flag_sites, compileFoucScopedCss, flags_manifest, foucCssVirtualId, foucRelFromId, foucScopedVirtualId, host_key, import_keys_hint, isFoucCssId, isFoucScopedId, is_island_path, islandChunkFileName, islandId, islandPublicUrl, islandVirtualId, lazyEntryVirtualId, listStaticImports, normalize_hydrate_value, normalize_import_keys, normalize_region_value, regionBindingVirtualId, regionId, regionIdentity, resolveFoucImportSpec, set_parser, strategyKey, strip_id, svelteHasStyle, transformHost, transformTsRegions, wrapperVirtualId };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CLIENT_BINDING_STUB, DEFAULT_IMPORT_KEYS, ISLAND_DIR, asRegionLocals, import_keys_hint, is_island_path, islandChunkFileName, islandId, islandPublicUrl, normalize_hydrate_value, normalize_import_keys, normalize_region_value, transformHost, transformTsRegions, wrapperVirtualId } from "./region/transform.js";
|
|
2
|
+
import { set_parser } from "./parse/oxc.js";
|
|
3
|
+
import { FOUC_CSS_PREFIX, FOUC_SCOPED_PREFIX, buildFoucCssModuleSource, collectFoucCssReachable, compileFoucScopedCss, foucCssVirtualId, foucRelFromId, foucScopedVirtualId, isFoucCssId, isFoucScopedId, listStaticImports, resolveFoucImportSpec, svelteHasStyle } from "./fouc-css.js";
|
|
4
|
+
import { regionId, regionIdentity, strategyKey } from "./region/identity.js";
|
|
5
|
+
import { collectCaptureInfo, collectFreeIdentifiers, collectSnippetNames } from "./free-vars.js";
|
|
6
|
+
import { Compiler } from "./driver.js";
|
|
7
|
+
import { Program, host_key, strip_id } from "./program.js";
|
|
8
|
+
import { CompileCtx } from "./ctx.js";
|
|
9
|
+
import { PROFILER_MAPS_GZ_PREFIX, PROFILER_MAPS_PLACEHOLDER, RESOLVED, V_DEVTOOLS_BOOT, V_DEVTOOLS_BOOT_URL, V_DEVTOOLS_META, V_DEV_HMR, V_DEV_HMR_URL, V_FN_MANIFEST, V_HYDRATE_FEATURES, V_ISLAND_DEPS, V_KIT_TRANSPORT, V_KIT_WIRE, V_MANIFEST, V_PROFILER_MAPS, V_RATE_LIMIT, V_REGION_ENDPOINT, V_REGION_TTL, V_REQUEST_EVENT, V_ROUTER_CONFIG, V_ROUTER_CSS, V_ROUTE_CONFIG, V_ROUTE_CSR, V_RUNTIME, V_RUNTIME_ENTRY, V_RUNTIME_URL, V_SECRET, V_SERVER_ISLANDS, V_SERVER_MANIFEST, V_SERVER_PLUGINS, V_SESSION_COOKIE, V_SIGN, V_TRANSPORT, V_TRANSPORTABLES, V_TRANSPORTABLES_EAGER, islandVirtualId, lazyEntryVirtualId, regionBindingVirtualId } from "./ids.js";
|
|
10
|
+
import { FLAGS_SPEC, collect_flag_sites, flags_manifest } from "./flags.js";
|
|
11
|
+
export { CLIENT_BINDING_STUB, CompileCtx, Compiler, DEFAULT_IMPORT_KEYS, FLAGS_SPEC, FOUC_CSS_PREFIX, FOUC_SCOPED_PREFIX, ISLAND_DIR, PROFILER_MAPS_GZ_PREFIX, PROFILER_MAPS_PLACEHOLDER, Program, RESOLVED, V_DEVTOOLS_BOOT, V_DEVTOOLS_BOOT_URL, V_DEVTOOLS_META, V_DEV_HMR, V_DEV_HMR_URL, V_FN_MANIFEST, V_HYDRATE_FEATURES, V_ISLAND_DEPS, V_KIT_TRANSPORT, V_KIT_WIRE, V_MANIFEST, V_PROFILER_MAPS, V_RATE_LIMIT, V_REGION_ENDPOINT, V_REGION_TTL, V_REQUEST_EVENT, V_ROUTER_CONFIG, V_ROUTER_CSS, V_ROUTE_CONFIG, V_ROUTE_CSR, V_RUNTIME, V_RUNTIME_ENTRY, V_RUNTIME_URL, V_SECRET, V_SERVER_ISLANDS, V_SERVER_MANIFEST, V_SERVER_PLUGINS, V_SESSION_COOKIE, V_SIGN, V_TRANSPORT, V_TRANSPORTABLES, V_TRANSPORTABLES_EAGER, asRegionLocals, buildFoucCssModuleSource, collectCaptureInfo, collectFoucCssReachable, collectFreeIdentifiers, collectSnippetNames, collect_flag_sites, compileFoucScopedCss, flags_manifest, foucCssVirtualId, foucRelFromId, foucScopedVirtualId, host_key, import_keys_hint, isFoucCssId, isFoucScopedId, is_island_path, islandChunkFileName, islandId, islandPublicUrl, islandVirtualId, lazyEntryVirtualId, listStaticImports, normalize_hydrate_value, normalize_import_keys, normalize_region_value, regionBindingVirtualId, regionId, regionIdentity, resolveFoucImportSpec, set_parser, strategyKey, strip_id, svelteHasStyle, transformHost, transformTsRegions, wrapperVirtualId };
|