@absolutejs/absolute 0.19.0-beta.999 → 0.20.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/LICENSE +21 -13
  2. package/README.md +48 -2
  3. package/dist/angular/browser.js +82 -77
  4. package/dist/angular/browser.js.map +11 -11
  5. package/dist/angular/components/constants.js +43 -0
  6. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  7. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  8. package/dist/angular/hmrPreserveCore.ts +132 -134
  9. package/dist/angular/index.js +1719 -844
  10. package/dist/angular/index.js.map +34 -26
  11. package/dist/angular/server.js +1620 -768
  12. package/dist/angular/server.js.map +28 -20
  13. package/dist/build.js +4935 -2593
  14. package/dist/build.js.map +72 -57
  15. package/dist/cli/config/client.js +578 -0
  16. package/dist/cli/config/server.js +39587 -0
  17. package/dist/cli/htmx/htmx.min.js +1 -0
  18. package/dist/cli/index.js +16828 -3511
  19. package/dist/client/index.js +49 -46
  20. package/dist/client/index.js.map +12 -12
  21. package/dist/core/streamingSlotRegistrar.js +1 -19
  22. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  23. package/dist/core/streamingSlotRegistry.js +1 -19
  24. package/dist/core/streamingSlotRegistry.js.map +2 -2
  25. package/dist/dev/client/cssUtils.ts +98 -41
  26. package/dist/dev/client/domState.ts +2 -0
  27. package/dist/dev/client/errorOverlay.ts +14 -13
  28. package/dist/dev/client/handlers/angularHmrShim.ts +20 -20
  29. package/dist/dev/client/handlers/angularRemount.ts +74 -55
  30. package/dist/dev/client/handlers/angularRemountWiring.ts +1 -2
  31. package/dist/dev/client/handlers/html.ts +144 -41
  32. package/dist/dev/client/handlers/htmx.ts +43 -8
  33. package/dist/dev/client/handlers/react.ts +114 -32
  34. package/dist/dev/client/handlers/rebuild.ts +28 -8
  35. package/dist/dev/client/handlers/svelte.ts +92 -51
  36. package/dist/dev/client/handlers/vue.ts +36 -45
  37. package/dist/dev/client/hmrClient.ts +101 -26
  38. package/dist/dev/client/hmrTiming.ts +141 -0
  39. package/dist/dev/client/hmrToast.ts +22 -24
  40. package/dist/dev/client/reactRefreshSetup.ts +4 -0
  41. package/dist/dev/client/vendor/reactRefreshRuntime.d.ts +12 -0
  42. package/dist/dev/client/vendor/reactRefreshRuntime.js +313 -0
  43. package/dist/dev/serverBootstrap.js +45 -0
  44. package/dist/index.js +7153 -3224
  45. package/dist/index.js.map +118 -86
  46. package/dist/islands/browser.js +1 -19
  47. package/dist/islands/browser.js.map +3 -3
  48. package/dist/islands/index.js +709 -120
  49. package/dist/islands/index.js.map +18 -13
  50. package/dist/mobile/browser.js +428 -0
  51. package/dist/mobile/browser.js.map +12 -0
  52. package/dist/mobile/index.js +3058 -0
  53. package/dist/mobile/index.js.map +35 -0
  54. package/dist/react/browser.js +13 -62
  55. package/dist/react/browser.js.map +5 -6
  56. package/dist/react/components/browser/index.js +23 -13
  57. package/dist/react/components/index.js +30 -34
  58. package/dist/react/components/index.js.map +8 -7
  59. package/dist/react/hooks/index.js +1 -19
  60. package/dist/react/hooks/index.js.map +3 -3
  61. package/dist/react/index.js +1643 -679
  62. package/dist/react/index.js.map +29 -20
  63. package/dist/react/jsxDevRuntimeCompat.js +22 -20
  64. package/dist/react/jsxDevRuntimeCompat.js.map +5 -4
  65. package/dist/react/jsxRuntimeCompat.js +90 -0
  66. package/dist/react/jsxRuntimeCompat.js.map +10 -0
  67. package/dist/react/router/browser.js +77 -0
  68. package/dist/react/router/browser.js.map +10 -0
  69. package/dist/react/router/index.js +77 -0
  70. package/dist/react/router/index.js.map +10 -0
  71. package/dist/react/server.js +950 -565
  72. package/dist/react/server.js.map +16 -11
  73. package/dist/src/angular/components/constants.d.ts +21 -0
  74. package/dist/src/angular/hmrPreserveCore.d.ts +7 -20
  75. package/dist/src/angular/islands.d.ts +1 -1
  76. package/dist/src/angular/pageHandler.d.ts +2 -0
  77. package/dist/src/angular/ssrRender.d.ts +4 -1
  78. package/dist/src/build/bunStringRawUnicodePlugin.d.ts +12 -0
  79. package/dist/src/build/chainInlineSourcemaps.d.ts +1 -0
  80. package/dist/src/build/compileAngular.d.ts +5 -7
  81. package/dist/src/build/compileSvelte.d.ts +3 -0
  82. package/dist/src/build/compileVue.d.ts +3 -1
  83. package/dist/src/build/generateReactIndexes.d.ts +1 -0
  84. package/dist/src/build/islandRegistryTransform.d.ts +17 -0
  85. package/dist/src/build/maskLiterals.d.ts +28 -0
  86. package/dist/src/build/parseVueSpaRoutes.d.ts +5 -0
  87. package/dist/src/build/resolveBuildMode.d.ts +7 -0
  88. package/dist/src/build/serverExternals.d.ts +14 -0
  89. package/dist/src/build/spaSideManifests.d.ts +16 -0
  90. package/dist/src/build/tailwindCompiler.d.ts +0 -1
  91. package/dist/src/cli/add/dependencies.d.ts +13 -0
  92. package/dist/src/cli/config/absolute/AbsoluteConfigPanel.d.ts +6 -0
  93. package/dist/src/cli/config/absolute/editAbsoluteConfig.d.ts +5 -0
  94. package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +19 -0
  95. package/dist/src/cli/config/auth/AuthPanel.d.ts +6 -0
  96. package/dist/src/cli/config/auth/authCatalog.d.ts +10 -0
  97. package/dist/src/cli/config/auth/authScaffolds.d.ts +16 -0
  98. package/dist/src/cli/config/auth/editAuthConfig.d.ts +5 -0
  99. package/dist/src/cli/config/auth/resolveAuthSettings.d.ts +14 -0
  100. package/dist/src/cli/config/auth/resolveAuthState.d.ts +2 -0
  101. package/dist/src/cli/config/auth/scaffoldAuthFeature.d.ts +6 -0
  102. package/dist/src/cli/config/client.d.ts +1 -0
  103. package/dist/src/cli/config/configCert.d.ts +12 -0
  104. package/dist/src/cli/config/eslint/EslintPanel.d.ts +6 -0
  105. package/dist/src/cli/config/eslint/configAst.d.ts +18 -0
  106. package/dist/src/cli/config/eslint/editConfigRule.d.ts +6 -0
  107. package/dist/src/cli/config/eslint/eslintStyles.d.ts +1 -0
  108. package/dist/src/cli/config/eslint/resolveConfig.d.ts +3 -0
  109. package/dist/src/cli/config/eslint/serializeValue.d.ts +9 -0
  110. package/dist/src/cli/config/guards.d.ts +4 -0
  111. package/dist/src/cli/config/integrations/IntegrationsPanel.d.ts +6 -0
  112. package/dist/src/cli/config/packageJson/PackageJsonPanel.d.ts +6 -0
  113. package/dist/src/cli/config/packageJson/editPackageJson.d.ts +9 -0
  114. package/dist/src/cli/config/packageJson/resolvePackageJson.d.ts +8 -0
  115. package/dist/src/cli/config/page/ConfigShell.d.ts +6 -0
  116. package/dist/src/cli/config/page/FieldEditor.d.ts +9 -0
  117. package/dist/src/cli/config/page/PanelHost.d.ts +6 -0
  118. package/dist/src/cli/config/page/configStyles.d.ts +1 -0
  119. package/dist/src/cli/config/panels.d.ts +7 -0
  120. package/dist/src/cli/config/prettier/PrettierPanel.d.ts +6 -0
  121. package/dist/src/cli/config/prettier/editPrettier.d.ts +5 -0
  122. package/dist/src/cli/config/prettier/resolvePrettier.d.ts +11 -0
  123. package/dist/src/cli/config/schema/fromJsonSchema.d.ts +3 -0
  124. package/dist/src/cli/config/schema/fromType.d.ts +1 -0
  125. package/dist/src/cli/config/schema/serialize.d.ts +1 -0
  126. package/dist/src/cli/config/server.d.ts +527 -0
  127. package/dist/src/cli/config/tsconfig/TsconfigPanel.d.ts +6 -0
  128. package/dist/src/cli/config/tsconfig/editTsconfig.d.ts +5 -0
  129. package/dist/src/cli/config/tsconfig/resolveTsconfig.d.ts +8 -0
  130. package/dist/src/cli/config/tsconfig/tsconfigStyles.d.ts +1 -0
  131. package/dist/src/cli/discoverInstances.d.ts +5 -0
  132. package/dist/src/cli/elysiaOpenApiTypeboxPlugin.d.ts +8 -0
  133. package/dist/src/cli/generate/componentTemplates.d.ts +7 -0
  134. package/dist/src/cli/generate/context.d.ts +30 -0
  135. package/dist/src/cli/generate/cssStrategy.d.ts +20 -0
  136. package/dist/src/cli/generate/frameworkKey.d.ts +3 -0
  137. package/dist/src/cli/generate/frameworks.d.ts +40 -0
  138. package/dist/src/cli/generate/generateApi.d.ts +3 -0
  139. package/dist/src/cli/generate/generateComponent.d.ts +4 -0
  140. package/dist/src/cli/generate/generatePage.d.ts +4 -0
  141. package/dist/src/cli/generate/naming.d.ts +5 -0
  142. package/dist/src/cli/generate/navData.d.ts +10 -0
  143. package/dist/src/cli/generate/outcome.d.ts +17 -0
  144. package/dist/src/cli/generate/pageTemplates.d.ts +11 -0
  145. package/dist/src/cli/generate/routeWiring.d.ts +40 -0
  146. package/dist/src/cli/generate/staticNav.d.ts +5 -0
  147. package/dist/src/cli/heapDiff.d.ts +1 -0
  148. package/dist/src/cli/htmx/install.d.ts +6 -0
  149. package/dist/src/cli/inspectData.d.ts +12 -0
  150. package/dist/src/cli/inspectTui.d.ts +1 -0
  151. package/dist/src/cli/instanceStatus.d.ts +22 -0
  152. package/dist/src/cli/integrations/addPlugin.d.ts +8 -0
  153. package/dist/src/cli/integrations/catalog.d.ts +20 -0
  154. package/dist/src/cli/psTui.d.ts +1 -0
  155. package/dist/src/cli/scripts/add.d.ts +1 -0
  156. package/dist/src/cli/scripts/analyze.d.ts +1 -0
  157. package/dist/src/cli/scripts/api.d.ts +1 -0
  158. package/dist/src/cli/scripts/build.d.ts +1 -1
  159. package/dist/src/cli/scripts/db.d.ts +20 -0
  160. package/dist/src/cli/scripts/dev.d.ts +5 -1
  161. package/dist/src/cli/scripts/doctor.d.ts +1 -0
  162. package/dist/src/cli/scripts/env.d.ts +7 -0
  163. package/dist/src/cli/scripts/eslint.d.ts +37 -2
  164. package/dist/src/cli/scripts/eslintChunked.d.ts +37 -0
  165. package/dist/src/cli/scripts/generate.d.ts +1 -0
  166. package/dist/src/cli/scripts/htmx.d.ts +1 -0
  167. package/dist/src/cli/scripts/inspect.d.ts +1 -0
  168. package/dist/src/cli/scripts/islands.d.ts +1 -0
  169. package/dist/src/cli/scripts/lintProof.d.ts +42 -0
  170. package/dist/src/cli/scripts/logs.d.ts +1 -0
  171. package/dist/src/cli/scripts/ls.d.ts +1 -0
  172. package/dist/src/cli/scripts/mem.d.ts +1 -0
  173. package/dist/src/cli/scripts/mobile.d.ts +1 -0
  174. package/dist/src/cli/scripts/prettier.d.ts +2 -0
  175. package/dist/src/cli/scripts/ps.d.ts +1 -0
  176. package/dist/src/cli/scripts/remove.d.ts +1 -0
  177. package/dist/src/cli/scripts/routes.d.ts +1 -0
  178. package/dist/src/cli/scripts/start.d.ts +6 -1
  179. package/dist/src/cli/scripts/tunnelRelay.d.ts +9 -0
  180. package/dist/src/cli/scripts/workspace.d.ts +3 -1
  181. package/dist/src/cli/serverBundleExternals.d.ts +2 -0
  182. package/dist/src/cli/tuiPrimitives.d.ts +14 -0
  183. package/dist/src/cli/typeGraphCoherence.d.ts +32 -0
  184. package/dist/src/cli/utils.d.ts +3 -1
  185. package/dist/src/cli/workspaceTui.d.ts +2 -1
  186. package/dist/src/client/hydrators/react.d.ts +1 -1
  187. package/dist/src/client/hydrators/svelte.d.ts +1 -1
  188. package/dist/src/client/hydrators/vue.d.ts +1 -1
  189. package/dist/src/client/islandStore.d.ts +3 -3
  190. package/dist/src/client/preserveIslandMarkup.d.ts +4 -1
  191. package/dist/src/constants.d.ts +21 -0
  192. package/dist/src/core/angularServerModule.d.ts +1 -0
  193. package/dist/src/core/build.d.ts +11 -3
  194. package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -5
  195. package/dist/src/core/index.d.ts +1 -0
  196. package/dist/src/core/pageResponseCache.d.ts +23 -0
  197. package/dist/src/core/prepare.d.ts +192 -154
  198. package/dist/src/core/requestContext.d.ts +18 -0
  199. package/dist/src/dev/angular/fastHmrCompiler.d.ts +5 -3
  200. package/dist/src/dev/angular/hmrCompiler.d.ts +1 -1
  201. package/dist/src/dev/angular/resolveOwningComponents.d.ts +1 -1
  202. package/dist/src/dev/clientManager.d.ts +10 -1
  203. package/dist/src/dev/configResolver.d.ts +2 -0
  204. package/dist/src/dev/moduleMapper.d.ts +1 -1
  205. package/dist/src/dev/moduleServer.d.ts +2 -1
  206. package/dist/src/dev/pathUtils.d.ts +1 -1
  207. package/dist/src/dev/reactComponentClassifier.d.ts +1 -1
  208. package/dist/src/dev/rebuildTrigger.d.ts +4 -0
  209. package/dist/src/dev/requestInspector.d.ts +31 -0
  210. package/dist/src/dev/serverBootstrap.d.ts +1 -0
  211. package/dist/src/dev/serverEntryWatcher.d.ts +3 -3
  212. package/dist/src/dev/tunnel/client.d.ts +20 -0
  213. package/dist/src/dev/tunnel/protocol.d.ts +85 -0
  214. package/dist/src/dev/tunnel/relay.d.ts +28 -0
  215. package/dist/src/dev/webSocket.d.ts +1 -1
  216. package/dist/src/mobile/androidConformance.d.ts +42 -0
  217. package/dist/src/mobile/androidEmulatorController.d.ts +99 -0
  218. package/dist/src/mobile/androidNativeWatcher.d.ts +19 -0
  219. package/dist/src/mobile/androidRelease.d.ts +47 -0
  220. package/dist/src/mobile/androidWebView.d.ts +46 -0
  221. package/dist/src/mobile/artifactStore.d.ts +47 -0
  222. package/dist/src/mobile/associationFiles.d.ts +49 -0
  223. package/dist/src/mobile/browser.d.ts +2 -0
  224. package/dist/src/mobile/buildMetadata.d.ts +10 -0
  225. package/dist/src/mobile/buildPipeline.d.ts +8 -0
  226. package/dist/src/mobile/buildRelease.d.ts +24 -0
  227. package/dist/src/mobile/capacitorBundle.d.ts +28 -0
  228. package/dist/src/mobile/capacitorProject.d.ts +9 -0
  229. package/dist/src/mobile/client.d.ts +35 -0
  230. package/dist/src/mobile/compatibilityDispatcher.d.ts +26 -0
  231. package/dist/src/mobile/config.d.ts +16 -0
  232. package/dist/src/mobile/emulatorDoctor.d.ts +25 -0
  233. package/dist/src/mobile/emulatorInstaller.d.ts +41 -0
  234. package/dist/src/mobile/index.d.ts +19 -0
  235. package/dist/src/mobile/materializedBundle.d.ts +36 -0
  236. package/dist/src/mobile/nativeDeepLinks.d.ts +5 -0
  237. package/dist/src/mobile/pageProtocol.d.ts +89 -0
  238. package/dist/src/mobile/producerContext.d.ts +4 -0
  239. package/dist/src/mobile/producerContextState.d.ts +10 -0
  240. package/dist/src/mobile/releaseArtifact.d.ts +75 -0
  241. package/dist/src/mobile/releaseDoctor.d.ts +13 -0
  242. package/dist/src/mobile/routeMatcher.d.ts +3 -0
  243. package/dist/src/mobile/routeMetadataTransform.d.ts +13 -0
  244. package/dist/src/mobile/shellBootstrap.d.ts +1 -0
  245. package/dist/src/mobile/transport.d.ts +31 -0
  246. package/dist/src/plugins/devtoolsJson.d.ts +6 -47
  247. package/dist/src/plugins/hmr.d.ts +22 -96
  248. package/dist/src/plugins/imageOptimizer.d.ts +150 -62
  249. package/dist/src/plugins/networking.d.ts +2 -2
  250. package/dist/src/plugins/openApiPlugin.d.ts +4 -0
  251. package/dist/src/plugins/telemetryPlugin.d.ts +36 -0
  252. package/dist/src/react/browser.d.ts +0 -2
  253. package/dist/src/react/hooks/useMediaQuery.d.ts +1 -1
  254. package/dist/src/react/index.d.ts +0 -2
  255. package/dist/src/react/jsxDevRuntimeCompat.d.ts +1 -1
  256. package/dist/src/react/jsxRuntimeCompat.d.ts +7 -0
  257. package/dist/src/react/pageHandler.d.ts +8 -0
  258. package/dist/src/react/router/UniversalRouter.d.ts +43 -0
  259. package/dist/src/react/router/browser.d.ts +2 -0
  260. package/dist/src/react/router/index.d.ts +2 -0
  261. package/dist/src/svelte/pageHandler.d.ts +5 -0
  262. package/dist/src/svelte/router/hashMode.d.ts +1 -6
  263. package/dist/src/svelte/router/matchPath.d.ts +4 -24
  264. package/dist/src/svelte/router/page.svelte.d.ts +1 -10
  265. package/dist/src/svelte/router/prefetchCache.d.ts +2 -6
  266. package/dist/src/utils/cleanup.d.ts +1 -0
  267. package/dist/src/utils/defineConvention.d.ts +2 -2
  268. package/dist/src/utils/defineEnv.d.ts +4 -4
  269. package/dist/src/utils/formatBytes.d.ts +2 -0
  270. package/dist/src/utils/generatedDir.d.ts +1 -1
  271. package/dist/src/utils/iconVersion.d.ts +5 -0
  272. package/dist/src/utils/imageProcessing.d.ts +1 -1
  273. package/dist/src/utils/index.d.ts +2 -0
  274. package/dist/src/utils/inlinePageCss.d.ts +9 -0
  275. package/dist/src/utils/instanceRegistry.d.ts +13 -0
  276. package/dist/src/utils/isTestSourcePath.d.ts +1 -0
  277. package/dist/src/utils/jsonLd.d.ts +1 -1
  278. package/dist/src/utils/loadConfig.d.ts +11 -3
  279. package/dist/src/utils/logger.d.ts +2 -0
  280. package/dist/src/utils/portScan.d.ts +22 -0
  281. package/dist/src/utils/projectRoot.d.ts +17 -0
  282. package/dist/src/utils/resolveConvention.d.ts +1 -1
  283. package/dist/src/utils/resolveDevPort.d.ts +4 -1
  284. package/dist/src/utils/runtimeMode.d.ts +1 -1
  285. package/dist/src/utils/spaRouteCss.d.ts +10 -0
  286. package/dist/src/utils/spaRouteManifest.d.ts +8 -0
  287. package/dist/src/utils/stripStringsAndComments.d.ts +18 -0
  288. package/dist/src/utils/userAgentFunctions.d.ts +1 -1
  289. package/dist/src/utils/vueCompiler.d.ts +1 -0
  290. package/dist/src/vue/components/Image.d.ts +2 -2
  291. package/dist/src/vue/defineVuePage.d.ts +1 -11
  292. package/dist/src/vue/index.d.ts +3 -0
  293. package/dist/src/vue/pageHandler.d.ts +5 -0
  294. package/dist/src/vue/resolveGeneratedVueModulePath.d.ts +1 -0
  295. package/dist/src/vue/teleports.d.ts +2 -0
  296. package/dist/src/vue/useResource.d.ts +65 -0
  297. package/dist/svelte/browser.js +1 -19
  298. package/dist/svelte/browser.js.map +3 -3
  299. package/dist/svelte/components/Head.svelte +7 -1
  300. package/dist/svelte/index.js +1281 -543
  301. package/dist/svelte/index.js.map +27 -19
  302. package/dist/svelte/router/Link.svelte.d.ts +3 -3
  303. package/dist/svelte/router/Route.svelte.d.ts +5 -5
  304. package/dist/svelte/router/Router.svelte.d.ts +3 -3
  305. package/dist/svelte/router/hashMode.ts +6 -12
  306. package/dist/svelte/router/matchPath.ts +44 -61
  307. package/dist/svelte/router/page.d.ts +1 -10
  308. package/dist/svelte/router/page.js +6 -6
  309. package/dist/svelte/router/prefetchCache.ts +21 -23
  310. package/dist/svelte/router/viewTransitions.ts +22 -12
  311. package/dist/svelte/server.js +697 -565
  312. package/dist/svelte/server.js.map +14 -11
  313. package/dist/types/absoluteConfig.d.ts +22 -0
  314. package/dist/types/angular.d.ts +4 -1
  315. package/dist/types/authPanel.d.ts +62 -0
  316. package/dist/types/build.d.ts +116 -0
  317. package/dist/types/cli.d.ts +57 -0
  318. package/dist/types/config.d.ts +52 -0
  319. package/dist/types/eslintConfig.d.ts +68 -0
  320. package/dist/types/globals.d.ts +31 -10
  321. package/dist/types/image.d.ts +2 -0
  322. package/dist/types/index.d.ts +1 -0
  323. package/dist/types/integrationsPanel.d.ts +29 -0
  324. package/dist/types/messages.d.ts +12 -0
  325. package/dist/types/packageJson.d.ts +74 -0
  326. package/dist/types/packageJsonPanel.d.ts +29 -0
  327. package/dist/types/prettier.d.ts +26 -0
  328. package/dist/types/tsconfig.d.ts +31 -0
  329. package/dist/types/vue.d.ts +13 -15
  330. package/dist/vue/browser.js +14 -36
  331. package/dist/vue/browser.js.map +5 -5
  332. package/dist/vue/components/Image.js +3 -20
  333. package/dist/vue/components/Image.js.map +3 -3
  334. package/dist/vue/components/index.js +3 -20
  335. package/dist/vue/components/index.js.map +3 -3
  336. package/dist/vue/index.js +1573 -620
  337. package/dist/vue/index.js.map +34 -22
  338. package/dist/vue/server.js +800 -520
  339. package/dist/vue/server.js.map +17 -11
  340. package/package.json +145 -68
  341. package/dist/src/react/UniversalRouter.d.ts +0 -12
