@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
@@ -0,0 +1,7 @@
1
+ import type { ConfigPanelId, ConfigPanelMeta } from '../../../types/config';
2
+ /** The panels rendered in the sidebar, in display order. Adding a tool here +
3
+ * a route in `server.ts` + a branch in `ConfigShell` is all it takes to grow
4
+ * the unified config tool. */
5
+ export declare const CONFIG_PANELS: ConfigPanelMeta[];
6
+ export declare const DEFAULT_PANEL: ConfigPanelId;
7
+ export declare const isConfigPanelId: (value: unknown) => value is ConfigPanelId;
@@ -0,0 +1,6 @@
1
+ import type { PrettierState } from '../../../../types/prettier';
2
+ type PrettierPanelProps = {
3
+ state: PrettierState;
4
+ };
5
+ export declare const PrettierPanel: ({ state: initial }: PrettierPanelProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { PrettierEditRequest, PrettierFormat } from '../../../../types/prettier';
2
+ export declare const applyPrettierEdit: (cwd: string, format: PrettierFormat, configPath: string | null, request: PrettierEditRequest) => {
3
+ message: string;
4
+ ok: boolean;
5
+ };
@@ -0,0 +1,11 @@
1
+ import type { PrettierFormat } from '../../../../types/prettier';
2
+ import type { SupportOption } from 'prettier';
3
+ export declare const resolvePrettierState: (cwd: string) => Promise<{
4
+ available: boolean;
5
+ categories: string[];
6
+ configPath: string | null;
7
+ current: Record<string, unknown>;
8
+ editable: boolean;
9
+ format: PrettierFormat;
10
+ options: SupportOption[];
11
+ }>;
@@ -0,0 +1,3 @@
1
+ import type { FieldSchema } from '../../../../types/config';
2
+ export declare const eslintOptionsSchema: (metaSchema: unknown) => FieldSchema;
3
+ export declare const fromJsonSchema: (schema: unknown, depth?: number) => FieldSchema;
@@ -0,0 +1 @@
1
+ export declare const introspectType: (cwd: string, typeName: string, exclude?: Set<string>, specifier?: string) => any[];
@@ -0,0 +1 @@
1
+ export declare const serializeValue: (value: unknown, level?: number, indent?: string) => string;
@@ -0,0 +1,527 @@
1
+ import type { RuleEditResult } from '../../../types/eslintConfig';
2
+ import type { TsEditResult } from '../../../types/tsconfig';
3
+ import type { PrettierEditResult } from '../../../types/prettier';
4
+ import type { AbsoluteConfigEditResult } from '../../../types/absoluteConfig';
5
+ import type { AuthConfigEditResult, AuthScaffoldResult } from '../../../types/authPanel';
6
+ import type { IntegrationAddResult } from '../../../types/integrationsPanel';
7
+ import type { PackageJsonEditResult } from '../../../types/packageJsonPanel';
8
+ export declare const launchConfig: (args: string[], cwd?: string) => Promise<import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
9
+ typebox: {};
10
+ error: [];
11
+ }, import("elysia/types").DefaultMetadata, {
12
+ get: {
13
+ body: unknown;
14
+ params: {};
15
+ query: unknown;
16
+ headers: unknown;
17
+ response: {
18
+ 200: Response;
19
+ };
20
+ error: never;
21
+ };
22
+ } & {
23
+ eslint: {
24
+ get: {
25
+ body: unknown;
26
+ params: {};
27
+ query: unknown;
28
+ headers: unknown;
29
+ response: {
30
+ 200: Response;
31
+ };
32
+ error: never;
33
+ };
34
+ };
35
+ } & {
36
+ tsconfig: {
37
+ get: {
38
+ body: unknown;
39
+ params: {};
40
+ query: unknown;
41
+ headers: unknown;
42
+ response: {
43
+ 200: Response;
44
+ };
45
+ error: never;
46
+ };
47
+ };
48
+ } & {
49
+ prettier: {
50
+ get: {
51
+ body: unknown;
52
+ params: {};
53
+ query: unknown;
54
+ headers: unknown;
55
+ response: {
56
+ 200: Response;
57
+ };
58
+ error: never;
59
+ };
60
+ };
61
+ } & {
62
+ absolute: {
63
+ get: {
64
+ body: unknown;
65
+ params: {};
66
+ query: unknown;
67
+ headers: unknown;
68
+ response: {
69
+ 200: Response;
70
+ };
71
+ error: never;
72
+ };
73
+ };
74
+ } & {
75
+ integrations: {
76
+ get: {
77
+ body: unknown;
78
+ params: {};
79
+ query: unknown;
80
+ headers: unknown;
81
+ response: {
82
+ 200: Response;
83
+ };
84
+ error: never;
85
+ };
86
+ };
87
+ } & {
88
+ auth: {
89
+ get: {
90
+ body: unknown;
91
+ params: {};
92
+ query: unknown;
93
+ headers: unknown;
94
+ response: {
95
+ 200: Response;
96
+ };
97
+ error: never;
98
+ };
99
+ };
100
+ } & {
101
+ package: {
102
+ get: {
103
+ body: unknown;
104
+ params: {};
105
+ query: unknown;
106
+ headers: unknown;
107
+ response: {
108
+ 200: Response;
109
+ };
110
+ error: never;
111
+ };
112
+ };
113
+ } & {
114
+ "config-client.js": {
115
+ get: {
116
+ body: unknown;
117
+ params: {};
118
+ query: unknown;
119
+ headers: unknown;
120
+ response: {
121
+ 200: Response;
122
+ };
123
+ error: never;
124
+ };
125
+ };
126
+ } & {
127
+ api: {
128
+ rules: {
129
+ get: {
130
+ body: unknown;
131
+ params: {};
132
+ query: unknown;
133
+ headers: unknown;
134
+ response: {
135
+ 200: import("../../../types/eslintConfig").RuleCatalog;
136
+ };
137
+ error: never;
138
+ };
139
+ };
140
+ };
141
+ } & {
142
+ api: {
143
+ rules: {
144
+ post: {
145
+ body: unknown;
146
+ params: {};
147
+ query: unknown;
148
+ headers: unknown;
149
+ response: {
150
+ 200: Response | RuleEditResult;
151
+ };
152
+ error: never;
153
+ };
154
+ };
155
+ };
156
+ } & {
157
+ api: {
158
+ tsconfig: {
159
+ get: {
160
+ body: unknown;
161
+ params: {};
162
+ query: unknown;
163
+ headers: unknown;
164
+ response: {
165
+ 200: {
166
+ categories: string[];
167
+ configPath: string | null;
168
+ current: Record<string, unknown>;
169
+ options: import("../../../types/tsconfig").TsOption[];
170
+ };
171
+ };
172
+ error: never;
173
+ };
174
+ };
175
+ };
176
+ } & {
177
+ api: {
178
+ tsconfig: {
179
+ post: {
180
+ body: unknown;
181
+ params: {};
182
+ query: unknown;
183
+ headers: unknown;
184
+ response: {
185
+ 200: Response | TsEditResult;
186
+ };
187
+ error: never;
188
+ };
189
+ };
190
+ };
191
+ } & {
192
+ api: {
193
+ prettier: {
194
+ get: {
195
+ body: unknown;
196
+ params: {};
197
+ query: unknown;
198
+ headers: unknown;
199
+ response: {
200
+ 200: {
201
+ available: boolean;
202
+ categories: string[];
203
+ configPath: string | null;
204
+ current: Record<string, unknown>;
205
+ editable: boolean;
206
+ format: import("../../../types/prettier").PrettierFormat;
207
+ options: import("prettier").SupportOption[];
208
+ };
209
+ };
210
+ error: never;
211
+ };
212
+ };
213
+ };
214
+ } & {
215
+ api: {
216
+ prettier: {
217
+ post: {
218
+ body: unknown;
219
+ params: {};
220
+ query: unknown;
221
+ headers: unknown;
222
+ response: {
223
+ 200: Response | PrettierEditResult;
224
+ };
225
+ error: never;
226
+ };
227
+ };
228
+ };
229
+ } & {
230
+ api: {
231
+ absolute: {
232
+ get: {
233
+ body: unknown;
234
+ params: {};
235
+ query: unknown;
236
+ headers: unknown;
237
+ response: {
238
+ 200: {
239
+ available: boolean;
240
+ configPath: string | null;
241
+ current: Record<string, unknown>;
242
+ fields: any[];
243
+ opaqueKeys: string[];
244
+ };
245
+ };
246
+ error: never;
247
+ };
248
+ };
249
+ };
250
+ } & {
251
+ api: {
252
+ absolute: {
253
+ post: {
254
+ body: unknown;
255
+ params: {};
256
+ query: unknown;
257
+ headers: unknown;
258
+ response: {
259
+ 200: Response | AbsoluteConfigEditResult;
260
+ };
261
+ error: never;
262
+ };
263
+ };
264
+ };
265
+ } & {
266
+ api: {
267
+ integrations: {
268
+ get: {
269
+ body: unknown;
270
+ params: {};
271
+ query: unknown;
272
+ headers: unknown;
273
+ response: {
274
+ 200: import("../../../types/integrationsPanel").IntegrationsPanelState;
275
+ };
276
+ error: never;
277
+ };
278
+ };
279
+ };
280
+ } & {
281
+ api: {
282
+ integrations: {
283
+ add: {
284
+ post: {
285
+ body: unknown;
286
+ params: {};
287
+ query: unknown;
288
+ headers: unknown;
289
+ response: {
290
+ 200: IntegrationAddResult;
291
+ };
292
+ error: never;
293
+ };
294
+ };
295
+ };
296
+ };
297
+ } & {
298
+ api: {
299
+ auth: {
300
+ get: {
301
+ body: unknown;
302
+ params: {};
303
+ query: unknown;
304
+ headers: unknown;
305
+ response: {
306
+ 200: import("../../../types/authPanel").AuthPanelState;
307
+ };
308
+ error: never;
309
+ };
310
+ };
311
+ };
312
+ } & {
313
+ api: {
314
+ auth: {
315
+ post: {
316
+ body: unknown;
317
+ params: {};
318
+ query: unknown;
319
+ headers: unknown;
320
+ response: {
321
+ 200: Response | AuthConfigEditResult;
322
+ };
323
+ error: never;
324
+ };
325
+ };
326
+ };
327
+ } & {
328
+ api: {
329
+ auth: {
330
+ scaffold: {
331
+ post: {
332
+ body: unknown;
333
+ params: {};
334
+ query: unknown;
335
+ headers: unknown;
336
+ response: {
337
+ 200: AuthScaffoldResult;
338
+ };
339
+ error: never;
340
+ };
341
+ };
342
+ };
343
+ };
344
+ } & {
345
+ api: {
346
+ package: {
347
+ get: {
348
+ body: unknown;
349
+ params: {};
350
+ query: unknown;
351
+ headers: unknown;
352
+ response: {
353
+ 200: {
354
+ configPath: string | null;
355
+ current: Record<string, unknown>;
356
+ fields: any[];
357
+ scripts: import("../../../types/packageJsonPanel").PackageScript[];
358
+ };
359
+ };
360
+ error: never;
361
+ };
362
+ };
363
+ };
364
+ } & {
365
+ api: {
366
+ package: {
367
+ script: {
368
+ post: {
369
+ body: unknown;
370
+ params: {};
371
+ query: unknown;
372
+ headers: unknown;
373
+ response: {
374
+ 200: Response | PackageJsonEditResult;
375
+ };
376
+ error: never;
377
+ };
378
+ };
379
+ };
380
+ };
381
+ }, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "post", "/api/package/field", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/api/package/field">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ body }: {
382
+ body: unknown;
383
+ query: Record<string, string | undefined>;
384
+ params: {};
385
+ headers: Record<string, string | undefined>;
386
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
387
+ server: import("elysia").Server | null;
388
+ redirect: import("elysia").redirect;
389
+ set: {
390
+ headers: import("elysia").HTTPHeaders;
391
+ status?: number | keyof import("elysia").StatusMap;
392
+ cookie?: Record<string, import("elysia").BaseCookie>;
393
+ };
394
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 302 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 301 | 303 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
395
+ readonly 100: "Continue";
396
+ readonly 101: "Switching Protocols";
397
+ readonly 102: "Processing";
398
+ readonly 103: "Early Hints";
399
+ readonly 200: "OK";
400
+ readonly 201: "Created";
401
+ readonly 202: "Accepted";
402
+ readonly 203: "Non-Authoritative Information";
403
+ readonly 204: "No Content";
404
+ readonly 205: "Reset Content";
405
+ readonly 206: "Partial Content";
406
+ readonly 207: "Multi-Status";
407
+ readonly 208: "Already Reported";
408
+ readonly 300: "Multiple Choices";
409
+ readonly 301: "Moved Permanently";
410
+ readonly 302: "Found";
411
+ readonly 303: "See Other";
412
+ readonly 304: "Not Modified";
413
+ readonly 307: "Temporary Redirect";
414
+ readonly 308: "Permanent Redirect";
415
+ readonly 400: "Bad Request";
416
+ readonly 401: "Unauthorized";
417
+ readonly 402: "Payment Required";
418
+ readonly 403: "Forbidden";
419
+ readonly 404: "Not Found";
420
+ readonly 405: "Method Not Allowed";
421
+ readonly 406: "Not Acceptable";
422
+ readonly 407: "Proxy Authentication Required";
423
+ readonly 408: "Request Timeout";
424
+ readonly 409: "Conflict";
425
+ readonly 410: "Gone";
426
+ readonly 411: "Length Required";
427
+ readonly 412: "Precondition Failed";
428
+ readonly 413: "Payload Too Large";
429
+ readonly 414: "URI Too Long";
430
+ readonly 415: "Unsupported Media Type";
431
+ readonly 416: "Range Not Satisfiable";
432
+ readonly 417: "Expectation Failed";
433
+ readonly 418: "I'm a teapot";
434
+ readonly 420: "Enhance Your Calm";
435
+ readonly 421: "Misdirected Request";
436
+ readonly 422: "Unprocessable Content";
437
+ readonly 423: "Locked";
438
+ readonly 424: "Failed Dependency";
439
+ readonly 425: "Too Early";
440
+ readonly 426: "Upgrade Required";
441
+ readonly 428: "Precondition Required";
442
+ readonly 429: "Too Many Requests";
443
+ readonly 431: "Request Header Fields Too Large";
444
+ readonly 451: "Unavailable For Legal Reasons";
445
+ readonly 500: "Internal Server Error";
446
+ readonly 501: "Not Implemented";
447
+ readonly 502: "Bad Gateway";
448
+ readonly 503: "Service Unavailable";
449
+ readonly 504: "Gateway Timeout";
450
+ readonly 505: "HTTP Version Not Supported";
451
+ readonly 506: "Variant Also Negotiates";
452
+ readonly 507: "Insufficient Storage";
453
+ readonly 508: "Loop Detected";
454
+ readonly 510: "Not Extended";
455
+ readonly 511: "Network Authentication Required";
456
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaStatus<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
457
+ readonly Continue: 100;
458
+ readonly "Switching Protocols": 101;
459
+ readonly Processing: 102;
460
+ readonly "Early Hints": 103;
461
+ readonly OK: 200;
462
+ readonly Created: 201;
463
+ readonly Accepted: 202;
464
+ readonly "Non-Authoritative Information": 203;
465
+ readonly "No Content": 204;
466
+ readonly "Reset Content": 205;
467
+ readonly "Partial Content": 206;
468
+ readonly "Multi-Status": 207;
469
+ readonly "Already Reported": 208;
470
+ readonly "Multiple Choices": 300;
471
+ readonly "Moved Permanently": 301;
472
+ readonly Found: 302;
473
+ readonly "See Other": 303;
474
+ readonly "Not Modified": 304;
475
+ readonly "Temporary Redirect": 307;
476
+ readonly "Permanent Redirect": 308;
477
+ readonly "Bad Request": 400;
478
+ readonly Unauthorized: 401;
479
+ readonly "Payment Required": 402;
480
+ readonly Forbidden: 403;
481
+ readonly "Not Found": 404;
482
+ readonly "Method Not Allowed": 405;
483
+ readonly "Not Acceptable": 406;
484
+ readonly "Proxy Authentication Required": 407;
485
+ readonly "Request Timeout": 408;
486
+ readonly Conflict: 409;
487
+ readonly Gone: 410;
488
+ readonly "Length Required": 411;
489
+ readonly "Precondition Failed": 412;
490
+ readonly "Payload Too Large": 413;
491
+ readonly "URI Too Long": 414;
492
+ readonly "Unsupported Media Type": 415;
493
+ readonly "Range Not Satisfiable": 416;
494
+ readonly "Expectation Failed": 417;
495
+ readonly "I'm a teapot": 418;
496
+ readonly "Enhance Your Calm": 420;
497
+ readonly "Misdirected Request": 421;
498
+ readonly "Unprocessable Content": 422;
499
+ readonly Locked: 423;
500
+ readonly "Failed Dependency": 424;
501
+ readonly "Too Early": 425;
502
+ readonly "Upgrade Required": 426;
503
+ readonly "Precondition Required": 428;
504
+ readonly "Too Many Requests": 429;
505
+ readonly "Request Header Fields Too Large": 431;
506
+ readonly "Unavailable For Legal Reasons": 451;
507
+ readonly "Internal Server Error": 500;
508
+ readonly "Not Implemented": 501;
509
+ readonly "Bad Gateway": 502;
510
+ readonly "Service Unavailable": 503;
511
+ readonly "Gateway Timeout": 504;
512
+ readonly "HTTP Version Not Supported": 505;
513
+ readonly "Variant Also Negotiates": 506;
514
+ readonly "Insufficient Storage": 507;
515
+ readonly "Loop Detected": 508;
516
+ readonly "Not Extended": 510;
517
+ readonly "Network Authentication Required": 511;
518
+ }[Code] : Code>;
519
+ defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/api/package/field">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<import("elysia/types").DefaultSingleton & {
520
+ derive: {};
521
+ }>>) => import("elysia/types").MaybePromise<void>;
522
+ readonly path: string;
523
+ route?: string | undefined;
524
+ rid?: string | undefined;
525
+ request: Request;
526
+ store: {};
527
+ }) => Promise<Response | PackageJsonEditResult>>>;
@@ -0,0 +1,6 @@
1
+ import type { TsConfigState } from '../../../../types/tsconfig';
2
+ type TsconfigPanelProps = {
3
+ state: TsConfigState;
4
+ };
5
+ export declare const TsconfigPanel: ({ state: initial }: TsconfigPanelProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { TsEditRequest } from '../../../../types/tsconfig';
2
+ export declare const applyTsconfigEdit: (configPath: string, request: TsEditRequest) => {
3
+ message: string;
4
+ ok: boolean;
5
+ };
@@ -0,0 +1,8 @@
1
+ import type { TsOption } from '../../../../types/tsconfig';
2
+ export declare const findTsconfigPath: (cwd: string) => string | null;
3
+ export declare const resolveTsconfigState: (cwd: string) => {
4
+ categories: string[];
5
+ configPath: string | null;
6
+ current: Record<string, unknown>;
7
+ options: TsOption[];
8
+ };
@@ -0,0 +1 @@
1
+ export declare const TSCONFIG_CSS = "\n.ts-control { display: flex; align-items: center; gap: 8px; }\n\n.ts-select {\n\tappearance: none;\n\tfont-family: var(--mono);\n\tfont-size: 12px;\n\tcolor: var(--text);\n\tbackground: var(--panel-2);\n\tborder: 1px solid var(--border);\n\tborder-radius: 7px;\n\tpadding: 6px 28px 6px 10px;\n\tbackground-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),\n\t\tlinear-gradient(135deg, var(--dim) 50%, transparent 50%);\n\tbackground-position: right 12px center, right 7px center;\n\tbackground-size: 5px 5px, 5px 5px;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n}\n.ts-select:hover { border-color: var(--accent-dim); }\n\n.ts-input {\n\tfont-family: var(--mono);\n\tfont-size: 12px;\n\tcolor: var(--text);\n\tbackground: var(--panel-2);\n\tborder: 1px solid var(--border);\n\tborder-radius: 7px;\n\tpadding: 6px 10px;\n\tmin-width: 220px;\n}\n.ts-input:focus { outline: none; border-color: var(--accent); }\n.ts-input.err { border-color: var(--error); }\n.ts-input.wide { flex: 1; min-width: 320px; }\n\n.ts-btn {\n\tfont-family: var(--mono);\n\tfont-size: 11px;\n\tcolor: var(--bg);\n\tbackground: var(--accent);\n\tborder: none;\n\tborder-radius: 7px;\n\tpadding: 6px 12px;\n\tcursor: pointer;\n}\n.ts-btn:hover { background: var(--accent-dim); }\n\n.ts-clear {\n\tfont-family: var(--mono);\n\tfont-size: 11px;\n\tcolor: var(--dim);\n\tbackground: transparent;\n\tborder: 1px solid var(--border);\n\tborder-radius: 7px;\n\tpadding: 6px 10px;\n\tcursor: pointer;\n}\n.ts-clear:hover { color: var(--error); border-color: var(--error); }\n\n.ts-current {\n\tfont-family: var(--mono);\n\tfont-size: 11px;\n\tcolor: var(--accent);\n}\n.ts-default { color: var(--faint); font-size: 11px; }\n.ts-err { color: var(--error); font-size: 11px; margin-top: 6px; }\n";
@@ -0,0 +1,5 @@
1
+ import type { InstanceRecord } from '../../types/cli';
2
+ /** Registry-tracked instances unioned with any JS server listening on a port
3
+ * that the registry doesn't know about — so `absolute ps` shows orphans
4
+ * (dead controllers, hand-run builds) the file registry alone would miss. */
5
+ export declare const discoverInstances: () => Promise<InstanceRecord[]>;
@@ -0,0 +1,8 @@
1
+ import type { BunPlugin } from 'bun';
2
+ /**
3
+ * Elysia OpenAPI 2 beta.1 emits relative TypeBox imports that point at a
4
+ * package-local node_modules directory which is not included in its npm
5
+ * artifact. Redirect only those generated imports to the application's
6
+ * declared TypeBox dependency while bundling production servers.
7
+ */
8
+ export declare const createElysiaOpenApiTypeboxPlugin: () => BunPlugin;
@@ -0,0 +1,7 @@
1
+ import type { FrameworkKey } from './frameworkKey';
2
+ export type ComponentTemplateContext = {
3
+ kebab: string;
4
+ pascal: string;
5
+ title: string;
6
+ };
7
+ export declare const componentTemplates: Record<FrameworkKey, (ctx: ComponentTemplateContext) => string>;
@@ -0,0 +1,30 @@
1
+ import { type FrameworkKey } from './frameworkKey';
2
+ export type ProjectContext = {
3
+ config: Record<string, unknown>;
4
+ configPath: string | null;
5
+ cwd: string;
6
+ frameworkDirs: Partial<Record<FrameworkKey, string>>;
7
+ serverEntry: string;
8
+ stylesDir: string;
9
+ };
10
+ export declare const configuredFrameworks: (project: ProjectContext) => FrameworkKey[];
11
+ export declare const frontendRootFor: (project: ProjectContext, framework: FrameworkKey) => string;
12
+ export declare const resolveProject: (cwd: string, configOverride?: string) => Promise<{
13
+ config: Record<string, unknown>;
14
+ configPath: string | null;
15
+ cwd: string;
16
+ frameworkDirs: Partial<Record<FrameworkKey, string>>;
17
+ serverEntry: string;
18
+ stylesDir: string;
19
+ }>;
20
+ export declare const selectFramework: (project: ProjectContext, explicit: string | undefined) => {
21
+ message: string;
22
+ ok: false;
23
+ framework?: undefined;
24
+ } | {
25
+ framework: FrameworkKey;
26
+ ok: true;
27
+ message?: undefined;
28
+ };
29
+ export declare const sharedDirFor: (project: ProjectContext, framework: FrameworkKey) => string;
30
+ export declare const toModuleSpecifier: (fromDir: string, toFileNoExt: string) => string;
@@ -0,0 +1,20 @@
1
+ export type CssPlan = {
2
+ assetKey: string;
3
+ cssFileAbs: string;
4
+ contents: string;
5
+ create: boolean;
6
+ shared: boolean;
7
+ };
8
+ export declare const planCss: (routingText: string, stylesDir: string, pascal: string, kebab: string) => {
9
+ assetKey: string;
10
+ contents: string;
11
+ create: boolean;
12
+ cssFileAbs: string;
13
+ shared: true;
14
+ } | {
15
+ assetKey: string;
16
+ contents: string;
17
+ create: boolean;
18
+ cssFileAbs: string;
19
+ shared: false;
20
+ };