polen 0.11.0-next.15 → 0.11.0-next.16

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 (1118) hide show
  1. package/build/api/{api.d.ts → $$.d.ts} +6 -3
  2. package/build/api/$$.d.ts.map +1 -0
  3. package/build/api/$$.js +13 -0
  4. package/build/api/$$.js.map +1 -0
  5. package/build/api/$.d.ts +2 -0
  6. package/build/api/$.d.ts.map +1 -0
  7. package/build/api/$.js +2 -0
  8. package/build/api/$.js.map +1 -0
  9. package/build/api/config/$$.d.ts +1 -0
  10. package/build/api/config/$$.d.ts.map +1 -1
  11. package/build/api/config/$$.js +1 -0
  12. package/build/api/config/$$.js.map +1 -1
  13. package/build/api/config/home.d.ts +639 -0
  14. package/build/api/config/home.d.ts.map +1 -0
  15. package/build/api/config/home.js +487 -0
  16. package/build/api/config/home.js.map +1 -0
  17. package/build/api/config/input.d.ts +1307 -9
  18. package/build/api/config/input.d.ts.map +1 -1
  19. package/build/api/config/input.js +102 -24
  20. package/build/api/config/input.js.map +1 -1
  21. package/build/api/config/normalized.d.ts +2261 -129
  22. package/build/api/config/normalized.d.ts.map +1 -1
  23. package/build/api/config/normalized.js +424 -27
  24. package/build/api/config/normalized.js.map +1 -1
  25. package/build/api/config-template/template.d.ts +2991 -0
  26. package/build/api/config-template/template.d.ts.map +1 -0
  27. package/build/api/config-template/template.js +53 -0
  28. package/build/api/config-template/template.js.map +1 -0
  29. package/build/api/content/$$.d.ts +1 -0
  30. package/build/api/content/$$.d.ts.map +1 -1
  31. package/build/api/content/$$.js +1 -0
  32. package/build/api/content/$$.js.map +1 -1
  33. package/build/api/content/mdx-compiler.d.ts +54 -0
  34. package/build/api/content/mdx-compiler.d.ts.map +1 -0
  35. package/build/api/content/mdx-compiler.js +68 -0
  36. package/build/api/content/mdx-compiler.js.map +1 -0
  37. package/build/api/content/navbar.js +1 -1
  38. package/build/api/content/navbar.js.map +1 -1
  39. package/build/api/examples/$$.d.ts +8 -0
  40. package/build/api/examples/$$.d.ts.map +1 -0
  41. package/build/api/examples/$$.js +8 -0
  42. package/build/api/examples/$$.js.map +1 -0
  43. package/build/api/examples/$.d.ts +2 -0
  44. package/build/api/examples/$.d.ts.map +1 -0
  45. package/build/api/examples/$.js +2 -0
  46. package/build/api/examples/$.js.map +1 -0
  47. package/build/api/examples/config.d.ts +709 -0
  48. package/build/api/examples/config.d.ts.map +1 -0
  49. package/build/api/examples/config.js +169 -0
  50. package/build/api/examples/config.js.map +1 -0
  51. package/build/api/examples/diagnostic/diagnostic.d.ts +152 -0
  52. package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -0
  53. package/build/api/examples/diagnostic/diagnostic.js +20 -0
  54. package/build/api/examples/diagnostic/diagnostic.js.map +1 -0
  55. package/build/api/examples/diagnostic/duplicate-content.d.ts +55 -0
  56. package/build/api/examples/diagnostic/duplicate-content.d.ts.map +1 -0
  57. package/build/api/examples/diagnostic/duplicate-content.js +22 -0
  58. package/build/api/examples/diagnostic/duplicate-content.js.map +1 -0
  59. package/build/api/examples/diagnostic/invalid-filename.d.ts +43 -0
  60. package/build/api/examples/diagnostic/invalid-filename.d.ts.map +1 -0
  61. package/build/api/examples/diagnostic/invalid-filename.js +16 -0
  62. package/build/api/examples/diagnostic/invalid-filename.js.map +1 -0
  63. package/build/api/examples/diagnostic/missing-versions.d.ts +51 -0
  64. package/build/api/examples/diagnostic/missing-versions.d.ts.map +1 -0
  65. package/build/api/examples/diagnostic/missing-versions.js +20 -0
  66. package/build/api/examples/diagnostic/missing-versions.js.map +1 -0
  67. package/build/api/examples/diagnostic/unknown-version.d.ts +51 -0
  68. package/build/api/examples/diagnostic/unknown-version.d.ts.map +1 -0
  69. package/build/api/examples/diagnostic/unknown-version.js +20 -0
  70. package/build/api/examples/diagnostic/unknown-version.js.map +1 -0
  71. package/build/api/examples/diagnostic/unused-default.d.ts +49 -0
  72. package/build/api/examples/diagnostic/unused-default.d.ts.map +1 -0
  73. package/build/api/examples/diagnostic/unused-default.js +19 -0
  74. package/build/api/examples/diagnostic/unused-default.js.map +1 -0
  75. package/build/api/examples/diagnostic/validation-error.d.ts +63 -0
  76. package/build/api/examples/diagnostic/validation-error.d.ts.map +1 -0
  77. package/build/api/examples/diagnostic/validation-error.js +21 -0
  78. package/build/api/examples/diagnostic/validation-error.js.map +1 -0
  79. package/build/api/examples/diagnostic/validator.d.ts +13 -0
  80. package/build/api/examples/diagnostic/validator.d.ts.map +1 -0
  81. package/build/api/examples/diagnostic/validator.js +116 -0
  82. package/build/api/examples/diagnostic/validator.js.map +1 -0
  83. package/build/api/examples/filter.d.ts +19 -0
  84. package/build/api/examples/filter.d.ts.map +1 -0
  85. package/build/api/examples/filter.js +64 -0
  86. package/build/api/examples/filter.js.map +1 -0
  87. package/build/api/examples/scanner.d.ts +18 -0
  88. package/build/api/examples/scanner.d.ts.map +1 -0
  89. package/build/api/examples/scanner.js +264 -0
  90. package/build/api/examples/scanner.js.map +1 -0
  91. package/build/api/examples/schemas/catalog.d.ts +248 -0
  92. package/build/api/examples/schemas/catalog.d.ts.map +1 -0
  93. package/build/api/examples/schemas/catalog.js +42 -0
  94. package/build/api/examples/schemas/catalog.js.map +1 -0
  95. package/build/api/examples/schemas/example/$$.d.ts +2 -0
  96. package/build/api/examples/schemas/example/$$.d.ts.map +1 -0
  97. package/build/api/examples/schemas/example/$$.js +2 -0
  98. package/build/api/examples/schemas/example/$$.js.map +1 -0
  99. package/build/api/examples/schemas/example/$.d.ts +2 -0
  100. package/build/api/examples/schemas/example/$.d.ts.map +1 -0
  101. package/build/api/examples/schemas/example/$.js +2 -0
  102. package/build/api/examples/schemas/example/$.js.map +1 -0
  103. package/build/api/examples/schemas/example/example.d.ts +134 -0
  104. package/build/api/examples/schemas/example/example.d.ts.map +1 -0
  105. package/build/api/examples/schemas/example/example.js +51 -0
  106. package/build/api/examples/schemas/example/example.js.map +1 -0
  107. package/build/api/examples/schemas/type-usage-index.d.ts +72 -0
  108. package/build/api/examples/schemas/type-usage-index.d.ts.map +1 -0
  109. package/build/api/examples/schemas/type-usage-index.js +64 -0
  110. package/build/api/examples/schemas/type-usage-index.js.map +1 -0
  111. package/build/api/examples/type-generator.d.ts +8 -0
  112. package/build/api/examples/type-generator.d.ts.map +1 -0
  113. package/build/api/examples/type-generator.js +36 -0
  114. package/build/api/examples/type-generator.js.map +1 -0
  115. package/build/api/examples/type-usage-indexer.d.ts +18 -0
  116. package/build/api/examples/type-usage-indexer.d.ts.map +1 -0
  117. package/build/api/examples/type-usage-indexer.js +220 -0
  118. package/build/api/examples/type-usage-indexer.js.map +1 -0
  119. package/build/api/iso/schema/routing.js +2 -2
  120. package/build/api/iso/schema/routing.js.map +1 -1
  121. package/build/api/project/$$.d.ts +2 -0
  122. package/build/api/project/$$.d.ts.map +1 -0
  123. package/build/api/project/$$.js +2 -0
  124. package/build/api/project/$$.js.map +1 -0
  125. package/build/api/project/$.d.ts +2 -0
  126. package/build/api/project/$.d.ts.map +1 -0
  127. package/build/api/project/$.js +2 -0
  128. package/build/api/project/$.js.map +1 -0
  129. package/build/api/schema/config-schema.d.ts +3 -3
  130. package/build/api/schema/input-sources/directory.d.ts +31 -31
  131. package/build/api/schema/input-sources/file.d.ts +31 -31
  132. package/build/api/schema/input-sources/introspection-file.d.ts +31 -31
  133. package/build/api/schema/input-sources/introspection.d.ts +31 -31
  134. package/build/api/schema/input-sources/memory.d.ts +31 -31
  135. package/build/api/schema/input-sources/versioned-directory.d.ts +65 -76
  136. package/build/api/schema/input-sources/versioned-directory.d.ts.map +1 -1
  137. package/build/api/schema/input-sources/versioned-directory.js +4 -4
  138. package/build/api/schema/input-sources/versioned-directory.js.map +1 -1
  139. package/build/api/typings/$$.d.ts +2 -0
  140. package/build/api/typings/$$.d.ts.map +1 -0
  141. package/build/api/typings/$$.js +2 -0
  142. package/build/api/typings/$$.js.map +1 -0
  143. package/build/api/typings/$.d.ts +2 -0
  144. package/build/api/typings/$.d.ts.map +1 -0
  145. package/build/api/typings/$.js +2 -0
  146. package/build/api/typings/$.js.map +1 -0
  147. package/build/api/typings/typings.d.ts +88 -0
  148. package/build/api/typings/typings.d.ts.map +1 -0
  149. package/build/api/typings/typings.js +180 -0
  150. package/build/api/typings/typings.js.map +1 -0
  151. package/build/cli/_/parameters.d.ts +4 -4
  152. package/build/cli/_/parameters.d.ts.map +1 -1
  153. package/build/cli/_/parameters.js +4 -10
  154. package/build/cli/_/parameters.js.map +1 -1
  155. package/build/cli/commands/build.d.ts +9 -10
  156. package/build/cli/commands/build.d.ts.map +1 -1
  157. package/build/cli/commands/build.js +36 -50
  158. package/build/cli/commands/build.js.map +1 -1
  159. package/build/cli/commands/cache/delete.d.ts +6 -1
  160. package/build/cli/commands/cache/delete.d.ts.map +1 -1
  161. package/build/cli/commands/cache/delete.js +12 -20
  162. package/build/cli/commands/cache/delete.js.map +1 -1
  163. package/build/cli/commands/cache/show.d.ts +5 -1
  164. package/build/cli/commands/cache/show.d.ts.map +1 -1
  165. package/build/cli/commands/cache/show.js +51 -59
  166. package/build/cli/commands/cache/show.js.map +1 -1
  167. package/build/cli/commands/cache.d.ts +10 -2
  168. package/build/cli/commands/cache.d.ts.map +1 -1
  169. package/build/cli/commands/cache.js +17 -6
  170. package/build/cli/commands/cache.js.map +1 -1
  171. package/build/cli/commands/config/create.d.ts +6 -1
  172. package/build/cli/commands/config/create.d.ts.map +1 -1
  173. package/build/cli/commands/config/create.js +27 -24
  174. package/build/cli/commands/config/create.js.map +1 -1
  175. package/build/cli/commands/config.d.ts +7 -2
  176. package/build/cli/commands/config.d.ts.map +1 -1
  177. package/build/cli/commands/config.js +15 -6
  178. package/build/cli/commands/config.js.map +1 -1
  179. package/build/cli/commands/create.d.ts +9 -1
  180. package/build/cli/commands/create.d.ts.map +1 -1
  181. package/build/cli/commands/create.js +63 -61
  182. package/build/cli/commands/create.js.map +1 -1
  183. package/build/cli/commands/dev.d.ts +9 -1
  184. package/build/cli/commands/dev.d.ts.map +1 -1
  185. package/build/cli/commands/dev.js +41 -51
  186. package/build/cli/commands/dev.js.map +1 -1
  187. package/build/cli/commands/hero-image.d.ts +8 -0
  188. package/build/cli/commands/hero-image.d.ts.map +1 -0
  189. package/build/cli/commands/hero-image.js +235 -0
  190. package/build/cli/commands/hero-image.js.map +1 -0
  191. package/build/cli/commands/open.d.ts +10 -1
  192. package/build/cli/commands/open.d.ts.map +1 -1
  193. package/build/cli/commands/open.js +93 -107
  194. package/build/cli/commands/open.js.map +1 -1
  195. package/build/cli/commands/static/rebase.d.ts +8 -1
  196. package/build/cli/commands/static/rebase.d.ts.map +1 -1
  197. package/build/cli/commands/static/rebase.js +43 -29
  198. package/build/cli/commands/static/rebase.js.map +1 -1
  199. package/build/cli/commands/static.d.ts +9 -2
  200. package/build/cli/commands/static.d.ts.map +1 -1
  201. package/build/cli/commands/static.js +28 -6
  202. package/build/cli/commands/static.js.map +1 -1
  203. package/build/cli/index.d.ts +54 -1
  204. package/build/cli/index.d.ts.map +1 -1
  205. package/build/cli/index.js +77 -8
  206. package/build/cli/index.js.map +1 -1
  207. package/build/lib/ai-image-generation/$$.d.ts +3 -0
  208. package/build/lib/ai-image-generation/$$.d.ts.map +1 -0
  209. package/build/lib/ai-image-generation/$$.js +3 -0
  210. package/build/lib/ai-image-generation/$$.js.map +1 -0
  211. package/build/lib/ai-image-generation/$.d.ts +2 -0
  212. package/build/lib/ai-image-generation/$.d.ts.map +1 -0
  213. package/build/lib/ai-image-generation/$.js +2 -0
  214. package/build/lib/ai-image-generation/$.js.map +1 -0
  215. package/build/lib/ai-image-generation/ai-image-generation.d.ts +132 -0
  216. package/build/lib/ai-image-generation/ai-image-generation.d.ts.map +1 -0
  217. package/build/lib/ai-image-generation/ai-image-generation.js +170 -0
  218. package/build/lib/ai-image-generation/ai-image-generation.js.map +1 -0
  219. package/build/lib/ai-image-generation/providers/pollinations.d.ts +22 -0
  220. package/build/lib/ai-image-generation/providers/pollinations.d.ts.map +1 -0
  221. package/build/lib/ai-image-generation/providers/pollinations.js +45 -0
  222. package/build/lib/ai-image-generation/providers/pollinations.js.map +1 -0
  223. package/build/lib/ai-image-generation/service.d.ts +42 -0
  224. package/build/lib/ai-image-generation/service.d.ts.map +1 -0
  225. package/build/lib/ai-image-generation/service.js +147 -0
  226. package/build/lib/ai-image-generation/service.js.map +1 -0
  227. package/build/lib/catalog/catalog.d.ts +7811 -706
  228. package/build/lib/catalog/catalog.d.ts.map +1 -1
  229. package/build/lib/catalog/catalog.js +30 -1
  230. package/build/lib/catalog/catalog.js.map +1 -1
  231. package/build/lib/catalog/unversioned.d.ts +245 -245
  232. package/build/lib/catalog/unversioned.d.ts.map +1 -1
  233. package/build/lib/catalog/versioned.d.ts +513 -592
  234. package/build/lib/catalog/versioned.d.ts.map +1 -1
  235. package/build/lib/catalog/versioned.js +18 -0
  236. package/build/lib/catalog/versioned.js.map +1 -1
  237. package/build/lib/catalog-statistics/$$.d.ts +5 -0
  238. package/build/lib/catalog-statistics/$$.d.ts.map +1 -0
  239. package/build/lib/catalog-statistics/$$.js +5 -0
  240. package/build/lib/catalog-statistics/$$.js.map +1 -0
  241. package/build/lib/catalog-statistics/$.d.ts +2 -0
  242. package/build/lib/catalog-statistics/$.d.ts.map +1 -0
  243. package/build/lib/catalog-statistics/$.js +2 -0
  244. package/build/lib/catalog-statistics/$.js.map +1 -0
  245. package/build/lib/catalog-statistics/analyze-catalog.d.ts +8 -0
  246. package/build/lib/catalog-statistics/analyze-catalog.d.ts.map +1 -0
  247. package/build/lib/catalog-statistics/analyze-catalog.js +132 -0
  248. package/build/lib/catalog-statistics/analyze-catalog.js.map +1 -0
  249. package/build/lib/catalog-statistics/analyze-options.d.ts +16 -0
  250. package/build/lib/catalog-statistics/analyze-options.d.ts.map +1 -0
  251. package/build/lib/catalog-statistics/analyze-options.js +2 -0
  252. package/build/lib/catalog-statistics/analyze-options.js.map +1 -0
  253. package/build/lib/catalog-statistics/analyze-schema.d.ts +8 -0
  254. package/build/lib/catalog-statistics/analyze-schema.d.ts.map +1 -0
  255. package/build/lib/catalog-statistics/analyze-schema.js +185 -0
  256. package/build/lib/catalog-statistics/analyze-schema.js.map +1 -0
  257. package/build/lib/catalog-statistics/data.d.ts +195 -0
  258. package/build/lib/catalog-statistics/data.d.ts.map +1 -0
  259. package/build/lib/catalog-statistics/data.js +176 -0
  260. package/build/lib/catalog-statistics/data.js.map +1 -0
  261. package/build/lib/catalog-statistics/report.d.ts +841 -0
  262. package/build/lib/catalog-statistics/report.d.ts.map +1 -0
  263. package/build/lib/catalog-statistics/report.js +37 -0
  264. package/build/lib/catalog-statistics/report.js.map +1 -0
  265. package/build/lib/change/change.d.ts +185 -185
  266. package/build/lib/change/change.d.ts.map +1 -1
  267. package/build/lib/change/criticality.d.ts +2 -2
  268. package/build/lib/change/criticality.d.ts.map +1 -1
  269. package/build/lib/date-only/date-only.d.ts +1 -1
  270. package/build/lib/date-only/date-only.d.ts.map +1 -1
  271. package/build/lib/diagnostic/$$.d.ts +6 -0
  272. package/build/lib/diagnostic/$$.d.ts.map +1 -0
  273. package/build/lib/diagnostic/$$.js +6 -0
  274. package/build/lib/diagnostic/$$.js.map +1 -0
  275. package/build/lib/diagnostic/$.d.ts +2 -0
  276. package/build/lib/diagnostic/$.d.ts.map +1 -0
  277. package/build/lib/diagnostic/$.js +2 -0
  278. package/build/lib/diagnostic/$.js.map +1 -0
  279. package/build/lib/diagnostic/control.d.ts +79 -0
  280. package/build/lib/diagnostic/control.d.ts.map +1 -0
  281. package/build/lib/diagnostic/control.js +107 -0
  282. package/build/lib/diagnostic/control.js.map +1 -0
  283. package/build/lib/diagnostic/diagnostic.d.ts +130 -0
  284. package/build/lib/diagnostic/diagnostic.d.ts.map +1 -0
  285. package/build/lib/diagnostic/diagnostic.js +106 -0
  286. package/build/lib/diagnostic/diagnostic.js.map +1 -0
  287. package/build/lib/diagnostic/filter.d.ts +11 -0
  288. package/build/lib/diagnostic/filter.d.ts.map +1 -0
  289. package/build/lib/diagnostic/filter.js +16 -0
  290. package/build/lib/diagnostic/filter.js.map +1 -0
  291. package/build/lib/diagnostic/reporter.d.ts +22 -0
  292. package/build/lib/diagnostic/reporter.d.ts.map +1 -0
  293. package/build/lib/diagnostic/reporter.js +66 -0
  294. package/build/lib/diagnostic/reporter.js.map +1 -0
  295. package/build/lib/diagnostic/severity.d.ts +32 -0
  296. package/build/lib/diagnostic/severity.d.ts.map +1 -0
  297. package/build/lib/diagnostic/severity.js +73 -0
  298. package/build/lib/diagnostic/severity.js.map +1 -0
  299. package/build/lib/directed-filter/$$.d.ts +2 -0
  300. package/build/lib/directed-filter/$$.d.ts.map +1 -0
  301. package/build/lib/directed-filter/$$.js +2 -0
  302. package/build/lib/directed-filter/$$.js.map +1 -0
  303. package/build/lib/directed-filter/$.d.ts +2 -0
  304. package/build/lib/directed-filter/$.d.ts.map +1 -0
  305. package/build/lib/directed-filter/$.js +2 -0
  306. package/build/lib/directed-filter/$.js.map +1 -0
  307. package/build/lib/directed-filter/directed-filter.d.ts +127 -0
  308. package/build/lib/directed-filter/directed-filter.d.ts.map +1 -0
  309. package/build/lib/directed-filter/directed-filter.js +153 -0
  310. package/build/lib/directed-filter/directed-filter.js.map +1 -0
  311. package/build/lib/document/$$.d.ts +4 -0
  312. package/build/lib/document/$$.d.ts.map +1 -0
  313. package/build/lib/document/$$.js +4 -0
  314. package/build/lib/document/$$.js.map +1 -0
  315. package/build/lib/document/$.d.ts +2 -0
  316. package/build/lib/document/$.d.ts.map +1 -0
  317. package/build/lib/document/$.js +2 -0
  318. package/build/lib/document/$.js.map +1 -0
  319. package/build/lib/document/document.d.ts +59 -0
  320. package/build/lib/document/document.d.ts.map +1 -0
  321. package/build/lib/document/document.js +23 -0
  322. package/build/lib/document/document.js.map +1 -0
  323. package/build/lib/document/unversioned.d.ts +38 -0
  324. package/build/lib/document/unversioned.d.ts.map +1 -0
  325. package/build/lib/document/unversioned.js +22 -0
  326. package/build/lib/document/unversioned.js.map +1 -0
  327. package/build/lib/document/versioned.d.ts +58 -0
  328. package/build/lib/document/versioned.d.ts.map +1 -0
  329. package/build/lib/document/versioned.js +82 -0
  330. package/build/lib/document/versioned.js.map +1 -0
  331. package/build/lib/effect-cli-help-markdown/$$.d.ts +2 -0
  332. package/build/lib/effect-cli-help-markdown/$$.d.ts.map +1 -0
  333. package/build/lib/effect-cli-help-markdown/$$.js +2 -0
  334. package/build/lib/effect-cli-help-markdown/$$.js.map +1 -0
  335. package/build/lib/effect-cli-help-markdown/$.d.ts +2 -0
  336. package/build/lib/effect-cli-help-markdown/$.d.ts.map +1 -0
  337. package/build/lib/effect-cli-help-markdown/$.js +2 -0
  338. package/build/lib/effect-cli-help-markdown/$.js.map +1 -0
  339. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts +32 -0
  340. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts.map +1 -0
  341. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js +477 -0
  342. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js.map +1 -0
  343. package/build/lib/effect-glob/$$.d.ts +2 -0
  344. package/build/lib/effect-glob/$$.d.ts.map +1 -0
  345. package/build/lib/effect-glob/$$.js +2 -0
  346. package/build/lib/effect-glob/$$.js.map +1 -0
  347. package/build/lib/effect-glob/$.d.ts +2 -0
  348. package/build/lib/effect-glob/$.d.ts.map +1 -0
  349. package/build/lib/effect-glob/$.js +2 -0
  350. package/build/lib/effect-glob/$.js.map +1 -0
  351. package/build/lib/effect-glob/effect-glob.d.ts +13 -0
  352. package/build/lib/effect-glob/effect-glob.d.ts.map +1 -0
  353. package/build/lib/effect-glob/effect-glob.js +18 -0
  354. package/build/lib/effect-glob/effect-glob.js.map +1 -0
  355. package/build/lib/file-path/$$.d.ts +3 -0
  356. package/build/lib/file-path/$$.d.ts.map +1 -1
  357. package/build/lib/file-path/$$.js +3 -3
  358. package/build/lib/file-path/$$.js.map +1 -1
  359. package/build/lib/file-path/$.d.ts +1 -1
  360. package/build/lib/file-path/$.d.ts.map +1 -1
  361. package/build/lib/file-path/$.js +1 -1
  362. package/build/lib/file-path/$.js.map +1 -1
  363. package/build/lib/file-path/absolute.d.ts +38 -0
  364. package/build/lib/file-path/absolute.d.ts.map +1 -0
  365. package/build/lib/file-path/absolute.js +47 -0
  366. package/build/lib/file-path/absolute.js.map +1 -0
  367. package/build/lib/file-path/file-path.d.ts +41 -43
  368. package/build/lib/file-path/file-path.d.ts.map +1 -1
  369. package/build/lib/file-path/file-path.js +15 -87
  370. package/build/lib/file-path/file-path.js.map +1 -1
  371. package/build/lib/file-path/relative.d.ts +38 -0
  372. package/build/lib/file-path/relative.d.ts.map +1 -0
  373. package/build/lib/file-path/relative.js +51 -0
  374. package/build/lib/file-path/relative.js.map +1 -0
  375. package/build/lib/file-path/segment/$.d.ts +2 -0
  376. package/build/lib/file-path/segment/$.d.ts.map +1 -0
  377. package/build/lib/file-path/segment/$.js +2 -0
  378. package/build/lib/file-path/segment/$.js.map +1 -0
  379. package/build/lib/file-path/segment/segment.d.ts +45 -0
  380. package/build/lib/file-path/segment/segment.d.ts.map +1 -0
  381. package/build/lib/file-path/segment/segment.js +96 -0
  382. package/build/lib/file-path/segment/segment.js.map +1 -0
  383. package/build/lib/file-router/linter.d.ts +214 -34
  384. package/build/lib/file-router/linter.d.ts.map +1 -1
  385. package/build/lib/file-router/linter.js +66 -12
  386. package/build/lib/file-router/linter.js.map +1 -1
  387. package/build/lib/graph/graph.d.ts +1 -1
  388. package/build/lib/graph/graph.d.ts.map +1 -1
  389. package/build/lib/graphql-error/$$.d.ts +2 -0
  390. package/build/lib/graphql-error/$$.d.ts.map +1 -0
  391. package/build/lib/graphql-error/$$.js +2 -0
  392. package/build/lib/graphql-error/$$.js.map +1 -0
  393. package/build/lib/graphql-error/$.d.ts +2 -0
  394. package/build/lib/graphql-error/$.d.ts.map +1 -0
  395. package/build/lib/graphql-error/$.js +2 -0
  396. package/build/lib/graphql-error/$.js.map +1 -0
  397. package/build/lib/graphql-error/graphql-error.d.ts +150 -0
  398. package/build/lib/graphql-error/graphql-error.d.ts.map +1 -0
  399. package/build/lib/graphql-error/graphql-error.js +57 -0
  400. package/build/lib/graphql-error/graphql-error.js.map +1 -0
  401. package/build/lib/kit-temp/effect.d.ts +14 -0
  402. package/build/lib/kit-temp/effect.d.ts.map +1 -1
  403. package/build/lib/kit-temp/effect.js +29 -0
  404. package/build/lib/kit-temp/effect.js.map +1 -1
  405. package/build/lib/kit-temp/ob.d.ts +4 -0
  406. package/build/lib/kit-temp/ob.d.ts.map +1 -1
  407. package/build/lib/kit-temp/ob.js +3 -1
  408. package/build/lib/kit-temp/ob.js.map +1 -1
  409. package/build/lib/kit-temp/resource.d.ts +1 -2
  410. package/build/lib/kit-temp/resource.d.ts.map +1 -1
  411. package/build/lib/kit-temp/resource.js +1 -2
  412. package/build/lib/kit-temp/resource.js.map +1 -1
  413. package/build/lib/react-router-effect/route-helpers.d.ts +9 -3
  414. package/build/lib/react-router-effect/route-helpers.d.ts.map +1 -1
  415. package/build/lib/react-router-effect/route-helpers.js +54 -6
  416. package/build/lib/react-router-effect/route-helpers.js.map +1 -1
  417. package/build/lib/react-router-effect/route.d.ts.map +1 -1
  418. package/build/lib/react-router-effect/route.js +13 -1
  419. package/build/lib/react-router-effect/route.js.map +1 -1
  420. package/build/lib/react-router-effect/types.d.ts +10 -2
  421. package/build/lib/react-router-effect/types.d.ts.map +1 -1
  422. package/build/lib/react-router-effect/use-loader-data.d.ts +3 -3
  423. package/build/lib/react-router-effect/use-loader-data.d.ts.map +1 -1
  424. package/build/lib/react-router-effect/use-loader-data.js +2 -2
  425. package/build/lib/react-router-effect/use-loader-data.js.map +1 -1
  426. package/build/lib/revision/revision.d.ts +925 -925
  427. package/build/lib/revision/revision.d.ts.map +1 -1
  428. package/build/lib/schema/schema.d.ts +553 -629
  429. package/build/lib/schema/schema.d.ts.map +1 -1
  430. package/build/lib/schema/unversioned.d.ts +865 -865
  431. package/build/lib/schema/unversioned.d.ts.map +1 -1
  432. package/build/lib/schema/versioned.d.ts +495 -583
  433. package/build/lib/schema/versioned.d.ts.map +1 -1
  434. package/build/lib/schema-definition/schema-definition.d.ts +1 -1
  435. package/build/lib/schema-definition/schema-definition.d.ts.map +1 -1
  436. package/build/lib/semver/official-release.d.ts +1 -1
  437. package/build/lib/semver/official-release.d.ts.map +1 -1
  438. package/build/lib/semver/pre-release.d.ts +1 -1
  439. package/build/lib/semver/pre-release.d.ts.map +1 -1
  440. package/build/lib/semver/semver.d.ts +1 -1
  441. package/build/lib/semver/semver.d.ts.map +1 -1
  442. package/build/lib/swiss/$$.d.ts +5 -0
  443. package/build/lib/swiss/$$.d.ts.map +1 -0
  444. package/build/lib/swiss/$$.js +6 -0
  445. package/build/lib/swiss/$$.js.map +1 -0
  446. package/build/lib/swiss/$.d.ts +2 -0
  447. package/build/lib/swiss/$.d.ts.map +1 -0
  448. package/build/lib/swiss/$.js +3 -0
  449. package/build/lib/swiss/$.js.map +1 -0
  450. package/build/lib/swiss/grid.d.ts +17 -0
  451. package/build/lib/swiss/grid.d.ts.map +1 -0
  452. package/build/lib/swiss/grid.js +30 -0
  453. package/build/lib/swiss/grid.js.map +1 -0
  454. package/build/lib/swiss/items.d.ts +53 -0
  455. package/build/lib/swiss/items.d.ts.map +1 -0
  456. package/build/lib/swiss/items.js +188 -0
  457. package/build/lib/swiss/items.js.map +1 -0
  458. package/build/lib/swiss/styles.css +298 -0
  459. package/build/lib/swiss/subgrid.d.ts +25 -0
  460. package/build/lib/swiss/subgrid.d.ts.map +1 -0
  461. package/build/lib/swiss/subgrid.js +48 -0
  462. package/build/lib/swiss/subgrid.js.map +1 -0
  463. package/build/lib/swiss/types.d.ts +340 -0
  464. package/build/lib/swiss/types.d.ts.map +1 -0
  465. package/build/lib/swiss/types.js +2 -0
  466. package/build/lib/swiss/types.js.map +1 -0
  467. package/build/lib/swiss/utils.d.ts +37 -0
  468. package/build/lib/swiss/utils.d.ts.map +1 -0
  469. package/build/lib/swiss/utils.js +163 -0
  470. package/build/lib/swiss/utils.js.map +1 -0
  471. package/build/lib/version/custom.d.ts +11 -30
  472. package/build/lib/version/custom.d.ts.map +1 -1
  473. package/build/lib/version/custom.js +3 -7
  474. package/build/lib/version/custom.js.map +1 -1
  475. package/build/lib/version/date.d.ts +11 -30
  476. package/build/lib/version/date.d.ts.map +1 -1
  477. package/build/lib/version/date.js +3 -7
  478. package/build/lib/version/date.js.map +1 -1
  479. package/build/lib/version/integer.d.ts +11 -30
  480. package/build/lib/version/integer.d.ts.map +1 -1
  481. package/build/lib/version/integer.js +3 -7
  482. package/build/lib/version/integer.js.map +1 -1
  483. package/build/lib/version/semver.d.ts +11 -30
  484. package/build/lib/version/semver.d.ts.map +1 -1
  485. package/build/lib/version/semver.js +3 -7
  486. package/build/lib/version/semver.js.map +1 -1
  487. package/build/lib/version/version.d.ts +17 -333
  488. package/build/lib/version/version.d.ts.map +1 -1
  489. package/build/lib/version/version.js +11 -11
  490. package/build/lib/version/version.js.map +1 -1
  491. package/build/lib/version-selection/$$.d.ts +2 -0
  492. package/build/lib/version-selection/$$.d.ts.map +1 -0
  493. package/build/lib/version-selection/$$.js +2 -0
  494. package/build/lib/version-selection/$$.js.map +1 -0
  495. package/build/lib/version-selection/$.d.ts +2 -0
  496. package/build/lib/version-selection/$.d.ts.map +1 -0
  497. package/build/lib/version-selection/$.js +2 -0
  498. package/build/lib/version-selection/$.js.map +1 -0
  499. package/build/lib/version-selection/version-selection.d.ts +42 -0
  500. package/build/lib/version-selection/version-selection.d.ts.map +1 -0
  501. package/build/lib/version-selection/version-selection.js +86 -0
  502. package/build/lib/version-selection/version-selection.js.map +1 -0
  503. package/build/lib/vite-reactive/$$.d.ts +2 -0
  504. package/build/lib/vite-reactive/$$.d.ts.map +1 -0
  505. package/build/lib/vite-reactive/$$.js +2 -0
  506. package/build/lib/vite-reactive/$$.js.map +1 -0
  507. package/build/lib/vite-reactive/$.d.ts +2 -0
  508. package/build/lib/vite-reactive/$.d.ts.map +1 -0
  509. package/build/lib/vite-reactive/$.js +2 -0
  510. package/build/lib/vite-reactive/$.js.map +1 -0
  511. package/build/lib/vite-reactive/reactive-asset-plugin.d.ts +71 -0
  512. package/build/lib/vite-reactive/reactive-asset-plugin.d.ts.map +1 -0
  513. package/build/lib/vite-reactive/reactive-asset-plugin.js +155 -0
  514. package/build/lib/vite-reactive/reactive-asset-plugin.js.map +1 -0
  515. package/build/template/components/Carousel.d.ts +25 -0
  516. package/build/template/components/Carousel.d.ts.map +1 -0
  517. package/build/template/components/Carousel.js +134 -0
  518. package/build/template/components/Carousel.js.map +1 -0
  519. package/build/template/components/CarouselPill.d.ts +19 -0
  520. package/build/template/components/CarouselPill.d.ts.map +1 -0
  521. package/build/template/components/CarouselPill.js +31 -0
  522. package/build/template/components/CarouselPill.js.map +1 -0
  523. package/build/template/components/Changelog/Changelog.d.ts.map +1 -1
  524. package/build/template/components/Changelog/Changelog.js +16 -10
  525. package/build/template/components/Changelog/Changelog.js.map +1 -1
  526. package/build/template/components/Changelog/groups/TypeOperation.d.ts +2 -0
  527. package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
  528. package/build/template/components/Changelog/groups/TypeOperation.js +31 -5
  529. package/build/template/components/Changelog/groups/TypeOperation.js.map +1 -1
  530. package/build/template/components/CodeBlock.js +2 -2
  531. package/build/template/components/CodeBlock.js.map +1 -1
  532. package/build/template/components/DevelopmentTip.d.ts +13 -0
  533. package/build/template/components/DevelopmentTip.d.ts.map +1 -0
  534. package/build/template/components/DevelopmentTip.js +16 -0
  535. package/build/template/components/DevelopmentTip.js.map +1 -0
  536. package/build/template/components/ExampleLink.d.ts +11 -0
  537. package/build/template/components/ExampleLink.d.ts.map +1 -0
  538. package/build/template/components/ExampleLink.js +13 -0
  539. package/build/template/components/ExampleLink.js.map +1 -0
  540. package/build/template/components/Field.js +1 -1
  541. package/build/template/components/Field.js.map +1 -1
  542. package/build/template/components/GraphQLDocument.d.ts +25 -0
  543. package/build/template/components/GraphQLDocument.d.ts.map +1 -0
  544. package/build/template/components/GraphQLDocument.js +67 -0
  545. package/build/template/components/GraphQLDocument.js.map +1 -0
  546. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +6 -2
  547. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
  548. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +8 -2
  549. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
  550. package/build/template/components/HamburgerMenu.d.ts +11 -1
  551. package/build/template/components/HamburgerMenu.d.ts.map +1 -1
  552. package/build/template/components/HamburgerMenu.js.map +1 -1
  553. package/build/template/components/Logo.d.ts +8 -1
  554. package/build/template/components/Logo.d.ts.map +1 -1
  555. package/build/template/components/Logo.js +27 -12
  556. package/build/template/components/Logo.js.map +1 -1
  557. package/build/template/components/NamedType.d.ts.map +1 -1
  558. package/build/template/components/NamedType.js +12 -4
  559. package/build/template/components/NamedType.js.map +1 -1
  560. package/build/template/components/SimpleVersionPicker.d.ts +15 -0
  561. package/build/template/components/SimpleVersionPicker.d.ts.map +1 -0
  562. package/build/template/components/SimpleVersionPicker.js +15 -0
  563. package/build/template/components/SimpleVersionPicker.js.map +1 -0
  564. package/build/template/components/TypeAnnotation.d.ts.map +1 -1
  565. package/build/template/components/TypeAnnotation.js +8 -15
  566. package/build/template/components/TypeAnnotation.js.map +1 -1
  567. package/build/template/components/VersionCoveragePicker.d.ts +17 -0
  568. package/build/template/components/VersionCoveragePicker.d.ts.map +1 -0
  569. package/build/template/components/VersionCoveragePicker.js +28 -0
  570. package/build/template/components/VersionCoveragePicker.js.map +1 -0
  571. package/build/template/components/VersionPicker.d.ts.map +1 -1
  572. package/build/template/components/VersionPicker.js +9 -17
  573. package/build/template/components/VersionPicker.js.map +1 -1
  574. package/build/template/components/home/ExamplesSection.d.ts +13 -0
  575. package/build/template/components/home/ExamplesSection.d.ts.map +1 -0
  576. package/build/template/components/home/ExamplesSection.js +15 -0
  577. package/build/template/components/home/ExamplesSection.js.map +1 -0
  578. package/build/template/components/home/FeaturesGrid.d.ts +12 -0
  579. package/build/template/components/home/FeaturesGrid.d.ts.map +1 -0
  580. package/build/template/components/home/FeaturesGrid.js +73 -0
  581. package/build/template/components/home/FeaturesGrid.js.map +1 -0
  582. package/build/template/components/home/HeroSection.d.ts +16 -0
  583. package/build/template/components/home/HeroSection.d.ts.map +1 -0
  584. package/build/template/components/home/HeroSection.js +178 -0
  585. package/build/template/components/home/HeroSection.js.map +1 -0
  586. package/build/template/components/home/PlaygroundPreview.d.ts +9 -0
  587. package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -0
  588. package/build/template/components/home/PlaygroundPreview.js +38 -0
  589. package/build/template/components/home/PlaygroundPreview.js.map +1 -0
  590. package/build/template/components/home/QuickStart.d.ts +11 -0
  591. package/build/template/components/home/QuickStart.d.ts.map +1 -0
  592. package/build/template/components/home/QuickStart.js +74 -0
  593. package/build/template/components/home/QuickStart.js.map +1 -0
  594. package/build/template/components/home/RecentChanges.d.ts +8 -0
  595. package/build/template/components/home/RecentChanges.d.ts.map +1 -0
  596. package/build/template/components/home/RecentChanges.js +60 -0
  597. package/build/template/components/home/RecentChanges.js.map +1 -0
  598. package/build/template/components/home/Resources.d.ts +24 -0
  599. package/build/template/components/home/Resources.d.ts.map +1 -0
  600. package/build/template/components/home/Resources.js +53 -0
  601. package/build/template/components/home/Resources.js.map +1 -0
  602. package/build/template/components/home/SocialProof.d.ts +13 -0
  603. package/build/template/components/home/SocialProof.d.ts.map +1 -0
  604. package/build/template/components/home/SocialProof.js +47 -0
  605. package/build/template/components/home/SocialProof.js.map +1 -0
  606. package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -1
  607. package/build/template/components/navbar/DefaultNavbar.js +5 -6
  608. package/build/template/components/navbar/DefaultNavbar.js.map +1 -1
  609. package/build/template/components/sidebar/Sidebar.d.ts +10 -1
  610. package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
  611. package/build/template/components/sidebar/Sidebar.js.map +1 -1
  612. package/build/template/components/sidebar/SidebarItem.d.ts +11 -2
  613. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  614. package/build/template/components/sidebar/SidebarItem.js.map +1 -1
  615. package/build/template/components/swiss/SwissHeading.d.ts +10 -0
  616. package/build/template/components/swiss/SwissHeading.d.ts.map +1 -0
  617. package/build/template/components/swiss/SwissHeading.js +26 -0
  618. package/build/template/components/swiss/SwissHeading.js.map +1 -0
  619. package/build/template/components/swiss/index.d.ts +2 -0
  620. package/build/template/components/swiss/index.d.ts.map +1 -0
  621. package/build/template/components/swiss/index.js +2 -0
  622. package/build/template/components/swiss/index.js.map +1 -0
  623. package/build/template/contexts/GraphqlLifecycleContext.d.ts +1 -13
  624. package/build/template/contexts/GraphqlLifecycleContext.d.ts.map +1 -1
  625. package/build/template/entry.client.js +3 -3
  626. package/build/template/entry.client.js.map +1 -1
  627. package/build/template/hooks/use-examples.d.ts +38 -0
  628. package/build/template/hooks/use-examples.d.ts.map +1 -0
  629. package/build/template/hooks/use-examples.js +37 -0
  630. package/build/template/hooks/use-examples.js.map +1 -0
  631. package/build/template/hooks/use-highlighted.d.ts +14 -0
  632. package/build/template/hooks/use-highlighted.d.ts.map +1 -0
  633. package/build/template/hooks/use-highlighted.js +41 -0
  634. package/build/template/hooks/use-highlighted.js.map +1 -0
  635. package/build/template/layouts/SidebarLayout.d.ts +9 -1
  636. package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
  637. package/build/template/layouts/SidebarLayout.js +4 -7
  638. package/build/template/layouts/SidebarLayout.js.map +1 -1
  639. package/build/template/layouts/index.d.ts +0 -1
  640. package/build/template/layouts/index.d.ts.map +1 -1
  641. package/build/template/layouts/index.js +0 -1
  642. package/build/template/layouts/index.js.map +1 -1
  643. package/build/template/lib/polen-url.js +3 -3
  644. package/build/template/lib/polen-url.js.map +1 -1
  645. package/build/template/providers/mdx.d.ts +8 -0
  646. package/build/template/providers/mdx.d.ts.map +1 -0
  647. package/build/template/providers/mdx.js +44 -0
  648. package/build/template/providers/mdx.js.map +1 -0
  649. package/build/template/routes/changelog.d.ts +3 -18
  650. package/build/template/routes/changelog.d.ts.map +1 -1
  651. package/build/template/routes/changelog.js +157 -26
  652. package/build/template/routes/changelog.js.map +1 -1
  653. package/build/template/routes/examples/_.d.ts +65 -0
  654. package/build/template/routes/examples/_.d.ts.map +1 -0
  655. package/build/template/routes/examples/_.js +56 -0
  656. package/build/template/routes/examples/_.js.map +1 -0
  657. package/build/template/routes/examples/_index.d.ts +39 -0
  658. package/build/template/routes/examples/_index.d.ts.map +1 -0
  659. package/build/template/routes/examples/_index.js +54 -0
  660. package/build/template/routes/examples/_index.js.map +1 -0
  661. package/build/template/routes/examples/name.d.ts +31 -0
  662. package/build/template/routes/examples/name.d.ts.map +1 -0
  663. package/build/template/routes/examples/name.js +50 -0
  664. package/build/template/routes/examples/name.js.map +1 -0
  665. package/build/template/routes/index.d.ts +1 -1
  666. package/build/template/routes/index.d.ts.map +1 -1
  667. package/build/template/routes/index.js +23 -3
  668. package/build/template/routes/index.js.map +1 -1
  669. package/build/template/routes/pages.d.ts.map +1 -1
  670. package/build/template/routes/pages.js +4 -44
  671. package/build/template/routes/pages.js.map +1 -1
  672. package/build/template/routes/reference.d.ts.map +1 -1
  673. package/build/template/routes/reference.js +53 -38
  674. package/build/template/routes/reference.js.map +1 -1
  675. package/build/template/routes/root.d.ts +3 -2
  676. package/build/template/routes/root.d.ts.map +1 -1
  677. package/build/template/routes/root.js +57 -17
  678. package/build/template/routes/root.js.map +1 -1
  679. package/build/template/server/create-page-html-response.js +2 -2
  680. package/build/template/server/create-page-html-response.js.map +1 -1
  681. package/build/template/server/main.js +5 -5
  682. package/build/template/server/main.js.map +1 -1
  683. package/build/template/server/view.js +3 -3
  684. package/build/template/server/view.js.map +1 -1
  685. package/build/template/stores/changelog.d.ts +31 -31
  686. package/build/template/stores/changelog.js +3 -3
  687. package/build/template/stores/changelog.js.map +1 -1
  688. package/build/template/stores/schema.d.ts +1 -1
  689. package/build/template/stores/toast.d.ts +1 -1
  690. package/build/template/theme/swiss-sharp.css +117 -0
  691. package/build/template/theme/swiss-sharp.d.ts +9 -0
  692. package/build/template/theme/swiss-sharp.d.ts.map +1 -0
  693. package/build/template/theme/swiss-sharp.js +13 -0
  694. package/build/template/theme/swiss-sharp.js.map +1 -0
  695. package/build/vite/config.d.ts +1 -1
  696. package/build/vite/config.d.ts.map +1 -1
  697. package/build/vite/logger.d.ts +2 -2
  698. package/build/vite/logger.d.ts.map +1 -1
  699. package/build/vite/logger.js +0 -1
  700. package/build/vite/logger.js.map +1 -1
  701. package/build/vite/plugins/branding.d.ts +2 -2
  702. package/build/vite/plugins/branding.d.ts.map +1 -1
  703. package/build/vite/plugins/branding.js +125 -10
  704. package/build/vite/plugins/branding.js.map +1 -1
  705. package/build/vite/plugins/build.d.ts +1 -1
  706. package/build/vite/plugins/build.d.ts.map +1 -1
  707. package/build/vite/plugins/config.d.ts +17 -0
  708. package/build/vite/plugins/config.d.ts.map +1 -0
  709. package/build/vite/plugins/config.js +33 -0
  710. package/build/vite/plugins/config.js.map +1 -0
  711. package/build/vite/plugins/core.d.ts +1 -5
  712. package/build/vite/plugins/core.d.ts.map +1 -1
  713. package/build/vite/plugins/core.js +43 -127
  714. package/build/vite/plugins/core.js.map +1 -1
  715. package/build/vite/plugins/examples.d.ts +23 -0
  716. package/build/vite/plugins/examples.d.ts.map +1 -0
  717. package/build/vite/plugins/examples.js +149 -0
  718. package/build/vite/plugins/examples.js.map +1 -0
  719. package/build/vite/plugins/hooks.d.ts +12 -0
  720. package/build/vite/plugins/hooks.d.ts.map +1 -0
  721. package/build/vite/plugins/hooks.js +41 -0
  722. package/build/vite/plugins/hooks.js.map +1 -0
  723. package/build/vite/plugins/index.d.ts +2 -1
  724. package/build/vite/plugins/index.d.ts.map +1 -1
  725. package/build/vite/plugins/index.js +2 -1
  726. package/build/vite/plugins/index.js.map +1 -1
  727. package/build/vite/plugins/main.d.ts +1 -1
  728. package/build/vite/plugins/main.d.ts.map +1 -1
  729. package/build/vite/plugins/manifest.d.ts +1 -1
  730. package/build/vite/plugins/manifest.d.ts.map +1 -1
  731. package/build/vite/plugins/navbar.d.ts +16 -0
  732. package/build/vite/plugins/navbar.d.ts.map +1 -0
  733. package/build/vite/plugins/navbar.js +60 -0
  734. package/build/vite/plugins/navbar.js.map +1 -0
  735. package/build/vite/plugins/pages.d.ts +10 -4
  736. package/build/vite/plugins/pages.d.ts.map +1 -1
  737. package/build/vite/plugins/pages.js +48 -120
  738. package/build/vite/plugins/pages.js.map +1 -1
  739. package/build/vite/plugins/routes-manifest.d.ts +1 -1
  740. package/build/vite/plugins/routes-manifest.d.ts.map +1 -1
  741. package/build/vite/plugins/routes-manifest.js +12 -15
  742. package/build/vite/plugins/routes-manifest.js.map +1 -1
  743. package/build/vite/plugins/schemas.d.ts +30 -0
  744. package/build/vite/plugins/schemas.d.ts.map +1 -0
  745. package/build/vite/plugins/schemas.js +116 -0
  746. package/build/vite/plugins/schemas.js.map +1 -0
  747. package/build/vite/plugins/serve.d.ts +1 -1
  748. package/build/vite/plugins/serve.d.ts.map +1 -1
  749. package/package.json +62 -11
  750. package/src/api/{api.ts → $$.ts} +6 -2
  751. package/src/api/$.ts +1 -0
  752. package/src/api/config/$$.ts +1 -0
  753. package/src/api/config/home.ts +542 -0
  754. package/src/api/config/input.ts +109 -26
  755. package/src/api/config/normalized.ts +474 -30
  756. package/src/api/config-template/template.ts +77 -0
  757. package/src/api/content/$$.ts +1 -0
  758. package/src/api/content/mdx-compiler.ts +74 -0
  759. package/src/api/content/navbar.test.ts +3 -3
  760. package/src/api/content/navbar.ts +1 -1
  761. package/src/api/examples/$$.ts +7 -0
  762. package/src/api/examples/$.test.ts +201 -0
  763. package/src/api/examples/$.ts +1 -0
  764. package/src/api/examples/config.test.ts +92 -0
  765. package/src/api/examples/config.ts +242 -0
  766. package/src/api/examples/diagnostic/diagnostic.ts +30 -0
  767. package/src/api/examples/diagnostic/duplicate-content.ts +25 -0
  768. package/src/api/examples/diagnostic/invalid-filename.ts +19 -0
  769. package/src/api/examples/diagnostic/missing-versions.ts +23 -0
  770. package/src/api/examples/diagnostic/unknown-version.ts +23 -0
  771. package/src/api/examples/diagnostic/unused-default.ts +22 -0
  772. package/src/api/examples/diagnostic/validation-error.ts +24 -0
  773. package/src/api/examples/diagnostic/validator.test.ts +277 -0
  774. package/src/api/examples/diagnostic/validator.ts +178 -0
  775. package/src/api/examples/filter.test.ts +56 -0
  776. package/src/api/examples/filter.ts +82 -0
  777. package/src/api/examples/scanner.ts +341 -0
  778. package/src/api/examples/schemas/catalog.ts +51 -0
  779. package/src/api/examples/schemas/example/$$.ts +1 -0
  780. package/src/api/examples/schemas/example/$.ts +1 -0
  781. package/src/api/examples/schemas/example/example.ts +73 -0
  782. package/src/api/examples/schemas/type-usage-index.ts +75 -0
  783. package/src/api/examples/type-generator.ts +49 -0
  784. package/src/api/examples/type-usage-indexer.test.ts +265 -0
  785. package/src/api/examples/type-usage-indexer.ts +294 -0
  786. package/src/api/iso/schema/routing.ts +2 -2
  787. package/src/api/project/$.ts +1 -0
  788. package/src/api/schema/input-sources/versioned-directory.ts +4 -4
  789. package/src/api/typings/$$.ts +1 -0
  790. package/src/api/typings/$.ts +1 -0
  791. package/src/api/typings/typings.ts +273 -0
  792. package/src/cli/_/parameters.ts +12 -12
  793. package/src/cli/commands/build.ts +58 -67
  794. package/src/cli/commands/cache/delete.ts +17 -24
  795. package/src/cli/commands/cache/show.ts +70 -72
  796. package/src/cli/commands/cache.ts +24 -6
  797. package/src/cli/commands/config/create.ts +37 -31
  798. package/src/cli/commands/config.ts +22 -6
  799. package/src/cli/commands/create.ts +104 -84
  800. package/src/cli/commands/dev.ts +59 -65
  801. package/src/cli/commands/hero-image.ts +282 -0
  802. package/src/cli/commands/open.ts +139 -140
  803. package/src/cli/commands/static/rebase.ts +61 -39
  804. package/src/cli/commands/static.ts +36 -6
  805. package/src/cli/index.ts +103 -8
  806. package/src/lib/ai-image-generation/$$.ts +2 -0
  807. package/src/lib/ai-image-generation/$.test.ts +344 -0
  808. package/src/lib/ai-image-generation/$.ts +1 -0
  809. package/src/lib/ai-image-generation/ai-image-generation.ts +231 -0
  810. package/src/lib/ai-image-generation/providers/pollinations.ts +65 -0
  811. package/src/lib/ai-image-generation/service.ts +185 -0
  812. package/src/lib/catalog/catalog.ts +35 -2
  813. package/src/lib/catalog/unversioned.ts +1 -1
  814. package/src/lib/catalog/versioned.ts +21 -1
  815. package/src/lib/catalog-statistics/$$.ts +4 -0
  816. package/src/lib/catalog-statistics/$.test.ts +151 -0
  817. package/src/lib/catalog-statistics/$.ts +1 -0
  818. package/src/lib/catalog-statistics/analyze-catalog.ts +158 -0
  819. package/src/lib/catalog-statistics/analyze-options.ts +15 -0
  820. package/src/lib/catalog-statistics/analyze-schema.ts +226 -0
  821. package/src/lib/catalog-statistics/data.ts +196 -0
  822. package/src/lib/catalog-statistics/report.ts +45 -0
  823. package/src/lib/change/change.ts +1 -1
  824. package/src/lib/change/criticality.ts +2 -2
  825. package/src/lib/date-only/date-only.ts +1 -1
  826. package/src/lib/diagnostic/$$.ts +5 -0
  827. package/src/lib/diagnostic/$.test.ts +109 -0
  828. package/src/lib/diagnostic/$.ts +1 -0
  829. package/src/lib/diagnostic/control.test.ts +75 -0
  830. package/src/lib/diagnostic/control.ts +140 -0
  831. package/src/lib/diagnostic/diagnostic.ts +144 -0
  832. package/src/lib/diagnostic/filter.ts +21 -0
  833. package/src/lib/diagnostic/reporter.ts +74 -0
  834. package/src/lib/diagnostic/severity.ts +93 -0
  835. package/src/lib/directed-filter/$$.ts +1 -0
  836. package/src/lib/directed-filter/$.test.ts +169 -0
  837. package/src/lib/directed-filter/$.ts +1 -0
  838. package/src/lib/directed-filter/directed-filter.ts +241 -0
  839. package/src/lib/document/$$.ts +3 -0
  840. package/src/lib/document/$.ts +1 -0
  841. package/src/lib/document/document.ts +37 -0
  842. package/src/lib/document/unversioned.ts +35 -0
  843. package/src/lib/document/versioned.ts +106 -0
  844. package/src/lib/effect-cli-help-markdown/$$.ts +1 -0
  845. package/src/lib/effect-cli-help-markdown/$.test.ts +49 -0
  846. package/src/lib/effect-cli-help-markdown/$.ts +1 -0
  847. package/src/lib/effect-cli-help-markdown/effect-cli-help-markdown.ts +699 -0
  848. package/src/lib/effect-glob/$$.ts +1 -0
  849. package/src/lib/effect-glob/$.ts +1 -0
  850. package/src/lib/effect-glob/effect-glob.ts +33 -0
  851. package/src/lib/file-path/$$.ts +3 -4
  852. package/src/lib/file-path/$.test.ts +45 -0
  853. package/src/lib/file-path/$.ts +1 -1
  854. package/src/lib/file-path/absolute.ts +66 -0
  855. package/src/lib/file-path/file-path.ts +17 -117
  856. package/src/lib/file-path/relative.ts +72 -0
  857. package/src/lib/file-path/segment/$.ts +1 -0
  858. package/src/lib/file-path/{file-path.test.ts → segment/segment.test.ts} +2 -2
  859. package/src/lib/file-path/segment/segment.ts +134 -0
  860. package/src/lib/file-router/linter.ts +82 -49
  861. package/src/lib/graph/graph.ts +1 -1
  862. package/src/lib/graphql-error/$$.ts +1 -0
  863. package/src/lib/graphql-error/$.ts +1 -0
  864. package/src/lib/graphql-error/graphql-error.ts +74 -0
  865. package/src/lib/kit-temp/effect.ts +69 -0
  866. package/src/lib/kit-temp/ob.ts +13 -0
  867. package/src/lib/kit-temp/other.test.ts +1 -1
  868. package/src/lib/kit-temp/resource.ts +1 -2
  869. package/src/lib/react-router-effect/route-helpers.ts +71 -8
  870. package/src/lib/react-router-effect/route.ts +14 -1
  871. package/src/lib/react-router-effect/types.ts +11 -3
  872. package/src/lib/react-router-effect/use-loader-data.ts +3 -3
  873. package/src/lib/revision/revision.ts +1 -1
  874. package/src/lib/schema/$.test.ts +1 -1
  875. package/src/lib/schema/schema.ts +1 -1
  876. package/src/lib/schema/unversioned.ts +1 -1
  877. package/src/lib/schema-definition/schema-definition.ts +1 -1
  878. package/src/lib/semver/official-release.ts +1 -1
  879. package/src/lib/semver/pre-release.ts +1 -1
  880. package/src/lib/semver/semver.ts +1 -1
  881. package/src/lib/swiss/$$.ts +5 -0
  882. package/src/lib/swiss/$.test.ts +89 -0
  883. package/src/lib/swiss/$.ts +2 -0
  884. package/src/lib/swiss/grid.tsx +61 -0
  885. package/src/lib/swiss/items.tsx +288 -0
  886. package/src/lib/swiss/styles.css +298 -0
  887. package/src/lib/swiss/subgrid.tsx +83 -0
  888. package/src/lib/swiss/types.ts +353 -0
  889. package/src/lib/swiss/utils.ts +144 -0
  890. package/src/lib/version/$.test.ts +2 -2
  891. package/src/lib/version/custom.ts +2 -13
  892. package/src/lib/version/date.ts +2 -13
  893. package/src/lib/version/integer.ts +2 -13
  894. package/src/lib/version/semver.ts +2 -13
  895. package/src/lib/version/version.ts +15 -12
  896. package/src/lib/version-selection/$$.ts +1 -0
  897. package/src/lib/version-selection/$.ts +1 -0
  898. package/src/lib/version-selection/version-selection.ts +117 -0
  899. package/src/lib/vite-reactive/$$.ts +1 -0
  900. package/src/lib/vite-reactive/$.ts +1 -0
  901. package/src/lib/vite-reactive/reactive-asset-plugin.ts +280 -0
  902. package/src/template/components/Carousel.tsx +224 -0
  903. package/src/template/components/CarouselPill.tsx +101 -0
  904. package/src/template/components/Changelog/Changelog.tsx +16 -10
  905. package/src/template/components/Changelog/groups/TypeOperation.tsx +53 -5
  906. package/src/template/components/CodeBlock.tsx +2 -2
  907. package/src/template/components/DevelopmentTip.tsx +43 -0
  908. package/src/template/components/ExampleLink.tsx +25 -0
  909. package/src/template/components/Field.tsx +1 -1
  910. package/src/template/components/GraphQLDocument.tsx +145 -0
  911. package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +25 -3
  912. package/src/template/components/HamburgerMenu.tsx +14 -1
  913. package/src/template/components/Logo.tsx +35 -15
  914. package/src/template/components/NamedType.tsx +27 -3
  915. package/src/template/components/SimpleVersionPicker.tsx +48 -0
  916. package/src/template/components/TypeAnnotation.tsx +8 -26
  917. package/src/template/components/VersionCoveragePicker.tsx +57 -0
  918. package/src/template/components/VersionPicker.tsx +12 -30
  919. package/src/template/components/home/ExamplesSection.tsx +49 -0
  920. package/src/template/components/home/FeaturesGrid.tsx +135 -0
  921. package/src/template/components/home/HeroSection.tsx +379 -0
  922. package/src/template/components/home/PlaygroundPreview.tsx +138 -0
  923. package/src/template/components/home/QuickStart.tsx +132 -0
  924. package/src/template/components/home/RecentChanges.tsx +152 -0
  925. package/src/template/components/home/Resources.tsx +207 -0
  926. package/src/template/components/home/SocialProof.tsx +109 -0
  927. package/src/template/components/navbar/DefaultNavbar.tsx +23 -12
  928. package/src/template/components/sidebar/Sidebar.tsx +14 -1
  929. package/src/template/components/sidebar/SidebarItem.tsx +18 -6
  930. package/src/template/components/swiss/SwissHeading.tsx +44 -0
  931. package/src/template/components/swiss/index.ts +1 -0
  932. package/src/template/entry.client.tsx +3 -3
  933. package/src/template/hooks/use-examples.ts +46 -0
  934. package/src/template/hooks/use-highlighted.ts +57 -0
  935. package/src/template/layouts/SidebarLayout.tsx +34 -27
  936. package/src/template/layouts/index.ts +0 -1
  937. package/src/template/lib/polen-url.ts +3 -3
  938. package/src/template/providers/mdx.tsx +75 -0
  939. package/src/template/routes/changelog.tsx +247 -28
  940. package/src/template/routes/examples/_.tsx +90 -0
  941. package/src/template/routes/examples/_index.tsx +93 -0
  942. package/src/template/routes/examples/name.tsx +69 -0
  943. package/src/template/routes/index.tsx +48 -2
  944. package/src/template/routes/pages.tsx +5 -67
  945. package/src/template/routes/reference.tsx +36 -14
  946. package/src/template/routes/root.tsx +94 -38
  947. package/src/template/server/create-page-html-response.ts +2 -2
  948. package/src/template/server/main.ts +6 -6
  949. package/src/template/server/view.ts +3 -3
  950. package/src/template/stores/changelog.ts +3 -3
  951. package/src/template/theme/swiss-sharp.css +117 -0
  952. package/src/template/theme/swiss-sharp.ts +14 -0
  953. package/src/types/virtual-modules.d.ts +26 -19
  954. package/src/vite/config.ts +1 -1
  955. package/src/vite/logger.ts +2 -3
  956. package/src/vite/plugins/branding.ts +141 -12
  957. package/src/vite/plugins/build.ts +1 -1
  958. package/src/vite/plugins/config.ts +57 -0
  959. package/src/vite/plugins/core.ts +45 -167
  960. package/src/vite/plugins/examples.ts +201 -0
  961. package/src/vite/plugins/hooks.ts +49 -0
  962. package/src/vite/plugins/index.ts +2 -1
  963. package/src/vite/plugins/main.ts +1 -1
  964. package/src/vite/plugins/manifest.ts +1 -1
  965. package/src/vite/plugins/navbar.ts +102 -0
  966. package/src/vite/plugins/pages.ts +70 -155
  967. package/src/vite/plugins/routes-manifest.ts +15 -13
  968. package/src/vite/plugins/schemas.ts +145 -0
  969. package/src/vite/plugins/serve.ts +1 -1
  970. package/build/api/api.d.ts.map +0 -1
  971. package/build/api/api.js +0 -9
  972. package/build/api/api.js.map +0 -1
  973. package/build/api/index.d.ts +0 -2
  974. package/build/api/index.d.ts.map +0 -1
  975. package/build/api/index.js +0 -2
  976. package/build/api/index.js.map +0 -1
  977. package/build/api/project/index.d.ts +0 -2
  978. package/build/api/project/index.d.ts.map +0 -1
  979. package/build/api/project/index.js +0 -2
  980. package/build/api/project/index.js.map +0 -1
  981. package/build/cli/commands/$default.d.ts +0 -3
  982. package/build/cli/commands/$default.d.ts.map +0 -1
  983. package/build/cli/commands/$default.js +0 -89
  984. package/build/cli/commands/$default.js.map +0 -1
  985. package/build/cli/commands/cache/$default.d.ts +0 -3
  986. package/build/cli/commands/cache/$default.d.ts.map +0 -1
  987. package/build/cli/commands/cache/$default.js +0 -10
  988. package/build/cli/commands/cache/$default.js.map +0 -1
  989. package/build/cli/commands/config/$default.d.ts +0 -2
  990. package/build/cli/commands/config/$default.d.ts.map +0 -1
  991. package/build/cli/commands/config/$default.js +0 -7
  992. package/build/cli/commands/config/$default.js.map +0 -1
  993. package/build/cli/commands/static/$default.d.ts +0 -3
  994. package/build/cli/commands/static/$default.d.ts.map +0 -1
  995. package/build/cli/commands/static/$default.js +0 -38
  996. package/build/cli/commands/static/$default.js.map +0 -1
  997. package/build/cli-effect/_/parameters.d.ts +0 -7
  998. package/build/cli-effect/_/parameters.d.ts.map +0 -1
  999. package/build/cli-effect/_/parameters.js +0 -7
  1000. package/build/cli-effect/_/parameters.js.map +0 -1
  1001. package/build/cli-effect/commands/build.d.ts +0 -11
  1002. package/build/cli-effect/commands/build.d.ts.map +0 -1
  1003. package/build/cli-effect/commands/build.js +0 -40
  1004. package/build/cli-effect/commands/build.js.map +0 -1
  1005. package/build/cli-effect/commands/cache/delete.d.ts +0 -7
  1006. package/build/cli-effect/commands/cache/delete.d.ts.map +0 -1
  1007. package/build/cli-effect/commands/cache/delete.js +0 -15
  1008. package/build/cli-effect/commands/cache/delete.js.map +0 -1
  1009. package/build/cli-effect/commands/cache/show.d.ts +0 -6
  1010. package/build/cli-effect/commands/cache/show.d.ts.map +0 -1
  1011. package/build/cli-effect/commands/cache/show.js +0 -80
  1012. package/build/cli-effect/commands/cache/show.js.map +0 -1
  1013. package/build/cli-effect/commands/cache.d.ts +0 -11
  1014. package/build/cli-effect/commands/cache.d.ts.map +0 -1
  1015. package/build/cli-effect/commands/cache.js +0 -18
  1016. package/build/cli-effect/commands/cache.js.map +0 -1
  1017. package/build/cli-effect/commands/config/create.d.ts +0 -7
  1018. package/build/cli-effect/commands/config/create.d.ts.map +0 -1
  1019. package/build/cli-effect/commands/config/create.js +0 -36
  1020. package/build/cli-effect/commands/config/create.js.map +0 -1
  1021. package/build/cli-effect/commands/config.d.ts +0 -8
  1022. package/build/cli-effect/commands/config.d.ts.map +0 -1
  1023. package/build/cli-effect/commands/config.js +0 -16
  1024. package/build/cli-effect/commands/config.js.map +0 -1
  1025. package/build/cli-effect/commands/create.d.ts +0 -10
  1026. package/build/cli-effect/commands/create.d.ts.map +0 -1
  1027. package/build/cli-effect/commands/create.js +0 -112
  1028. package/build/cli-effect/commands/create.js.map +0 -1
  1029. package/build/cli-effect/commands/dev.d.ts +0 -10
  1030. package/build/cli-effect/commands/dev.d.ts.map +0 -1
  1031. package/build/cli-effect/commands/dev.js +0 -48
  1032. package/build/cli-effect/commands/dev.js.map +0 -1
  1033. package/build/cli-effect/commands/open.d.ts +0 -11
  1034. package/build/cli-effect/commands/open.d.ts.map +0 -1
  1035. package/build/cli-effect/commands/open.js +0 -131
  1036. package/build/cli-effect/commands/open.js.map +0 -1
  1037. package/build/cli-effect/commands/static/rebase.d.ts +0 -9
  1038. package/build/cli-effect/commands/static/rebase.d.ts.map +0 -1
  1039. package/build/cli-effect/commands/static/rebase.js +0 -44
  1040. package/build/cli-effect/commands/static/rebase.js.map +0 -1
  1041. package/build/cli-effect/commands/static.d.ts +0 -10
  1042. package/build/cli-effect/commands/static.d.ts.map +0 -1
  1043. package/build/cli-effect/commands/static.js +0 -29
  1044. package/build/cli-effect/commands/static.js.map +0 -1
  1045. package/build/cli-effect/index.d.ts +0 -3
  1046. package/build/cli-effect/index.d.ts.map +0 -1
  1047. package/build/cli-effect/index.js +0 -61
  1048. package/build/cli-effect/index.js.map +0 -1
  1049. package/build/lib/file-router/diagnostic-reporter.d.ts +0 -3
  1050. package/build/lib/file-router/diagnostic-reporter.d.ts.map +0 -1
  1051. package/build/lib/file-router/diagnostic-reporter.js +0 -18
  1052. package/build/lib/file-router/diagnostic-reporter.js.map +0 -1
  1053. package/build/lib/task/$$.d.ts +0 -3
  1054. package/build/lib/task/$$.d.ts.map +0 -1
  1055. package/build/lib/task/$$.js +0 -3
  1056. package/build/lib/task/$$.js.map +0 -1
  1057. package/build/lib/task/$.d.ts +0 -2
  1058. package/build/lib/task/$.d.ts.map +0 -1
  1059. package/build/lib/task/$.js +0 -2
  1060. package/build/lib/task/$.js.map +0 -1
  1061. package/build/lib/task/report.d.ts +0 -28
  1062. package/build/lib/task/report.d.ts.map +0 -1
  1063. package/build/lib/task/report.js +0 -33
  1064. package/build/lib/task/report.js.map +0 -1
  1065. package/build/lib/task/task.d.ts +0 -45
  1066. package/build/lib/task/task.d.ts.map +0 -1
  1067. package/build/lib/task/task.js +0 -71
  1068. package/build/lib/task/task.js.map +0 -1
  1069. package/build/project-data.d.ts +0 -10
  1070. package/build/project-data.d.ts.map +0 -1
  1071. package/build/project-data.js +0 -2
  1072. package/build/project-data.js.map +0 -1
  1073. package/build/template/catalog-bridge.d.ts +0 -1837
  1074. package/build/template/catalog-bridge.d.ts.map +0 -1
  1075. package/build/template/catalog-bridge.js +0 -87
  1076. package/build/template/catalog-bridge.js.map +0 -1
  1077. package/build/template/data/catalog.d.ts +0 -3
  1078. package/build/template/data/catalog.d.ts.map +0 -1
  1079. package/build/template/data/catalog.js +0 -7
  1080. package/build/template/data/catalog.js.map +0 -1
  1081. package/build/template/layouts/ChangelogLayout.d.ts +0 -9
  1082. package/build/template/layouts/ChangelogLayout.d.ts.map +0 -1
  1083. package/build/template/layouts/ChangelogLayout.js +0 -97
  1084. package/build/template/layouts/ChangelogLayout.js.map +0 -1
  1085. package/build/vite/plugins/schema-assets.d.ts +0 -20
  1086. package/build/vite/plugins/schema-assets.d.ts.map +0 -1
  1087. package/build/vite/plugins/schema-assets.js +0 -225
  1088. package/build/vite/plugins/schema-assets.js.map +0 -1
  1089. package/src/api/index.ts +0 -1
  1090. package/src/cli/commands/$default.ts +0 -102
  1091. package/src/cli/commands/cache/$default.ts +0 -10
  1092. package/src/cli/commands/config/$default.ts +0 -7
  1093. package/src/cli/commands/static/$default.ts +0 -43
  1094. package/src/cli-effect/_/parameters.ts +0 -17
  1095. package/src/cli-effect/commands/build.ts +0 -66
  1096. package/src/cli-effect/commands/cache/delete.ts +0 -21
  1097. package/src/cli-effect/commands/cache/show.ts +0 -99
  1098. package/src/cli-effect/commands/cache.ts +0 -27
  1099. package/src/cli-effect/commands/config/create.ts +0 -49
  1100. package/src/cli-effect/commands/config.ts +0 -25
  1101. package/src/cli-effect/commands/create.ts +0 -167
  1102. package/src/cli-effect/commands/dev.ts +0 -72
  1103. package/src/cli-effect/commands/open.ts +0 -183
  1104. package/src/cli-effect/commands/static/rebase.ts +0 -66
  1105. package/src/cli-effect/commands/static.ts +0 -39
  1106. package/src/cli-effect/index.ts +0 -79
  1107. package/src/lib/file-router/diagnostic-reporter.ts +0 -22
  1108. package/src/lib/task/$$.ts +0 -2
  1109. package/src/lib/task/$.test.ts +0 -210
  1110. package/src/lib/task/$.ts +0 -1
  1111. package/src/lib/task/report.ts +0 -72
  1112. package/src/lib/task/task.ts +0 -129
  1113. package/src/project-data.ts +0 -10
  1114. package/src/template/catalog-bridge.ts +0 -102
  1115. package/src/template/data/catalog.ts +0 -7
  1116. package/src/template/layouts/ChangelogLayout.tsx +0 -185
  1117. package/src/vite/plugins/schema-assets.ts +0 -265
  1118. /package/src/api/project/{index.ts → $$.ts} +0 -0
