effect-start 0.26.0 → 0.28.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/ChildProcess.d.ts +60 -0
- package/dist/ChildProcess.d.ts.map +1 -0
- package/dist/ChildProcess.js +30 -0
- package/dist/ChildProcess.js.map +1 -0
- package/dist/Commander.d.ts +101 -0
- package/dist/Commander.d.ts.map +1 -0
- package/dist/Commander.js +327 -0
- package/dist/Commander.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/Cookies.d.ts +78 -0
- package/dist/Cookies.d.ts.map +1 -0
- package/dist/Cookies.js +303 -0
- package/dist/Cookies.js.map +1 -0
- package/dist/Development.d.ts +42 -0
- package/dist/Development.d.ts.map +1 -0
- package/dist/Development.js +60 -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/Entity.d.ts +48 -0
- package/dist/Entity.d.ts.map +1 -0
- package/dist/Entity.js +235 -0
- package/dist/Entity.js.map +1 -0
- package/dist/Fetch.d.ts +50 -0
- package/dist/Fetch.d.ts.map +1 -0
- package/dist/Fetch.js +136 -0
- package/dist/Fetch.js.map +1 -0
- package/dist/FilePathPattern.d.ts +30 -0
- package/dist/FilePathPattern.d.ts.map +1 -0
- package/dist/FilePathPattern.js +87 -0
- package/dist/FilePathPattern.js.map +1 -0
- package/dist/FileRouter.d.ts +57 -0
- package/dist/FileRouter.d.ts.map +1 -0
- package/dist/FileRouter.js +149 -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 +228 -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 +71 -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/Http.d.ts +38 -0
- package/dist/Http.d.ts.map +1 -0
- package/dist/Http.js +89 -0
- package/dist/Http.js.map +1 -0
- package/dist/PathPattern.d.ts +135 -0
- package/dist/PathPattern.d.ts.map +1 -0
- package/dist/PathPattern.js +414 -0
- package/dist/PathPattern.js.map +1 -0
- package/dist/PlatformError.d.ts +39 -0
- package/dist/PlatformError.d.ts.map +1 -0
- package/dist/PlatformError.js +26 -0
- package/dist/PlatformError.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 +259 -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 +22 -0
- package/dist/RouteSse.d.ts.map +1 -0
- package/dist/RouteSse.js +80 -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/SchemaExtra.d.ts +8 -0
- package/dist/SchemaExtra.d.ts.map +1 -0
- package/dist/SchemaExtra.js +75 -0
- package/dist/SchemaExtra.js.map +1 -0
- package/dist/Socket.d.ts +28 -0
- package/dist/Socket.d.ts.map +1 -0
- package/dist/Socket.js +30 -0
- package/dist/Socket.js.map +1 -0
- package/dist/SqlIntrospect.d.ts +92 -0
- package/dist/SqlIntrospect.d.ts.map +1 -0
- package/dist/SqlIntrospect.js +478 -0
- package/dist/SqlIntrospect.js.map +1 -0
- package/dist/Start.d.ts +90 -0
- package/dist/Start.d.ts.map +1 -0
- package/dist/Start.js +91 -0
- package/dist/Start.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/System.d.ts +9 -0
- package/dist/System.d.ts.map +1 -0
- package/dist/System.js +61 -0
- package/dist/System.js.map +1 -0
- package/dist/TuplePathPattern.d.ts +10 -0
- package/dist/TuplePathPattern.d.ts.map +1 -0
- package/dist/TuplePathPattern.js +69 -0
- package/dist/TuplePathPattern.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/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 +122 -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/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 +27 -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/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 +398 -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 +15 -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 +86 -0
- package/dist/hyper/HyperRoute.test.js.map +1 -0
- package/dist/hyper/html.d.ts +11 -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 +121 -0
- package/dist/lint/plugin.d.ts.map +1 -0
- package/dist/lint/plugin.js +537 -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 +411 -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 +18 -0
- package/dist/sql/SqlCache.d.ts.map +1 -0
- package/dist/sql/SqlCache.js +31 -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/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 +3 -0
- package/dist/sql/index.d.ts.map +1 -0
- package/dist/sql/index.js +3 -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/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 +10 -0
- package/dist/testing/utils.d.ts.map +1 -0
- package/dist/testing/utils.js +40 -0
- package/dist/testing/utils.js.map +1 -0
- package/dist/tower/Simulation.d.ts +3 -0
- package/dist/tower/Simulation.d.ts.map +1 -0
- package/dist/tower/Simulation.js +606 -0
- package/dist/tower/Simulation.js.map +1 -0
- package/dist/tower/Tower.d.ts +11 -0
- package/dist/tower/Tower.d.ts.map +1 -0
- package/dist/tower/Tower.js +30 -0
- package/dist/tower/Tower.js.map +1 -0
- package/dist/tower/TowerErrors.d.ts +4 -0
- package/dist/tower/TowerErrors.d.ts.map +1 -0
- package/dist/tower/TowerErrors.js +200 -0
- package/dist/tower/TowerErrors.js.map +1 -0
- package/dist/tower/TowerLogger.d.ts +2 -0
- package/dist/tower/TowerLogger.d.ts.map +1 -0
- package/dist/tower/TowerLogger.js +46 -0
- package/dist/tower/TowerLogger.js.map +1 -0
- package/dist/tower/TowerMetrics.d.ts +4 -0
- package/dist/tower/TowerMetrics.d.ts.map +1 -0
- package/dist/tower/TowerMetrics.js +62 -0
- package/dist/tower/TowerMetrics.js.map +1 -0
- package/dist/tower/TowerProcess.d.ts +4 -0
- package/dist/tower/TowerProcess.d.ts.map +1 -0
- package/dist/tower/TowerProcess.js +50 -0
- package/dist/tower/TowerProcess.js.map +1 -0
- package/dist/tower/TowerStore.d.ts +199 -0
- package/dist/tower/TowerStore.d.ts.map +1 -0
- package/dist/tower/TowerStore.js +307 -0
- package/dist/tower/TowerStore.js.map +1 -0
- package/dist/tower/TowerTracer.d.ts +4 -0
- package/dist/tower/TowerTracer.d.ts.map +1 -0
- package/dist/tower/TowerTracer.js +111 -0
- package/dist/tower/TowerTracer.js.map +1 -0
- package/dist/tower/index.d.ts +4 -0
- package/dist/tower/index.d.ts.map +1 -0
- package/dist/tower/index.js +4 -0
- package/dist/tower/index.js.map +1 -0
- package/dist/tower/routes/errors/route.d.ts +11 -0
- package/dist/tower/routes/errors/route.d.ts.map +1 -0
- package/dist/tower/routes/errors/route.js +47 -0
- package/dist/tower/routes/errors/route.js.map +1 -0
- package/dist/tower/routes/fiberDetail.d.ts +17 -0
- package/dist/tower/routes/fiberDetail.d.ts.map +1 -0
- package/dist/tower/routes/fiberDetail.js +35 -0
- package/dist/tower/routes/fiberDetail.js.map +1 -0
- package/dist/tower/routes/fibers/route.d.ts +11 -0
- package/dist/tower/routes/fibers/route.d.ts.map +1 -0
- package/dist/tower/routes/fibers/route.js +27 -0
- package/dist/tower/routes/fibers/route.js.map +1 -0
- package/dist/tower/routes/layout.d.ts +10 -0
- package/dist/tower/routes/layout.d.ts.map +1 -0
- package/dist/tower/routes/layout.js +4 -0
- package/dist/tower/routes/layout.js.map +1 -0
- package/dist/tower/routes/logs/route.d.ts +11 -0
- package/dist/tower/routes/logs/route.d.ts.map +1 -0
- package/dist/tower/routes/logs/route.js +36 -0
- package/dist/tower/routes/logs/route.js.map +1 -0
- package/dist/tower/routes/metrics/route.d.ts +11 -0
- package/dist/tower/routes/metrics/route.d.ts.map +1 -0
- package/dist/tower/routes/metrics/route.js +20 -0
- package/dist/tower/routes/metrics/route.js.map +1 -0
- package/dist/tower/routes/route.d.ts +7 -0
- package/dist/tower/routes/route.d.ts.map +1 -0
- package/dist/tower/routes/route.js +6 -0
- package/dist/tower/routes/route.js.map +1 -0
- package/dist/tower/routes/routes/route.d.ts +7 -0
- package/dist/tower/routes/routes/route.d.ts.map +1 -0
- package/dist/tower/routes/routes/route.js +23 -0
- package/dist/tower/routes/routes/route.js.map +1 -0
- package/dist/tower/routes/services/route.d.ts +7 -0
- package/dist/tower/routes/services/route.d.ts.map +1 -0
- package/dist/tower/routes/services/route.js +15 -0
- package/dist/tower/routes/services/route.js.map +1 -0
- package/dist/tower/routes/system/route.d.ts +11 -0
- package/dist/tower/routes/system/route.d.ts.map +1 -0
- package/dist/tower/routes/system/route.js +21 -0
- package/dist/tower/routes/system/route.js.map +1 -0
- package/dist/tower/routes/traceDetail.d.ts +17 -0
- package/dist/tower/routes/traceDetail.d.ts.map +1 -0
- package/dist/tower/routes/traceDetail.js +20 -0
- package/dist/tower/routes/traceDetail.js.map +1 -0
- package/dist/tower/routes/traces/route.d.ts +11 -0
- package/dist/tower/routes/traces/route.d.ts.map +1 -0
- package/dist/tower/routes/traces/route.js +36 -0
- package/dist/tower/routes/traces/route.js.map +1 -0
- package/dist/tower/routes/tree.d.ts +142 -0
- package/dist/tower/routes/tree.d.ts.map +1 -0
- package/dist/tower/routes/tree.js +28 -0
- package/dist/tower/routes/tree.js.map +1 -0
- package/dist/tower/ui/Errors.d.ts +5 -0
- package/dist/tower/ui/Errors.d.ts.map +1 -0
- package/dist/tower/ui/Errors.js +30 -0
- package/dist/tower/ui/Errors.js.map +1 -0
- package/dist/tower/ui/Fibers.d.ts +25 -0
- package/dist/tower/ui/Fibers.d.ts.map +1 -0
- package/dist/tower/ui/Fibers.js +157 -0
- package/dist/tower/ui/Fibers.js.map +1 -0
- package/dist/tower/ui/Logs.d.ts +5 -0
- package/dist/tower/ui/Logs.d.ts.map +1 -0
- package/dist/tower/ui/Logs.js +28 -0
- package/dist/tower/ui/Logs.js.map +1 -0
- package/dist/tower/ui/Metrics.d.ts +5 -0
- package/dist/tower/ui/Metrics.d.ts.map +1 -0
- package/dist/tower/ui/Metrics.js +34 -0
- package/dist/tower/ui/Metrics.js.map +1 -0
- package/dist/tower/ui/Routes.d.ts +9 -0
- package/dist/tower/ui/Routes.d.ts.map +1 -0
- package/dist/tower/ui/Routes.js +79 -0
- package/dist/tower/ui/Routes.js.map +1 -0
- package/dist/tower/ui/Services.d.ts +11 -0
- package/dist/tower/ui/Services.d.ts.map +1 -0
- package/dist/tower/ui/Services.js +254 -0
- package/dist/tower/ui/Services.js.map +1 -0
- package/dist/tower/ui/Shell.d.ts +11 -0
- package/dist/tower/ui/Shell.d.ts.map +1 -0
- package/dist/tower/ui/Shell.js +12 -0
- package/dist/tower/ui/Shell.js.map +1 -0
- package/dist/tower/ui/System.d.ts +5 -0
- package/dist/tower/ui/System.d.ts.map +1 -0
- package/dist/tower/ui/System.js +65 -0
- package/dist/tower/ui/System.js.map +1 -0
- package/dist/tower/ui/Traces.d.ts +13 -0
- package/dist/tower/ui/Traces.d.ts.map +1 -0
- package/dist/tower/ui/Traces.js +219 -0
- package/dist/tower/ui/Traces.js.map +1 -0
- package/dist/x/cloudflare/CloudflareTunnel.d.ts +11 -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 +66 -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 +104 -21
- package/src/ChildProcess.ts +3 -6
- package/src/Docker.ts +190 -0
- package/src/Effectify.ts +7 -10
- package/src/Entity.ts +6 -6
- package/src/FileRouterCodegen.ts +4 -4
- package/src/FileSystem.ts +4 -11
- package/src/GlobalLayer.ts +85 -0
- package/src/PlatformRuntime.ts +8 -1
- package/src/RouteHook.ts +2 -2
- package/src/RouteSse.ts +3 -3
- package/src/SqlIntrospect.ts +13 -11
- package/src/Start.ts +112 -1
- package/src/System.ts +60 -3
- package/src/Unique.ts +59 -0
- package/src/Values.ts +11 -0
- package/src/bun/BunChildProcessSpawner.ts +1 -8
- package/src/bun/BunRoute.ts +2 -1
- package/src/bun/BunRuntime.ts +6 -12
- package/src/bun/BunServer.ts +54 -2
- package/src/datastar/watchers/patchElements.ts +0 -1
- package/src/hyper/HyperHtml.ts +11 -7
- package/src/hyper/jsx.d.ts +1 -1
- package/src/lint/plugin.js +239 -4
- package/src/sql/SqlCache.ts +50 -0
- package/src/sql/SqlClient.ts +400 -0
- package/src/sql/bun/index.ts +126 -57
- package/src/sql/index.ts +2 -1
- package/src/sql/libsql/index.ts +133 -85
- package/src/sql/libsql/libsql.d.ts +4 -1
- package/src/sql/mssql/index.ts +149 -120
- package/src/sql/mssql/mssql.d.ts +1 -0
- package/src/sql/postgres/index.ts +254 -0
- package/src/testing/TestLogger.ts +4 -4
- package/src/{console → tower}/Simulation.ts +10 -48
- package/src/tower/Tower.ts +47 -0
- package/src/{console/ConsoleErrors.ts → tower/TowerErrors.ts} +34 -23
- package/src/tower/TowerLogger.ts +52 -0
- package/src/{console/ConsoleMetrics.ts → tower/TowerMetrics.ts} +5 -5
- package/src/{console/ConsoleProcess.ts → tower/TowerProcess.ts} +4 -4
- package/src/tower/TowerStore.ts +505 -0
- package/src/tower/TowerTracer.ts +128 -0
- package/src/tower/index.ts +3 -0
- package/src/{console → tower}/routes/errors/route.tsx +26 -33
- package/src/{console → tower}/routes/fiberDetail.tsx +12 -15
- package/src/tower/routes/fibers/route.tsx +46 -0
- package/src/{console/console.html → tower/routes/layout.html} +1 -1
- package/src/{console → tower}/routes/layout.tsx +1 -1
- package/src/{console → tower}/routes/logs/route.tsx +12 -16
- package/src/{console → tower}/routes/metrics/route.tsx +5 -5
- package/src/tower/routes/route.tsx +8 -0
- package/src/{console → tower}/routes/routes/route.tsx +2 -2
- package/src/{console → tower}/routes/services/route.tsx +2 -2
- package/src/{console → tower}/routes/system/route.tsx +5 -5
- package/src/tower/routes/traceDetail.tsx +30 -0
- package/src/{console → tower}/routes/traces/route.tsx +25 -34
- package/src/{console → tower}/routes/tree.ts +0 -2
- package/src/{console → tower}/ui/Errors.tsx +19 -15
- package/src/{console → tower}/ui/Fibers.tsx +83 -68
- package/src/{console → tower}/ui/Logs.tsx +20 -16
- package/src/{console → tower}/ui/Metrics.tsx +18 -18
- package/src/{console → tower}/ui/Routes.tsx +14 -14
- package/src/{console → tower}/ui/Services.tsx +9 -9
- package/src/tower/ui/Shell.tsx +74 -0
- package/src/{console → tower}/ui/System.tsx +40 -30
- package/src/{console → tower}/ui/Traces.tsx +73 -80
- package/src/x/cloudflare/CloudflareTunnel.ts +1 -1
- package/src/x/tailscale/TailscaleTunnel.ts +3 -3
- package/src/x/tailwind/compile.ts +11 -14
- package/src/console/Console.ts +0 -42
- package/src/console/ConsoleLogger.ts +0 -56
- package/src/console/ConsoleStore.ts +0 -187
- package/src/console/ConsoleTracer.ts +0 -107
- package/src/console/index.ts +0 -3
- package/src/console/routes/fibers/route.tsx +0 -45
- package/src/console/routes/git/route.tsx +0 -64
- package/src/console/routes/route.tsx +0 -8
- package/src/console/routes/traceDetail.tsx +0 -22
- package/src/console/ui/Git.tsx +0 -182
- package/src/console/ui/Shell.tsx +0 -62
- package/src/sql/Sql.ts +0 -51
- package/src/sql/mssql/docker.ts +0 -117
|
@@ -2,44 +2,37 @@ import * as Stream from "effect/Stream"
|
|
|
2
2
|
import * as Route from "../../../Route.ts"
|
|
3
3
|
import * as HyperHtml from "../../../hyper/HyperHtml.ts"
|
|
4
4
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
5
|
-
import * as
|
|
5
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
6
6
|
import * as Errors from "../../ui/Errors.tsx"
|
|
7
7
|
import * as Shell from "../../ui/Shell.tsx"
|
|
8
8
|
|
|
9
|
-
const prefix =
|
|
10
|
-
|
|
11
|
-
function collectTags(): Array<string> {
|
|
12
|
-
const tags = new Set<string>()
|
|
13
|
-
for (const error of ConsoleStore.store.errors.toArray()) {
|
|
14
|
-
for (const d of error.details) {
|
|
15
|
-
if (d.tag) tags.add(d.tag)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return Array.from(tags).sort()
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function filterErrors(url: URL): Array<ConsoleStore.ConsoleError> {
|
|
22
|
-
const search = url.searchParams.get("errorSearch") || ""
|
|
23
|
-
const tag = url.searchParams.get("errorTag") || ""
|
|
24
|
-
let errors = ConsoleStore.store.errors.toArray()
|
|
25
|
-
if (tag) {
|
|
26
|
-
errors = errors.filter((e) => e.details.some((d) => d.tag && d.tag.startsWith(tag)))
|
|
27
|
-
}
|
|
28
|
-
if (search) {
|
|
29
|
-
const lower = search.toLowerCase()
|
|
30
|
-
errors = errors.filter((e) => {
|
|
31
|
-
const firstLine = e.prettyPrint.split("\n")[0] ?? ""
|
|
32
|
-
return firstLine.toLowerCase().includes(lower)
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
return errors.reverse()
|
|
36
|
-
}
|
|
9
|
+
const prefix = TowerStore.store.prefix
|
|
37
10
|
|
|
38
11
|
export default Route.get(
|
|
39
12
|
HyperRoute.html(function* (ctx) {
|
|
40
13
|
const url = new URL(ctx.request.url)
|
|
41
|
-
const
|
|
42
|
-
const
|
|
14
|
+
const search = url.searchParams.get("errorSearch") || ""
|
|
15
|
+
const tag = url.searchParams.get("errorTag") || ""
|
|
16
|
+
const allErrors = yield* TowerStore.allErrors(TowerStore.store.sql)
|
|
17
|
+
const tagSet = new Set<string>()
|
|
18
|
+
for (const error of allErrors) {
|
|
19
|
+
for (const d of error.details) {
|
|
20
|
+
if (d.tag) tagSet.add(d.tag)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const sortedTags = Array.from(tagSet).sort()
|
|
24
|
+
let errors = allErrors
|
|
25
|
+
if (tag) {
|
|
26
|
+
errors = errors.filter((e) => e.details.some((d) => d.tag && d.tag.startsWith(tag)))
|
|
27
|
+
}
|
|
28
|
+
if (search) {
|
|
29
|
+
const lower = search.toLowerCase()
|
|
30
|
+
errors = errors.filter((e) => {
|
|
31
|
+
const firstLine = e.prettyPrint.split("\n")[0] ?? ""
|
|
32
|
+
return firstLine.toLowerCase().includes(lower)
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
errors = errors.reverse()
|
|
43
36
|
|
|
44
37
|
return (
|
|
45
38
|
<Shell.Shell prefix={prefix} active="errors">
|
|
@@ -65,7 +58,7 @@ export default Route.get(
|
|
|
65
58
|
data-on:input={(c) => c.actions.get(location.href, { contentType: "form" })}
|
|
66
59
|
/>
|
|
67
60
|
<datalist id="error-tags">
|
|
68
|
-
{
|
|
61
|
+
{sortedTags.map((t) => (
|
|
69
62
|
<option value={t} />
|
|
70
63
|
))}
|
|
71
64
|
</datalist>
|
|
@@ -80,7 +73,7 @@ export default Route.get(
|
|
|
80
73
|
)
|
|
81
74
|
}),
|
|
82
75
|
Route.sse(
|
|
83
|
-
Stream.fromPubSub(
|
|
76
|
+
Stream.fromPubSub(TowerStore.store.events).pipe(
|
|
84
77
|
Stream.filter((e) => e._tag === "Error"),
|
|
85
78
|
Stream.map((e) => {
|
|
86
79
|
const html = HyperHtml.renderToString(<Errors.ErrorLine error={e.error} />).replace(
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema"
|
|
2
2
|
import * as Route from "../../Route.ts"
|
|
3
3
|
import * as RouteSchema from "../../RouteSchema.ts"
|
|
4
|
+
import * as Unique from "../../Unique.ts"
|
|
4
5
|
import * as HyperRoute from "../../hyper/HyperRoute.ts"
|
|
5
|
-
import * as
|
|
6
|
+
import * as TowerStore from "../TowerStore.ts"
|
|
6
7
|
import * as Fibers from "../ui/Fibers.tsx"
|
|
7
8
|
import * as Shell from "../ui/Shell.tsx"
|
|
8
9
|
|
|
@@ -12,35 +13,31 @@ export default Route.get(
|
|
|
12
13
|
const fiberId = ctx.pathParams.id
|
|
13
14
|
const fiberName = fiberId.startsWith("#") ? fiberId : `#${fiberId}`
|
|
14
15
|
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const allSpans = ConsoleStore.store.spans.toArray()
|
|
19
|
-
const fiberSpans = allSpans.filter((s) => {
|
|
20
|
-
const spanFiber = s.attributes["fiber.id"] as string | undefined
|
|
21
|
-
return spanFiber === fiberName
|
|
22
|
-
})
|
|
16
|
+
const fiberLogs = yield* TowerStore.logsByFiberId(TowerStore.store.sql, fiberName)
|
|
17
|
+
const fiberSpans = yield* TowerStore.spansByFiberId(TowerStore.store.sql, fiberName)
|
|
23
18
|
|
|
24
19
|
const fiberNum = parseInt(fiberName.slice(1), 10)
|
|
25
|
-
const counter =
|
|
20
|
+
const counter = TowerStore.fiberIdCounter()
|
|
26
21
|
let alive: "alive" | "dead" | "unknown" = "unknown"
|
|
27
22
|
if (!isNaN(fiberNum)) {
|
|
28
23
|
if (fiberNum < counter) alive = "dead"
|
|
29
24
|
else alive = "unknown"
|
|
30
25
|
}
|
|
31
26
|
if (fiberLogs.length > 0 || fiberSpans.length > 0) {
|
|
32
|
-
const hasRecent = fiberLogs.some(
|
|
27
|
+
const hasRecent = fiberLogs.some(
|
|
28
|
+
(l) => Date.now() - Number(Unique.snowflake.timestamp(l.id)) < 5000,
|
|
29
|
+
)
|
|
33
30
|
if (hasRecent) alive = "alive"
|
|
34
31
|
else if (fiberNum < counter) alive = "dead"
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
const parents =
|
|
38
|
-
const fiberContext =
|
|
34
|
+
const parents = yield* TowerStore.getParentChain(TowerStore.store.sql, fiberName)
|
|
35
|
+
const fiberContext = yield* TowerStore.getFiberContext(TowerStore.store.sql, fiberName)
|
|
39
36
|
|
|
40
37
|
return (
|
|
41
|
-
<Shell.Shell prefix={
|
|
38
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="fibers">
|
|
42
39
|
<Fibers.FiberDetail
|
|
43
|
-
prefix={
|
|
40
|
+
prefix={TowerStore.store.prefix}
|
|
44
41
|
fiberId={fiberName}
|
|
45
42
|
logs={fiberLogs}
|
|
46
43
|
spans={fiberSpans}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect"
|
|
2
|
+
import * as Stream from "effect/Stream"
|
|
3
|
+
import * as Route from "../../../Route.ts"
|
|
4
|
+
import * as HyperHtml from "../../../hyper/HyperHtml.ts"
|
|
5
|
+
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
6
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
7
|
+
import * as Fibers from "../../ui/Fibers.tsx"
|
|
8
|
+
import * as Shell from "../../ui/Shell.tsx"
|
|
9
|
+
|
|
10
|
+
export default Route.get(
|
|
11
|
+
HyperRoute.html(function* () {
|
|
12
|
+
const logs = yield* TowerStore.allLogs(TowerStore.store.sql)
|
|
13
|
+
const spans = yield* TowerStore.allSpans(TowerStore.store.sql)
|
|
14
|
+
const fibers = Fibers.collectFibers(logs, spans)
|
|
15
|
+
return (
|
|
16
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="fibers">
|
|
17
|
+
<div style="display:flex;flex-direction:column;flex:1;overflow:hidden">
|
|
18
|
+
<div class="tab-header">Fibers</div>
|
|
19
|
+
<div id="fibers-container" class="tab-body">
|
|
20
|
+
<Fibers.FiberList fibers={fibers} prefix={TowerStore.store.prefix} />
|
|
21
|
+
</div>
|
|
22
|
+
<div data-init={`@get('${TowerStore.store.prefix}/fibers')`} />
|
|
23
|
+
</div>
|
|
24
|
+
</Shell.Shell>
|
|
25
|
+
)
|
|
26
|
+
}),
|
|
27
|
+
Route.sse(
|
|
28
|
+
Stream.fromPubSub(TowerStore.store.events).pipe(
|
|
29
|
+
Stream.filter((e) => e._tag === "SpanStart" || e._tag === "SpanEnd" || e._tag === "Log"),
|
|
30
|
+
Stream.mapEffect(() =>
|
|
31
|
+
Effect.gen(function* () {
|
|
32
|
+
const logs = yield* TowerStore.allLogs(TowerStore.store.sql)
|
|
33
|
+
const spans = yield* TowerStore.allSpans(TowerStore.store.sql)
|
|
34
|
+
const fibers = Fibers.collectFibers(logs, spans)
|
|
35
|
+
const html = HyperHtml.renderToString(
|
|
36
|
+
<Fibers.FiberList fibers={fibers} prefix={TowerStore.store.prefix} />,
|
|
37
|
+
).replace(/\n/g, "")
|
|
38
|
+
return {
|
|
39
|
+
event: "datastar-patch-elements",
|
|
40
|
+
data: `selector #fibers-container\nmode inner\nelements ${html}`,
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
),
|
|
46
|
+
)
|
|
@@ -2,28 +2,24 @@ import * as Stream from "effect/Stream"
|
|
|
2
2
|
import * as Route from "../../../Route.ts"
|
|
3
3
|
import * as HyperHtml from "../../../hyper/HyperHtml.ts"
|
|
4
4
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
5
|
-
import * as
|
|
5
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
6
6
|
import * as Logs from "../../ui/Logs.tsx"
|
|
7
7
|
import * as Shell from "../../ui/Shell.tsx"
|
|
8
8
|
|
|
9
|
-
const prefix =
|
|
10
|
-
|
|
11
|
-
function filterLogs(url: URL): Array<ConsoleStore.ConsoleLog> {
|
|
12
|
-
const level = url.searchParams.get("logLevel") || ""
|
|
13
|
-
const search = url.searchParams.get("logSearch") || ""
|
|
14
|
-
let logs = ConsoleStore.store.logs.toArray()
|
|
15
|
-
if (level) logs = logs.filter((l) => l.level === level)
|
|
16
|
-
if (search) {
|
|
17
|
-
const lower = search.toLowerCase()
|
|
18
|
-
logs = logs.filter((l) => l.message.toLowerCase().includes(lower))
|
|
19
|
-
}
|
|
20
|
-
return logs.reverse()
|
|
21
|
-
}
|
|
9
|
+
const prefix = TowerStore.store.prefix
|
|
22
10
|
|
|
23
11
|
export default Route.get(
|
|
24
12
|
HyperRoute.html(function* (ctx) {
|
|
25
13
|
const url = new URL(ctx.request.url)
|
|
26
|
-
const
|
|
14
|
+
const level = url.searchParams.get("logLevel") || ""
|
|
15
|
+
const search = url.searchParams.get("logSearch") || ""
|
|
16
|
+
let logs = yield* TowerStore.allLogs(TowerStore.store.sql)
|
|
17
|
+
if (level) logs = logs.filter((l) => l.level === level)
|
|
18
|
+
if (search) {
|
|
19
|
+
const lower = search.toLowerCase()
|
|
20
|
+
logs = logs.filter((l) => l.message.toLowerCase().includes(lower))
|
|
21
|
+
}
|
|
22
|
+
logs = logs.reverse()
|
|
27
23
|
|
|
28
24
|
return (
|
|
29
25
|
<Shell.Shell prefix={prefix} active="logs">
|
|
@@ -63,7 +59,7 @@ export default Route.get(
|
|
|
63
59
|
)
|
|
64
60
|
}),
|
|
65
61
|
Route.sse(
|
|
66
|
-
Stream.fromPubSub(
|
|
62
|
+
Stream.fromPubSub(TowerStore.store.events).pipe(
|
|
67
63
|
Stream.filter((e) => e._tag === "Log"),
|
|
68
64
|
Stream.map((e) => {
|
|
69
65
|
const html = HyperHtml.renderToString(<Logs.LogLine log={e.log} />).replace(/\n/g, "")
|
|
@@ -2,24 +2,24 @@ import * as Stream from "effect/Stream"
|
|
|
2
2
|
import * as Route from "../../../Route.ts"
|
|
3
3
|
import * as HyperHtml from "../../../hyper/HyperHtml.ts"
|
|
4
4
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
5
|
-
import * as
|
|
5
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
6
6
|
import * as Metrics from "../../ui/Metrics.tsx"
|
|
7
7
|
import * as Shell from "../../ui/Shell.tsx"
|
|
8
8
|
|
|
9
9
|
export default Route.get(
|
|
10
10
|
HyperRoute.html(function* () {
|
|
11
11
|
return (
|
|
12
|
-
<Shell.Shell prefix={
|
|
12
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="metrics">
|
|
13
13
|
<div class="tab-header">Metrics</div>
|
|
14
14
|
<div id="metrics-container" class="tab-body metrics-grid">
|
|
15
|
-
<Metrics.MetricsGrid metrics={
|
|
15
|
+
<Metrics.MetricsGrid metrics={TowerStore.store.metrics} />
|
|
16
16
|
</div>
|
|
17
|
-
<div data-init={`@get('${
|
|
17
|
+
<div data-init={`@get('${TowerStore.store.prefix}/metrics')`} />
|
|
18
18
|
</Shell.Shell>
|
|
19
19
|
)
|
|
20
20
|
}),
|
|
21
21
|
Route.sse(
|
|
22
|
-
Stream.fromPubSub(
|
|
22
|
+
Stream.fromPubSub(TowerStore.store.events).pipe(
|
|
23
23
|
Stream.filter((e) => e._tag === "MetricsSnapshot"),
|
|
24
24
|
Stream.map((e) => {
|
|
25
25
|
const html = HyperHtml.renderToString(<Metrics.MetricsGrid metrics={e.metrics} />).replace(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Route from "../../../Route.ts"
|
|
2
2
|
import * as RouteTree from "../../../RouteTree.ts"
|
|
3
3
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
4
|
-
import * as
|
|
4
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
5
5
|
import * as Routes from "../../ui/Routes.tsx"
|
|
6
6
|
import * as Shell from "../../ui/Shell.tsx"
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ export default Route.get(
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
|
-
<Shell.Shell prefix={
|
|
22
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="routes">
|
|
23
23
|
<div class="tab-header">Routes</div>
|
|
24
24
|
<div class="tab-body">
|
|
25
25
|
<Routes.RouteList routes={routes} />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect"
|
|
2
2
|
import * as Route from "../../../Route.ts"
|
|
3
3
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
4
|
-
import * as
|
|
4
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
5
5
|
import * as Services from "../../ui/Services.tsx"
|
|
6
6
|
import * as Shell from "../../ui/Shell.tsx"
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ export default Route.get(
|
|
|
10
10
|
const ctx = yield* Effect.context<never>()
|
|
11
11
|
const services = Services.collectServices(ctx.unsafeMap)
|
|
12
12
|
return (
|
|
13
|
-
<Shell.Shell prefix={
|
|
13
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="services">
|
|
14
14
|
<div class="tab-header">Services ({services.length})</div>
|
|
15
15
|
<div class="tab-body">
|
|
16
16
|
<Services.ServiceList services={services} />
|
|
@@ -2,15 +2,15 @@ import * as Stream from "effect/Stream"
|
|
|
2
2
|
import * as Route from "../../../Route.ts"
|
|
3
3
|
import * as HyperHtml from "../../../hyper/HyperHtml.ts"
|
|
4
4
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
5
|
-
import * as
|
|
5
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
6
6
|
import * as System from "../../ui/System.tsx"
|
|
7
7
|
import * as Shell from "../../ui/Shell.tsx"
|
|
8
8
|
|
|
9
9
|
export default Route.get(
|
|
10
10
|
HyperRoute.html(function* () {
|
|
11
|
-
const stats =
|
|
11
|
+
const stats = TowerStore.store.process
|
|
12
12
|
return (
|
|
13
|
-
<Shell.Shell prefix={
|
|
13
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="system">
|
|
14
14
|
<div style="display:flex;flex-direction:column;flex:1;overflow:hidden">
|
|
15
15
|
<div class="tab-header">System</div>
|
|
16
16
|
<div id="system-container" class="tab-body">
|
|
@@ -20,13 +20,13 @@ export default Route.get(
|
|
|
20
20
|
<div class="empty">Waiting for system data...</div>
|
|
21
21
|
)}
|
|
22
22
|
</div>
|
|
23
|
-
<div data-init={`@get('${
|
|
23
|
+
<div data-init={`@get('${TowerStore.store.prefix}/system')`} />
|
|
24
24
|
</div>
|
|
25
25
|
</Shell.Shell>
|
|
26
26
|
)
|
|
27
27
|
}),
|
|
28
28
|
Route.sse(
|
|
29
|
-
Stream.fromPubSub(
|
|
29
|
+
Stream.fromPubSub(TowerStore.store.events).pipe(
|
|
30
30
|
Stream.filter((e) => e._tag === "ProcessSnapshot"),
|
|
31
31
|
Stream.map((e) => {
|
|
32
32
|
const html = HyperHtml.renderToString(<System.SystemStatsView stats={e.stats} />).replace(
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema"
|
|
2
|
+
import * as Route from "../../Route.ts"
|
|
3
|
+
import * as RouteSchema from "../../RouteSchema.ts"
|
|
4
|
+
import * as HyperRoute from "../../hyper/HyperRoute.ts"
|
|
5
|
+
import * as TowerStore from "../TowerStore.ts"
|
|
6
|
+
import * as Shell from "../ui/Shell.tsx"
|
|
7
|
+
import * as Traces from "../ui/Traces.tsx"
|
|
8
|
+
|
|
9
|
+
export default Route.get(
|
|
10
|
+
RouteSchema.schemaPathParams(Schema.Struct({ id: Schema.String })),
|
|
11
|
+
HyperRoute.html(function* (ctx) {
|
|
12
|
+
let traceId: bigint
|
|
13
|
+
try {
|
|
14
|
+
traceId = BigInt(ctx.pathParams.id)
|
|
15
|
+
} catch {
|
|
16
|
+
return (
|
|
17
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="traces">
|
|
18
|
+
<div class="empty">Trace not found</div>
|
|
19
|
+
</Shell.Shell>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
const spans = yield* TowerStore.spansByTraceId(TowerStore.store.sql, traceId)
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<Shell.Shell prefix={TowerStore.store.prefix} active="traces">
|
|
26
|
+
<Traces.TraceDetail prefix={TowerStore.store.prefix} spans={spans} />
|
|
27
|
+
</Shell.Shell>
|
|
28
|
+
)
|
|
29
|
+
}),
|
|
30
|
+
)
|
|
@@ -1,36 +1,25 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect"
|
|
1
2
|
import * as Stream from "effect/Stream"
|
|
2
3
|
import * as Route from "../../../Route.ts"
|
|
3
4
|
import * as HyperHtml from "../../../hyper/HyperHtml.ts"
|
|
4
5
|
import * as HyperRoute from "../../../hyper/HyperRoute.ts"
|
|
5
|
-
import * as
|
|
6
|
+
import * as TowerStore from "../../TowerStore.ts"
|
|
6
7
|
import * as Shell from "../../ui/Shell.tsx"
|
|
7
8
|
import * as Traces from "../../ui/Traces.tsx"
|
|
8
9
|
|
|
9
|
-
const prefix =
|
|
10
|
-
|
|
11
|
-
function collectNames(): Array<string> {
|
|
12
|
-
const names = new Set<string>()
|
|
13
|
-
for (const span of ConsoleStore.store.spans.toArray()) {
|
|
14
|
-
if (span.name) names.add(span.name)
|
|
15
|
-
}
|
|
16
|
-
return Array.from(names).sort()
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function filterSpans(url: URL): Array<ConsoleStore.ConsoleSpan> {
|
|
20
|
-
const search = url.searchParams.get("traceSearch") || ""
|
|
21
|
-
let spans = ConsoleStore.store.spans.toArray()
|
|
22
|
-
if (search) {
|
|
23
|
-
const lower = search.toLowerCase()
|
|
24
|
-
spans = spans.filter((s) => s.name.toLowerCase().startsWith(lower))
|
|
25
|
-
}
|
|
26
|
-
return spans
|
|
27
|
-
}
|
|
10
|
+
const prefix = TowerStore.store.prefix
|
|
28
11
|
|
|
29
12
|
export default Route.get(
|
|
30
13
|
HyperRoute.html(function* (ctx) {
|
|
31
14
|
const url = new URL(ctx.request.url)
|
|
32
|
-
const
|
|
33
|
-
const
|
|
15
|
+
const search = url.searchParams.get("traceSearch") || ""
|
|
16
|
+
const allSpans = yield* TowerStore.allSpans(TowerStore.store.sql)
|
|
17
|
+
const names = Array.from(new Set(allSpans.map((s) => s.name))).sort()
|
|
18
|
+
let spans = allSpans
|
|
19
|
+
if (search) {
|
|
20
|
+
const lower = search.toLowerCase()
|
|
21
|
+
spans = spans.filter((s) => s.name.toLowerCase().startsWith(lower))
|
|
22
|
+
}
|
|
34
23
|
|
|
35
24
|
return (
|
|
36
25
|
<Shell.Shell prefix={prefix} active="traces">
|
|
@@ -63,19 +52,21 @@ export default Route.get(
|
|
|
63
52
|
)
|
|
64
53
|
}),
|
|
65
54
|
Route.sse(
|
|
66
|
-
Stream.fromPubSub(
|
|
55
|
+
Stream.fromPubSub(TowerStore.store.events).pipe(
|
|
67
56
|
Stream.filter((e) => e._tag === "SpanStart" || e._tag === "SpanEnd"),
|
|
68
|
-
Stream.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
57
|
+
Stream.mapEffect(() =>
|
|
58
|
+
Effect.gen(function* () {
|
|
59
|
+
const spans = yield* TowerStore.allSpans(TowerStore.store.sql)
|
|
60
|
+
const html = HyperHtml.renderToString(<Traces.TraceGroups spans={spans} />).replace(
|
|
61
|
+
/\n/g,
|
|
62
|
+
"",
|
|
63
|
+
)
|
|
64
|
+
return {
|
|
65
|
+
event: "datastar-patch-elements",
|
|
66
|
+
data: `selector #traces-container\nmode inner\nelements ${html}`,
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
),
|
|
79
70
|
),
|
|
80
71
|
),
|
|
81
72
|
)
|
|
@@ -2,7 +2,6 @@ import * as Route from "../../Route.ts"
|
|
|
2
2
|
import errorsRoute from "./errors/route.tsx"
|
|
3
3
|
import fiberDetailRoute from "./fiberDetail.tsx"
|
|
4
4
|
import fibersRoute from "./fibers/route.tsx"
|
|
5
|
-
import gitRoute from "./git/route.tsx"
|
|
6
5
|
import layout from "./layout.tsx"
|
|
7
6
|
import logsRoute from "./logs/route.tsx"
|
|
8
7
|
import metricsRoute from "./metrics/route.tsx"
|
|
@@ -26,5 +25,4 @@ export default Route.tree({
|
|
|
26
25
|
"/routes": routesRoute,
|
|
27
26
|
"/system": systemRoute,
|
|
28
27
|
"/services": servicesRoute,
|
|
29
|
-
"/git": gitRoute,
|
|
30
28
|
})
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as Unique from "../../Unique.ts"
|
|
2
|
+
import * as TowerStore from "../TowerStore.ts"
|
|
2
3
|
|
|
3
|
-
export function ErrorLine(
|
|
4
|
-
const time = error.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
export function ErrorLine(options: { error: TowerStore.TowerError }) {
|
|
5
|
+
const time = new Date(Number(Unique.snowflake.timestamp(options.error.id))).toLocaleTimeString(
|
|
6
|
+
"en",
|
|
7
|
+
{
|
|
8
|
+
hour12: false,
|
|
9
|
+
hour: "2-digit",
|
|
10
|
+
minute: "2-digit",
|
|
11
|
+
second: "2-digit",
|
|
12
|
+
},
|
|
13
|
+
)
|
|
14
|
+
const firstLine = options.error.prettyPrint.split("\n")[0] ?? ""
|
|
15
|
+
const tags = options.error.details.map((d) => d.tag).filter(Boolean)
|
|
12
16
|
|
|
13
|
-
const allSpans = error.details.map((d) => d.span).filter(Boolean)
|
|
14
|
-
const allProps = error.details.flatMap((d) => Object.entries(d.properties))
|
|
17
|
+
const allSpans = options.error.details.map((d) => d.span).filter(Boolean)
|
|
18
|
+
const allProps = options.error.details.flatMap((d) => Object.entries(d.properties))
|
|
15
19
|
|
|
16
20
|
return (
|
|
17
21
|
<details style="border-bottom:1px solid #1e293b">
|
|
@@ -61,14 +65,14 @@ export function ErrorLine({ error }: { error: ConsoleStore.ConsoleError }) {
|
|
|
61
65
|
<div style="margin-bottom:6px">
|
|
62
66
|
<span style="color:#64748b">fiber </span>
|
|
63
67
|
<a
|
|
64
|
-
href={`${
|
|
68
|
+
href={`${TowerStore.store.prefix}/fibers/${options.error.fiberId.replace("#", "")}`}
|
|
65
69
|
style="color:#9ca3af;text-decoration:none"
|
|
66
70
|
>
|
|
67
|
-
{error.fiberId}
|
|
71
|
+
{options.error.fiberId}
|
|
68
72
|
</a>
|
|
69
73
|
</div>
|
|
70
74
|
<pre style="color:#9ca3af;font-size:11px;padding:0;margin:0;white-space:pre-wrap;word-break:break-all">
|
|
71
|
-
{error.prettyPrint}
|
|
75
|
+
{options.error.prettyPrint}
|
|
72
76
|
</pre>
|
|
73
77
|
</div>
|
|
74
78
|
</details>
|