alchemy 0.12.3 → 0.12.4

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 (506) hide show
  1. package/lib/ai/astro-file.d.ts +4 -4
  2. package/lib/ai/astro-file.d.ts.map +1 -1
  3. package/lib/ai/astro-file.js +3 -3
  4. package/lib/ai/astro-file.js.map +1 -1
  5. package/lib/ai/client.d.ts +1 -1
  6. package/lib/ai/client.d.ts.map +1 -1
  7. package/lib/ai/css-file.d.ts +4 -4
  8. package/lib/ai/css-file.d.ts.map +1 -1
  9. package/lib/ai/css-file.js +3 -3
  10. package/lib/ai/css-file.js.map +1 -1
  11. package/lib/ai/data.d.ts +4 -4
  12. package/lib/ai/data.d.ts.map +1 -1
  13. package/lib/ai/data.js +3 -3
  14. package/lib/ai/data.js.map +1 -1
  15. package/lib/ai/document.d.ts +5 -5
  16. package/lib/ai/document.d.ts.map +1 -1
  17. package/lib/ai/document.js +3 -3
  18. package/lib/ai/document.js.map +1 -1
  19. package/lib/ai/html-file.d.ts +4 -4
  20. package/lib/ai/html-file.d.ts.map +1 -1
  21. package/lib/ai/html-file.js +3 -3
  22. package/lib/ai/html-file.js.map +1 -1
  23. package/lib/ai/index.d.ts +10 -10
  24. package/lib/ai/index.d.ts.map +1 -1
  25. package/lib/ai/index.js +10 -10
  26. package/lib/ai/index.js.map +1 -1
  27. package/lib/ai/json-file.d.ts +4 -4
  28. package/lib/ai/json-file.d.ts.map +1 -1
  29. package/lib/ai/json-file.js +4 -4
  30. package/lib/ai/json-file.js.map +1 -1
  31. package/lib/ai/typescript-file.d.ts +4 -4
  32. package/lib/ai/typescript-file.d.ts.map +1 -1
  33. package/lib/ai/typescript-file.js +3 -3
  34. package/lib/ai/typescript-file.js.map +1 -1
  35. package/lib/ai/vue-file.d.ts +4 -4
  36. package/lib/ai/vue-file.d.ts.map +1 -1
  37. package/lib/ai/vue-file.js +3 -3
  38. package/lib/ai/vue-file.js.map +1 -1
  39. package/lib/ai/yaml-file.d.ts +4 -4
  40. package/lib/ai/yaml-file.d.ts.map +1 -1
  41. package/lib/ai/yaml-file.js +4 -4
  42. package/lib/ai/yaml-file.js.map +1 -1
  43. package/lib/alchemy.d.ts +5 -5
  44. package/lib/alchemy.d.ts.map +1 -1
  45. package/lib/alchemy.js +4 -4
  46. package/lib/alchemy.js.map +1 -1
  47. package/lib/apply.d.ts +1 -1
  48. package/lib/apply.d.ts.map +1 -1
  49. package/lib/apply.js +4 -4
  50. package/lib/apply.js.map +1 -1
  51. package/lib/aws/bucket.d.ts +2 -2
  52. package/lib/aws/bucket.d.ts.map +1 -1
  53. package/lib/aws/bucket.js +2 -2
  54. package/lib/aws/bucket.js.map +1 -1
  55. package/lib/aws/credentials.d.ts +1 -1
  56. package/lib/aws/credentials.d.ts.map +1 -1
  57. package/lib/aws/function.d.ts +3 -3
  58. package/lib/aws/function.d.ts.map +1 -1
  59. package/lib/aws/function.js +2 -2
  60. package/lib/aws/function.js.map +1 -1
  61. package/lib/aws/index.d.ts +9 -9
  62. package/lib/aws/index.d.ts.map +1 -1
  63. package/lib/aws/index.js +9 -9
  64. package/lib/aws/index.js.map +1 -1
  65. package/lib/aws/oidc/github-oidc-provider.d.ts +1 -1
  66. package/lib/aws/oidc/github-oidc-provider.d.ts.map +1 -1
  67. package/lib/aws/oidc/github-oidc-provider.js +1 -1
  68. package/lib/aws/oidc/github-oidc-provider.js.map +1 -1
  69. package/lib/aws/oidc/index.d.ts +2 -2
  70. package/lib/aws/oidc/index.d.ts.map +1 -1
  71. package/lib/aws/oidc/index.js +2 -2
  72. package/lib/aws/oidc/index.js.map +1 -1
  73. package/lib/aws/oidc/oidc-provider.d.ts +2 -2
  74. package/lib/aws/oidc/oidc-provider.d.ts.map +1 -1
  75. package/lib/aws/oidc/oidc-provider.js +2 -2
  76. package/lib/aws/oidc/oidc-provider.js.map +1 -1
  77. package/lib/aws/policy-attachment.d.ts +2 -2
  78. package/lib/aws/policy-attachment.d.ts.map +1 -1
  79. package/lib/aws/policy-attachment.js +2 -2
  80. package/lib/aws/policy-attachment.js.map +1 -1
  81. package/lib/aws/policy.d.ts +2 -2
  82. package/lib/aws/policy.d.ts.map +1 -1
  83. package/lib/aws/policy.js +1 -1
  84. package/lib/aws/policy.js.map +1 -1
  85. package/lib/aws/queue.d.ts +2 -2
  86. package/lib/aws/queue.d.ts.map +1 -1
  87. package/lib/aws/queue.js +1 -1
  88. package/lib/aws/queue.js.map +1 -1
  89. package/lib/aws/role.d.ts +3 -3
  90. package/lib/aws/role.d.ts.map +1 -1
  91. package/lib/aws/role.js +2 -2
  92. package/lib/aws/role.js.map +1 -1
  93. package/lib/aws/ses.d.ts +2 -2
  94. package/lib/aws/ses.d.ts.map +1 -1
  95. package/lib/aws/ses.js +2 -2
  96. package/lib/aws/ses.js.map +1 -1
  97. package/lib/aws/table.d.ts +2 -2
  98. package/lib/aws/table.d.ts.map +1 -1
  99. package/lib/aws/table.js +3 -3
  100. package/lib/aws/table.js.map +1 -1
  101. package/lib/cloudflare/account-api-token.d.ts +4 -4
  102. package/lib/cloudflare/account-api-token.d.ts.map +1 -1
  103. package/lib/cloudflare/account-api-token.js +5 -5
  104. package/lib/cloudflare/account-api-token.js.map +1 -1
  105. package/lib/cloudflare/account-id.d.ts +1 -1
  106. package/lib/cloudflare/account-id.d.ts.map +1 -1
  107. package/lib/cloudflare/account-id.js +1 -1
  108. package/lib/cloudflare/account-id.js.map +1 -1
  109. package/lib/cloudflare/api.d.ts +1 -1
  110. package/lib/cloudflare/api.d.ts.map +1 -1
  111. package/lib/cloudflare/api.js +2 -2
  112. package/lib/cloudflare/api.js.map +1 -1
  113. package/lib/cloudflare/assets.d.ts +2 -2
  114. package/lib/cloudflare/assets.d.ts.map +1 -1
  115. package/lib/cloudflare/assets.js +2 -2
  116. package/lib/cloudflare/assets.js.map +1 -1
  117. package/lib/cloudflare/auth.d.ts +2 -2
  118. package/lib/cloudflare/auth.d.ts.map +1 -1
  119. package/lib/cloudflare/auth.js +2 -2
  120. package/lib/cloudflare/auth.js.map +1 -1
  121. package/lib/cloudflare/bindings.d.ts +11 -11
  122. package/lib/cloudflare/bindings.d.ts.map +1 -1
  123. package/lib/cloudflare/bound.d.ts +12 -12
  124. package/lib/cloudflare/bound.d.ts.map +1 -1
  125. package/lib/cloudflare/bucket.d.ts +4 -4
  126. package/lib/cloudflare/bucket.d.ts.map +1 -1
  127. package/lib/cloudflare/bucket.js +3 -3
  128. package/lib/cloudflare/bucket.js.map +1 -1
  129. package/lib/cloudflare/custom-domain.d.ts +3 -3
  130. package/lib/cloudflare/custom-domain.d.ts.map +1 -1
  131. package/lib/cloudflare/custom-domain.js +3 -3
  132. package/lib/cloudflare/custom-domain.js.map +1 -1
  133. package/lib/cloudflare/d1-database.d.ts +3 -3
  134. package/lib/cloudflare/d1-database.d.ts.map +1 -1
  135. package/lib/cloudflare/d1-database.js +4 -4
  136. package/lib/cloudflare/d1-database.js.map +1 -1
  137. package/lib/cloudflare/d1-migrations.d.ts +1 -1
  138. package/lib/cloudflare/d1-migrations.d.ts.map +1 -1
  139. package/lib/cloudflare/d1-migrations.js +3 -3
  140. package/lib/cloudflare/d1-migrations.js.map +1 -1
  141. package/lib/cloudflare/dns-records.d.ts +4 -4
  142. package/lib/cloudflare/dns-records.d.ts.map +1 -1
  143. package/lib/cloudflare/dns-records.js +2 -2
  144. package/lib/cloudflare/dns-records.js.map +1 -1
  145. package/lib/cloudflare/index.d.ts +27 -27
  146. package/lib/cloudflare/index.d.ts.map +1 -1
  147. package/lib/cloudflare/index.js +27 -27
  148. package/lib/cloudflare/index.js.map +1 -1
  149. package/lib/cloudflare/kv-namespace.d.ts +3 -3
  150. package/lib/cloudflare/kv-namespace.d.ts.map +1 -1
  151. package/lib/cloudflare/kv-namespace.js +4 -4
  152. package/lib/cloudflare/kv-namespace.js.map +1 -1
  153. package/lib/cloudflare/nuxt.d.ts +4 -4
  154. package/lib/cloudflare/nuxt.d.ts.map +1 -1
  155. package/lib/cloudflare/nuxt.js +1 -1
  156. package/lib/cloudflare/nuxt.js.map +1 -1
  157. package/lib/cloudflare/permission-groups.d.ts +3 -3
  158. package/lib/cloudflare/permission-groups.d.ts.map +1 -1
  159. package/lib/cloudflare/permission-groups.js +2 -2
  160. package/lib/cloudflare/permission-groups.js.map +1 -1
  161. package/lib/cloudflare/pipeline.d.ts +4 -4
  162. package/lib/cloudflare/pipeline.d.ts.map +1 -1
  163. package/lib/cloudflare/pipeline.js +3 -3
  164. package/lib/cloudflare/pipeline.js.map +1 -1
  165. package/lib/cloudflare/queue.d.ts +3 -3
  166. package/lib/cloudflare/queue.d.ts.map +1 -1
  167. package/lib/cloudflare/queue.js +3 -3
  168. package/lib/cloudflare/queue.js.map +1 -1
  169. package/lib/cloudflare/r2-rest-state-store.d.ts +3 -3
  170. package/lib/cloudflare/r2-rest-state-store.d.ts.map +1 -1
  171. package/lib/cloudflare/r2-rest-state-store.js +4 -4
  172. package/lib/cloudflare/r2-rest-state-store.js.map +1 -1
  173. package/lib/cloudflare/redwood.d.ts +4 -4
  174. package/lib/cloudflare/redwood.d.ts.map +1 -1
  175. package/lib/cloudflare/redwood.js +1 -1
  176. package/lib/cloudflare/redwood.js.map +1 -1
  177. package/lib/cloudflare/tanstack-start.d.ts +4 -4
  178. package/lib/cloudflare/tanstack-start.d.ts.map +1 -1
  179. package/lib/cloudflare/tanstack-start.js +1 -1
  180. package/lib/cloudflare/tanstack-start.js.map +1 -1
  181. package/lib/cloudflare/vectorize-index.d.ts +3 -3
  182. package/lib/cloudflare/vectorize-index.d.ts.map +1 -1
  183. package/lib/cloudflare/vectorize-index.js +3 -3
  184. package/lib/cloudflare/vectorize-index.js.map +1 -1
  185. package/lib/cloudflare/vectorize-metadata-index.d.ts +4 -4
  186. package/lib/cloudflare/vectorize-metadata-index.d.ts.map +1 -1
  187. package/lib/cloudflare/vectorize-metadata-index.js +4 -4
  188. package/lib/cloudflare/vectorize-metadata-index.js.map +1 -1
  189. package/lib/cloudflare/vite.d.ts +4 -4
  190. package/lib/cloudflare/vite.d.ts.map +1 -1
  191. package/lib/cloudflare/vite.js +1 -1
  192. package/lib/cloudflare/vite.js.map +1 -1
  193. package/lib/cloudflare/website.d.ts +3 -3
  194. package/lib/cloudflare/website.d.ts.map +1 -1
  195. package/lib/cloudflare/website.js +5 -5
  196. package/lib/cloudflare/website.js.map +1 -1
  197. package/lib/cloudflare/worker.d.ts +7 -7
  198. package/lib/cloudflare/worker.d.ts.map +1 -1
  199. package/lib/cloudflare/worker.js +10 -10
  200. package/lib/cloudflare/worker.js.map +1 -1
  201. package/lib/cloudflare/workflow.d.ts +1 -1
  202. package/lib/cloudflare/workflow.d.ts.map +1 -1
  203. package/lib/cloudflare/workflow.js +1 -1
  204. package/lib/cloudflare/workflow.js.map +1 -1
  205. package/lib/cloudflare/wrangler.json.d.ts +3 -3
  206. package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
  207. package/lib/cloudflare/wrangler.json.js +2 -2
  208. package/lib/cloudflare/wrangler.json.js.map +1 -1
  209. package/lib/cloudflare/zone.d.ts +4 -4
  210. package/lib/cloudflare/zone.d.ts.map +1 -1
  211. package/lib/cloudflare/zone.js +2 -2
  212. package/lib/cloudflare/zone.js.map +1 -1
  213. package/lib/context.d.ts +3 -3
  214. package/lib/context.d.ts.map +1 -1
  215. package/lib/context.js +1 -1
  216. package/lib/context.js.map +1 -1
  217. package/lib/destroy.d.ts +2 -2
  218. package/lib/destroy.d.ts.map +1 -1
  219. package/lib/destroy.js +4 -4
  220. package/lib/destroy.js.map +1 -1
  221. package/lib/dns/import-dns.d.ts +3 -3
  222. package/lib/dns/import-dns.d.ts.map +1 -1
  223. package/lib/dns/import-dns.js +2 -2
  224. package/lib/dns/import-dns.js.map +1 -1
  225. package/lib/dns/index.d.ts +2 -2
  226. package/lib/dns/index.d.ts.map +1 -1
  227. package/lib/dns/index.js +2 -2
  228. package/lib/dns/index.js.map +1 -1
  229. package/lib/esbuild/bundle.d.ts +2 -2
  230. package/lib/esbuild/bundle.d.ts.map +1 -1
  231. package/lib/esbuild/bundle.js +2 -2
  232. package/lib/esbuild/bundle.js.map +1 -1
  233. package/lib/esbuild/index.d.ts +1 -1
  234. package/lib/esbuild/index.d.ts.map +1 -1
  235. package/lib/esbuild/index.js +1 -1
  236. package/lib/esbuild/index.js.map +1 -1
  237. package/lib/fs/copy-file.d.ts +2 -2
  238. package/lib/fs/copy-file.d.ts.map +1 -1
  239. package/lib/fs/copy-file.js +2 -2
  240. package/lib/fs/copy-file.js.map +1 -1
  241. package/lib/fs/file-system-state-store.d.ts +2 -2
  242. package/lib/fs/file-system-state-store.d.ts.map +1 -1
  243. package/lib/fs/file-system-state-store.js +2 -2
  244. package/lib/fs/file-system-state-store.js.map +1 -1
  245. package/lib/fs/file.d.ts +4 -4
  246. package/lib/fs/file.d.ts.map +1 -1
  247. package/lib/fs/file.js +3 -3
  248. package/lib/fs/file.js.map +1 -1
  249. package/lib/fs/folder.d.ts +2 -2
  250. package/lib/fs/folder.d.ts.map +1 -1
  251. package/lib/fs/folder.js +2 -2
  252. package/lib/fs/folder.js.map +1 -1
  253. package/lib/fs/index.d.ts +14 -14
  254. package/lib/fs/index.d.ts.map +1 -1
  255. package/lib/fs/index.js +14 -14
  256. package/lib/fs/index.js.map +1 -1
  257. package/lib/fs/static-astro-file.d.ts +1 -1
  258. package/lib/fs/static-astro-file.d.ts.map +1 -1
  259. package/lib/fs/static-astro-file.js +1 -1
  260. package/lib/fs/static-astro-file.js.map +1 -1
  261. package/lib/fs/static-css-file.d.ts +1 -1
  262. package/lib/fs/static-css-file.d.ts.map +1 -1
  263. package/lib/fs/static-css-file.js +1 -1
  264. package/lib/fs/static-css-file.js.map +1 -1
  265. package/lib/fs/static-html-file.d.ts +1 -1
  266. package/lib/fs/static-html-file.d.ts.map +1 -1
  267. package/lib/fs/static-html-file.js +1 -1
  268. package/lib/fs/static-html-file.js.map +1 -1
  269. package/lib/fs/static-json-file.d.ts +1 -1
  270. package/lib/fs/static-json-file.d.ts.map +1 -1
  271. package/lib/fs/static-json-file.js +1 -1
  272. package/lib/fs/static-json-file.js.map +1 -1
  273. package/lib/fs/static-text-file.d.ts +1 -1
  274. package/lib/fs/static-text-file.d.ts.map +1 -1
  275. package/lib/fs/static-text-file.js +1 -1
  276. package/lib/fs/static-text-file.js.map +1 -1
  277. package/lib/fs/static-typescript-file.d.ts +1 -1
  278. package/lib/fs/static-typescript-file.d.ts.map +1 -1
  279. package/lib/fs/static-typescript-file.js +1 -1
  280. package/lib/fs/static-typescript-file.js.map +1 -1
  281. package/lib/fs/static-vue-file.d.ts +1 -1
  282. package/lib/fs/static-vue-file.d.ts.map +1 -1
  283. package/lib/fs/static-vue-file.js +1 -1
  284. package/lib/fs/static-vue-file.js.map +1 -1
  285. package/lib/fs/static-yaml-file.d.ts +1 -1
  286. package/lib/fs/static-yaml-file.d.ts.map +1 -1
  287. package/lib/fs/static-yaml-file.js +1 -1
  288. package/lib/fs/static-yaml-file.js.map +1 -1
  289. package/lib/github/client.js +2 -2
  290. package/lib/github/client.js.map +1 -1
  291. package/lib/github/index.d.ts +2 -2
  292. package/lib/github/index.d.ts.map +1 -1
  293. package/lib/github/index.js +2 -2
  294. package/lib/github/index.js.map +1 -1
  295. package/lib/github/repository-environment.d.ts +2 -2
  296. package/lib/github/repository-environment.d.ts.map +1 -1
  297. package/lib/github/repository-environment.js +2 -2
  298. package/lib/github/repository-environment.js.map +1 -1
  299. package/lib/github/secret.d.ts +3 -3
  300. package/lib/github/secret.d.ts.map +1 -1
  301. package/lib/github/secret.js +2 -2
  302. package/lib/github/secret.js.map +1 -1
  303. package/lib/index.d.ts +7 -7
  304. package/lib/index.d.ts.map +1 -1
  305. package/lib/index.js +5 -5
  306. package/lib/index.js.map +1 -1
  307. package/lib/internal/docs/providers.d.ts +2 -2
  308. package/lib/internal/docs/providers.d.ts.map +1 -1
  309. package/lib/internal/docs/providers.js +4 -4
  310. package/lib/internal/docs/providers.js.map +1 -1
  311. package/lib/os/exec.d.ts +2 -2
  312. package/lib/os/exec.d.ts.map +1 -1
  313. package/lib/os/exec.js +3 -3
  314. package/lib/os/exec.js.map +1 -1
  315. package/lib/os/index.d.ts +1 -1
  316. package/lib/os/index.d.ts.map +1 -1
  317. package/lib/os/index.js +1 -1
  318. package/lib/os/index.js.map +1 -1
  319. package/lib/resource.d.ts +2 -2
  320. package/lib/resource.d.ts.map +1 -1
  321. package/lib/resource.js +2 -2
  322. package/lib/resource.js.map +1 -1
  323. package/lib/scope.d.ts +2 -2
  324. package/lib/scope.d.ts.map +1 -1
  325. package/lib/scope.js +2 -2
  326. package/lib/scope.js.map +1 -1
  327. package/lib/secret.js +1 -1
  328. package/lib/secret.js.map +1 -1
  329. package/lib/serde.d.ts +1 -1
  330. package/lib/serde.d.ts.map +1 -1
  331. package/lib/serde.js +3 -3
  332. package/lib/serde.js.map +1 -1
  333. package/lib/state.d.ts +2 -2
  334. package/lib/state.d.ts.map +1 -1
  335. package/lib/stripe/index.d.ts +3 -3
  336. package/lib/stripe/index.d.ts.map +1 -1
  337. package/lib/stripe/index.js +3 -3
  338. package/lib/stripe/index.js.map +1 -1
  339. package/lib/stripe/price.d.ts +2 -2
  340. package/lib/stripe/price.d.ts.map +1 -1
  341. package/lib/stripe/price.js +1 -1
  342. package/lib/stripe/price.js.map +1 -1
  343. package/lib/stripe/product.d.ts +2 -2
  344. package/lib/stripe/product.d.ts.map +1 -1
  345. package/lib/stripe/product.js +1 -1
  346. package/lib/stripe/product.js.map +1 -1
  347. package/lib/stripe/webhook.d.ts +2 -2
  348. package/lib/stripe/webhook.d.ts.map +1 -1
  349. package/lib/stripe/webhook.js +1 -1
  350. package/lib/stripe/webhook.js.map +1 -1
  351. package/lib/test/bun.d.ts +2 -2
  352. package/lib/test/bun.d.ts.map +1 -1
  353. package/lib/test/bun.js +3 -3
  354. package/lib/test/bun.js.map +1 -1
  355. package/lib/test/prune.d.ts.map +1 -1
  356. package/lib/test/prune.js +2 -3
  357. package/lib/test/prune.js.map +1 -1
  358. package/lib/web/astro.d.ts +2 -2
  359. package/lib/web/astro.d.ts.map +1 -1
  360. package/lib/web/astro.js +8 -8
  361. package/lib/web/astro.js.map +1 -1
  362. package/lib/web/shadcn-component.d.ts +2 -2
  363. package/lib/web/shadcn-component.d.ts.map +1 -1
  364. package/lib/web/shadcn-component.js +4 -4
  365. package/lib/web/shadcn-component.js.map +1 -1
  366. package/lib/web/shadcn.d.ts +3 -3
  367. package/lib/web/shadcn.d.ts.map +1 -1
  368. package/lib/web/shadcn.js +6 -6
  369. package/lib/web/shadcn.js.map +1 -1
  370. package/lib/web/tailwind.d.ts +2 -2
  371. package/lib/web/tailwind.d.ts.map +1 -1
  372. package/lib/web/tailwind.js +5 -5
  373. package/lib/web/tailwind.js.map +1 -1
  374. package/lib/web/vite.d.ts +2 -2
  375. package/lib/web/vite.d.ts.map +1 -1
  376. package/lib/web/vite.js +9 -9
  377. package/lib/web/vite.js.map +1 -1
  378. package/lib/web/vitepress/config.d.ts +1 -1
  379. package/lib/web/vitepress/config.d.ts.map +1 -1
  380. package/lib/web/vitepress/config.js +1 -1
  381. package/lib/web/vitepress/config.js.map +1 -1
  382. package/lib/web/vitepress/custom-theme.d.ts +4 -4
  383. package/lib/web/vitepress/custom-theme.d.ts.map +1 -1
  384. package/lib/web/vitepress/custom-theme.js +7 -7
  385. package/lib/web/vitepress/custom-theme.js.map +1 -1
  386. package/lib/web/vitepress/dependencies.d.ts +2 -2
  387. package/lib/web/vitepress/dependencies.d.ts.map +1 -1
  388. package/lib/web/vitepress/dependencies.js +3 -3
  389. package/lib/web/vitepress/dependencies.js.map +1 -1
  390. package/lib/web/vitepress/home-page.d.ts +3 -3
  391. package/lib/web/vitepress/home-page.d.ts.map +1 -1
  392. package/lib/web/vitepress/home-page.js +3 -3
  393. package/lib/web/vitepress/home-page.js.map +1 -1
  394. package/lib/web/vitepress/index.d.ts +5 -5
  395. package/lib/web/vitepress/index.d.ts.map +1 -1
  396. package/lib/web/vitepress/index.js +5 -5
  397. package/lib/web/vitepress/index.js.map +1 -1
  398. package/lib/web/vitepress/vitepress.d.ts +2 -2
  399. package/lib/web/vitepress/vitepress.d.ts.map +1 -1
  400. package/lib/web/vitepress/vitepress.js +7 -7
  401. package/lib/web/vitepress/vitepress.js.map +1 -1
  402. package/package.json +1 -1
  403. package/src/ai/astro-file.ts +5 -5
  404. package/src/ai/client.ts +1 -1
  405. package/src/ai/css-file.ts +5 -5
  406. package/src/ai/data.ts +5 -5
  407. package/src/ai/document.ts +5 -5
  408. package/src/ai/html-file.ts +5 -5
  409. package/src/ai/index.ts +10 -10
  410. package/src/ai/json-file.ts +6 -6
  411. package/src/ai/typescript-file.ts +5 -5
  412. package/src/ai/vue-file.ts +5 -5
  413. package/src/ai/yaml-file.ts +6 -6
  414. package/src/alchemy.ts +6 -6
  415. package/src/apply.ts +5 -5
  416. package/src/aws/bucket.ts +13 -13
  417. package/src/aws/credentials.ts +1 -1
  418. package/src/aws/function.ts +4 -4
  419. package/src/aws/index.ts +9 -9
  420. package/src/aws/oidc/github-oidc-provider.ts +2 -2
  421. package/src/aws/oidc/index.ts +2 -2
  422. package/src/aws/oidc/oidc-provider.ts +3 -3
  423. package/src/aws/policy-attachment.ts +8 -8
  424. package/src/aws/policy.ts +16 -16
  425. package/src/aws/queue.ts +14 -14
  426. package/src/aws/role.ts +4 -4
  427. package/src/aws/ses.ts +20 -20
  428. package/src/aws/table.ts +4 -4
  429. package/src/cloudflare/account-api-token.ts +6 -6
  430. package/src/cloudflare/account-id.ts +1 -1
  431. package/src/cloudflare/api.ts +3 -3
  432. package/src/cloudflare/assets.ts +3 -3
  433. package/src/cloudflare/auth.ts +8 -8
  434. package/src/cloudflare/bindings.ts +11 -11
  435. package/src/cloudflare/bound.ts +12 -12
  436. package/src/cloudflare/bucket.ts +5 -5
  437. package/src/cloudflare/custom-domain.ts +4 -4
  438. package/src/cloudflare/d1-database.ts +5 -5
  439. package/src/cloudflare/d1-migrations.ts +3 -3
  440. package/src/cloudflare/dns-records.ts +5 -5
  441. package/src/cloudflare/index.ts +27 -27
  442. package/src/cloudflare/kv-namespace.ts +5 -5
  443. package/src/cloudflare/nuxt.ts +4 -4
  444. package/src/cloudflare/permission-groups.ts +3 -3
  445. package/src/cloudflare/pipeline.ts +5 -5
  446. package/src/cloudflare/queue.ts +4 -4
  447. package/src/cloudflare/r2-rest-state-store.ts +6 -6
  448. package/src/cloudflare/redwood.ts +4 -4
  449. package/src/cloudflare/tanstack-start.ts +4 -4
  450. package/src/cloudflare/vectorize-index.ts +5 -5
  451. package/src/cloudflare/vectorize-metadata-index.ts +6 -6
  452. package/src/cloudflare/vite.ts +4 -4
  453. package/src/cloudflare/website.ts +6 -6
  454. package/src/cloudflare/worker.ts +14 -14
  455. package/src/cloudflare/workflow.ts +2 -2
  456. package/src/cloudflare/wrangler.json.ts +6 -6
  457. package/src/cloudflare/zone.ts +4 -4
  458. package/src/context.ts +4 -4
  459. package/src/destroy.ts +4 -4
  460. package/src/dns/import-dns.ts +3 -3
  461. package/src/dns/index.ts +2 -2
  462. package/src/esbuild/bundle.ts +3 -3
  463. package/src/esbuild/index.ts +1 -1
  464. package/src/fs/copy-file.ts +3 -3
  465. package/src/fs/file-system-state-store.ts +4 -4
  466. package/src/fs/file.ts +6 -6
  467. package/src/fs/folder.ts +7 -7
  468. package/src/fs/index.ts +14 -14
  469. package/src/fs/static-astro-file.ts +1 -1
  470. package/src/fs/static-css-file.ts +1 -1
  471. package/src/fs/static-html-file.ts +1 -1
  472. package/src/fs/static-json-file.ts +1 -1
  473. package/src/fs/static-text-file.ts +2 -4
  474. package/src/fs/static-typescript-file.ts +1 -1
  475. package/src/fs/static-vue-file.ts +1 -1
  476. package/src/fs/static-yaml-file.ts +1 -1
  477. package/src/github/client.ts +12 -12
  478. package/src/github/index.ts +2 -2
  479. package/src/github/repository-environment.ts +3 -3
  480. package/src/github/secret.ts +4 -4
  481. package/src/index.ts +7 -7
  482. package/src/internal/docs/providers.ts +4 -4
  483. package/src/os/exec.ts +4 -4
  484. package/src/os/index.ts +1 -1
  485. package/src/resource.ts +6 -6
  486. package/src/scope.ts +4 -4
  487. package/src/secret.ts +1 -1
  488. package/src/serde.ts +3 -3
  489. package/src/state.ts +2 -2
  490. package/src/stripe/index.ts +3 -3
  491. package/src/stripe/price.ts +4 -4
  492. package/src/stripe/product.ts +4 -4
  493. package/src/stripe/webhook.ts +5 -5
  494. package/src/test/bun.ts +4 -4
  495. package/src/test/prune.ts +2 -3
  496. package/src/web/astro.ts +9 -9
  497. package/src/web/shadcn-component.ts +5 -5
  498. package/src/web/shadcn.ts +7 -7
  499. package/src/web/tailwind.ts +6 -6
  500. package/src/web/vite.ts +10 -10
  501. package/src/web/vitepress/config.ts +1 -1
  502. package/src/web/vitepress/custom-theme.ts +10 -10
  503. package/src/web/vitepress/dependencies.ts +8 -8
  504. package/src/web/vitepress/home-page.ts +4 -4
  505. package/src/web/vitepress/index.ts +5 -5
  506. package/src/web/vitepress/vitepress.ts +8 -8