@@ -1,23 +1,15 @@
1
- import { Api } from '#api/index';
2
- import { allowGlobalParameter, projectParameter } from '#cli/_/parameters';
1
+ import { Api } from '#api/$';
3
2
  import { ensureOptionalAbsoluteWithCwd } from '#lib/kit-temp';
4
- import { Command } from '@molt/command';
3
+ import { Command } from '@effect/cli';
5
4
  import consola from 'consola';
6
- const args = Command.create()
7
- .parameter(`--project -p`, projectParameter)
8
- .parameter(`--allow-global`, allowGlobalParameter)
9
- .settings({
10
- parameters: {
11
- environment: {
12
- $default: {
13
- prefix: `POLEN_CACHE_`,
14
- enabled: false,
15
- },
16
- },
17
- },
18
- })
19
- .parse();
20
- const dir = ensureOptionalAbsoluteWithCwd(args.project);
21
- await Api.Cache.deleteAll(dir);
22
- consola.success(`Polen caches deleted`);
5
+ import { Effect, Option } from 'effect';
6
+ import { allowGlobalParameter, projectParameter } from '../../_/parameters.js';
7
+ export const cacheDelete = Command.make('delete', {
8
+ project: projectParameter,
9
+ allowGlobal: allowGlobalParameter,
10
+ }, ({ project, allowGlobal }) => Effect.gen(function* () {
11
+ const dir = ensureOptionalAbsoluteWithCwd(Option.getOrUndefined(project));
12
+ yield* Effect.promise(() => Api.Cache.deleteAll(dir));
13
+ consola.success('Polen caches deleted');
14
+ }));
23
15
  //# sourceMappingURL=delete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/cli/commands/cache/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE;KAC1B,SAAS,CACR,cAAc,EACd,gBAAgB,CACjB;KACA,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;KACjD,QAAQ,CAAC;IACR,UAAU,EAAE;QACV,WAAW,EAAE;YACX,QAAQ,EAAE;gBACR,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,KAAK;aACf;SACF;KACF;CACF,CAAC;KACD,KAAK,EAAE,CAAA;AAEV,MAAM,GAAG,GAAG,6BAA6B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AAEvD,MAAM,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AAC9B,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAA"}
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/cli/commands/cache/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE9E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CACrC,QAAQ,EACR;IACE,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,oBAAoB;CAClC,EACD,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAC3B,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,GAAG,GAAG,6BAA6B,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAEzE,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;IACrD,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAA;AACzC,CAAC,CAAC,CACL,CAAA"}
@@ -1,2 +1,6 @@
1
- export {};
1
+ import { Command } from '@effect/cli';
2
+ export declare const cacheShow: Command.Command<"show", never, never, {
3
+ readonly depth: number;
4
+ readonly allowGlobal: import("effect/Option").Option<boolean>;
5
+ }>;
2
6
  //# sourceMappingURL=show.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/cache/show.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/cache/show.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAW,MAAM,aAAa,CAAA;AA0C9C,eAAO,MAAM,SAAS;;;EAuDrB,CAAA"}
