effect-start 0.27.0 → 0.29.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/dist/Cookies.d.ts +46 -0
- package/dist/Cookies.d.ts.map +1 -0
- package/dist/Cookies.js +303 -0
- package/dist/Cookies.js.map +1 -0
- package/dist/Entity.d.ts +47 -0
- package/dist/Entity.d.ts.map +1 -0
- package/dist/Entity.js +238 -0
- package/dist/Entity.js.map +1 -0
- package/dist/Fetch.d.ts +69 -0
- package/dist/Fetch.d.ts.map +1 -0
- package/dist/Fetch.js +225 -0
- package/dist/Fetch.js.map +1 -0
- package/dist/FileRouter.d.ts +54 -0
- package/dist/FileRouter.d.ts.map +1 -0
- package/dist/FileRouter.js +158 -0
- package/dist/FileRouter.js.map +1 -0
- package/dist/FileRouterCodegen.d.ts +19 -0
- package/dist/FileRouterCodegen.d.ts.map +1 -0
- package/dist/FileRouterCodegen.js +216 -0
- package/dist/FileRouterCodegen.js.map +1 -0
- package/dist/FileSystem.d.ts +159 -0
- package/dist/FileSystem.d.ts.map +1 -0
- package/dist/FileSystem.js +73 -0
- package/dist/FileSystem.js.map +1 -0
- package/dist/GlobalLayer.d.ts +4 -0
- package/dist/GlobalLayer.d.ts.map +1 -0
- package/dist/GlobalLayer.js +51 -0
- package/dist/GlobalLayer.js.map +1 -0
- package/dist/PlatformRuntime.d.ts +30 -0
- package/dist/PlatformRuntime.d.ts.map +1 -0
- package/dist/PlatformRuntime.js +50 -0
- package/dist/PlatformRuntime.js.map +1 -0
- package/dist/Route.d.ts +98 -0
- package/dist/Route.d.ts.map +1 -0
- package/dist/Route.js +101 -0
- package/dist/Route.js.map +1 -0
- package/dist/RouteBody.d.ts +48 -0
- package/dist/RouteBody.d.ts.map +1 -0
- package/dist/RouteBody.js +68 -0
- package/dist/RouteBody.js.map +1 -0
- package/dist/RouteError.d.ts +99 -0
- package/dist/RouteError.d.ts.map +1 -0
- package/dist/RouteError.js +56 -0
- package/dist/RouteError.js.map +1 -0
- package/dist/RouteHook.d.ts +13 -0
- package/dist/RouteHook.d.ts.map +1 -0
- package/dist/RouteHook.js +40 -0
- package/dist/RouteHook.js.map +1 -0
- package/dist/RouteHttp.d.ts +22 -0
- package/dist/RouteHttp.d.ts.map +1 -0
- package/dist/RouteHttp.js +266 -0
- package/dist/RouteHttp.js.map +1 -0
- package/dist/RouteHttpTracer.d.ts +11 -0
- package/dist/RouteHttpTracer.d.ts.map +1 -0
- package/dist/RouteHttpTracer.js +63 -0
- package/dist/RouteHttpTracer.js.map +1 -0
- package/dist/RouteMount.d.ts +87 -0
- package/dist/RouteMount.d.ts.map +1 -0
- package/dist/RouteMount.js +64 -0
- package/dist/RouteMount.js.map +1 -0
- package/dist/RouteSchema.d.ts +87 -0
- package/dist/RouteSchema.d.ts.map +1 -0
- package/dist/RouteSchema.js +189 -0
- package/dist/RouteSchema.js.map +1 -0
- package/dist/RouteSse.d.ts +21 -0
- package/dist/RouteSse.d.ts.map +1 -0
- package/dist/RouteSse.js +76 -0
- package/dist/RouteSse.js.map +1 -0
- package/dist/RouteTree.d.ts +58 -0
- package/dist/RouteTree.d.ts.map +1 -0
- package/dist/RouteTree.js +94 -0
- package/dist/RouteTree.js.map +1 -0
- package/dist/RouteTrie.d.ts +21 -0
- package/dist/RouteTrie.d.ts.map +1 -0
- package/dist/RouteTrie.js +153 -0
- package/dist/RouteTrie.js.map +1 -0
- package/dist/Socket.d.ts +23 -0
- package/dist/Socket.d.ts.map +1 -0
- package/dist/Socket.js +29 -0
- package/dist/Socket.js.map +1 -0
- package/dist/Start.d.ts +82 -0
- package/dist/Start.d.ts.map +1 -0
- package/dist/Start.js +102 -0
- package/dist/Start.js.map +1 -0
- package/dist/System.d.ts +24 -0
- package/dist/System.d.ts.map +1 -0
- package/dist/System.js +31 -0
- package/dist/System.js.map +1 -0
- package/dist/Unique.d.ts +68 -0
- package/dist/Unique.d.ts.map +1 -0
- package/dist/Unique.js +225 -0
- package/dist/Unique.js.map +1 -0
- package/dist/_ChildProcess.d.ts +59 -0
- package/dist/_ChildProcess.d.ts.map +1 -0
- package/dist/_ChildProcess.js +30 -0
- package/dist/_ChildProcess.js.map +1 -0
- package/dist/_ContentNegotiation.d.ts +13 -0
- package/dist/_ContentNegotiation.d.ts.map +1 -0
- package/dist/_ContentNegotiation.js +360 -0
- package/dist/_ContentNegotiation.js.map +1 -0
- package/dist/_Development.d.ts +27 -0
- package/dist/_Development.d.ts.map +1 -0
- package/dist/_Development.js +57 -0
- package/dist/_Development.js.map +1 -0
- package/dist/_Docker.d.ts +51 -0
- package/dist/_Docker.d.ts.map +1 -0
- package/dist/_Docker.js +88 -0
- package/dist/_Docker.js.map +1 -0
- package/dist/_Effectify.d.ts +210 -0
- package/dist/_Effectify.d.ts.map +1 -0
- package/dist/_Effectify.js +20 -0
- package/dist/_Effectify.js.map +1 -0
- package/dist/_Http.d.ts +31 -0
- package/dist/_Http.d.ts.map +1 -0
- package/dist/_Http.js +73 -0
- package/dist/_Http.js.map +1 -0
- package/dist/_PathPattern.d.ts +146 -0
- package/dist/_PathPattern.d.ts.map +1 -0
- package/dist/_PathPattern.js +499 -0
- package/dist/_PathPattern.js.map +1 -0
- package/dist/_SchemaExtra.d.ts +4 -0
- package/dist/_SchemaExtra.d.ts.map +1 -0
- package/dist/_SchemaExtra.js +75 -0
- package/dist/_SchemaExtra.js.map +1 -0
- package/dist/_StartApp.d.ts +13 -0
- package/dist/_StartApp.d.ts.map +1 -0
- package/dist/_StartApp.js +4 -0
- package/dist/_StartApp.js.map +1 -0
- package/dist/_StreamExtra.d.ts +29 -0
- package/dist/_StreamExtra.d.ts.map +1 -0
- package/dist/_StreamExtra.js +101 -0
- package/dist/_StreamExtra.js.map +1 -0
- package/dist/_Values.d.ts +30 -0
- package/dist/_Values.d.ts.map +1 -0
- package/dist/_Values.js +46 -0
- package/dist/_Values.js.map +1 -0
- package/dist/bun/BunBundle.d.ts +12 -0
- package/dist/bun/BunBundle.d.ts.map +1 -0
- package/dist/bun/BunBundle.js +138 -0
- package/dist/bun/BunBundle.js.map +1 -0
- package/dist/bun/BunChildProcessSpawner.d.ts +4 -0
- package/dist/bun/BunChildProcessSpawner.d.ts.map +1 -0
- package/dist/bun/BunChildProcessSpawner.js +99 -0
- package/dist/bun/BunChildProcessSpawner.js.map +1 -0
- package/dist/bun/BunImportTrackerPlugin.d.ts +14 -0
- package/dist/bun/BunImportTrackerPlugin.d.ts.map +1 -0
- package/dist/bun/BunImportTrackerPlugin.js +70 -0
- package/dist/bun/BunImportTrackerPlugin.js.map +1 -0
- package/dist/bun/BunRoute.d.ts +49 -0
- package/dist/bun/BunRoute.d.ts.map +1 -0
- package/dist/bun/BunRoute.js +121 -0
- package/dist/bun/BunRoute.js.map +1 -0
- package/dist/bun/BunRuntime.d.ts +3 -0
- package/dist/bun/BunRuntime.d.ts.map +1 -0
- package/dist/bun/BunRuntime.js +30 -0
- package/dist/bun/BunRuntime.js.map +1 -0
- package/dist/bun/BunServer.d.ts +52 -0
- package/dist/bun/BunServer.d.ts.map +1 -0
- package/dist/bun/BunServer.js +262 -0
- package/dist/bun/BunServer.js.map +1 -0
- package/dist/bun/BunVirtualFilesPlugin.d.ts +5 -0
- package/dist/bun/BunVirtualFilesPlugin.d.ts.map +1 -0
- package/dist/bun/BunVirtualFilesPlugin.js +41 -0
- package/dist/bun/BunVirtualFilesPlugin.js.map +1 -0
- package/dist/bun/_BunEnhancedResolve.d.ts +46 -0
- package/dist/bun/_BunEnhancedResolve.d.ts.map +1 -0
- package/dist/bun/_BunEnhancedResolve.js +103 -0
- package/dist/bun/_BunEnhancedResolve.js.map +1 -0
- package/dist/bun/_empty.html +0 -0
- package/dist/bun/index.d.ts +6 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +6 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/bundler/Bundle.d.ts +62 -0
- package/dist/bundler/Bundle.d.ts.map +1 -0
- package/dist/bundler/Bundle.js +49 -0
- package/dist/bundler/Bundle.js.map +1 -0
- package/dist/bundler/BundleFiles.d.ts +14 -0
- package/dist/bundler/BundleFiles.d.ts.map +1 -0
- package/dist/bundler/BundleFiles.js +97 -0
- package/dist/bundler/BundleFiles.js.map +1 -0
- package/dist/bundler/BundleRoute.d.ts +28 -0
- package/dist/bundler/BundleRoute.d.ts.map +1 -0
- package/dist/bundler/BundleRoute.js +52 -0
- package/dist/bundler/BundleRoute.js.map +1 -0
- package/dist/cli/Argument.d.ts +26 -0
- package/dist/cli/Argument.d.ts.map +1 -0
- package/dist/cli/Argument.js +31 -0
- package/dist/cli/Argument.js.map +1 -0
- package/dist/cli/CliError.d.ts +15 -0
- package/dist/cli/CliError.d.ts.map +1 -0
- package/dist/cli/CliError.js +54 -0
- package/dist/cli/CliError.js.map +1 -0
- package/dist/cli/Command.d.ts +61 -0
- package/dist/cli/Command.d.ts.map +1 -0
- package/dist/cli/Command.js +453 -0
- package/dist/cli/Command.js.map +1 -0
- package/dist/cli/Flag.d.ts +32 -0
- package/dist/cli/Flag.d.ts.map +1 -0
- package/dist/cli/Flag.js +35 -0
- package/dist/cli/Flag.js.map +1 -0
- package/dist/cli/HelpDoc.d.ts +28 -0
- package/dist/cli/HelpDoc.d.ts.map +1 -0
- package/dist/cli/HelpDoc.js +40 -0
- package/dist/cli/HelpDoc.js.map +1 -0
- package/dist/cli/Param.d.ts +71 -0
- package/dist/cli/Param.d.ts.map +1 -0
- package/dist/cli/Param.js +236 -0
- package/dist/cli/Param.js.map +1 -0
- package/dist/cli/Primitive.d.ts +22 -0
- package/dist/cli/Primitive.d.ts.map +1 -0
- package/dist/cli/Primitive.js +73 -0
- package/dist/cli/Primitive.js.map +1 -0
- package/dist/cli/index.d.ts +8 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +8 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/client/Overlay.d.ts +3 -0
- package/dist/client/Overlay.d.ts.map +1 -0
- package/dist/client/Overlay.js +33 -0
- package/dist/client/Overlay.js.map +1 -0
- package/dist/client/ScrollState.d.ts +7 -0
- package/dist/client/ScrollState.d.ts.map +1 -0
- package/dist/client/ScrollState.js +95 -0
- package/dist/client/ScrollState.js.map +1 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +80 -0
- package/dist/client/index.js.map +1 -0
- package/dist/datastar/actions/fetch.d.ts +31 -0
- package/dist/datastar/actions/fetch.d.ts.map +1 -0
- package/dist/datastar/actions/fetch.js +404 -0
- package/dist/datastar/actions/fetch.js.map +1 -0
- package/dist/datastar/actions/peek.d.ts +2 -0
- package/dist/datastar/actions/peek.d.ts.map +1 -0
- package/dist/datastar/actions/peek.js +14 -0
- package/dist/datastar/actions/peek.js.map +1 -0
- package/dist/datastar/actions/setAll.d.ts +2 -0
- package/dist/datastar/actions/setAll.d.ts.map +1 -0
- package/dist/datastar/actions/setAll.js +13 -0
- package/dist/datastar/actions/setAll.js.map +1 -0
- package/dist/datastar/actions/toggleAll.d.ts +2 -0
- package/dist/datastar/actions/toggleAll.d.ts.map +1 -0
- package/dist/datastar/actions/toggleAll.js +13 -0
- package/dist/datastar/actions/toggleAll.js.map +1 -0
- package/dist/datastar/attributes/attr.d.ts +2 -0
- package/dist/datastar/attributes/attr.d.ts.map +1 -0
- package/dist/datastar/attributes/attr.js +49 -0
- package/dist/datastar/attributes/attr.js.map +1 -0
- package/dist/datastar/attributes/bind.d.ts +2 -0
- package/dist/datastar/attributes/bind.d.ts.map +1 -0
- package/dist/datastar/attributes/bind.js +176 -0
- package/dist/datastar/attributes/bind.js.map +1 -0
- package/dist/datastar/attributes/class.d.ts +2 -0
- package/dist/datastar/attributes/class.d.ts.map +1 -0
- package/dist/datastar/attributes/class.js +48 -0
- package/dist/datastar/attributes/class.js.map +1 -0
- package/dist/datastar/attributes/computed.d.ts +2 -0
- package/dist/datastar/attributes/computed.d.ts.map +1 -0
- package/dist/datastar/attributes/computed.js +27 -0
- package/dist/datastar/attributes/computed.js.map +1 -0
- package/dist/datastar/attributes/effect.d.ts +2 -0
- package/dist/datastar/attributes/effect.d.ts.map +1 -0
- package/dist/datastar/attributes/effect.js +10 -0
- package/dist/datastar/attributes/effect.js.map +1 -0
- package/dist/datastar/attributes/indicator.d.ts +2 -0
- package/dist/datastar/attributes/indicator.d.ts.map +1 -0
- package/dist/datastar/attributes/indicator.js +31 -0
- package/dist/datastar/attributes/indicator.js.map +1 -0
- package/dist/datastar/attributes/init.d.ts +2 -0
- package/dist/datastar/attributes/init.d.ts.map +1 -0
- package/dist/datastar/attributes/init.js +27 -0
- package/dist/datastar/attributes/init.js.map +1 -0
- package/dist/datastar/attributes/jsonSignals.d.ts +2 -0
- package/dist/datastar/attributes/jsonSignals.d.ts.map +1 -0
- package/dist/datastar/attributes/jsonSignals.js +31 -0
- package/dist/datastar/attributes/jsonSignals.js.map +1 -0
- package/dist/datastar/attributes/on.d.ts +2 -0
- package/dist/datastar/attributes/on.d.ts.map +1 -0
- package/dist/datastar/attributes/on.js +79 -0
- package/dist/datastar/attributes/on.js.map +1 -0
- package/dist/datastar/attributes/onIntersect.d.ts +2 -0
- package/dist/datastar/attributes/onIntersect.d.ts.map +1 -0
- package/dist/datastar/attributes/onIntersect.js +54 -0
- package/dist/datastar/attributes/onIntersect.js.map +1 -0
- package/dist/datastar/attributes/onInterval.d.ts +2 -0
- package/dist/datastar/attributes/onInterval.d.ts.map +1 -0
- package/dist/datastar/attributes/onInterval.js +31 -0
- package/dist/datastar/attributes/onInterval.js.map +1 -0
- package/dist/datastar/attributes/onSignalPatch.d.ts +2 -0
- package/dist/datastar/attributes/onSignalPatch.d.ts.map +1 -0
- package/dist/datastar/attributes/onSignalPatch.js +43 -0
- package/dist/datastar/attributes/onSignalPatch.js.map +1 -0
- package/dist/datastar/attributes/ref.d.ts +2 -0
- package/dist/datastar/attributes/ref.d.ts.map +1 -0
- package/dist/datastar/attributes/ref.js +11 -0
- package/dist/datastar/attributes/ref.js.map +1 -0
- package/dist/datastar/attributes/show.d.ts +2 -0
- package/dist/datastar/attributes/show.d.ts.map +1 -0
- package/dist/datastar/attributes/show.js +32 -0
- package/dist/datastar/attributes/show.js.map +1 -0
- package/dist/datastar/attributes/signals.d.ts +2 -0
- package/dist/datastar/attributes/signals.d.ts.map +1 -0
- package/dist/datastar/attributes/signals.js +18 -0
- package/dist/datastar/attributes/signals.js.map +1 -0
- package/dist/datastar/attributes/style.d.ts +2 -0
- package/dist/datastar/attributes/style.d.ts.map +1 -0
- package/dist/datastar/attributes/style.js +51 -0
- package/dist/datastar/attributes/style.js.map +1 -0
- package/dist/datastar/attributes/text.d.ts +2 -0
- package/dist/datastar/attributes/text.d.ts.map +1 -0
- package/dist/datastar/attributes/text.js +27 -0
- package/dist/datastar/attributes/text.js.map +1 -0
- package/dist/datastar/engine.d.ts +163 -0
- package/dist/datastar/engine.d.ts.map +1 -0
- package/dist/datastar/engine.js +1000 -0
- package/dist/datastar/engine.js.map +1 -0
- package/dist/datastar/index.d.ts +25 -0
- package/dist/datastar/index.d.ts.map +1 -0
- package/dist/datastar/index.js +25 -0
- package/dist/datastar/index.js.map +1 -0
- package/dist/datastar/utils.d.ts +52 -0
- package/dist/datastar/utils.d.ts.map +1 -0
- package/dist/datastar/utils.js +203 -0
- package/dist/datastar/utils.js.map +1 -0
- package/dist/datastar/watchers/patchElements.d.ts +2 -0
- package/dist/datastar/watchers/patchElements.d.ts.map +1 -0
- package/dist/datastar/watchers/patchElements.js +400 -0
- package/dist/datastar/watchers/patchElements.js.map +1 -0
- package/dist/datastar/watchers/patchSignals.d.ts +2 -0
- package/dist/datastar/watchers/patchSignals.d.ts.map +1 -0
- package/dist/datastar/watchers/patchSignals.js +15 -0
- package/dist/datastar/watchers/patchSignals.js.map +1 -0
- package/dist/experimental/EncryptedCookies.d.ts +49 -0
- package/dist/experimental/EncryptedCookies.d.ts.map +1 -0
- package/dist/experimental/EncryptedCookies.js +213 -0
- package/dist/experimental/EncryptedCookies.js.map +1 -0
- package/dist/experimental/index.d.ts +2 -0
- package/dist/experimental/index.d.ts.map +1 -0
- package/dist/experimental/index.js +2 -0
- package/dist/experimental/index.js.map +1 -0
- package/dist/hyper/Hyper.d.ts +26 -0
- package/dist/hyper/Hyper.d.ts.map +1 -0
- package/dist/hyper/Hyper.js +24 -0
- package/dist/hyper/Hyper.js.map +1 -0
- package/dist/hyper/HyperHtml.d.ts +24 -0
- package/dist/hyper/HyperHtml.d.ts.map +1 -0
- package/dist/hyper/HyperHtml.js +153 -0
- package/dist/hyper/HyperHtml.js.map +1 -0
- package/dist/hyper/HyperHtml.test.d.ts +2 -0
- package/dist/hyper/HyperHtml.test.d.ts.map +1 -0
- package/dist/hyper/HyperHtml.test.js +283 -0
- package/dist/hyper/HyperHtml.test.js.map +1 -0
- package/dist/hyper/HyperNode.d.ts +14 -0
- package/dist/hyper/HyperNode.d.ts.map +1 -0
- package/dist/hyper/HyperNode.js +12 -0
- package/dist/hyper/HyperNode.js.map +1 -0
- package/dist/hyper/HyperRoute.d.ts +9 -0
- package/dist/hyper/HyperRoute.d.ts.map +1 -0
- package/dist/hyper/HyperRoute.js +33 -0
- package/dist/hyper/HyperRoute.js.map +1 -0
- package/dist/hyper/HyperRoute.test.d.ts +2 -0
- package/dist/hyper/HyperRoute.test.d.ts.map +1 -0
- package/dist/hyper/HyperRoute.test.js +84 -0
- package/dist/hyper/HyperRoute.test.js.map +1 -0
- package/dist/hyper/html.d.ts +12 -0
- package/dist/hyper/html.d.ts.map +1 -0
- package/dist/hyper/html.js +31 -0
- package/dist/hyper/html.js.map +1 -0
- package/dist/hyper/index.d.ts +7 -0
- package/dist/hyper/index.d.ts.map +1 -0
- package/dist/hyper/index.js +6 -0
- package/dist/hyper/index.js.map +1 -0
- package/dist/hyper/jsx-runtime.d.ts +8 -0
- package/dist/hyper/jsx-runtime.d.ts.map +1 -0
- package/dist/hyper/jsx-runtime.js +9 -0
- package/dist/hyper/jsx-runtime.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/lint/plugin.d.ts +124 -0
- package/dist/lint/plugin.d.ts.map +1 -0
- package/dist/lint/plugin.js +533 -0
- package/dist/lint/plugin.js.map +1 -0
- package/dist/node/NodeFileSystem.d.ts +8 -0
- package/dist/node/NodeFileSystem.d.ts.map +1 -0
- package/dist/node/NodeFileSystem.js +412 -0
- package/dist/node/NodeFileSystem.js.map +1 -0
- package/dist/node/NodeUtils.d.ts +3 -0
- package/dist/node/NodeUtils.d.ts.map +1 -0
- package/dist/node/NodeUtils.js +21 -0
- package/dist/node/NodeUtils.js.map +1 -0
- package/dist/sql/SqlCache.d.ts +19 -0
- package/dist/sql/SqlCache.d.ts.map +1 -0
- package/dist/sql/SqlCache.js +35 -0
- package/dist/sql/SqlCache.js.map +1 -0
- package/dist/sql/SqlClient.d.ts +88 -0
- package/dist/sql/SqlClient.d.ts.map +1 -0
- package/dist/sql/SqlClient.js +171 -0
- package/dist/sql/SqlClient.js.map +1 -0
- package/dist/sql/SqlIntrospect.d.ts +92 -0
- package/dist/sql/SqlIntrospect.d.ts.map +1 -0
- package/dist/sql/SqlIntrospect.js +478 -0
- package/dist/sql/SqlIntrospect.js.map +1 -0
- package/dist/sql/bun/index.d.ts +6 -0
- package/dist/sql/bun/index.d.ts.map +1 -0
- package/dist/sql/bun/index.js +132 -0
- package/dist/sql/bun/index.js.map +1 -0
- package/dist/sql/index.d.ts +4 -0
- package/dist/sql/index.d.ts.map +1 -0
- package/dist/sql/index.js +4 -0
- package/dist/sql/index.js.map +1 -0
- package/dist/sql/libsql/index.d.ts +15 -0
- package/dist/sql/libsql/index.d.ts.map +1 -0
- package/dist/sql/libsql/index.js +132 -0
- package/dist/sql/libsql/index.js.map +1 -0
- package/dist/sql/mssql/index.d.ts +8 -0
- package/dist/sql/mssql/index.d.ts.map +1 -0
- package/dist/sql/mssql/index.js +145 -0
- package/dist/sql/mssql/index.js.map +1 -0
- package/dist/sql/postgres/index.d.ts +7 -0
- package/dist/sql/postgres/index.d.ts.map +1 -0
- package/dist/sql/postgres/index.js +136 -0
- package/dist/sql/postgres/index.js.map +1 -0
- package/dist/studio/Simulation.d.ts +3 -0
- package/dist/studio/Simulation.d.ts.map +1 -0
- package/dist/studio/Simulation.js +606 -0
- package/dist/studio/Simulation.js.map +1 -0
- package/dist/studio/Studio.d.ts +11 -0
- package/dist/studio/Studio.d.ts.map +1 -0
- package/dist/studio/Studio.js +30 -0
- package/dist/studio/Studio.js.map +1 -0
- package/dist/studio/StudioErrors.d.ts +4 -0
- package/dist/studio/StudioErrors.d.ts.map +1 -0
- package/dist/studio/StudioErrors.js +200 -0
- package/dist/studio/StudioErrors.js.map +1 -0
- package/dist/studio/StudioLogger.d.ts +2 -0
- package/dist/studio/StudioLogger.d.ts.map +1 -0
- package/dist/studio/StudioLogger.js +46 -0
- package/dist/studio/StudioLogger.js.map +1 -0
- package/dist/studio/StudioMetrics.d.ts +4 -0
- package/dist/studio/StudioMetrics.d.ts.map +1 -0
- package/dist/studio/StudioMetrics.js +62 -0
- package/dist/studio/StudioMetrics.js.map +1 -0
- package/dist/studio/StudioProcess.d.ts +4 -0
- package/dist/studio/StudioProcess.d.ts.map +1 -0
- package/dist/studio/StudioProcess.js +50 -0
- package/dist/studio/StudioProcess.js.map +1 -0
- package/dist/studio/StudioStore.d.ts +199 -0
- package/dist/studio/StudioStore.d.ts.map +1 -0
- package/dist/studio/StudioStore.js +307 -0
- package/dist/studio/StudioStore.js.map +1 -0
- package/dist/studio/StudioTracer.d.ts +4 -0
- package/dist/studio/StudioTracer.d.ts.map +1 -0
- package/dist/studio/StudioTracer.js +111 -0
- package/dist/studio/StudioTracer.js.map +1 -0
- package/dist/studio/index.d.ts +4 -0
- package/dist/studio/index.d.ts.map +1 -0
- package/dist/studio/index.js +4 -0
- package/dist/studio/index.js.map +1 -0
- package/dist/studio/routes/errors/route.d.ts +11 -0
- package/dist/studio/routes/errors/route.d.ts.map +1 -0
- package/dist/studio/routes/errors/route.js +43 -0
- package/dist/studio/routes/errors/route.js.map +1 -0
- package/dist/studio/routes/fiberDetail.d.ts +17 -0
- package/dist/studio/routes/fiberDetail.d.ts.map +1 -0
- package/dist/studio/routes/fiberDetail.js +35 -0
- package/dist/studio/routes/fiberDetail.js.map +1 -0
- package/dist/studio/routes/fibers/route.d.ts +11 -0
- package/dist/studio/routes/fibers/route.d.ts.map +1 -0
- package/dist/studio/routes/fibers/route.js +25 -0
- package/dist/studio/routes/fibers/route.js.map +1 -0
- package/dist/studio/routes/layout.d.ts +10 -0
- package/dist/studio/routes/layout.d.ts.map +1 -0
- package/dist/studio/routes/layout.html +340 -0
- package/dist/studio/routes/layout.js +4 -0
- package/dist/studio/routes/layout.js.map +1 -0
- package/dist/studio/routes/logs/route.d.ts +11 -0
- package/dist/studio/routes/logs/route.d.ts.map +1 -0
- package/dist/studio/routes/logs/route.js +30 -0
- package/dist/studio/routes/logs/route.js.map +1 -0
- package/dist/studio/routes/metrics/route.d.ts +11 -0
- package/dist/studio/routes/metrics/route.d.ts.map +1 -0
- package/dist/studio/routes/metrics/route.js +18 -0
- package/dist/studio/routes/metrics/route.js.map +1 -0
- package/dist/studio/routes/route.d.ts +7 -0
- package/dist/studio/routes/route.d.ts.map +1 -0
- package/dist/studio/routes/route.js +6 -0
- package/dist/studio/routes/route.js.map +1 -0
- package/dist/studio/routes/routes/route.d.ts +7 -0
- package/dist/studio/routes/routes/route.d.ts.map +1 -0
- package/dist/studio/routes/routes/route.js +21 -0
- package/dist/studio/routes/routes/route.js.map +1 -0
- package/dist/studio/routes/services/route.d.ts +7 -0
- package/dist/studio/routes/services/route.d.ts.map +1 -0
- package/dist/studio/routes/services/route.js +13 -0
- package/dist/studio/routes/services/route.js.map +1 -0
- package/dist/studio/routes/system/route.d.ts +11 -0
- package/dist/studio/routes/system/route.d.ts.map +1 -0
- package/dist/studio/routes/system/route.js +19 -0
- package/dist/studio/routes/system/route.js.map +1 -0
- package/dist/studio/routes/traceDetail.d.ts +17 -0
- package/dist/studio/routes/traceDetail.d.ts.map +1 -0
- package/dist/studio/routes/traceDetail.js +20 -0
- package/dist/studio/routes/traceDetail.js.map +1 -0
- package/dist/studio/routes/traces/route.d.ts +11 -0
- package/dist/studio/routes/traces/route.d.ts.map +1 -0
- package/dist/studio/routes/traces/route.js +30 -0
- package/dist/studio/routes/traces/route.js.map +1 -0
- package/dist/studio/routes/tree.d.ts +142 -0
- package/dist/studio/routes/tree.d.ts.map +1 -0
- package/dist/studio/routes/tree.js +28 -0
- package/dist/studio/routes/tree.js.map +1 -0
- package/dist/studio/ui/Errors.d.ts +5 -0
- package/dist/studio/ui/Errors.d.ts.map +1 -0
- package/dist/studio/ui/Errors.js +17 -0
- package/dist/studio/ui/Errors.js.map +1 -0
- package/dist/studio/ui/Fibers.d.ts +25 -0
- package/dist/studio/ui/Fibers.d.ts.map +1 -0
- package/dist/studio/ui/Fibers.js +134 -0
- package/dist/studio/ui/Fibers.js.map +1 -0
- package/dist/studio/ui/Logs.d.ts +5 -0
- package/dist/studio/ui/Logs.d.ts.map +1 -0
- package/dist/studio/ui/Logs.js +27 -0
- package/dist/studio/ui/Logs.js.map +1 -0
- package/dist/studio/ui/Metrics.d.ts +5 -0
- package/dist/studio/ui/Metrics.d.ts.map +1 -0
- package/dist/studio/ui/Metrics.js +27 -0
- package/dist/studio/ui/Metrics.js.map +1 -0
- package/dist/studio/ui/Routes.d.ts +9 -0
- package/dist/studio/ui/Routes.d.ts.map +1 -0
- package/dist/studio/ui/Routes.js +71 -0
- package/dist/studio/ui/Routes.js.map +1 -0
- package/dist/studio/ui/Services.d.ts +11 -0
- package/dist/studio/ui/Services.d.ts.map +1 -0
- package/dist/studio/ui/Services.js +247 -0
- package/dist/studio/ui/Services.js.map +1 -0
- package/dist/studio/ui/Shell.d.ts +11 -0
- package/dist/studio/ui/Shell.d.ts.map +1 -0
- package/dist/studio/ui/Shell.js +8 -0
- package/dist/studio/ui/Shell.js.map +1 -0
- package/dist/studio/ui/System.d.ts +5 -0
- package/dist/studio/ui/System.d.ts.map +1 -0
- package/dist/studio/ui/System.js +36 -0
- package/dist/studio/ui/System.js.map +1 -0
- package/dist/studio/ui/Traces.d.ts +13 -0
- package/dist/studio/ui/Traces.d.ts.map +1 -0
- package/dist/studio/ui/Traces.js +182 -0
- package/dist/studio/ui/Traces.js.map +1 -0
- package/dist/testing/TestLogger.d.ts +14 -0
- package/dist/testing/TestLogger.d.ts.map +1 -0
- package/dist/testing/TestLogger.js +33 -0
- package/dist/testing/TestLogger.js.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/utils.d.ts +12 -0
- package/dist/testing/utils.d.ts.map +1 -0
- package/dist/testing/utils.js +79 -0
- package/dist/testing/utils.js.map +1 -0
- package/dist/x/cloudflare/CloudflareTunnel.d.ts +12 -0
- package/dist/x/cloudflare/CloudflareTunnel.d.ts.map +1 -0
- package/dist/x/cloudflare/CloudflareTunnel.js +31 -0
- package/dist/x/cloudflare/CloudflareTunnel.js.map +1 -0
- package/dist/x/cloudflare/index.d.ts +2 -0
- package/dist/x/cloudflare/index.d.ts.map +1 -0
- package/dist/x/cloudflare/index.js +2 -0
- package/dist/x/cloudflare/index.js.map +1 -0
- package/dist/x/tailscale/TailscaleTunnel.d.ts +16 -0
- package/dist/x/tailscale/TailscaleTunnel.d.ts.map +1 -0
- package/dist/x/tailscale/TailscaleTunnel.js +65 -0
- package/dist/x/tailscale/TailscaleTunnel.js.map +1 -0
- package/dist/x/tailscale/index.d.ts +2 -0
- package/dist/x/tailscale/index.d.ts.map +1 -0
- package/dist/x/tailscale/index.js +2 -0
- package/dist/x/tailscale/index.js.map +1 -0
- package/dist/x/tailwind/TailwindPlugin.d.ts +24 -0
- package/dist/x/tailwind/TailwindPlugin.d.ts.map +1 -0
- package/dist/x/tailwind/TailwindPlugin.js +220 -0
- package/dist/x/tailwind/TailwindPlugin.js.map +1 -0
- package/dist/x/tailwind/compile.d.ts +20 -0
- package/dist/x/tailwind/compile.d.ts.map +1 -0
- package/dist/x/tailwind/compile.js +155 -0
- package/dist/x/tailwind/compile.js.map +1 -0
- package/dist/x/tailwind/plugin.d.ts +3 -0
- package/dist/x/tailwind/plugin.d.ts.map +1 -0
- package/dist/x/tailwind/plugin.js +16 -0
- package/dist/x/tailwind/plugin.js.map +1 -0
- package/package.json +89 -26
- package/src/Cookies.ts +4 -8
- package/src/Entity.ts +24 -19
- package/src/Fetch.ts +128 -5
- package/src/FileRouter.ts +46 -49
- package/src/FileRouterCodegen.ts +9 -23
- package/src/FileSystem.ts +44 -67
- package/src/GlobalLayer.ts +85 -0
- package/src/PlatformRuntime.ts +8 -1
- package/src/Route.ts +2 -2
- package/src/RouteBody.ts +1 -1
- package/src/RouteHook.ts +1 -1
- package/src/RouteHttp.ts +133 -113
- package/src/RouteMount.ts +3 -3
- package/src/RouteSchema.ts +2 -2
- package/src/RouteSse.ts +28 -37
- package/src/RouteTree.ts +2 -2
- package/src/RouteTrie.ts +1 -1
- package/src/Socket.ts +17 -27
- package/src/Start.ts +67 -64
- package/src/System.ts +42 -9
- package/src/Unique.ts +59 -0
- package/src/{ChildProcess.ts → _ChildProcess.ts} +16 -28
- package/src/{Development.ts → _Development.ts} +16 -21
- package/src/_Docker.ts +190 -0
- package/src/{Effectify.ts → _Effectify.ts} +7 -10
- package/src/{Http.ts → _Http.ts} +0 -28
- package/src/{PathPattern.ts → _PathPattern.ts} +105 -0
- package/src/{SchemaExtra.ts → _SchemaExtra.ts} +3 -4
- package/src/bun/BunChildProcessSpawner.ts +10 -17
- package/src/bun/BunRoute.ts +6 -8
- package/src/bun/BunRuntime.ts +2 -8
- package/src/bun/BunServer.ts +57 -5
- package/src/bundler/BundleRoute.ts +2 -2
- package/src/cli/Argument.ts +45 -0
- package/src/cli/CliError.ts +68 -0
- package/src/cli/Command.ts +685 -0
- package/src/cli/Flag.ts +63 -0
- package/src/cli/HelpDoc.ts +67 -0
- package/src/cli/Param.ts +418 -0
- package/src/cli/Primitive.ts +94 -0
- package/src/cli/index.ts +7 -0
- package/src/datastar/watchers/patchElements.ts +3 -2
- package/src/hyper/HyperHtml.test.tsx +395 -0
- package/src/hyper/HyperNode.ts +1 -2
- package/src/hyper/HyperRoute.test.tsx +166 -0
- package/src/hyper/HyperRoute.ts +1 -1
- package/src/index.ts +1 -1
- package/src/lint/plugin.js +179 -125
- package/src/node/NodeFileSystem.ts +15 -14
- package/src/sql/SqlCache.ts +63 -0
- package/src/sql/SqlClient.ts +60 -15
- package/src/{SqlIntrospect.ts → sql/SqlIntrospect.ts} +13 -11
- package/src/sql/bun/index.ts +29 -27
- package/src/sql/index.ts +2 -0
- package/src/sql/libsql/index.ts +63 -29
- package/src/sql/mssql/index.ts +54 -58
- package/src/sql/postgres/index.ts +254 -0
- package/src/studio/Simulation.ts +776 -0
- package/src/studio/Studio.ts +47 -0
- package/src/studio/StudioErrors.ts +224 -0
- package/src/studio/StudioLogger.ts +52 -0
- package/src/studio/StudioMetrics.ts +72 -0
- package/src/studio/StudioProcess.ts +59 -0
- package/src/studio/StudioStore.ts +505 -0
- package/src/studio/StudioTracer.ts +128 -0
- package/src/studio/index.ts +3 -0
- package/src/studio/routes/errors/route.tsx +90 -0
- package/src/studio/routes/fiberDetail.tsx +51 -0
- package/src/studio/routes/fibers/route.tsx +46 -0
- package/src/studio/routes/layout.html +340 -0
- package/src/studio/routes/layout.tsx +4 -0
- package/src/studio/routes/logs/route.tsx +73 -0
- package/src/studio/routes/metrics/route.tsx +36 -0
- package/src/studio/routes/route.tsx +8 -0
- package/src/studio/routes/routes/route.tsx +30 -0
- package/src/studio/routes/services/route.tsx +21 -0
- package/src/studio/routes/system/route.tsx +43 -0
- package/src/studio/routes/traceDetail.tsx +30 -0
- package/src/studio/routes/traces/route.tsx +72 -0
- package/src/studio/routes/tree.ts +28 -0
- package/src/studio/ui/Errors.tsx +80 -0
- package/src/studio/ui/Fibers.tsx +336 -0
- package/src/studio/ui/Logs.tsx +50 -0
- package/src/studio/ui/Metrics.tsx +78 -0
- package/src/studio/ui/Routes.tsx +125 -0
- package/src/studio/ui/Services.tsx +273 -0
- package/src/studio/ui/Shell.tsx +74 -0
- package/src/studio/ui/System.tsx +141 -0
- package/src/studio/ui/Traces.tsx +419 -0
- package/src/testing/utils.ts +59 -0
- package/src/x/cloudflare/CloudflareTunnel.ts +1 -1
- package/src/x/tailscale/TailscaleTunnel.ts +6 -7
- package/src/x/tailwind/compile.ts +6 -1
- package/src/Commander.ts +0 -585
- package/src/FilePathPattern.ts +0 -115
- package/src/PlatformError.ts +0 -73
- package/src/TuplePathPattern.ts +0 -75
- package/src/sql/mssql/docker.ts +0 -117
- /package/src/{ContentNegotiation.ts → _ContentNegotiation.ts} +0 -0
- /package/src/{StartApp.ts → _StartApp.ts} +0 -0
- /package/src/{StreamExtra.ts → _StreamExtra.ts} +0 -0
- /package/src/{Values.ts → _Values.ts} +0 -0
package/src/FileSystem.ts
CHANGED
|
@@ -12,108 +12,93 @@ import * as Option from "effect/Option"
|
|
|
12
12
|
import * as Sink from "effect/Sink"
|
|
13
13
|
import type * as Scope from "effect/Scope"
|
|
14
14
|
import * as Stream from "effect/Stream"
|
|
15
|
-
import * as
|
|
15
|
+
import * as System from "./System.ts"
|
|
16
16
|
|
|
17
17
|
export interface FileSystem {
|
|
18
18
|
readonly access: (
|
|
19
19
|
path: string,
|
|
20
20
|
options?: AccessFileOptions,
|
|
21
|
-
) => Effect.Effect<void,
|
|
21
|
+
) => Effect.Effect<void, System.SystemError>
|
|
22
22
|
readonly copy: (
|
|
23
23
|
fromPath: string,
|
|
24
24
|
toPath: string,
|
|
25
25
|
options?: CopyOptions,
|
|
26
|
-
) => Effect.Effect<void,
|
|
27
|
-
readonly copyFile: (
|
|
28
|
-
|
|
29
|
-
toPath: string,
|
|
30
|
-
) => Effect.Effect<void, PlatformError.PlatformError>
|
|
31
|
-
readonly chmod: (path: string, mode: number) => Effect.Effect<void, PlatformError.PlatformError>
|
|
26
|
+
) => Effect.Effect<void, System.SystemError>
|
|
27
|
+
readonly copyFile: (fromPath: string, toPath: string) => Effect.Effect<void, System.SystemError>
|
|
28
|
+
readonly chmod: (path: string, mode: number) => Effect.Effect<void, System.SystemError>
|
|
32
29
|
readonly chown: (
|
|
33
30
|
path: string,
|
|
34
31
|
uid: number,
|
|
35
32
|
gid: number,
|
|
36
|
-
) => Effect.Effect<void,
|
|
37
|
-
readonly exists: (path: string) => Effect.Effect<boolean,
|
|
38
|
-
readonly link: (
|
|
39
|
-
fromPath: string,
|
|
40
|
-
toPath: string,
|
|
41
|
-
) => Effect.Effect<void, PlatformError.PlatformError>
|
|
33
|
+
) => Effect.Effect<void, System.SystemError>
|
|
34
|
+
readonly exists: (path: string) => Effect.Effect<boolean, System.SystemError>
|
|
35
|
+
readonly link: (fromPath: string, toPath: string) => Effect.Effect<void, System.SystemError>
|
|
42
36
|
readonly makeDirectory: (
|
|
43
37
|
path: string,
|
|
44
38
|
options?: MakeDirectoryOptions,
|
|
45
|
-
) => Effect.Effect<void,
|
|
39
|
+
) => Effect.Effect<void, System.SystemError>
|
|
46
40
|
readonly makeTempDirectory: (
|
|
47
41
|
options?: MakeTempDirectoryOptions,
|
|
48
|
-
) => Effect.Effect<string,
|
|
42
|
+
) => Effect.Effect<string, System.SystemError>
|
|
49
43
|
readonly makeTempDirectoryScoped: (
|
|
50
44
|
options?: MakeTempDirectoryOptions,
|
|
51
|
-
) => Effect.Effect<string,
|
|
45
|
+
) => Effect.Effect<string, System.SystemError, Scope.Scope>
|
|
52
46
|
readonly makeTempFile: (
|
|
53
47
|
options?: MakeTempFileOptions,
|
|
54
|
-
) => Effect.Effect<string,
|
|
48
|
+
) => Effect.Effect<string, System.SystemError>
|
|
55
49
|
readonly makeTempFileScoped: (
|
|
56
50
|
options?: MakeTempFileOptions,
|
|
57
|
-
) => Effect.Effect<string,
|
|
51
|
+
) => Effect.Effect<string, System.SystemError, Scope.Scope>
|
|
58
52
|
readonly open: (
|
|
59
53
|
path: string,
|
|
60
54
|
options?: OpenFileOptions,
|
|
61
|
-
) => Effect.Effect<File,
|
|
55
|
+
) => Effect.Effect<File, System.SystemError, Scope.Scope>
|
|
62
56
|
readonly readDirectory: (
|
|
63
57
|
path: string,
|
|
64
58
|
options?: ReadDirectoryOptions,
|
|
65
|
-
) => Effect.Effect<Array<string>,
|
|
66
|
-
readonly readFile: (path: string) => Effect.Effect<Uint8Array,
|
|
59
|
+
) => Effect.Effect<Array<string>, System.SystemError>
|
|
60
|
+
readonly readFile: (path: string) => Effect.Effect<Uint8Array, System.SystemError>
|
|
67
61
|
readonly readFileString: (
|
|
68
62
|
path: string,
|
|
69
63
|
encoding?: string,
|
|
70
|
-
) => Effect.Effect<string,
|
|
71
|
-
readonly readLink: (path: string) => Effect.Effect<string,
|
|
72
|
-
readonly realPath: (path: string) => Effect.Effect<string,
|
|
64
|
+
) => Effect.Effect<string, System.SystemError>
|
|
65
|
+
readonly readLink: (path: string) => Effect.Effect<string, System.SystemError>
|
|
66
|
+
readonly realPath: (path: string) => Effect.Effect<string, System.SystemError>
|
|
73
67
|
readonly remove: (
|
|
74
68
|
path: string,
|
|
75
69
|
options?: RemoveOptions,
|
|
76
|
-
) => Effect.Effect<void,
|
|
77
|
-
readonly rename: (
|
|
78
|
-
oldPath: string,
|
|
79
|
-
newPath: string,
|
|
80
|
-
) => Effect.Effect<void, PlatformError.PlatformError>
|
|
70
|
+
) => Effect.Effect<void, System.SystemError>
|
|
71
|
+
readonly rename: (oldPath: string, newPath: string) => Effect.Effect<void, System.SystemError>
|
|
81
72
|
readonly sink: (
|
|
82
73
|
path: string,
|
|
83
74
|
options?: SinkOptions,
|
|
84
|
-
) => Sink.Sink<void, Uint8Array, never,
|
|
85
|
-
readonly stat: (path: string) => Effect.Effect<File.Info,
|
|
75
|
+
) => Sink.Sink<void, Uint8Array, never, System.SystemError>
|
|
76
|
+
readonly stat: (path: string) => Effect.Effect<File.Info, System.SystemError>
|
|
86
77
|
readonly stream: (
|
|
87
78
|
path: string,
|
|
88
79
|
options?: StreamOptions,
|
|
89
|
-
) => Stream.Stream<Uint8Array,
|
|
90
|
-
readonly symlink: (
|
|
91
|
-
|
|
92
|
-
toPath: string,
|
|
93
|
-
) => Effect.Effect<void, PlatformError.PlatformError>
|
|
94
|
-
readonly truncate: (
|
|
95
|
-
path: string,
|
|
96
|
-
length?: SizeInput,
|
|
97
|
-
) => Effect.Effect<void, PlatformError.PlatformError>
|
|
80
|
+
) => Stream.Stream<Uint8Array, System.SystemError>
|
|
81
|
+
readonly symlink: (fromPath: string, toPath: string) => Effect.Effect<void, System.SystemError>
|
|
82
|
+
readonly truncate: (path: string, length?: SizeInput) => Effect.Effect<void, System.SystemError>
|
|
98
83
|
readonly utimes: (
|
|
99
84
|
path: string,
|
|
100
85
|
atime: Date | number,
|
|
101
86
|
mtime: Date | number,
|
|
102
|
-
) => Effect.Effect<void,
|
|
87
|
+
) => Effect.Effect<void, System.SystemError>
|
|
103
88
|
readonly watch: (
|
|
104
89
|
path: string,
|
|
105
90
|
options?: WatchOptions,
|
|
106
|
-
) => Stream.Stream<WatchEvent,
|
|
91
|
+
) => Stream.Stream<WatchEvent, System.SystemError>
|
|
107
92
|
readonly writeFile: (
|
|
108
93
|
path: string,
|
|
109
94
|
data: Uint8Array,
|
|
110
95
|
options?: WriteFileOptions,
|
|
111
|
-
) => Effect.Effect<void,
|
|
96
|
+
) => Effect.Effect<void, System.SystemError>
|
|
112
97
|
readonly writeFileString: (
|
|
113
98
|
path: string,
|
|
114
99
|
data: string,
|
|
115
100
|
options?: WriteFileStringOptions,
|
|
116
|
-
) => Effect.Effect<void,
|
|
101
|
+
) => Effect.Effect<void, System.SystemError>
|
|
117
102
|
}
|
|
118
103
|
|
|
119
104
|
export const FileSystem: Context.Tag<FileSystem, FileSystem> = Context.GenericTag<FileSystem>(
|
|
@@ -202,16 +187,16 @@ export type FileTypeId = typeof FileTypeId
|
|
|
202
187
|
export interface File {
|
|
203
188
|
readonly [FileTypeId]: FileTypeId
|
|
204
189
|
readonly fd: File.Descriptor
|
|
205
|
-
readonly stat: Effect.Effect<File.Info,
|
|
190
|
+
readonly stat: Effect.Effect<File.Info, System.SystemError>
|
|
206
191
|
readonly seek: (offset: SizeInput, from: SeekMode) => Effect.Effect<void>
|
|
207
|
-
readonly sync: Effect.Effect<void,
|
|
208
|
-
readonly read: (buffer: Uint8Array) => Effect.Effect<Size,
|
|
192
|
+
readonly sync: Effect.Effect<void, System.SystemError>
|
|
193
|
+
readonly read: (buffer: Uint8Array) => Effect.Effect<Size, System.SystemError>
|
|
209
194
|
readonly readAlloc: (
|
|
210
195
|
size: SizeInput,
|
|
211
|
-
) => Effect.Effect<Option.Option<Uint8Array>,
|
|
212
|
-
readonly truncate: (length?: SizeInput) => Effect.Effect<void,
|
|
213
|
-
readonly write: (buffer: Uint8Array) => Effect.Effect<Size,
|
|
214
|
-
readonly writeAll: (buffer: Uint8Array) => Effect.Effect<void,
|
|
196
|
+
) => Effect.Effect<Option.Option<Uint8Array>, System.SystemError>
|
|
197
|
+
readonly truncate: (length?: SizeInput) => Effect.Effect<void, System.SystemError>
|
|
198
|
+
readonly write: (buffer: Uint8Array) => Effect.Effect<Size, System.SystemError>
|
|
199
|
+
readonly writeAll: (buffer: Uint8Array) => Effect.Effect<void, System.SystemError>
|
|
215
200
|
}
|
|
216
201
|
|
|
217
202
|
export declare namespace File {
|
|
@@ -282,7 +267,7 @@ export class WatchBackend extends Context.Tag("@effect/platform/FileSystem/Watch
|
|
|
282
267
|
path: string,
|
|
283
268
|
stat: File.Info,
|
|
284
269
|
options?: WatchOptions,
|
|
285
|
-
) => Option.Option<Stream.Stream<WatchEvent,
|
|
270
|
+
) => Option.Option<Stream.Stream<WatchEvent, System.SystemError>>
|
|
286
271
|
}
|
|
287
272
|
>() {}
|
|
288
273
|
|
|
@@ -303,7 +288,8 @@ export const make = (
|
|
|
303
288
|
Effect.tryMap(impl.readFile(path), {
|
|
304
289
|
try: (_) => new TextDecoder(encoding).decode(_),
|
|
305
290
|
catch: (cause) =>
|
|
306
|
-
new
|
|
291
|
+
new System.SystemError({
|
|
292
|
+
reason: "BadArgument",
|
|
307
293
|
module: "FileSystem",
|
|
308
294
|
method: "readFileString",
|
|
309
295
|
description: "invalid encoding",
|
|
@@ -330,7 +316,8 @@ export const make = (
|
|
|
330
316
|
Effect.try({
|
|
331
317
|
try: () => new TextEncoder().encode(data),
|
|
332
318
|
catch: (cause) =>
|
|
333
|
-
new
|
|
319
|
+
new System.SystemError({
|
|
320
|
+
reason: "BadArgument",
|
|
334
321
|
module: "FileSystem",
|
|
335
322
|
method: "writeFileString",
|
|
336
323
|
description: "could not encode string",
|
|
@@ -342,23 +329,13 @@ export const make = (
|
|
|
342
329
|
})
|
|
343
330
|
}
|
|
344
331
|
|
|
345
|
-
const fileStream = (
|
|
346
|
-
file: File,
|
|
347
|
-
options: StreamOptions = {},
|
|
348
|
-
) => {
|
|
332
|
+
const fileStream = (file: File, options: StreamOptions = {}) => {
|
|
349
333
|
const bytesToRead = options.bytesToRead !== undefined ? Size(options.bytesToRead) : undefined
|
|
350
334
|
const chunkSize = Size(options.chunkSize ?? 64 * 1024)
|
|
351
335
|
|
|
352
336
|
function loop(
|
|
353
337
|
totalBytesRead: bigint,
|
|
354
|
-
): Channel.Channel<
|
|
355
|
-
Chunk.Chunk<Uint8Array>,
|
|
356
|
-
unknown,
|
|
357
|
-
PlatformError.PlatformError,
|
|
358
|
-
unknown,
|
|
359
|
-
void,
|
|
360
|
-
unknown
|
|
361
|
-
> {
|
|
338
|
+
): Channel.Channel<Chunk.Chunk<Uint8Array>, unknown, System.SystemError, unknown, void, unknown> {
|
|
362
339
|
if (bytesToRead !== undefined && bytesToRead <= totalBytesRead) {
|
|
363
340
|
return Channel.void
|
|
364
341
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as Context from "effect/Context"
|
|
2
|
+
import * as Deferred from "effect/Deferred"
|
|
3
|
+
import * as Effect from "effect/Effect"
|
|
4
|
+
import type * as Fiber from "effect/Fiber"
|
|
5
|
+
import * as GlobalValue from "effect/GlobalValue"
|
|
6
|
+
import * as HashMap from "effect/HashMap"
|
|
7
|
+
import * as Layer from "effect/Layer"
|
|
8
|
+
import * as MutableRef from "effect/MutableRef"
|
|
9
|
+
import * as Option from "effect/Option"
|
|
10
|
+
import * as Runtime from "effect/Runtime"
|
|
11
|
+
|
|
12
|
+
import * as ChildProcess from "./_ChildProcess.ts"
|
|
13
|
+
|
|
14
|
+
interface CacheEntry {
|
|
15
|
+
readonly context: Context.Context<any>
|
|
16
|
+
readonly fiber: Fiber.RuntimeFiber<void>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const cache = GlobalValue.globalValue(Symbol.for("effect-start/GlobalLayer/cache"), () =>
|
|
20
|
+
MutableRef.make(HashMap.empty<string, CacheEntry>()),
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
export const globalLayer =
|
|
24
|
+
(key: string) =>
|
|
25
|
+
<A, E>(
|
|
26
|
+
layer: Layer.Layer<A, E> | Layer.Layer<A, E, ChildProcess.ChildProcessSpawner>,
|
|
27
|
+
): Layer.Layer<A, E> => {
|
|
28
|
+
const existing = HashMap.get(MutableRef.get(cache), key)
|
|
29
|
+
if (existing._tag === "Some") {
|
|
30
|
+
return Layer.succeedContext(existing.value.context) as Layer.Layer<A, E>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return Layer.scopedContext(
|
|
34
|
+
Effect.gen(function* () {
|
|
35
|
+
const cached = HashMap.get(MutableRef.get(cache), key)
|
|
36
|
+
if (cached._tag === "Some") {
|
|
37
|
+
return cached.value.context as Context.Context<A>
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const spawner = yield* Effect.serviceOption(ChildProcess.ChildProcessSpawner)
|
|
41
|
+
const deferred = yield* Deferred.make<Context.Context<A>, E>()
|
|
42
|
+
|
|
43
|
+
const parentRuntime = yield* Effect.runtime<never>()
|
|
44
|
+
|
|
45
|
+
const defaultRuntime = Runtime.make({
|
|
46
|
+
// Empty service context — no custom services leak into the forked fiber
|
|
47
|
+
context: Context.empty(),
|
|
48
|
+
|
|
49
|
+
// Bit flags for runtime behavior (interruption, cooperative yielding, etc.)
|
|
50
|
+
runtimeFlags: parentRuntime.runtimeFlags,
|
|
51
|
+
|
|
52
|
+
// Per-fiber state like logger config, tracer settings, span annotations.
|
|
53
|
+
// Default services are wired through FiberRefs, not the service context.
|
|
54
|
+
fiberRefs: parentRuntime.fiberRefs,
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
const fiber = Runtime.runFork(defaultRuntime)(
|
|
58
|
+
Effect.scoped(
|
|
59
|
+
Effect.gen(function* () {
|
|
60
|
+
const scope = yield* Effect.scope
|
|
61
|
+
const memoMap = yield* Layer.makeMemoMap
|
|
62
|
+
const ctx = yield* (layer as Layer.Layer<A, E>).pipe(
|
|
63
|
+
Layer.buildWithMemoMap(memoMap, scope),
|
|
64
|
+
Option.isSome(spawner)
|
|
65
|
+
? Effect.provideService(ChildProcess.ChildProcessSpawner, spawner.value)
|
|
66
|
+
: (a) => a,
|
|
67
|
+
)
|
|
68
|
+
yield* Deferred.succeed(deferred, ctx)
|
|
69
|
+
yield* Effect.never
|
|
70
|
+
}),
|
|
71
|
+
),
|
|
72
|
+
) as Fiber.RuntimeFiber<void>
|
|
73
|
+
|
|
74
|
+
const ctx = yield* Deferred.await(deferred)
|
|
75
|
+
|
|
76
|
+
MutableRef.update(cache, HashMap.set(key, { context: ctx, fiber } as CacheEntry))
|
|
77
|
+
|
|
78
|
+
fiber.addObserver(() => {
|
|
79
|
+
MutableRef.update(cache, HashMap.remove(key))
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
return ctx
|
|
83
|
+
}),
|
|
84
|
+
)
|
|
85
|
+
}
|
package/src/PlatformRuntime.ts
CHANGED
|
@@ -6,8 +6,15 @@ import type * as FiberId from "effect/FiberId"
|
|
|
6
6
|
import * as FiberRef from "effect/FiberRef"
|
|
7
7
|
import * as FiberRefs from "effect/FiberRefs"
|
|
8
8
|
import * as Function from "effect/Function"
|
|
9
|
+
import * as GlobalValue from "effect/GlobalValue"
|
|
9
10
|
import * as HashSet from "effect/HashSet"
|
|
10
11
|
import * as Logger from "effect/Logger"
|
|
12
|
+
import * as MutableRef from "effect/MutableRef"
|
|
13
|
+
|
|
14
|
+
export const mainFiber = GlobalValue.globalValue(
|
|
15
|
+
Symbol.for("effect-start/PlatformRuntime/mainFiber"),
|
|
16
|
+
() => MutableRef.make<Fiber.RuntimeFiber<unknown, unknown> | undefined>(undefined),
|
|
17
|
+
)
|
|
11
18
|
|
|
12
19
|
export interface Teardown {
|
|
13
20
|
<E, A>(exit: Exit.Exit<E, A>, onExit: (code: number) => void): void
|
|
@@ -95,6 +102,6 @@ export function isAgentHarness() {
|
|
|
95
102
|
return (
|
|
96
103
|
typeof process !== "undefined" &&
|
|
97
104
|
!process.stdout.isTTY &&
|
|
98
|
-
(process.env.CLAUDECODE || process.env.CURSOR_AGENT)
|
|
105
|
+
(process.env.CLAUDECODE || process.env.CURSOR_AGENT || process.env.CODEX_THREAD_ID)
|
|
99
106
|
)
|
|
100
107
|
}
|
package/src/Route.ts
CHANGED
|
@@ -6,14 +6,14 @@ import * as Predicate from "effect/Predicate"
|
|
|
6
6
|
import * as Entity from "./Entity.ts"
|
|
7
7
|
import * as RouteBody from "./RouteBody.ts"
|
|
8
8
|
import * as RouteTree from "./RouteTree.ts"
|
|
9
|
-
import type * as Values from "./
|
|
9
|
+
import type * as Values from "./_Values.ts"
|
|
10
10
|
|
|
11
11
|
export const RouteItems: unique symbol = Symbol()
|
|
12
12
|
export const RouteDescriptor: unique symbol = Symbol()
|
|
13
13
|
// only for structural type matching
|
|
14
14
|
export const RouteBindings: unique symbol = Symbol()
|
|
15
15
|
|
|
16
|
-
export const TypeId
|
|
16
|
+
export const TypeId = "~effect-start/RouteSet" as const
|
|
17
17
|
|
|
18
18
|
export namespace RouteDescriptor {
|
|
19
19
|
export type Any = {
|
package/src/RouteBody.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type * as Stream from "effect/Stream"
|
|
|
3
3
|
import type * as Utils from "effect/Utils"
|
|
4
4
|
import * as Entity from "./Entity.ts"
|
|
5
5
|
import * as Route from "./Route.ts"
|
|
6
|
-
import type * as Values from "./
|
|
6
|
+
import type * as Values from "./_Values.ts"
|
|
7
7
|
|
|
8
8
|
export type Format = "text" | "html" | "json" | "bytes" | "*"
|
|
9
9
|
|
package/src/RouteHook.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect"
|
|
2
2
|
import type * as Utils from "effect/Utils"
|
|
3
|
-
import * as Entity from "./Entity.ts"
|
|
3
|
+
import type * as Entity from "./Entity.ts"
|
|
4
4
|
import * as Route from "./Route.ts"
|
|
5
5
|
|
|
6
6
|
export type FilterResult<BOut, E, R> = { context: BOut } | Effect.Effect<{ context: BOut }, E, R>
|