@@ -4,6 +4,12 @@ export const ANSI_ESCAPE_LENGTH = 3;
4
4
  export const ASCII_SPACE = 32;
5
5
  export const BASE_36_RADIX = 36;
6
6
  export const BUN_BUILD_WARNING_SUPPRESSION = 'wildcard sideEffects are not supported yet';
7
+ /* Tailwind v4 at-rules that Bun's native CSS parser doesn't recognize.
8
+ When a user imports their Tailwind entry CSS from a TS/TSX file, Bun's
9
+ bundler walks it and warns about each unknown at-rule even though the
10
+ actual Tailwind output is produced via the separate tailwindcss compile()
11
+ pipeline (see compileTailwind.ts). The warnings are noise — suppress them. */
12
+ export const TAILWIND_BUN_CSS_WARNING_PATTERN = /invalid @ rule encountered: '@(theme|tailwind|source|utility|variant|custom-variant|apply|reference|plugin|config)'/;
7
13
  export const BODY_SLICE_LENGTH = 2000;
8
14
  export const BYTES_PER_KILOBYTE = 1024;
9
15
  export const CLI_ARGS_OFFSET = 3;
@@ -20,6 +26,10 @@ export const FILE_PROTOCOL_PREFIX_LENGTH = 7;
20
26
  export const FOCUS_ID_PREFIX_LENGTH = 3;