@@ -1,21 +1,8 @@
1
- import { Api } from '#api/index';
2
- import { allowGlobalParameter } from '#cli/_/parameters';
3
- import { Command } from '@molt/command';
4
- import { z } from 'zod';
5
- const args = Command.create()
6
- .parameter(`--depth -d`, z.number().min(0).max(5).default(2).describe(`Maximum depth for directory tree display`))
7
- .parameter(`--allow-global`, allowGlobalParameter)
8
- .settings({
9
- parameters: {
10
- environment: {
11
- $default: {
12
- prefix: `POLEN_CACHE_`,
13
- enabled: false,
14
- },
15
- },
16
- },
17
- })
18
- .parse();
1
+ import { Api } from '#api/$';
2
+ import { Command, Options } from '@effect/cli';
3
+ import { Effect } from 'effect';
4
+ import { allowGlobalParameter } from '../../_/parameters.js';
5
+ const depth = Options.integer('depth').pipe(Options.withAlias('d'), Options.withDefault(2), Options.withDescription('Maximum depth for directory tree display'));
19
6
  // Helper to format bytes
20
7
  const formatBytes = (bytes) => {
21
8
  if (bytes < 1024)
@@ -27,14 +14,14 @@ const formatBytes = (bytes) => {
27
14
  return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)} GB`;
28
15
  };
29
16
  // Helper to render directory tree
30
- const renderTree = (nodes, prefix = ``, isLast = true) => {
17
+ const renderTree = (nodes, prefix = '', isLast = true) => {
31
18
  const lines = [];
32
19
  nodes.forEach((node, index) => {
33
20
  const isLastNode = index === nodes.length - 1;
34
- const connector = isLastNode ? `└─` : `├─`;
35
- const extension = isLastNode ? ` ` : `│ `;
21
+ const connector = isLastNode ? '└─' : '├─';
22
+ const extension = isLastNode ? ' ' : '│ ';
36
23
  let line = `${prefix}${connector} ${node.name}`;
37
- if (node.type === `file` && node.size !== undefined) {
24
+ if (node.type === 'file' && node.size !== undefined) {
38
25
  line += ` (${formatBytes(node.size)})`;
39
26
  }
40
27
  lines.push(line);
@@ -45,44 +32,49 @@ const renderTree = (nodes, prefix = ``, isLast = true) => {
45
32
  });
46
33
  return lines;
47
34
  };
48
- // Get cache info
49
- const info = await Api.Cache.info({ depth: args.depth });
50
- console.log(`Root: ${info.rootPath}`);
51
- console.log();
52
- // Development assets
53
- console.log(`Development assets: ${info.developmentAssets.path.replace(info.rootPath + `/`, ``)}`);
54
- if (info.developmentAssets.exists) {
55
- const size = info.developmentAssets.size ? ` (${formatBytes(info.developmentAssets.size)})` : ``;
56
- console.log(` Status: exists${size}`);
57
- if (info.developmentAssets.tree && info.developmentAssets.tree.length > 0) {
58
- console.log(` Contents:`);
59
- const treeLines = renderTree(info.developmentAssets.tree, ` `);
60
- treeLines.forEach(line => console.log(line));
35
+ export const cacheShow = Command.make('show', {
36
+ depth,
37
+ allowGlobal: allowGlobalParameter,
38
+ }, ({ depth, allowGlobal }) => Effect.gen(function* () {
39
+ // Get cache info
40
+ const info = yield* Effect.promise(() => Api.Cache.info({ depth }));
41
+ console.log(`Root: ${info.rootPath}`);
42
+ console.log();
43
+ // Development assets
44
+ console.log(`Development assets: ${info.developmentAssets.path.replace(info.rootPath + '/', '')}`);
45
+ if (info.developmentAssets.exists) {
46
+ const size = info.developmentAssets.size ? ` (${formatBytes(info.developmentAssets.size)})` : '';
47
+ console.log(` Status: exists${size}`);
48
+ if (info.developmentAssets.tree && info.developmentAssets.tree.length > 0) {
49
+ console.log(' Contents:');
50
+ const treeLines = renderTree(info.developmentAssets.tree, ' ');
51
+ treeLines.forEach(line => console.log(line));
52
+ }
53
+ }
54
+ else {
55
+ console.log(' Status: empty');
61
56
  }
62
- }
63
- else {
64
- console.log(` Status: empty`);
65
- }
66
- console.log();
67
- // Vite cache
68
- console.log(`Vite:`);
69
- if (info.vite.exists) {
70
- const size = info.vite.size ? ` (${formatBytes(info.vite.size)})` : ``;
71
- console.log(` Status: exists${size}`);
72
- if (info.vite.optimizedDependencies && info.vite.optimizedDependencies.length > 0) {
73
- const deps = info.vite.optimizedDependencies;
74
- const showing = Math.min(10, deps.length);
75
- const more = deps.length - showing;
76
- console.log(` Optimized dependencies (${deps.length}):`);
77
- deps.slice(0, showing).forEach(dep => {
78
- console.log(` ${dep.name} (${formatBytes(dep.size)})`);
79
- });
80
- if (more > 0) {
81
- console.log(` ... (${more} more)`);
57
+ console.log();
58
+ // Vite cache
59
+ console.log('Vite:');
60
+ if (info.vite.exists) {
61
+ const size = info.vite.size ? ` (${formatBytes(info.vite.size)})` : '';
62
+ console.log(` Status: exists${size}`);
63
+ if (info.vite.optimizedDependencies && info.vite.optimizedDependencies.length > 0) {
64
+ const deps = info.vite.optimizedDependencies;
65
+ const showing = Math.min(10, deps.length);
66
+ const more = deps.length - showing;
67
+ console.log(` Optimized dependencies (${deps.length}):`);
68
+ deps.slice(0, showing).forEach(dep => {
69
+ console.log(` ${dep.name} (${formatBytes(dep.size)})`);
70
+ });
71
+ if (more > 0) {
72
+ console.log(` ... (${more} more)`);
73
+ }
82
74
  }
83
75
  }
84
- }
85
- else {
86
- console.log(` Status: empty`);
87
- }
76
+ else {
77
+ console.log(' Status: empty');
78
+ }
79
+ }));
88
80
  //# sourceMappingURL=show.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"show.js","sourceRoot":"","sources":["../../../../src/cli/commands/cache/show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE;KAC1B,SAAS,CACR,YAAY,EACZ,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,0CAA0C,CAAC,CACzF;KACA,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;KACjD,QAAQ,CAAC;IACR,UAAU,EAAE;QACV,WAAW,EAAE;YACX,QAAQ,EAAE;gBACR,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,KAAK;aACf;SACF;KACF;CACF,CAAC;KACD,KAAK,EAAE,CAAA;AAEV,yBAAyB;AACzB,MAAM,WAAW,GAAG,CAAC,KAAa,EAAU,EAAE;IAC5C,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAA;IACrC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OA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,CAAA;IAChC,CAAC;AACH,CAAC,CAAC,CACL,CAAA"}
@@ -1,3 +1,11 @@
1
- #!/usr/bin/env node
2
- export {};
1
+ import { Command } from '@effect/cli';
2
+ export declare const cache: Command.Command<"cache", never, Error, {
3
+ readonly subcommand: import("effect/Option").Option<{
4
+ readonly project: import("effect/Option").Option<string>;
5
+ readonly allowGlobal: import("effect/Option").Option<boolean>;
6
+ } | {
7
+ readonly depth: number;
8
+ readonly allowGlobal: import("effect/Option").Option<boolean>;
9
+ }>;
10
+ }>;
3
11
  //# sourceMappingURL=cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cache.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAwBrC,eAAO,MAAM,KAAK;;;;;;;;EAEjB,CAAA"}
@@ -1,7 +1,18 @@
1
- #!/usr/bin/env node
2
- import { Cli, Path } from '@wollybeard/kit';
3
- // Remove the "cache" argument before dispatching to subcommands
4
- process.argv = process.argv.slice(0, 2).concat(process.argv.slice(3));
5
- const commandsDir = Path.join(import.meta.dirname, `cache`);
6
- await Cli.dispatch(commandsDir);
1
+ import { Command } from '@effect/cli';
2
+ import { Console, Effect } from 'effect';
3
+ // Import subcommands
4
+ import { cacheDelete } from './cache/delete.js';
5
+ import { cacheShow } from './cache/show.js';
6
+ // Default cache command that shows usage
7
+ const cacheDefault = Command.make('cache', {}, () => Effect.gen(function* () {
8
+ yield* Console.error(`Usage: polen cache <command>
9
+
10
+ Commands:
11
+ delete Delete all Polen-generated caches
12
+ show Display information about Polen caches
13
+ `);
14
+ return yield* Effect.fail(new Error('No cache subcommand specified'));
15
+ }));
16
+ // Export the cache command with subcommands
17
+ export const cache = cacheDefault.pipe(Command.withSubcommands([cacheDelete, cacheShow]));
7
18
  //# sourceMappingURL=cache.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../src/cli/commands/cache.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,gEAAgE;AAChE,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAErE,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AAC3D,MAAM,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../src/cli/commands/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAExC,qBAAqB;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,yCAAyC;AACzC,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAC/B,OAAO,EACP,EAAE,EACF,GAAG,EAAE,CACH,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;;;;;CAK1B,CAAC,CAAA;IACI,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAA;AACvE,CAAC,CAAC,CACL,CAAA;AAED,4CAA4C;AAC5C,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CACpC,OAAO,CAAC,eAAe,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAClD,CAAA"}
@@ -1,2 +1,7 @@
1
- export {};
1
+ import { Command } from '@effect/cli';
2
+ import { Option } from 'effect';
3
+ export declare const configCreate: Command.Command<"create", never, Error, {
4
+ readonly project: Option.Option<string>;
5
+ readonly allowGlobal: Option.Option<boolean>;
6
+ }>;
2
7
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/config/create.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/config/create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AAGvC,eAAO,MAAM,YAAY;;;EAwCxB,CAAA"}
@@ -1,33 +1,36 @@
1
- import { Api } from '#api/index';
2
- import { allowGlobalParameter, projectParameter } from '#cli/_/parameters';
1
+ import { Api } from '#api/$';
3
2
  import { ensureOptionalAbsoluteWithCwd } from '#lib/kit-temp';
4
- import { Command } from '@molt/command';
3
+ import { Command } from '@effect/cli';
5
4
  import { Fs, Path } from '@wollybeard/kit';
6
5
  import consola from 'consola';
7
- const args = Command.create()
8
- .parameter(`--project -p`, projectParameter)
9
- .parameter(`--allow-global`, allowGlobalParameter)
10
- .parse();
11
- const dir = ensureOptionalAbsoluteWithCwd(args.project);
12
- if (!await Api.Project.validateProjectDirectory(dir)) {
13
- process.exit(1);
14
- }
15
- const fileName = 'polen.config.ts';
16
- const fileContent = `import { Polen } from 'polen'
6
+ import { Effect, Option } from 'effect';
7
+ import { allowGlobalParameter, projectParameter } from '../../_/parameters.js';
8
+ export const configCreate = Command.make('create', {
9
+ project: projectParameter,
10
+ allowGlobal: allowGlobalParameter,
11
+ }, ({ project, allowGlobal }) => Effect.gen(function* () {
12
+ const dir = ensureOptionalAbsoluteWithCwd(Option.getOrUndefined(project));
13
+ const isValidProject = yield* Effect.promise(() => Api.Project.validateProjectDirectory(dir));
14
+ if (!isValidProject) {
15
+ return yield* Effect.fail(new Error('Invalid project directory'));
16
+ }
17
+ const fileName = 'polen.config.ts';
18
+ const fileContent = `import { Polen } from 'polen'
17
19
 
18
20
  export default Polen.defineConfig({
19
21
  // Your configuration options
20
22
  })
21
23
  `;
22
- const filePath = Path.join(dir, fileName);
23
- const exists = await Fs.exists(filePath);
24
- if (exists) {
25
- consola.info(`Polen configuration file already exists at ${fileName}`);
26
- process.exit(0);
27
- }
28
- await Fs.write({
29
- path: filePath,
30
- content: fileContent,
31
- });
32
- consola.success(`Created Polen configuration file at ${fileName}`);
24
+ const filePath = Path.join(dir, fileName);
25
+ const exists = yield* Effect.promise(() => Fs.exists(filePath));
26
+ if (exists) {
27
+ consola.info(`Polen configuration file already exists at ${fileName}`);
28
+ return;
29
+ }
30
+ yield* Effect.promise(() => Fs.write({
31
+ path: filePath,
32
+ content: fileContent,
33
+ }));
34
+ consola.success(`Created Polen configuration file at ${fileName}`);
35
+ }));
33
36
  //# sourceMappingURL=create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/cli/commands/config/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE;KAC1B,SAAS,CACR,cAAc,EACd,gBAAgB,CACjB;KACA,SAAS,C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;IAED,OAAO,CAAC,OAAO,CAAC,uCAAuC,QAAQ,EAAE,CAAC,CAAA;AACpE,CAAC,CAAC,CACL,CAAA"}
