polen 0.11.0-next.14 → 0.11.0-next.15

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 (1491) hide show
  1. package/build/api/api.d.ts +3 -3
  2. package/build/api/api.d.ts.map +1 -1
  3. package/build/api/api.js +3 -6
  4. package/build/api/api.js.map +1 -1
  5. package/build/api/builder/builder.d.ts +5 -3
  6. package/build/api/builder/builder.d.ts.map +1 -1
  7. package/build/api/builder/builder.js +25 -12
  8. package/build/api/builder/builder.js.map +1 -1
  9. package/build/api/builder/ssg/generate.d.ts +5 -0
  10. package/build/api/builder/ssg/generate.d.ts.map +1 -0
  11. package/build/api/builder/ssg/generate.js +149 -0
  12. package/build/api/builder/ssg/generate.js.map +1 -0
  13. package/build/api/builder/ssg/page-generator.worker.d.ts +2 -0
  14. package/build/api/builder/ssg/page-generator.worker.d.ts.map +1 -0
  15. package/build/api/builder/ssg/page-generator.worker.js +80 -0
  16. package/build/api/builder/ssg/page-generator.worker.js.map +1 -0
  17. package/build/api/builder/ssg/server-runner.worker.d.ts +2 -0
  18. package/build/api/builder/ssg/server-runner.worker.d.ts.map +1 -0
  19. package/build/api/builder/ssg/server-runner.worker.js +127 -0
  20. package/build/api/builder/ssg/server-runner.worker.js.map +1 -0
  21. package/build/api/builder/ssg/worker-messages.d.ts +43 -0
  22. package/build/api/builder/ssg/worker-messages.d.ts.map +1 -0
  23. package/build/api/builder/ssg/worker-messages.js +49 -0
  24. package/build/api/builder/ssg/worker-messages.js.map +1 -0
  25. package/build/api/builder/ssg/worker-spawners.d.ts +11 -0
  26. package/build/api/builder/ssg/worker-spawners.d.ts.map +1 -0
  27. package/build/api/builder/ssg/worker-spawners.js +64 -0
  28. package/build/api/builder/ssg/worker-spawners.js.map +1 -0
  29. package/build/api/cache/cache.d.ts +9 -8
  30. package/build/api/cache/cache.d.ts.map +1 -1
  31. package/build/api/cache/cache.js +109 -110
  32. package/build/api/cache/cache.js.map +1 -1
  33. package/build/api/config/$$.d.ts +4 -0
  34. package/build/api/config/$$.d.ts.map +1 -0
  35. package/build/api/config/$$.js +4 -0
  36. package/build/api/config/$$.js.map +1 -0
  37. package/build/api/config/$.d.ts +2 -0
  38. package/build/api/config/$.d.ts.map +1 -0
  39. package/build/api/config/$.js +2 -0
  40. package/build/api/config/$.js.map +1 -0
  41. package/build/api/config/input.d.ts +646 -0
  42. package/build/api/config/input.d.ts.map +1 -0
  43. package/build/api/config/input.js +285 -0
  44. package/build/api/config/input.js.map +1 -0
  45. package/build/api/config/load.d.ts +4 -2
  46. package/build/api/config/load.d.ts.map +1 -1
  47. package/build/api/config/load.js +33 -22
  48. package/build/api/config/load.js.map +1 -1
  49. package/build/api/config/normalized.d.ts +1414 -0
  50. package/build/api/config/normalized.d.ts.map +1 -0
  51. package/build/api/config/normalized.js +364 -0
  52. package/build/api/config/normalized.js.map +1 -0
  53. package/build/api/config-resolver/config-resolver.d.ts +0 -1
  54. package/build/api/config-resolver/config-resolver.d.ts.map +1 -1
  55. package/build/api/config-resolver/config-resolver.js +0 -1
  56. package/build/api/config-resolver/config-resolver.js.map +1 -1
  57. package/build/api/config-resolver/resolve.d.ts +7 -5
  58. package/build/api/config-resolver/resolve.d.ts.map +1 -1
  59. package/build/api/config-resolver/resolve.js +10 -11
  60. package/build/api/config-resolver/resolve.js.map +1 -1
  61. package/build/api/content/metadata.d.ts +7 -11
  62. package/build/api/content/metadata.d.ts.map +1 -1
  63. package/build/api/content/metadata.js +4 -4
  64. package/build/api/content/metadata.js.map +1 -1
  65. package/build/api/content/scan.d.ts +3 -1
  66. package/build/api/content/scan.d.ts.map +1 -1
  67. package/build/api/content/scan.js +15 -11
  68. package/build/api/content/scan.js.map +1 -1
  69. package/build/api/content/sidebar.d.ts +1 -1
  70. package/build/api/content/sidebar.js +1 -1
  71. package/build/api/iso/schema/constants.d.ts +1 -0
  72. package/build/api/iso/schema/constants.d.ts.map +1 -1
  73. package/build/api/iso/schema/constants.js +1 -0
  74. package/build/api/iso/schema/constants.js.map +1 -1
  75. package/build/api/iso/schema/routing.d.ts +14 -4
  76. package/build/api/iso/schema/routing.d.ts.map +1 -1
  77. package/build/api/iso/schema/routing.js +22 -5
  78. package/build/api/iso/schema/routing.js.map +1 -1
  79. package/build/api/routes/$$.d.ts +2 -0
  80. package/build/api/routes/$$.d.ts.map +1 -0
  81. package/build/api/routes/$$.js +2 -0
  82. package/build/api/routes/$$.js.map +1 -0
  83. package/build/api/routes/$.d.ts +2 -0
  84. package/build/api/routes/$.d.ts.map +1 -0
  85. package/build/api/routes/$.js +2 -0
  86. package/build/api/routes/$.js.map +1 -0
  87. package/build/api/routes/manifest/$$.d.ts +2 -0
  88. package/build/api/routes/manifest/$$.d.ts.map +1 -0
  89. package/build/api/routes/manifest/$$.js +2 -0
  90. package/build/api/routes/manifest/$$.js.map +1 -0
  91. package/build/api/routes/manifest/$.d.ts +2 -0
  92. package/build/api/routes/manifest/$.d.ts.map +1 -0
  93. package/build/api/routes/manifest/$.js +2 -0
  94. package/build/api/routes/manifest/$.js.map +1 -0
  95. package/build/api/routes/manifest/manifest.d.ts +29 -0
  96. package/build/api/routes/manifest/manifest.d.ts.map +1 -0
  97. package/build/api/routes/manifest/manifest.js +43 -0
  98. package/build/api/routes/manifest/manifest.js.map +1 -0
  99. package/build/api/schema/$$.d.ts +8 -0
  100. package/build/api/schema/$$.d.ts.map +1 -0
  101. package/build/api/schema/$$.js +8 -0
  102. package/build/api/schema/$$.js.map +1 -0
  103. package/build/api/schema/$.d.ts +2 -0
  104. package/build/api/schema/$.d.ts.map +1 -0
  105. package/build/api/schema/$.js +2 -0
  106. package/build/api/schema/$.js.map +1 -0
  107. package/build/api/schema/augmentations/$.d.ts +2 -0
  108. package/build/api/schema/augmentations/$.d.ts.map +1 -0
  109. package/build/api/schema/augmentations/$.js +2 -0
  110. package/build/api/schema/augmentations/$.js.map +1 -0
  111. package/build/api/schema/augmentations/augmentations/description.d.ts +26 -0
  112. package/build/api/schema/augmentations/augmentations/description.d.ts.map +1 -0
  113. package/build/api/schema/augmentations/augmentations/description.js +55 -0
  114. package/build/api/schema/augmentations/augmentations/description.js.map +1 -0
  115. package/build/api/schema/augmentations/schema-augmentation.d.ts +20 -0
  116. package/build/api/schema/augmentations/schema-augmentation.d.ts.map +1 -0
  117. package/build/api/schema/augmentations/schema-augmentation.js +22 -0
  118. package/build/api/schema/augmentations/schema-augmentation.js.map +1 -0
  119. package/build/api/schema/augmentations/target.d.ts +25 -0
  120. package/build/api/schema/augmentations/target.d.ts.map +1 -0
  121. package/build/api/schema/augmentations/target.js +39 -0
  122. package/build/api/schema/augmentations/target.js.map +1 -0
  123. package/build/api/schema/config-schema.d.ts +555 -0
  124. package/build/api/schema/config-schema.d.ts.map +1 -0
  125. package/build/api/schema/config-schema.js +388 -0
  126. package/build/api/schema/config-schema.js.map +1 -0
  127. package/build/api/schema/config.d.ts +5 -0
  128. package/build/api/schema/config.d.ts.map +1 -0
  129. package/build/api/schema/config.js +2 -0
  130. package/build/api/schema/config.js.map +1 -0
  131. package/build/api/schema/input-source/$$.d.ts +3 -0
  132. package/build/api/schema/input-source/$$.d.ts.map +1 -0
  133. package/build/api/schema/input-source/$$.js +3 -0
  134. package/build/api/schema/input-source/$$.js.map +1 -0
  135. package/build/api/schema/input-source/$.d.ts +2 -0
  136. package/build/api/schema/input-source/$.d.ts.map +1 -0
  137. package/build/api/schema/input-source/$.js +2 -0
  138. package/build/api/schema/input-source/$.js.map +1 -0
  139. package/build/api/schema/input-source/input-source.d.ts +39 -0
  140. package/build/api/schema/input-source/input-source.d.ts.map +1 -0
  141. package/build/api/schema/input-source/input-source.js +35 -0
  142. package/build/api/schema/input-source/input-source.js.map +1 -0
  143. package/build/api/schema/input-source/load.d.ts +23 -0
  144. package/build/api/schema/input-source/load.d.ts.map +1 -0
  145. package/build/api/schema/input-source/load.js +39 -0
  146. package/build/api/schema/input-source/load.js.map +1 -0
  147. package/build/api/schema/input-sources/$$.d.ts +7 -0
  148. package/build/api/schema/input-sources/$$.d.ts.map +1 -0
  149. package/build/api/schema/input-sources/$$.js +7 -0
  150. package/build/api/schema/input-sources/$$.js.map +1 -0
  151. package/build/api/schema/input-sources/$.d.ts +2 -0
  152. package/build/api/schema/input-sources/$.d.ts.map +1 -0
  153. package/build/api/schema/input-sources/$.js +2 -0
  154. package/build/api/schema/input-sources/$.js.map +1 -0
  155. package/build/api/schema/input-sources/directory.d.ts +646 -0
  156. package/build/api/schema/input-sources/directory.d.ts.map +1 -0
  157. package/build/api/schema/input-sources/directory.js +148 -0
  158. package/build/api/schema/input-sources/directory.js.map +1 -0
  159. package/build/api/schema/input-sources/file.d.ts +627 -0
  160. package/build/api/schema/input-sources/file.d.ts.map +1 -0
  161. package/build/api/schema/input-sources/file.js +62 -0
  162. package/build/api/schema/input-sources/file.js.map +1 -0
  163. package/build/api/schema/input-sources/introspection-file.d.ts +645 -0
  164. package/build/api/schema/input-sources/introspection-file.d.ts.map +1 -0
  165. package/build/api/schema/input-sources/introspection-file.js +90 -0
  166. package/build/api/schema/input-sources/introspection-file.js.map +1 -0
  167. package/build/api/schema/input-sources/introspection.d.ts +651 -0
  168. package/build/api/schema/input-sources/introspection.d.ts.map +1 -0
  169. package/build/api/schema/input-sources/introspection.js +123 -0
  170. package/build/api/schema/input-sources/introspection.js.map +1 -0
  171. package/build/api/schema/input-sources/memory.d.ts +671 -0
  172. package/build/api/schema/input-sources/memory.d.ts.map +1 -0
  173. package/build/api/schema/input-sources/memory.js +133 -0
  174. package/build/api/schema/input-sources/memory.js.map +1 -0
  175. package/build/api/schema/input-sources/versioned-directory.d.ts +1257 -0
  176. package/build/api/schema/input-sources/versioned-directory.d.ts.map +1 -0
  177. package/build/api/schema/input-sources/versioned-directory.js +352 -0
  178. package/build/api/schema/input-sources/versioned-directory.js.map +1 -0
  179. package/build/api/schema/load.d.ts +29 -0
  180. package/build/api/schema/load.d.ts.map +1 -0
  181. package/build/api/schema/load.js +132 -0
  182. package/build/api/schema/load.js.map +1 -0
  183. package/build/api/server/report-error.js +4 -1
  184. package/build/api/server/report-error.js.map +1 -1
  185. package/build/api/singletons/markdown/markdown.d.ts +2 -1
  186. package/build/api/singletons/markdown/markdown.d.ts.map +1 -1
  187. package/build/api/singletons/markdown/markdown.js +4 -3
  188. package/build/api/singletons/markdown/markdown.js.map +1 -1
  189. package/build/api/static/manifest.d.ts +30 -15
  190. package/build/api/static/manifest.d.ts.map +1 -1
  191. package/build/api/static/manifest.js +35 -10
  192. package/build/api/static/manifest.js.map +1 -1
  193. package/build/api/static/rebase.d.ts.map +1 -1
  194. package/build/api/static/rebase.js +89 -58
  195. package/build/api/static/rebase.js.map +1 -1
  196. package/build/cli/_/parameters.d.ts +1 -0
  197. package/build/cli/_/parameters.d.ts.map +1 -1
  198. package/build/cli/_/parameters.js +4 -0
  199. package/build/cli/_/parameters.js.map +1 -1
  200. package/build/cli/commands/build.d.ts +11 -1
  201. package/build/cli/commands/build.d.ts.map +1 -1
  202. package/build/cli/commands/build.js +14 -4
  203. package/build/cli/commands/build.js.map +1 -1
  204. package/build/cli/commands/cache/delete.js +2 -1
  205. package/build/cli/commands/cache/delete.js.map +1 -1
  206. package/build/cli/commands/cache/show.js +2 -0
  207. package/build/cli/commands/cache/show.js.map +1 -1
  208. package/build/cli/commands/config/create.js +2 -1
  209. package/build/cli/commands/config/create.js.map +1 -1
  210. package/build/cli/commands/dev.js +8 -3
  211. package/build/cli/commands/dev.js.map +1 -1
  212. package/build/cli/commands/open.js +6 -2
  213. package/build/cli/commands/open.js.map +1 -1
  214. package/build/cli/commands/static/rebase.js +6 -1
  215. package/build/cli/commands/static/rebase.js.map +1 -1
  216. package/build/cli/index.js +26 -0
  217. package/build/cli/index.js.map +1 -1
  218. package/build/cli-effect/_/parameters.d.ts +7 -0
  219. package/build/cli-effect/_/parameters.d.ts.map +1 -0
  220. package/build/cli-effect/_/parameters.js +7 -0
  221. package/build/cli-effect/_/parameters.js.map +1 -0
  222. package/build/cli-effect/commands/build.d.ts +11 -0
  223. package/build/cli-effect/commands/build.d.ts.map +1 -0
  224. package/build/cli-effect/commands/build.js +40 -0
  225. package/build/cli-effect/commands/build.js.map +1 -0
  226. package/build/cli-effect/commands/cache/delete.d.ts +7 -0
  227. package/build/cli-effect/commands/cache/delete.d.ts.map +1 -0
  228. package/build/cli-effect/commands/cache/delete.js +15 -0
  229. package/build/cli-effect/commands/cache/delete.js.map +1 -0
  230. package/build/cli-effect/commands/cache/show.d.ts +6 -0
  231. package/build/cli-effect/commands/cache/show.d.ts.map +1 -0
  232. package/build/cli-effect/commands/cache/show.js +80 -0
  233. package/build/cli-effect/commands/cache/show.js.map +1 -0
  234. package/build/cli-effect/commands/cache.d.ts +11 -0
  235. package/build/cli-effect/commands/cache.d.ts.map +1 -0
  236. package/build/cli-effect/commands/cache.js +18 -0
  237. package/build/cli-effect/commands/cache.js.map +1 -0
  238. package/build/cli-effect/commands/config/create.d.ts +7 -0
  239. package/build/cli-effect/commands/config/create.d.ts.map +1 -0
  240. package/build/cli-effect/commands/config/create.js +36 -0
  241. package/build/cli-effect/commands/config/create.js.map +1 -0
  242. package/build/cli-effect/commands/config.d.ts +8 -0
  243. package/build/cli-effect/commands/config.d.ts.map +1 -0
  244. package/build/cli-effect/commands/config.js +16 -0
  245. package/build/cli-effect/commands/config.js.map +1 -0
  246. package/build/cli-effect/commands/create.d.ts +10 -0
  247. package/build/cli-effect/commands/create.d.ts.map +1 -0
  248. package/build/cli-effect/commands/create.js +112 -0
  249. package/build/cli-effect/commands/create.js.map +1 -0
  250. package/build/cli-effect/commands/dev.d.ts +10 -0
  251. package/build/cli-effect/commands/dev.d.ts.map +1 -0
  252. package/build/cli-effect/commands/dev.js +48 -0
  253. package/build/cli-effect/commands/dev.js.map +1 -0
  254. package/build/cli-effect/commands/open.d.ts +11 -0
  255. package/build/cli-effect/commands/open.d.ts.map +1 -0
  256. package/build/cli-effect/commands/open.js +131 -0
  257. package/build/cli-effect/commands/open.js.map +1 -0
  258. package/build/cli-effect/commands/static/rebase.d.ts +9 -0
  259. package/build/cli-effect/commands/static/rebase.d.ts.map +1 -0
  260. package/build/cli-effect/commands/static/rebase.js +44 -0
  261. package/build/cli-effect/commands/static/rebase.js.map +1 -0
  262. package/build/cli-effect/commands/static.d.ts +10 -0
  263. package/build/cli-effect/commands/static.d.ts.map +1 -0
  264. package/build/cli-effect/commands/static.js +29 -0
  265. package/build/cli-effect/commands/static.js.map +1 -0
  266. package/build/cli-effect/index.d.ts +3 -0
  267. package/build/cli-effect/index.d.ts.map +1 -0
  268. package/build/cli-effect/index.js +61 -0
  269. package/build/cli-effect/index.js.map +1 -0
  270. package/build/dep/tiny-globby/index.d.ts +1 -0
  271. package/build/dep/tiny-globby/index.d.ts.map +1 -1
  272. package/build/dep/tiny-globby/index.js +1 -0
  273. package/build/dep/tiny-globby/index.js.map +1 -1
  274. package/build/dep/tiny-globby/tiny-globby.d.ts +12 -0
  275. package/build/dep/tiny-globby/tiny-globby.d.ts.map +1 -1
  276. package/build/dep/tiny-globby/tiny-globby.js +18 -0
  277. package/build/dep/tiny-globby/tiny-globby.js.map +1 -1
  278. package/build/exports/polen.d.ts +2 -3
  279. package/build/exports/polen.d.ts.map +1 -1
  280. package/build/exports/polen.js +2 -3
  281. package/build/exports/polen.js.map +1 -1
  282. package/build/lib/catalog/$.d.ts +2 -0
  283. package/build/lib/catalog/$.d.ts.map +1 -0
  284. package/build/lib/catalog/$.js +2 -0
  285. package/build/lib/catalog/$.js.map +1 -0
  286. package/build/lib/catalog/catalog.d.ts +12455 -0
  287. package/build/lib/catalog/catalog.d.ts.map +1 -0
  288. package/build/lib/catalog/catalog.js +50 -0
  289. package/build/lib/catalog/catalog.js.map +1 -0
  290. package/build/lib/catalog/unversioned.d.ts +5331 -0
  291. package/build/lib/catalog/unversioned.d.ts.map +1 -0
  292. package/build/lib/catalog/unversioned.js +31 -0
  293. package/build/lib/catalog/unversioned.js.map +1 -0
  294. package/build/lib/catalog/versioned.d.ts +10720 -0
  295. package/build/lib/catalog/versioned.d.ts.map +1 -0
  296. package/build/lib/catalog/versioned.js +31 -0
  297. package/build/lib/catalog/versioned.js.map +1 -0
  298. package/build/lib/change/$$.d.ts +4 -0
  299. package/build/lib/change/$$.d.ts.map +1 -0
  300. package/build/lib/change/$$.js +4 -0
  301. package/build/lib/change/$$.js.map +1 -0
  302. package/build/lib/change/$.d.ts +2 -0
  303. package/build/lib/change/$.d.ts.map +1 -0
  304. package/build/lib/change/$.js +2 -0
  305. package/build/lib/change/$.js.map +1 -0
  306. package/build/lib/change/calc-changeset.d.ts +11 -0
  307. package/build/lib/change/calc-changeset.d.ts.map +1 -0
  308. package/build/lib/change/calc-changeset.js +584 -0
  309. package/build/lib/change/calc-changeset.js.map +1 -0
  310. package/build/lib/change/change.d.ts +4709 -0
  311. package/build/lib/change/change.d.ts.map +1 -0
  312. package/build/lib/change/change.js +545 -0
  313. package/build/lib/change/change.js.map +1 -0
  314. package/build/lib/change/criticality.d.ts +41 -0
  315. package/build/lib/change/criticality.d.ts.map +1 -0
  316. package/build/lib/change/criticality.js +37 -0
  317. package/build/lib/change/criticality.js.map +1 -0
  318. package/build/lib/change/level.d.ts +3 -0
  319. package/build/lib/change/level.d.ts.map +1 -0
  320. package/build/lib/change/level.js +3 -0
  321. package/build/lib/change/level.js.map +1 -0
  322. package/build/lib/date-only/$.d.ts +2 -0
  323. package/build/lib/date-only/$.d.ts.map +1 -0
  324. package/build/lib/date-only/$.js +2 -0
  325. package/build/lib/date-only/$.js.map +1 -0
  326. package/build/lib/date-only/date-only.d.ts +49 -0
  327. package/build/lib/date-only/date-only.d.ts.map +1 -0
  328. package/build/lib/date-only/date-only.js +76 -0
  329. package/build/lib/date-only/date-only.js.map +1 -0
  330. package/build/lib/file-path/$$.d.ts +2 -0
  331. package/build/lib/file-path/$$.d.ts.map +1 -0
  332. package/build/lib/file-path/$$.js +5 -0
  333. package/build/lib/file-path/$$.js.map +1 -0
  334. package/build/lib/file-path/$.d.ts +2 -0
  335. package/build/lib/file-path/$.d.ts.map +1 -0
  336. package/build/lib/file-path/$.js +5 -0
  337. package/build/lib/file-path/$.js.map +1 -0
  338. package/build/lib/file-path/file-path.d.ts +45 -0
  339. package/build/lib/file-path/file-path.d.ts.map +1 -0
  340. package/build/lib/file-path/file-path.js +96 -0
  341. package/build/lib/file-path/file-path.js.map +1 -0
  342. package/build/lib/file-router/route.d.ts +1 -1
  343. package/build/lib/file-router/route.d.ts.map +1 -1
  344. package/build/lib/file-router/scan.d.ts +2 -1
  345. package/build/lib/file-router/scan.d.ts.map +1 -1
  346. package/build/lib/file-router/scan.js +10 -6
  347. package/build/lib/file-router/scan.js.map +1 -1
  348. package/build/lib/grafaid/schema/ast.d.ts +2 -1
  349. package/build/lib/grafaid/schema/ast.d.ts.map +1 -1
  350. package/build/lib/grafaid/schema/ast.js +7 -2
  351. package/build/lib/grafaid/schema/ast.js.map +1 -1
  352. package/build/lib/grafaid/schema/read.d.ts +3 -1
  353. package/build/lib/grafaid/schema/read.d.ts.map +1 -1
  354. package/build/lib/grafaid/schema/read.js +17 -7
  355. package/build/lib/grafaid/schema/read.js.map +1 -1
  356. package/build/lib/grafaid/schema/schema.d.ts +4 -1
  357. package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
  358. package/build/lib/grafaid/schema/schema.js +7 -1
  359. package/build/lib/grafaid/schema/schema.js.map +1 -1
  360. package/build/lib/grafaid/schema/type-class-name.d.ts +1 -1
  361. package/build/lib/grafaid/schema/type-class-name.d.ts.map +1 -1
  362. package/build/lib/grafaid-old/grafaid.d.ts +2 -2
  363. package/build/lib/grafaid-old/grafaid.d.ts.map +1 -1
  364. package/build/lib/graph/$$.d.ts +2 -0
  365. package/build/lib/graph/$$.d.ts.map +1 -0
  366. package/build/lib/graph/$$.js +2 -0
  367. package/build/lib/graph/$$.js.map +1 -0
  368. package/build/lib/graph/$.d.ts +2 -0
  369. package/build/lib/graph/$.d.ts.map +1 -0
  370. package/build/lib/graph/$.js +2 -0
  371. package/build/lib/graph/$.js.map +1 -0
  372. package/build/lib/graph/graph.d.ts +127 -0
  373. package/build/lib/graph/graph.d.ts.map +1 -0
  374. package/build/lib/graph/graph.js +152 -0
  375. package/build/lib/graph/graph.js.map +1 -0
  376. package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts +4 -2
  377. package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts.map +1 -1
  378. package/build/lib/graphql-schema-loader/graphql-schema-loader.js +29 -28
  379. package/build/lib/graphql-schema-loader/graphql-schema-loader.js.map +1 -1
  380. package/build/lib/helpers.d.ts +30 -1
  381. package/build/lib/helpers.d.ts.map +1 -1
  382. package/build/lib/helpers.js +53 -9
  383. package/build/lib/helpers.js.map +1 -1
  384. package/build/lib/kit-temp/$$.d.ts +7 -0
  385. package/build/lib/kit-temp/$$.d.ts.map +1 -0
  386. package/build/lib/kit-temp/$$.js +7 -0
  387. package/build/lib/kit-temp/$$.js.map +1 -0
  388. package/build/lib/kit-temp/$.d.ts +2 -0
  389. package/build/lib/kit-temp/$.d.ts.map +1 -0
  390. package/build/lib/kit-temp/$.js +3 -0
  391. package/build/lib/kit-temp/$.js.map +1 -0
  392. package/build/lib/kit-temp/array.d.ts +2 -0
  393. package/build/lib/kit-temp/array.d.ts.map +1 -0
  394. package/build/lib/kit-temp/array.js +23 -0
  395. package/build/lib/kit-temp/array.js.map +1 -0
  396. package/build/lib/kit-temp/effect.d.ts +271 -0
  397. package/build/lib/kit-temp/effect.d.ts.map +1 -0
  398. package/build/lib/kit-temp/effect.js +383 -0
  399. package/build/lib/kit-temp/effect.js.map +1 -0
  400. package/build/lib/kit-temp/global-local-check.d.ts +51 -0
  401. package/build/lib/kit-temp/global-local-check.d.ts.map +1 -0
  402. package/build/lib/kit-temp/global-local-check.js +115 -0
  403. package/build/lib/kit-temp/global-local-check.js.map +1 -0
  404. package/build/lib/kit-temp/ob.d.ts +13 -0
  405. package/build/lib/kit-temp/ob.d.ts.map +1 -0
  406. package/build/lib/kit-temp/ob.js +2 -0
  407. package/build/lib/kit-temp/ob.js.map +1 -0
  408. package/build/lib/kit-temp/other.d.ts +341 -0
  409. package/build/lib/kit-temp/other.d.ts.map +1 -0
  410. package/build/lib/kit-temp/other.js +584 -0
  411. package/build/lib/kit-temp/other.js.map +1 -0
  412. package/build/lib/kit-temp/other.test-d.d.ts +2 -0
  413. package/build/lib/kit-temp/other.test-d.d.ts.map +1 -0
  414. package/build/lib/kit-temp/other.test-d.js +75 -0
  415. package/build/lib/kit-temp/other.test-d.js.map +1 -0
  416. package/build/lib/kit-temp/resource.d.ts +139 -0
  417. package/build/lib/kit-temp/resource.d.ts.map +1 -0
  418. package/build/lib/kit-temp/resource.js +155 -0
  419. package/build/lib/kit-temp/resource.js.map +1 -0
  420. package/build/lib/lifecycles/$$.d.ts +2 -0
  421. package/build/lib/lifecycles/$$.d.ts.map +1 -0
  422. package/build/lib/lifecycles/$$.js +2 -0
  423. package/build/lib/lifecycles/$$.js.map +1 -0
  424. package/build/lib/lifecycles/$.d.ts +2 -0
  425. package/build/lib/lifecycles/$.d.ts.map +1 -0
  426. package/build/lib/lifecycles/$.js +2 -0
  427. package/build/lib/lifecycles/$.js.map +1 -0
  428. package/build/lib/lifecycles/lifecycles.d.ts +91 -0
  429. package/build/lib/lifecycles/lifecycles.d.ts.map +1 -0
  430. package/build/lib/lifecycles/lifecycles.js +393 -0
  431. package/build/lib/lifecycles/lifecycles.js.map +1 -0
  432. package/build/lib/mask/apply.d.ts +3 -3
  433. package/build/lib/mask/apply.d.ts.map +1 -1
  434. package/build/lib/memory-filesystem/$$.d.ts +2 -0
  435. package/build/lib/memory-filesystem/$$.d.ts.map +1 -0
  436. package/build/lib/memory-filesystem/$$.js +2 -0
  437. package/build/lib/memory-filesystem/$$.js.map +1 -0
  438. package/build/lib/memory-filesystem/$.d.ts +2 -0
  439. package/build/lib/memory-filesystem/$.d.ts.map +1 -0
  440. package/build/lib/memory-filesystem/$.js +2 -0
  441. package/build/lib/memory-filesystem/$.js.map +1 -0
  442. package/build/lib/memory-filesystem/memory-filesystem.d.ts +26 -0
  443. package/build/lib/memory-filesystem/memory-filesystem.d.ts.map +1 -0
  444. package/build/lib/memory-filesystem/memory-filesystem.js +122 -0
  445. package/build/lib/memory-filesystem/memory-filesystem.js.map +1 -0
  446. package/build/lib/path-map/path-map.d.ts +11 -11
  447. package/build/lib/path-map/path-map.d.ts.map +1 -1
  448. package/build/lib/path-map/path-map.js.map +1 -1
  449. package/build/lib/react-router-effect/$$.d.ts +5 -0
  450. package/build/lib/react-router-effect/$$.d.ts.map +1 -0
  451. package/build/lib/react-router-effect/$$.js +6 -0
  452. package/build/lib/react-router-effect/$$.js.map +1 -0
  453. package/build/lib/react-router-effect/$.d.ts +2 -0
  454. package/build/lib/react-router-effect/$.d.ts.map +1 -0
  455. package/build/lib/react-router-effect/$.js +2 -0
  456. package/build/lib/react-router-effect/$.js.map +1 -0
  457. package/build/lib/react-router-effect/create-loader.d.ts +2 -0
  458. package/build/lib/react-router-effect/create-loader.d.ts.map +1 -0
  459. package/build/lib/react-router-effect/create-loader.js +57 -0
  460. package/build/lib/react-router-effect/create-loader.js.map +1 -0
  461. package/build/lib/react-router-effect/route-helpers.d.ts +11 -0
  462. package/build/lib/react-router-effect/route-helpers.d.ts.map +1 -0
  463. package/build/lib/react-router-effect/route-helpers.js +17 -0
  464. package/build/lib/react-router-effect/route-helpers.js.map +1 -0
  465. package/build/lib/react-router-effect/route.d.ts +30 -0
  466. package/build/lib/react-router-effect/route.d.ts.map +1 -0
  467. package/build/lib/react-router-effect/route.js +66 -0
  468. package/build/lib/react-router-effect/route.js.map +1 -0
  469. package/build/lib/react-router-effect/types.d.ts +72 -0
  470. package/build/lib/react-router-effect/types.d.ts.map +1 -0
  471. package/build/lib/react-router-effect/types.js +2 -0
  472. package/build/lib/react-router-effect/types.js.map +1 -0
  473. package/build/lib/react-router-effect/use-loader-data.d.ts +59 -0
  474. package/build/lib/react-router-effect/use-loader-data.d.ts.map +1 -0
  475. package/build/lib/react-router-effect/use-loader-data.js +107 -0
  476. package/build/lib/react-router-effect/use-loader-data.js.map +1 -0
  477. package/build/lib/revision/$.d.ts +2 -0
  478. package/build/lib/revision/$.d.ts.map +1 -0
  479. package/build/lib/revision/$.js +2 -0
  480. package/build/lib/revision/$.js.map +1 -0
  481. package/build/lib/revision/revision.d.ts +18268 -0
  482. package/build/lib/revision/revision.d.ts.map +1 -0
  483. package/build/lib/revision/revision.js +45 -0
  484. package/build/lib/revision/revision.js.map +1 -0
  485. package/build/lib/schema/$.d.ts +2 -0
  486. package/build/lib/schema/$.d.ts.map +1 -0
  487. package/build/lib/schema/$.js +2 -0
  488. package/build/lib/schema/$.js.map +1 -0
  489. package/build/lib/schema/schema.d.ts +12410 -0
  490. package/build/lib/schema/schema.d.ts.map +1 -0
  491. package/build/lib/schema/schema.js +34 -0
  492. package/build/lib/schema/schema.js.map +1 -0
  493. package/build/lib/schema/unversioned.d.ts +17204 -0
  494. package/build/lib/schema/unversioned.d.ts.map +1 -0
  495. package/build/lib/schema/unversioned.js +45 -0
  496. package/build/lib/schema/unversioned.js.map +1 -0
  497. package/build/lib/schema/versioned.d.ts +10734 -0
  498. package/build/lib/schema/versioned.d.ts.map +1 -0
  499. package/build/lib/schema/versioned.js +40 -0
  500. package/build/lib/schema/versioned.js.map +1 -0
  501. package/build/lib/schema-definition/$.d.ts +2 -0
  502. package/build/lib/schema-definition/$.d.ts.map +1 -0
  503. package/build/lib/schema-definition/$.js +2 -0
  504. package/build/lib/schema-definition/$.js.map +1 -0
  505. package/build/lib/schema-definition/graphql-ast.d.ts +4 -0
  506. package/build/lib/schema-definition/graphql-ast.d.ts.map +1 -0
  507. package/build/lib/schema-definition/graphql-ast.js +12 -0
  508. package/build/lib/schema-definition/graphql-ast.js.map +1 -0
  509. package/build/lib/schema-definition/schema-definition.d.ts +16 -0
  510. package/build/lib/schema-definition/schema-definition.d.ts.map +1 -0
  511. package/build/lib/schema-definition/schema-definition.js +85 -0
  512. package/build/lib/schema-definition/schema-definition.js.map +1 -0
  513. package/build/lib/semver/$$.d.ts +2 -0
  514. package/build/lib/semver/$$.d.ts.map +1 -0
  515. package/build/lib/semver/$$.js +2 -0
  516. package/build/lib/semver/$$.js.map +1 -0
  517. package/build/lib/semver/$.d.ts +2 -0
  518. package/build/lib/semver/$.d.ts.map +1 -0
  519. package/build/lib/semver/$.js +2 -0
  520. package/build/lib/semver/$.js.map +1 -0
  521. package/build/lib/semver/official-release.d.ts +89 -0
  522. package/build/lib/semver/official-release.d.ts.map +1 -0
  523. package/build/lib/semver/official-release.js +35 -0
  524. package/build/lib/semver/official-release.js.map +1 -0
  525. package/build/lib/semver/pre-release.d.ts +100 -0
  526. package/build/lib/semver/pre-release.d.ts.map +1 -0
  527. package/build/lib/semver/pre-release.js +36 -0
  528. package/build/lib/semver/pre-release.js.map +1 -0
  529. package/build/lib/semver/semver.d.ts +463 -0
  530. package/build/lib/semver/semver.d.ts.map +1 -0
  531. package/build/lib/semver/semver.js +142 -0
  532. package/build/lib/semver/semver.js.map +1 -0
  533. package/build/lib/services-crud/$$.d.ts +5 -0
  534. package/build/lib/services-crud/$$.d.ts.map +1 -0
  535. package/build/lib/services-crud/$$.js +5 -0
  536. package/build/lib/services-crud/$$.js.map +1 -0
  537. package/build/lib/services-crud/$.d.ts +2 -0
  538. package/build/lib/services-crud/$.d.ts.map +1 -0
  539. package/build/lib/services-crud/$.js +2 -0
  540. package/build/lib/services-crud/$.js.map +1 -0
  541. package/build/lib/services-crud/browser-ro.d.ts +51 -0
  542. package/build/lib/services-crud/browser-ro.d.ts.map +1 -0
  543. package/build/lib/services-crud/browser-ro.js +69 -0
  544. package/build/lib/services-crud/browser-ro.js.map +1 -0
  545. package/build/lib/services-crud/filesystem.d.ts +17 -0
  546. package/build/lib/services-crud/filesystem.d.ts.map +1 -0
  547. package/build/lib/services-crud/filesystem.js +36 -0
  548. package/build/lib/services-crud/filesystem.js.map +1 -0
  549. package/build/lib/services-crud/memory.d.ts +31 -0
  550. package/build/lib/services-crud/memory.d.ts.map +1 -0
  551. package/build/lib/services-crud/memory.js +61 -0
  552. package/build/lib/services-crud/memory.js.map +1 -0
  553. package/build/lib/services-crud/service.d.ts +45 -0
  554. package/build/lib/services-crud/service.d.ts.map +1 -0
  555. package/build/lib/services-crud/service.js +6 -0
  556. package/build/lib/services-crud/service.js.map +1 -0
  557. package/build/lib/stack-processor/stack-processor.d.ts +17 -0
  558. package/build/lib/stack-processor/stack-processor.d.ts.map +1 -1
  559. package/build/lib/stack-processor/stack-processor.js +24 -0
  560. package/build/lib/stack-processor/stack-processor.js.map +1 -1
  561. package/build/lib/task/report.d.ts +2 -2
  562. package/build/lib/task/report.d.ts.map +1 -1
  563. package/build/lib/task/task.d.ts +13 -12
  564. package/build/lib/task/task.d.ts.map +1 -1
  565. package/build/lib/task/task.js +22 -14
  566. package/build/lib/task/task.js.map +1 -1
  567. package/build/lib/version/$$.d.ts +2 -0
  568. package/build/lib/version/$$.d.ts.map +1 -0
  569. package/build/lib/version/$$.js +2 -0
  570. package/build/lib/version/$$.js.map +1 -0
  571. package/build/lib/version/$.d.ts +2 -0
  572. package/build/lib/version/$.d.ts.map +1 -0
  573. package/build/lib/version/$.js +2 -0
  574. package/build/lib/version/$.js.map +1 -0
  575. package/build/lib/version/custom.d.ts +44 -0
  576. package/build/lib/version/custom.d.ts.map +1 -0
  577. package/build/lib/version/custom.js +31 -0
  578. package/build/lib/version/custom.js.map +1 -0
  579. package/build/lib/version/date.d.ts +44 -0
  580. package/build/lib/version/date.d.ts.map +1 -0
  581. package/build/lib/version/date.js +32 -0
  582. package/build/lib/version/date.js.map +1 -0
  583. package/build/lib/version/integer.d.ts +44 -0
  584. package/build/lib/version/integer.d.ts.map +1 -0
  585. package/build/lib/version/integer.js +31 -0
  586. package/build/lib/version/integer.js.map +1 -0
  587. package/build/lib/version/semver.d.ts +44 -0
  588. package/build/lib/version/semver.d.ts.map +1 -0
  589. package/build/lib/version/semver.js +31 -0
  590. package/build/lib/version/semver.js.map +1 -0
  591. package/build/lib/version/version.d.ts +386 -0
  592. package/build/lib/version/version.d.ts.map +1 -0
  593. package/build/lib/version/version.js +181 -0
  594. package/build/lib/version/version.js.map +1 -0
  595. package/build/lib/vite-plugin-json/vite-plugin-json.d.ts +1 -1
  596. package/build/lib/vite-plugin-json/vite-plugin-json.d.ts.map +1 -1
  597. package/build/lib/vite-plugin-json/vite-plugin-json.js +1 -2
  598. package/build/lib/vite-plugin-json/vite-plugin-json.js.map +1 -1
  599. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.d.ts.map +1 -1
  600. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js +2 -0
  601. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js.map +1 -1
  602. package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts +1 -1
  603. package/build/project-data.d.ts +1 -1
  604. package/build/project-data.d.ts.map +1 -1
  605. package/build/sandbox.js +15 -1
  606. package/build/sandbox.js.map +1 -1
  607. package/build/template/catalog-bridge.d.ts +1837 -0
  608. package/build/template/catalog-bridge.d.ts.map +1 -0
  609. package/build/template/catalog-bridge.js +87 -0
  610. package/build/template/catalog-bridge.js.map +1 -0
  611. package/build/template/components/Changelog/ChangeBase.d.ts +1 -1
  612. package/build/template/components/Changelog/ChangeBase.d.ts.map +1 -1
  613. package/build/template/components/Changelog/ChangeBase.js +1 -0
  614. package/build/template/components/Changelog/ChangeBase.js.map +1 -1
  615. package/build/template/components/Changelog/Changelog.d.ts +8 -0
  616. package/build/template/components/Changelog/Changelog.d.ts.map +1 -0
  617. package/build/template/components/Changelog/Changelog.js +105 -0
  618. package/build/template/components/Changelog/Changelog.js.map +1 -0
  619. package/build/template/components/Changelog/ChangelogVersionPicker.d.ts +8 -0
  620. package/build/template/components/Changelog/ChangelogVersionPicker.d.ts.map +1 -0
  621. package/build/template/components/Changelog/ChangelogVersionPicker.js +16 -0
  622. package/build/template/components/Changelog/ChangelogVersionPicker.js.map +1 -0
  623. package/build/template/components/Changelog/CriticalitySection.d.ts +2 -2
  624. package/build/template/components/Changelog/CriticalitySection.d.ts.map +1 -1
  625. package/build/template/components/Changelog/CriticalitySection.js +15 -1
  626. package/build/template/components/Changelog/CriticalitySection.js.map +1 -1
  627. package/build/template/components/Changelog/groups/DirectiveArgument.d.ts +1 -2
  628. package/build/template/components/Changelog/groups/DirectiveArgument.d.ts.map +1 -1
  629. package/build/template/components/Changelog/groups/DirectiveArgument.js +4 -3
  630. package/build/template/components/Changelog/groups/DirectiveArgument.js.map +1 -1
  631. package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts +1 -2
  632. package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts.map +1 -1
  633. package/build/template/components/Changelog/groups/DirectiveArgumentDescription.js +2 -1
  634. package/build/template/components/Changelog/groups/DirectiveArgumentDescription.js.map +1 -1
  635. package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts +1 -2
  636. package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts.map +1 -1
  637. package/build/template/components/Changelog/groups/DirectiveArgumentOperation.js +4 -3
  638. package/build/template/components/Changelog/groups/DirectiveArgumentOperation.js.map +1 -1
  639. package/build/template/components/Changelog/groups/DirectiveDescription.d.ts +1 -2
  640. package/build/template/components/Changelog/groups/DirectiveDescription.d.ts.map +1 -1
  641. package/build/template/components/Changelog/groups/DirectiveDescription.js +2 -1
  642. package/build/template/components/Changelog/groups/DirectiveDescription.js.map +1 -1
  643. package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts +1 -2
  644. package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts.map +1 -1
  645. package/build/template/components/Changelog/groups/DirectiveLocationOperation.js +4 -3
  646. package/build/template/components/Changelog/groups/DirectiveLocationOperation.js.map +1 -1
  647. package/build/template/components/Changelog/groups/DirectiveOperation.d.ts +1 -2
  648. package/build/template/components/Changelog/groups/DirectiveOperation.d.ts.map +1 -1
  649. package/build/template/components/Changelog/groups/DirectiveOperation.js +4 -3
  650. package/build/template/components/Changelog/groups/DirectiveOperation.js.map +1 -1
  651. package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts +1 -2
  652. package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts.map +1 -1
  653. package/build/template/components/Changelog/groups/EnumValueDeprecationReason.js +5 -4
  654. package/build/template/components/Changelog/groups/EnumValueDeprecationReason.js.map +1 -1
  655. package/build/template/components/Changelog/groups/EnumValueDescription.d.ts +1 -2
  656. package/build/template/components/Changelog/groups/EnumValueDescription.d.ts.map +1 -1
  657. package/build/template/components/Changelog/groups/EnumValueDescription.js +2 -1
  658. package/build/template/components/Changelog/groups/EnumValueDescription.js.map +1 -1
  659. package/build/template/components/Changelog/groups/EnumValueOperation.d.ts +1 -2
  660. package/build/template/components/Changelog/groups/EnumValueOperation.d.ts.map +1 -1
  661. package/build/template/components/Changelog/groups/EnumValueOperation.js +4 -3
  662. package/build/template/components/Changelog/groups/EnumValueOperation.js.map +1 -1
  663. package/build/template/components/Changelog/groups/FieldArgument.d.ts +1 -2
  664. package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
  665. package/build/template/components/Changelog/groups/FieldArgument.js +4 -3
  666. package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
  667. package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts +1 -2
  668. package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts.map +1 -1
  669. package/build/template/components/Changelog/groups/FieldArgumentDescription.js +2 -1
  670. package/build/template/components/Changelog/groups/FieldArgumentDescription.js.map +1 -1
  671. package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts +1 -2
  672. package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts.map +1 -1
  673. package/build/template/components/Changelog/groups/FieldArgumentOperation.js +4 -3
  674. package/build/template/components/Changelog/groups/FieldArgumentOperation.js.map +1 -1
  675. package/build/template/components/Changelog/groups/FieldDeprecation.d.ts +1 -2
  676. package/build/template/components/Changelog/groups/FieldDeprecation.d.ts.map +1 -1
  677. package/build/template/components/Changelog/groups/FieldDeprecation.js +4 -3
  678. package/build/template/components/Changelog/groups/FieldDeprecation.js.map +1 -1
  679. package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts +1 -2
  680. package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts.map +1 -1
  681. package/build/template/components/Changelog/groups/FieldDeprecationReason.js +5 -4
  682. package/build/template/components/Changelog/groups/FieldDeprecationReason.js.map +1 -1
  683. package/build/template/components/Changelog/groups/FieldDescription.d.ts +1 -2
  684. package/build/template/components/Changelog/groups/FieldDescription.d.ts.map +1 -1
  685. package/build/template/components/Changelog/groups/FieldDescription.js +5 -4
  686. package/build/template/components/Changelog/groups/FieldDescription.js.map +1 -1
  687. package/build/template/components/Changelog/groups/FieldOperation.d.ts +1 -2
  688. package/build/template/components/Changelog/groups/FieldOperation.d.ts.map +1 -1
  689. package/build/template/components/Changelog/groups/FieldOperation.js +5 -4
  690. package/build/template/components/Changelog/groups/FieldOperation.js.map +1 -1
  691. package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts +1 -2
  692. package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts.map +1 -1
  693. package/build/template/components/Changelog/groups/InputFieldDefaultValue.js +2 -1
  694. package/build/template/components/Changelog/groups/InputFieldDefaultValue.js.map +1 -1
  695. package/build/template/components/Changelog/groups/InputFieldDescription.d.ts +1 -2
  696. package/build/template/components/Changelog/groups/InputFieldDescription.d.ts.map +1 -1
  697. package/build/template/components/Changelog/groups/InputFieldDescription.js +5 -4
  698. package/build/template/components/Changelog/groups/InputFieldDescription.js.map +1 -1
  699. package/build/template/components/Changelog/groups/InputFieldOperation.d.ts +1 -2
  700. package/build/template/components/Changelog/groups/InputFieldOperation.d.ts.map +1 -1
  701. package/build/template/components/Changelog/groups/InputFieldOperation.js +5 -4
  702. package/build/template/components/Changelog/groups/InputFieldOperation.js.map +1 -1
  703. package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts +1 -2
  704. package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts.map +1 -1
  705. package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.js +4 -3
  706. package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.js.map +1 -1
  707. package/build/template/components/Changelog/groups/SchemaRootType.d.ts +1 -2
  708. package/build/template/components/Changelog/groups/SchemaRootType.d.ts.map +1 -1
  709. package/build/template/components/Changelog/groups/SchemaRootType.js +5 -4
  710. package/build/template/components/Changelog/groups/SchemaRootType.js.map +1 -1
  711. package/build/template/components/Changelog/groups/TypeDescription.d.ts +1 -2
  712. package/build/template/components/Changelog/groups/TypeDescription.d.ts.map +1 -1
  713. package/build/template/components/Changelog/groups/TypeDescription.js +5 -4
  714. package/build/template/components/Changelog/groups/TypeDescription.js.map +1 -1
  715. package/build/template/components/Changelog/groups/TypeOperation.d.ts +1 -2
  716. package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
  717. package/build/template/components/Changelog/groups/TypeOperation.js +5 -4
  718. package/build/template/components/Changelog/groups/TypeOperation.js.map +1 -1
  719. package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts +1 -2
  720. package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts.map +1 -1
  721. package/build/template/components/Changelog/groups/UnionMemberOperation.js +4 -3
  722. package/build/template/components/Changelog/groups/UnionMemberOperation.js.map +1 -1
  723. package/build/template/components/Changelog/groups/index.d.ts +0 -1
  724. package/build/template/components/Changelog/groups/index.d.ts.map +1 -1
  725. package/build/template/components/Changelog/groups/index.js +1 -1
  726. package/build/template/components/Changelog/groups/index.js.map +1 -1
  727. package/build/template/components/CodeBlock.d.ts.map +1 -1
  728. package/build/template/components/CodeBlock.js +6 -2
  729. package/build/template/components/CodeBlock.js.map +1 -1
  730. package/build/template/components/Field.d.ts.map +1 -1
  731. package/build/template/components/Field.js +19 -19
  732. package/build/template/components/Field.js.map +1 -1
  733. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +1 -1
  734. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
  735. package/build/template/components/GraphQLInteractive/lib/parser.d.ts +1 -1
  736. package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
  737. package/build/template/components/HamburgerMenu.d.ts.map +1 -1
  738. package/build/template/components/HamburgerMenu.js +1 -1
  739. package/build/template/components/HamburgerMenu.js.map +1 -1
  740. package/build/template/components/Link.js +1 -1
  741. package/build/template/components/Link.js.map +1 -1
  742. package/build/template/components/NamedType.d.ts.map +1 -1
  743. package/build/template/components/NamedType.js +15 -9
  744. package/build/template/components/NamedType.js.map +1 -1
  745. package/build/template/components/VersionPicker.d.ts +3 -2
  746. package/build/template/components/VersionPicker.d.ts.map +1 -1
  747. package/build/template/components/VersionPicker.js +34 -15
  748. package/build/template/components/VersionPicker.js.map +1 -1
  749. package/build/template/components/sidebar/Sidebar.js +1 -1
  750. package/build/template/components/sidebar/Sidebar.js.map +1 -1
  751. package/build/template/contexts/GraphqlLifecycleContext.d.ts +31 -0
  752. package/build/template/contexts/GraphqlLifecycleContext.d.ts.map +1 -0
  753. package/build/template/contexts/GraphqlLifecycleContext.js +27 -0
  754. package/build/template/contexts/GraphqlLifecycleContext.js.map +1 -0
  755. package/build/template/contexts/ThemeContext.js.map +1 -1
  756. package/build/template/data/catalog.d.ts +3 -0
  757. package/build/template/data/catalog.d.ts.map +1 -0
  758. package/build/template/data/catalog.js +7 -0
  759. package/build/template/data/catalog.js.map +1 -0
  760. package/build/template/entry.client.js +7 -3
  761. package/build/template/entry.client.js.map +1 -1
  762. package/build/template/hooks/useVersionPath.d.ts.map +1 -1
  763. package/build/template/hooks/useVersionPath.js +6 -1
  764. package/build/template/hooks/useVersionPath.js.map +1 -1
  765. package/build/template/layouts/ChangelogLayout.d.ts +3 -3
  766. package/build/template/layouts/ChangelogLayout.d.ts.map +1 -1
  767. package/build/template/layouts/ChangelogLayout.js +64 -46
  768. package/build/template/layouts/ChangelogLayout.js.map +1 -1
  769. package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
  770. package/build/template/layouts/SidebarLayout.js +1 -1
  771. package/build/template/layouts/SidebarLayout.js.map +1 -1
  772. package/build/template/lib/polen-url.js +1 -1
  773. package/build/template/lib/polen-url.js.map +1 -1
  774. package/build/template/routes/changelog.d.ts +1648 -9
  775. package/build/template/routes/changelog.d.ts.map +1 -1
  776. package/build/template/routes/changelog.js +26 -22
  777. package/build/template/routes/changelog.js.map +1 -1
  778. package/build/template/routes/index.d.ts +1 -1
  779. package/build/template/routes/index.d.ts.map +1 -1
  780. package/build/template/routes/index.js +1 -1
  781. package/build/template/routes/index.js.map +1 -1
  782. package/build/template/routes/pages.d.ts +1 -9
  783. package/build/template/routes/pages.d.ts.map +1 -1
  784. package/build/template/routes/pages.js +4 -17
  785. package/build/template/routes/pages.js.map +1 -1
  786. package/build/template/routes/reference.d.ts +1 -56
  787. package/build/template/routes/reference.d.ts.map +1 -1
  788. package/build/template/routes/reference.js +83 -43
  789. package/build/template/routes/reference.js.map +1 -1
  790. package/build/template/routes/root.d.ts +2 -7
  791. package/build/template/routes/root.d.ts.map +1 -1
  792. package/build/template/routes/root.js +13 -10
  793. package/build/template/routes/root.js.map +1 -1
  794. package/build/template/server/create-page-html-response.js.map +1 -1
  795. package/build/template/server/main.js +4 -7
  796. package/build/template/server/main.js.map +1 -1
  797. package/build/template/server/view.d.ts.map +1 -1
  798. package/build/template/server/view.js +4 -2
  799. package/build/template/server/view.js.map +1 -1
  800. package/build/template/stores/$$.d.ts +2 -0
  801. package/build/template/stores/$$.d.ts.map +1 -1
  802. package/build/template/stores/$$.js +2 -0
  803. package/build/template/stores/$$.js.map +1 -1
  804. package/build/template/stores/changelog.d.ts +1714 -0
  805. package/build/template/stores/changelog.d.ts.map +1 -0
  806. package/build/template/stores/changelog.js +73 -0
  807. package/build/template/stores/changelog.js.map +1 -0
  808. package/build/template/stores/schema.d.ts +9 -14
  809. package/build/template/stores/schema.d.ts.map +1 -1
  810. package/build/template/stores/schema.js +19 -2
  811. package/build/template/stores/schema.js.map +1 -1
  812. package/build/template/stores/toast.d.ts +76 -29
  813. package/build/template/stores/toast.d.ts.map +1 -1
  814. package/build/template/stores/toast.js +53 -16
  815. package/build/template/stores/toast.js.map +1 -1
  816. package/build/vite/config.d.ts +10 -0
  817. package/build/vite/config.d.ts.map +1 -0
  818. package/build/vite/config.js +17 -0
  819. package/build/vite/config.js.map +1 -0
  820. package/build/vite/index.d.ts +6 -0
  821. package/build/vite/index.d.ts.map +1 -0
  822. package/build/vite/index.js +6 -0
  823. package/build/vite/index.js.map +1 -0
  824. package/build/vite/log-filters.d.ts.map +1 -0
  825. package/build/vite/log-filters.js.map +1 -0
  826. package/build/vite/logger.d.ts +27 -0
  827. package/build/vite/logger.d.ts.map +1 -0
  828. package/build/vite/logger.js +67 -0
  829. package/build/vite/logger.js.map +1 -0
  830. package/build/vite/plugins/branding.d.ts.map +1 -0
  831. package/build/vite/plugins/branding.js +80 -0
  832. package/build/vite/plugins/branding.js.map +1 -0
  833. package/build/vite/plugins/build.d.ts +4 -0
  834. package/build/vite/plugins/build.d.ts.map +1 -0
  835. package/build/vite/plugins/build.js +144 -0
  836. package/build/vite/plugins/build.js.map +1 -0
  837. package/build/vite/plugins/core.d.ts +12 -0
  838. package/build/vite/plugins/core.d.ts.map +1 -0
  839. package/build/vite/plugins/core.js +226 -0
  840. package/build/vite/plugins/core.js.map +1 -0
  841. package/build/vite/plugins/index.d.ts +8 -0
  842. package/build/vite/plugins/index.d.ts.map +1 -0
  843. package/build/vite/plugins/index.js +8 -0
  844. package/build/vite/plugins/index.js.map +1 -0
  845. package/build/vite/plugins/main.d.ts +4 -0
  846. package/build/vite/plugins/main.d.ts.map +1 -0
  847. package/build/vite/plugins/main.js +26 -0
  848. package/build/vite/plugins/main.js.map +1 -0
  849. package/build/vite/plugins/manifest.d.ts +4 -0
  850. package/build/vite/plugins/manifest.d.ts.map +1 -0
  851. package/build/vite/plugins/manifest.js +27 -0
  852. package/build/vite/plugins/manifest.js.map +1 -0
  853. package/build/vite/plugins/pages.d.ts +17 -0
  854. package/build/vite/plugins/pages.d.ts.map +1 -0
  855. package/build/vite/plugins/pages.js +210 -0
  856. package/build/vite/plugins/pages.js.map +1 -0
  857. package/build/vite/plugins/routes-manifest.d.ts +9 -0
  858. package/build/vite/plugins/routes-manifest.d.ts.map +1 -0
  859. package/build/vite/plugins/routes-manifest.js +99 -0
  860. package/build/vite/plugins/routes-manifest.js.map +1 -0
  861. package/build/vite/plugins/schema-assets.d.ts +20 -0
  862. package/build/vite/plugins/schema-assets.d.ts.map +1 -0
  863. package/build/vite/plugins/schema-assets.js +225 -0
  864. package/build/vite/plugins/schema-assets.js.map +1 -0
  865. package/build/vite/plugins/serve.d.ts +4 -0
  866. package/build/vite/plugins/serve.d.ts.map +1 -0
  867. package/build/vite/plugins/serve.js +160 -0
  868. package/build/vite/plugins/serve.js.map +1 -0
  869. package/build/vite/vi.d.ts.map +1 -0
  870. package/build/vite/vi.js.map +1 -0
  871. package/package.json +84 -49
  872. package/src/api/api.ts +3 -8
  873. package/src/api/builder/builder.ts +44 -26
  874. package/src/api/builder/ssg/generate.ts +224 -0
  875. package/src/api/builder/ssg/page-generator.worker.ts +110 -0
  876. package/src/api/builder/ssg/server-runner.worker.ts +158 -0
  877. package/src/api/builder/ssg/worker-messages.ts +69 -0
  878. package/src/api/builder/ssg/worker-spawners.ts +69 -0
  879. package/src/api/cache/cache.ts +180 -134
  880. package/src/api/config/$$.ts +3 -0
  881. package/src/api/config/$.ts +1 -0
  882. package/src/api/config/input.ts +340 -0
  883. package/src/api/config/load.ts +94 -70
  884. package/src/api/config/normalized.ts +433 -0
  885. package/src/api/config-resolver/config-resolver.ts +0 -1
  886. package/src/api/config-resolver/resolve.ts +18 -16
  887. package/src/api/content/$.test.ts +28 -32
  888. package/src/api/content/metadata.ts +5 -5
  889. package/src/api/content/scan.ts +91 -83
  890. package/src/api/content/sidebar.ts +1 -1
  891. package/src/api/iso/schema/constants.ts +1 -0
  892. package/src/api/iso/schema/routing.ts +28 -9
  893. package/src/api/routes/$$.ts +1 -0
  894. package/src/api/routes/$.ts +1 -0
  895. package/src/api/routes/manifest/$$.ts +1 -0
  896. package/src/api/routes/manifest/$.ts +1 -0
  897. package/src/api/routes/manifest/manifest.ts +61 -0
  898. package/src/api/schema/$$.ts +7 -0
  899. package/src/api/schema/$.test.ts +504 -0
  900. package/src/api/schema/$.ts +1 -0
  901. package/src/api/schema/augmentations/$.ts +1 -0
  902. package/src/api/schema/augmentations/augmentations/description.ts +69 -0
  903. package/src/api/schema/augmentations/schema-augmentation.ts +32 -0
  904. package/src/api/schema/augmentations/target.ts +61 -0
  905. package/src/api/schema/config-schema.ts +415 -0
  906. package/src/api/schema/config.ts +7 -0
  907. package/src/api/schema/input-source/$$.ts +2 -0
  908. package/src/api/schema/input-source/$.ts +1 -0
  909. package/src/api/schema/input-source/input-source.ts +134 -0
  910. package/src/api/schema/input-source/load.ts +75 -0
  911. package/src/api/schema/input-sources/$$.ts +6 -0
  912. package/src/api/schema/input-sources/$.ts +1 -0
  913. package/src/api/schema/input-sources/directory.ts +259 -0
  914. package/src/api/schema/input-sources/file.ts +113 -0
  915. package/src/api/schema/input-sources/introspection-file.ts +179 -0
  916. package/src/api/schema/input-sources/introspection.ts +222 -0
  917. package/src/api/schema/input-sources/memory.ts +241 -0
  918. package/src/api/schema/input-sources/versioned-directory.ts +535 -0
  919. package/src/api/schema/load.ts +186 -0
  920. package/src/api/server/report-error.ts +4 -1
  921. package/src/api/singletons/markdown/markdown.test.ts +7 -6
  922. package/src/api/singletons/markdown/markdown.ts +6 -4
  923. package/src/api/static/manifest.test.ts +11 -8
  924. package/src/api/static/manifest.ts +46 -11
  925. package/src/api/static/rebase.ts +171 -82
  926. package/src/cli/_/parameters.ts +7 -0
  927. package/src/cli/commands/build.ts +32 -16
  928. package/src/cli/commands/cache/delete.ts +2 -1
  929. package/src/cli/commands/cache/show.ts +2 -0
  930. package/src/cli/commands/config/create.ts +2 -1
  931. package/src/cli/commands/dev.ts +24 -14
  932. package/src/cli/commands/open.ts +6 -2
  933. package/src/cli/commands/static/rebase.ts +9 -1
  934. package/src/cli/index.ts +28 -0
  935. package/src/cli-effect/_/parameters.ts +17 -0
  936. package/src/cli-effect/commands/build.ts +66 -0
  937. package/src/cli-effect/commands/cache/delete.ts +21 -0
  938. package/src/cli-effect/commands/cache/show.ts +99 -0
  939. package/src/cli-effect/commands/cache.ts +27 -0
  940. package/src/cli-effect/commands/config/create.ts +49 -0
  941. package/src/cli-effect/commands/config.ts +25 -0
  942. package/src/cli-effect/commands/create.ts +167 -0
  943. package/src/cli-effect/commands/dev.ts +72 -0
  944. package/src/cli-effect/commands/open.ts +183 -0
  945. package/src/cli-effect/commands/static/rebase.ts +66 -0
  946. package/src/cli-effect/commands/static.ts +39 -0
  947. package/src/cli-effect/index.ts +79 -0
  948. package/src/dep/tiny-globby/index.ts +1 -0
  949. package/src/dep/tiny-globby/tiny-globby.ts +27 -0
  950. package/src/exports/polen.ts +2 -3
  951. package/src/lib/catalog/$.ts +1 -0
  952. package/src/lib/catalog/catalog.ts +73 -0
  953. package/src/lib/catalog/unversioned.ts +42 -0
  954. package/src/lib/catalog/versioned.ts +42 -0
  955. package/src/lib/change/$$.ts +3 -0
  956. package/src/lib/change/$.ts +1 -0
  957. package/src/lib/change/calc-changeset.ts +650 -0
  958. package/src/lib/change/change.ts +718 -0
  959. package/src/lib/change/criticality.ts +53 -0
  960. package/src/lib/change/level.ts +3 -0
  961. package/src/lib/date-only/$.ts +1 -0
  962. package/src/lib/date-only/date-only.ts +112 -0
  963. package/src/lib/file-path/$$.ts +5 -0
  964. package/src/lib/file-path/$.ts +5 -0
  965. package/src/lib/file-path/file-path.test.ts +80 -0
  966. package/src/lib/file-path/file-path.ts +134 -0
  967. package/src/lib/file-router/index.test.ts +3 -2
  968. package/src/lib/file-router/linter.test.ts +95 -79
  969. package/src/lib/file-router/route.ts +1 -1
  970. package/src/lib/file-router/scan.ts +22 -17
  971. package/src/lib/grafaid/schema/ast.ts +8 -2
  972. package/src/lib/grafaid/schema/read.ts +28 -12
  973. package/src/lib/grafaid/schema/schema.ts +8 -1
  974. package/src/lib/grafaid/schema/type-class-name.ts +9 -9
  975. package/src/lib/grafaid-old/grafaid.ts +6 -6
  976. package/src/lib/graph/$$.ts +1 -0
  977. package/src/lib/graph/$.ts +1 -0
  978. package/src/lib/graph/graph.ts +197 -0
  979. package/src/lib/graphql-schema-loader/graphql-schema-loader.ts +66 -51
  980. package/src/lib/helpers.ts +78 -14
  981. package/src/lib/html-utils/inject-global-data.test.ts +63 -66
  982. package/src/lib/kit-temp/$$.ts +6 -0
  983. package/src/lib/kit-temp/$.ts +2 -0
  984. package/src/lib/kit-temp/array.ts +30 -0
  985. package/src/lib/kit-temp/effect.test.ts +124 -0
  986. package/src/lib/kit-temp/effect.ts +656 -0
  987. package/src/lib/kit-temp/effect.union-adt.test.ts +81 -0
  988. package/src/lib/kit-temp/global-local-check.ts +179 -0
  989. package/src/lib/kit-temp/ob.ts +19 -0
  990. package/src/lib/kit-temp/other.test-d.ts +120 -0
  991. package/src/lib/kit-temp/other.test.ts +256 -0
  992. package/src/lib/kit-temp/other.ts +835 -0
  993. package/src/lib/kit-temp/resource.test.ts +365 -0
  994. package/src/lib/kit-temp/resource.ts +255 -0
  995. package/src/lib/lifecycles/$$.ts +1 -0
  996. package/src/lib/lifecycles/$.ts +1 -0
  997. package/src/lib/lifecycles/lifecycles.ts +521 -0
  998. package/src/lib/mask/$.test.ts +60 -82
  999. package/src/lib/mask/apply.ts +9 -9
  1000. package/src/lib/mask/mask.test-d.ts +1 -1
  1001. package/src/lib/memory-filesystem/$$.ts +1 -0
  1002. package/src/lib/memory-filesystem/$.ts +1 -0
  1003. package/src/lib/memory-filesystem/memory-filesystem.ts +162 -0
  1004. package/src/lib/path-map/path-map.ts +15 -15
  1005. package/src/lib/react-router-effect/$$.ts +5 -0
  1006. package/src/lib/react-router-effect/$.ts +1 -0
  1007. package/src/lib/react-router-effect/README.md +178 -0
  1008. package/src/lib/react-router-effect/create-loader.ts +57 -0
  1009. package/src/lib/react-router-effect/route-helpers.ts +25 -0
  1010. package/src/lib/react-router-effect/route.ts +78 -0
  1011. package/src/lib/react-router-effect/types.ts +82 -0
  1012. package/src/lib/react-router-effect/use-loader-data.ts +133 -0
  1013. package/src/lib/revision/$.ts +1 -0
  1014. package/src/lib/revision/revision.ts +64 -0
  1015. package/src/lib/schema/$.test.ts +54 -0
  1016. package/src/lib/schema/schema.ts +50 -0
  1017. package/src/lib/schema/unversioned.ts +59 -0
  1018. package/src/lib/schema/versioned.ts +83 -0
  1019. package/src/lib/schema-definition/$.test.ts +58 -0
  1020. package/src/lib/schema-definition/$.ts +1 -0
  1021. package/src/lib/schema-definition/graphql-ast.ts +14 -0
  1022. package/src/lib/schema-definition/schema-definition.ts +115 -0
  1023. package/src/lib/semver/$$.ts +1 -0
  1024. package/src/lib/semver/$.test.ts +179 -0
  1025. package/src/lib/semver/$.ts +1 -0
  1026. package/src/lib/semver/official-release.ts +50 -0
  1027. package/src/lib/semver/pre-release.ts +51 -0
  1028. package/src/lib/semver/semver.ts +200 -0
  1029. package/src/lib/services-crud/$$.ts +4 -0
  1030. package/src/lib/services-crud/$.ts +1 -0
  1031. package/src/lib/services-crud/browser-ro.ts +98 -0
  1032. package/src/lib/services-crud/filesystem.ts +63 -0
  1033. package/src/lib/services-crud/memory.ts +86 -0
  1034. package/src/lib/services-crud/service.ts +49 -0
  1035. package/src/lib/stack-processor/stack-processor.ts +32 -0
  1036. package/src/lib/task/$.test.ts +37 -36
  1037. package/src/lib/task/report.ts +2 -2
  1038. package/src/lib/task/task.ts +72 -55
  1039. package/src/lib/theme/theme.test.ts +40 -74
  1040. package/src/lib/version/$$.ts +1 -0
  1041. package/src/lib/version/$.test.ts +101 -0
  1042. package/src/lib/version/$.ts +1 -0
  1043. package/src/lib/version/custom.ts +46 -0
  1044. package/src/lib/version/date.ts +47 -0
  1045. package/src/lib/version/integer.ts +46 -0
  1046. package/src/lib/version/semver.ts +46 -0
  1047. package/src/lib/version/version.ts +222 -0
  1048. package/src/lib/vite-plugin-json/vite-plugin-json.ts +2 -3
  1049. package/src/lib/vite-plugin-mdx/vite-plugin-mdx.ts +3 -1
  1050. package/src/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.ts +1 -1
  1051. package/src/project-data.ts +1 -1
  1052. package/src/sandbox.ts +15 -1
  1053. package/src/template/catalog-bridge.ts +102 -0
  1054. package/src/template/components/Changelog/ChangeBase.tsx +1 -1
  1055. package/src/template/components/Changelog/Changelog.tsx +148 -0
  1056. package/src/template/components/Changelog/ChangelogVersionPicker.tsx +36 -0
  1057. package/src/template/components/Changelog/CriticalitySection.tsx +18 -2
  1058. package/src/template/components/Changelog/groups/DirectiveArgument.tsx +7 -8
  1059. package/src/template/components/Changelog/groups/DirectiveArgumentDescription.tsx +3 -4
  1060. package/src/template/components/Changelog/groups/DirectiveArgumentOperation.tsx +5 -7
  1061. package/src/template/components/Changelog/groups/DirectiveDescription.tsx +3 -3
  1062. package/src/template/components/Changelog/groups/DirectiveLocationOperation.tsx +5 -7
  1063. package/src/template/components/Changelog/groups/DirectiveOperation.tsx +5 -5
  1064. package/src/template/components/Changelog/groups/EnumValueDeprecationReason.tsx +7 -9
  1065. package/src/template/components/Changelog/groups/EnumValueDescription.tsx +3 -3
  1066. package/src/template/components/Changelog/groups/EnumValueOperation.tsx +5 -5
  1067. package/src/template/components/Changelog/groups/FieldArgument.tsx +8 -10
  1068. package/src/template/components/Changelog/groups/FieldArgumentDescription.tsx +5 -4
  1069. package/src/template/components/Changelog/groups/FieldArgumentOperation.tsx +7 -8
  1070. package/src/template/components/Changelog/groups/FieldDeprecation.tsx +5 -5
  1071. package/src/template/components/Changelog/groups/FieldDeprecationReason.tsx +9 -10
  1072. package/src/template/components/Changelog/groups/FieldDescription.tsx +6 -6
  1073. package/src/template/components/Changelog/groups/FieldOperation.tsx +7 -7
  1074. package/src/template/components/Changelog/groups/InputFieldDefaultValue.tsx +4 -5
  1075. package/src/template/components/Changelog/groups/InputFieldDescription.tsx +6 -9
  1076. package/src/template/components/Changelog/groups/InputFieldOperation.tsx +7 -8
  1077. package/src/template/components/Changelog/groups/ObjectTypeInterfaceOperation.tsx +5 -7
  1078. package/src/template/components/Changelog/groups/SchemaRootType.tsx +8 -10
  1079. package/src/template/components/Changelog/groups/TypeDescription.tsx +6 -6
  1080. package/src/template/components/Changelog/groups/TypeOperation.tsx +6 -6
  1081. package/src/template/components/Changelog/groups/UnionMemberOperation.tsx +5 -5
  1082. package/src/template/components/Changelog/groups/index.ts +1 -1
  1083. package/src/template/components/CodeBlock.tsx +6 -2
  1084. package/src/template/components/Field.tsx +38 -28
  1085. package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +1 -1
  1086. package/src/template/components/GraphQLInteractive/components/GraphQLTokenPopover.tsx +8 -8
  1087. package/src/template/components/GraphQLInteractive/lib/parser.ts +1 -1
  1088. package/src/template/components/GraphQLInteractive/tests/parser-error-hint.test.ts +3 -3
  1089. package/src/template/components/GraphQLInteractive/tests/parser.test.ts +76 -65
  1090. package/src/template/components/HamburgerMenu.tsx +5 -1
  1091. package/src/template/components/Link.tsx +1 -1
  1092. package/src/template/components/NamedType.tsx +34 -17
  1093. package/src/template/components/VersionPicker.tsx +48 -23
  1094. package/src/template/components/sidebar/Sidebar.tsx +1 -1
  1095. package/src/template/contexts/GraphqlLifecycleContext.tsx +43 -0
  1096. package/src/template/contexts/ThemeContext.tsx +2 -2
  1097. package/src/template/data/catalog.ts +7 -0
  1098. package/src/template/entry.client.tsx +7 -3
  1099. package/src/template/env.d.ts +3 -0
  1100. package/src/template/hooks/useVersionPath.ts +6 -1
  1101. package/src/template/layouts/ChangelogLayout.tsx +85 -64
  1102. package/src/template/layouts/SidebarLayout.tsx +7 -3
  1103. package/src/template/lib/polen-url.ts +1 -1
  1104. package/src/template/routes/changelog.tsx +27 -27
  1105. package/src/template/routes/index.tsx +1 -1
  1106. package/src/template/routes/pages.tsx +4 -19
  1107. package/src/template/routes/reference.tsx +102 -55
  1108. package/src/template/routes/root.tsx +14 -10
  1109. package/src/template/server/create-page-html-response.ts +2 -2
  1110. package/src/template/server/main.ts +7 -7
  1111. package/src/template/server/view.ts +4 -2
  1112. package/src/template/stores/$$.ts +3 -0
  1113. package/src/template/stores/changelog.ts +87 -0
  1114. package/src/template/stores/schema.ts +21 -10
  1115. package/src/template/stores/toast.ts +56 -37
  1116. package/src/types/global-constants.d.ts +36 -0
  1117. package/src/types/global.d.ts +17 -0
  1118. package/src/types/virtual-modules.d.ts +41 -0
  1119. package/src/vite/config.ts +27 -0
  1120. package/src/vite/index.ts +5 -0
  1121. package/src/vite/logger.ts +90 -0
  1122. package/src/vite/plugins/branding.ts +108 -0
  1123. package/src/vite/plugins/build.ts +147 -0
  1124. package/src/vite/plugins/core.ts +279 -0
  1125. package/src/vite/plugins/index.ts +7 -0
  1126. package/src/vite/plugins/main.ts +42 -0
  1127. package/src/vite/plugins/manifest.ts +36 -0
  1128. package/src/vite/plugins/pages.ts +266 -0
  1129. package/src/vite/plugins/routes-manifest.ts +145 -0
  1130. package/src/vite/plugins/schema-assets.ts +265 -0
  1131. package/src/vite/plugins/serve.ts +201 -0
  1132. package/build/api/config/config.d.ts +0 -5
  1133. package/build/api/config/config.d.ts.map +0 -1
  1134. package/build/api/config/config.js +0 -5
  1135. package/build/api/config/config.js.map +0 -1
  1136. package/build/api/config/configurator.d.ts +0 -380
  1137. package/build/api/config/configurator.d.ts.map +0 -1
  1138. package/build/api/config/configurator.js +0 -177
  1139. package/build/api/config/configurator.js.map +0 -1
  1140. package/build/api/config/define.d.ts +0 -7
  1141. package/build/api/config/define.d.ts.map +0 -1
  1142. package/build/api/config/define.js +0 -7
  1143. package/build/api/config/define.js.map +0 -1
  1144. package/build/api/config/index.d.ts +0 -2
  1145. package/build/api/config/index.d.ts.map +0 -1
  1146. package/build/api/config/index.js +0 -2
  1147. package/build/api/config/index.js.map +0 -1
  1148. package/build/api/config/merge.d.ts +0 -7
  1149. package/build/api/config/merge.d.ts.map +0 -1
  1150. package/build/api/config/merge.js +0 -42
  1151. package/build/api/config/merge.js.map +0 -1
  1152. package/build/api/config-resolver/vite.d.ts +0 -10
  1153. package/build/api/config-resolver/vite.d.ts.map +0 -1
  1154. package/build/api/config-resolver/vite.js +0 -19
  1155. package/build/api/config-resolver/vite.js.map +0 -1
  1156. package/build/api/schema/data-sources/data-sources.d.ts +0 -5
  1157. package/build/api/schema/data-sources/data-sources.d.ts.map +0 -1
  1158. package/build/api/schema/data-sources/data-sources.js +0 -5
  1159. package/build/api/schema/data-sources/data-sources.js.map +0 -1
  1160. package/build/api/schema/data-sources/index.d.ts +0 -2
  1161. package/build/api/schema/data-sources/index.d.ts.map +0 -1
  1162. package/build/api/schema/data-sources/index.js +0 -2
  1163. package/build/api/schema/data-sources/index.js.map +0 -1
  1164. package/build/api/schema/data-sources/introspection/introspection.d.ts +0 -84
  1165. package/build/api/schema/data-sources/introspection/introspection.d.ts.map +0 -1
  1166. package/build/api/schema/data-sources/introspection/introspection.js +0 -111
  1167. package/build/api/schema/data-sources/introspection/introspection.js.map +0 -1
  1168. package/build/api/schema/data-sources/memory/memory.d.ts +0 -51
  1169. package/build/api/schema/data-sources/memory/memory.d.ts.map +0 -1
  1170. package/build/api/schema/data-sources/memory/memory.js +0 -63
  1171. package/build/api/schema/data-sources/memory/memory.js.map +0 -1
  1172. package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.d.ts +0 -13
  1173. package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.d.ts.map +0 -1
  1174. package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.js +0 -49
  1175. package/build/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.js.map +0 -1
  1176. package/build/api/schema/data-sources/schema-directory/file-name-expression/index.d.ts +0 -2
  1177. package/build/api/schema/data-sources/schema-directory/file-name-expression/index.d.ts.map +0 -1
  1178. package/build/api/schema/data-sources/schema-directory/file-name-expression/index.js +0 -2
  1179. package/build/api/schema/data-sources/schema-directory/file-name-expression/index.js.map +0 -1
  1180. package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +0 -49
  1181. package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts.map +0 -1
  1182. package/build/api/schema/data-sources/schema-directory/schema-directory.js +0 -100
  1183. package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +0 -1
  1184. package/build/api/schema/data-sources/schema-file/schema-file.d.ts +0 -35
  1185. package/build/api/schema/data-sources/schema-file/schema-file.d.ts.map +0 -1
  1186. package/build/api/schema/data-sources/schema-file/schema-file.js +0 -45
  1187. package/build/api/schema/data-sources/schema-file/schema-file.js.map +0 -1
  1188. package/build/api/schema/index.d.ts +0 -2
  1189. package/build/api/schema/index.d.ts.map +0 -1
  1190. package/build/api/schema/index.js +0 -2
  1191. package/build/api/schema/index.js.map +0 -1
  1192. package/build/api/schema/metadata.d.ts +0 -16
  1193. package/build/api/schema/metadata.d.ts.map +0 -1
  1194. package/build/api/schema/metadata.js +0 -19
  1195. package/build/api/schema/metadata.js.map +0 -1
  1196. package/build/api/schema/read.d.ts +0 -135
  1197. package/build/api/schema/read.d.ts.map +0 -1
  1198. package/build/api/schema/read.js +0 -50
  1199. package/build/api/schema/read.js.map +0 -1
  1200. package/build/api/schema/schema.d.ts +0 -6
  1201. package/build/api/schema/schema.d.ts.map +0 -1
  1202. package/build/api/schema/schema.js +0 -8
  1203. package/build/api/schema/schema.js.map +0 -1
  1204. package/build/api/schema-augmentation/augmentations/description.d.ts +0 -17
  1205. package/build/api/schema-augmentation/augmentations/description.d.ts.map +0 -1
  1206. package/build/api/schema-augmentation/augmentations/description.js +0 -40
  1207. package/build/api/schema-augmentation/augmentations/description.js.map +0 -1
  1208. package/build/api/schema-augmentation/index.d.ts +0 -2
  1209. package/build/api/schema-augmentation/index.d.ts.map +0 -1
  1210. package/build/api/schema-augmentation/index.js +0 -2
  1211. package/build/api/schema-augmentation/index.js.map +0 -1
  1212. package/build/api/schema-augmentation/schema-augmentation.d.ts +0 -6
  1213. package/build/api/schema-augmentation/schema-augmentation.d.ts.map +0 -1
  1214. package/build/api/schema-augmentation/schema-augmentation.js +0 -17
  1215. package/build/api/schema-augmentation/schema-augmentation.js.map +0 -1
  1216. package/build/api/schema-augmentation/target.d.ts +0 -14
  1217. package/build/api/schema-augmentation/target.d.ts.map +0 -1
  1218. package/build/api/schema-augmentation/target.js +0 -25
  1219. package/build/api/schema-augmentation/target.js.map +0 -1
  1220. package/build/api/schema-source/index.d.ts +0 -2
  1221. package/build/api/schema-source/index.d.ts.map +0 -1
  1222. package/build/api/schema-source/index.js +0 -2
  1223. package/build/api/schema-source/index.js.map +0 -1
  1224. package/build/api/schema-source/schema-source.d.ts +0 -37
  1225. package/build/api/schema-source/schema-source.d.ts.map +0 -1
  1226. package/build/api/schema-source/schema-source.js +0 -150
  1227. package/build/api/schema-source/schema-source.js.map +0 -1
  1228. package/build/api/vite/log-filters.d.ts.map +0 -1
  1229. package/build/api/vite/log-filters.js.map +0 -1
  1230. package/build/api/vite/logger.d.ts +0 -4
  1231. package/build/api/vite/logger.d.ts.map +0 -1
  1232. package/build/api/vite/logger.js +0 -29
  1233. package/build/api/vite/logger.js.map +0 -1
  1234. package/build/api/vite/plugins/branding.d.ts.map +0 -1
  1235. package/build/api/vite/plugins/branding.js +0 -80
  1236. package/build/api/vite/plugins/branding.js.map +0 -1
  1237. package/build/api/vite/plugins/build.d.ts +0 -4
  1238. package/build/api/vite/plugins/build.d.ts.map +0 -1
  1239. package/build/api/vite/plugins/build.js +0 -167
  1240. package/build/api/vite/plugins/build.js.map +0 -1
  1241. package/build/api/vite/plugins/core.d.ts +0 -12
  1242. package/build/api/vite/plugins/core.d.ts.map +0 -1
  1243. package/build/api/vite/plugins/core.js +0 -237
  1244. package/build/api/vite/plugins/core.js.map +0 -1
  1245. package/build/api/vite/plugins/main.d.ts +0 -4
  1246. package/build/api/vite/plugins/main.d.ts.map +0 -1
  1247. package/build/api/vite/plugins/main.js +0 -25
  1248. package/build/api/vite/plugins/main.js.map +0 -1
  1249. package/build/api/vite/plugins/pages.d.ts +0 -17
  1250. package/build/api/vite/plugins/pages.d.ts.map +0 -1
  1251. package/build/api/vite/plugins/pages.js +0 -209
  1252. package/build/api/vite/plugins/pages.js.map +0 -1
  1253. package/build/api/vite/plugins/schema-assets.d.ts +0 -22
  1254. package/build/api/vite/plugins/schema-assets.d.ts.map +0 -1
  1255. package/build/api/vite/plugins/schema-assets.js +0 -319
  1256. package/build/api/vite/plugins/schema-assets.js.map +0 -1
  1257. package/build/api/vite/plugins/serve.d.ts +0 -4
  1258. package/build/api/vite/plugins/serve.d.ts.map +0 -1
  1259. package/build/api/vite/plugins/serve.js +0 -134
  1260. package/build/api/vite/plugins/serve.js.map +0 -1
  1261. package/build/api/vite/vi.d.ts.map +0 -1
  1262. package/build/api/vite/vi.js.map +0 -1
  1263. package/build/dep/superjson/index.d.ts +0 -2
  1264. package/build/dep/superjson/index.d.ts.map +0 -1
  1265. package/build/dep/superjson/index.js +0 -2
  1266. package/build/dep/superjson/index.js.map +0 -1
  1267. package/build/dep/superjson/superjson.d.ts +0 -5
  1268. package/build/dep/superjson/superjson.d.ts.map +0 -1
  1269. package/build/dep/superjson/superjson.js +0 -2
  1270. package/build/dep/superjson/superjson.js.map +0 -1
  1271. package/build/lib/graphql-change/$$.d.ts +0 -11
  1272. package/build/lib/graphql-change/$$.d.ts.map +0 -1
  1273. package/build/lib/graphql-change/$$.js +0 -10
  1274. package/build/lib/graphql-change/$$.js.map +0 -1
  1275. package/build/lib/graphql-change/$.d.ts +0 -2
  1276. package/build/lib/graphql-change/$.d.ts.map +0 -1
  1277. package/build/lib/graphql-change/$.js +0 -2
  1278. package/build/lib/graphql-change/$.js.map +0 -1
  1279. package/build/lib/graphql-change/change-groups.d.ts +0 -58
  1280. package/build/lib/graphql-change/change-groups.d.ts.map +0 -1
  1281. package/build/lib/graphql-change/change-groups.js +0 -87
  1282. package/build/lib/graphql-change/change-groups.js.map +0 -1
  1283. package/build/lib/graphql-change/change-types.d.ts +0 -170
  1284. package/build/lib/graphql-change/change-types.d.ts.map +0 -1
  1285. package/build/lib/graphql-change/change-types.js +0 -11
  1286. package/build/lib/graphql-change/change-types.js.map +0 -1
  1287. package/build/lib/graphql-change/criticality.d.ts +0 -26
  1288. package/build/lib/graphql-change/criticality.d.ts.map +0 -1
  1289. package/build/lib/graphql-change/criticality.js +0 -30
  1290. package/build/lib/graphql-change/criticality.js.map +0 -1
  1291. package/build/lib/graphql-change/old.d.ts +0 -2
  1292. package/build/lib/graphql-change/old.d.ts.map +0 -1
  1293. package/build/lib/graphql-change/old.js +0 -130
  1294. package/build/lib/graphql-change/old.js.map +0 -1
  1295. package/build/lib/graphql-changeset/$$.d.ts +0 -4
  1296. package/build/lib/graphql-changeset/$$.d.ts.map +0 -1
  1297. package/build/lib/graphql-changeset/$$.js +0 -4
  1298. package/build/lib/graphql-changeset/$$.js.map +0 -1
  1299. package/build/lib/graphql-changeset/$.d.ts +0 -2
  1300. package/build/lib/graphql-changeset/$.d.ts.map +0 -1
  1301. package/build/lib/graphql-changeset/$.js +0 -2
  1302. package/build/lib/graphql-changeset/$.js.map +0 -1
  1303. package/build/lib/graphql-changeset/changelog.d.ts +0 -4
  1304. package/build/lib/graphql-changeset/changelog.d.ts.map +0 -1
  1305. package/build/lib/graphql-changeset/changelog.js +0 -2
  1306. package/build/lib/graphql-changeset/changelog.js.map +0 -1
  1307. package/build/lib/graphql-changeset/changeset.d.ts +0 -66
  1308. package/build/lib/graphql-changeset/changeset.d.ts.map +0 -1
  1309. package/build/lib/graphql-changeset/changeset.js +0 -139
  1310. package/build/lib/graphql-changeset/changeset.js.map +0 -1
  1311. package/build/lib/graphql-changeset/versioned-schema.d.ts +0 -31
  1312. package/build/lib/graphql-changeset/versioned-schema.d.ts.map +0 -1
  1313. package/build/lib/graphql-changeset/versioned-schema.js +0 -14
  1314. package/build/lib/graphql-changeset/versioned-schema.js.map +0 -1
  1315. package/build/lib/kit-temp.d.ts +0 -285
  1316. package/build/lib/kit-temp.d.ts.map +0 -1
  1317. package/build/lib/kit-temp.js +0 -486
  1318. package/build/lib/kit-temp.js.map +0 -1
  1319. package/build/lib/kit-temp.test-d.d.ts +0 -2
  1320. package/build/lib/kit-temp.test-d.d.ts.map +0 -1
  1321. package/build/lib/kit-temp.test-d.js +0 -75
  1322. package/build/lib/kit-temp.test-d.js.map +0 -1
  1323. package/build/lib/react-router-loader/$$.d.ts +0 -6
  1324. package/build/lib/react-router-loader/$$.d.ts.map +0 -1
  1325. package/build/lib/react-router-loader/$$.js +0 -24
  1326. package/build/lib/react-router-loader/$$.js.map +0 -1
  1327. package/build/lib/react-router-loader/$.d.ts +0 -2
  1328. package/build/lib/react-router-loader/$.d.ts.map +0 -1
  1329. package/build/lib/react-router-loader/$.js +0 -2
  1330. package/build/lib/react-router-loader/$.js.map +0 -1
  1331. package/build/lib/schema-lifecycle/$$.d.ts +0 -6
  1332. package/build/lib/schema-lifecycle/$$.d.ts.map +0 -1
  1333. package/build/lib/schema-lifecycle/$$.js +0 -6
  1334. package/build/lib/schema-lifecycle/$$.js.map +0 -1
  1335. package/build/lib/schema-lifecycle/$.d.ts +0 -2
  1336. package/build/lib/schema-lifecycle/$.d.ts.map +0 -1
  1337. package/build/lib/schema-lifecycle/$.js +0 -2
  1338. package/build/lib/schema-lifecycle/$.js.map +0 -1
  1339. package/build/lib/schema-lifecycle/FieldLifecycle.d.ts +0 -17
  1340. package/build/lib/schema-lifecycle/FieldLifecycle.d.ts.map +0 -1
  1341. package/build/lib/schema-lifecycle/FieldLifecycle.js +0 -2
  1342. package/build/lib/schema-lifecycle/FieldLifecycle.js.map +0 -1
  1343. package/build/lib/schema-lifecycle/LifecycleEvent.d.ts +0 -25
  1344. package/build/lib/schema-lifecycle/LifecycleEvent.d.ts.map +0 -1
  1345. package/build/lib/schema-lifecycle/LifecycleEvent.js +0 -2
  1346. package/build/lib/schema-lifecycle/LifecycleEvent.js.map +0 -1
  1347. package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts +0 -59
  1348. package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts.map +0 -1
  1349. package/build/lib/schema-lifecycle/NamedTypeLifecycle.js +0 -24
  1350. package/build/lib/schema-lifecycle/NamedTypeLifecycle.js.map +0 -1
  1351. package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts +0 -25
  1352. package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts.map +0 -1
  1353. package/build/lib/schema-lifecycle/SchemaLifecycle.js +0 -59
  1354. package/build/lib/schema-lifecycle/SchemaLifecycle.js.map +0 -1
  1355. package/build/lib/schema-lifecycle/SchemaLink.d.ts +0 -2
  1356. package/build/lib/schema-lifecycle/SchemaLink.d.ts.map +0 -1
  1357. package/build/lib/schema-lifecycle/SchemaLink.js +0 -38
  1358. package/build/lib/schema-lifecycle/SchemaLink.js.map +0 -1
  1359. package/build/lib/schema-lifecycle/handlers.d.ts +0 -20
  1360. package/build/lib/schema-lifecycle/handlers.d.ts.map +0 -1
  1361. package/build/lib/schema-lifecycle/handlers.js +0 -168
  1362. package/build/lib/schema-lifecycle/handlers.js.map +0 -1
  1363. package/build/lib/schema-lifecycle/utils.d.ts +0 -53
  1364. package/build/lib/schema-lifecycle/utils.d.ts.map +0 -1
  1365. package/build/lib/schema-lifecycle/utils.js +0 -160
  1366. package/build/lib/schema-lifecycle/utils.js.map +0 -1
  1367. package/build/lib/superjson-codec/$$.d.ts +0 -3
  1368. package/build/lib/superjson-codec/$$.d.ts.map +0 -1
  1369. package/build/lib/superjson-codec/$$.js +0 -3
  1370. package/build/lib/superjson-codec/$$.js.map +0 -1
  1371. package/build/lib/superjson-codec/$.d.ts +0 -2
  1372. package/build/lib/superjson-codec/$.d.ts.map +0 -1
  1373. package/build/lib/superjson-codec/$.js +0 -2
  1374. package/build/lib/superjson-codec/$.js.map +0 -1
  1375. package/build/lib/superjson-codec/codec.d.ts +0 -9
  1376. package/build/lib/superjson-codec/codec.d.ts.map +0 -1
  1377. package/build/lib/superjson-codec/codec.js +0 -7
  1378. package/build/lib/superjson-codec/codec.js.map +0 -1
  1379. package/build/lib/superjson-codec/codecs/graphql-schema.d.ts +0 -3
  1380. package/build/lib/superjson-codec/codecs/graphql-schema.d.ts.map +0 -1
  1381. package/build/lib/superjson-codec/codecs/graphql-schema.js +0 -22
  1382. package/build/lib/superjson-codec/codecs/graphql-schema.js.map +0 -1
  1383. package/build/singletons/superjson.d.ts +0 -4
  1384. package/build/singletons/superjson.d.ts.map +0 -1
  1385. package/build/singletons/superjson.js +0 -6
  1386. package/build/singletons/superjson.js.map +0 -1
  1387. package/build/template/components/Changelog/groups/DirectiveUsage.d.ts +0 -6
  1388. package/build/template/components/Changelog/groups/DirectiveUsage.d.ts.map +0 -1
  1389. package/build/template/components/Changelog/groups/DirectiveUsage.js +0 -59
  1390. package/build/template/components/Changelog/groups/DirectiveUsage.js.map +0 -1
  1391. package/build/template/components/Changelog.d.ts +0 -7
  1392. package/build/template/components/Changelog.d.ts.map +0 -1
  1393. package/build/template/components/Changelog.js +0 -52
  1394. package/build/template/components/Changelog.js.map +0 -1
  1395. package/build/template/contexts/SchemaLifecycleContext.d.ts +0 -14
  1396. package/build/template/contexts/SchemaLifecycleContext.d.ts.map +0 -1
  1397. package/build/template/contexts/SchemaLifecycleContext.js +0 -15
  1398. package/build/template/contexts/SchemaLifecycleContext.js.map +0 -1
  1399. package/build/template/server/ssg/generate.d.ts +0 -3
  1400. package/build/template/server/ssg/generate.d.ts.map +0 -1
  1401. package/build/template/server/ssg/generate.js +0 -79
  1402. package/build/template/server/ssg/generate.js.map +0 -1
  1403. package/build/template/server/ssg/get-route-paths.d.ts +0 -2
  1404. package/build/template/server/ssg/get-route-paths.d.ts.map +0 -1
  1405. package/build/template/server/ssg/get-route-paths.js +0 -149
  1406. package/build/template/server/ssg/get-route-paths.js.map +0 -1
  1407. package/build/template/sources/schema-source.d.ts +0 -17
  1408. package/build/template/sources/schema-source.d.ts.map +0 -1
  1409. package/build/template/sources/schema-source.js +0 -64
  1410. package/build/template/sources/schema-source.js.map +0 -1
  1411. package/src/api/config/config.ts +0 -4
  1412. package/src/api/config/configurator.ts +0 -566
  1413. package/src/api/config/define.ts +0 -8
  1414. package/src/api/config/index.ts +0 -1
  1415. package/src/api/config/merge.ts +0 -61
  1416. package/src/api/config-resolver/vite.ts +0 -28
  1417. package/src/api/schema/data-sources/data-sources.ts +0 -4
  1418. package/src/api/schema/data-sources/index.ts +0 -1
  1419. package/src/api/schema/data-sources/introspection/introspection.ts +0 -216
  1420. package/src/api/schema/data-sources/memory/memory.ts +0 -125
  1421. package/src/api/schema/data-sources/schema-directory/file-name-expression/file-name-expression.ts +0 -84
  1422. package/src/api/schema/data-sources/schema-directory/file-name-expression/index.ts +0 -1
  1423. package/src/api/schema/data-sources/schema-directory/schema-directory.ts +0 -178
  1424. package/src/api/schema/data-sources/schema-file/schema-file.ts +0 -84
  1425. package/src/api/schema/metadata.ts +0 -23
  1426. package/src/api/schema/read.ts +0 -196
  1427. package/src/api/schema/schema.ts +0 -8
  1428. package/src/api/schema-augmentation/augmentations/description.ts +0 -57
  1429. package/src/api/schema-augmentation/index.ts +0 -1
  1430. package/src/api/schema-augmentation/schema-augmentation.ts +0 -25
  1431. package/src/api/schema-augmentation/target.ts +0 -50
  1432. package/src/api/schema-source/index.ts +0 -1
  1433. package/src/api/schema-source/schema-source.ts +0 -216
  1434. package/src/api/vite/logger.ts +0 -33
  1435. package/src/api/vite/plugins/branding.ts +0 -108
  1436. package/src/api/vite/plugins/build.ts +0 -179
  1437. package/src/api/vite/plugins/core.ts +0 -274
  1438. package/src/api/vite/plugins/main.ts +0 -40
  1439. package/src/api/vite/plugins/pages.ts +0 -261
  1440. package/src/api/vite/plugins/schema-assets.ts +0 -378
  1441. package/src/api/vite/plugins/serve.ts +0 -161
  1442. package/src/dep/superjson/index.ts +0 -1
  1443. package/src/dep/superjson/superjson.ts +0 -8
  1444. package/src/lib/graphql-change/$$.ts +0 -18
  1445. package/src/lib/graphql-change/$.ts +0 -1
  1446. package/src/lib/graphql-change/change-groups.ts +0 -337
  1447. package/src/lib/graphql-change/change-types.ts +0 -203
  1448. package/src/lib/graphql-change/criticality.ts +0 -45
  1449. package/src/lib/graphql-change/old.ts +0 -163
  1450. package/src/lib/graphql-changeset/$$.ts +0 -3
  1451. package/src/lib/graphql-changeset/$.ts +0 -1
  1452. package/src/lib/graphql-changeset/changelog.ts +0 -9
  1453. package/src/lib/graphql-changeset/changeset.ts +0 -190
  1454. package/src/lib/graphql-changeset/versioned-schema.ts +0 -43
  1455. package/src/lib/kit-temp.test-d.ts +0 -120
  1456. package/src/lib/kit-temp.test.ts +0 -232
  1457. package/src/lib/kit-temp.ts +0 -661
  1458. package/src/lib/react-router-loader/$$.ts +0 -40
  1459. package/src/lib/react-router-loader/$.ts +0 -1
  1460. package/src/lib/schema-lifecycle/$$.ts +0 -19
  1461. package/src/lib/schema-lifecycle/$.test.ts +0 -222
  1462. package/src/lib/schema-lifecycle/$.ts +0 -1
  1463. package/src/lib/schema-lifecycle/FieldLifecycle.ts +0 -18
  1464. package/src/lib/schema-lifecycle/LifecycleEvent.ts +0 -27
  1465. package/src/lib/schema-lifecycle/NamedTypeLifecycle.ts +0 -96
  1466. package/src/lib/schema-lifecycle/SchemaLifecycle.ts +0 -85
  1467. package/src/lib/schema-lifecycle/SchemaLink.ts +0 -40
  1468. package/src/lib/schema-lifecycle/handlers.ts +0 -215
  1469. package/src/lib/schema-lifecycle/utils.ts +0 -234
  1470. package/src/lib/superjson-codec/$$.ts +0 -2
  1471. package/src/lib/superjson-codec/$.ts +0 -1
  1472. package/src/lib/superjson-codec/codec.ts +0 -18
  1473. package/src/lib/superjson-codec/codecs/graphql-schema.ts +0 -24
  1474. package/src/singletons/superjson.ts +0 -11
  1475. package/src/template/components/Changelog/groups/DirectiveUsage.tsx +0 -137
  1476. package/src/template/components/Changelog.tsx +0 -80
  1477. package/src/template/contexts/SchemaLifecycleContext.tsx +0 -30
  1478. package/src/template/global.d.ts +0 -7
  1479. package/src/template/server/ssg/generate.ts +0 -101
  1480. package/src/template/server/ssg/get-route-paths.test.ts +0 -145
  1481. package/src/template/server/ssg/get-route-paths.ts +0 -151
  1482. package/src/template/sources/schema-source.ts +0 -69
  1483. package/src/vite-env.d.ts +0 -5
  1484. /package/build/{api/vite → vite}/log-filters.d.ts +0 -0
  1485. /package/build/{api/vite → vite}/log-filters.js +0 -0
  1486. /package/build/{api/vite → vite}/plugins/branding.d.ts +0 -0
  1487. /package/build/{api/vite → vite}/vi.d.ts +0 -0
  1488. /package/build/{api/vite → vite}/vi.js +0 -0
  1489. /package/src/{api/schema/index.ts → lib/schema/$.ts} +0 -0
  1490. /package/src/{api/vite → vite}/log-filters.ts +0 -0
  1491. /package/src/{api/vite → vite}/vi.ts +0 -0