21
27
  export const FOCUS_IDX_PREFIX_LENGTH = 4;
22
28
  export const FOCUS_NAME_PREFIX_LENGTH = 5;
29
+ export const ESLINT_STUDIO_DEFAULT_HOST = 'eslint.absolute.localhost';
30
+ export const ESLINT_STUDIO_DEFAULT_PORT = 4099;
31
+ export const CONFIG_DEFAULT_HOST = 'config.absolute.localhost';
32
+ export const CONFIG_DEFAULT_PORT = 4099;
23
33
  export const HMR_UPDATE_TIMEOUT_MS = 2000;
24
34
  export const HOOK_SIGNATURE_LENGTH = 12;
25
35
  export const EXCLUDE_LAST_OFFSET = -1;
@@ -34,6 +44,7 @@ export const IMAGE_DEFAULT_DEVICE_SIZES = [
34
44
  export const IMAGE_DEFAULT_IMAGE_SIZES = [16, 32, 48, 64, 96, 128, 256, 384];
35
45
  export const IMAGE_DEFAULT_QUALITY = 75;
36
46
  export const IMAGE_GLOB_SUFFIX_LENGTH = 2;
47
+ export const INSTANCE_PROBE_TIMEOUT_MS = 250;
37
48
  export const MAX_ERROR_LENGTH = 200;
38
49
  export const MAX_RECONNECT_ATTEMPTS = 60;
39
50
  export const MILLISECONDS_IN_A_SECOND = 1000;
@@ -46,6 +57,18 @@ export const MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND *
46
57
  HOURS_IN_DAY;
47
58
  export const OVERLAY_FADE_DURATION_MS = 150;
48
59
  export const PING_INTERVAL_MS = 30_000;
60
+ export const LIST_LOG_TAIL_MAX_BYTES = 65_536;
61
+ export const LIST_TUI_COLUMN_GAP = 2;
62
+ export const LIST_TUI_DEFAULT_HEIGHT = 28;
63
+ export const LIST_TUI_DEFAULT_WIDTH = 100;
64
+ export const LIST_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS = 30;
65
+ export const LIST_TUI_FOOTER_LINE_COUNT = 2;
66
+ export const LIST_TUI_MARKER_WIDTH = 2;
67
+ export const LIST_TUI_MIN_LOG_HEIGHT = 3;
68
+ export const LIST_TUI_MIN_URL_WIDTH = 16;
69
+ export const LIST_TUI_RENDER_DEBOUNCE_MS = 16;
70
+ export const LIST_TUI_STATUS_MESSAGE_TIMEOUT_MS = 4000;
71
+ export const LIST_WATCH_REFRESH_MS = 1000;
49
72
  export const RAF_BATCH_COUNT = 3;
50
73
  export const RANDOM_ID_END_INDEX = 11;
51
74
  export const REBUILD_BATCH_DELAY_MS = 10;
@@ -61,6 +84,26 @@ export const TIME_PRECISION = 2;
61
84
  export const TWO_THIRDS = 2 / 3;
62
85
  export const UNFOUND_INDEX = -1;
63
86
  export const WEBSOCKET_NORMAL_CLOSURE = 1000;
87
+ // Default Bun WebSocket idleTimeout (seconds) applied to every absolute server.
88
+ // Long-lived sockets (voice intake, referee, realtime sync) sit idle during
89
+ // greeting playback or while a user listens silently — no client→server frames.
90
+ // Without an explicit value the WS idleTimeout falls back to Elysia's small
91
+ // top-level serve default (~30s, closing at ~60s), which kills these sessions
92
+ // mid-call with INACTIVE_CLIENT. 240s outlasts any greeting or think-pause and
93
+ // gives a briefly-suspended tab time to wake and reconnect. Paired with Bun's
94
+ // `sendPings` (protocol-level keepalive the browser answers without JS, so a
95
+ // throttled background tab still responds). Bun's hard ceiling is 960s.
96
+ export const DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS = 240;
97
+ // HTTP idleTimeout for Bun.serve. Bun's DEFAULT is a hostile 10s for a
98
+ // framework meant to host streaming/AI workloads: a long-lived SSE response
99
+ // (or any long poll) that stays silent past 10s — e.g. an agentic AI turn
100
+ // waiting on the model's first token after a large tool result inflates the
101
+ // prompt — gets its socket reaped with no error, and the client hangs. 240s
102
+ // mirrors the WS default and outlasts realistic model think-pauses; Bun's
103
+ // hard ceiling for HTTP idleTimeout is 255s. Override per-app with the
104
+ // ABSOLUTE_IDLE_TIMEOUT env var (seconds; 0 disables the timeout entirely).
105
+ export const DEFAULT_HTTP_IDLE_TIMEOUT_SECONDS = 240;
106
+ export const MAX_HTTP_IDLE_TIMEOUT_SECONDS = 255;
64
107
  export const WORKSPACE_COMMAND_ARGS_OFFSET = 3;
65
108
  export const WORKSPACE_FAILURE_LOG_PRINT_LIMIT = 30;
66
109
  export const WORKSPACE_FAILURE_RECENT_LOG_LIMIT = 60;
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-cCwuNc/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-G3V2Ai/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-cCwuNc/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-G3V2Ai/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-cCwuNc/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-G3V2Ai/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -16,136 +16,24 @@ export type InstanceKeyMap = WeakMap<object, string>;
16
16
  export type RebootFlag = { value: boolean };
17
17
  export type RebootStats = { captured: number; restoredKeys: Set<string> };
18
18
 
19
- type PreserveScope = typeof globalThis & {
20
- __ABS_HMR_INSTANCE_STATE__?: StateCache;
21
- __ABS_HMR_TRACKED_INSTANCES__?: InstanceTracker;
22
- __ABS_HMR_INSTANCE_KEYS__?: InstanceKeyMap;
23
- __ABS_HMR_REBOOT_IN_PROGRESS__?: RebootFlag;
24
- __ABS_HMR_REBOOT_STATS__?: RebootStats;
25
- };
26
-
27
- export const isHmrPreserveDev = (): boolean => {
28
- // SSR safety: globalThis on the server is process-wide and shared
29
- // across requests, so writing to the preservation cache during SSR
30
- // would leak request state between users. Gate strictly on the
31
- // presence of a browser `window` *and* a dev signal — neither is
32
- // true in a production build, so this is a hard no-op there too.
33
- if (typeof window === 'undefined') return false;
34
- const scope = globalThis as { __DEV__?: unknown; ngDevMode?: unknown };
35
-
36
- return Boolean(scope.__DEV__) || Boolean(scope.ngDevMode);
37
- };
38
-
39
- export const getCache = (): StateCache => {
40
- const scope = globalThis as PreserveScope;
41
-
42
- return (scope.__ABS_HMR_INSTANCE_STATE__ ??= new Map());
43
- };
44
-
45
- export const getTracker = (): InstanceTracker => {
46
- const scope = globalThis as PreserveScope;
47
-
48
- return (scope.__ABS_HMR_TRACKED_INSTANCES__ ??= new Set());
49
- };
50
-
51
- export const getKeyMap = (): InstanceKeyMap => {
52
- const scope = globalThis as PreserveScope;
53
-
54
- return (scope.__ABS_HMR_INSTANCE_KEYS__ ??= new WeakMap());
55
- };
56
-
57
- export const getRebootFlag = (): RebootFlag => {
58
- const scope = globalThis as PreserveScope;
59
-
60
- return (scope.__ABS_HMR_REBOOT_IN_PROGRESS__ ??= { value: false });
61
- };
62
-
63
- export const getRebootStats = (): RebootStats => {
64
- const scope = globalThis as PreserveScope;
65
-
66
- return (scope.__ABS_HMR_REBOOT_STATS__ ??= {
67
- captured: 0,
68
- restoredKeys: new Set()
69
- });
70
- };
71
-
72
- /* Filter for values that are safe to preserve across an HMR full
73
- re-bootstrap. Snapshots the OLD app's instance state into a cache
74
- and copies it back onto the NEW instance — but holding references
75
- to the OLD app's Angular-injected services (HttpClient,
76
- ApplicationRef, subscriptions tied to the destroyed injector, etc.)
77
- and restoring them onto the new instance would corrupt the new app:
78
- the new `HttpClient` from the new injector would be replaced by a
79
- stale ref pointing at a destroyed graph. So: primitives, plain `{}`
80
- objects, and arrays of those — covers the common cases (auth tokens,
81
- cached query results, search queries, pagination state) without
82
- leaking Angular-injected dependencies, RxJS subjects, DOM nodes, or
83
- other live references. */
84
- export const isPreservable = (value: unknown, depth = 0): boolean => {
85
- if (depth > 8) return false;
86
- if (value === null || value === undefined) return true;
87
- const t = typeof value;
88
- if (t === 'string' || t === 'number' || t === 'boolean' || t === 'bigint')
89
- return true;
90
- if (t === 'function' || t === 'symbol') return false;
91
- if (Array.isArray(value)) {
92
- return value.every((item) => isPreservable(item, depth + 1));
93
- }
94
- if (t === 'object') {
95
- const proto = Object.getPrototypeOf(value);
96
- // Only POJOs — class instances (HttpClient, BehaviorSubject, Date,
97
- // Map, etc.) carry runtime identity that the new instance must
98
- // get from its own injector / construction.
99
- if (proto !== Object.prototype && proto !== null) return false;
100
-
101
- return Object.values(value as object).every((v) =>
102
- isPreservable(v, depth + 1)
103
- );
104
- }
105
-
106
- return false;
107
- };
108
-
109
- export const buildCacheKey = (
110
- instance: object,
111
- key?: unknown
112
- ): string | null => {
19
+ const isRebootFlag = (value: unknown): value is RebootFlag =>
20
+ typeof value === 'object' &&
21
+ value !== null &&
22
+ typeof Reflect.get(value, 'value') === 'boolean';
23
+ const isRebootStats = (value: unknown): value is RebootStats =>
24
+ typeof value === 'object' &&
25
+ value !== null &&
26
+ typeof Reflect.get(value, 'captured') === 'number' &&
27
+ Reflect.get(value, 'restoredKeys') instanceof Set;
28
+
29
+ export const buildCacheKey = (instance: object, key?: unknown) => {
113
30
  const className = instance.constructor?.name;
114
31
  if (!className || className === 'Object') return null;
115
32
  const suffix = key === undefined || key === null ? '' : String(key);
116
33
 
117
34
  return `${className}:${suffix}`;
118
35
  };
119
-
120
- /** Copy preservable own properties from the cached snapshot onto the
121
- * instance. Records the restoration in stats so the end-of-reboot
122
- * summary can list which classes had state restored. Returns whether
123
- * anything was actually written. */
124
- export const restoreFromCacheCore = (
125
- instance: object,
126
- key: string
127
- ): boolean => {
128
- const cache = getCache();
129
- const stored = cache.get(key);
130
- if (!stored) return false;
131
-
132
- for (const [prop, value] of Object.entries(stored)) {
133
- try {
134
- (instance as Record<string, unknown>)[prop] = value;
135
- } catch {
136
- /* property is non-writable / has a setter that threw — skip */
137
- }
138
- }
139
-
140
- getRebootStats().restoredKeys.add(key);
141
-
142
- return true;
143
- };
144
-
145
- /** Snapshot every tracked instance's preservable own properties into
146
- * the shared cache and flip the reboot-in-progress flag on. Called by
147
- * the dev-client HMR handler right before `destroyAngularApp()`. */
148
- export const captureTrackedInstanceStates = (): void => {
36
+ export const captureTrackedInstanceStates = () => {
149
37
  if (!isHmrPreserveDev()) return;
150
38
 
151
39
  const cache = getCache();
@@ -180,7 +68,7 @@ export const captureTrackedInstanceStates = (): void => {
180
68
 
181
69
  const props: Record<string, unknown> = {};
182
70
  for (const prop of Object.keys(instance)) {
183
- const value = (instance as Record<string, unknown>)[prop];
71
+ const value = Reflect.get(instance, prop);
184
72
  if (isPreservable(value)) props[prop] = value;
185
73
  }
186
74
  cache.set(fullKey, props);
@@ -198,21 +86,14 @@ export const captureTrackedInstanceStates = (): void => {
198
86
 
199
87
  getRebootFlag().value = true;
200
88
  };
201
-
202
- /** Clear the active-reboot flag and emit a one-line summary so
203
- * developers can see at-a-glance which classes had state preserved.
204
- * Called by the dev-client HMR handler after the new app has reported
205
- * stable. After this, `preserveAcrossHmr` calls track but don't
206
- * restore — so navigating to a route after HMR doesn't resurrect
207
- * stale state from the last reboot. */
208
- export const endHmrReboot = (): void => {
89
+ export const endHmrReboot = () => {
209
90
  if (!isHmrPreserveDev()) return;
210
91
  getRebootFlag().value = false;
211
92
 
212
93
  const stats = getRebootStats();
213
94
  if (stats.captured > 0) {
214
95
  const restored = Array.from(stats.restoredKeys)
215
- .map((k) => k.replace(/:$/, ''))
96
+ .map((cacheKey) => cacheKey.replace(/:$/, ''))
216
97
  .sort();
217
98
  console.info(
218
99
  `[HMR] Full re-bootstrap: restored state for ${restored.length}/${stats.captured} tracked instance(s)${
@@ -221,3 +102,120 @@ export const endHmrReboot = (): void => {
221
102
  );
222
103
  }
223
104
  };
105
+ export const getCache = () => {
106
+ const current: unknown = Reflect.get(
107
+ globalThis,
108
+ '__ABS_HMR_INSTANCE_STATE__'
109
+ );
110
+ if (current instanceof Map) return current;
111
+ const cache: StateCache = new Map();
112
+ Reflect.set(globalThis, '__ABS_HMR_INSTANCE_STATE__', cache);
113
+
114
+ return cache;
115
+ };
116
+ export const getKeyMap = () => {
117
+ const current: unknown = Reflect.get(
118
+ globalThis,
119
+ '__ABS_HMR_INSTANCE_KEYS__'
120
+ );
121
+ if (current instanceof WeakMap) return current;
122
+ const keyMap: InstanceKeyMap = new WeakMap();
123
+ Reflect.set(globalThis, '__ABS_HMR_INSTANCE_KEYS__', keyMap);
124
+
125
+ return keyMap;
126
+ };
127
+ export const getRebootFlag = () => {
128
+ const current: unknown = Reflect.get(
129
+ globalThis,
130
+ '__ABS_HMR_REBOOT_IN_PROGRESS__'
131
+ );
132
+ if (isRebootFlag(current)) return current;
133
+ const flag: RebootFlag = { value: false };
134
+ Reflect.set(globalThis, '__ABS_HMR_REBOOT_IN_PROGRESS__', flag);
135
+
136
+ return flag;
137
+ };
138
+ export const getRebootStats = () => {
139
+ const current: unknown = Reflect.get(
140
+ globalThis,
141
+ '__ABS_HMR_REBOOT_STATS__'
142
+ );
143
+ if (isRebootStats(current)) return current;
144
+ const stats: RebootStats = {
145
+ captured: 0,
146
+ restoredKeys: new Set()
147
+ };
148
+ Reflect.set(globalThis, '__ABS_HMR_REBOOT_STATS__', stats);
149
+
150
+ return stats;
151
+ };
152
+ export const getTracker = () => {
153
+ const current: unknown = Reflect.get(
154
+ globalThis,
155
+ '__ABS_HMR_TRACKED_INSTANCES__'
156
+ );
157
+ if (current instanceof Set) return current;
158
+ const tracker: InstanceTracker = new Set();
159
+ Reflect.set(globalThis, '__ABS_HMR_TRACKED_INSTANCES__', tracker);
160
+
161
+ return tracker;
162
+ };
163
+ export const isHmrPreserveDev = () => {
164
+ // SSR safety: globalThis on the server is process-wide and shared
165
+ // across requests, so writing to the preservation cache during SSR
166
+ // would leak request state between users. Gate strictly on the
167
+ // presence of a browser `window` *and* a dev signal — neither is
168
+ // true in a production build, so this is a hard no-op there too.
169
+ if (typeof window === 'undefined') return false;
170
+
171
+ return (
172
+ Boolean(Reflect.get(globalThis, '__DEV__')) ||
173
+ Boolean(Reflect.get(globalThis, 'ngDevMode'))
174
+ );
175
+ };
176
+ export const isPreservable = (value: unknown, depth = 0): boolean => {
177
+ if (depth > 8) return false;
178
+ if (value === null || value === undefined) return true;
179
+ const valueType = typeof value;
180
+ if (
181
+ valueType === 'string' ||
182
+ valueType === 'number' ||
183
+ valueType === 'boolean' ||
184
+ valueType === 'bigint'
185
+ )
186
+ return true;
187
+ if (valueType === 'function' || valueType === 'symbol') return false;
188
+ if (Array.isArray(value)) {
189
+ return value.every((item) => isPreservable(item, depth + 1));
190
+ }
191
+ if (valueType === 'object') {
192
+ const proto = Object.getPrototypeOf(value);
193
+ // Only POJOs — class instances (HttpClient, BehaviorSubject, Date,
194
+ // Map, etc.) carry runtime identity that the new instance must
195
+ // get from its own injector / construction.
196
+ if (proto !== Object.prototype && proto !== null) return false;
197
+
198
+ return Object.values(value).every((nestedValue) =>
199
+ isPreservable(nestedValue, depth + 1)
200
+ );
201
+ }
202
+
203
+ return false;
204
+ };
205
+ export const restoreFromCacheCore = (instance: object, key: string) => {
206
+ const cache = getCache();
207
+ const stored = cache.get(key);
208
+ if (!stored) return false;
209
+
210
+ for (const [prop, value] of Object.entries(stored)) {
211
+ try {
212
+ Reflect.set(instance, prop, value);
213
+ } catch {
214
+ /* property is non-writable / has a setter that threw — skip */
215
+ }
216
+ }
217
+
218
+ getRebootStats().restoredKeys.add(key);
219
+
220
+ return true;
221
+ };