@@ -1,3 +1,8 @@
1
- #!/usr/bin/env node
2
- export {};
1
+ import { Command } from '@effect/cli';
2
+ export declare const config: Command.Command<"config", never, Error, {
3
+ readonly subcommand: import("effect/Option").Option<{
4
+ readonly project: import("effect/Option").Option<string>;
5
+ readonly allowGlobal: import("effect/Option").Option<boolean>;
6
+ }>;
7
+ }>;
3
8
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/config.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAsBrC,eAAO,MAAM,MAAM;;;;;EAElB,CAAA"}
@@ -1,7 +1,16 @@
1
- #!/usr/bin/env node
2
- import { Cli, Path } from '@wollybeard/kit';
3
- // Remove the "config" argument before dispatching to subcommands
4
- process.argv = process.argv.slice(0, 2).concat(process.argv.slice(3));
5
- const commandsDir = Path.join(import.meta.dirname, `config`);
6
- await Cli.dispatch(commandsDir);
1
+ import { Command } from '@effect/cli';
2
+ import { consola } from 'consola';
3
+ import { Effect } from 'effect';
4
+ // Import subcommands
5
+ import { configCreate } from './config/create.js';
6
+ // Default config command that shows usage
7
+ const configDefault = Command.make('config', {}, () => Effect.gen(function* () {
8
+ consola.info('Available config commands:');
9
+ console.log('');
10
+ console.log(' polen config create Create a Polen configuration file');
11
+ console.log('');
12
+ consola.info('Run a command to see its help.');
13
+ }));
14
+ // Export the config command with subcommands
15
+ export const config = configDefault.pipe(Command.withSubcommands([configCreate]));
7
16
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/cli/commands/config.ts"],"names":[],"mappings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C,CACxC,CAAA"}
@@ -1,2 +1,10 @@
1
- export {};
1
+ import { Command } from '@effect/cli';
2
+ import { Option } from 'effect';
3
+ export declare const create: Command.Command<"create", never, never, {
4
+ readonly name: Option.Option<string>;
5
+ readonly path: Option.Option<string>;
6
+ readonly link: boolean;
7
+ readonly version: Option.Option<string>;
8
+ readonly example: "hive";
9
+ }>;
2
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/create.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,OAAO,EAAW,MAAM,aAAa,CAAA;AAIpD,OAAO,EAAmB,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoGhD,eAAO,MAAM,MAAM;;;;;;EA6DlB,CAAA"}
@@ -1,40 +1,26 @@
1
- // @ts-nocheck
2
- import { Api } from '#api/index';
3
- import { Command } from '@molt/command';
1
+ import { Api } from '#api/$';
2
+ import { Args, Command, Options } from '@effect/cli';
4
3
  import { Err, Fs, Manifest, Name, Path, Str } from '@wollybeard/kit';