@@ -1,11 +1,11 @@
1
- import type { Context } from "../context";
2
- import { Resource } from "../resource";
1
+ import type { Context } from "../context.js";
2
+ import { Resource } from "../resource.js";
3
+ import { CloudflareApiError, handleApiError } from "./api-error.js";
3
4
  import {
4
5
  CloudflareApi,
5
6
  createCloudflareApi,
6
7
  type CloudflareApiOptions,
7
- } from "./api";
8
- import { CloudflareApiError, handleApiError } from "./api-error";
8
+ } from "./api.js";
9
9
 
10
10
  /**
11
11
  * Settings for a Cloudflare Queue
@@ -1,13 +1,13 @@
1
- import type { Scope } from "../scope";
2
- import { deserialize, serialize } from "../serde";
3
- import type { State, StateStore } from "../state";
4
- import { withExponentialBackoff } from "../util/retry";
1
+ import type { Scope } from "../scope.js";
2
+ import { deserialize, serialize } from "../serde.js";
3
+ import type { State, StateStore } from "../state.js";
4
+ import { withExponentialBackoff } from "../util/retry.js";
5
+ import { CloudflareApiError, handleApiError } from "./api-error.js";
5
6
  import {
6
7
  type CloudflareApi,
7
8
  type CloudflareApiOptions,
8
9
  createCloudflareApi,
9
- } from "./api";
10
- import { CloudflareApiError, handleApiError } from "./api-error";
10
+ } from "./api.js";
11
11
 
12
12
  /**
13
13
  * Options for CloudflareR2StateStore
@@ -1,8 +1,8 @@
1
1
  import path from "node:path";
2
- import type { Assets } from "./assets";
3
- import type { Bindings } from "./bindings";
4
- import { Website, type WebsiteProps } from "./website";
5
- import type { Worker } from "./worker";
2
+ import type { Assets } from "./assets.js";
3
+ import type { Bindings } from "./bindings.js";
4
+ import { Website, type WebsiteProps } from "./website.js";
5
+ import type { Worker } from "./worker.js";
6
6
 
7
7
  export interface RedwoodProps<B extends Bindings> extends WebsiteProps<B> {}
8
8
 
@@ -1,7 +1,7 @@
1
- import type { Assets } from "./assets";
2
- import type { Bindings } from "./bindings";
3
- import { Website, type WebsiteProps } from "./website";
4
- import type { Worker } from "./worker";
1
+ import type { Assets } from "./assets.js";
2
+ import type { Bindings } from "./bindings.js";
3
+ import { Website, type WebsiteProps } from "./website.js";
4
+ import type { Worker } from "./worker.js";
5
5
 
6
6
  export interface TanStackStartProps<B extends Bindings>
7
7
  extends WebsiteProps<B> {}
@@ -1,11 +1,11 @@
1
- import type { Context } from "../context";
2
- import { Resource } from "../resource";
1
+ import type { Context } from "../context.js";
2
+ import { Resource } from "../resource.js";
3
+ import { CloudflareApiError, handleApiError } from "./api-error.js";
3
4
  import {
4
- CloudflareApi,
5
5
  createCloudflareApi,
6
+ type CloudflareApi,
6
7
  type CloudflareApiOptions,
7
- } from "./api";
8
- import { CloudflareApiError, handleApiError } from "./api-error";
8
+ } from "./api.js";
9
9
 
10
10
  /**
11
11
  * Properties for creating or updating a Vectorize Index
@@ -1,12 +1,12 @@
1
- import type { Context } from "../context";
2
- import { Resource } from "../resource";
1
+ import type { Context } from "../context.js";
2
+ import { Resource } from "../resource.js";
3
+ import { CloudflareApiError, handleApiError } from "./api-error.js";
3
4
  import {
4
- CloudflareApi,
5
5
  createCloudflareApi,
6
+ type CloudflareApi,
6
7
  type CloudflareApiOptions,
7
- } from "./api";
8
- import { CloudflareApiError, handleApiError } from "./api-error";
9
- import { VectorizeIndex } from "./vectorize-index";
8
+ } from "./api.js";
9
+ import { VectorizeIndex } from "./vectorize-index.js";
10
10
 
11
11
  /**
12
12
  * Properties for creating or deleting a Vectorize Metadata Index
@@ -1,9 +1,9 @@
1
1
  import fs from "node:fs/promises";
2
2
  import path from "node:path";
3
- import type { Assets } from "./assets";
4
- import type { Bindings } from "./bindings";
5
- import { Website, type WebsiteProps } from "./website";
6
- import type { Worker } from "./worker";
3
+ import type { Assets } from "./assets.js";
4
+ import type { Bindings } from "./bindings.js";
5
+ import { Website, type WebsiteProps } from "./website.js";
6
+ import type { Worker } from "./worker.js";
7
7
 
8
8
  export interface ViteProps<B extends Bindings> extends WebsiteProps<B> {}
9
9
 
@@ -1,11 +1,11 @@
1
1
  import fs from "node:fs/promises";
2
2
  import path from "node:path";
3
- import { alchemy } from "../alchemy";
4
- import { Exec } from "../os";
5
- import { Assets } from "./assets";
6
- import type { Bindings } from "./bindings";
7
- import { Worker, type AssetsConfig, type WorkerProps } from "./worker";
8
- import { WranglerJson } from "./wrangler.json";
3
+ import { alchemy } from "../alchemy.js";
4
+ import { Exec } from "../os/exec.js";
5
+ import { Assets } from "./assets.js";
6
+ import type { Bindings } from "./bindings.js";
7
+ import { Worker, type AssetsConfig, type WorkerProps } from "./worker.js";
8
+ import { WranglerJson } from "./wrangler.json.js";
9
9
 
10
10
  export interface WebsiteProps<B extends Bindings>
11
11
  extends Omit<WorkerProps<B>, "name" | "assets" | "entrypoint"> {
@@ -1,23 +1,23 @@
1
1
  import * as crypto from "node:crypto";
2
2
  import * as fs from "node:fs/promises";
3
- import type { Context } from "../context";
4
- import { Bundle, type BundleProps } from "../esbuild/bundle";
5
- import { Resource } from "../resource";
6
- import { getContentType } from "../util/content-type";
7
- import { withExponentialBackoff } from "../util/retry";
8
- import { slugify } from "../util/slugify";
3
+ import type { Context } from "../context.js";
4
+ import { Bundle, type BundleProps } from "../esbuild/bundle.js";
5
+ import { Resource } from "../resource.js";
6
+ import { getContentType } from "../util/content-type.js";
7
+ import { withExponentialBackoff } from "../util/retry.js";
8
+ import { slugify } from "../util/slugify.js";
9
9
  import {
10
10
  createCloudflareApi,
11
11
  type CloudflareApi,
12
12
  type CloudflareApiOptions,
13
- } from "./api";
14
- import { type Assets } from "./assets";
15
- import { type Bindings, type WorkerBindingSpec } from "./bindings";
16
- import type { Bound } from "./bound";
17
- import { type DurableObjectNamespace } from "./durable-object-namespace";
18
- import type { WorkerScriptMetadata } from "./worker-metadata";
19
- import type { SingleStepMigration } from "./worker-migration";
20
- import { upsertWorkflow, type Workflow } from "./workflow";
13
+ } from "./api.js";
14
+ import { type Assets } from "./assets.js";
15
+ import { type Bindings, type WorkerBindingSpec } from "./bindings.js";
16
+ import type { Bound } from "./bound.js";
17
+ import { type DurableObjectNamespace } from "./durable-object-namespace.js";
18
+ import type { WorkerScriptMetadata } from "./worker-metadata.js";
19
+ import type { SingleStepMigration } from "./worker-migration.js";
20
+ import { upsertWorkflow, type Workflow } from "./workflow.js";
21
21
 
22
22
  /**
23
23
  * Configuration options for static assets
@@ -1,5 +1,5 @@
1
- import type { CloudflareApi } from "./api";
2
- import { handleApiError } from "./api-error";
1
+ import { handleApiError } from "./api-error.js";
2
+ import type { CloudflareApi } from "./api.js";
3
3
 
4
4
  export interface WorkflowProps {
5
5
  /**
@@ -1,9 +1,9 @@
1
- import type { Context } from "../context";
2
- import { StaticJsonFile } from "../fs/static-json-file";
3
- import { Resource } from "../resource";
4
- import type { Bindings } from "./bindings";
5
- import type { DurableObjectNamespace } from "./durable-object-namespace";
6
- import type { Worker } from "./worker";
1
+ import type { Context } from "../context.js";
2
+ import { StaticJsonFile } from "../fs/static-json-file.js";
3
+ import { Resource } from "../resource.js";
4
+ import type { Bindings } from "./bindings.js";
5
+ import type { DurableObjectNamespace } from "./durable-object-namespace.js";
6
+ import type { Worker } from "./worker.js";
7
7
 
8
8
  /**
9
9
  * Properties for wrangler.json configuration file
@@ -1,6 +1,6 @@
1
- import type { Context } from "../context";
2
- import { Resource } from "../resource";
3
- import { createCloudflareApi, type CloudflareApiOptions } from "./api";
1
+ import type { Context } from "../context.js";
2
+ import { Resource } from "../resource.js";
3
+ import { createCloudflareApi, type CloudflareApiOptions } from "./api.js";
4
4
  import type {
5
5
  AlwaysUseHTTPSValue,
6
6
  AutomaticHTTPSRewritesValue,
@@ -19,7 +19,7 @@ import type {
19
19
  UpdateZoneSettingParams,
20
20
  WebSocketsValue,
21
21
  ZeroRTTValue,
22
- } from "./zone-settings";
22
+ } from "./zone-settings.js";
23
23
 
24
24
  /**
25
25
  * Properties for creating or updating a Zone
package/src/context.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { DestroyedSignal } from "./destroy";
1
+ import { DestroyedSignal } from "./destroy.js";
2
2
  import type {
3
3
  Resource,
4
4
  ResourceFQN,
5
5
  ResourceID,
6
6
  ResourceKind,
7
7
  ResourceProps,
8
- } from "./resource";
9
- import type { Scope } from "./scope";
10
- import type { State } from "./state";
8
+ } from "./resource.js";
9
+ import type { Scope } from "./scope.js";
10
+ import type { State } from "./state.js";
11
11
 
12
12
  export type Context<
13
13
  Out extends Resource,
package/src/destroy.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { alchemy } from "./alchemy";
2
- import { context } from "./context";
3
- import { PROVIDERS, type Provider, type Resource } from "./resource";
4
- import { Scope } from "./scope";
1
+ import { alchemy } from "./alchemy.js";
2
+ import { context } from "./context.js";
3
+ import { PROVIDERS, type Provider, type Resource } from "./resource.js";
4
+ import { Scope } from "./scope.js";
5
5
 
6
6
  export class DestroyedSignal extends Error {}
7
7
 
@@ -1,6 +1,6 @@
1
- import type { Context } from "../context";
2
- import { Resource } from "../resource";
3
- import { DEFAULT_RECORD_TYPES, type DnsRecordType } from "./record";
1
+ import type { Context } from "../context.js";
2
+ import { Resource } from "../resource.js";
3
+ import { DEFAULT_RECORD_TYPES, type DnsRecordType } from "./record.js";
4
4
 
5
5
  /**
6
6
  * DNS record response structure from Cloudflare DNS API
package/src/dns/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./import-dns";
2
- export * from "./record";
1
+ export * from "./import-dns.js";
2
+ export * from "./record.js";
@@ -2,8 +2,8 @@ import esbuild from "esbuild";
2
2
  import crypto from "node:crypto";
3
3
  import fs from "node:fs/promises";
4
4
  import path from "node:path";
5
- import type { Context } from "../context";
6
- import { Resource } from "../resource";
5
+ import type { Context } from "../context.js";
6
+ import { Resource } from "../resource.js";
7
7
 
8
8
  /**
9
9
  * Properties for creating or updating an esbuild bundle
@@ -201,7 +201,7 @@ export async function bundle(props: BundleProps) {
201
201
  minify: props.minify,
202
202
  sourcemap: props.sourcemap,
203
203
  external: [
204
- "node:async_hooks",
204
+ "node:*",
205
205
  ...(props.external ?? []),
206
206
  ...(props.options?.external ?? []),
207
207
  ],
@@ -1 +1 @@
1
- export * from "./bundle";
1
+ export * from "./bundle.js";
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
- import type { Context } from "../context";
3
- import { Resource } from "../resource";
4
- import { ignore } from "../util/ignore";
2
+ import type { Context } from "../context.js";
3
+ import { Resource } from "../resource.js";
4
+ import { ignore } from "../util/ignore.js";
5
5
 
6
6
  /**
7
7
  * Properties for creating a CopyFile resource
@@ -1,9 +1,9 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import type { Scope } from "../scope";
4
- import { deserialize, serialize } from "../serde";
5
- import type { State, StateStore } from "../state";
6
- import { ignore } from "../util/ignore";
3
+ import type { Scope } from "../scope.js";
4
+ import { deserialize, serialize } from "../serde.js";
5
+ import type { State, StateStore } from "../state.js";
6
+ import { ignore } from "../util/ignore.js";
7
7
 
8
8
  const stateRootDir = path.join(process.cwd(), ".alchemy");
9
9
 
package/src/fs/file.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import type { Context } from "../context";
4
- import { Resource } from "../resource";
5
- import { ignore } from "../util/ignore";
3
+ import type { Context } from "../context.js";
4
+ import { Resource } from "../resource.js";
5
+ import { ignore } from "../util/ignore.js";
6
6
 
7
- import { alchemy } from "../alchemy";
8
- import type { FileCollection } from "./file-collection";
9
- import type { FileRef } from "./file-ref";
7
+ import { alchemy } from "../alchemy.js";
8
+ import type { FileCollection } from "./file-collection.js";
9
+ import type { FileRef } from "./file-ref.js";
10
10
 
11
11
  declare module "../alchemy" {
12
12
  interface Alchemy {
package/src/fs/folder.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
- import type { Context } from "../context";
3
- import { Resource } from "../resource";
4
- import { ignore } from "../util/ignore";
2
+ import type { Context } from "../context.js";
3
+ import { Resource } from "../resource.js";
4
+ import { ignore } from "../util/ignore.js";
5
5
 
6
6
  export interface FolderProps {
7
7
  /**
@@ -61,24 +61,24 @@ export const Folder = Resource(
61
61
  async function (
62
62
  this: Context<Folder>,
63
63
  id: string,
64
- props?: FolderProps,
64
+ props?: FolderProps
65
65
  ): Promise<Folder> {
66
66
  const dirPath = props?.path ?? id;
67
67
  if (this.phase === "delete") {
68
68
  if (props?.delete !== false) {
69
69
  // we just do a best effort attempt
70
70
  await ignore(["ENOENT", "ENOTEMPTY"], async () =>
71
- fs.promises.rmdir(dirPath, { recursive: props?.clean ?? false }),
71
+ fs.promises.rmdir(dirPath, { recursive: props?.clean ?? false })
72
72
  );
73
73
  }
74
74
  return this.destroy();
75
75
  } else {
76
76
  await ignore("EEXIST", async () =>
77
- fs.promises.mkdir(dirPath, { recursive: props?.recursive ?? true }),
77
+ fs.promises.mkdir(dirPath, { recursive: props?.recursive ?? true })
78
78
  );
79
79
  }
80
80
  return this({
81
81
  path: dirPath,
82
82
  });
83
- },
83
+ }
84
84
  );
package/src/fs/index.ts CHANGED
@@ -1,14 +1,14 @@
1
- export * from "./copy-file";
2
- export * from "./file";
3
- export * from "./file-collection";
4
- export * from "./file-ref";
5
- export * from "./file-system-state-store";
6
- export * from "./folder";
7
- export * from "./static-astro-file";
8
- export * from "./static-css-file";
9
- export * from "./static-html-file";
10
- export * from "./static-json-file";
11
- export * from "./static-text-file";
12
- export * from "./static-typescript-file";
13
- export * from "./static-vue-file";
14
- export * from "./static-yaml-file";
1
+ export * from "./copy-file.js";
2
+ export * from "./file-collection.js";
3
+ export * from "./file-ref.js";
4
+ export * from "./file-system-state-store.js";
5
+ export * from "./file.js";
6
+ export * from "./folder.js";
7
+ export * from "./static-astro-file.js";
8
+ export * from "./static-css-file.js";
9
+ export * from "./static-html-file.js";
10
+ export * from "./static-json-file.js";
11
+ export * from "./static-text-file.js";
12
+ export * from "./static-typescript-file.js";
13
+ export * from "./static-vue-file.js";
14
+ export * from "./static-yaml-file.js";
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  export type StaticAstroFile = File;
4
4
 
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  export type StaticCSSFile = File;
4
4
 
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  export type StaticHTMLFile = File;
4
4
 
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  /**
4
4
  * Creates a JSON file with formatted content
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  /**
4
4
  * Creates a plain text file
@@ -13,9 +13,7 @@ export type StaticTextFile = File;
13
13
 
14
14
  export function StaticTextFile(
15
15
  id: string,
16
- ...args:
17
- | [content: string]
18
- | [path: string, content: string]
16
+ ...args: [content: string] | [path: string, content: string]
19
17
  ): Promise<StaticTextFile> {
20
18
  const [path, content] = args.length === 1 ? [id, args[0]] : args;
21
19
  return File(id, {
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  /**
4
4
  * Creates a TypeScript file with formatted content using prettier
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
 
3
3
  export type StaticVueFile = File;
4
4
 
@@ -1,4 +1,4 @@
1
- import { File } from "./file";
1
+ import { File } from "./file.js";
2
2
  /**
3
3
  * Creates a YAML file with formatted content
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { Octokit } from "@octokit/rest";
2
- import { exec } from "child_process";
3
- import { promisify } from "util";
2
+ import { exec } from "node:child_process";
3
+ import { promisify } from "node:util";
4
4
 
5
5
  // Convert exec to promise-based
6
6
  const execAsync = promisify(exec);
@@ -48,7 +48,7 @@ export async function getGitHubToken(token?: string): Promise<string | null> {
48
48
  * @returns An authenticated Octokit client
49
49
  */
