polen 0.9.1-next.1 → 0.10.0-next.10

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 (481) hide show
  1. package/README.md +49 -364
  2. package/build/api/api.d.ts +1 -0
  3. package/build/api/api.d.ts.map +1 -1
  4. package/build/api/api.js +1 -0
  5. package/build/api/api.js.map +1 -1
  6. package/build/api/config/configurator.d.ts +9 -1
  7. package/build/api/config/configurator.d.ts.map +1 -1
  8. package/build/api/config/configurator.js +18 -6
  9. package/build/api/config/configurator.js.map +1 -1
  10. package/build/api/config/load.js +5 -5
  11. package/build/api/config/load.js.map +1 -1
  12. package/build/api/config-resolver/resolve.js +2 -2
  13. package/build/api/config-resolver/resolve.js.map +1 -1
  14. package/build/api/content/$$.d.ts +7 -0
  15. package/build/api/content/$$.d.ts.map +1 -0
  16. package/build/api/content/$$.js +7 -0
  17. package/build/api/content/$$.js.map +1 -0
  18. package/build/api/content/$.d.ts +2 -0
  19. package/build/api/content/$.d.ts.map +1 -0
  20. package/build/api/content/$.js +2 -0
  21. package/build/api/content/$.js.map +1 -0
  22. package/build/api/content/metadata.d.ts +10 -0
  23. package/build/api/content/metadata.d.ts.map +1 -0
  24. package/build/api/content/metadata.js +9 -0
  25. package/build/api/content/metadata.js.map +1 -0
  26. package/build/api/content/navbar.d.ts +10 -0
  27. package/build/api/content/navbar.d.ts.map +1 -0
  28. package/build/api/content/navbar.js +45 -0
  29. package/build/api/content/navbar.js.map +1 -0
  30. package/build/api/content/page.d.ts +11 -0
  31. package/build/api/content/page.d.ts.map +1 -0
  32. package/build/api/content/page.js +2 -0
  33. package/build/api/content/page.js.map +1 -0
  34. package/build/api/content/scan.d.ts +19 -0
  35. package/build/api/content/scan.d.ts.map +1 -0
  36. package/build/api/content/scan.js +90 -0
  37. package/build/api/content/scan.js.map +1 -0
  38. package/build/api/content/sidebar.d.ts +104 -0
  39. package/build/api/content/sidebar.d.ts.map +1 -0
  40. package/build/api/content/sidebar.js +166 -0
  41. package/build/api/content/sidebar.js.map +1 -0
  42. package/build/api/content/utils.d.ts +5 -0
  43. package/build/api/content/utils.d.ts.map +1 -0
  44. package/build/api/content/utils.js +8 -0
  45. package/build/api/content/utils.js.map +1 -0
  46. package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts.map +1 -1
  47. package/build/api/schema/data-sources/schema-directory/schema-directory.js +3 -2
  48. package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
  49. package/build/api/static/index.d.ts +2 -0
  50. package/build/api/static/index.d.ts.map +1 -0
  51. package/build/api/static/index.js +2 -0
  52. package/build/api/static/index.js.map +1 -0
  53. package/build/api/static/manifest.d.ts +18 -0
  54. package/build/api/static/manifest.d.ts.map +1 -0
  55. package/build/api/static/manifest.js +13 -0
  56. package/build/api/static/manifest.js.map +1 -0
  57. package/build/api/static/rebase.d.ts +14 -0
  58. package/build/api/static/rebase.d.ts.map +1 -0
  59. package/build/api/static/rebase.js +110 -0
  60. package/build/api/static/rebase.js.map +1 -0
  61. package/build/api/static/static.d.ts +3 -0
  62. package/build/api/static/static.d.ts.map +1 -0
  63. package/build/api/static/static.js +3 -0
  64. package/build/api/static/static.js.map +1 -0
  65. package/build/api/vite/plugins/branding/index.d.ts +4 -0
  66. package/build/api/vite/plugins/branding/index.d.ts.map +1 -0
  67. package/build/api/vite/plugins/branding/index.js +80 -0
  68. package/build/api/vite/plugins/branding/index.js.map +1 -0
  69. package/build/api/vite/plugins/build.d.ts.map +1 -1
  70. package/build/api/vite/plugins/build.js +22 -1
  71. package/build/api/vite/plugins/build.js.map +1 -1
  72. package/build/api/vite/plugins/core.d.ts +2 -2
  73. package/build/api/vite/plugins/core.d.ts.map +1 -1
  74. package/build/api/vite/plugins/core.js +4 -5
  75. package/build/api/vite/plugins/core.js.map +1 -1
  76. package/build/api/vite/plugins/main.d.ts.map +1 -1
  77. package/build/api/vite/plugins/main.js +2 -1
  78. package/build/api/vite/plugins/main.js.map +1 -1
  79. package/build/api/vite/plugins/pages.d.ts +8 -14
  80. package/build/api/vite/plugins/pages.d.ts.map +1 -1
  81. package/build/api/vite/plugins/pages.js +110 -183
  82. package/build/api/vite/plugins/pages.js.map +1 -1
  83. package/build/api/vite/plugins/serve.js +5 -5
  84. package/build/api/vite/plugins/serve.js.map +1 -1
  85. package/build/cli/_/self-contained-mode.js +5 -5
  86. package/build/cli/_/self-contained-mode.js.map +1 -1
  87. package/build/cli/commands/static/$default.d.ts +3 -0
  88. package/build/cli/commands/static/$default.d.ts.map +1 -0
  89. package/build/cli/commands/static/$default.js +38 -0
  90. package/build/cli/commands/static/$default.js.map +1 -0
  91. package/build/cli/commands/static/rebase.d.ts +2 -0
  92. package/build/cli/commands/static/rebase.d.ts.map +1 -0
  93. package/build/cli/commands/static/rebase.js +26 -0
  94. package/build/cli/commands/static/rebase.js.map +1 -0
  95. package/build/cli/commands/static.d.ts +3 -0
  96. package/build/cli/commands/static.d.ts.map +1 -0
  97. package/build/cli/commands/static.js +5 -0
  98. package/build/cli/commands/static.js.map +1 -0
  99. package/build/exports/components.d.ts +2 -0
  100. package/build/exports/components.d.ts.map +1 -0
  101. package/build/exports/components.js +2 -0
  102. package/build/exports/components.js.map +1 -0
  103. package/build/lib/demos/builder.d.ts +83 -0
  104. package/build/lib/demos/builder.d.ts.map +1 -0
  105. package/build/lib/demos/builder.js +237 -0
  106. package/build/lib/demos/builder.js.map +1 -0
  107. package/build/lib/demos/config-schema.d.ts +243 -0
  108. package/build/lib/demos/config-schema.d.ts.map +1 -0
  109. package/build/lib/demos/config-schema.js +52 -0
  110. package/build/lib/demos/config-schema.js.map +1 -0
  111. package/build/lib/demos/config.d.ts +40 -0
  112. package/build/lib/demos/config.d.ts.map +1 -0
  113. package/build/lib/demos/config.js +180 -0
  114. package/build/lib/demos/config.js.map +1 -0
  115. package/build/lib/demos/index.d.ts +9 -0
  116. package/build/lib/demos/index.d.ts.map +1 -0
  117. package/build/lib/demos/index.js +8 -0
  118. package/build/lib/demos/index.js.map +1 -0
  119. package/build/lib/demos/ui/components.d.ts +33 -0
  120. package/build/lib/demos/ui/components.d.ts.map +1 -0
  121. package/build/lib/demos/ui/components.js +699 -0
  122. package/build/lib/demos/ui/components.js.map +1 -0
  123. package/build/lib/demos/ui/data-collector.d.ts +88 -0
  124. package/build/lib/demos/ui/data-collector.d.ts.map +1 -0
  125. package/build/lib/demos/ui/data-collector.js +174 -0
  126. package/build/lib/demos/ui/data-collector.js.map +1 -0
  127. package/build/lib/demos/ui/landing-page-cli.d.ts +3 -0
  128. package/build/lib/demos/ui/landing-page-cli.d.ts.map +1 -0
  129. package/build/lib/demos/ui/landing-page-cli.js +21 -0
  130. package/build/lib/demos/ui/landing-page-cli.js.map +1 -0
  131. package/build/lib/demos/ui/landing-page.d.ts +32 -0
  132. package/build/lib/demos/ui/landing-page.d.ts.map +1 -0
  133. package/build/lib/demos/ui/landing-page.js +83 -0
  134. package/build/lib/demos/ui/landing-page.js.map +1 -0
  135. package/build/lib/demos/ui/page-renderer.d.ts +26 -0
  136. package/build/lib/demos/ui/page-renderer.d.ts.map +1 -0
  137. package/build/lib/demos/ui/page-renderer.js +104 -0
  138. package/build/lib/demos/ui/page-renderer.js.map +1 -0
  139. package/build/lib/demos/utils.d.ts +14 -0
  140. package/build/lib/demos/utils.d.ts.map +1 -0
  141. package/build/lib/demos/utils.js +37 -0
  142. package/build/lib/demos/utils.js.map +1 -0
  143. package/build/lib/deployment/$$.d.ts +3 -0
  144. package/build/lib/deployment/$$.d.ts.map +1 -0
  145. package/build/lib/deployment/$$.js +3 -0
  146. package/build/lib/deployment/$$.js.map +1 -0
  147. package/build/lib/deployment/$.d.ts +2 -0
  148. package/build/lib/deployment/$.d.ts.map +1 -0
  149. package/build/lib/deployment/$.js +2 -0
  150. package/build/lib/deployment/$.js.map +1 -0
  151. package/build/lib/deployment/metadata.d.ts +32 -0
  152. package/build/lib/deployment/metadata.d.ts.map +1 -0
  153. package/build/lib/deployment/metadata.js +37 -0
  154. package/build/lib/deployment/metadata.js.map +1 -0
  155. package/build/lib/deployment/path-manager.d.ts +41 -0
  156. package/build/lib/deployment/path-manager.d.ts.map +1 -0
  157. package/build/lib/deployment/path-manager.js +157 -0
  158. package/build/lib/deployment/path-manager.js.map +1 -0
  159. package/build/lib/file-router/file-router.d.ts +0 -2
  160. package/build/lib/file-router/file-router.d.ts.map +1 -1
  161. package/build/lib/file-router/file-router.js +0 -2
  162. package/build/lib/file-router/file-router.js.map +1 -1
  163. package/build/lib/file-router/route.d.ts +2 -0
  164. package/build/lib/file-router/route.d.ts.map +1 -1
  165. package/build/lib/file-router/route.js.map +1 -1
  166. package/build/lib/file-router/scan.d.ts.map +1 -1
  167. package/build/lib/file-router/scan.js +22 -13
  168. package/build/lib/file-router/scan.js.map +1 -1
  169. package/build/lib/github-actions/git-controller.d.ts +50 -0
  170. package/build/lib/github-actions/git-controller.d.ts.map +1 -0
  171. package/build/lib/github-actions/git-controller.js +90 -0
  172. package/build/lib/github-actions/git-controller.js.map +1 -0
  173. package/build/lib/github-actions/github-actions.d.ts +7 -0
  174. package/build/lib/github-actions/github-actions.d.ts.map +1 -0
  175. package/build/lib/github-actions/github-actions.js +7 -0
  176. package/build/lib/github-actions/github-actions.js.map +1 -0
  177. package/build/lib/github-actions/index.d.ts +2 -0
  178. package/build/lib/github-actions/index.d.ts.map +1 -0
  179. package/build/lib/github-actions/index.js +2 -0
  180. package/build/lib/github-actions/index.js.map +1 -0
  181. package/build/lib/github-actions/lib/get-pr-deployments.d.ts +12 -0
  182. package/build/lib/github-actions/lib/get-pr-deployments.d.ts.map +1 -0
  183. package/build/lib/github-actions/lib/get-pr-deployments.js +51 -0
  184. package/build/lib/github-actions/lib/get-pr-deployments.js.map +1 -0
  185. package/build/lib/github-actions/pr-controller.d.ts +39 -0
  186. package/build/lib/github-actions/pr-controller.d.ts.map +1 -0
  187. package/build/lib/github-actions/pr-controller.js +122 -0
  188. package/build/lib/github-actions/pr-controller.js.map +1 -0
  189. package/build/lib/github-actions/run-step-cli.d.ts +9 -0
  190. package/build/lib/github-actions/run-step-cli.d.ts.map +1 -0
  191. package/build/lib/github-actions/run-step-cli.js +71 -0
  192. package/build/lib/github-actions/run-step-cli.js.map +1 -0
  193. package/build/lib/github-actions/runner.d.ts +17 -0
  194. package/build/lib/github-actions/runner.d.ts.map +1 -0
  195. package/build/lib/github-actions/runner.js +195 -0
  196. package/build/lib/github-actions/runner.js.map +1 -0
  197. package/build/lib/github-actions/schemas/context.d.ts +933 -0
  198. package/build/lib/github-actions/schemas/context.d.ts.map +1 -0
  199. package/build/lib/github-actions/schemas/context.js +407 -0
  200. package/build/lib/github-actions/schemas/context.js.map +1 -0
  201. package/build/lib/github-actions/schemas/index.d.ts +5 -0
  202. package/build/lib/github-actions/schemas/index.d.ts.map +1 -0
  203. package/build/lib/github-actions/schemas/index.js +5 -0
  204. package/build/lib/github-actions/schemas/index.js.map +1 -0
  205. package/build/lib/github-actions/search-module.d.ts +38 -0
  206. package/build/lib/github-actions/search-module.d.ts.map +1 -0
  207. package/build/lib/github-actions/search-module.js +40 -0
  208. package/build/lib/github-actions/search-module.js.map +1 -0
  209. package/build/lib/github-actions/step.d.ts +163 -0
  210. package/build/lib/github-actions/step.d.ts.map +1 -0
  211. package/build/lib/github-actions/step.js +121 -0
  212. package/build/lib/github-actions/step.js.map +1 -0
  213. package/build/lib/helpers.d.ts.map +1 -1
  214. package/build/lib/helpers.js +5 -3
  215. package/build/lib/helpers.js.map +1 -1
  216. package/build/lib/kit-temp.d.ts +54 -0
  217. package/build/lib/kit-temp.d.ts.map +1 -1
  218. package/build/lib/kit-temp.js +82 -14
  219. package/build/lib/kit-temp.js.map +1 -1
  220. package/build/lib/kit-temp.test-d.d.ts +2 -0
  221. package/build/lib/kit-temp.test-d.d.ts.map +1 -0
  222. package/build/lib/kit-temp.test-d.js +75 -0
  223. package/build/lib/kit-temp.test-d.js.map +1 -0
  224. package/build/lib/mask/$$.d.ts +3 -0
  225. package/build/lib/mask/$$.d.ts.map +1 -0
  226. package/build/lib/mask/$$.js +3 -0
  227. package/build/lib/mask/$$.js.map +1 -0
  228. package/build/lib/mask/$.d.ts +2 -0
  229. package/build/lib/mask/$.d.ts.map +1 -0
  230. package/build/lib/mask/$.js +2 -0
  231. package/build/lib/mask/$.js.map +1 -0
  232. package/build/lib/mask/apply.d.ts +86 -0
  233. package/build/lib/mask/apply.d.ts.map +1 -0
  234. package/build/lib/mask/apply.js +86 -0
  235. package/build/lib/mask/apply.js.map +1 -0
  236. package/build/lib/mask/mask.d.ts +124 -0
  237. package/build/lib/mask/mask.d.ts.map +1 -0
  238. package/build/lib/mask/mask.js +137 -0
  239. package/build/lib/mask/mask.js.map +1 -0
  240. package/build/lib/mask/mask.test-d.d.ts +2 -0
  241. package/build/lib/mask/mask.test-d.d.ts.map +1 -0
  242. package/build/lib/mask/mask.test-d.js +102 -0
  243. package/build/lib/mask/mask.test-d.js.map +1 -0
  244. package/build/lib/mutation-type.d.ts +18 -0
  245. package/build/lib/mutation-type.d.ts.map +1 -0
  246. package/build/lib/mutation-type.js +16 -0
  247. package/build/lib/mutation-type.js.map +1 -0
  248. package/build/lib/task/$$.d.ts +3 -0
  249. package/build/lib/task/$$.d.ts.map +1 -0
  250. package/build/lib/task/$$.js +3 -0
  251. package/build/lib/task/$$.js.map +1 -0
  252. package/build/lib/task/$.d.ts +2 -0
  253. package/build/lib/task/$.d.ts.map +1 -0
  254. package/build/lib/task/$.js +2 -0
  255. package/build/lib/task/$.js.map +1 -0
  256. package/build/lib/task/report.d.ts +28 -0
  257. package/build/lib/task/report.d.ts.map +1 -0
  258. package/build/lib/task/report.js +33 -0
  259. package/build/lib/task/report.js.map +1 -0
  260. package/build/lib/task/task.d.ts +44 -0
  261. package/build/lib/task/task.d.ts.map +1 -0
  262. package/build/lib/task/task.js +63 -0
  263. package/build/lib/task/task.js.map +1 -0
  264. package/build/lib/version-history/index.d.ts +3 -0
  265. package/build/lib/version-history/index.d.ts.map +1 -0
  266. package/build/lib/version-history/index.js +2 -0
  267. package/build/lib/version-history/index.js.map +1 -0
  268. package/build/lib/version-history/types.d.ts +64 -0
  269. package/build/lib/version-history/types.d.ts.map +1 -0
  270. package/build/lib/version-history/types.js +5 -0
  271. package/build/lib/version-history/types.js.map +1 -0
  272. package/build/lib/version-history/version-history.d.ts +85 -0
  273. package/build/lib/version-history/version-history.d.ts.map +1 -0
  274. package/build/lib/version-history/version-history.js +248 -0
  275. package/build/lib/version-history/version-history.js.map +1 -0
  276. package/build/lib/vite-virtual/debug.d.ts +1 -1
  277. package/build/lib/vite-virtual/debug.d.ts.map +1 -1
  278. package/build/lib/vite-virtual/debug.js +1 -1
  279. package/build/lib/vite-virtual/debug.js.map +1 -1
  280. package/build/project-data.d.ts +0 -1
  281. package/build/project-data.d.ts.map +1 -1
  282. package/build/sandbox.d.ts +2 -0
  283. package/build/sandbox.d.ts.map +1 -0
  284. package/build/sandbox.js +18 -0
  285. package/build/sandbox.js.map +1 -0
  286. package/build/singletons/debug.d.ts +2 -2
  287. package/build/singletons/debug.d.ts.map +1 -1
  288. package/build/singletons/debug.js +2 -2
  289. package/build/singletons/debug.js.map +1 -1
  290. package/build/template/components/HamburgerMenu.d.ts +9 -0
  291. package/build/template/components/HamburgerMenu.d.ts.map +1 -0
  292. package/build/template/components/HamburgerMenu.jsx +53 -0
  293. package/build/template/components/HamburgerMenu.jsx.map +1 -0
  294. package/build/template/components/Link.jsx +1 -1
  295. package/build/template/components/Logo.d.ts +9 -0
  296. package/build/template/components/Logo.d.ts.map +1 -0
  297. package/build/template/components/Logo.jsx +29 -0
  298. package/build/template/components/Logo.jsx.map +1 -0
  299. package/build/template/components/NotFound.d.ts +2 -0
  300. package/build/template/components/NotFound.d.ts.map +1 -0
  301. package/build/template/components/NotFound.jsx +26 -0
  302. package/build/template/components/NotFound.jsx.map +1 -0
  303. package/build/template/components/ThemeToggle.d.ts +3 -0
  304. package/build/template/components/ThemeToggle.d.ts.map +1 -0
  305. package/build/template/components/ThemeToggle.jsx +10 -0
  306. package/build/template/components/ThemeToggle.jsx.map +1 -0
  307. package/build/template/components/content/$$.d.ts +2 -0
  308. package/build/template/components/content/$$.d.ts.map +1 -0
  309. package/build/template/components/content/$$.js +2 -0
  310. package/build/template/components/content/$$.js.map +1 -0
  311. package/build/template/components/sidebar/Sidebar.d.ts +2 -2
  312. package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
  313. package/build/template/components/sidebar/SidebarItem.d.ts +3 -3
  314. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  315. package/build/template/components/sidebar/SidebarItem.jsx +1 -1
  316. package/build/template/components/sidebar/SidebarItem.jsx.map +1 -1
  317. package/build/template/contexts/ThemeContext.d.ts +12 -0
  318. package/build/template/contexts/ThemeContext.d.ts.map +1 -0
  319. package/build/template/contexts/ThemeContext.jsx +41 -0
  320. package/build/template/contexts/ThemeContext.jsx.map +1 -0
  321. package/build/template/routes/root.d.ts.map +1 -1
  322. package/build/template/routes/root.jsx +66 -53
  323. package/build/template/routes/root.jsx.map +1 -1
  324. package/build/template/server/app.d.ts.map +1 -1
  325. package/build/template/server/app.js +2 -21
  326. package/build/template/server/app.js.map +1 -1
  327. package/package.json +42 -28
  328. package/src/api/api.ts +1 -0
  329. package/src/api/config/configurator.ts +28 -6
  330. package/src/api/config/load.ts +5 -5
  331. package/src/api/config-resolver/resolve.ts +2 -2
  332. package/src/api/content/$$.ts +6 -0
  333. package/src/api/content/$.test.ts +72 -0
  334. package/src/api/content/$.ts +1 -0
  335. package/src/api/content/metadata.ts +11 -0
  336. package/src/api/content/navbar.test.ts +55 -0
  337. package/src/api/content/navbar.ts +61 -0
  338. package/src/api/content/page.ts +12 -0
  339. package/src/api/content/scan.ts +117 -0
  340. package/src/api/content/sidebar.test.ts +297 -0
  341. package/src/api/content/sidebar.ts +283 -0
  342. package/src/api/content/utils.ts +7 -0
  343. package/src/api/schema/data-sources/schema-directory/schema-directory.ts +3 -2
  344. package/src/api/singletons/markdown/markdown.test.ts +1 -1
  345. package/src/api/static/index.ts +1 -0
  346. package/src/api/static/manifest.test.ts +106 -0
  347. package/src/api/static/manifest.ts +16 -0
  348. package/src/api/static/rebase.test.ts +229 -0
  349. package/src/api/static/rebase.ts +140 -0
  350. package/src/api/static/static.ts +2 -0
  351. package/src/api/utils/asset-url/asset-url.test.ts +4 -4
  352. package/src/api/vite/plugins/branding/index.ts +108 -0
  353. package/src/api/vite/plugins/build.ts +25 -1
  354. package/src/api/vite/plugins/core.ts +6 -7
  355. package/src/api/vite/plugins/main.ts +2 -0
  356. package/src/api/vite/plugins/pages.ts +131 -207
  357. package/src/api/vite/plugins/serve.ts +5 -5
  358. package/src/cli/_/self-contained-mode.ts +5 -5
  359. package/src/cli/commands/static/$default.ts +43 -0
  360. package/src/cli/commands/static/rebase.ts +37 -0
  361. package/src/cli/commands/static.ts +6 -0
  362. package/src/exports/components.ts +1 -0
  363. package/src/lib/demos/builder.ts +298 -0
  364. package/src/lib/demos/config-schema.ts +56 -0
  365. package/src/lib/demos/config.test.ts +193 -0
  366. package/src/lib/demos/config.ts +205 -0
  367. package/src/lib/demos/index.ts +9 -0
  368. package/src/lib/demos/ui/components.ts +739 -0
  369. package/src/lib/demos/ui/data-collector.ts +246 -0
  370. package/src/lib/demos/ui/landing-page-cli.ts +23 -0
  371. package/src/lib/demos/ui/landing-page.ts +126 -0
  372. package/src/lib/demos/ui/page-renderer.ts +124 -0
  373. package/src/lib/demos/utils.ts +43 -0
  374. package/src/lib/deployment/$$.ts +2 -0
  375. package/src/lib/deployment/$.test.ts +53 -0
  376. package/src/lib/deployment/$.ts +1 -0
  377. package/src/lib/deployment/metadata.ts +40 -0
  378. package/src/lib/deployment/path-manager.ts +186 -0
  379. package/src/lib/file-router/file-router.ts +0 -2
  380. package/src/lib/file-router/linter.test.ts +2 -0
  381. package/src/lib/file-router/route.ts +2 -0
  382. package/src/lib/file-router/scan.ts +26 -14
  383. package/src/lib/github-actions/git-controller.ts +151 -0
  384. package/src/lib/github-actions/github-actions.ts +6 -0
  385. package/src/lib/github-actions/index.ts +1 -0
  386. package/src/lib/github-actions/lib/get-pr-deployments.ts +76 -0
  387. package/src/lib/github-actions/pr-controller.test.ts +172 -0
  388. package/src/lib/github-actions/pr-controller.ts +183 -0
  389. package/src/lib/github-actions/run-step-cli.ts +84 -0
  390. package/src/lib/github-actions/runner.test.ts +192 -0
  391. package/src/lib/github-actions/runner.ts +226 -0
  392. package/src/lib/github-actions/schemas/context.ts +424 -0
  393. package/src/lib/github-actions/schemas/index.ts +5 -0
  394. package/src/lib/github-actions/search-module.test.ts +110 -0
  395. package/src/lib/github-actions/search-module.ts +76 -0
  396. package/src/lib/github-actions/step.test.ts +149 -0
  397. package/src/lib/github-actions/step.ts +232 -0
  398. package/src/lib/helpers.ts +4 -3
  399. package/src/lib/kit-temp.test-d.ts +115 -0
  400. package/src/lib/kit-temp.test.ts +127 -0
  401. package/src/lib/kit-temp.ts +128 -14
  402. package/src/lib/mask/$$.ts +2 -0
  403. package/src/lib/mask/$.test.ts +248 -0
  404. package/src/lib/mask/$.ts +1 -0
  405. package/src/lib/mask/apply.ts +134 -0
  406. package/src/lib/mask/mask.test-d.ts +144 -0
  407. package/src/lib/mask/mask.ts +244 -0
  408. package/src/lib/mutation-type.ts +20 -0
  409. package/src/lib/shiki/shiki.test.ts +1 -1
  410. package/src/lib/task/$$.ts +2 -0
  411. package/src/lib/task/$.test.ts +209 -0
  412. package/src/lib/task/$.ts +1 -0
  413. package/src/lib/task/report.ts +72 -0
  414. package/src/lib/task/task.ts +112 -0
  415. package/src/lib/version-history/index.test.ts +196 -0
  416. package/src/lib/version-history/index.ts +4 -0
  417. package/src/lib/version-history/types.ts +68 -0
  418. package/src/lib/version-history/version-history.ts +293 -0
  419. package/src/lib/vite-virtual/debug.ts +1 -1
  420. package/src/project-data.ts +0 -1
  421. package/src/sandbox.ts +20 -0
  422. package/src/singletons/debug.ts +2 -2
  423. package/src/template/components/HamburgerMenu.tsx +96 -0
  424. package/src/template/components/Link.tsx +1 -1
  425. package/src/template/components/Logo.tsx +46 -0
  426. package/src/template/components/NotFound.tsx +28 -0
  427. package/src/template/components/ThemeToggle.tsx +21 -0
  428. package/src/template/components/content/$$.ts +1 -0
  429. package/src/template/components/sidebar/Sidebar.tsx +2 -2
  430. package/src/template/components/sidebar/SidebarItem.tsx +8 -8
  431. package/src/template/contexts/ThemeContext.tsx +60 -0
  432. package/src/template/routes/root.tsx +85 -74
  433. package/src/template/server/app.ts +2 -27
  434. package/build/lib/debug/debug.d.ts +0 -13
  435. package/build/lib/debug/debug.d.ts.map +0 -1
  436. package/build/lib/debug/debug.js +0 -86
  437. package/build/lib/debug/debug.js.map +0 -1
  438. package/build/lib/debug/environment-variable.d.ts +0 -6
  439. package/build/lib/debug/environment-variable.d.ts.map +0 -1
  440. package/build/lib/debug/environment-variable.js +0 -48
  441. package/build/lib/debug/environment-variable.js.map +0 -1
  442. package/build/lib/debug/index.d.ts +0 -2
  443. package/build/lib/debug/index.d.ts.map +0 -1
  444. package/build/lib/debug/index.js +0 -2
  445. package/build/lib/debug/index.js.map +0 -1
  446. package/build/lib/file-router/scan-tree.d.ts +0 -20
  447. package/build/lib/file-router/scan-tree.d.ts.map +0 -1
  448. package/build/lib/file-router/scan-tree.js +0 -158
  449. package/build/lib/file-router/scan-tree.js.map +0 -1
  450. package/build/lib/file-router/sidebar/index.d.ts +0 -3
  451. package/build/lib/file-router/sidebar/index.d.ts.map +0 -1
  452. package/build/lib/file-router/sidebar/index.js +0 -4
  453. package/build/lib/file-router/sidebar/index.js.map +0 -1
  454. package/build/lib/file-router/sidebar/sidebar-tree.d.ts +0 -9
  455. package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +0 -1
  456. package/build/lib/file-router/sidebar/sidebar-tree.js +0 -85
  457. package/build/lib/file-router/sidebar/sidebar-tree.js.map +0 -1
  458. package/build/lib/file-router/sidebar/types.d.ts +0 -17
  459. package/build/lib/file-router/sidebar/types.d.ts.map +0 -1
  460. package/build/lib/file-router/sidebar/types.js +0 -2
  461. package/build/lib/file-router/sidebar/types.js.map +0 -1
  462. package/build/lib/tree/index.d.ts +0 -3
  463. package/build/lib/tree/index.d.ts.map +0 -1
  464. package/build/lib/tree/index.js +0 -2
  465. package/build/lib/tree/index.js.map +0 -1
  466. package/build/lib/tree/tree.d.ts +0 -62
  467. package/build/lib/tree/tree.d.ts.map +0 -1
  468. package/build/lib/tree/tree.js +0 -134
  469. package/build/lib/tree/tree.js.map +0 -1
  470. package/src/lib/debug/debug.ts +0 -120
  471. package/src/lib/debug/environment-variable.ts +0 -56
  472. package/src/lib/debug/index.ts +0 -1
  473. package/src/lib/file-router/scan-tree.test.ts +0 -189
  474. package/src/lib/file-router/scan-tree.ts +0 -205
  475. package/src/lib/file-router/sidebar/index.ts +0 -3
  476. package/src/lib/file-router/sidebar/sidebar-tree.test.ts +0 -123
  477. package/src/lib/file-router/sidebar/sidebar-tree.ts +0 -110
  478. package/src/lib/file-router/sidebar/types.ts +0 -19
  479. package/src/lib/tree/index.ts +0 -2
  480. package/src/lib/tree/tree.test.ts +0 -117
  481. package/src/lib/tree/tree.ts +0 -183
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/lib/task/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA"}
@@ -0,0 +1,28 @@
1
+ import type { Definition, MaskOptions } from './task.ts';
2
+ export interface Report<$Input, $Output> {
3
+ task: Definition<$Input, $Output>;
4
+ execution: {
5
+ input: $Input;
6
+ output: $Output | Error;
7
+ timings: {
8
+ start: number;
9
+ end: number;
10
+ duration: number;
11
+ };
12
+ };
13
+ }
14
+ export interface FormatOptions<$Input, $Output> {
15
+ /**
16
+ * Force masks to reveal all data
17
+ */
18
+ debug?: boolean;
19
+ /**
20
+ * A mask to apply to the input (if any) and successful return (if any).
21
+ *
22
+ * @default Uses the mask bundled with the task, if any.
23
+ */
24
+ mask?: MaskOptions<$Input, $Output>;
25
+ }
26
+ export declare const formatReport: <$Input, $Output>(report: Report<$Input, $Output>, options?: FormatOptions<$Input, $Output>) => string;
27
+ export declare const exitWithReport: <$Input, $Output>(report: Report<$Input, $Output>, options?: FormatOptions<$Input, $Output>) => never;
28
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/lib/task/report.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAExD,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO;IACrC,IAAI,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,OAAO,GAAG,KAAK,CAAA;QACvB,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAA;YACb,GAAG,EAAE,MAAM,CAAA;YACX,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;CACF;AAED,MAAM,WAAW,aAAa,CAAC,MAAM,EAAE,OAAO;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,EAAE,OAAO,EAC1C,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,UAAU,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,KACvC,MA4BF,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,EAAE,OAAO,EAC5C,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,UAAU,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,KACvC,KAKF,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { Mask } from '#lib/mask';
2
+ import { Err, Str } from '@wollybeard/kit';
3
+ export const formatReport = (report, options) => {
4
+ const maskOptions = options?.debug
5
+ ? undefined
6
+ : (options?.mask ?? report.task.mask);
7
+ // Apply masks
8
+ const maskedInput = maskOptions?.input
9
+ ? Mask.apply(report.execution.input, Mask.create(maskOptions.input))
10
+ : report.execution.input;
11
+ const maskedOutput = report.execution.output instanceof Error || !maskOptions?.output
12
+ ? report.execution.output
13
+ : Mask.apply(report.execution.output, Mask.create(maskOptions.output));
14
+ // Format report
15
+ const s = Str.Builder();
16
+ s `Task: ${report.task.name}`;
17
+ s `Duration: ${report.execution.timings.duration.toFixed(2)}ms`;
18
+ s `Input: ${JSON.stringify(maskedInput, null, 2)}`;
19
+ if (report.execution.output instanceof Error) {
20
+ s(Err.inspect(report.execution.output));
21
+ }
22
+ else {
23
+ s `Output: ${JSON.stringify(maskedOutput, null, 2)}`;
24
+ }
25
+ return s.render();
26
+ };
27
+ export const exitWithReport = (report, options) => {
28
+ const isError = Err.is(report.execution.output);
29
+ const exitCode = isError ? 1 : 0;
30
+ console.log(formatReport(report, options));
31
+ process.exit(exitCode);
32
+ };
33
+ //# sourceMappingURL=report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/lib/task/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AA6B1C,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAA+B,EAC/B,OAAwC,EAChC,EAAE;IACV,MAAM,WAAW,GAAG,OAAO,EAAE,KAAK;QAChC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAEvC,cAAc;IACd,MAAM,WAAW,GAAG,WAAW,EAAE,KAAK;QACpC,CAAC,CAAC,IAAI,CAAC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,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAChC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAC1C,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AACxB,CAAC,CAAA"}
@@ -0,0 +1,44 @@
1
+ import type { Mask } from '#lib/mask';
2
+ import type { Report } from './report.ts';
3
+ export interface Definition<$Input = any, $Output = any> {
4
+ name: string;
5
+ mask?: MaskOptions<$Input, $Output>;
6
+ }
7
+ export interface Task<$Input, $Output> {
8
+ (input: $Input): Promise<Report<$Input, $Output>>;
9
+ definition: Definition<$Input, $Output>;
10
+ }
11
+ export interface MaskOptions<$Input, $Output> {
12
+ /**
13
+ * @default true
14
+ */
15
+ input?: Mask.InferOptions<$Input>;
16
+ /**
17
+ * @default true
18
+ */
19
+ output?: Mask.InferOptions<$Output>;
20
+ }
21
+ export declare const create: <$Input, $Output>(fn: (input: $Input) => Promise<$Output>, options?: {
22
+ /**
23
+ * @default the fn name
24
+ */
25
+ name?: string;
26
+ /**
27
+ * An optional default mask to use for successfully returned values.
28
+ */
29
+ mask?: MaskOptions<$Input, $Output>;
30
+ }) => Task<$Input, $Output>;
31
+ /**
32
+ * Sugar method that creates a task, executes it, and exits with the report.
33
+ * Equivalent to: create(fn, options) -> task(input) -> exitWithReport(report)
34
+ *
35
+ * @param fn - The function to wrap as a task
36
+ * @param input - Input to pass to the task
37
+ * @param options - Combined task creation and format options
38
+ */
39
+ export declare const runAndExit: <$Input, $Output>(fn: (input: $Input) => Promise<$Output>, input: $Input, options?: {
40
+ name?: string;
41
+ mask?: MaskOptions<$Input, $Output>;
42
+ debug?: boolean;
43
+ }) => Promise<never>;
44
+ //# sourceMappingURL=task.d.ts.map
@@ -0,0 +1 @@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,EACb,UAAU;IACR,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,KACA,OAAO,CAAC,KAAK,CAUf,CAAA"}
@@ -0,0 +1,63 @@
1
+ import { exitWithReport } from "./report.js";
2
+ export const create = (fn, options) => {
3
+ const definition = {
4
+ name: options?.name ?? (fn.name || 'anonymous'),
5
+ mask: options?.mask,
6
+ };
7
+ const task = async (input) => {
8
+ const start = performance.now();
9
+ try {
10
+ const output = await fn(input);
11
+ const end = performance.now();
12
+ return {
13
+ task: definition,
14
+ execution: {
15
+ input,
16
+ output,
17
+ timings: {
18
+ start,
19
+ end,
20
+ duration: end - start,
21
+ },
22
+ },
23
+ };
24
+ }
25
+ catch (error) {
26
+ const end = performance.now();
27
+ return {
28
+ task: definition,
29
+ execution: {
30
+ input,
31
+ output: error,
32
+ timings: {
33
+ start,
34
+ end,
35
+ duration: end - start,
36
+ },
37
+ },
38
+ };
39
+ }
40
+ };
41
+ task.definition = definition;
42
+ return task;
43
+ };
44
+ /**
45
+ * Sugar method that creates a task, executes it, and exits with the report.
46
+ * Equivalent to: create(fn, options) -> task(input) -> exitWithReport(report)
47
+ *
48
+ * @param fn - The function to wrap as a task
49
+ * @param input - Input to pass to the task
50
+ * @param options - Combined task creation and format options
51
+ */
52
+ export const runAndExit = async (fn, input, options) => {
53
+ const task = create(fn, {
54
+ name: options?.name,
55
+ mask: options?.mask,
56
+ });
57
+ const report = await task(input);
58
+ return exitWithReport(report, {
59
+ debug: options?.debug,
60
+ mask: options?.mask,
61
+ });
62
+ };
63
+ //# sourceMappingURL=task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../../src/lib/task/task.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAuB5C,MAAM,CAAC,MAAM,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,IAAI,EAAE,OAAO,EAAE,IAAI;KACpB,CAAC,CAAA;IACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,CAAA;IAChC,OAAO,cAAc,CAAC,MAAM,EAAE;QAC5B,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,IAAI,EAAE,OAAO,EAAE,IAAI;KACpB,CAAC,CAAA;AACJ,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * as VersionHistory from './version-history.ts';
2
+ export type { DevelopmentCycle, DistTagInfo, Version, VersionCatalog } from './types.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/version-history/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAA;AAGtD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * as VersionHistory from "./version-history.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/version-history/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Version history types
3
+ */
4
+ import type { Version as Semver } from '@vltpkg/semver';
5
+ export interface Version {
6
+ /**
7
+ * Git-related information for this version
8
+ */
9
+ git: {
10
+ /**
11
+ * The git tag name for this version (e.g., "1.2.3" or "2.0.0-beta.1")
12
+ */
13
+ tag: string;
14
+ /**
15
+ * The full git commit SHA associated with this version tag
16
+ */
17
+ sha: string;
18
+ };
19
+ /**
20
+ * The date when this version tag was created
21
+ */
22
+ date: Date;
23
+ /**
24
+ * Whether this version is a prerelease (contains -alpha, -beta, -rc, etc.)
25
+ */
26
+ isPrerelease: boolean;
27
+ /**
28
+ * Parsed semver object containing major, minor, patch, and prerelease info
29
+ */
30
+ semver: Semver;
31
+ }
32
+ export interface DistTagInfo {
33
+ name: string;
34
+ commit: string;
35
+ semverTag?: string;
36
+ }
37
+ export interface DevelopmentCycle {
38
+ stable: Version | null;
39
+ prereleases: Version[];
40
+ all: Version[];
41
+ }
42
+ /**
43
+ * Complete registry of all versions and dist-tags in the repository
44
+ */
45
+ export interface VersionCatalog {
46
+ /**
47
+ * All dist-tags mapped to their corresponding versions
48
+ */
49
+ distTags: {
50
+ latest?: Version;
51
+ next?: Version;
52
+ [tagName: string]: Version | undefined;
53
+ };
54
+ /**
55
+ * All versions sorted by semver (newest first)
56
+ */
57
+ versions: Version[];
58
+ /**
59
+ * Quick access to commonly needed subsets
60
+ */
61
+ stable: Version[];
62
+ prerelease: Version[];
63
+ }
64
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/version-history/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvD,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,GAAG,EAAE;QACH;;WAEG;QACH,GAAG,EAAE,MAAM,CAAA;QACX;;WAEG;QACH,GAAG,EAAE,MAAM,CAAA;KACZ,CAAA;IACD;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV;;OAEG;IACH,YAAY,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAA;IACtB,WAAW,EAAE,OAAO,EAAE,CAAA;IACtB,GAAG,EAAE,OAAO,EAAE,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE;QACR,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,IAAI,CAAC,EAAE,OAAO,CAAA;QACd,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;KACvC,CAAA;IACD;;OAEG;IACH,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB,UAAU,EAAE,OAAO,EAAE,CAAA;CACtB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Version history types
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/lib/version-history/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,85 @@
1
+ import { type Version as SemverVersion } from '@vltpkg/semver';
2
+ import type { DevelopmentCycle, DistTagInfo, Version, VersionCatalog } from './types.ts';
3
+ export type { DevelopmentCycle, DistTagInfo, Version, VersionCatalog } from './types.ts';
4
+ /**
5
+ * Parse a semver string into a Version object
6
+ */
7
+ export declare function parseSemver(tag: string): SemverVersion | null;
8
+ /**
9
+ * Check if a tag is a semver tag
10
+ */
11
+ export declare function isSemverTag(tag: string): boolean;
12
+ /**
13
+ * Check if a version is a prerelease
14
+ */
15
+ export declare function isPrerelease(tag: string): boolean;
16
+ /**
17
+ * Check if a version is stable (not a prerelease)
18
+ */
19
+ export declare function isStableVersion(tag: string): boolean;
20
+ /**
21
+ * Get the deployment path for a version
22
+ * Stable versions go to /latest/, prereleases go to /[version]/
23
+ */
24
+ export declare function getDeploymentPath(version: string, prefix?: string): string;
25
+ /**
26
+ * Get all versions from the repository
27
+ */
28
+ export declare function getVersions(repoPath?: string): Promise<Version[]>;
29
+ /**
30
+ * Get dist-tag information (latest, next, etc.)
31
+ */
32
+ export declare function getDistTag(tagName: string, repoPath?: string): Promise<DistTagInfo | null>;
33
+ /**
34
+ * Get the 'latest' dist-tag
35
+ */
36
+ export declare function getDistTagLatest(repoPath?: string): Promise<DistTagInfo | null>;
37
+ /**
38
+ * Get all dist-tags
39
+ */
40
+ export declare function getDistTags(repoPath?: string): Promise<DistTagInfo[]>;
41
+ /**
42
+ * Get the latest stable version
43
+ */
44
+ export declare function getLatestStableVersion(repoPath?: string): Promise<Version | null>;
45
+ /**
46
+ * Get the latest prerelease version
47
+ */
48
+ export declare function getLatestPrereleaseVersion(repoPath?: string): Promise<Version | null>;
49
+ /**
50
+ * Get version at a specific commit
51
+ */
52
+ export declare function getVersionAtCommit(commit: string, repoPath?: string): Promise<Version | null>;
53
+ /**
54
+ * Get deployment history for demos (versions that should have demos)
55
+ */
56
+ export declare function getDeploymentHistory(minimumVersion?: string, repoPath?: string): Promise<Version[]>;
57
+ /**
58
+ * Get the current development cycle: latest stable + all newer prereleases
59
+ */
60
+ export declare function getCurrentDevelopmentCycle(repoPath?: string): Promise<DevelopmentCycle>;
61
+ /**
62
+ * Get versions since a specific version (inclusive)
63
+ */
64
+ export declare function getVersionsSince(sinceVersion: string, skipVersions?: string[], repoPath?: string): Promise<Version[]>;
65
+ /**
66
+ * Get all prereleases from past development cycles
67
+ *
68
+ * A development cycle is the set of prereleases between stable versions.
69
+ * This returns all prereleases that are not part of the current development cycle.
70
+ *
71
+ * Note: This only returns prereleases. Stable versions are not part of development cycles.
72
+ */
73
+ export declare function getPastDevelopmentCycles(repoPath?: string): Promise<Version[]>;
74
+ /**
75
+ * Get a complete registry of all versions and dist-tags
76
+ */
77
+ export declare function getVersionCatalog(repoPath?: string): Promise<VersionCatalog>;
78
+ export declare class VersionHistory {
79
+ static parseSemver: typeof parseSemver;
80
+ static isSemverTag: typeof isSemverTag;
81
+ static isPrerelease: typeof isPrerelease;
82
+ static isStableVersion: typeof isStableVersion;
83
+ static getDeploymentPath: typeof getDeploymentPath;
84
+ }
85
+ //# sourceMappingURL=version-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-history.d.ts","sourceRoot":"","sources":["../../../src/lib/version-history/version-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,OAAO,IAAI,aAAa,EAC9B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAExF,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAOxF;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAE7D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAGjD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAiB,GAAG,MAAM,CAGpF;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAkCvE;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAiBhG;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAErF;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAA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Compare, parse as semverParse, prerelease as semverPrerelease, } from '@vltpkg/semver';
2
+ import { simpleGit } from 'simple-git';
3
+ // Helper to get git instance
4
+ function getGit(repoPath = process.cwd()) {
5
+ return simpleGit(repoPath);
6
+ }
7
+ /**
8
+ * Parse a semver string into a Version object
9
+ */
10
+ export function parseSemver(tag) {
11
+ return semverParse(tag) || null;
12
+ }
13
+ /**
14
+ * Check if a tag is a semver tag
15
+ */
16
+ export function isSemverTag(tag) {
17
+ return semverParse(tag) !== undefined;
18
+ }
19
+ /**
20
+ * Check if a version is a prerelease
21
+ */
22
+ export function isPrerelease(tag) {
23
+ const prereleaseArray = semverPrerelease(tag);
24
+ return prereleaseArray !== undefined && prereleaseArray.length > 0;
25
+ }
26
+ /**
27
+ * Check if a version is stable (not a prerelease)
28
+ */
29
+ export function isStableVersion(tag) {
30
+ return !isPrerelease(tag);
31
+ }
32
+ /**
33
+ * Get the deployment path for a version
34
+ * Stable versions go to /latest/, prereleases go to /[version]/
35
+ */
36
+ export function getDeploymentPath(version, prefix = '/polen') {
37
+ const isStable = isStableVersion(version);
38
+ return isStable ? `${prefix}/latest/` : `${prefix}/${version}/`;
39
+ }
40
+ /**
41
+ * Get all versions from the repository
42
+ */
43
+ export async function getVersions(repoPath) {
44
+ const git = getGit(repoPath);
45
+ const tags = await git.tags();
46
+ const versions = [];
47
+ for (const tag of tags.all) {
48
+ if (!isSemverTag(tag))
49
+ continue;
50
+ const semver = parseSemver(tag);
51
+ if (!semver)
52
+ continue;
53
+ try {
54
+ const tagInfo = await git.show([`${tag}^{commit}`, `--format=%H %at`]);
55
+ const [commit, timestamp] = tagInfo.trim().split(' ');
56
+ if (!commit)
57
+ continue;
58
+ versions.push({
59
+ git: {
60
+ tag,
61
+ sha: commit,
62
+ },
63
+ date: new Date(parseInt(timestamp || '0', 10) * 1000),
64
+ isPrerelease: isPrerelease(tag),
65
+ semver,
66
+ });
67
+ }
68
+ catch (e) {
69
+ // Skip tags that can't be resolved
70
+ console.warn(`Failed to get info for tag ${tag}:`, e);
71
+ }
72
+ }
73
+ // Sort by semver (newest first) - reverse of semverCompare
74
+ return versions.sort((a, b) => semverCompare(b.semver, a.semver));
75
+ }
76
+ /**
77
+ * Get dist-tag information (latest, next, etc.)
78
+ */
79
+ export async function getDistTag(tagName, repoPath) {
80
+ const git = getGit(repoPath);
81
+ try {
82
+ const commit = await git.revparse([tagName]);
83
+ // Find semver tag at this commit
84
+ const tags = await git.tag([`--points-at`, commit]);
85
+ const semverTags = tags.split('\n').filter(isSemverTag);
86
+ return {
87
+ name: tagName,
88
+ commit: commit.trim(),
89
+ semverTag: semverTags[0],
90
+ };
91
+ }
92
+ catch (e) {
93
+ return null;
94
+ }
95
+ }
96
+ /**
97
+ * Get the 'latest' dist-tag
98
+ */
99
+ export async function getDistTagLatest(repoPath) {
100
+ return getDistTag('latest', repoPath);
101
+ }
102
+ /**
103
+ * Get all dist-tags
104
+ */
105
+ export async function getDistTags(repoPath) {
106
+ const commonDistTags = ['latest', 'next', 'beta', 'alpha', 'canary'];
107
+ const distTags = [];
108
+ for (const tag of commonDistTags) {
109
+ const info = await getDistTag(tag, repoPath);
110
+ if (info) {
111
+ distTags.push(info);
112
+ }
113
+ }
114
+ return distTags;
115
+ }
116
+ /**
117
+ * Get the latest stable version
118
+ */
119
+ export async function getLatestStableVersion(repoPath) {
120
+ const versions = await getVersions(repoPath);
121
+ return versions.find(v => !v.isPrerelease) || null;
122
+ }
123
+ /**
124
+ * Get the latest prerelease version
125
+ */
126
+ export async function getLatestPrereleaseVersion(repoPath) {
127
+ const versions = await getVersions(repoPath);
128
+ return versions.find(v => v.isPrerelease) || null;
129
+ }
130
+ /**
131
+ * Get version at a specific commit
132
+ */
133
+ export async function getVersionAtCommit(commit, repoPath) {
134
+ const git = getGit(repoPath);
135
+ const tags = await git.tag([`--points-at`, commit]);
136
+ const semverTags = tags.split('\n').filter(isSemverTag);
137
+ if (semverTags.length === 0)
138
+ return null;
139
+ // Get full info for the first semver tag
140
+ const versions = await getVersions(repoPath);
141
+ return versions.find(v => v.git.tag === semverTags[0]) || null;
142
+ }
143
+ /**
144
+ * Get deployment history for demos (versions that should have demos)
145
+ */
146
+ export async function getDeploymentHistory(minimumVersion, repoPath) {
147
+ const versions = await getVersions(repoPath);
148
+ if (!minimumVersion)
149
+ return versions;
150
+ const minSemver = parseSemver(minimumVersion);
151
+ if (!minSemver)
152
+ return versions;
153
+ return versions.filter(v => semverCompare(v.semver, minSemver) >= 0);
154
+ }
155
+ /**
156
+ * Get the current development cycle: latest stable + all newer prereleases
157
+ */
158
+ export async function getCurrentDevelopmentCycle(repoPath) {
159
+ const latestStable = await getLatestStableVersion(repoPath);
160
+ if (!latestStable) {
161
+ // No stable version yet, return all versions as prereleases
162
+ const allVersions = await getVersions(repoPath);
163
+ return {
164
+ stable: null,
165
+ prereleases: allVersions,
166
+ all: allVersions,
167
+ };
168
+ }
169
+ const allVersions = await getVersions(repoPath);
170
+ const prereleases = allVersions.filter(v => v.isPrerelease && semverCompare(v.semver, latestStable.semver) > 0);
171
+ return {
172
+ stable: latestStable,
173
+ prereleases,
174
+ all: [latestStable, ...prereleases],
175
+ };
176
+ }
177
+ /**
178
+ * Get versions since a specific version (inclusive)
179
+ */
180
+ export async function getVersionsSince(sinceVersion, skipVersions = [], repoPath) {
181
+ const sinceSemver = parseSemver(sinceVersion);
182
+ if (!sinceSemver) {
183
+ throw new Error(`Invalid version: ${sinceVersion}`);
184
+ }
185
+ const allVersions = await getVersions(repoPath);
186
+ return allVersions.filter(v => {
187
+ // Skip if in skip list
188
+ if (skipVersions.includes(v.git.tag))
189
+ return false;
190
+ // Include if >= sinceVersion
191
+ return semverCompare(v.semver, sinceSemver) >= 0;
192
+ });
193
+ }
194
+ /**
195
+ * Get all prereleases from past development cycles
196
+ *
197
+ * A development cycle is the set of prereleases between stable versions.
198
+ * This returns all prereleases that are not part of the current development cycle.
199
+ *
200
+ * Note: This only returns prereleases. Stable versions are not part of development cycles.
201
+ */
202
+ export async function getPastDevelopmentCycles(repoPath) {
203
+ const allVersions = await getVersions(repoPath);
204
+ const currentCycle = await getCurrentDevelopmentCycle(repoPath);
205
+ const currentCycleTags = new Set(currentCycle.all.map(v => v.git.tag));
206
+ // Return prereleases not in the current cycle
207
+ return allVersions.filter(v => {
208
+ return v.isPrerelease && !currentCycleTags.has(v.git.tag);
209
+ });
210
+ }
211
+ /**
212
+ * Get a complete registry of all versions and dist-tags
213
+ */
214
+ export async function getVersionCatalog(repoPath) {
215
+ const [allVersions, distTagInfos] = await Promise.all([
216
+ getVersions(repoPath),
217
+ getDistTags(repoPath),
218
+ ]);
219
+ // Map dist-tags to versions
220
+ const distTags = {};
221
+ for (const tagInfo of distTagInfos) {
222
+ if (tagInfo.semverTag) {
223
+ const version = allVersions.find(v => v.git.tag === tagInfo.semverTag);
224
+ if (version) {
225
+ distTags[tagInfo.name] = version;
226
+ }
227
+ }
228
+ }
229
+ // Separate stable and prerelease versions
230
+ const stable = allVersions.filter(v => !v.isPrerelease);
231
+ const prerelease = allVersions.filter(v => v.isPrerelease);
232
+ return {
233
+ distTags,
234
+ versions: allVersions,
235
+ stable,
236
+ prerelease,
237
+ };
238
+ }
239
+ // Legacy class export for backward compatibility
240
+ // TODO: Remove this once all usages are migrated
241
+ export class VersionHistory {
242
+ static parseSemver = parseSemver;
243
+ static isSemverTag = isSemverTag;
244
+ static isPrerelease = isPrerelease;
245
+ static isStableVersion = isStableVersion;
246
+ static getDeploymentPath = getDeploymentPath;
247
+ }
248
+ //# sourceMappingURL=version-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-history.js","sourceRoot":"","sources":["../../../src/lib/version-history/version-history.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,IAAI,WAAW,EACpB,UAAU,IAAI,gBAAgB,GAE/B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAkB,SAAS,EAAE,MAAM,YAAY,CAAA;AAKtD,6BAA6B;AAC7B,SAA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YACtE,IAAI,OAAO,EAAE,CAAC;gBACZ,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAA;YAClC,CAAC;QACH,CAAC;IACH,CAAC;IAED,0CAA0C;IAC1C,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IACvD,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAE1D,OAAO;QACL,QAAQ;QACR,QAAQ,EAAE,WAAW;QACrB,MAAM;QACN,UAAU;KACX,CAAA;AACH,CAAC;AAED,iDAAiD;AACjD,iDAAiD;AACjD,MAAM,OAAO,cAAc;IACzB,MAAM,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,MAAM,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,MAAM,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,MAAM,CAAC,eAAe,GAAG,eAAe,CAAA;IACxC,MAAM,CAAC,iBAAiB,GAAG,iBAAiB,CAAA"}
@@ -1,3 +1,3 @@
1
- import { Debug } from '#lib/debug/index';
1
+ import { Debug } from '@wollybeard/kit';
2
2
  export declare const debug: Debug.Debug;
3
3
  //# sourceMappingURL=debug.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAExC,eAAO,MAAM,KAAK,aAA+B,CAAA"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,eAAO,MAAM,KAAK,aAA+B,CAAA"}
@@ -1,3 +1,3 @@
1
- import { Debug } from '#lib/debug/index';
1
+ import { Debug } from '@wollybeard/kit';
2
2
  export const debug = Debug.create(`vite-virtual`);
3
3
  //# sourceMappingURL=debug.js.map