5
4
  import * as Ansis from 'ansis';
6
5
  import consola from 'consola';
7
- import { z } from 'zod';
6
+ import { Console, Effect, Option } from 'effect';
8
7
  import { $ } from 'zx';
9
- const Examples = z.enum([`hive`]);
10
- const args = Command
11
- .create()
12
- .parameter(`name`, z.string().optional().describe(`The name of your project. Used by the package name and the default path. Defaults to a random name.`))
13
- .parameter(`path`, z.string().optional().describe(`The path to a directory to create your project. Must point to an empty or non-existing directory. Defaults to a new directory named after your project in your cwd (current working directory).`))
14
- .parameter(`link`, z.boolean().default(false).describe(`When installing polen, do so as a link. You must have Polen globally linked on your machine.`))
15
- .parameter(`version`, z.string().optional().describe(`Version of Polen to use. Defaults to latest release. Ignored if --link is used.`))
16
- .parameter(`example`, Examples.default(`hive`).describe(`The example to use to scaffold your project.`))
17
- .settings({
18
- parameters: {
19
- environment: {
20
- $default: {
21
- // todo prfix seting doesn't seem to work with Molt!
22
- prefix: `POLEN_CREATE_`,
23
- enabled: false,
24
- },
25
- },
26
- },
27
- })
28
- .parse();
29
- const getProjectRoot = async () => {
8
+ // Define all the options and arguments exactly matching the original
9
+ const nameArg = Args.text({ name: 'name' }).pipe(Args.optional, Args.withDescription('The name of your project. Used by the package name and the default path. Defaults to a random name.'));
10
+ const pathArg = Args.text({ name: 'path' }).pipe(Args.optional, Args.withDescription('The path to a directory to create your project. Must point to an empty or non-existing directory. Defaults to a new directory named after your project in your cwd (current working directory).'));
11
+ const link = Options.boolean('link').pipe(Options.withDefault(false), Options.withDescription('When installing polen, do so as a link. You must have Polen globally linked on your machine.'));
12
+ const version = Options.text('version').pipe(Options.optional, Options.withDescription('Version of Polen to use. Defaults to latest release. Ignored if --link is used.'));
13
+ const example = Options.choice('example', ['hive']).pipe(Options.withDefault('hive'), Options.withDescription('The example to use to scaffold your project.'));
14
+ const getProjectRoot = async (args) => {
30
15
  if (args.path) {
31
16
  if (await Api.Project.validateProjectDirectory(args.path, { mustExist: false, mustBeEmpty: true })) {
32
17
  return args.path;
33
18
  }
34
- process.exit(1);
19
+ throw new Error('Invalid project directory');
35
20
  }
21
+ const name = Str.Case.kebab(args.name ?? Name.generate());
36
22
  const findUsableName = async (isRetry) => {
37
- const projectRoot = Path.join(process.cwd(), name + (isRetry ? `-${Date.now().toString(36).substring(2, 8)}` : ``));
23
+ const projectRoot = Path.join(process.cwd(), name + (isRetry ? `-${Date.now().toString(36).substring(2, 8)}` : ''));
38
24
  const stat = await Fs.stat(projectRoot);
39
25
  if (Fs.isNotFoundError(stat))
40
26
  return projectRoot;
@@ -57,9 +43,9 @@ const copyGitRepositoryTemplate = async (input) => {
57
43
  const templatePath = Path.join(tmpDirPath, input.repository.templatePath);
58
44
  // Verify the example exists
59
45
  if (!await Fs.exists(templatePath)) {
60
- consola.error(`Example "${args.example}" not found in the Polen repository. Are you using the latest version of the CLI?`);
46
+ consola.error(`Example "${input.exampleName}" not found in the Polen repository. Are you using the latest version of the CLI?`);
61
47
  await cleanup();
62
- process.exit(1);
48
+ throw new Error(`Example not found`);
63
49
  }
64
50
  await Fs.copyDir({
65
51
  from: templatePath,
@@ -73,38 +59,54 @@ const copyGitRepositoryTemplate = async (input) => {
73
59
  catch (error) {
74
60
  consola.error(`Failed to scaffold example`);
75
61
  Err.log(Err.ensure(error));
76
- process.exit(1);
62
+ throw error;
77
63
  }
78
64
  };
79
- // -- main
80
- const name = Str.Case.kebab(args.name ?? Name.generate());
81
- const projectRoot = await getProjectRoot();
82
- const project$ = $({ cwd: projectRoot });
83
- console.log(``);
84
- consola.info(`Creating your Polen project "${Ansis.green(Str.Case.title(name))}"`);
85
- consola.info(`Initializing with example "${Ansis.green(Str.Case.title(args.example))}"`);
86
- await copyGitRepositoryTemplate({
87
- repository: {
88
- url: new URL(`https://github.com/the-guild-org/polen`),
89
- templatePath: Path.join(`examples`, args.example),
90
- },
91
- destinationPath: projectRoot,
92
- });
93
- await Manifest.resource.update((manifest) => {
94
- manifest.name = name;
95
- manifest.description = `A new project`;
96
- manifest.packageManager = `pnpm@10.11.0`;
97
- delete manifest.dependencies.polen; // Repo uses links, we will install polen next.
98
- }, projectRoot);
99
- if (args.link) {
100
- await project$ `pnpm link polen`;
101
- }
102
- else {
103
- const fqpn = `polen${args.ver ? `@${args.ver}` : ''}`;
104
- consola.info(`Installing ${Ansis.magenta(fqpn)}`);
105
- await project$ `pnpm add ${fqpn}`;
106
- }
107
- consola.success(`Your project is ready! Get Started:`);
108
- console.log(``);
109
- console.log(Ansis.magenta(` cd ${Path.relative(process.cwd(), projectRoot)} && pnpm dev`));
65
+ export const create = Command.make('create', {
66
+ name: nameArg,
67
+ path: pathArg,
68
+ link,
69
+ version,
70
+ example,
71
+ }, ({ name, path, link, version, example }) => Effect.gen(function* () {
72
+ const finalName = Str.Case.kebab(Option.getOrUndefined(name) ?? Name.generate());
73
+ const nameValue = Option.getOrUndefined(name);
74
+ const pathValue = Option.getOrUndefined(path);
75
+ const projectRoot = yield* Effect.promise(() => getProjectRoot({
76
+ ...(nameValue && { name: nameValue }),
77
+ ...(pathValue && { path: pathValue }),
78
+ }));
79
+ const project$ = $({ cwd: projectRoot });
80
+ console.log('');
81
+ consola.info(`Creating your Polen project "${Ansis.green(Str.Case.title(finalName))}"`);
82
+ consola.info(`Initializing with example "${Ansis.green(Str.Case.title(example))}"`);
83
+ yield* Effect.promise(() => copyGitRepositoryTemplate({
84
+ repository: {
85
+ url: new URL('https://github.com/the-guild-org/polen'),
86
+ templatePath: Path.join('examples', example),
87
+ },
88
+ destinationPath: projectRoot,
89
+ exampleName: example,
90
+ }));
91
+ yield* Effect.promise(() => Manifest.resource.update((manifest) => {
92
+ manifest.name = finalName;
93
+ manifest.description = 'A new project';
94
+ manifest.packageManager = 'pnpm@10.11.0';
95
+ if (manifest.dependencies) {
96
+ delete manifest.dependencies['polen']; // Repo uses links, we will install polen next.
97
+ }
98
+ }, projectRoot));
99
+ if (link) {
100
+ yield* Effect.promise(() => project$ `pnpm link polen`);
101
+ }
102
+ else {
103
+ const versionStr = Option.getOrUndefined(version);
104
+ const fqpn = `polen${versionStr ? `@${versionStr}` : ''}`;
105
+ consola.info(`Installing ${Ansis.magenta(fqpn)}`);
106
+ yield* Effect.promise(() => project$ `pnpm add ${fqpn}`);
107
+ }
108
+ consola.success('Your project is ready! Get Started:');
109
+ console.log('');
110
+ console.log(Ansis.magenta(` cd ${Path.relative(process.cwd(), projectRoot)} && pnpm dev`));
111
+ }));
110
112
  //# sourceMappingURL=create.js.map