@gadicc/loom 0.0.0-oidc-bootstrap.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 (342) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +6 -0
  3. package/README.md +448 -0
  4. package/THIRD_PARTY_NOTICES.md +25 -0
  5. package/db/drizzle-config.d.ts +20 -0
  6. package/db/drizzle-config.js +34 -0
  7. package/db/fixtures.d.ts +31 -0
  8. package/db/fixtures.js +52 -0
  9. package/db/neon.d.ts +3 -0
  10. package/db/neon.js +20 -0
  11. package/db/neonFull.d.ts +12 -0
  12. package/db/neonFull.js +33 -0
  13. package/db/package.json +3 -0
  14. package/db/testing.d.ts +26 -0
  15. package/db/testing.js +76 -0
  16. package/db/testing.test.ts +28 -0
  17. package/db/valibot.d.ts +23 -0
  18. package/db/valibot.js +8 -0
  19. package/esm/_dnt.polyfills.d.ts +149 -0
  20. package/esm/_dnt.polyfills.d.ts.map +1 -0
  21. package/esm/_dnt.polyfills.js +163 -0
  22. package/esm/_dnt.shims.d.ts +2 -0
  23. package/esm/_dnt.shims.d.ts.map +1 -0
  24. package/esm/_dnt.shims.js +57 -0
  25. package/esm/bin/loom.d.ts +2 -0
  26. package/esm/bin/loom.d.ts.map +1 -0
  27. package/esm/bin/loom.js +11 -0
  28. package/esm/mod.d.ts +9 -0
  29. package/esm/mod.d.ts.map +1 -0
  30. package/esm/mod.js +8 -0
  31. package/esm/package.json +3 -0
  32. package/esm/src/apiKeys/authorize.d.ts +4 -0
  33. package/esm/src/apiKeys/authorize.d.ts.map +1 -0
  34. package/esm/src/apiKeys/authorize.js +184 -0
  35. package/esm/src/apiKeys/country.d.ts +3 -0
  36. package/esm/src/apiKeys/country.d.ts.map +1 -0
  37. package/esm/src/apiKeys/country.js +7 -0
  38. package/esm/src/apiKeys/credentials.d.ts +4 -0
  39. package/esm/src/apiKeys/credentials.d.ts.map +1 -0
  40. package/esm/src/apiKeys/credentials.js +55 -0
  41. package/esm/src/apiKeys/fingerprint.d.ts +3 -0
  42. package/esm/src/apiKeys/fingerprint.d.ts.map +1 -0
  43. package/esm/src/apiKeys/fingerprint.js +5 -0
  44. package/esm/src/apiKeys/mod.d.ts +9 -0
  45. package/esm/src/apiKeys/mod.d.ts.map +1 -0
  46. package/esm/src/apiKeys/mod.js +8 -0
  47. package/esm/src/apiKeys/policy.d.ts +59 -0
  48. package/esm/src/apiKeys/policy.d.ts.map +1 -0
  49. package/esm/src/apiKeys/policy.js +88 -0
  50. package/esm/src/apiKeys/retention.d.ts +55 -0
  51. package/esm/src/apiKeys/retention.d.ts.map +1 -0
  52. package/esm/src/apiKeys/retention.js +65 -0
  53. package/esm/src/apiKeys/types.d.ts +175 -0
  54. package/esm/src/apiKeys/types.d.ts.map +1 -0
  55. package/esm/src/apiKeys/types.js +1 -0
  56. package/esm/src/cli/externalSkills.d.ts +39 -0
  57. package/esm/src/cli/externalSkills.d.ts.map +1 -0
  58. package/esm/src/cli/externalSkills.js +177 -0
  59. package/esm/src/cli/mod.d.ts +337 -0
  60. package/esm/src/cli/mod.d.ts.map +1 -0
  61. package/esm/src/cli/mod.js +9268 -0
  62. package/esm/src/cli/projectSkills.d.ts +102 -0
  63. package/esm/src/cli/projectSkills.d.ts.map +1 -0
  64. package/esm/src/cli/projectSkills.js +592 -0
  65. package/esm/src/files/client.d.ts +29 -0
  66. package/esm/src/files/client.d.ts.map +1 -0
  67. package/esm/src/files/client.js +41 -0
  68. package/esm/src/files/errors.d.ts +37 -0
  69. package/esm/src/files/errors.d.ts.map +1 -0
  70. package/esm/src/files/errors.js +66 -0
  71. package/esm/src/files/hash.d.ts +15 -0
  72. package/esm/src/files/hash.d.ts.map +1 -0
  73. package/esm/src/files/hash.js +82 -0
  74. package/esm/src/files/memory.d.ts +29 -0
  75. package/esm/src/files/memory.d.ts.map +1 -0
  76. package/esm/src/files/memory.js +109 -0
  77. package/esm/src/files/metadata.d.ts +10 -0
  78. package/esm/src/files/metadata.d.ts.map +1 -0
  79. package/esm/src/files/metadata.js +186 -0
  80. package/esm/src/files/mod.d.ts +10 -0
  81. package/esm/src/files/mod.d.ts.map +1 -0
  82. package/esm/src/files/mod.js +9 -0
  83. package/esm/src/files/s3.d.ts +29 -0
  84. package/esm/src/files/s3.d.ts.map +1 -0
  85. package/esm/src/files/s3.js +107 -0
  86. package/esm/src/files/service.d.ts +27 -0
  87. package/esm/src/files/service.d.ts.map +1 -0
  88. package/esm/src/files/service.js +136 -0
  89. package/esm/src/files/types.d.ts +134 -0
  90. package/esm/src/files/types.d.ts.map +1 -0
  91. package/esm/src/files/types.js +1 -0
  92. package/esm/src/jobs/catalog.d.ts +32 -0
  93. package/esm/src/jobs/catalog.d.ts.map +1 -0
  94. package/esm/src/jobs/catalog.js +208 -0
  95. package/esm/src/jobs/controller.d.ts +28 -0
  96. package/esm/src/jobs/controller.d.ts.map +1 -0
  97. package/esm/src/jobs/controller.js +95 -0
  98. package/esm/src/jobs/direct.d.ts +36 -0
  99. package/esm/src/jobs/direct.d.ts.map +1 -0
  100. package/esm/src/jobs/direct.js +122 -0
  101. package/esm/src/jobs/events.d.ts +15 -0
  102. package/esm/src/jobs/events.d.ts.map +1 -0
  103. package/esm/src/jobs/events.js +30 -0
  104. package/esm/src/jobs/format.d.ts +16 -0
  105. package/esm/src/jobs/format.d.ts.map +1 -0
  106. package/esm/src/jobs/format.js +183 -0
  107. package/esm/src/jobs/http.d.ts +22 -0
  108. package/esm/src/jobs/http.d.ts.map +1 -0
  109. package/esm/src/jobs/http.js +44 -0
  110. package/esm/src/jobs/log.d.ts +2 -0
  111. package/esm/src/jobs/log.d.ts.map +1 -0
  112. package/esm/src/jobs/log.js +10 -0
  113. package/esm/src/jobs/mod.d.ts +10 -0
  114. package/esm/src/jobs/mod.d.ts.map +1 -0
  115. package/esm/src/jobs/mod.js +9 -0
  116. package/esm/src/jobs/run.d.ts +20 -0
  117. package/esm/src/jobs/run.d.ts.map +1 -0
  118. package/esm/src/jobs/run.js +57 -0
  119. package/esm/src/jobs/types.d.ts +31 -0
  120. package/esm/src/jobs/types.d.ts.map +1 -0
  121. package/esm/src/jobs/types.js +1 -0
  122. package/esm/src/mui/apiKeys.d.ts +65 -0
  123. package/esm/src/mui/apiKeys.d.ts.map +1 -0
  124. package/esm/src/mui/apiKeys.js +301 -0
  125. package/esm/src/mui/apiKeysView.d.ts +48 -0
  126. package/esm/src/mui/apiKeysView.d.ts.map +1 -0
  127. package/esm/src/mui/apiKeysView.js +34 -0
  128. package/esm/src/mui/confirm.d.ts +12 -0
  129. package/esm/src/mui/confirm.d.ts.map +1 -0
  130. package/esm/src/mui/confirm.js +78 -0
  131. package/esm/src/mui/mod.d.ts +4 -0
  132. package/esm/src/mui/mod.d.ts.map +1 -0
  133. package/esm/src/mui/mod.js +2 -0
  134. package/esm/src/next/apiKeys/mod.d.ts +64 -0
  135. package/esm/src/next/apiKeys/mod.d.ts.map +1 -0
  136. package/esm/src/next/apiKeys/mod.js +217 -0
  137. package/esm/src/next/auth/config.d.ts +34 -0
  138. package/esm/src/next/auth/config.d.ts.map +1 -0
  139. package/esm/src/next/auth/config.js +103 -0
  140. package/esm/src/next/auth/mod.d.ts +3 -0
  141. package/esm/src/next/auth/mod.d.ts.map +1 -0
  142. package/esm/src/next/auth/mod.js +2 -0
  143. package/esm/src/next/auth/server.d.ts +28 -0
  144. package/esm/src/next/auth/server.d.ts.map +1 -0
  145. package/esm/src/next/auth/server.js +24 -0
  146. package/esm/src/next/files/mod.d.ts +3 -0
  147. package/esm/src/next/files/mod.d.ts.map +1 -0
  148. package/esm/src/next/files/mod.js +2 -0
  149. package/esm/src/next/files/route.d.ts +99 -0
  150. package/esm/src/next/files/route.d.ts.map +1 -0
  151. package/esm/src/next/files/route.js +349 -0
  152. package/esm/src/next/jobs/list.d.ts +25 -0
  153. package/esm/src/next/jobs/list.d.ts.map +1 -0
  154. package/esm/src/next/jobs/list.js +39 -0
  155. package/esm/src/next/jobs/mod.d.ts +6 -0
  156. package/esm/src/next/jobs/mod.d.ts.map +1 -0
  157. package/esm/src/next/jobs/mod.js +5 -0
  158. package/esm/src/next/jobs/paths.d.ts +14 -0
  159. package/esm/src/next/jobs/paths.d.ts.map +1 -0
  160. package/esm/src/next/jobs/paths.js +40 -0
  161. package/esm/src/next/jobs/route.d.ts +48 -0
  162. package/esm/src/next/jobs/route.d.ts.map +1 -0
  163. package/esm/src/next/jobs/route.js +101 -0
  164. package/esm/src/next/jobs/run.d.ts +51 -0
  165. package/esm/src/next/jobs/run.d.ts.map +1 -0
  166. package/esm/src/next/jobs/run.js +563 -0
  167. package/esm/src/next/jobs/stream.d.ts +3 -0
  168. package/esm/src/next/jobs/stream.d.ts.map +1 -0
  169. package/esm/src/next/jobs/stream.js +25 -0
  170. package/esm/src/next/pwa/mod.d.ts +104 -0
  171. package/esm/src/next/pwa/mod.d.ts.map +1 -0
  172. package/esm/src/next/pwa/mod.js +169 -0
  173. package/esm/src/next/pwa/worker.d.ts +27 -0
  174. package/esm/src/next/pwa/worker.d.ts.map +1 -0
  175. package/esm/src/next/pwa/worker.js +27 -0
  176. package/package.json +293 -0
  177. package/script/_dnt.polyfills.d.ts +149 -0
  178. package/script/_dnt.polyfills.d.ts.map +1 -0
  179. package/script/_dnt.polyfills.js +166 -0
  180. package/script/_dnt.shims.d.ts +2 -0
  181. package/script/_dnt.shims.d.ts.map +1 -0
  182. package/script/_dnt.shims.js +60 -0
  183. package/script/bin/loom.d.ts +2 -0
  184. package/script/bin/loom.d.ts.map +1 -0
  185. package/script/bin/loom.js +17 -0
  186. package/script/mod.d.ts +9 -0
  187. package/script/mod.d.ts.map +1 -0
  188. package/script/mod.js +24 -0
  189. package/script/package.json +3 -0
  190. package/script/src/apiKeys/authorize.d.ts +4 -0
  191. package/script/src/apiKeys/authorize.d.ts.map +1 -0
  192. package/script/src/apiKeys/authorize.js +187 -0
  193. package/script/src/apiKeys/country.d.ts +3 -0
  194. package/script/src/apiKeys/country.d.ts.map +1 -0
  195. package/script/src/apiKeys/country.js +10 -0
  196. package/script/src/apiKeys/credentials.d.ts +4 -0
  197. package/script/src/apiKeys/credentials.d.ts.map +1 -0
  198. package/script/src/apiKeys/credentials.js +58 -0
  199. package/script/src/apiKeys/fingerprint.d.ts +3 -0
  200. package/script/src/apiKeys/fingerprint.d.ts.map +1 -0
  201. package/script/src/apiKeys/fingerprint.js +8 -0
  202. package/script/src/apiKeys/mod.d.ts +9 -0
  203. package/script/src/apiKeys/mod.d.ts.map +1 -0
  204. package/script/src/apiKeys/mod.js +24 -0
  205. package/script/src/apiKeys/policy.d.ts +59 -0
  206. package/script/src/apiKeys/policy.d.ts.map +1 -0
  207. package/script/src/apiKeys/policy.js +92 -0
  208. package/script/src/apiKeys/retention.d.ts +55 -0
  209. package/script/src/apiKeys/retention.d.ts.map +1 -0
  210. package/script/src/apiKeys/retention.js +70 -0
  211. package/script/src/apiKeys/types.d.ts +175 -0
  212. package/script/src/apiKeys/types.d.ts.map +1 -0
  213. package/script/src/apiKeys/types.js +2 -0
  214. package/script/src/cli/externalSkills.d.ts +39 -0
  215. package/script/src/cli/externalSkills.d.ts.map +1 -0
  216. package/script/src/cli/externalSkills.js +181 -0
  217. package/script/src/cli/mod.d.ts +337 -0
  218. package/script/src/cli/mod.d.ts.map +1 -0
  219. package/script/src/cli/mod.js +9337 -0
  220. package/script/src/cli/projectSkills.d.ts +102 -0
  221. package/script/src/cli/projectSkills.d.ts.map +1 -0
  222. package/script/src/cli/projectSkills.js +606 -0
  223. package/script/src/files/client.d.ts +29 -0
  224. package/script/src/files/client.d.ts.map +1 -0
  225. package/script/src/files/client.js +45 -0
  226. package/script/src/files/errors.d.ts +37 -0
  227. package/script/src/files/errors.d.ts.map +1 -0
  228. package/script/src/files/errors.js +76 -0
  229. package/script/src/files/hash.d.ts +15 -0
  230. package/script/src/files/hash.d.ts.map +1 -0
  231. package/script/src/files/hash.js +89 -0
  232. package/script/src/files/memory.d.ts +29 -0
  233. package/script/src/files/memory.d.ts.map +1 -0
  234. package/script/src/files/memory.js +113 -0
  235. package/script/src/files/metadata.d.ts +10 -0
  236. package/script/src/files/metadata.d.ts.map +1 -0
  237. package/script/src/files/metadata.js +189 -0
  238. package/script/src/files/mod.d.ts +10 -0
  239. package/script/src/files/mod.d.ts.map +1 -0
  240. package/script/src/files/mod.js +25 -0
  241. package/script/src/files/s3.d.ts +29 -0
  242. package/script/src/files/s3.d.ts.map +1 -0
  243. package/script/src/files/s3.js +110 -0
  244. package/script/src/files/service.d.ts +27 -0
  245. package/script/src/files/service.d.ts.map +1 -0
  246. package/script/src/files/service.js +139 -0
  247. package/script/src/files/types.d.ts +134 -0
  248. package/script/src/files/types.d.ts.map +1 -0
  249. package/script/src/files/types.js +2 -0
  250. package/script/src/jobs/catalog.d.ts +32 -0
  251. package/script/src/jobs/catalog.d.ts.map +1 -0
  252. package/script/src/jobs/catalog.js +223 -0
  253. package/script/src/jobs/controller.d.ts +28 -0
  254. package/script/src/jobs/controller.d.ts.map +1 -0
  255. package/script/src/jobs/controller.js +100 -0
  256. package/script/src/jobs/direct.d.ts +36 -0
  257. package/script/src/jobs/direct.d.ts.map +1 -0
  258. package/script/src/jobs/direct.js +128 -0
  259. package/script/src/jobs/events.d.ts +15 -0
  260. package/script/src/jobs/events.d.ts.map +1 -0
  261. package/script/src/jobs/events.js +37 -0
  262. package/script/src/jobs/format.d.ts +16 -0
  263. package/script/src/jobs/format.d.ts.map +1 -0
  264. package/script/src/jobs/format.js +193 -0
  265. package/script/src/jobs/http.d.ts +22 -0
  266. package/script/src/jobs/http.d.ts.map +1 -0
  267. package/script/src/jobs/http.js +50 -0
  268. package/script/src/jobs/log.d.ts +2 -0
  269. package/script/src/jobs/log.d.ts.map +1 -0
  270. package/script/src/jobs/log.js +13 -0
  271. package/script/src/jobs/mod.d.ts +10 -0
  272. package/script/src/jobs/mod.d.ts.map +1 -0
  273. package/script/src/jobs/mod.js +25 -0
  274. package/script/src/jobs/run.d.ts +20 -0
  275. package/script/src/jobs/run.d.ts.map +1 -0
  276. package/script/src/jobs/run.js +61 -0
  277. package/script/src/jobs/types.d.ts +31 -0
  278. package/script/src/jobs/types.d.ts.map +1 -0
  279. package/script/src/jobs/types.js +2 -0
  280. package/script/src/mui/apiKeys.d.ts +65 -0
  281. package/script/src/mui/apiKeys.d.ts.map +1 -0
  282. package/script/src/mui/apiKeys.js +327 -0
  283. package/script/src/mui/apiKeysView.d.ts +48 -0
  284. package/script/src/mui/apiKeysView.d.ts.map +1 -0
  285. package/script/src/mui/apiKeysView.js +40 -0
  286. package/script/src/mui/confirm.d.ts +12 -0
  287. package/script/src/mui/confirm.d.ts.map +1 -0
  288. package/script/src/mui/confirm.js +85 -0
  289. package/script/src/mui/mod.d.ts +4 -0
  290. package/script/src/mui/mod.d.ts.map +1 -0
  291. package/script/src/mui/mod.js +19 -0
  292. package/script/src/next/apiKeys/mod.d.ts +64 -0
  293. package/script/src/next/apiKeys/mod.d.ts.map +1 -0
  294. package/script/src/next/apiKeys/mod.js +224 -0
  295. package/script/src/next/auth/config.d.ts +34 -0
  296. package/script/src/next/auth/config.d.ts.map +1 -0
  297. package/script/src/next/auth/config.js +142 -0
  298. package/script/src/next/auth/mod.d.ts +3 -0
  299. package/script/src/next/auth/mod.d.ts.map +1 -0
  300. package/script/src/next/auth/mod.js +18 -0
  301. package/script/src/next/auth/server.d.ts +28 -0
  302. package/script/src/next/auth/server.d.ts.map +1 -0
  303. package/script/src/next/auth/server.js +27 -0
  304. package/script/src/next/files/mod.d.ts +3 -0
  305. package/script/src/next/files/mod.d.ts.map +1 -0
  306. package/script/src/next/files/mod.js +18 -0
  307. package/script/src/next/files/route.d.ts +99 -0
  308. package/script/src/next/files/route.d.ts.map +1 -0
  309. package/script/src/next/files/route.js +353 -0
  310. package/script/src/next/jobs/list.d.ts +25 -0
  311. package/script/src/next/jobs/list.d.ts.map +1 -0
  312. package/script/src/next/jobs/list.js +48 -0
  313. package/script/src/next/jobs/mod.d.ts +6 -0
  314. package/script/src/next/jobs/mod.d.ts.map +1 -0
  315. package/script/src/next/jobs/mod.js +21 -0
  316. package/script/src/next/jobs/paths.d.ts +14 -0
  317. package/script/src/next/jobs/paths.d.ts.map +1 -0
  318. package/script/src/next/jobs/paths.js +47 -0
  319. package/script/src/next/jobs/route.d.ts +48 -0
  320. package/script/src/next/jobs/route.d.ts.map +1 -0
  321. package/script/src/next/jobs/route.js +105 -0
  322. package/script/src/next/jobs/run.d.ts +51 -0
  323. package/script/src/next/jobs/run.d.ts.map +1 -0
  324. package/script/src/next/jobs/run.js +570 -0
  325. package/script/src/next/jobs/stream.d.ts +3 -0
  326. package/script/src/next/jobs/stream.d.ts.map +1 -0
  327. package/script/src/next/jobs/stream.js +28 -0
  328. package/script/src/next/pwa/mod.d.ts +104 -0
  329. package/script/src/next/pwa/mod.d.ts.map +1 -0
  330. package/script/src/next/pwa/mod.js +192 -0
  331. package/script/src/next/pwa/worker.d.ts +27 -0
  332. package/script/src/next/pwa/worker.d.ts.map +1 -0
  333. package/script/src/next/pwa/worker.js +33 -0
  334. package/skills/loom/SKILL.md +200 -0
  335. package/skills/loom-api-keys/SKILL.md +123 -0
  336. package/skills/loom-auth/SKILL.md +70 -0
  337. package/skills/loom-db/SKILL.md +94 -0
  338. package/skills/loom-db/references/db-stack.md +39 -0
  339. package/skills/loom-files/SKILL.md +97 -0
  340. package/skills/loom-jobs/SKILL.md +148 -0
  341. package/skills/upgrade-deps/SKILL.md +165 -0
  342. package/skills/upgrade-deps/agents/openai.yaml +4 -0
