@xtandard/kit 0.0.0-stage → 0.1.0

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 (402) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +71 -2
  3. package/bin/xtandard-kit.mjs +3 -0
  4. package/dist/base-path-BJugWLNO.cjs +42 -0
  5. package/dist/base-path-BJugWLNO.cjs.map +1 -0
  6. package/dist/base-path-CDb4In5E.mjs +31 -0
  7. package/dist/base-path-CDb4In5E.mjs.map +1 -0
  8. package/dist/basic-Qtriv0xS.mjs +176 -0
  9. package/dist/basic-Qtriv0xS.mjs.map +1 -0
  10. package/dist/basic-ZaO92-lB.cjs +199 -0
  11. package/dist/basic-ZaO92-lB.cjs.map +1 -0
  12. package/dist/bin.cjs +126 -0
  13. package/dist/bin.cjs.map +1 -0
  14. package/dist/bin.d.cts +20 -0
  15. package/dist/bin.d.mts +20 -0
  16. package/dist/bin.mjs +125 -0
  17. package/dist/bin.mjs.map +1 -0
  18. package/dist/cas-CuPSaXBV.cjs +23 -0
  19. package/dist/cas-CuPSaXBV.cjs.map +1 -0
  20. package/dist/cas-CzA-yECx.mjs +18 -0
  21. package/dist/cas-CzA-yECx.mjs.map +1 -0
  22. package/dist/chunk-DakpK96I.cjs +43 -0
  23. package/dist/contract-B3UPXXLx.d.cts +30 -0
  24. package/dist/contract-B3UPXXLx.d.mts +30 -0
  25. package/dist/contract-BDPNvjtp.d.mts +64 -0
  26. package/dist/contract-BEdfGTPs.mjs +85 -0
  27. package/dist/contract-BEdfGTPs.mjs.map +1 -0
  28. package/dist/contract-BIVzAn4f.d.cts +64 -0
  29. package/dist/contract-BvgtswLX.d.cts +75 -0
  30. package/dist/contract-BvgtswLX.d.mts +75 -0
  31. package/dist/contract-DUj9P3Vt.d.cts +72 -0
  32. package/dist/contract-DUj9P3Vt.d.mts +72 -0
  33. package/dist/contract-wAEMDmYG.cjs +132 -0
  34. package/dist/contract-wAEMDmYG.cjs.map +1 -0
  35. package/dist/drizzle-BElCHWri.d.mts +115 -0
  36. package/dist/drizzle-BXaQXCr0.cjs +232 -0
  37. package/dist/drizzle-BXaQXCr0.cjs.map +1 -0
  38. package/dist/drizzle-CEpahWQB.d.cts +115 -0
  39. package/dist/drizzle-DxnelsPT.mjs +197 -0
  40. package/dist/drizzle-DxnelsPT.mjs.map +1 -0
  41. package/dist/duration-7WpAK-xe.mjs +52 -0
  42. package/dist/duration-7WpAK-xe.mjs.map +1 -0
  43. package/dist/duration-DVA0Fzkx.cjs +63 -0
  44. package/dist/duration-DVA0Fzkx.cjs.map +1 -0
  45. package/dist/duration-FPwbmWIU.d.cts +35 -0
  46. package/dist/duration-FPwbmWIU.d.mts +35 -0
  47. package/dist/entry-adapters-bun.cjs +10 -0
  48. package/dist/entry-adapters-bun.cjs.map +1 -0
  49. package/dist/entry-adapters-bun.d.cts +10 -0
  50. package/dist/entry-adapters-bun.d.mts +10 -0
  51. package/dist/entry-adapters-bun.mjs +9 -0
  52. package/dist/entry-adapters-bun.mjs.map +1 -0
  53. package/dist/entry-adapters-elysia.cjs +54 -0
  54. package/dist/entry-adapters-elysia.cjs.map +1 -0
  55. package/dist/entry-adapters-elysia.d.cts +38 -0
  56. package/dist/entry-adapters-elysia.d.mts +38 -0
  57. package/dist/entry-adapters-elysia.mjs +53 -0
  58. package/dist/entry-adapters-elysia.mjs.map +1 -0
  59. package/dist/entry-adapters-express.cjs +27 -0
  60. package/dist/entry-adapters-express.cjs.map +1 -0
  61. package/dist/entry-adapters-express.d.cts +24 -0
  62. package/dist/entry-adapters-express.d.mts +24 -0
  63. package/dist/entry-adapters-express.mjs +26 -0
  64. package/dist/entry-adapters-express.mjs.map +1 -0
  65. package/dist/entry-adapters-hono.cjs +33 -0
  66. package/dist/entry-adapters-hono.cjs.map +1 -0
  67. package/dist/entry-adapters-hono.d.cts +36 -0
  68. package/dist/entry-adapters-hono.d.mts +36 -0
  69. package/dist/entry-adapters-hono.mjs +30 -0
  70. package/dist/entry-adapters-hono.mjs.map +1 -0
  71. package/dist/entry-adapters-next.cjs +19 -0
  72. package/dist/entry-adapters-next.cjs.map +1 -0
  73. package/dist/entry-adapters-next.d.cts +35 -0
  74. package/dist/entry-adapters-next.d.mts +35 -0
  75. package/dist/entry-adapters-next.mjs +18 -0
  76. package/dist/entry-adapters-next.mjs.map +1 -0
  77. package/dist/entry-adapters-node.cjs +7 -0
  78. package/dist/entry-adapters-node.d.cts +2 -0
  79. package/dist/entry-adapters-node.d.mts +2 -0
  80. package/dist/entry-adapters-node.mjs +2 -0
  81. package/dist/entry-auth-basic.cjs +5 -0
  82. package/dist/entry-auth-basic.d.cts +83 -0
  83. package/dist/entry-auth-basic.d.mts +83 -0
  84. package/dist/entry-auth-basic.mjs +2 -0
  85. package/dist/entry-auth-delegated.cjs +28 -0
  86. package/dist/entry-auth-delegated.cjs.map +1 -0
  87. package/dist/entry-auth-delegated.d.cts +36 -0
  88. package/dist/entry-auth-delegated.d.mts +36 -0
  89. package/dist/entry-auth-delegated.mjs +27 -0
  90. package/dist/entry-auth-delegated.mjs.map +1 -0
  91. package/dist/entry-auth-none.cjs +4 -0
  92. package/dist/entry-auth-none.d.cts +25 -0
  93. package/dist/entry-auth-none.d.mts +25 -0
  94. package/dist/entry-auth-none.mjs +2 -0
  95. package/dist/entry-auth.cjs +0 -0
  96. package/dist/entry-auth.d.cts +2 -0
  97. package/dist/entry-auth.d.mts +2 -0
  98. package/dist/entry-auth.mjs +1 -0
  99. package/dist/entry-authorization-delegated.cjs +27 -0
  100. package/dist/entry-authorization-delegated.cjs.map +1 -0
  101. package/dist/entry-authorization-delegated.d.cts +31 -0
  102. package/dist/entry-authorization-delegated.d.mts +31 -0
  103. package/dist/entry-authorization-delegated.mjs +26 -0
  104. package/dist/entry-authorization-delegated.mjs.map +1 -0
  105. package/dist/entry-authorization-none.cjs +3 -0
  106. package/dist/entry-authorization-none.d.cts +18 -0
  107. package/dist/entry-authorization-none.d.mts +18 -0
  108. package/dist/entry-authorization-none.mjs +2 -0
  109. package/dist/entry-authorization-roles.cjs +3 -0
  110. package/dist/entry-authorization-roles.d.cts +2 -0
  111. package/dist/entry-authorization-roles.d.mts +2 -0
  112. package/dist/entry-authorization-roles.mjs +2 -0
  113. package/dist/entry-authorization.cjs +35 -0
  114. package/dist/entry-authorization.cjs.map +1 -0
  115. package/dist/entry-authorization.d.cts +2 -0
  116. package/dist/entry-authorization.d.mts +2 -0
  117. package/dist/entry-authorization.mjs +34 -0
  118. package/dist/entry-authorization.mjs.map +1 -0
  119. package/dist/entry-build.cjs +481 -0
  120. package/dist/entry-build.cjs.map +1 -0
  121. package/dist/entry-build.d.cts +355 -0
  122. package/dist/entry-build.d.mts +355 -0
  123. package/dist/entry-build.mjs +460 -0
  124. package/dist/entry-build.mjs.map +1 -0
  125. package/dist/entry-cli.cjs +368 -0
  126. package/dist/entry-cli.cjs.map +1 -0
  127. package/dist/entry-cli.d.cts +275 -0
  128. package/dist/entry-cli.d.mts +275 -0
  129. package/dist/entry-cli.mjs +355 -0
  130. package/dist/entry-cli.mjs.map +1 -0
  131. package/dist/entry-drizzle-mysql.cjs +36 -0
  132. package/dist/entry-drizzle-mysql.cjs.map +1 -0
  133. package/dist/entry-drizzle-mysql.d.cts +55 -0
  134. package/dist/entry-drizzle-mysql.d.mts +55 -0
  135. package/dist/entry-drizzle-mysql.mjs +34 -0
  136. package/dist/entry-drizzle-mysql.mjs.map +1 -0
  137. package/dist/entry-drizzle-pg.cjs +38 -0
  138. package/dist/entry-drizzle-pg.cjs.map +1 -0
  139. package/dist/entry-drizzle-pg.d.cts +78 -0
  140. package/dist/entry-drizzle-pg.d.mts +78 -0
  141. package/dist/entry-drizzle-pg.mjs +36 -0
  142. package/dist/entry-drizzle-pg.mjs.map +1 -0
  143. package/dist/entry-drizzle-sqlite.cjs +20 -0
  144. package/dist/entry-drizzle-sqlite.cjs.map +1 -0
  145. package/dist/entry-drizzle-sqlite.d.cts +22 -0
  146. package/dist/entry-drizzle-sqlite.d.mts +22 -0
  147. package/dist/entry-drizzle-sqlite.mjs +19 -0
  148. package/dist/entry-drizzle-sqlite.mjs.map +1 -0
  149. package/dist/entry-hooks-log.cjs +32 -0
  150. package/dist/entry-hooks-log.cjs.map +1 -0
  151. package/dist/entry-hooks-log.d.cts +36 -0
  152. package/dist/entry-hooks-log.d.mts +36 -0
  153. package/dist/entry-hooks-log.mjs +31 -0
  154. package/dist/entry-hooks-log.mjs.map +1 -0
  155. package/dist/entry-hooks.cjs +10 -0
  156. package/dist/entry-hooks.d.cts +2 -0
  157. package/dist/entry-hooks.d.mts +2 -0
  158. package/dist/entry-hooks.mjs +2 -0
  159. package/dist/entry-server-router.cjs +235 -0
  160. package/dist/entry-server-router.cjs.map +1 -0
  161. package/dist/entry-server-router.d.cts +193 -0
  162. package/dist/entry-server-router.d.mts +193 -0
  163. package/dist/entry-server-router.mjs +228 -0
  164. package/dist/entry-server-router.mjs.map +1 -0
  165. package/dist/entry-server.cjs +344 -0
  166. package/dist/entry-server.cjs.map +1 -0
  167. package/dist/entry-server.d.cts +230 -0
  168. package/dist/entry-server.d.mts +230 -0
  169. package/dist/entry-server.mjs +322 -0
  170. package/dist/entry-server.mjs.map +1 -0
  171. package/dist/entry-site.cjs +1083 -0
  172. package/dist/entry-site.cjs.map +1 -0
  173. package/dist/entry-site.d.cts +336 -0
  174. package/dist/entry-site.d.mts +336 -0
  175. package/dist/entry-site.mjs +1060 -0
  176. package/dist/entry-site.mjs.map +1 -0
  177. package/dist/entry-storage-cloudflare-kv.cjs +51 -0
  178. package/dist/entry-storage-cloudflare-kv.cjs.map +1 -0
  179. package/dist/entry-storage-cloudflare-kv.d.cts +52 -0
  180. package/dist/entry-storage-cloudflare-kv.d.mts +52 -0
  181. package/dist/entry-storage-cloudflare-kv.mjs +50 -0
  182. package/dist/entry-storage-cloudflare-kv.mjs.map +1 -0
  183. package/dist/entry-storage-drizzle-internals.cjs +6 -0
  184. package/dist/entry-storage-drizzle-internals.d.cts +2 -0
  185. package/dist/entry-storage-drizzle-internals.d.mts +2 -0
  186. package/dist/entry-storage-drizzle-internals.mjs +2 -0
  187. package/dist/entry-storage-drizzle.cjs +4 -0
  188. package/dist/entry-storage-drizzle.d.cts +3 -0
  189. package/dist/entry-storage-drizzle.d.mts +3 -0
  190. package/dist/entry-storage-drizzle.mjs +2 -0
  191. package/dist/entry-storage-file.cjs +306 -0
  192. package/dist/entry-storage-file.cjs.map +1 -0
  193. package/dist/entry-storage-file.d.cts +76 -0
  194. package/dist/entry-storage-file.d.mts +76 -0
  195. package/dist/entry-storage-file.mjs +301 -0
  196. package/dist/entry-storage-file.mjs.map +1 -0
  197. package/dist/entry-storage-libsql-internals.cjs +7 -0
  198. package/dist/entry-storage-libsql-internals.d.cts +3 -0
  199. package/dist/entry-storage-libsql-internals.d.mts +3 -0
  200. package/dist/entry-storage-libsql-internals.mjs +3 -0
  201. package/dist/entry-storage-libsql.cjs +3 -0
  202. package/dist/entry-storage-libsql.d.cts +2 -0
  203. package/dist/entry-storage-libsql.d.mts +2 -0
  204. package/dist/entry-storage-libsql.mjs +2 -0
  205. package/dist/entry-storage-memory.cjs +78 -0
  206. package/dist/entry-storage-memory.cjs.map +1 -0
  207. package/dist/entry-storage-memory.d.cts +35 -0
  208. package/dist/entry-storage-memory.d.mts +35 -0
  209. package/dist/entry-storage-memory.mjs +77 -0
  210. package/dist/entry-storage-memory.mjs.map +1 -0
  211. package/dist/entry-storage-mongodb-internals.cjs +5 -0
  212. package/dist/entry-storage-mongodb-internals.d.cts +2 -0
  213. package/dist/entry-storage-mongodb-internals.d.mts +2 -0
  214. package/dist/entry-storage-mongodb-internals.mjs +2 -0
  215. package/dist/entry-storage-mongodb.cjs +3 -0
  216. package/dist/entry-storage-mongodb.d.cts +2 -0
  217. package/dist/entry-storage-mongodb.d.mts +2 -0
  218. package/dist/entry-storage-mongodb.mjs +2 -0
  219. package/dist/entry-storage-postgres-internals.cjs +6 -0
  220. package/dist/entry-storage-postgres-internals.d.cts +2 -0
  221. package/dist/entry-storage-postgres-internals.d.mts +2 -0
  222. package/dist/entry-storage-postgres-internals.mjs +2 -0
  223. package/dist/entry-storage-postgres.cjs +4 -0
  224. package/dist/entry-storage-postgres.d.cts +2 -0
  225. package/dist/entry-storage-postgres.d.mts +2 -0
  226. package/dist/entry-storage-postgres.mjs +2 -0
  227. package/dist/entry-storage-redis-internals.cjs +7 -0
  228. package/dist/entry-storage-redis-internals.d.cts +2 -0
  229. package/dist/entry-storage-redis-internals.d.mts +2 -0
  230. package/dist/entry-storage-redis-internals.mjs +2 -0
  231. package/dist/entry-storage-redis.cjs +4 -0
  232. package/dist/entry-storage-redis.d.cts +2 -0
  233. package/dist/entry-storage-redis.d.mts +2 -0
  234. package/dist/entry-storage-redis.mjs +2 -0
  235. package/dist/entry-storage-sqlite-internals.cjs +7 -0
  236. package/dist/entry-storage-sqlite-internals.d.cts +3 -0
  237. package/dist/entry-storage-sqlite-internals.d.mts +3 -0
  238. package/dist/entry-storage-sqlite-internals.mjs +3 -0
  239. package/dist/entry-storage-sqlite.cjs +3 -0
  240. package/dist/entry-storage-sqlite.d.cts +2 -0
  241. package/dist/entry-storage-sqlite.d.mts +2 -0
  242. package/dist/entry-storage-sqlite.mjs +2 -0
  243. package/dist/entry-storage-testing.cjs +801 -0
  244. package/dist/entry-storage-testing.cjs.map +1 -0
  245. package/dist/entry-storage-testing.d.cts +150 -0
  246. package/dist/entry-storage-testing.d.mts +150 -0
  247. package/dist/entry-storage-testing.mjs +790 -0
  248. package/dist/entry-storage-testing.mjs.map +1 -0
  249. package/dist/entry-storage-unstorage.cjs +78 -0
  250. package/dist/entry-storage-unstorage.cjs.map +1 -0
  251. package/dist/entry-storage-unstorage.d.cts +30 -0
  252. package/dist/entry-storage-unstorage.d.mts +30 -0
  253. package/dist/entry-storage-unstorage.mjs +77 -0
  254. package/dist/entry-storage-unstorage.mjs.map +1 -0
  255. package/dist/entry-storage.cjs +114 -0
  256. package/dist/entry-storage.cjs.map +1 -0
  257. package/dist/entry-storage.d.cts +152 -0
  258. package/dist/entry-storage.d.mts +152 -0
  259. package/dist/entry-storage.mjs +91 -0
  260. package/dist/entry-storage.mjs.map +1 -0
  261. package/dist/entry-testing.cjs +79 -0
  262. package/dist/entry-testing.cjs.map +1 -0
  263. package/dist/entry-testing.d.cts +55 -0
  264. package/dist/entry-testing.d.mts +55 -0
  265. package/dist/entry-testing.mjs +77 -0
  266. package/dist/entry-testing.mjs.map +1 -0
  267. package/dist/entry-tokens.cjs +4 -0
  268. package/dist/entry-tokens.d.cts +85 -0
  269. package/dist/entry-tokens.d.mts +85 -0
  270. package/dist/entry-tokens.mjs +2 -0
  271. package/dist/entry-ui-embed.cjs +131 -0
  272. package/dist/entry-ui-embed.cjs.map +1 -0
  273. package/dist/entry-ui-embed.d.cts +87 -0
  274. package/dist/entry-ui-embed.d.mts +87 -0
  275. package/dist/entry-ui-embed.mjs +127 -0
  276. package/dist/entry-ui-embed.mjs.map +1 -0
  277. package/dist/entry-ui.cjs +795 -0
  278. package/dist/entry-ui.cjs.map +1 -0
  279. package/dist/entry-ui.d.cts +574 -0
  280. package/dist/entry-ui.d.mts +574 -0
  281. package/dist/entry-ui.mjs +731 -0
  282. package/dist/entry-ui.mjs.map +1 -0
  283. package/dist/entry-util.cjs +145 -0
  284. package/dist/entry-util.cjs.map +1 -0
  285. package/dist/entry-util.d.cts +85 -0
  286. package/dist/entry-util.d.mts +85 -0
  287. package/dist/entry-util.mjs +130 -0
  288. package/dist/entry-util.mjs.map +1 -0
  289. package/dist/http-B_rTnLW9.cjs +235 -0
  290. package/dist/http-B_rTnLW9.cjs.map +1 -0
  291. package/dist/http-CxYM7kPT.d.mts +133 -0
  292. package/dist/http-DVdVI6kJ.mjs +164 -0
  293. package/dist/http-DVdVI6kJ.mjs.map +1 -0
  294. package/dist/http-XBVRk8uo.d.cts +133 -0
  295. package/dist/index.cjs +8 -0
  296. package/dist/index.cjs.map +1 -0
  297. package/dist/index.d.cts +6 -0
  298. package/dist/index.d.mts +6 -0
  299. package/dist/index.mjs +7 -0
  300. package/dist/index.mjs.map +1 -0
  301. package/dist/json-CCyzstIm.d.cts +44 -0
  302. package/dist/json-CCyzstIm.d.mts +44 -0
  303. package/dist/json-CM7TwYQ7.cjs +92 -0
  304. package/dist/json-CM7TwYQ7.cjs.map +1 -0
  305. package/dist/json-CmM1M5Kz.mjs +63 -0
  306. package/dist/json-CmM1M5Kz.mjs.map +1 -0
  307. package/dist/keys-Bwubabk0.mjs +73 -0
  308. package/dist/keys-Bwubabk0.mjs.map +1 -0
  309. package/dist/keys-DQrwxDKI.cjs +126 -0
  310. package/dist/keys-DQrwxDKI.cjs.map +1 -0
  311. package/dist/kv-sqlite-B6iTLOx2.d.cts +20 -0
  312. package/dist/kv-sqlite-CHOdIMJ-.cjs +77 -0
  313. package/dist/kv-sqlite-CHOdIMJ-.cjs.map +1 -0
  314. package/dist/kv-sqlite-DIIPfflJ.mjs +66 -0
  315. package/dist/kv-sqlite-DIIPfflJ.mjs.map +1 -0
  316. package/dist/kv-sqlite-Tx4UedJs.d.mts +20 -0
  317. package/dist/libsql-0160BubR.d.mts +65 -0
  318. package/dist/libsql-BZmRZIqt.d.cts +65 -0
  319. package/dist/libsql-CiBfVtbS.cjs +103 -0
  320. package/dist/libsql-CiBfVtbS.cjs.map +1 -0
  321. package/dist/libsql-CkOjQINi.mjs +86 -0
  322. package/dist/libsql-CkOjQINi.mjs.map +1 -0
  323. package/dist/mongodb--Cuj7V_9.cjs +150 -0
  324. package/dist/mongodb--Cuj7V_9.cjs.map +1 -0
  325. package/dist/mongodb-DGtsolQ2.d.cts +61 -0
  326. package/dist/mongodb-JMizy4Wg.mjs +127 -0
  327. package/dist/mongodb-JMizy4Wg.mjs.map +1 -0
  328. package/dist/mongodb-xGEU5Gwz.d.mts +61 -0
  329. package/dist/node-B1Djcwfi.d.cts +57 -0
  330. package/dist/node-B1Djcwfi.d.mts +57 -0
  331. package/dist/node-BYjocCbU.mjs +167 -0
  332. package/dist/node-BYjocCbU.mjs.map +1 -0
  333. package/dist/node-DFFqYRk-.cjs +201 -0
  334. package/dist/node-DFFqYRk-.cjs.map +1 -0
  335. package/dist/none-BEY7Kc_-.mjs +33 -0
  336. package/dist/none-BEY7Kc_-.mjs.map +1 -0
  337. package/dist/none-BoQ6-30P.cjs +33 -0
  338. package/dist/none-BoQ6-30P.cjs.map +1 -0
  339. package/dist/none-CHwVkQL-.cjs +49 -0
  340. package/dist/none-CHwVkQL-.cjs.map +1 -0
  341. package/dist/none-yu3qC47E.mjs +23 -0
  342. package/dist/none-yu3qC47E.mjs.map +1 -0
  343. package/dist/peer-BIjBFzwQ.cjs +56 -0
  344. package/dist/peer-BIjBFzwQ.cjs.map +1 -0
  345. package/dist/peer-CTHMzOdn.mjs +40 -0
  346. package/dist/peer-CTHMzOdn.mjs.map +1 -0
  347. package/dist/portal-container-CJIcau3B.mjs +610 -0
  348. package/dist/portal-container-CJIcau3B.mjs.map +1 -0
  349. package/dist/portal-container-Ca1NxrLE.cjs +774 -0
  350. package/dist/portal-container-Ca1NxrLE.cjs.map +1 -0
  351. package/dist/postgres-BJzxKBk0.d.cts +72 -0
  352. package/dist/postgres-CA8_XcAE.cjs +164 -0
  353. package/dist/postgres-CA8_XcAE.cjs.map +1 -0
  354. package/dist/postgres-RfQMgAsj.d.mts +72 -0
  355. package/dist/postgres-aDiBmNzr.mjs +135 -0
  356. package/dist/postgres-aDiBmNzr.mjs.map +1 -0
  357. package/dist/redis-B2AS4xAQ.cjs +259 -0
  358. package/dist/redis-B2AS4xAQ.cjs.map +1 -0
  359. package/dist/redis-B362ofBw.d.cts +159 -0
  360. package/dist/redis-CahNAVTW.d.mts +159 -0
  361. package/dist/redis-hdoKymfG.mjs +218 -0
  362. package/dist/redis-hdoKymfG.mjs.map +1 -0
  363. package/dist/roles-7JPrQXZa.mjs +46 -0
  364. package/dist/roles-7JPrQXZa.mjs.map +1 -0
  365. package/dist/roles-B_8QqJ3j.cjs +56 -0
  366. package/dist/roles-B_8QqJ3j.cjs.map +1 -0
  367. package/dist/roles-DLISB4T3.d.mts +41 -0
  368. package/dist/roles-DQbbtUPW.d.cts +41 -0
  369. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  370. package/dist/scope-css-BN3jf0ly.cjs +315 -0
  371. package/dist/scope-css-BN3jf0ly.cjs.map +1 -0
  372. package/dist/scope-css-BuJfRCsE.mjs +256 -0
  373. package/dist/scope-css-BuJfRCsE.mjs.map +1 -0
  374. package/dist/scoped-BRoE1W1x.cjs +175 -0
  375. package/dist/scoped-BRoE1W1x.cjs.map +1 -0
  376. package/dist/scoped-cFBbotCh.mjs +164 -0
  377. package/dist/scoped-cFBbotCh.mjs.map +1 -0
  378. package/dist/sqlite-B2g1JJz1.d.cts +47 -0
  379. package/dist/sqlite-BIPIlxfj.d.mts +47 -0
  380. package/dist/sqlite-BntoYaXZ.cjs +79 -0
  381. package/dist/sqlite-BntoYaXZ.cjs.map +1 -0
  382. package/dist/sqlite-DYJDcu7p.mjs +62 -0
  383. package/dist/sqlite-DYJDcu7p.mjs.map +1 -0
  384. package/dist/table-BrioFSra.d.cts +11 -0
  385. package/dist/table-BrioFSra.d.mts +11 -0
  386. package/dist/theme-context-DzZ1otaD.d.cts +270 -0
  387. package/dist/theme-context-J65pythD.d.mts +270 -0
  388. package/dist/ui/styles.css +239 -0
  389. package/dist/util-Dnj5T-yw.mjs +39 -0
  390. package/dist/util-Dnj5T-yw.mjs.map +1 -0
  391. package/dist/util-dAnTK9x-.cjs +74 -0
  392. package/dist/util-dAnTK9x-.cjs.map +1 -0
  393. package/dist/validation-B-atP968.mjs +191 -0
  394. package/dist/validation-B-atP968.mjs.map +1 -0
  395. package/dist/validation-BJifGoB2.d.mts +122 -0
  396. package/dist/validation-DLnzBVJr.cjs +258 -0
  397. package/dist/validation-DLnzBVJr.cjs.map +1 -0
  398. package/dist/validation-tfV2qhbD.d.cts +122 -0
  399. package/package.json +715 -4
  400. package/tsconfig/assets.d.ts +21 -0
  401. package/tsconfig/base.json +21 -0
  402. package/tsconfig/react.json +9 -0