50
50
  export async function createGitHubClient(
51
- options: { token?: string } = {},
51
+ options: { token?: string } = {}
52
52
  ): Promise<Octokit> {
53
53
  const token = await getGitHubToken(options.token);
54
54
 
@@ -67,7 +67,7 @@ export async function createGitHubClient(
67
67
  export async function verifyGitHubAuth(
68
68
  octokit: Octokit,
69
69
  owner: string,
70
- repo: string,
70
+ repo: string
71
71
  ): Promise<void> {
72
72
  try {
73
73
  // Make a test request to check authentication
@@ -78,34 +78,34 @@ export async function verifyGitHubAuth(
78
78
  } catch (error: any) {
79
79
  if (error.status === 401) {
80
80
  console.error(
81
- "\n⚠️ GitHub authentication failed. Please try one of the following:",
81
+ "\n⚠️ GitHub authentication failed. Please try one of the following:"
82
82
  );
83
83
  console.error(
84
- "1. Run 'gh auth login' to authenticate with the GitHub CLI",
84
+ "1. Run 'gh auth login' to authenticate with the GitHub CLI"
85
85
  );
86
86
  console.error(
87
- "2. Set the GITHUB_TOKEN environment variable with a personal access token",
87
+ "2. Set the GITHUB_TOKEN environment variable with a personal access token"
88
88
  );
89
89
  console.error("3. Pass a token directly to the constructor");
90
90
  console.error(
91
- "\nTo create a token, visit: https://github.com/settings/tokens",
91
+ "\nTo create a token, visit: https://github.com/settings/tokens"
92
92
  );
93
93
  console.error(
94
- "Required scopes: 'repo' for private repos or 'public_repo' for public repos\n",
94
+ "Required scopes: 'repo' for private repos or 'public_repo' for public repos\n"
95
95
  );
96
96
  throw new Error("GitHub authentication failed");
97
97
  } else if (error.status === 403) {
98
98
  console.error(
99
- "\n⚠️ Insufficient permissions. You need admin access to the repository.",
99
+ "\n⚠️ Insufficient permissions. You need admin access to the repository."
100
100
  );
101
101
  console.error(
102
- "Make sure your token has the 'repo' scope for private repos or 'public_repo' for public repos\n",
102
+ "Make sure your token has the 'repo' scope for private repos or 'public_repo' for public repos\n"
103
103
  );
104
104
  throw new Error("Insufficient GitHub permissions");
105
105
  } else if (error.status === 404) {
106
106
  console.error(`\n⚠️ Repository not found: ${owner}/${repo}`);
107
107
  console.error(
108
- "Make sure the repository exists and you have access to it\n",
108
+ "Make sure the repository exists and you have access to it\n"
109
109
  );
110
110
  throw new Error("GitHub repository not found");
111
111
  } else {
@@ -1,2 +1,2 @@
1
- export * from "./repository-environment";
2
- export * from "./secret";
1
+ export * from "./repository-environment.js";
2
+ export * from "./secret.js";
@@ -1,6 +1,6 @@
1
- import type { Context } from "../context";
2
- import { Resource } from "../resource";
3
- import { createGitHubClient, verifyGitHubAuth } from "./client";
1
+ import type { Context } from "../context.js";
2
+ import { Resource } from "../resource.js";
3
+ import { createGitHubClient, verifyGitHubAuth } from "./client.js";
4
4
 
5
5
  /**
6
6
  * Properties for creating or updating a GitHub Repository Environment
@@ -1,8 +1,8 @@
1
1
  import sodium from "libsodium-wrappers";
2
- import type { Context } from "../context";
3
- import { Resource } from "../resource";
4
- import type { Secret } from "../secret";
5
- import { createGitHubClient, verifyGitHubAuth } from "./client";
2
+ import type { Context } from "../context.js";
3
+ import { Resource } from "../resource.js";
4
+ import type { Secret } from "../secret.js";
5
+ import { createGitHubClient, verifyGitHubAuth } from "./client.js";
6
6
  /**
7
7
  * Properties for creating or updating a GitHub Secret
8
8
  */
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
- export type * from "./context";
2
- export * from "./resource";
3
- export type * from "./scope";
4
- export * from "./secret";
5
- export * from "./state";
6
- export * from "./util/ignore";
1
+ export type * from "./context.js";
2
+ export * from "./resource.js";
3
+ export type * from "./scope.js";
4
+ export * from "./secret.js";
5
+ export * from "./state.js";
6
+ export * from "./util/ignore.js";
7
7
 
8
- import { alchemy } from "./alchemy";
8
+ import { alchemy } from "./alchemy.js";
9
9
  export default alchemy;
@@ -1,10 +1,10 @@
1
1
  import { type } from "arktype";
2
2
  import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
- import { Data } from "../../ai/data";
5
- import { Document } from "../../ai/document";
6
- import { alchemy } from "../../alchemy";
7
- import { Folder } from "../../fs/folder";
4
+ import { Data } from "../../ai/data.js";
5
+ import { Document } from "../../ai/document.js";
6
+ import { alchemy } from "../../alchemy.js";
7
+ import { Folder } from "../../fs/folder.js";
8
8
 
9
9
  export interface DocsProps {
10
10
  /**
package/src/os/exec.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { exec } from "child_process";
2
- import { promisify } from "util";
3
- import type { Context } from "../context";
4
- import { Resource } from "../resource";
1
+ import { exec } from "node:child_process";
2
+ import { promisify } from "node:util";
3
+ import type { Context } from "../context.js";
4
+ import { Resource } from "../resource.js";
5
5
 
6
6
  const execAsync = promisify(exec);
7
7
 
package/src/os/index.ts CHANGED
@@ -1 +1 @@
1
- export * from "./exec";
1
+ export * from "./exec.js";