@@ -0,0 +1,25 @@
1
+ # Third-party skill catalog notices
2
+
3
+ Loom is licensed under Apache-2.0. Loom does not package or redistribute the
4
+ third-party agent skills listed below. Its catalog stores only source metadata,
5
+ reviewed immutable revisions, content hashes, and license evidence so consumer
6
+ projects can fetch selected skills directly from their upstream repositories.
7
+
8
+ Downloaded skill content remains subject to its upstream terms. The consumer's
9
+ `loom-skills.lock.json` records the exact adopted revision; the downloaded copy
10
+ lives in the gitignored `.loom/skills` cache.
11
+
12
+ | Skill | Source | Reviewed revision | Catalog license status |
13
+ | ----------------------------- | -------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------- |
14
+ | `ai-sdk` | `vercel/ai` | `0e1fd64424acd3a0629877f510329b9484dfd2ea` | Apache-2.0 verified from upstream `LICENSE` |
15
+ | `find-skills` | `vercel-labs/skills` | `777599e1159e401b11ce4c8a57c20f09a8f1596e` | MIT verified from upstream `LICENSE` |
16
+ | `frontend-design` | `anthropics/skills` | `fa0fa64bdc967915dc8399e803be67759e1e62b8` | Apache-2.0 verified from upstream `LICENSE` |
17
+ | `vercel-composition-patterns` | `vercel-labs/agent-skills` | `4559f18a20c1691c744b4395194290db6a0df5e9` | MIT verified from upstream `LICENSE` |
18
+ | `vercel-react-best-practices` | `vercel-labs/agent-skills` | `4559f18a20c1691c744b4395194290db6a0df5e9` | MIT verified from upstream `LICENSE` |
19
+ | `pnpm` | `antfu/skills` | `a74f281a27dadc02397bc1a174b0f2c97531b6ae` | MIT verified from upstream `LICENSE` |
20
+ | `vitest` | `antfu/skills` | `a74f281a27dadc02397bc1a174b0f2c97531b6ae` | MIT verified from upstream `LICENSE` |
21
+ | `better-auth-best-practices` | `better-auth/skills` | `17dfe3a1da1c3982de723098ba1015d67f35694c` | No clear upstream license found; Loom requires explicit consumer acceptance before download |
22
+
23
+ The former `next-best-practices` recommendation is no longer cataloged. Loom
24
+ uses the version-matched documentation supplied by Next.js, with the official
25
+ Next codemod as the fallback for older versions.
@@ -0,0 +1,20 @@
1
+ import type { defineConfig } from "drizzle-kit";
2
+
3
+ export interface CreateDrizzleConfigOptions {
4
+ /**
5
+ * Override the database URL variable. When omitted, Loom prefers
6
+ * `DATABASE_URL_UNPOOLED` for migrations and falls back to `DATABASE_URL`.
7
+ */
8
+ databaseUrlEnvVar?: string;
9
+ /**
10
+ * @deprecated Env files are no longer loaded inside Drizzle config helpers.
11
+ * Run Drizzle through `loom env --` or a package script that uses it.
12
+ */
13
+ envPath?: string;
14
+ outDir: string;
15
+ schemaDir: string;
16
+ }
17
+
18
+ export declare function createDrizzleConfig(
19
+ options: CreateDrizzleConfigOptions,
20
+ ): ReturnType<typeof defineConfig>;
@@ -0,0 +1,34 @@
1
+ import { defineConfig } from "drizzle-kit";
2
+ import process from "node:process";
3
+
4
+ export function createDrizzleConfig({
5
+ databaseUrlEnvVar,
6
+ outDir,
7
+ schemaDir,
8
+ }) {
9
+ const databaseUrlEnvVars = databaseUrlEnvVar
10
+ ? [databaseUrlEnvVar]
11
+ : ["DATABASE_URL_UNPOOLED", "DATABASE_URL"];
12
+ const resolvedDatabaseUrlEnvVar = databaseUrlEnvVars.find((envName) =>
13
+ process.env[envName]
14
+ );
15
+ const databaseUrl = resolvedDatabaseUrlEnvVar
16
+ ? process.env[resolvedDatabaseUrlEnvVar]
17
+ : undefined;
18
+ if (!databaseUrl) {
19
+ throw new Error(
20
+ `${
21
+ databaseUrlEnvVars.join(" or ")
22
+ } is not defined in environment variables. Run Drizzle through \`loom env --\` or a package script that uses the Loom env runner.`,
23
+ );
24
+ }
25
+
26
+ return defineConfig({
27
+ out: outDir,
28
+ schema: schemaDir,
29
+ dialect: "postgresql",
30
+ dbCredentials: {
31
+ url: databaseUrl,
32
+ },
33
+ });
34
+ }
@@ -0,0 +1,31 @@
1
+ export interface FixtureTableOptions {
2
+ extra?: Record<string, unknown>[];
3
+ filter?: (row: Record<string, unknown>) => boolean;
4
+ }
5
+
6
+ export type FixtureTablesToProcess<TTables extends Record<string, unknown>> =
7
+ Partial<Record<keyof TTables, boolean | FixtureTableOptions>>;
8
+
9
+ export interface DumpFixtureTablesOptions<
10
+ TDb,
11
+ TTables extends Record<string, unknown>,
12
+ > {
13
+ db: TDb;
14
+ emptyMessage?: string;
15
+ outputPath: string;
16
+ tables: TTables;
17
+ tablesToProcess: FixtureTablesToProcess<TTables>;
18
+ }
19
+
20
+ export declare function defineFixtureTables<
21
+ TTables extends Record<string, unknown>,
22
+ >(
23
+ tablesToProcess: FixtureTablesToProcess<TTables>,
24
+ ): FixtureTablesToProcess<TTables>;
25
+
26
+ export declare function dumpFixtureTables<
27
+ TDb,
28
+ TTables extends Record<string, unknown>,
29
+ >(
30
+ options: DumpFixtureTablesOptions<TDb, TTables>,
31
+ ): Promise<void>;
package/db/fixtures.js ADDED
@@ -0,0 +1,52 @@
1
+ import fs from "node:fs/promises";
2
+ import path from "node:path";
3
+ import superjson from "superjson";
4
+
5
+ export function defineFixtureTables(tablesToProcess) {
6
+ return tablesToProcess;
7
+ }
8
+
9
+ export async function dumpFixtureTables({
10
+ db,
11
+ emptyMessage =
12
+ "No DB fixture tables configured yet. Edit scripts/dump-test-tables.ts first.",
13
+ outputPath,
14
+ tables,
15
+ tablesToProcess,
16
+ }) {
17
+ if (!Object.keys(tablesToProcess).length) {
18
+ console.log(emptyMessage);
19
+ return;
20
+ }
21
+
22
+ const tableMap = { ...tables };
23
+
24
+ for (const [_tableName, shouldDump] of Object.entries(tablesToProcess)) {
25
+ if (shouldDump === false) {
26
+ continue;
27
+ }
28
+
29
+ const tableName = _tableName;
30
+ const table = tableMap[tableName];
31
+ if (!table) {
32
+ console.error(`Table ${tableName} not found in schema.`);
33
+ continue;
34
+ }
35
+
36
+ const filter = (typeof shouldDump === "object" && shouldDump.filter) ||
37
+ (() => true);
38
+ const extra = (typeof shouldDump === "object" && shouldDump.extra) || [];
39
+
40
+ try {
41
+ const filePath = path.join(outputPath, `${tableName}.json`);
42
+ const rows = (await db.select().from(table))
43
+ .filter(filter)
44
+ .concat(extra);
45
+ await fs.mkdir(path.dirname(filePath), { recursive: true });
46
+ await fs.writeFile(filePath, superjson.stringify(rows), "utf-8");
47
+ console.log(`Wrote ${rows.length} rows to ${filePath}`);
48
+ } catch (error) {
49
+ console.error(`Error dumping table ${tableName}:`, error);
50
+ }
51
+ }
52
+ }
package/db/neon.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { drizzle } from "drizzle-orm/neon-http";
2
+
3
+ export declare const db: ReturnType<typeof drizzle>;
package/db/neon.js ADDED
@@ -0,0 +1,20 @@
1
+ import "server-only";
2
+ import { neon, neonConfig } from "@neondatabase/serverless";
3
+ import { drizzle } from "drizzle-orm/neon-http";
4
+
5
+ const env = globalThis.process?.env ?? {};
6
+
7
+ neonConfig.fetchEndpoint = (host) => {
8
+ const [protocol, port] = host === "db.localtest.me"
9
+ ? ["http", 4444]
10
+ : ["https", 443];
11
+ return `${protocol}://${host}:${port}/sql`;
12
+ };
13
+
14
+ if (!env.DATABASE_URL) {
15
+ throw new Error("DATABASE_URL is not set");
16
+ }
17
+
18
+ const sql = neon(env.DATABASE_URL);
19
+
20
+ export const db = drizzle({ client: sql });
@@ -0,0 +1,12 @@
1
+ import type { drizzle } from "drizzle-orm/postgres-js";
2
+
3
+ declare global {
4
+ var __loomNeonFullSql:
5
+ | { end: (options?: { timeout?: number }) => Promise<void> }
6
+ | undefined;
7
+ var __apthuntNeonFullSql:
8
+ | { end: (options?: { timeout?: number }) => Promise<void> }
9
+ | undefined;
10
+ }
11
+
12
+ export declare const db: ReturnType<typeof drizzle>;
package/db/neonFull.js ADDED
@@ -0,0 +1,33 @@
1
+ import "server-only";
2
+ import { drizzle } from "drizzle-orm/postgres-js";
3
+ import postgres from "postgres";
4
+ import process from "node:process";
5
+
6
+ const databaseUrl = process.env.DATABASE_URL_DIRECT ??
7
+ process.env.DATABASE_URL ?? "";
8
+ if (!databaseUrl) {
9
+ throw new Error("DATABASE_URL is not set");
10
+ }
11
+
12
+ const parsedUrl = new URL(databaseUrl);
13
+ const isLocal = parsedUrl.hostname === "db.localtest.me" ||
14
+ parsedUrl.hostname === "localhost" ||
15
+ parsedUrl.hostname === "127.0.0.1";
16
+ const isPooler = parsedUrl.hostname.includes("pooler");
17
+ const ssl = isLocal ? false : "require";
18
+
19
+ if (isPooler && !process.env.DATABASE_URL_DIRECT) {
20
+ console.warn(
21
+ "[db] DATABASE_URL points at a pooler. Set DATABASE_URL_DIRECT for postgres-js direct connections.",
22
+ );
23
+ }
24
+
25
+ const sql = postgres(databaseUrl, {
26
+ ssl,
27
+ });
28
+
29
+ const globalStore = globalThis;
30
+ globalStore.__loomNeonFullSql = sql;
31
+ globalStore.__apthuntNeonFullSql = sql;
32
+
33
+ export const db = drizzle(sql);
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,26 @@
1
+ import type { PGlite } from "@electric-sql/pglite";
2
+ import type { drizzle } from "drizzle-orm/pglite";
3
+
4
+ export interface LoomTableLoader {
5
+ getTableData(table: string): Promise<unknown>;
6
+ load(tables: string[]): Promise<void>;
7
+ }
8
+
9
+ export interface CreateMemoryPgliteHarnessOptions<
10
+ TSchema extends Record<string, unknown>,
11
+ > {
12
+ fixtureDir?: string;
13
+ schema: TSchema;
14
+ }
15
+
16
+ export interface MemoryPgliteHarness {
17
+ client: PGlite;
18
+ db: ReturnType<typeof drizzle>;
19
+ tableLoader: LoomTableLoader;
20
+ }
21
+
22
+ export declare function createMemoryPgliteHarness<
23
+ TSchema extends Record<string, unknown>,
24
+ >(
25
+ options: CreateMemoryPgliteHarnessOptions<TSchema>,
26
+ ): Promise<MemoryPgliteHarness>;
package/db/testing.js ADDED
@@ -0,0 +1,76 @@
1
+ import fs from "node:fs/promises";
2
+ import { createRequire } from "node:module";
3
+ import { PGlite } from "@electric-sql/pglite";
4
+ import { drizzle } from "drizzle-orm/pglite";
5
+ import superjson from "superjson";
6
+
7
+ const require = createRequire(import.meta.url);
8
+ const { pushSchema } = require("drizzle-kit/api");
9
+
10
+ const UUID_V7_SQL = `
11
+ CREATE OR REPLACE FUNCTION uuid_generate_v7() RETURNS uuid AS $$
12
+ SELECT (
13
+ substr(timestamp_hex, 1, 8) || '-' ||
14
+ substr(timestamp_hex, 9, 4) || '-' ||
15
+ '7' || substr(random_hex, 1, 3) || '-' ||
16
+ to_hex(8 + floor(random() * 4)::integer) ||
17
+ substr(random_hex, 4, 3) || '-' ||
18
+ substr(random_hex, 7, 12)
19
+ )::uuid
20
+ FROM (
21
+ SELECT
22
+ lpad(to_hex(floor(extract(epoch FROM clock_timestamp()) * 1000)::bigint), 12, '0') AS timestamp_hex,
23
+ md5(random()::text || clock_timestamp()::text) AS random_hex
24
+ ) s;
25
+ $$ LANGUAGE SQL VOLATILE;
26
+ `;
27
+
28
+ class TableLoader {
29
+ constructor(db, schema, fixtureDir) {
30
+ this.db = db;
31
+ this.schema = schema;
32
+ this.fixtureDir = fixtureDir;
33
+ this.cache = new Map();
34
+ }
35
+
36
+ async load(tables) {
37
+ for (const table of tables) {
38
+ const data = await this.getTableData(table);
39
+ await this.db.insert(this.schema[table]).values(data);
40
+ }
41
+ }
42
+
43
+ async getTableData(table) {
44
+ const existing = this.cache.get(table);
45
+ if (existing) {
46
+ return existing;
47
+ }
48
+
49
+ const contents = await fs.readFile(
50
+ `${this.fixtureDir}/${table}.json`,
51
+ "utf-8",
52
+ );
53
+ const data = superjson.parse(contents);
54
+ this.cache.set(table, data);
55
+ return data;
56
+ }
57
+ }
58
+
59
+ export async function createMemoryPgliteHarness({
60
+ fixtureDir = "tests/fixtures/db",
61
+ schema,
62
+ }) {
63
+ const client = new PGlite();
64
+ const db = drizzle(client, { schema });
65
+
66
+ await client.exec(UUID_V7_SQL);
67
+
68
+ const { apply } = await pushSchema(schema, db);
69
+ await apply();
70
+
71
+ return {
72
+ client,
73
+ db,
74
+ tableLoader: new TableLoader(db, schema, fixtureDir),
75
+ };
76
+ }
@@ -0,0 +1,28 @@
1
+ import { expect } from "@std/expect";
2
+ import { describe, it } from "@std/testing/bdd";
3
+ import { PGlite } from "@electric-sql/pglite";
4
+
5
+ describe("PGlite UUIDv7 emulation", () => {
6
+ it("sets UUIDv7 version and RFC variant bits", async () => {
7
+ const source = await Deno.readTextFile(
8
+ new URL("./testing.js", import.meta.url),
9
+ );
10
+ const sql = source.match(/const UUID_V7_SQL = `([\s\S]*?)`;/)?.[1];
11
+ expect(sql).toBeDefined();
12
+
13
+ const client = new PGlite();
14
+ try {
15
+ await client.exec(sql!);
16
+ const result = await client.query<{ id: string }>(
17
+ "select uuid_generate_v7()::text as id from generate_series(1, 32)",
18
+ );
19
+ expect(new Set(result.rows.map(({ id }) => id)).size).toBe(32);
20
+ for (const { id } of result.rows) {
21
+ expect(id[14]).toBe("7");
22
+ expect("89ab").toContain(id[19]);
23
+ }
24
+ } finally {
25
+ await client.close();
26
+ }
27
+ });
28
+ });
@@ -0,0 +1,23 @@
1
+ import * as v from "valibot";
2
+
3
+ type LoomObjectSchema = v.ObjectSchema<
4
+ v.ObjectEntries,
5
+ v.ErrorMessage<v.ObjectIssue> | undefined
6
+ >;
7
+
8
+ type ObjectEntriesOf<TSchema extends LoomObjectSchema> = TSchema["entries"];
9
+
10
+ type MergeEntries<TBase, TExtra> = Omit<TBase, keyof TExtra> & TExtra;
11
+
12
+ type SchemaEntry = v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;
13
+
14
+ export declare function extend<
15
+ TSchema extends LoomObjectSchema,
16
+ const TAdditions extends v.ObjectEntries & Record<string, SchemaEntry>,
17
+ >(
18
+ schema: TSchema,
19
+ additions: TAdditions,
20
+ ): v.ObjectSchema<
21
+ MergeEntries<ObjectEntriesOf<TSchema>, TAdditions>,
22
+ undefined
23
+ >;
package/db/valibot.js ADDED
@@ -0,0 +1,8 @@
1
+ import * as v from "valibot";
2
+
3
+ export function extend(schema, additions) {
4
+ return v.object({
5
+ ...schema.entries,
6
+ ...additions,
7
+ });
8
+ }
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ import { createRequire } from "node:module";
14
+ import { type URL } from "node:url";
15
+ declare global {
16
+ interface ImportMeta {
17
+ /** A string representation of the fully qualified module URL. When the
18
+ * module is loaded locally, the value will be a file URL (e.g.
19
+ * `file:///path/module.ts`).
20
+ *
21
+ * You can also parse the string as a URL to determine more information about
22
+ * how the current module was loaded. For example to determine if a module was
23
+ * local or not:
24
+ *
25
+ * ```ts
26
+ * const url = new URL(import.meta.url);
27
+ * if (url.protocol === "file:") {
28
+ * console.log("this module was loaded locally");
29
+ * }
30
+ * ```
31
+ */
32
+ url: string;
33
+ /**
34
+ * A function that returns resolved specifier as if it would be imported
35
+ * using `import(specifier)`.
36
+ *
37
+ * ```ts
38
+ * console.log(import.meta.resolve("./foo.js"));
39
+ * // file:///dev/foo.js
40
+ * ```
41
+ *
42
+ * @param specifier The module specifier to resolve relative to `parent`.
43
+ * @param parent The absolute parent module URL to resolve from.
44
+ * @returns The absolute (`file:`) URL string for the resolved module.
45
+ */
46
+ resolve(specifier: string, parent?: string | URL | undefined): string;
47
+ /** A flag that indicates if the current module is the main module that was
48
+ * called when starting the program under Deno.
49
+ *
50
+ * ```ts
51
+ * if (import.meta.main) {
52
+ * // this was loaded as the main module, maybe do some bootstrapping
53
+ * }
54
+ * ```
55
+ */
56
+ main: boolean;
57
+ /** The absolute path of the current module.
58
+ *
59
+ * This property is only provided for local modules (ie. using `file://` URLs).
60
+ *
61
+ * Example:
62
+ * ```
63
+ * // Unix
64
+ * console.log(import.meta.filename); // /home/alice/my_module.ts
65
+ *
66
+ * // Windows
67
+ * console.log(import.meta.filename); // C:\alice\my_module.ts
68
+ * ```
69
+ */
70
+ filename: string;
71
+ /** The absolute path of the directory containing the current module.
72
+ *
73
+ * This property is only provided for local modules (ie. using `file://` URLs).
74
+ *
75
+ * * Example:
76
+ * ```
77
+ * // Unix
78
+ * console.log(import.meta.dirname); // /home/alice
79
+ *
80
+ * // Windows
81
+ * console.log(import.meta.dirname); // C:\alice
82
+ * ```
83
+ */
84
+ dirname: string;
85
+ }
86
+ }
87
+ type NodeRequest = ReturnType<typeof createRequire>;
88
+ type NodeModule = NonNullable<NodeRequest["main"]>;
89
+ interface ImportMetaPonyfillCommonjs {
90
+ (require: NodeRequest, module: NodeModule): ImportMeta;
91
+ }
92
+ interface ImportMetaPonyfillEsmodule {
93
+ (importMeta: ImportMeta): ImportMeta;
94
+ }
95
+ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyfillEsmodule {
96
+ }
97
+ export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
98
+ export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
99
+ export declare let import_meta_ponyfill: ImportMetaPonyfill;
100
+ declare global {
101
+ interface Array<T> {
102
+ /**
103
+ * Returns the value of the last element in the array where predicate is true, and undefined
104
+ * otherwise.
105
+ * @param predicate find calls predicate once for each element of the array, in ascending
106
+ * order, until it finds one where predicate returns true. If such an element is found, find
107
+ * immediately returns that element value. Otherwise, find returns undefined.
108
+ * @param thisArg If provided, it will be used as the this value for each invocation of
109
+ * predicate. If it is not provided, undefined is used instead.
110
+ */
111
+ findLast<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
112
+ findLast(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
113
+ /**
114
+ * Returns the index of the last element in the array where predicate is true, and -1
115
+ * otherwise.
116
+ * @param predicate find calls predicate once for each element of the array, in ascending
117
+ * order, until it finds one where predicate returns true. If such an element is found,
118
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
119
+ * @param thisArg If provided, it will be used as the this value for each invocation of
120
+ * predicate. If it is not provided, undefined is used instead.
121
+ */
122
+ findLastIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
123
+ }
124
+ interface Uint8Array {
125
+ /**
126
+ * Returns the value of the last element in the array where predicate is true, and undefined
127
+ * otherwise.
128
+ * @param predicate findLast calls predicate once for each element of the array, in descending
129
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
130
+ * immediately returns that element value. Otherwise, findLast returns undefined.
131
+ * @param thisArg If provided, it will be used as the this value for each invocation of
132
+ * predicate. If it is not provided, undefined is used instead.
133
+ */
134
+ findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
135
+ findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
136
+ /**
137
+ * Returns the index of the last element in the array where predicate is true, and -1
138
+ * otherwise.
139
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
140
+ * order, until it finds one where predicate returns true. If such an element is found,
141
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
142
+ * @param thisArg If provided, it will be used as the this value for each invocation of
143
+ * predicate. If it is not provided, undefined is used instead.
144
+ */
145
+ findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
146
+ }
147
+ }
148
+ export {};
149
+ //# sourceMappingURL=_dnt.polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"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"}