@@ -0,0 +1,415 @@
1
+ import { AugmentationSchema } from '#api/schema/augmentations/schema-augmentation'
2
+ import { S } from '#lib/kit-temp/effect'
3
+
4
+ // ============================================================================
5
+ // Schema - Input Source Names
6
+ // ============================================================================
7
+
8
+ export const InputSourceNameSchema = S.Enums(
9
+ {
10
+ file: 'file',
11
+ directory: 'directory',
12
+ versionedDirectory: 'versionedDirectory',
13
+ memory: 'memory',
14
+ introspection: 'introspection',
15
+ introspectionFile: 'introspectionFile',
16
+ } as const,
17
+ )
18
+
19
+ export type InputSourceName = S.Schema.Type<typeof InputSourceNameSchema>
20
+
21
+ // ============================================================================
22
+ // Schema - Input Sources
23
+ // ============================================================================
24
+
25
+ const FileOptionsSchema = S.Struct({
26
+ /**
27
+ * Path to the GraphQL SDL file.
28
+ *
29
+ * Can be absolute or relative to the project root.
30
+ *
31
+ * @default './schema.graphql'
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * // Default location
36
+ * path: './schema.graphql'
37
+ *
38
+ * // Custom location
39
+ * path: './src/graphql/schema.sdl'
40
+ * ```
41
+ */
42
+ path: S.optional(S.String),
43
+ }).annotations({
44
+ identifier: 'FileOptions',
45
+ description: 'Configuration for loading schema from a single SDL file.',
46
+ })
47
+
48
+ const DirectoryOptionsSchema = S.Struct({
49
+ /**
50
+ * Path to the directory containing schema files.
51
+ *
52
+ * Supports two patterns:
53
+ * 1. Multiple versioned files with ISO date prefixes: `YYYY-MM-DD.graphql`
54
+ * 2. Single file named: `schema.graphql`
55
+ *
56
+ * @default './schema'
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * // Default location
61
+ * path: './schema'
62
+ *
63
+ * // Custom location
64
+ * path: './graphql/versions'
65
+ * ```
66
+ *
67
+ * Directory structure examples:
68
+ * ```
69
+ * // Versioned schemas (enables changelog)
70
+ * schema/
71
+ * 2024-01-15.graphql
72
+ * 2024-03-20.graphql
73
+ * 2024-06-10.graphql
74
+ *
75
+ * // Single schema (non-versioned)
76
+ * schema/
77
+ * schema.graphql
78
+ * ```
79
+ */
80
+ path: S.optional(S.String),
81
+ }).annotations({
82
+ identifier: 'DirectoryOptions',
83
+ description: 'Configuration for loading multiple schema versions from a directory.',
84
+ })
85
+
86
+ const VersionedDirectoryOptionsSchema = S.Struct({
87
+ /**
88
+ * Path to the directory containing versioned schema subdirectories.
89
+ *
90
+ * @default './schema'
91
+ */
92
+ path: S.optional(S.String),
93
+ }).annotations({
94
+ identifier: 'VersionedDirectoryOptions',
95
+ description: 'Configuration for loading versioned schemas from subdirectories.',
96
+ })
97
+
98
+ const HttpHeadersSchema = S.Record({
99
+ key: S.String,
100
+ value: S.String,
101
+ })
102
+
103
+ const IntrospectionOptionsSchema = S.Struct({
104
+ /**
105
+ * The GraphQL endpoint URL to introspect.
106
+ *
107
+ * Must be a valid GraphQL endpoint that supports introspection queries.
108
+ *
109
+ * @example 'https://api.example.com/graphql'
110
+ */
111
+ url: S.String,
112
+ /**
113
+ * Optional headers to include in the introspection request.
114
+ *
115
+ * Use this for authentication, API keys, or any custom headers
116
+ * required by your GraphQL endpoint.
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * headers: {
121
+ * 'Authorization': `Bearer ${process.env.API_TOKEN}`,
122
+ * 'X-API-Key': process.env.API_KEY
123
+ * }
124
+ * ```
125
+ */
126
+ headers: S.optional(HttpHeadersSchema),
127
+ }).annotations({
128
+ identifier: 'IntrospectionOptions',
129
+ description: 'Configuration for loading schema via GraphQL introspection.',
130
+ })
131
+
132
+ const IntrospectionFileOptionsSchema = S.Struct({
133
+ /**
134
+ * Path to the introspection file.
135
+ *
136
+ * @default './schema.introspection.json'
137
+ */
138
+ path: S.optional(S.String),
139
+ }).annotations({
140
+ identifier: 'IntrospectionFileOptions',
141
+ description: 'Configuration for loading schema from an existing introspection file.',
142
+ })
143
+
144
+ // Complex union for memory revisions - we define the actual runtime types here
145
+ // and use S.Unknown for now, with a TODO to properly type this later
146
+ const MemoryRevisionsSchema = S.Unknown.annotations({
147
+ description:
148
+ `Schema revisions in various formats: SDL strings, GraphQL schema objects, or pre-built unversioned Catalog`,
149
+ })
150
+
151
+ const MemoryOptionsSchema = S.Struct({
152
+ /**
153
+ * Schema revisions defined in various formats.
154
+ *
155
+ * Creates an unversioned catalog with multiple revisions (dated snapshots) that can show changes over time.
156
+ *
157
+ * Can be:
158
+ * - A single SDL string (single revision, no changelog)
159
+ * - Array of SDL strings (uses current date for all)
160
+ * - Array of objects with date and SDL (full changelog support)
161
+ * - A GraphQLSchema object (single revision, no changelog)
162
+ * - Array of GraphQLSchema objects (uses current date for all)
163
+ * - Array of objects with date and GraphQLSchema (full changelog support)
164
+ * - A pre-built unversioned Catalog object
165
+ *
166
+ * @example
167
+ * ```ts
168
+ * // Single SDL schema revision
169
+ * revisions: `
170
+ * type Query {
171
+ * hello: String
172
+ * }
173
+ * `
174
+ *
175
+ * // Multiple revisions with explicit dates (enables changelog)
176
+ * revisions: [
177
+ * {
178
+ * date: new Date('2024-01-15'),
179
+ * value: `type Query { users: [User] }`
180
+ * },
181
+ * {
182
+ * date: new Date('2024-03-20'),
183
+ * value: `type Query { users: [User], posts: [Post] }`
184
+ * }
185
+ * ]
186
+ *
187
+ * // GraphQL schema object
188
+ * revisions: buildSchema(`type Query { hello: String }`)
189
+ *
190
+ * // Pre-built unversioned catalog
191
+ * revisions: myCatalog
192
+ * ```
193
+ */
194
+ revisions: MemoryRevisionsSchema,
195
+ }).annotations({
196
+ identifier: 'MemoryOptions',
197
+ description:
198
+ 'Configuration for defining schema revisions programmatically in memory. Creates an unversioned catalog.',
199
+ })
200
+
201
+ // ============================================================================
202
+ // Schema - Sources
203
+ // ============================================================================
204
+
205
+ const SourcesSchema = S.Struct({
206
+ /**
207
+ * Configuration for loading schema from a single SDL file.
208
+ */
209
+ file: S.optional(FileOptionsSchema),
210
+ /**
211
+ * Configuration for loading multiple schema versions from a directory.
212
+ */
213
+ directory: S.optional(DirectoryOptionsSchema),
214
+ /**
215
+ * Configuration for loading versioned schemas from subdirectories.
216
+ */
217
+ versionedDirectory: S.optional(VersionedDirectoryOptionsSchema),
218
+ /**
219
+ * Configuration for defining schemas programmatically.
220
+ *
221
+ * Accepts SDL strings, GraphQL schema objects, or pre-built SchemaHydrated objects.
222
+ */
223
+ memory: S.optional(MemoryOptionsSchema),
224
+ /**
225
+ * Configuration for loading schema via GraphQL introspection.
226
+ *
227
+ * Introspection fetches your schema directly from a running GraphQL endpoint
228
+ * and caches it in `.polen/cache/introspection/`.
229
+ *
230
+ * @example
231
+ * ```ts
232
+ * introspection: {
233
+ * url: 'https://api.example.com/graphql',
234
+ * headers: { 'Authorization': 'Bearer token' }
235
+ * }
236
+ * ```
237
+ */
238
+ introspection: S.optional(IntrospectionOptionsSchema),
239
+ /**
240
+ * Configuration for loading schema from an existing introspection file.
241
+ *
242
+ * Reads a pre-existing `schema.introspection.json` file from your project root.
243
+ * This is useful when you have an introspection file generated by other tools.
244
+ *
245
+ * @example
246
+ * ```ts
247
+ * introspectionFile: {
248
+ * // Uses default path: ./schema.introspection.json
249
+ * }
250
+ * ```
251
+ */
252
+ introspectionFile: S.optional(IntrospectionFileOptionsSchema),
253
+ }).annotations({
254
+ identifier: 'Sources',
255
+ description: 'Configuration for each data source type.',
256
+ })
257
+
258
+ // ============================================================================
259
+ // Schema - Main Config
260
+ // ============================================================================
261
+
262
+ /**
263
+ * Configuration for how Polen loads your GraphQL schema.
264
+ *
265
+ * Polen supports multiple schema sources:
266
+ * - `file` - Load from a single SDL file (default: schema.graphql)
267
+ * - `directory` - Load multiple SDL files with date prefixes (enables changelog)
268
+ * - `memory` - Define schemas programmatically in configuration
269
+ * - `introspection` - Fetch schema from a GraphQL endpoint
270
+ * - `data` - Use pre-built schema objects
271
+ *
272
+ * @example
273
+ * ```ts
274
+ * // Default: looks for schema.graphql
275
+ * schema: {}
276
+ *
277
+ * // Load via introspection
278
+ * schema: {
279
+ * sources: {
280
+ * introspection: {
281
+ * url: 'https://api.example.com/graphql',
282
+ * headers: { 'Authorization': `Bearer ${process.env.API_TOKEN}` }
283
+ * }
284
+ * }
285
+ * }
286
+ *
287
+ * // Multiple versions for changelog
288
+ * schema: {
289
+ * sources: {
290
+ * directory: { path: './schema' }
291
+ * }
292
+ * }
293
+ *
294
+ * // Custom source order
295
+ * schema: {
296
+ * useSources: ['introspection', 'file'],
297
+ * sources: {
298
+ * introspection: { url: 'https://api.example.com/graphql' },
299
+ * file: { path: './fallback.graphql' }
300
+ * }
301
+ * }
302
+ * ```
303
+ *
304
+ * **Two introspection features**:
305
+ * 1. **File Convention**: Polen auto-detects `schema.introspection.json` files
306
+ * 2. **Config-driven**: Polen fetches and caches introspection for you
307
+ *
308
+ * **Interoperability**: The `schema.introspection.json` file uses the standard
309
+ * GraphQL introspection format, compatible with GraphQL Codegen, Apollo CLI, etc.
310
+ *
311
+ * **Lifecycle**:
312
+ * - First run: Fetches from endpoint, saves to `schema.introspection.json`
313
+ * - Subsequent runs: Loads from JSON file (no network request)
314
+ * - To refresh: Delete the JSON file
315
+ * - Runs during `polen dev` and `polen build`, never at runtime
316
+ *
317
+ * **Query details**: Uses the standard introspection query from the GraphQL spec
318
+ * @see https://spec.graphql.org/draft/#sec-Introspection
319
+ */
320
+ export const ConfigSchema = S.Struct({
321
+ /**
322
+ * Whether to enable schema loading.
323
+ *
324
+ * Set to `false` to disable schema features entirely. This removes
325
+ * the Reference and Changelog pages from your portal.
326
+ *
327
+ * @default true
328
+ *
329
+ * @example
330
+ * ```ts
331
+ * // Disable schema features
332
+ * schema: { enabled: false }
333
+ * ```
334
+ */
335
+ enabled: S.optional(S.Boolean),
336
+ /**
337
+ * Programmatically enhance your GraphQL schema documentation without modifying the schema files.
338
+ *
339
+ * Perfect for adding implementation details, usage examples, deprecation notices,
340
+ * or any additional context that helps developers understand your API better.
341
+ *
342
+ * @example
343
+ * ```ts
344
+ * augmentations: [
345
+ * {
346
+ * type: 'description',
347
+ * on: {
348
+ * type: 'TargetType',
349
+ * name: 'User'
350
+ * },
351
+ * placement: 'after',
352
+ * content: '\n\nSee the [User Guide](/guides/users) for detailed usage.'
353
+ * },
354
+ * {
355
+ * type: 'description',
356
+ * on: {
357
+ * type: 'TargetField',
358
+ * targetType: 'Query',
359
+ * name: 'users'
360
+ * },
361
+ * placement: 'after',
362
+ * content: '\n\n**Rate limit:** 100 requests per minute'
363
+ * }
364
+ * ]
365
+ * ```
366
+ */
367
+ augmentations: S.optional(S.Array(AugmentationSchema)),
368
+ /**
369
+ * Which data sources to use for loading schemas.
370
+ *
371
+ * - `file` - Load from a single SDL file (default: `./schema.graphql`)
372
+ * - `directory` - Load multiple SDL files from a directory (default: `./schema/`)
373
+ * - `versionedDirectory` - Load versioned schemas from subdirectories (default: `./schema/`)
374
+ * - `memory` - Use schemas defined in configuration
375
+ * - `introspection` - Load schema via GraphQL introspection
376
+ * - `introspectionFile` - Load schema from an introspection JSON file
377
+ *
378
+ * If not specified, Polen tries all sources in this order:
379
+ * 1. `versionedDirectory` 2. `directory` 3. `file` 4. `memory` 5. `introspection` 6. `introspectionFile`
380
+ *
381
+ * @example
382
+ * ```ts
383
+ * // Use only file source
384
+ * useSources: 'file'
385
+ *
386
+ * // Try multiple sources in custom order
387
+ * useSources: ['introspection', 'file']
388
+ *
389
+ * // Default behavior (try all sources)
390
+ * // useSources: undefined
391
+ * ```
392
+ */
393
+ useSources: S.optional(S.Union(InputSourceNameSchema, S.Array(InputSourceNameSchema))),
394
+ /**
395
+ * Configuration for each data source type.
396
+ */
397
+ sources: S.optional(SourcesSchema),
398
+ }).annotations({
399
+ identifier: 'SchemaConfig',
400
+ title: 'Schema Configuration',
401
+ description: 'Configuration for how Polen loads your GraphQL schema.',
402
+ })
403
+
404
+ export type ConfigInput = S.Schema.Type<typeof ConfigSchema>
405
+
406
+ // For backward compatibility during migration
407
+ export type Config = ConfigInput
408
+
409
+ // ============================================================================
410
+ // Codec
411
+ // ============================================================================
412
+
413
+ export const decode = S.decode(ConfigSchema)
414
+ export const encode = S.encode(ConfigSchema)
415
+ export const validate = S.validate(ConfigSchema)
@@ -0,0 +1,7 @@
1
+ export type { Config, ConfigInput, InputSourceName } from './config-schema.js'
2
+ export { InputSourceNameSchema } from './config-schema.js'
3
+
4
+ // Keep legacy exports for backward compatibility during migration
5
+ import type { InputSources } from './input-sources/$.js'
6
+
7
+ export type DataSourceTypeNew = typeof InputSources[keyof typeof InputSources]['loader']['name']
@@ -0,0 +1,2 @@
1
+ export * from './input-source.js'
2
+ export * from './load.js'
@@ -0,0 +1 @@
1
+ export * as InputSource from './$$.js'
@@ -0,0 +1,134 @@
1
+ import { InputSource } from '#api/schema/input-source/$'
2
+ import type { Catalog } from '#lib/catalog/$'
3
+ import type { PlatformError } from '@effect/platform/Error'
4
+ import type { FileSystem } from '@effect/platform/FileSystem'
5
+ import { Err, Fn } from '@wollybeard/kit'
6
+ import { Effect } from 'effect'
7
+
8
+ type Options = object
9
+
10
+ // ============================================================================
11
+ // Error Types
12
+ // ============================================================================
13
+
14
+ export interface InputSourceError {
15
+ readonly _tag: 'InputSourceError'
16
+ readonly source: string
17
+ readonly message: string
18
+ readonly cause?: unknown
19
+ }
20
+
21
+ export const InputSourceError = (
22
+ source: string,
23
+ message: string,
24
+ cause?: unknown,
25
+ ): InputSourceError => ({
26
+ _tag: 'InputSourceError',
27
+ source,
28
+ message,
29
+ cause,
30
+ })
31
+
32
+ // ============================================================================
33
+ // Effect-based InputSource
34
+ // ============================================================================
35
+
36
+ export interface EffectInputSource<
37
+ $Name extends string = string,
38
+ $Options extends Options = Options,
39
+ $Catalog extends Catalog.Catalog = Catalog.Catalog,
40
+ > {
41
+ name: $Name
42
+ isApplicable: (
43
+ options: $Options,
44
+ context: InputSource.Context,
45
+ ) => Effect.Effect<boolean, PlatformError | InputSourceError, FileSystem>
46
+ readIfApplicableOrThrow: (
47
+ options: $Options,
48
+ context: InputSource.Context,
49
+ ) => Effect.Effect<null | $Catalog, PlatformError | InputSourceError, FileSystem>
50
+ reCreate?: (
51
+ options: $Options,
52
+ context: InputSource.Context,
53
+ ) => Effect.Effect<null | $Catalog, PlatformError | InputSourceError, FileSystem>
54
+ }
55
+
56
+ export const createEffect = <
57
+ $Name extends string,
58
+ $Options extends Options,
59
+ $Catalog extends Catalog.Catalog,
60
+ >(input: {
61
+ name: $Name
62
+ isApplicable?: (
63
+ options: $Options,
64
+ context: InputSource.Context,
65
+ ) => Effect.Effect<boolean, PlatformError | InputSourceError, FileSystem>
66
+ readIfApplicableOrThrow: (
67
+ options: $Options,
68
+ context: InputSource.Context,
69
+ ) => Effect.Effect<null | $Catalog, PlatformError | InputSourceError, FileSystem>
70
+ reCreate?: (
71
+ options: $Options,
72
+ context: InputSource.Context,
73
+ ) => Effect.Effect<null | $Catalog, PlatformError | InputSourceError, FileSystem>
74
+ }): EffectInputSource<$Name, $Options, $Catalog> => {
75
+ const defaultIsApplicable = (
76
+ options: $Options,
77
+ context: InputSource.Context,
78
+ ): Effect.Effect<boolean, PlatformError | InputSourceError, FileSystem> =>
79
+ Effect.gen(function*() {
80
+ const result = yield* Effect.either(input.readIfApplicableOrThrow(options, context))
81
+ return result._tag === 'Right' && result.right !== null
82
+ })
83
+
84
+ return {
85
+ name: input.name,
86
+ isApplicable: input.isApplicable ?? defaultIsApplicable,
87
+ readIfApplicableOrThrow: input.readIfApplicableOrThrow,
88
+ reCreate: input.reCreate,
89
+ __effectInputSource: true,
90
+ } as EffectInputSource<$Name, $Options, $Catalog> & { __effectInputSource: true }
91
+ }
92
+
93
+ // ============================================================================
94
+ // Promise-based InputSource (for backward compatibility)
95
+ // ============================================================================
96
+
97
+ export interface InputSource<
98
+ $Name extends string = string,
99
+ $Options extends Options = Options,
100
+ $Catalog extends Catalog.Catalog = Catalog.Catalog,
101
+ > {
102
+ name: $Name
103
+ isApplicable: (options: $Options, context: InputSource.Context) => Promise<boolean>
104
+ readIfApplicableOrThrow: (options: $Options, context: InputSource.Context) => Promise<null | $Catalog>
105
+ reCreate?: (options: $Options, context: InputSource.Context) => Promise<null | $Catalog>
106
+ }
107
+
108
+ export const create = <
109
+ $Name extends string,
110
+ $Options extends Options,
111
+ $Catalog extends Catalog.Catalog,
112
+ >(input: {
113
+ name: $Name
114
+ isApplicable?: (options: $Options, context: InputSource.Context) => Promise<boolean>
115
+ readIfApplicableOrThrow: (options: $Options, context: InputSource.Context) => Promise<null | $Catalog>
116
+ reCreate?: (options: $Options, context: InputSource.Context) => Promise<null | $Catalog>
117
+ }): InputSource<
118
+ $Name,
119
+ $Options,
120
+ $Catalog
121
+ > => {
122
+ const defaultIsApplicable = async (options: $Options, context: InputSource.Context): Promise<boolean> => {
123
+ return Err.tryOrAsync(() => input.readIfApplicableOrThrow(options, context), false).then(Fn.constant(true))
124
+ }
125
+
126
+ const api = {
127
+ name: input.name,
128
+ isApplicable: input.isApplicable ?? defaultIsApplicable,
129
+ readIfApplicableOrThrow: input.readIfApplicableOrThrow,
130
+ reCreate: input.reCreate,
131
+ } as InputSource<$Name, $Options, $Catalog>
132
+
133
+ return api
134
+ }
@@ -0,0 +1,75 @@
1
+ import { Config as PolenConfig } from '#api/config/$'
2
+ import type { Config } from '#api/schema/config'
3
+ import type { InputSource } from '#api/schema/input-source/input-source'
4
+ import type { Catalog } from '#lib/catalog/$'
5
+
6
+ /**
7
+ * Result of schema reading with provenance tracking for file watching and debugging.
8
+ */
9
+ export interface LoadedCatalog {
10
+ data: Catalog.Catalog | null
11
+ source: InputSource
12
+ // {
13
+ // type: DataSourceType
14
+ // /**
15
+ // * Recreate the schema data and file after it has been deleted.
16
+ // *
17
+ // * This function re-fetches data from the original source and recreates
18
+ // * the schema file on disk. Only called by file watchers after deletion.
19
+ // *
20
+ // * @returns Promise resolving to the recreated schema data, or null if recreation fails
21
+ // */
22
+ // reCreate?: () => Promise<Catalog.Catalog | null>
23
+ // }
24
+ }
25
+
26
+ export interface Context {
27
+ paths: PolenConfig.Config['paths']
28
+ }
29
+
30
+ type InputSourceName = string
31
+
32
+ export const loadOrThrow = async (
33
+ params: {
34
+ context: Context
35
+ config: Config | null
36
+ useFirst: (InputSourceName[]) | null
37
+ sources: InputSource[]
38
+ },
39
+ ): Promise<LoadedCatalog> => {
40
+ const getSourceConfig = (sourceName: InputSourceName) => {
41
+ const sourceConfigs = (params.config?.sources ?? {}) as Record<InputSourceName, object>
42
+ const sourceConfig = sourceConfigs[sourceName] ?? {}
43
+ return sourceConfig
44
+ }
45
+ // If useFirst is specified, try sources in that specific order
46
+ if (params.useFirst) {
47
+ for (const sourceName of params.useFirst) {
48
+ const source = params.sources.find(s => s.name === sourceName)
49
+ if (!source) continue
50
+
51
+ const sourceConfig = getSourceConfig(source.name)
52
+ const result = await source.readIfApplicableOrThrow(sourceConfig as any, params.context)
53
+ if (result) {
54
+ return {
55
+ data: result,
56
+ source,
57
+ }
58
+ }
59
+ }
60
+ } else {
61
+ // Otherwise, try all sources in the order they were provided
62
+ for (const source of params.sources) {
63
+ const sourceConfig = getSourceConfig(source.name)
64
+ const result = await source.readIfApplicableOrThrow(sourceConfig as any, params.context)
65
+ if (result) {
66
+ return {
67
+ data: result,
68
+ source,
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ throw new Error(`No applicable schema source found. Please check your configuration.`)
75
+ }
@@ -0,0 +1,6 @@
1
+ export * as Directory from './directory.js'
2
+ export * as File from './file.js'
3
+ export * as IntrospectionFile from './introspection-file.js'
4
+ export * as Introspection from './introspection.js'
5
+ export * as Memory from './memory.js'
6
+ export * as VersionedDirectory from './versioned-directory.js'
@@ -0,0 +1 @@
1
+ export * as InputSources from './$$.js'