@@ -0,0 +1,239 @@
1
+ /*
2
+ * @xtandard/kit/ui/styles.css — the base tokens and layers of the xtandard admin shell.
3
+ *
4
+ * Import it from the product's stylesheet, then override brand tokens in your own blocks (ADR 0008):
5
+ *
6
+ * @import "@xtandard/kit/ui/styles.css";
7
+ * :root { --accent: oklch(0.53 0.15 131); --ring: …; --chart-1: …; }
8
+ * :root[data-theme="dark"] { --accent: oklch(0.85 0.2 128); … }
9
+ *
10
+ * The `@source` lines make Tailwind generate the classes the kit's compiled UI components use.
11
+ * In the published package they point at the compiled files (written by
12
+ * `scripts/build-ui-assets.ts`); in the repo they point at the sources.
13
+ */
14
+ @import "tailwindcss";
15
+
16
+ /* @kit-sources:start */
17
+ @source "../entry-ui-embed.mjs";
18
+ @source "../entry-ui.mjs";
19
+ @source "../portal-container-CJIcau3B.mjs";
20
+ /* @kit-sources:end */
21
+
22
+ /*
23
+ * shadcn-style token system: a largely neutral palette with a single accent used sparingly. Light
24
+ * is the default; dark is applied via `data-theme="dark"` on <html> (the SPA, see `initTheme`) or on
25
+ * the embed wrapper. `@theme inline` maps the semantic vars to Tailwind colour utilities (bg-card,
26
+ * text-muted-foreground…).
27
+ */
28
+ @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
29
+
30
+ @theme inline {
31
+ --font-sans:
32
+ ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
33
+ --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, monospace;
34
+
35
+ --color-background: var(--background);
36
+ --color-foreground: var(--foreground);
37
+ --color-card: var(--card);
38
+ --color-card-foreground: var(--card-foreground);
39
+ --color-popover: var(--popover);
40
+ --color-popover-foreground: var(--popover-foreground);
41
+ --color-primary: var(--primary);
42
+ --color-primary-foreground: var(--primary-foreground);
43
+ --color-secondary: var(--secondary);
44
+ --color-secondary-foreground: var(--secondary-foreground);
45
+ --color-muted: var(--muted);
46
+ --color-muted-foreground: var(--muted-foreground);
47
+ --color-accent: var(--accent);
48
+ --color-accent-foreground: var(--accent-foreground);
49
+ --color-success: var(--success);
50
+ --color-warning: var(--warning);
51
+ --color-info: var(--info);
52
+ --color-destructive: var(--destructive);
53
+ --color-border: var(--border);
54
+ --color-input: var(--input);
55
+ --color-ring: var(--ring);
56
+ --color-chart-1: var(--chart-1);
57
+ --color-chart-2: var(--chart-2);
58
+ --color-chart-3: var(--chart-3);
59
+ --color-chart-4: var(--chart-4);
60
+ --color-chart-5: var(--chart-5);
61
+ --color-chart-track: var(--chart-track);
62
+
63
+ --radius-sm: calc(var(--radius) - 4px);
64
+ --radius-md: calc(var(--radius) - 2px);
65
+ --radius-lg: var(--radius);
66
+ --radius-xl: calc(var(--radius) + 4px);
67
+ }
68
+
69
+ /* ── Light (default) ─────────────────────────────────────────────────────── */
70
+ :root {
71
+ color-scheme: light;
72
+ --radius: 0.625rem;
73
+
74
+ --background: oklch(0.99 0.002 285);
75
+ --foreground: oklch(0.21 0.01 285);
76
+ --card: oklch(1 0 0);
77
+ --card-foreground: oklch(0.21 0.01 285);
78
+ --popover: oklch(1 0 0);
79
+ --popover-foreground: oklch(0.21 0.01 285);
80
+
81
+ --primary: oklch(0.24 0.01 285); /* near-black neutral button */
82
+ --primary-foreground: oklch(0.98 0 0);
83
+ --secondary: oklch(0.965 0.003 285);
84
+ --secondary-foreground: oklch(0.24 0.01 285);
85
+ --muted: oklch(0.965 0.003 285);
86
+ --muted-foreground: oklch(0.5 0.012 285);
87
+
88
+ --accent: oklch(0.55 0.2 256); /* default accent: override per product */
89
+ --accent-foreground: oklch(0.99 0 0);
90
+
91
+ --success: oklch(0.6 0.15 152);
92
+ --warning: oklch(0.7 0.15 78);
93
+ --info: oklch(0.55 0.2 256);
94
+ --destructive: oklch(0.58 0.21 24);
95
+
96
+ --border: oklch(0.21 0.01 285 / 11%);
97
+ --input: oklch(0.21 0.01 285 / 14%);
98
+ --ring: oklch(0.55 0.2 256);
99
+
100
+ --chart-1: oklch(0.55 0.2 256);
101
+ --chart-2: oklch(0.6 0.15 152);
102
+ --chart-3: oklch(0.7 0.15 78);
103
+ --chart-4: oklch(0.6 0.2 16);
104
+ --chart-5: oklch(0.62 0.16 300);
105
+ --chart-track: oklch(0.21 0.01 285 / 8%);
106
+
107
+ /* JSON code editor tokens (see .tok-* below) */
108
+ --code-key: oklch(0.47 0.17 256);
109
+ --code-string: oklch(0.5 0.14 152);
110
+ --code-number: oklch(0.55 0.16 50);
111
+ --code-literal: oklch(0.5 0.19 300);
112
+
113
+ --shadow-sm: 0 1px 2px oklch(0.2 0.02 285 / 0.06);
114
+ --shadow-md: 0 2px 4px oklch(0.2 0.02 285 / 0.05), 0 8px 20px oklch(0.2 0.02 285 / 0.08);
115
+ --shadow-lg: 0 16px 40px oklch(0.2 0.02 285 / 0.16);
116
+ }
117
+
118
+ /* ── Dark ────────────────────────────────────────────────────────────────── */
119
+ :root[data-theme="dark"] {
120
+ color-scheme: dark;
121
+
122
+ --background: oklch(0.16 0.004 285);
123
+ --foreground: oklch(0.97 0 0);
124
+ --card: oklch(0.205 0.004 285);
125
+ --card-foreground: oklch(0.97 0 0);
126
+ --popover: oklch(0.22 0.004 285);
127
+ --popover-foreground: oklch(0.97 0 0);
128
+
129
+ --primary: oklch(0.97 0 0); /* near-white neutral button */
130
+ --primary-foreground: oklch(0.2 0.01 285);
131
+ --secondary: oklch(0.27 0.004 285);
132
+ --secondary-foreground: oklch(0.97 0 0);
133
+ --muted: oklch(0.27 0.004 285);
134
+ --muted-foreground: oklch(0.66 0.005 285);
135
+
136
+ --accent: oklch(0.62 0.19 256);
137
+ --accent-foreground: oklch(0.99 0 0);
138
+
139
+ --success: oklch(0.72 0.18 152);
140
+ --warning: oklch(0.78 0.15 78);
141
+ --info: oklch(0.62 0.19 256);
142
+ --destructive: oklch(0.62 0.21 24);
143
+
144
+ --border: oklch(1 0 0 / 11%);
145
+ --input: oklch(1 0 0 / 14%);
146
+ --ring: oklch(0.62 0.19 256);
147
+
148
+ --chart-1: oklch(0.62 0.19 256);
149
+ --chart-2: oklch(0.72 0.18 152);
150
+ --chart-3: oklch(0.78 0.15 78);
151
+ --chart-4: oklch(0.66 0.2 16);
152
+ --chart-5: oklch(0.7 0.16 300);
153
+ --chart-track: oklch(1 0 0 / 9%);
154
+
155
+ --code-key: oklch(0.75 0.13 256);
156
+ --code-string: oklch(0.78 0.14 152);
157
+ --code-number: oklch(0.8 0.13 60);
158
+ --code-literal: oklch(0.76 0.14 300);
159
+
160
+ --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
161
+ --shadow-md: 0 2px 4px oklch(0 0 0 / 0.3), 0 10px 28px oklch(0 0 0 / 0.45);
162
+ --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.55);
163
+ }
164
+
165
+ @layer base {
166
+ *,
167
+ *::before,
168
+ *::after {
169
+ box-sizing: border-box;
170
+ border-color: var(--border);
171
+ }
172
+ html,
173
+ body,
174
+ #root {
175
+ height: 100%;
176
+ margin: 0;
177
+ padding: 0;
178
+ }
179
+ body {
180
+ background-color: var(--background);
181
+ color: var(--foreground);
182
+ font-family: var(--font-sans);
183
+ font-size: 14px;
184
+ line-height: 1.5;
185
+ letter-spacing: -0.006em;
186
+ -webkit-font-smoothing: antialiased;
187
+ -moz-osx-font-smoothing: grayscale;
188
+ }
189
+ :focus-visible {
190
+ outline: 2px solid var(--ring);
191
+ outline-offset: 2px;
192
+ }
193
+ }
194
+
195
+ * {
196
+ scrollbar-width: thin;
197
+ scrollbar-color: var(--border) transparent;
198
+ }
199
+ ::-webkit-scrollbar {
200
+ width: 8px;
201
+ height: 8px;
202
+ }
203
+ ::-webkit-scrollbar-thumb {
204
+ background: color-mix(in oklab, var(--muted-foreground) 35%, transparent);
205
+ border-radius: 4px;
206
+ border: 2px solid transparent;
207
+ background-clip: content-box;
208
+ }
209
+ ::-webkit-scrollbar-track {
210
+ background: transparent;
211
+ }
212
+
213
+ /* CodeMirror syntax tokens (classHighlighter), coloured from the theme tokens. */
214
+ .tok-propertyName {
215
+ color: var(--code-key);
216
+ }
217
+ .tok-string {
218
+ color: var(--code-string);
219
+ }
220
+ .tok-number {
221
+ color: var(--code-number);
222
+ }
223
+ .tok-bool,
224
+ .tok-null,
225
+ .tok-keyword {
226
+ color: var(--code-literal);
227
+ }
228
+ .tok-punctuation {
229
+ color: var(--muted-foreground);
230
+ }
231
+
232
+ @media (prefers-reduced-motion: reduce) {
233
+ *,
234
+ *::before,
235
+ *::after {
236
+ animation-duration: 0.01ms !important;
237
+ transition-duration: 0.01ms !important;
238
+ }
239
+ }
@@ -0,0 +1,39 @@
1
+ //#region src/storage/util.ts
2
+ /**
3
+ * Helpers shared by the storage drivers: identifier validation and literal-prefix escaping for SQL
4
+ * `LIKE … ESCAPE '!'`, SQLite `GLOB`, Redis `MATCH`/`PSUBSCRIBE` globs and regular expressions.
5
+ * The canonical-JSON and equality helpers live in `src/internal/json.ts` and are re-exported from
6
+ * `@xtandard/kit/storage`.
7
+ *
8
+ * @module
9
+ */
10
+ /** Identifiers the drivers are willing to interpolate into DDL and queries unquoted. */
11
+ const SAFE_IDENTIFIER = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
12
+ /**
13
+ * Throw unless `name` is a safe SQL identifier (`[a-zA-Z_][a-zA-Z0-9_]*`). Returns `name` so it can
14
+ * be used inline. `what` names the identifier in the error (`"table"`, `"column"`, …).
15
+ */
16
+ function assertIdentifier(name, what = "table") {
17
+ if (!SAFE_IDENTIFIER.test(name)) throw new Error(`Invalid ${what} name ${JSON.stringify(name)}: must match ${SAFE_IDENTIFIER.source}`);
18
+ return name;
19
+ }
20
+ /**
21
+ * Escape a literal prefix for `LIKE … ESCAPE '!'`. `!` (not `\`) because a backslash inside a string
22
+ * literal is itself an escape on MySQL, which makes `ESCAPE '\'` a syntax error there; `!` means
23
+ * the same on every dialect.
24
+ */
25
+ const escapeLike = (literal) => literal.replace(/[!%_]/g, (c) => `!${c}`);
26
+ /**
27
+ * Escape a literal prefix for SQLite `GLOB` (case-sensitive and index-usable, unlike SQLite's
28
+ * `LIKE`, which folds ASCII case). `*`, `?` and `[` are wrapped in a one-character class; `]`
29
+ * outside a class is already literal.
30
+ */
31
+ const escapeGlob = (literal) => literal.replace(/[*?[]/g, (c) => `[${c}]`);
32
+ /** Escape a literal prefix for a Redis glob (`SCAN … MATCH`, `PSUBSCRIBE`). */
33
+ const escapeRedisGlob = (literal) => literal.replace(/[*?[\]\\]/g, (c) => `\\${c}`);
34
+ /** Escape a literal string for embedding in a regular expression. */
35
+ const escapeRegex = (literal) => literal.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36
+ //#endregion
37
+ export { escapeRedisGlob as a, escapeLike as i, assertIdentifier as n, escapeRegex as o, escapeGlob as r, SAFE_IDENTIFIER as t };
38
+
39
+ //# sourceMappingURL=util-Dnj5T-yw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util-Dnj5T-yw.mjs","names":[],"sources":["../src/storage/util.ts"],"sourcesContent":["/**\n * Helpers shared by the storage drivers: identifier validation and literal-prefix escaping for SQL\n * `LIKE … ESCAPE '!'`, SQLite `GLOB`, Redis `MATCH`/`PSUBSCRIBE` globs and regular expressions.\n * The canonical-JSON and equality helpers live in `src/internal/json.ts` and are re-exported from\n * `@xtandard/kit/storage`.\n *\n * @module\n */\n\n/** Identifiers the drivers are willing to interpolate into DDL and queries unquoted. */\nexport const SAFE_IDENTIFIER: RegExp = /^[a-zA-Z_][a-zA-Z0-9_]*$/;\n\n/**\n * Throw unless `name` is a safe SQL identifier (`[a-zA-Z_][a-zA-Z0-9_]*`). Returns `name` so it can\n * be used inline. `what` names the identifier in the error (`\"table\"`, `\"column\"`, …).\n */\nexport function assertIdentifier(name: string, what = \"table\"): string {\n if (!SAFE_IDENTIFIER.test(name)) {\n throw new Error(\n `Invalid ${what} name ${JSON.stringify(name)}: must match ${SAFE_IDENTIFIER.source}`,\n );\n }\n return name;\n}\n\n/**\n * Escape a literal prefix for `LIKE … ESCAPE '!'`. `!` (not `\\`) because a backslash inside a string\n * literal is itself an escape on MySQL, which makes `ESCAPE '\\'` a syntax error there; `!` means\n * the same on every dialect.\n */\nexport const escapeLike = (literal: string): string => literal.replace(/[!%_]/g, (c) => `!${c}`);\n\n/**\n * Escape a literal prefix for SQLite `GLOB` (case-sensitive and index-usable, unlike SQLite's\n * `LIKE`, which folds ASCII case). `*`, `?` and `[` are wrapped in a one-character class; `]`\n * outside a class is already literal.\n */\nexport const escapeGlob = (literal: string): string => literal.replace(/[*?[]/g, (c) => `[${c}]`);\n\n/** Escape a literal prefix for a Redis glob (`SCAN … MATCH`, `PSUBSCRIBE`). */\nexport const escapeRedisGlob = (literal: string): string =>\n literal.replace(/[*?[\\]\\\\]/g, (c) => `\\\\${c}`);\n\n/** Escape a literal string for embedding in a regular expression. */\nexport const escapeRegex = (literal: string): string =>\n literal.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n"],"mappings":";;;;;;;;;;AAUA,MAAa,kBAA0B;;;;;AAMvC,SAAgB,iBAAiB,MAAc,OAAO,SAAiB;CACrE,IAAI,CAAC,gBAAgB,KAAK,IAAI,GAC5B,MAAM,IAAI,MACR,WAAW,KAAK,QAAQ,KAAK,UAAU,IAAI,EAAE,eAAe,gBAAgB,QAC9E;CAEF,OAAO;AACT;;;;;;AAOA,MAAa,cAAc,YAA4B,QAAQ,QAAQ,WAAW,MAAM,IAAI,GAAG;;;;;;AAO/F,MAAa,cAAc,YAA4B,QAAQ,QAAQ,WAAW,MAAM,IAAI,EAAE,EAAE;;AAGhG,MAAa,mBAAmB,YAC9B,QAAQ,QAAQ,eAAe,MAAM,KAAK,GAAG;;AAG/C,MAAa,eAAe,YAC1B,QAAQ,QAAQ,uBAAuB,MAAM"}
@@ -0,0 +1,74 @@
1
+ //#region src/storage/util.ts
2
+ /**
3
+ * Helpers shared by the storage drivers: identifier validation and literal-prefix escaping for SQL
4
+ * `LIKE … ESCAPE '!'`, SQLite `GLOB`, Redis `MATCH`/`PSUBSCRIBE` globs and regular expressions.
5
+ * The canonical-JSON and equality helpers live in `src/internal/json.ts` and are re-exported from
6
+ * `@xtandard/kit/storage`.
7
+ *
8
+ * @module
9
+ */
10
+ /** Identifiers the drivers are willing to interpolate into DDL and queries unquoted. */
11
+ const SAFE_IDENTIFIER = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
12
+ /**
13
+ * Throw unless `name` is a safe SQL identifier (`[a-zA-Z_][a-zA-Z0-9_]*`). Returns `name` so it can
14
+ * be used inline. `what` names the identifier in the error (`"table"`, `"column"`, …).
15
+ */
16
+ function assertIdentifier(name, what = "table") {
17
+ if (!SAFE_IDENTIFIER.test(name)) throw new Error(`Invalid ${what} name ${JSON.stringify(name)}: must match ${SAFE_IDENTIFIER.source}`);
18
+ return name;
19
+ }
20
+ /**
21
+ * Escape a literal prefix for `LIKE … ESCAPE '!'`. `!` (not `\`) because a backslash inside a string
22
+ * literal is itself an escape on MySQL, which makes `ESCAPE '\'` a syntax error there; `!` means
23
+ * the same on every dialect.
24
+ */
25
+ const escapeLike = (literal) => literal.replace(/[!%_]/g, (c) => `!${c}`);
26
+ /**
27
+ * Escape a literal prefix for SQLite `GLOB` (case-sensitive and index-usable, unlike SQLite's
28
+ * `LIKE`, which folds ASCII case). `*`, `?` and `[` are wrapped in a one-character class; `]`
29
+ * outside a class is already literal.
30
+ */
31
+ const escapeGlob = (literal) => literal.replace(/[*?[]/g, (c) => `[${c}]`);
32
+ /** Escape a literal prefix for a Redis glob (`SCAN … MATCH`, `PSUBSCRIBE`). */
33
+ const escapeRedisGlob = (literal) => literal.replace(/[*?[\]\\]/g, (c) => `\\${c}`);
34
+ /** Escape a literal string for embedding in a regular expression. */
35
+ const escapeRegex = (literal) => literal.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36
+ //#endregion
37
+ Object.defineProperty(exports, "SAFE_IDENTIFIER", {
38
+ enumerable: true,
39
+ get: function() {
40
+ return SAFE_IDENTIFIER;
41
+ }
42
+ });
43
+ Object.defineProperty(exports, "assertIdentifier", {
44
+ enumerable: true,
45
+ get: function() {
46
+ return assertIdentifier;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, "escapeGlob", {
50
+ enumerable: true,
51
+ get: function() {
52
+ return escapeGlob;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, "escapeLike", {
56
+ enumerable: true,
57
+ get: function() {
58
+ return escapeLike;
59
+ }
60
+ });
61
+ Object.defineProperty(exports, "escapeRedisGlob", {
62
+ enumerable: true,
63
+ get: function() {
64
+ return escapeRedisGlob;
65
+ }
66
+ });
67
+ Object.defineProperty(exports, "escapeRegex", {
68
+ enumerable: true,
69
+ get: function() {
70
+ return escapeRegex;
71
+ }
72
+ });
73
+
74
+ //# sourceMappingURL=util-dAnTK9x-.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util-dAnTK9x-.cjs","names":[],"sources":["../src/storage/util.ts"],"sourcesContent":["/**\n * Helpers shared by the storage drivers: identifier validation and literal-prefix escaping for SQL\n * `LIKE … ESCAPE '!'`, SQLite `GLOB`, Redis `MATCH`/`PSUBSCRIBE` globs and regular expressions.\n * The canonical-JSON and equality helpers live in `src/internal/json.ts` and are re-exported from\n * `@xtandard/kit/storage`.\n *\n * @module\n */\n\n/** Identifiers the drivers are willing to interpolate into DDL and queries unquoted. */\nexport const SAFE_IDENTIFIER: RegExp = /^[a-zA-Z_][a-zA-Z0-9_]*$/;\n\n/**\n * Throw unless `name` is a safe SQL identifier (`[a-zA-Z_][a-zA-Z0-9_]*`). Returns `name` so it can\n * be used inline. `what` names the identifier in the error (`\"table\"`, `\"column\"`, …).\n */\nexport function assertIdentifier(name: string, what = \"table\"): string {\n if (!SAFE_IDENTIFIER.test(name)) {\n throw new Error(\n `Invalid ${what} name ${JSON.stringify(name)}: must match ${SAFE_IDENTIFIER.source}`,\n );\n }\n return name;\n}\n\n/**\n * Escape a literal prefix for `LIKE … ESCAPE '!'`. `!` (not `\\`) because a backslash inside a string\n * literal is itself an escape on MySQL, which makes `ESCAPE '\\'` a syntax error there; `!` means\n * the same on every dialect.\n */\nexport const escapeLike = (literal: string): string => literal.replace(/[!%_]/g, (c) => `!${c}`);\n\n/**\n * Escape a literal prefix for SQLite `GLOB` (case-sensitive and index-usable, unlike SQLite's\n * `LIKE`, which folds ASCII case). `*`, `?` and `[` are wrapped in a one-character class; `]`\n * outside a class is already literal.\n */\nexport const escapeGlob = (literal: string): string => literal.replace(/[*?[]/g, (c) => `[${c}]`);\n\n/** Escape a literal prefix for a Redis glob (`SCAN … MATCH`, `PSUBSCRIBE`). */\nexport const escapeRedisGlob = (literal: string): string =>\n literal.replace(/[*?[\\]\\\\]/g, (c) => `\\\\${c}`);\n\n/** Escape a literal string for embedding in a regular expression. */\nexport const escapeRegex = (literal: string): string =>\n literal.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n"],"mappings":";;;;;;;;;;AAUA,MAAa,kBAA0B;;;;;AAMvC,SAAgB,iBAAiB,MAAc,OAAO,SAAiB;CACrE,IAAI,CAAC,gBAAgB,KAAK,IAAI,GAC5B,MAAM,IAAI,MACR,WAAW,KAAK,QAAQ,KAAK,UAAU,IAAI,EAAE,eAAe,gBAAgB,QAC9E;CAEF,OAAO;AACT;;;;;;AAOA,MAAa,cAAc,YAA4B,QAAQ,QAAQ,WAAW,MAAM,IAAI,GAAG;;;;;;AAO/F,MAAa,cAAc,YAA4B,QAAQ,QAAQ,WAAW,MAAM,IAAI,EAAE,EAAE;;AAGhG,MAAa,mBAAmB,YAC9B,QAAQ,QAAQ,eAAe,MAAM,KAAK,GAAG;;AAG/C,MAAa,eAAe,YAC1B,QAAQ,QAAQ,uBAAuB,MAAM"}
@@ -0,0 +1,191 @@
1
+ import * as v from "valibot";
2
+ //#region src/util/validation.ts
3
+ /**
4
+ * The validation core shared by the products, built on `valibot` (the kit's
5
+ * only runtime dependency): the issue and error types, a valibot issue mapper,
6
+ * `parseInput`, a finite JSON-value schema, the storage key-segment check and
7
+ * a URL policy check. Product schemas stay in the products.
8
+ *
9
+ * @module
10
+ */
11
+ /**
12
+ * Raised when an input fails validation. It carries the issues as both
13
+ * `errors` (webhooks/audit/links) and `issues` (entitlements); they are the
14
+ * same array.
15
+ */
16
+ var ValidationError = class extends Error {
17
+ errors;
18
+ constructor(errors, message) {
19
+ super(message ?? `Validation failed:\n${errors.map((e) => ` - ${e.path ? `${e.path}: ` : ""}${e.message}`).join("\n")}`);
20
+ this.name = "ValidationError";
21
+ this.errors = errors;
22
+ }
23
+ /** Alias of {@link ValidationError.errors}. */
24
+ get issues() {
25
+ return this.errors;
26
+ }
27
+ };
28
+ /** Throw a {@link ValidationError} when `result` is invalid. */
29
+ function assertValid(result) {
30
+ if (!result.valid) throw new ValidationError(result.errors);
31
+ }
32
+ /** A `{ valid, errors }` result from a list of issues. */
33
+ const resultOf = (errors) => ({
34
+ valid: errors.length === 0,
35
+ errors
36
+ });
37
+ /**
38
+ * Map valibot issues to {@link ValidationIssue}s under `basePath`. A root
39
+ * issue gets `basePath` itself (no trailing `.`); a strict object's extra key
40
+ * (valibot reports it as "expected never") reads `"unknown field"`.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const r = v.safeParse(schema, input);
45
+ * if (!r.success) return { valid: false, errors: issuesFrom(r.issues, "link") };
46
+ * ```
47
+ */
48
+ function issuesFrom(issues, basePath = "") {
49
+ return issues.map((issue) => {
50
+ const sub = (issue.path ?? []).map((p) => String(p.key)).join(".");
51
+ return {
52
+ path: sub ? basePath ? `${basePath}.${sub}` : sub : basePath,
53
+ message: issue.expected === "never" ? "unknown field" : issue.message
54
+ };
55
+ });
56
+ }
57
+ /**
58
+ * Validate `input` against `schema`; return the typed output or throw a
59
+ * {@link ValidationError} listing every issue.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const grant = parseInput(grantSchema, await request.json());
64
+ * ```
65
+ */
66
+ function parseInput(schema, input, options = {}) {
67
+ const result = v.safeParse(schema, input);
68
+ if (result.success) return result.output;
69
+ const issues = issuesFrom(result.issues, options.basePath);
70
+ throw options.error ? options.error(issues) : new ValidationError(issues);
71
+ }
72
+ /**
73
+ * A valibot schema for a JSON value. Numbers must be **finite**: `NaN` and
74
+ * `±Infinity` would silently serialise to `null`.
75
+ */
76
+ const jsonValueSchema = v.lazy(() => v.union([
77
+ v.string(),
78
+ v.pipe(v.number(), v.finite()),
79
+ v.boolean(),
80
+ v.null(),
81
+ v.array(jsonValueSchema),
82
+ v.record(v.string(), jsonValueSchema)
83
+ ]));
84
+ /** A valibot schema for a JSON object (finite numbers, see {@link jsonValueSchema}). */
85
+ const jsonObjectSchema = v.pipe(v.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value), "must be an object"), v.record(v.string(), jsonValueSchema));
86
+ /** The characters allowed in a caller-supplied storage key segment. */
87
+ const KEY_SEGMENT_REGEX = /^[a-zA-Z0-9._-]+$/;
88
+ /**
89
+ * Check a caller-supplied value that becomes one storage key segment (a
90
+ * tenant, an idempotency key…). It must be a non-empty string of
91
+ * {@link KEY_SEGMENT_REGEX} characters and must not be only dots, so it can't
92
+ * escape its namespace (`..`) or collide with the separator.
93
+ */
94
+ function validateKeySegment(value, path) {
95
+ if (typeof value !== "string" || value.length === 0) return [{
96
+ path,
97
+ message: "is required"
98
+ }];
99
+ if (!KEY_SEGMENT_REGEX.test(value)) return [{
100
+ path,
101
+ message: `must match ${KEY_SEGMENT_REGEX}`
102
+ }];
103
+ if (/^\.+$/.test(value)) return [{
104
+ path,
105
+ message: `"${value}" is not an allowed key`
106
+ }];
107
+ return [];
108
+ }
109
+ /** Schemes {@link validateUrl} always rejects: they run code or read local data. */
110
+ const FORBIDDEN_URL_SCHEMES = new Set([
111
+ "javascript:",
112
+ "data:",
113
+ "vbscript:",
114
+ "file:",
115
+ "blob:",
116
+ "about:"
117
+ ]);
118
+ const LOCAL_HOSTS = new Set([
119
+ "localhost",
120
+ "127.0.0.1",
121
+ "[::1]",
122
+ "::1"
123
+ ]);
124
+ /**
125
+ * Check an absolute URL against a policy; returns the issues (empty when the
126
+ * URL is acceptable). Dangerous schemes are always rejected.
127
+ *
128
+ * @example
129
+ * ```ts
130
+ * // A webhook endpoint: https only (http on localhost), no credentials.
131
+ * validateUrl(url, "endpoint.url", {
132
+ * allowedSchemes: ["https:", "http:"],
133
+ * requireHttps: true,
134
+ * rejectCredentials: true,
135
+ * });
136
+ * ```
137
+ */
138
+ function validateUrl(value, path, options = {}) {
139
+ if (typeof value !== "string" || value.length === 0) return [{
140
+ path,
141
+ message: "is required"
142
+ }];
143
+ const maxLength = options.maxLength ?? 8192;
144
+ if (value.length > maxLength) return [{
145
+ path,
146
+ message: `must be at most ${maxLength} characters`
147
+ }];
148
+ let url;
149
+ try {
150
+ url = new URL(value);
151
+ } catch {
152
+ return [{
153
+ path,
154
+ message: "must be an absolute URL"
155
+ }];
156
+ }
157
+ if (FORBIDDEN_URL_SCHEMES.has(url.protocol)) return [{
158
+ path,
159
+ message: `scheme ${url.protocol} is not allowed`
160
+ }];
161
+ if (options.allowedSchemes && !options.allowedSchemes.includes(url.protocol)) return [{
162
+ path,
163
+ message: `unsupported protocol "${url.protocol}"`
164
+ }];
165
+ if ((url.protocol === "http:" || url.protocol === "https:") && !url.hostname) return [{
166
+ path,
167
+ message: "must have a host"
168
+ }];
169
+ if (options.rejectCredentials && (url.username || url.password)) return [{
170
+ path,
171
+ message: "URL must not contain credentials"
172
+ }];
173
+ if (options.requireHttps && url.protocol === "http:" && !((options.allowLocalhost ?? true) && LOCAL_HOSTS.has(url.hostname))) return [{
174
+ path,
175
+ message: "http URLs are only allowed for localhost"
176
+ }];
177
+ const verdict = options.policy?.(url);
178
+ if (typeof verdict === "string") return [{
179
+ path,
180
+ message: verdict
181
+ }];
182
+ if (verdict === false) return [{
183
+ path,
184
+ message: "URL rejected by the configured policy"
185
+ }];
186
+ return [];
187
+ }
188
+ //#endregion
189
+ export { issuesFrom as a, parseInput as c, validateUrl as d, assertValid as i, resultOf as l, KEY_SEGMENT_REGEX as n, jsonObjectSchema as o, ValidationError as r, jsonValueSchema as s, FORBIDDEN_URL_SCHEMES as t, validateKeySegment as u };
190
+
191
+ //# sourceMappingURL=validation-B-atP968.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-B-atP968.mjs","names":[],"sources":["../src/util/validation.ts"],"sourcesContent":["/**\n * The validation core shared by the products, built on `valibot` (the kit's\n * only runtime dependency): the issue and error types, a valibot issue mapper,\n * `parseInput`, a finite JSON-value schema, the storage key-segment check and\n * a URL policy check. Product schemas stay in the products.\n *\n * @module\n */\n\nimport * as v from \"valibot\";\nimport type { JsonObject, JsonValue } from \"../internal/json.ts\";\n\n/** A single validation problem with a dotted path into the offending data. */\nexport interface ValidationIssue {\n path: string;\n message: string;\n}\n\n/** Result of a `validate*` function. */\nexport interface ValidationResult {\n valid: boolean;\n errors: ValidationIssue[];\n}\n\n/**\n * Raised when an input fails validation. It carries the issues as both\n * `errors` (webhooks/audit/links) and `issues` (entitlements); they are the\n * same array.\n */\nexport class ValidationError extends Error {\n readonly errors: ValidationIssue[];\n constructor(errors: ValidationIssue[], message?: string) {\n super(\n message ??\n `Validation failed:\\n${errors.map((e) => ` - ${e.path ? `${e.path}: ` : \"\"}${e.message}`).join(\"\\n\")}`,\n );\n this.name = \"ValidationError\";\n this.errors = errors;\n }\n /** Alias of {@link ValidationError.errors}. */\n get issues(): ValidationIssue[] {\n return this.errors;\n }\n}\n\n/** Throw a {@link ValidationError} when `result` is invalid. */\nexport function assertValid(result: ValidationResult): void {\n if (!result.valid) throw new ValidationError(result.errors);\n}\n\n/** A `{ valid, errors }` result from a list of issues. */\nexport const resultOf = (errors: ValidationIssue[]): ValidationResult => ({\n valid: errors.length === 0,\n errors,\n});\n\n/**\n * Map valibot issues to {@link ValidationIssue}s under `basePath`. A root\n * issue gets `basePath` itself (no trailing `.`); a strict object's extra key\n * (valibot reports it as \"expected never\") reads `\"unknown field\"`.\n *\n * @example\n * ```ts\n * const r = v.safeParse(schema, input);\n * if (!r.success) return { valid: false, errors: issuesFrom(r.issues, \"link\") };\n * ```\n */\nexport function issuesFrom(\n issues: readonly v.BaseIssue<unknown>[],\n basePath = \"\",\n): ValidationIssue[] {\n return issues.map((issue) => {\n const sub = (issue.path ?? []).map((p) => String(p.key)).join(\".\");\n const path = sub ? (basePath ? `${basePath}.${sub}` : sub) : basePath;\n return { path, message: issue.expected === \"never\" ? \"unknown field\" : issue.message };\n });\n}\n\n/** Options for {@link parseInput}. */\nexport interface ParseInputOptions {\n /** Prefix for every issue path. Default `\"\"` (paths are relative to the input). */\n basePath?: string;\n /**\n * Build the error to throw. Default: a {@link ValidationError}. A product\n * passes its own error class here to keep its `name`/HTTP mapping.\n */\n error?: (issues: ValidationIssue[]) => Error;\n}\n\n/**\n * Validate `input` against `schema`; return the typed output or throw a\n * {@link ValidationError} listing every issue.\n *\n * @example\n * ```ts\n * const grant = parseInput(grantSchema, await request.json());\n * ```\n */\nexport function parseInput<S extends v.GenericSchema>(\n schema: S,\n input: unknown,\n options: ParseInputOptions = {},\n): v.InferOutput<S> {\n const result = v.safeParse(schema, input);\n if (result.success) return result.output;\n const issues = issuesFrom(result.issues, options.basePath);\n throw options.error ? options.error(issues) : new ValidationError(issues);\n}\n\n/**\n * A valibot schema for a JSON value. Numbers must be **finite**: `NaN` and\n * `±Infinity` would silently serialise to `null`.\n */\nexport const jsonValueSchema: v.GenericSchema<JsonValue> = v.lazy(() =>\n v.union([\n v.string(),\n v.pipe(v.number(), v.finite()),\n v.boolean(),\n v.null(),\n v.array(jsonValueSchema),\n v.record(v.string(), jsonValueSchema),\n ]),\n);\n\n/** A valibot schema for a JSON object (finite numbers, see {@link jsonValueSchema}). */\nexport const jsonObjectSchema: v.GenericSchema<unknown, JsonObject> = v.pipe(\n v.custom<object>(\n (value) => typeof value === \"object\" && value !== null && !Array.isArray(value),\n \"must be an object\",\n ),\n v.record(v.string(), jsonValueSchema),\n);\n\n/** The characters allowed in a caller-supplied storage key segment. */\nexport const KEY_SEGMENT_REGEX = /^[a-zA-Z0-9._-]+$/;\n\n/**\n * Check a caller-supplied value that becomes one storage key segment (a\n * tenant, an idempotency key…). It must be a non-empty string of\n * {@link KEY_SEGMENT_REGEX} characters and must not be only dots, so it can't\n * escape its namespace (`..`) or collide with the separator.\n */\nexport function validateKeySegment(value: unknown, path: string): ValidationIssue[] {\n if (typeof value !== \"string\" || value.length === 0) return [{ path, message: \"is required\" }];\n if (!KEY_SEGMENT_REGEX.test(value)) return [{ path, message: `must match ${KEY_SEGMENT_REGEX}` }];\n if (/^\\.+$/.test(value)) return [{ path, message: `\"${value}\" is not an allowed key` }];\n return [];\n}\n\n/** Schemes {@link validateUrl} always rejects: they run code or read local data. */\nexport const FORBIDDEN_URL_SCHEMES: ReadonlySet<string> = new Set([\n \"javascript:\",\n \"data:\",\n \"vbscript:\",\n \"file:\",\n \"blob:\",\n \"about:\",\n]);\n\nconst LOCAL_HOSTS = new Set([\"localhost\", \"127.0.0.1\", \"[::1]\", \"::1\"]);\n\n/** Options for {@link validateUrl}. */\nexport interface UrlPolicyOptions {\n /**\n * Allowed schemes, with the trailing colon (`[\"https:\", \"http:\"]`). Default:\n * any scheme except {@link FORBIDDEN_URL_SCHEMES} (app deep links such as\n * `myapp://` pass).\n */\n allowedSchemes?: readonly string[];\n /**\n * Reject plain `http:` except for localhost (see `allowLocalhost`). Default\n * `false`. Webhook endpoints set it; link destinations don't.\n */\n requireHttps?: boolean;\n /** With `requireHttps`, still accept `http:` for localhost / loopback. Default `true`. */\n allowLocalhost?: boolean;\n /** Reject URLs with embedded credentials (`https://user:pass@…`). Default `false`. */\n rejectCredentials?: boolean;\n /** Maximum length. Default `8192`. */\n maxLength?: number;\n /**\n * Extra host-supplied check (an SSRF denylist…). Return a message or `false`\n * to reject; `true`, `null` or `undefined` to accept.\n */\n policy?: (url: URL) => string | boolean | null | undefined;\n}\n\n/**\n * Check an absolute URL against a policy; returns the issues (empty when the\n * URL is acceptable). Dangerous schemes are always rejected.\n *\n * @example\n * ```ts\n * // A webhook endpoint: https only (http on localhost), no credentials.\n * validateUrl(url, \"endpoint.url\", {\n * allowedSchemes: [\"https:\", \"http:\"],\n * requireHttps: true,\n * rejectCredentials: true,\n * });\n * ```\n */\nexport function validateUrl(\n value: unknown,\n path: string,\n options: UrlPolicyOptions = {},\n): ValidationIssue[] {\n if (typeof value !== \"string\" || value.length === 0) return [{ path, message: \"is required\" }];\n const maxLength = options.maxLength ?? 8192;\n if (value.length > maxLength) {\n return [{ path, message: `must be at most ${maxLength} characters` }];\n }\n let url: URL;\n try {\n url = new URL(value);\n } catch {\n return [{ path, message: \"must be an absolute URL\" }];\n }\n if (FORBIDDEN_URL_SCHEMES.has(url.protocol)) {\n return [{ path, message: `scheme ${url.protocol} is not allowed` }];\n }\n if (options.allowedSchemes && !options.allowedSchemes.includes(url.protocol)) {\n return [{ path, message: `unsupported protocol \"${url.protocol}\"` }];\n }\n const web = url.protocol === \"http:\" || url.protocol === \"https:\";\n if (web && !url.hostname) return [{ path, message: \"must have a host\" }];\n if (options.rejectCredentials && (url.username || url.password)) {\n return [{ path, message: \"URL must not contain credentials\" }];\n }\n if (\n options.requireHttps &&\n url.protocol === \"http:\" &&\n !((options.allowLocalhost ?? true) && LOCAL_HOSTS.has(url.hostname))\n ) {\n return [{ path, message: \"http URLs are only allowed for localhost\" }];\n }\n const verdict = options.policy?.(url);\n if (typeof verdict === \"string\") return [{ path, message: verdict }];\n if (verdict === false) return [{ path, message: \"URL rejected by the configured policy\" }];\n return [];\n}\n"],"mappings":"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"}