alchemy 2.0.0-beta.75 → 2.0.0-beta.77

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 (1463) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_LICENSES.md +11 -11
  3. package/bin/cli.js +88 -11
  4. package/bin/exec.js +11828 -5720
  5. package/bin/exec.js.map +1 -1
  6. package/bin/register-oxc.js +27 -0
  7. package/lib/AWS/AMP/Scraper.js +1 -1
  8. package/lib/AWS/AMP/Scraper.js.map +1 -1
  9. package/lib/AWS/AppRunner/Service.d.ts +11 -27
  10. package/lib/AWS/AppRunner/Service.d.ts.map +1 -1
  11. package/lib/AWS/AppRunner/Service.js +7 -21
  12. package/lib/AWS/AppRunner/Service.js.map +1 -1
  13. package/lib/AWS/Assets.d.ts +1 -1
  14. package/lib/AWS/Assets.js +2 -2
  15. package/lib/AWS/Assets.js.map +1 -1
  16. package/lib/AWS/AuthProvider.d.ts +40 -53
  17. package/lib/AWS/AuthProvider.d.ts.map +1 -1
  18. package/lib/AWS/AuthProvider.js +480 -215
  19. package/lib/AWS/AuthProvider.js.map +1 -1
  20. package/lib/AWS/Batch/JobDefinition.d.ts +11 -27
  21. package/lib/AWS/Batch/JobDefinition.d.ts.map +1 -1
  22. package/lib/AWS/Batch/JobDefinition.js +7 -21
  23. package/lib/AWS/Batch/JobDefinition.js.map +1 -1
  24. package/lib/AWS/Cognito/ManagedLoginBranding.d.ts +108 -0
  25. package/lib/AWS/Cognito/ManagedLoginBranding.d.ts.map +1 -0
  26. package/lib/AWS/Cognito/ManagedLoginBranding.js +200 -0
  27. package/lib/AWS/Cognito/ManagedLoginBranding.js.map +1 -0
  28. package/lib/AWS/Cognito/UserPool.d.ts +80 -0
  29. package/lib/AWS/Cognito/UserPool.d.ts.map +1 -1
  30. package/lib/AWS/Cognito/UserPool.js +72 -4
  31. package/lib/AWS/Cognito/UserPool.js.map +1 -1
  32. package/lib/AWS/Cognito/index.d.ts +1 -0
  33. package/lib/AWS/Cognito/index.d.ts.map +1 -1
  34. package/lib/AWS/Cognito/index.js +1 -0
  35. package/lib/AWS/Cognito/index.js.map +1 -1
  36. package/lib/AWS/EC2/GetAmi.d.ts +2 -0
  37. package/lib/AWS/EC2/GetAmi.d.ts.map +1 -1
  38. package/lib/AWS/EC2/Instance.d.ts +11 -27
  39. package/lib/AWS/EC2/Instance.d.ts.map +1 -1
  40. package/lib/AWS/EC2/Instance.js +7 -21
  41. package/lib/AWS/EC2/Instance.js.map +1 -1
  42. package/lib/AWS/EC2/hosted.d.ts +5 -6
  43. package/lib/AWS/EC2/hosted.d.ts.map +1 -1
  44. package/lib/AWS/EC2/hosted.js.map +1 -1
  45. package/lib/AWS/ECR/Image.d.ts +1 -1
  46. package/lib/AWS/ECR/ImageSource.d.ts +4 -5
  47. package/lib/AWS/ECR/ImageSource.d.ts.map +1 -1
  48. package/lib/AWS/ECR/ImageSource.js.map +1 -1
  49. package/lib/AWS/ECS/Service.d.ts +7 -21
  50. package/lib/AWS/ECS/Service.d.ts.map +1 -1
  51. package/lib/AWS/ECS/Service.js +7 -21
  52. package/lib/AWS/ECS/Service.js.map +1 -1
  53. package/lib/AWS/ECS/Task.d.ts +7 -21
  54. package/lib/AWS/ECS/Task.d.ts.map +1 -1
  55. package/lib/AWS/ECS/Task.js +7 -21
  56. package/lib/AWS/ECS/Task.js.map +1 -1
  57. package/lib/AWS/ElastiCache/CacheCluster.d.ts +60 -0
  58. package/lib/AWS/ElastiCache/CacheCluster.d.ts.map +1 -0
  59. package/lib/AWS/ElastiCache/CacheCluster.js +199 -0
  60. package/lib/AWS/ElastiCache/CacheCluster.js.map +1 -0
  61. package/lib/AWS/ElastiCache/ConnectCacheCluster.d.ts +46 -0
  62. package/lib/AWS/ElastiCache/ConnectCacheCluster.d.ts.map +1 -0
  63. package/lib/AWS/ElastiCache/ConnectCacheCluster.js +5 -0
  64. package/lib/AWS/ElastiCache/ConnectCacheCluster.js.map +1 -0
  65. package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.d.ts +4 -0
  66. package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.d.ts.map +1 -0
  67. package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.js +52 -0
  68. package/lib/AWS/ElastiCache/ConnectCacheClusterHttp.js.map +1 -0
  69. package/lib/AWS/ElastiCache/ConnectReplicationGroup.d.ts +47 -0
  70. package/lib/AWS/ElastiCache/ConnectReplicationGroup.d.ts.map +1 -0
  71. package/lib/AWS/ElastiCache/ConnectReplicationGroup.js +5 -0
  72. package/lib/AWS/ElastiCache/ConnectReplicationGroup.js.map +1 -0
  73. package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.d.ts +4 -0
  74. package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.d.ts.map +1 -0
  75. package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.js +77 -0
  76. package/lib/AWS/ElastiCache/ConnectReplicationGroupHttp.js.map +1 -0
  77. package/lib/AWS/ElastiCache/ReplicationGroup.d.ts +95 -0
  78. package/lib/AWS/ElastiCache/ReplicationGroup.d.ts.map +1 -0
  79. package/lib/AWS/ElastiCache/ReplicationGroup.js +383 -0
  80. package/lib/AWS/ElastiCache/ReplicationGroup.js.map +1 -0
  81. package/lib/AWS/ElastiCache/SubnetGroup.d.ts +39 -0
  82. package/lib/AWS/ElastiCache/SubnetGroup.d.ts.map +1 -0
  83. package/lib/AWS/ElastiCache/SubnetGroup.js +136 -0
  84. package/lib/AWS/ElastiCache/SubnetGroup.js.map +1 -0
  85. package/lib/AWS/ElastiCache/index.d.ts +7 -0
  86. package/lib/AWS/ElastiCache/index.d.ts.map +1 -1
  87. package/lib/AWS/ElastiCache/index.js +7 -0
  88. package/lib/AWS/ElastiCache/index.js.map +1 -1
  89. package/lib/AWS/ElastiCache/internal.d.ts +13 -0
  90. package/lib/AWS/ElastiCache/internal.d.ts.map +1 -0
  91. package/lib/AWS/ElastiCache/internal.js +19 -0
  92. package/lib/AWS/ElastiCache/internal.js.map +1 -0
  93. package/lib/AWS/Environment.d.ts +2 -3
  94. package/lib/AWS/Environment.d.ts.map +1 -1
  95. package/lib/AWS/Environment.js +11 -41
  96. package/lib/AWS/Environment.js.map +1 -1
  97. package/lib/AWS/IAM/actions.generated.js +1 -1
  98. package/lib/AWS/IAM/actions.generated.js.map +1 -1
  99. package/lib/AWS/IdentityCenter/AccountAssignment.js +6 -0
  100. package/lib/AWS/IdentityCenter/AccountAssignment.js.map +1 -1
  101. package/lib/AWS/Lambda/Function.d.ts +14 -23
  102. package/lib/AWS/Lambda/Function.d.ts.map +1 -1
  103. package/lib/AWS/Lambda/Function.js +15 -20
  104. package/lib/AWS/Lambda/Function.js.map +1 -1
  105. package/lib/AWS/Lambda/MicrovmImage.d.ts +12 -28
  106. package/lib/AWS/Lambda/MicrovmImage.d.ts.map +1 -1
  107. package/lib/AWS/Lambda/MicrovmImage.js +8 -22
  108. package/lib/AWS/Lambda/MicrovmImage.js.map +1 -1
  109. package/lib/AWS/Local/DevWatchProvider.d.ts.map +1 -1
  110. package/lib/AWS/Local/DevWatchProvider.js +10 -1
  111. package/lib/AWS/Local/DevWatchProvider.js.map +1 -1
  112. package/lib/AWS/Organizations/Account.d.ts +2 -2
  113. package/lib/AWS/Organizations/Account.d.ts.map +1 -1
  114. package/lib/AWS/Organizations/Account.js +16 -8
  115. package/lib/AWS/Organizations/Account.js.map +1 -1
  116. package/lib/AWS/Organizations/DelegatedAdministrator.d.ts +2 -3
  117. package/lib/AWS/Organizations/DelegatedAdministrator.d.ts.map +1 -1
  118. package/lib/AWS/Organizations/DelegatedAdministrator.js +5 -5
  119. package/lib/AWS/Organizations/DelegatedAdministrator.js.map +1 -1
  120. package/lib/AWS/Organizations/Organization.d.ts +1 -1
  121. package/lib/AWS/Organizations/Organization.d.ts.map +1 -1
  122. package/lib/AWS/Organizations/Organization.js +2 -2
  123. package/lib/AWS/Organizations/Organization.js.map +1 -1
  124. package/lib/AWS/Organizations/common.d.ts +9 -0
  125. package/lib/AWS/Organizations/common.d.ts.map +1 -1
  126. package/lib/AWS/Organizations/common.js +13 -0
  127. package/lib/AWS/Organizations/common.js.map +1 -1
  128. package/lib/AWS/Providers.d.ts.map +1 -1
  129. package/lib/AWS/Providers.js +6 -2
  130. package/lib/AWS/Providers.js.map +1 -1
  131. package/lib/AWS/StateStore/State.d.ts +1 -1
  132. package/lib/AWS/StateStore/State.d.ts.map +1 -1
  133. package/lib/AWS/Website/StaticSite.d.ts.map +1 -1
  134. package/lib/AWS/Website/StaticSite.js +8 -4
  135. package/lib/AWS/Website/StaticSite.js.map +1 -1
  136. package/lib/Alchemist/Errors.d.ts +31 -0
  137. package/lib/Alchemist/Errors.d.ts.map +1 -0
  138. package/lib/Alchemist/Errors.js +19 -0
  139. package/lib/Alchemist/Errors.js.map +1 -0
  140. package/lib/Alchemist/Progress.d.ts +16 -0
  141. package/lib/Alchemist/Progress.d.ts.map +1 -0
  142. package/lib/Alchemist/Progress.js +129 -0
  143. package/lib/Alchemist/Progress.js.map +1 -0
  144. package/lib/Alchemist/Runtime.d.ts +22 -0
  145. package/lib/Alchemist/Runtime.d.ts.map +1 -0
  146. package/lib/Alchemist/Runtime.js +28 -0
  147. package/lib/Alchemist/Runtime.js.map +1 -0
  148. package/lib/Alchemist/Session.d.ts +124 -0
  149. package/lib/Alchemist/Session.d.ts.map +1 -0
  150. package/lib/Alchemist/Session.js +223 -0
  151. package/lib/Alchemist/Session.js.map +1 -0
  152. package/lib/Alchemist/index.d.ts +15 -0
  153. package/lib/Alchemist/index.d.ts.map +1 -0
  154. package/lib/Alchemist/index.js +15 -0
  155. package/lib/Alchemist/index.js.map +1 -0
  156. package/lib/Alchemist/routes/aws.d.ts +21 -0
  157. package/lib/Alchemist/routes/aws.d.ts.map +1 -0
  158. package/lib/Alchemist/routes/aws.js +54 -0
  159. package/lib/Alchemist/routes/aws.js.map +1 -0
  160. package/lib/Alchemist/routes/cloudflare.d.ts +63 -0
  161. package/lib/Alchemist/routes/cloudflare.d.ts.map +1 -0
  162. package/lib/Alchemist/routes/cloudflare.js +113 -0
  163. package/lib/Alchemist/routes/cloudflare.js.map +1 -0
  164. package/lib/Alchemist/routes/cloudflareToken.d.ts +93 -0
  165. package/lib/Alchemist/routes/cloudflareToken.d.ts.map +1 -0
  166. package/lib/Alchemist/routes/cloudflareToken.js +111 -0
  167. package/lib/Alchemist/routes/cloudflareToken.js.map +1 -0
  168. package/lib/Alchemist/routes/drift.d.ts +55 -0
  169. package/lib/Alchemist/routes/drift.d.ts.map +1 -0
  170. package/lib/Alchemist/routes/drift.js +52 -0
  171. package/lib/Alchemist/routes/drift.js.map +1 -0
  172. package/lib/Alchemist/routes/logs.d.ts +41 -0
  173. package/lib/Alchemist/routes/logs.d.ts.map +1 -0
  174. package/lib/Alchemist/routes/logs.js +112 -0
  175. package/lib/Alchemist/routes/logs.js.map +1 -0
  176. package/lib/Alchemist/routes/nuke.d.ts +46 -0
  177. package/lib/Alchemist/routes/nuke.d.ts.map +1 -0
  178. package/lib/Alchemist/routes/nuke.js +80 -0
  179. package/lib/Alchemist/routes/nuke.js.map +1 -0
  180. package/lib/Alchemist/routes/profile.d.ts +133 -0
  181. package/lib/Alchemist/routes/profile.d.ts.map +1 -0
  182. package/lib/Alchemist/routes/profile.js +257 -0
  183. package/lib/Alchemist/routes/profile.js.map +1 -0
  184. package/lib/Alchemist/routes/provider.d.ts +33 -0
  185. package/lib/Alchemist/routes/provider.d.ts.map +1 -0
  186. package/lib/Alchemist/routes/provider.js +65 -0
  187. package/lib/Alchemist/routes/provider.js.map +1 -0
  188. package/lib/Alchemist/routes/stack.d.ts +78 -0
  189. package/lib/Alchemist/routes/stack.d.ts.map +1 -0
  190. package/lib/Alchemist/routes/stack.js +67 -0
  191. package/lib/Alchemist/routes/stack.js.map +1 -0
  192. package/lib/Alchemist/routes/state.d.ts +35 -0
  193. package/lib/Alchemist/routes/state.d.ts.map +1 -0
  194. package/lib/Alchemist/routes/state.js +42 -0
  195. package/lib/Alchemist/routes/state.js.map +1 -0
  196. package/lib/Apply.d.ts +8 -6
  197. package/lib/Apply.d.ts.map +1 -1
  198. package/lib/Apply.js +209 -103
  199. package/lib/Apply.js.map +1 -1
  200. package/lib/Auth/AuthProvider.d.ts +201 -25
  201. package/lib/Auth/AuthProvider.d.ts.map +1 -1
  202. package/lib/Auth/AuthProvider.js +180 -40
  203. package/lib/Auth/AuthProvider.js.map +1 -1
  204. package/lib/Auth/BrowserOAuth.d.ts +27 -0
  205. package/lib/Auth/BrowserOAuth.d.ts.map +1 -0
  206. package/lib/Auth/BrowserOAuth.js +41 -0
  207. package/lib/Auth/BrowserOAuth.js.map +1 -0
  208. package/lib/Auth/Credentials.d.ts +11 -6
  209. package/lib/Auth/Credentials.d.ts.map +1 -1
  210. package/lib/Auth/Credentials.js +62 -23
  211. package/lib/Auth/Credentials.js.map +1 -1
  212. package/lib/Auth/CredentialsCache.d.ts +15 -0
  213. package/lib/Auth/CredentialsCache.d.ts.map +1 -0
  214. package/lib/Auth/CredentialsCache.js +34 -0
  215. package/lib/Auth/CredentialsCache.js.map +1 -0
  216. package/lib/Auth/Demand.d.ts +59 -34
  217. package/lib/Auth/Demand.d.ts.map +1 -1
  218. package/lib/Auth/Demand.js +150 -60
  219. package/lib/Auth/Demand.js.map +1 -1
  220. package/lib/Auth/Env.d.ts +4 -4
  221. package/lib/Auth/Env.d.ts.map +1 -1
  222. package/lib/Auth/Env.js +18 -9
  223. package/lib/Auth/Env.js.map +1 -1
  224. package/lib/Auth/Inspect.d.ts +33 -0
  225. package/lib/Auth/Inspect.d.ts.map +1 -0
  226. package/lib/Auth/Inspect.js +67 -0
  227. package/lib/Auth/Inspect.js.map +1 -0
  228. package/lib/Auth/Lock.d.ts +6 -0
  229. package/lib/Auth/Lock.d.ts.map +1 -1
  230. package/lib/Auth/Lock.js +22 -11
  231. package/lib/Auth/Lock.js.map +1 -1
  232. package/lib/Auth/OAuthFlow.d.ts +119 -0
  233. package/lib/Auth/OAuthFlow.d.ts.map +1 -0
  234. package/lib/Auth/OAuthFlow.js +314 -0
  235. package/lib/Auth/OAuthFlow.js.map +1 -0
  236. package/lib/Auth/Paths.d.ts +18 -0
  237. package/lib/Auth/Paths.d.ts.map +1 -0
  238. package/lib/Auth/Paths.js +20 -0
  239. package/lib/Auth/Paths.js.map +1 -0
  240. package/lib/Auth/Profile.d.ts +91 -67
  241. package/lib/Auth/Profile.d.ts.map +1 -1
  242. package/lib/Auth/Profile.js +449 -92
  243. package/lib/Auth/Profile.js.map +1 -1
  244. package/lib/Auth/Resolve.d.ts +42 -0
  245. package/lib/Auth/Resolve.d.ts.map +1 -0
  246. package/lib/Auth/Resolve.js +90 -0
  247. package/lib/Auth/Resolve.js.map +1 -0
  248. package/lib/Auth/StoredAuthProvider.d.ts +84 -0
  249. package/lib/Auth/StoredAuthProvider.d.ts.map +1 -0
  250. package/lib/Auth/StoredAuthProvider.js +179 -0
  251. package/lib/Auth/StoredAuthProvider.js.map +1 -0
  252. package/lib/Auth/index.d.ts +1 -0
  253. package/lib/Auth/index.d.ts.map +1 -1
  254. package/lib/Auth/index.js +1 -0
  255. package/lib/Auth/index.js.map +1 -1
  256. package/lib/Axiom/AuthProvider.d.ts +17 -26
  257. package/lib/Axiom/AuthProvider.d.ts.map +1 -1
  258. package/lib/Axiom/AuthProvider.js +89 -172
  259. package/lib/Axiom/AuthProvider.js.map +1 -1
  260. package/lib/Axiom/Credentials.d.ts +2 -4
  261. package/lib/Axiom/Credentials.d.ts.map +1 -1
  262. package/lib/Axiom/Credentials.js +5 -10
  263. package/lib/Axiom/Credentials.js.map +1 -1
  264. package/lib/Axiom/Providers.d.ts +2 -2
  265. package/lib/Axiom/Providers.d.ts.map +1 -1
  266. package/lib/Axiom/Providers.js +3 -3
  267. package/lib/Axiom/Providers.js.map +1 -1
  268. package/lib/Bundle/Bundle.d.ts +3 -5
  269. package/lib/Bundle/Bundle.d.ts.map +1 -1
  270. package/lib/Bundle/Bundle.js.map +1 -1
  271. package/lib/Cli/CliKit/CliKit.d.ts +92 -0
  272. package/lib/Cli/CliKit/CliKit.d.ts.map +1 -0
  273. package/lib/Cli/CliKit/CliKit.js +27 -0
  274. package/lib/Cli/CliKit/CliKit.js.map +1 -0
  275. package/lib/Cli/CliKit/index.d.ts +9 -0
  276. package/lib/Cli/CliKit/index.d.ts.map +1 -0
  277. package/lib/Cli/CliKit/index.js +9 -0
  278. package/lib/Cli/CliKit/index.js.map +1 -0
  279. package/lib/Cli/CliKit/interaction.d.ts +13 -0
  280. package/lib/Cli/CliKit/interaction.d.ts.map +1 -0
  281. package/lib/Cli/CliKit/interaction.js +17 -0
  282. package/lib/Cli/CliKit/interaction.js.map +1 -0
  283. package/lib/Cli/CliKit/layer.d.ts +7 -0
  284. package/lib/Cli/CliKit/layer.d.ts.map +1 -0
  285. package/lib/Cli/CliKit/layer.js +34 -0
  286. package/lib/Cli/CliKit/layer.js.map +1 -0
  287. package/lib/Cli/DevOptions.d.ts +17 -0
  288. package/lib/Cli/DevOptions.d.ts.map +1 -0
  289. package/lib/Cli/DevOptions.js +16 -0
  290. package/lib/Cli/DevOptions.js.map +1 -0
  291. package/lib/Cli/Format.d.ts +5 -0
  292. package/lib/Cli/Format.d.ts.map +1 -0
  293. package/lib/Cli/Format.js +27 -0
  294. package/lib/Cli/Format.js.map +1 -0
  295. package/lib/Cli/GlobalLog.d.ts +41 -0
  296. package/lib/Cli/GlobalLog.d.ts.map +1 -0
  297. package/lib/Cli/GlobalLog.js +112 -0
  298. package/lib/Cli/GlobalLog.js.map +1 -0
  299. package/lib/Cli/LoggingCli.d.ts +4 -3
  300. package/lib/Cli/LoggingCli.d.ts.map +1 -1
  301. package/lib/Cli/LoggingCli.js +240 -100
  302. package/lib/Cli/LoggingCli.js.map +1 -1
  303. package/lib/Cli/ModeTag.d.ts +1 -1
  304. package/lib/Cli/ModeTag.js +1 -1
  305. package/lib/Cli/NamespaceTree.d.ts +18 -8
  306. package/lib/Cli/NamespaceTree.d.ts.map +1 -1
  307. package/lib/Cli/NamespaceTree.js +52 -11
  308. package/lib/Cli/NamespaceTree.js.map +1 -1
  309. package/lib/Cli/PlainCliFormatter.d.ts +11 -0
  310. package/lib/Cli/PlainCliFormatter.d.ts.map +1 -0
  311. package/lib/Cli/PlainCliFormatter.js +70 -0
  312. package/lib/Cli/PlainCliFormatter.js.map +1 -0
  313. package/lib/Cli/PropertyDiff.d.ts +37 -0
  314. package/lib/Cli/PropertyDiff.d.ts.map +1 -0
  315. package/lib/Cli/PropertyDiff.js +162 -0
  316. package/lib/Cli/PropertyDiff.js.map +1 -0
  317. package/lib/Cli/checkVersion.d.ts.map +1 -1
  318. package/lib/Cli/checkVersion.js +10 -6
  319. package/lib/Cli/checkVersion.js.map +1 -1
  320. package/lib/Cli/commands/aws.d.ts +2 -4
  321. package/lib/Cli/commands/aws.d.ts.map +1 -1
  322. package/lib/Cli/commands/aws.js +43 -55
  323. package/lib/Cli/commands/aws.js.map +1 -1
  324. package/lib/Cli/commands/cloudflare.d.ts +6 -7
  325. package/lib/Cli/commands/cloudflare.d.ts.map +1 -1
  326. package/lib/Cli/commands/cloudflare.js +149 -307
  327. package/lib/Cli/commands/cloudflare.js.map +1 -1
  328. package/lib/Cli/commands/compat.d.ts +11 -0
  329. package/lib/Cli/commands/compat.d.ts.map +1 -0
  330. package/lib/Cli/commands/compat.js +19 -0
  331. package/lib/Cli/commands/compat.js.map +1 -0
  332. package/lib/Cli/commands/confirm.d.ts +33 -0
  333. package/lib/Cli/commands/confirm.d.ts.map +1 -0
  334. package/lib/Cli/commands/confirm.js +39 -0
  335. package/lib/Cli/commands/confirm.js.map +1 -0
  336. package/lib/Cli/commands/deploy.d.ts +20 -32
  337. package/lib/Cli/commands/deploy.d.ts.map +1 -1
  338. package/lib/Cli/commands/deploy.js +140 -140
  339. package/lib/Cli/commands/deploy.js.map +1 -1
  340. package/lib/Cli/commands/dev.d.ts +17 -4
  341. package/lib/Cli/commands/dev.d.ts.map +1 -1
  342. package/lib/Cli/commands/dev.js +63 -30
  343. package/lib/Cli/commands/dev.js.map +1 -1
  344. package/lib/Cli/commands/drift.d.ts +12 -0
  345. package/lib/Cli/commands/drift.d.ts.map +1 -0
  346. package/lib/Cli/commands/drift.js +68 -0
  347. package/lib/Cli/commands/drift.js.map +1 -0
  348. package/lib/Cli/commands/errors.d.ts +35 -0
  349. package/lib/Cli/commands/errors.d.ts.map +1 -0
  350. package/lib/Cli/commands/errors.js +106 -0
  351. package/lib/Cli/commands/errors.js.map +1 -0
  352. package/lib/Cli/commands/flags.d.ts +46 -0
  353. package/lib/Cli/commands/flags.d.ts.map +1 -0
  354. package/lib/Cli/commands/flags.js +98 -0
  355. package/lib/Cli/commands/flags.js.map +1 -0
  356. package/lib/Cli/commands/instrument.d.ts +3 -0
  357. package/lib/Cli/commands/instrument.d.ts.map +1 -0
  358. package/lib/Cli/commands/instrument.js +6 -0
  359. package/lib/Cli/commands/instrument.js.map +1 -0
  360. package/lib/Cli/commands/logs.d.ts +5 -4
  361. package/lib/Cli/commands/logs.d.ts.map +1 -1
  362. package/lib/Cli/commands/logs.js +63 -88
  363. package/lib/Cli/commands/logs.js.map +1 -1
  364. package/lib/Cli/commands/nuke.d.ts +3 -2
  365. package/lib/Cli/commands/nuke.d.ts.map +1 -1
  366. package/lib/Cli/commands/nuke.js +89 -588
  367. package/lib/Cli/commands/nuke.js.map +1 -1
  368. package/lib/Cli/commands/profile/commands.d.ts +9 -0
  369. package/lib/Cli/commands/profile/commands.d.ts.map +1 -0
  370. package/lib/Cli/commands/profile/commands.js +276 -0
  371. package/lib/Cli/commands/profile/commands.js.map +1 -0
  372. package/lib/Cli/commands/profile/flows.d.ts +36 -0
  373. package/lib/Cli/commands/profile/flows.d.ts.map +1 -0
  374. package/lib/Cli/commands/profile/flows.js +155 -0
  375. package/lib/Cli/commands/profile/flows.js.map +1 -0
  376. package/lib/Cli/commands/profile/hub.d.ts +8 -0
  377. package/lib/Cli/commands/profile/hub.d.ts.map +1 -0
  378. package/lib/Cli/commands/profile/hub.js +154 -0
  379. package/lib/Cli/commands/profile/hub.js.map +1 -0
  380. package/lib/Cli/commands/profile/index.d.ts +2 -0
  381. package/lib/Cli/commands/profile/index.d.ts.map +1 -0
  382. package/lib/Cli/commands/profile/index.js +2 -0
  383. package/lib/Cli/commands/profile/index.js.map +1 -0
  384. package/lib/Cli/commands/provider.d.ts +17 -0
  385. package/lib/Cli/commands/provider.d.ts.map +1 -0
  386. package/lib/Cli/commands/provider.js +44 -0
  387. package/lib/Cli/commands/provider.js.map +1 -0
  388. package/lib/Cli/commands/render.d.ts +12 -0
  389. package/lib/Cli/commands/render.d.ts.map +1 -0
  390. package/lib/Cli/commands/render.js +82 -0
  391. package/lib/Cli/commands/render.js.map +1 -0
  392. package/lib/Cli/commands/state.d.ts +8 -1
  393. package/lib/Cli/commands/state.d.ts.map +1 -1
  394. package/lib/Cli/commands/state.js +125 -248
  395. package/lib/Cli/commands/state.js.map +1 -1
  396. package/lib/Cli/components/types.d.ts +104 -0
  397. package/lib/Cli/components/types.d.ts.map +1 -0
  398. package/lib/Cli/components/types.js +4 -0
  399. package/lib/Cli/components/types.js.map +1 -0
  400. package/lib/Cli/components/ui/Data.d.ts +15 -0
  401. package/lib/Cli/components/ui/Data.d.ts.map +1 -0
  402. package/lib/Cli/components/ui/Data.js +8 -0
  403. package/lib/Cli/components/ui/Data.js.map +1 -0
  404. package/lib/Cli/components/ui/Environment.d.ts +45 -0
  405. package/lib/Cli/components/ui/Environment.d.ts.map +1 -0
  406. package/lib/Cli/components/ui/Environment.js +38 -0
  407. package/lib/Cli/components/ui/Environment.js.map +1 -0
  408. package/lib/Cli/components/ui/Feedback.d.ts +57 -0
  409. package/lib/Cli/components/ui/Feedback.d.ts.map +1 -0
  410. package/lib/Cli/components/ui/Feedback.js +83 -0
  411. package/lib/Cli/components/ui/Feedback.js.map +1 -0
  412. package/lib/Cli/components/ui/Interactive.d.ts +157 -0
  413. package/lib/Cli/components/ui/Interactive.d.ts.map +1 -0
  414. package/lib/Cli/components/ui/Interactive.js +527 -0
  415. package/lib/Cli/components/ui/Interactive.js.map +1 -0
  416. package/lib/Cli/components/ui/Layout.d.ts +74 -0
  417. package/lib/Cli/components/ui/Layout.d.ts.map +1 -0
  418. package/lib/Cli/components/ui/Layout.js +91 -0
  419. package/lib/Cli/components/ui/Layout.js.map +1 -0
  420. package/lib/Cli/components/ui/Live.d.ts +49 -0
  421. package/lib/Cli/components/ui/Live.d.ts.map +1 -0
  422. package/lib/Cli/components/ui/Live.js +43 -0
  423. package/lib/Cli/components/ui/Live.js.map +1 -0
  424. package/lib/Cli/components/ui/ProgressBar.d.ts +16 -0
  425. package/lib/Cli/components/ui/ProgressBar.d.ts.map +1 -0
  426. package/lib/Cli/components/ui/ProgressBar.js +17 -0
  427. package/lib/Cli/components/ui/ProgressBar.js.map +1 -0
  428. package/lib/Cli/components/ui/Transcript.d.ts +12 -0
  429. package/lib/Cli/components/ui/Transcript.d.ts.map +1 -0
  430. package/lib/Cli/components/ui/Transcript.js +14 -0
  431. package/lib/Cli/components/ui/Transcript.js.map +1 -0
  432. package/lib/Cli/components/ui/Typography.d.ts +17 -0
  433. package/lib/Cli/components/ui/Typography.d.ts.map +1 -0
  434. package/lib/Cli/components/ui/Typography.js +21 -0
  435. package/lib/Cli/components/ui/Typography.js.map +1 -0
  436. package/lib/Cli/components/ui/index.d.ts +16 -0
  437. package/lib/Cli/components/ui/index.d.ts.map +1 -0
  438. package/lib/Cli/components/ui/index.js +16 -0
  439. package/lib/Cli/components/ui/index.js.map +1 -0
  440. package/lib/Cli/components/view/ApprovePlan.d.ts +17 -0
  441. package/lib/Cli/components/view/ApprovePlan.d.ts.map +1 -0
  442. package/lib/Cli/components/view/ApprovePlan.js +59 -0
  443. package/lib/Cli/components/view/ApprovePlan.js.map +1 -0
  444. package/lib/Cli/components/view/Help.d.ts +4 -0
  445. package/lib/Cli/components/view/Help.d.ts.map +1 -0
  446. package/lib/Cli/components/view/Help.js +116 -0
  447. package/lib/Cli/components/view/Help.js.map +1 -0
  448. package/lib/Cli/components/view/Logo.d.ts +7 -0
  449. package/lib/Cli/components/view/Logo.d.ts.map +1 -0
  450. package/lib/Cli/components/view/Logo.js +118 -0
  451. package/lib/Cli/components/view/Logo.js.map +1 -0
  452. package/lib/Cli/components/view/Nuke.d.ts +36 -0
  453. package/lib/Cli/components/view/Nuke.d.ts.map +1 -0
  454. package/lib/Cli/components/view/Nuke.js +148 -0
  455. package/lib/Cli/components/view/Nuke.js.map +1 -0
  456. package/lib/Cli/components/view/PlanDecision.d.ts +15 -0
  457. package/lib/Cli/components/view/PlanDecision.d.ts.map +1 -0
  458. package/lib/Cli/components/view/PlanDecision.js +26 -0
  459. package/lib/Cli/components/view/PlanDecision.js.map +1 -0
  460. package/lib/Cli/components/view/PlanRow.d.ts +17 -0
  461. package/lib/Cli/components/view/PlanRow.d.ts.map +1 -0
  462. package/lib/Cli/components/view/PlanRow.js +14 -0
  463. package/lib/Cli/components/view/PlanRow.js.map +1 -0
  464. package/lib/Cli/components/view/PlanTree.d.ts +116 -0
  465. package/lib/Cli/components/view/PlanTree.d.ts.map +1 -0
  466. package/lib/Cli/components/view/PlanTree.js +207 -0
  467. package/lib/Cli/components/view/PlanTree.js.map +1 -0
  468. package/lib/Cli/components/view/PlanView.d.ts +42 -0
  469. package/lib/Cli/components/view/PlanView.d.ts.map +1 -0
  470. package/lib/Cli/components/view/PlanView.js +310 -0
  471. package/lib/Cli/components/view/PlanView.js.map +1 -0
  472. package/lib/Cli/components/view/Profile.d.ts +130 -0
  473. package/lib/Cli/components/view/Profile.d.ts.map +1 -0
  474. package/lib/Cli/components/view/Profile.js +147 -0
  475. package/lib/Cli/components/view/Profile.js.map +1 -0
  476. package/lib/Cli/components/view/ProfileDashboard.d.ts +152 -0
  477. package/lib/Cli/components/view/ProfileDashboard.d.ts.map +1 -0
  478. package/lib/Cli/components/view/ProfileDashboard.js +485 -0
  479. package/lib/Cli/components/view/ProfileDashboard.js.map +1 -0
  480. package/lib/Cli/components/view/Prompts.d.ts +10 -0
  481. package/lib/Cli/components/view/Prompts.d.ts.map +1 -0
  482. package/lib/Cli/components/view/Prompts.js +440 -0
  483. package/lib/Cli/components/view/Prompts.js.map +1 -0
  484. package/lib/Cli/components/view/Runtime.d.ts +8 -0
  485. package/lib/Cli/components/view/Runtime.d.ts.map +1 -0
  486. package/lib/Cli/components/view/Runtime.js +670 -0
  487. package/lib/Cli/components/view/Runtime.js.map +1 -0
  488. package/lib/Cli/components/view/SigilCli.d.ts +5 -0
  489. package/lib/Cli/components/view/SigilCli.d.ts.map +1 -0
  490. package/lib/Cli/components/view/SigilCli.js +134 -0
  491. package/lib/Cli/components/view/SigilCli.js.map +1 -0
  492. package/lib/Cli/components/view/StackOutputs.d.ts +10 -0
  493. package/lib/Cli/components/view/StackOutputs.d.ts.map +1 -0
  494. package/lib/Cli/components/view/StackOutputs.js +14 -0
  495. package/lib/Cli/components/view/StackOutputs.js.map +1 -0
  496. package/lib/Cli/components/view/StateExplorer.d.ts +118 -0
  497. package/lib/Cli/components/view/StateExplorer.d.ts.map +1 -0
  498. package/lib/Cli/components/view/StateExplorer.js +664 -0
  499. package/lib/Cli/components/view/StateExplorer.js.map +1 -0
  500. package/lib/Cli/components/view/statusStyle.d.ts +18 -0
  501. package/lib/Cli/components/view/statusStyle.d.ts.map +1 -0
  502. package/lib/Cli/components/view/statusStyle.js +69 -0
  503. package/lib/Cli/components/view/statusStyle.js.map +1 -0
  504. package/lib/Cli/components/view/usePlanPresentation.d.ts +25 -0
  505. package/lib/Cli/components/view/usePlanPresentation.d.ts.map +1 -0
  506. package/lib/Cli/components/view/usePlanPresentation.js +54 -0
  507. package/lib/Cli/components/view/usePlanPresentation.js.map +1 -0
  508. package/lib/Cli/components/view/usePlanViewport.d.ts +31 -0
  509. package/lib/Cli/components/view/usePlanViewport.d.ts.map +1 -0
  510. package/lib/Cli/components/view/usePlanViewport.js +113 -0
  511. package/lib/Cli/components/view/usePlanViewport.js.map +1 -0
  512. package/lib/Cli/exec.d.ts +5 -1
  513. package/lib/Cli/exec.d.ts.map +1 -1
  514. package/lib/Cli/exec.js +173 -19
  515. package/lib/Cli/exec.js.map +1 -1
  516. package/lib/Cli/main.d.ts +4 -1
  517. package/lib/Cli/main.d.ts.map +1 -1
  518. package/lib/Cli/main.js +129 -38
  519. package/lib/Cli/main.js.map +1 -1
  520. package/lib/Cli/selectCli.d.ts +5 -3
  521. package/lib/Cli/selectCli.d.ts.map +1 -1
  522. package/lib/Cli/selectCli.js +16 -9
  523. package/lib/Cli/selectCli.js.map +1 -1
  524. package/lib/Cloudflare/ApiToken/UserApiToken.d.ts +1 -1
  525. package/lib/Cloudflare/ApiToken/UserApiToken.js +1 -1
  526. package/lib/Cloudflare/Auth/AuthConfig.d.ts +60 -0
  527. package/lib/Cloudflare/Auth/AuthConfig.d.ts.map +1 -0
  528. package/lib/Cloudflare/Auth/AuthConfig.js +68 -0
  529. package/lib/Cloudflare/Auth/AuthConfig.js.map +1 -0
  530. package/lib/Cloudflare/Auth/AuthProvider.d.ts +2 -142
  531. package/lib/Cloudflare/Auth/AuthProvider.d.ts.map +1 -1
  532. package/lib/Cloudflare/Auth/AuthProvider.js +473 -327
  533. package/lib/Cloudflare/Auth/AuthProvider.js.map +1 -1
  534. package/lib/Cloudflare/Auth/OAuthClient.d.ts +16 -48
  535. package/lib/Cloudflare/Auth/OAuthClient.d.ts.map +1 -1
  536. package/lib/Cloudflare/Auth/OAuthClient.js +25 -260
  537. package/lib/Cloudflare/Auth/OAuthClient.js.map +1 -1
  538. package/lib/Cloudflare/Auth/OAuthScopes.d.ts +88 -0
  539. package/lib/Cloudflare/Auth/OAuthScopes.d.ts.map +1 -0
  540. package/lib/Cloudflare/Auth/OAuthScopes.js +887 -0
  541. package/lib/Cloudflare/Auth/OAuthScopes.js.map +1 -0
  542. package/lib/Cloudflare/Auth/TokenPolicy.d.ts +34 -0
  543. package/lib/Cloudflare/Auth/TokenPolicy.d.ts.map +1 -0
  544. package/lib/Cloudflare/Auth/TokenPolicy.js +51 -0
  545. package/lib/Cloudflare/Auth/TokenPolicy.js.map +1 -0
  546. package/lib/Cloudflare/CloudflareEnvironment.d.ts +2 -3
  547. package/lib/Cloudflare/CloudflareEnvironment.d.ts.map +1 -1
  548. package/lib/Cloudflare/CloudflareEnvironment.js +7 -11
  549. package/lib/Cloudflare/CloudflareEnvironment.js.map +1 -1
  550. package/lib/Cloudflare/Containers/Container.d.ts +10 -25
  551. package/lib/Cloudflare/Containers/Container.d.ts.map +1 -1
  552. package/lib/Cloudflare/Containers/Container.js +9 -23
  553. package/lib/Cloudflare/Containers/Container.js.map +1 -1
  554. package/lib/Cloudflare/Containers/ContainerApplication.d.ts +12 -27
  555. package/lib/Cloudflare/Containers/ContainerApplication.d.ts.map +1 -1
  556. package/lib/Cloudflare/Containers/ContainerApplication.js.map +1 -1
  557. package/lib/Cloudflare/Containers/StartContainer.d.ts +1 -1
  558. package/lib/Cloudflare/Containers/StartContainer.d.ts.map +1 -1
  559. package/lib/Cloudflare/Credentials.d.ts +6 -20
  560. package/lib/Cloudflare/Credentials.d.ts.map +1 -1
  561. package/lib/Cloudflare/Credentials.js +12 -54
  562. package/lib/Cloudflare/Credentials.js.map +1 -1
  563. package/lib/Cloudflare/D1/ImportDatabase.d.ts +1 -1
  564. package/lib/Cloudflare/D1/ImportDatabase.d.ts.map +1 -1
  565. package/lib/Cloudflare/EdgeSession.d.ts +1 -1
  566. package/lib/Cloudflare/EdgeSession.d.ts.map +1 -1
  567. package/lib/Cloudflare/EdgeSession.js +1 -1
  568. package/lib/Cloudflare/EdgeSession.js.map +1 -1
  569. package/lib/Cloudflare/Email/AllowPolicy.d.ts.map +1 -1
  570. package/lib/Cloudflare/Email/AllowPolicy.js +9 -3
  571. package/lib/Cloudflare/Email/AllowPolicy.js.map +1 -1
  572. package/lib/Cloudflare/Email/ImpersonationRegistryEntry.d.ts.map +1 -1
  573. package/lib/Cloudflare/Email/ImpersonationRegistryEntry.js +10 -1
  574. package/lib/Cloudflare/Email/ImpersonationRegistryEntry.js.map +1 -1
  575. package/lib/Cloudflare/Email/TrustedDomain.d.ts.map +1 -1
  576. package/lib/Cloudflare/Email/TrustedDomain.js +10 -1
  577. package/lib/Cloudflare/Email/TrustedDomain.js.map +1 -1
  578. package/lib/Cloudflare/Logs.d.ts.map +1 -1
  579. package/lib/Cloudflare/Logs.js +10 -6
  580. package/lib/Cloudflare/Logs.js.map +1 -1
  581. package/lib/Cloudflare/Pages/Project.d.ts +1 -1
  582. package/lib/Cloudflare/Pages/Project.js +1 -1
  583. package/lib/Cloudflare/Providers.d.ts +2 -2
  584. package/lib/Cloudflare/Providers.d.ts.map +1 -1
  585. package/lib/Cloudflare/Providers.js +2 -2
  586. package/lib/Cloudflare/Providers.js.map +1 -1
  587. package/lib/Cloudflare/StateStore/Api.d.ts +3 -0
  588. package/lib/Cloudflare/StateStore/Api.d.ts.map +1 -1
  589. package/lib/Cloudflare/StateStore/Api.js +2 -2
  590. package/lib/Cloudflare/StateStore/Api.js.map +1 -1
  591. package/lib/Cloudflare/StateStore/CredentialsFile.d.ts +10 -6
  592. package/lib/Cloudflare/StateStore/CredentialsFile.d.ts.map +1 -1
  593. package/lib/Cloudflare/StateStore/CredentialsFile.js +23 -1
  594. package/lib/Cloudflare/StateStore/CredentialsFile.js.map +1 -1
  595. package/lib/Cloudflare/StateStore/State.d.ts +9 -5
  596. package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
  597. package/lib/Cloudflare/StateStore/State.js +132 -99
  598. package/lib/Cloudflare/StateStore/State.js.map +1 -1
  599. package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.js +1 -1
  600. package/lib/Cloudflare/Vectorize/SearchIndexHttpClient.js.map +1 -1
  601. package/lib/Cloudflare/Website/Nextjs.d.ts.map +1 -1
  602. package/lib/Cloudflare/Website/Nextjs.js +4 -12
  603. package/lib/Cloudflare/Website/Nextjs.js.map +1 -1
  604. package/lib/Cloudflare/Website/Vocs.d.ts +1 -1
  605. package/lib/Cloudflare/Website/Vocs.d.ts.map +1 -1
  606. package/lib/Cloudflare/Website/Vocs.js +3 -7
  607. package/lib/Cloudflare/Website/Vocs.js.map +1 -1
  608. package/lib/Cloudflare/Workers/Assets.d.ts +3 -3
  609. package/lib/Cloudflare/Workers/Assets.d.ts.map +1 -1
  610. package/lib/Cloudflare/Workers/Assets.js +88 -33
  611. package/lib/Cloudflare/Workers/Assets.js.map +1 -1
  612. package/lib/Cloudflare/Workers/BrowserHttpClient.d.ts +2 -2
  613. package/lib/Cloudflare/Workers/BrowserHttpClient.d.ts.map +1 -1
  614. package/lib/Cloudflare/Workers/BrowserHttpClient.js +10 -3
  615. package/lib/Cloudflare/Workers/BrowserHttpClient.js.map +1 -1
  616. package/lib/Cloudflare/Workers/CloudflareTracer.d.ts +9 -0
  617. package/lib/Cloudflare/Workers/CloudflareTracer.d.ts.map +1 -0
  618. package/lib/Cloudflare/Workers/CloudflareTracer.js +87 -0
  619. package/lib/Cloudflare/Workers/CloudflareTracer.js.map +1 -0
  620. package/lib/Cloudflare/Workers/Compatibility.d.ts +13 -0
  621. package/lib/Cloudflare/Workers/Compatibility.d.ts.map +1 -1
  622. package/lib/Cloudflare/Workers/Compatibility.js +31 -6
  623. package/lib/Cloudflare/Workers/Compatibility.js.map +1 -1
  624. package/lib/Cloudflare/Workers/DurableObject.d.ts +50 -4
  625. package/lib/Cloudflare/Workers/DurableObject.d.ts.map +1 -1
  626. package/lib/Cloudflare/Workers/DurableObject.js +44 -3
  627. package/lib/Cloudflare/Workers/DurableObject.js.map +1 -1
  628. package/lib/Cloudflare/Workers/DurableObjectBridge.d.ts.map +1 -1
  629. package/lib/Cloudflare/Workers/DurableObjectBridge.js +4 -0
  630. package/lib/Cloudflare/Workers/DurableObjectBridge.js.map +1 -1
  631. package/lib/Cloudflare/Workers/DurableObjectState.d.ts +25 -2
  632. package/lib/Cloudflare/Workers/DurableObjectState.d.ts.map +1 -1
  633. package/lib/Cloudflare/Workers/DurableObjectState.js +7 -2
  634. package/lib/Cloudflare/Workers/DurableObjectState.js.map +1 -1
  635. package/lib/Cloudflare/Workers/DurableObjectStorage.d.ts +7 -1
  636. package/lib/Cloudflare/Workers/DurableObjectStorage.d.ts.map +1 -1
  637. package/lib/Cloudflare/Workers/DurableObjectStorage.js +6 -1
  638. package/lib/Cloudflare/Workers/DurableObjectStorage.js.map +1 -1
  639. package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
  640. package/lib/Cloudflare/Workers/LocalWorkerProvider.js +125 -58
  641. package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
  642. package/lib/Cloudflare/Workers/RpcWorker.d.ts +12 -5
  643. package/lib/Cloudflare/Workers/RpcWorker.d.ts.map +1 -1
  644. package/lib/Cloudflare/Workers/RpcWorker.js +8 -2
  645. package/lib/Cloudflare/Workers/RpcWorker.js.map +1 -1
  646. package/lib/Cloudflare/Workers/Source.d.ts +3 -0
  647. package/lib/Cloudflare/Workers/Source.d.ts.map +1 -1
  648. package/lib/Cloudflare/Workers/Source.js +3 -1
  649. package/lib/Cloudflare/Workers/Source.js.map +1 -1
  650. package/lib/Cloudflare/Workers/Sources/Python.d.ts +2 -0
  651. package/lib/Cloudflare/Workers/Sources/Python.d.ts.map +1 -1
  652. package/lib/Cloudflare/Workers/Sources/Python.js +16 -12
  653. package/lib/Cloudflare/Workers/Sources/Python.js.map +1 -1
  654. package/lib/Cloudflare/Workers/Sources/Rolldown.js +1 -1
  655. package/lib/Cloudflare/Workers/Sources/Rolldown.js.map +1 -1
  656. package/lib/Cloudflare/Workers/Sources/Vite.d.ts +1 -1
  657. package/lib/Cloudflare/Workers/Sources/Vite.d.ts.map +1 -1
  658. package/lib/Cloudflare/Workers/Sources/Vite.js +6 -4
  659. package/lib/Cloudflare/Workers/Sources/Vite.js.map +1 -1
  660. package/lib/Cloudflare/Workers/Telemetry.d.ts +113 -0
  661. package/lib/Cloudflare/Workers/Telemetry.d.ts.map +1 -0
  662. package/lib/Cloudflare/Workers/Telemetry.js +129 -0
  663. package/lib/Cloudflare/Workers/Telemetry.js.map +1 -0
  664. package/lib/Cloudflare/Workers/ViteBuildChildRunner.js +6 -1
  665. package/lib/Cloudflare/Workers/ViteBuildChildRunner.js.map +1 -1
  666. package/lib/Cloudflare/Workers/ViteChild.d.ts +2 -2
  667. package/lib/Cloudflare/Workers/ViteChild.d.ts.map +1 -1
  668. package/lib/Cloudflare/Workers/ViteChild.js +19 -17
  669. package/lib/Cloudflare/Workers/ViteChild.js.map +1 -1
  670. package/lib/Cloudflare/Workers/ViteChild.shared.d.ts +1 -0
  671. package/lib/Cloudflare/Workers/ViteChild.shared.d.ts.map +1 -1
  672. package/lib/Cloudflare/Workers/ViteChild.shared.js.map +1 -1
  673. package/lib/Cloudflare/Workers/ViteChildRunner.js +2 -1
  674. package/lib/Cloudflare/Workers/ViteChildRunner.js.map +1 -1
  675. package/lib/Cloudflare/Workers/Worker.d.ts +101 -52
  676. package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
  677. package/lib/Cloudflare/Workers/Worker.js +91 -50
  678. package/lib/Cloudflare/Workers/Worker.js.map +1 -1
  679. package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts +9 -1
  680. package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
  681. package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +23 -0
  682. package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
  683. package/lib/Cloudflare/Workers/WorkerBinding.d.ts +6 -0
  684. package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
  685. package/lib/Cloudflare/Workers/WorkerLoader.d.ts +30 -4
  686. package/lib/Cloudflare/Workers/WorkerLoader.d.ts.map +1 -1
  687. package/lib/Cloudflare/Workers/WorkerLoader.js +36 -5
  688. package/lib/Cloudflare/Workers/WorkerLoader.js.map +1 -1
  689. package/lib/Cloudflare/Workers/WorkerProvider.d.ts.map +1 -1
  690. package/lib/Cloudflare/Workers/WorkerProvider.js +53 -46
  691. package/lib/Cloudflare/Workers/WorkerProvider.js.map +1 -1
  692. package/lib/Cloudflare/Workers/cloudflare_workers.d.ts.map +1 -1
  693. package/lib/Cloudflare/Workers/cloudflare_workers.js +4 -1
  694. package/lib/Cloudflare/Workers/cloudflare_workers.js.map +1 -1
  695. package/lib/Cloudflare/Workers/index.d.ts +1 -0
  696. package/lib/Cloudflare/Workers/index.d.ts.map +1 -1
  697. package/lib/Cloudflare/Workers/index.js +1 -0
  698. package/lib/Cloudflare/Workers/index.js.map +1 -1
  699. package/lib/Cloudflare/Workflows/Workflow.d.ts +84 -0
  700. package/lib/Cloudflare/Workflows/Workflow.d.ts.map +1 -1
  701. package/lib/Cloudflare/Workflows/Workflow.js +47 -0
  702. package/lib/Cloudflare/Workflows/Workflow.js.map +1 -1
  703. package/lib/Cloudflare/Workflows/WorkflowBridge.js +7 -4
  704. package/lib/Cloudflare/Workflows/WorkflowBridge.js.map +1 -1
  705. package/lib/Command/Command.d.ts +1 -1
  706. package/lib/Command/Command.d.ts.map +1 -1
  707. package/lib/Command/Command.js +2 -2
  708. package/lib/Command/Command.js.map +1 -1
  709. package/lib/Command/Dev.d.ts +5 -2
  710. package/lib/Command/Dev.d.ts.map +1 -1
  711. package/lib/Command/Dev.js +37 -8
  712. package/lib/Command/Dev.js.map +1 -1
  713. package/lib/Command/Providers.d.ts +1 -1
  714. package/lib/Command/Providers.d.ts.map +1 -1
  715. package/lib/Deploy.d.ts +1 -1
  716. package/lib/Deploy.d.ts.map +1 -1
  717. package/lib/Destroy.d.ts +1 -1
  718. package/lib/Destroy.d.ts.map +1 -1
  719. package/lib/Docker/BuildHash.d.ts +13 -0
  720. package/lib/Docker/BuildHash.d.ts.map +1 -1
  721. package/lib/Docker/BuildHash.js +53 -3
  722. package/lib/Docker/BuildHash.js.map +1 -1
  723. package/lib/Docker/Docker.d.ts +1 -1
  724. package/lib/Docker/Docker.d.ts.map +1 -1
  725. package/lib/Docker/Docker.js +1 -1
  726. package/lib/Docker/Docker.js.map +1 -1
  727. package/lib/Docker/Service.d.ts +7 -21
  728. package/lib/Docker/Service.d.ts.map +1 -1
  729. package/lib/Docker/Service.js +7 -21
  730. package/lib/Docker/Service.js.map +1 -1
  731. package/lib/Docker/ServiceImage.d.ts +4 -5
  732. package/lib/Docker/ServiceImage.d.ts.map +1 -1
  733. package/lib/Docker/ServiceImage.js.map +1 -1
  734. package/lib/Drift.d.ts +91 -0
  735. package/lib/Drift.d.ts.map +1 -0
  736. package/lib/{Sync.js → Drift.js} +98 -29
  737. package/lib/Drift.js.map +1 -0
  738. package/lib/Drizzle/Schema.d.ts.map +1 -1
  739. package/lib/Drizzle/Schema.js +5 -5
  740. package/lib/Drizzle/Schema.js.map +1 -1
  741. package/lib/Fly/App.d.ts +1 -1
  742. package/lib/Fly/App.d.ts.map +1 -1
  743. package/lib/Fly/AuthProvider.d.ts +6 -20
  744. package/lib/Fly/AuthProvider.d.ts.map +1 -1
  745. package/lib/Fly/AuthProvider.js +32 -124
  746. package/lib/Fly/AuthProvider.js.map +1 -1
  747. package/lib/Fly/Bucket.d.ts +1 -1
  748. package/lib/Fly/Bucket.d.ts.map +1 -1
  749. package/lib/Fly/Catalog.d.ts +1 -1
  750. package/lib/Fly/Catalog.d.ts.map +1 -1
  751. package/lib/Fly/CheckpointHttp.d.ts.map +1 -1
  752. package/lib/Fly/CheckpointHttp.js +2 -2
  753. package/lib/Fly/CheckpointHttp.js.map +1 -1
  754. package/lib/Fly/Credentials.d.ts +15 -6
  755. package/lib/Fly/Credentials.d.ts.map +1 -1
  756. package/lib/Fly/Credentials.js +25 -13
  757. package/lib/Fly/Credentials.js.map +1 -1
  758. package/lib/Fly/DecryptHttp.d.ts.map +1 -1
  759. package/lib/Fly/DecryptHttp.js +2 -2
  760. package/lib/Fly/DecryptHttp.js.map +1 -1
  761. package/lib/Fly/EncryptHttp.d.ts.map +1 -1
  762. package/lib/Fly/EncryptHttp.js +2 -2
  763. package/lib/Fly/EncryptHttp.js.map +1 -1
  764. package/lib/Fly/Environment.d.ts +1 -1
  765. package/lib/Fly/Environment.d.ts.map +1 -1
  766. package/lib/Fly/ExecHttp.d.ts.map +1 -1
  767. package/lib/Fly/ExecHttp.js +2 -2
  768. package/lib/Fly/ExecHttp.js.map +1 -1
  769. package/lib/Fly/GetSecretHttp.d.ts.map +1 -1
  770. package/lib/Fly/GetSecretHttp.js +2 -2
  771. package/lib/Fly/GetSecretHttp.js.map +1 -1
  772. package/lib/Fly/ListSecretsHttp.d.ts.map +1 -1
  773. package/lib/Fly/ListSecretsHttp.js +2 -2
  774. package/lib/Fly/ListSecretsHttp.js.map +1 -1
  775. package/lib/Fly/Machine.d.ts +65 -0
  776. package/lib/Fly/Machine.d.ts.map +1 -1
  777. package/lib/Fly/Machine.js +34 -19
  778. package/lib/Fly/Machine.js.map +1 -1
  779. package/lib/Fly/Postgres.d.ts +1 -1
  780. package/lib/Fly/Postgres.d.ts.map +1 -1
  781. package/lib/Fly/Providers.d.ts +1 -1
  782. package/lib/Fly/Providers.d.ts.map +1 -1
  783. package/lib/Fly/Providers.js +2 -2
  784. package/lib/Fly/Providers.js.map +1 -1
  785. package/lib/Fly/Redis.d.ts +1 -1
  786. package/lib/Fly/Redis.d.ts.map +1 -1
  787. package/lib/Fly/Service.d.ts +43 -0
  788. package/lib/Fly/Service.d.ts.map +1 -1
  789. package/lib/Fly/Service.js +44 -19
  790. package/lib/Fly/Service.js.map +1 -1
  791. package/lib/Fly/SignHttp.d.ts.map +1 -1
  792. package/lib/Fly/SignHttp.js +2 -2
  793. package/lib/Fly/SignHttp.js.map +1 -1
  794. package/lib/Fly/VerifyHttp.d.ts.map +1 -1
  795. package/lib/Fly/VerifyHttp.js +2 -2
  796. package/lib/Fly/VerifyHttp.js.map +1 -1
  797. package/lib/Fly/Volume.d.ts +8 -8
  798. package/lib/Fly/Volume.d.ts.map +1 -1
  799. package/lib/Fly/WriteSecretHttp.d.ts.map +1 -1
  800. package/lib/Fly/WriteSecretHttp.js +2 -2
  801. package/lib/Fly/WriteSecretHttp.js.map +1 -1
  802. package/lib/Fly/replicas.d.ts +12 -10
  803. package/lib/Fly/replicas.d.ts.map +1 -1
  804. package/lib/Fly/replicas.js +35 -0
  805. package/lib/Fly/replicas.js.map +1 -1
  806. package/lib/GitHub/AuthProvider.d.ts +20 -29
  807. package/lib/GitHub/AuthProvider.d.ts.map +1 -1
  808. package/lib/GitHub/AuthProvider.js +141 -75
  809. package/lib/GitHub/AuthProvider.js.map +1 -1
  810. package/lib/GitHub/Credentials.d.ts +2 -3
  811. package/lib/GitHub/Credentials.d.ts.map +1 -1
  812. package/lib/GitHub/Credentials.js +6 -10
  813. package/lib/GitHub/Credentials.js.map +1 -1
  814. package/lib/GitHub/Providers.d.ts +3 -3
  815. package/lib/GitHub/Providers.d.ts.map +1 -1
  816. package/lib/GitHub/Providers.js +4 -4
  817. package/lib/GitHub/Providers.js.map +1 -1
  818. package/lib/Hetzner/AuthProvider.d.ts +7 -20
  819. package/lib/Hetzner/AuthProvider.d.ts.map +1 -1
  820. package/lib/Hetzner/AuthProvider.js +42 -130
  821. package/lib/Hetzner/AuthProvider.js.map +1 -1
  822. package/lib/Hetzner/Catalog.d.ts +5 -5
  823. package/lib/Hetzner/Catalog.d.ts.map +1 -1
  824. package/lib/Hetzner/Credentials.d.ts +1 -3
  825. package/lib/Hetzner/Credentials.d.ts.map +1 -1
  826. package/lib/Hetzner/Credentials.js +4 -9
  827. package/lib/Hetzner/Credentials.js.map +1 -1
  828. package/lib/Hetzner/PlacementGroup.d.ts +1 -1
  829. package/lib/Hetzner/PlacementGroup.d.ts.map +1 -1
  830. package/lib/Hetzner/Providers.d.ts +1 -1
  831. package/lib/Hetzner/Providers.d.ts.map +1 -1
  832. package/lib/Hetzner/Providers.js +2 -2
  833. package/lib/Hetzner/Providers.js.map +1 -1
  834. package/lib/Hetzner/hosted.d.ts +1 -1
  835. package/lib/Interaction.d.ts +186 -0
  836. package/lib/Interaction.d.ts.map +1 -0
  837. package/lib/Interaction.js +149 -0
  838. package/lib/Interaction.js.map +1 -0
  839. package/lib/Kubernetes/ClusterAdapter.d.ts +4 -5
  840. package/lib/Kubernetes/ClusterAdapter.d.ts.map +1 -1
  841. package/lib/Kubernetes/ClusterAdapter.js.map +1 -1
  842. package/lib/Kubernetes/Deployment.d.ts +7 -21
  843. package/lib/Kubernetes/Deployment.d.ts.map +1 -1
  844. package/lib/Kubernetes/Deployment.js +7 -21
  845. package/lib/Kubernetes/Deployment.js.map +1 -1
  846. package/lib/Kubernetes/Job.d.ts +7 -21
  847. package/lib/Kubernetes/Job.d.ts.map +1 -1
  848. package/lib/Kubernetes/Job.js +7 -21
  849. package/lib/Kubernetes/Job.js.map +1 -1
  850. package/lib/Local/DevLog.d.ts +32 -0
  851. package/lib/Local/DevLog.d.ts.map +1 -0
  852. package/lib/Local/DevLog.js +114 -0
  853. package/lib/Local/DevLog.js.map +1 -0
  854. package/lib/Local/LocalProvider.d.ts +1 -1
  855. package/lib/Local/LocalProvider.d.ts.map +1 -1
  856. package/lib/Local/LocalProvider.js +2 -2
  857. package/lib/Local/LocalProvider.js.map +1 -1
  858. package/lib/Local/RpcServer.d.ts.map +1 -1
  859. package/lib/Local/RpcServer.js +10 -1
  860. package/lib/Local/RpcServer.js.map +1 -1
  861. package/lib/Local/RpcServerEnvironment.d.ts +2 -2
  862. package/lib/Local/RpcServerEnvironment.d.ts.map +1 -1
  863. package/lib/Local/RpcServerEnvironment.js +3 -2
  864. package/lib/Local/RpcServerEnvironment.js.map +1 -1
  865. package/lib/Local/RpcSpawner.d.ts +14 -5
  866. package/lib/Local/RpcSpawner.d.ts.map +1 -1
  867. package/lib/Local/RpcSpawner.js +105 -38
  868. package/lib/Local/RpcSpawner.js.map +1 -1
  869. package/lib/Neon/AuthProvider.d.ts +4 -13
  870. package/lib/Neon/AuthProvider.d.ts.map +1 -1
  871. package/lib/Neon/AuthProvider.js +24 -107
  872. package/lib/Neon/AuthProvider.js.map +1 -1
  873. package/lib/Neon/Credentials.d.ts +1 -3
  874. package/lib/Neon/Credentials.d.ts.map +1 -1
  875. package/lib/Neon/Credentials.js +4 -9
  876. package/lib/Neon/Credentials.js.map +1 -1
  877. package/lib/Neon/Providers.d.ts +1 -1
  878. package/lib/Neon/Providers.d.ts.map +1 -1
  879. package/lib/Neon/Providers.js +2 -2
  880. package/lib/Neon/Providers.js.map +1 -1
  881. package/lib/Nuke.d.ts +89 -0
  882. package/lib/Nuke.d.ts.map +1 -0
  883. package/lib/Nuke.js +265 -0
  884. package/lib/Nuke.js.map +1 -0
  885. package/lib/Plan.d.ts +27 -5
  886. package/lib/Plan.d.ts.map +1 -1
  887. package/lib/Plan.js +167 -21
  888. package/lib/Plan.js.map +1 -1
  889. package/lib/Planetscale/AuthProvider.d.ts +25 -37
  890. package/lib/Planetscale/AuthProvider.d.ts.map +1 -1
  891. package/lib/Planetscale/AuthProvider.js +267 -150
  892. package/lib/Planetscale/AuthProvider.js.map +1 -1
  893. package/lib/Planetscale/Credentials.d.ts +2 -3
  894. package/lib/Planetscale/Credentials.d.ts.map +1 -1
  895. package/lib/Planetscale/Credentials.js +16 -13
  896. package/lib/Planetscale/Credentials.js.map +1 -1
  897. package/lib/Planetscale/OAuthClient.d.ts +8 -52
  898. package/lib/Planetscale/OAuthClient.d.ts.map +1 -1
  899. package/lib/Planetscale/OAuthClient.js +18 -240
  900. package/lib/Planetscale/OAuthClient.js.map +1 -1
  901. package/lib/Planetscale/Postgres/PostgresDefaultRole.d.ts +8 -0
  902. package/lib/Planetscale/Postgres/PostgresDefaultRole.d.ts.map +1 -1
  903. package/lib/Planetscale/Postgres/PostgresDefaultRole.js +17 -5
  904. package/lib/Planetscale/Postgres/PostgresDefaultRole.js.map +1 -1
  905. package/lib/Planetscale/Postgres/PostgresRole.d.ts +8 -0
  906. package/lib/Planetscale/Postgres/PostgresRole.d.ts.map +1 -1
  907. package/lib/Planetscale/Postgres/PostgresRole.js +2 -0
  908. package/lib/Planetscale/Postgres/PostgresRole.js.map +1 -1
  909. package/lib/Planetscale/Providers.d.ts +1 -1
  910. package/lib/Planetscale/Providers.d.ts.map +1 -1
  911. package/lib/Planetscale/Providers.js +2 -2
  912. package/lib/Planetscale/Providers.js.map +1 -1
  913. package/lib/Planetscale/Util.d.ts +1 -1
  914. package/lib/Planetscale/Util.d.ts.map +1 -1
  915. package/lib/Prisma/AuthProvider.d.ts +7 -15
  916. package/lib/Prisma/AuthProvider.d.ts.map +1 -1
  917. package/lib/Prisma/AuthProvider.js +54 -121
  918. package/lib/Prisma/AuthProvider.js.map +1 -1
  919. package/lib/Prisma/Compute.d.ts +7 -21
  920. package/lib/Prisma/Compute.d.ts.map +1 -1
  921. package/lib/Prisma/Compute.js +7 -21
  922. package/lib/Prisma/Compute.js.map +1 -1
  923. package/lib/Prisma/PrismaEnvironment.d.ts +1 -2
  924. package/lib/Prisma/PrismaEnvironment.d.ts.map +1 -1
  925. package/lib/Prisma/PrismaEnvironment.js +3 -8
  926. package/lib/Prisma/PrismaEnvironment.js.map +1 -1
  927. package/lib/Prisma/Providers.d.ts +3 -3
  928. package/lib/Prisma/Providers.d.ts.map +1 -1
  929. package/lib/Prisma/Providers.js +7 -7
  930. package/lib/Prisma/Providers.js.map +1 -1
  931. package/lib/Provider.d.ts +10 -2
  932. package/lib/Provider.d.ts.map +1 -1
  933. package/lib/Provider.js +9 -10
  934. package/lib/Provider.js.map +1 -1
  935. package/lib/Railway/AuditLog.d.ts +2 -2
  936. package/lib/Railway/AuditLog.d.ts.map +1 -1
  937. package/lib/Railway/AuthProvider.d.ts +19 -19
  938. package/lib/Railway/AuthProvider.d.ts.map +1 -1
  939. package/lib/Railway/AuthProvider.js +193 -127
  940. package/lib/Railway/AuthProvider.js.map +1 -1
  941. package/lib/Railway/Bucket.js +2 -2
  942. package/lib/Railway/CloudAgent.js +2 -2
  943. package/lib/Railway/Credentials.d.ts +2 -5
  944. package/lib/Railway/Credentials.d.ts.map +1 -1
  945. package/lib/Railway/Credentials.js +5 -11
  946. package/lib/Railway/Credentials.js.map +1 -1
  947. package/lib/Railway/CustomDomain.js +3 -3
  948. package/lib/Railway/Function.js +6 -6
  949. package/lib/Railway/Group.js +2 -2
  950. package/lib/Railway/LoginSession.d.ts +3 -3
  951. package/lib/Railway/LoginSession.js +5 -5
  952. package/lib/Railway/Mongo.js +13 -13
  953. package/lib/Railway/MySQL.js +13 -13
  954. package/lib/Railway/Postgres.js +13 -13
  955. package/lib/Railway/PrivateNetwork.js +2 -2
  956. package/lib/Railway/Project.d.ts +3 -3
  957. package/lib/Railway/Project.d.ts.map +1 -1
  958. package/lib/Railway/Project.js +3 -3
  959. package/lib/Railway/ProjectEnvironment.js +3 -3
  960. package/lib/Railway/Providers.d.ts +1 -1
  961. package/lib/Railway/Providers.d.ts.map +1 -1
  962. package/lib/Railway/Providers.js +2 -2
  963. package/lib/Railway/Providers.js.map +1 -1
  964. package/lib/Railway/Redis.js +5 -5
  965. package/lib/Railway/Sandbox.d.ts +6 -6
  966. package/lib/Railway/Sandbox.js +5 -5
  967. package/lib/Railway/Service.d.ts +72 -1
  968. package/lib/Railway/Service.d.ts.map +1 -1
  969. package/lib/Railway/Service.js +42 -0
  970. package/lib/Railway/Service.js.map +1 -1
  971. package/lib/Railway/ServiceDomain.d.ts +28 -2
  972. package/lib/Railway/ServiceDomain.d.ts.map +1 -1
  973. package/lib/Railway/ServiceDomain.js +134 -17
  974. package/lib/Railway/ServiceDomain.js.map +1 -1
  975. package/lib/Railway/ServiceProvider.d.ts +2 -10
  976. package/lib/Railway/ServiceProvider.d.ts.map +1 -1
  977. package/lib/Railway/ServiceProvider.js +170 -64
  978. package/lib/Railway/ServiceProvider.js.map +1 -1
  979. package/lib/Railway/TcpProxy.js +2 -2
  980. package/lib/Railway/Template.js +2 -2
  981. package/lib/Railway/Usage.js +2 -2
  982. package/lib/Railway/Variable.js +2 -2
  983. package/lib/Railway/Volume.d.ts +1 -1
  984. package/lib/Railway/Volume.d.ts.map +1 -1
  985. package/lib/Railway/Volume.js +4 -4
  986. package/lib/Railway/VolumeBackup.d.ts +2 -2
  987. package/lib/Railway/VolumeBackup.js +8 -8
  988. package/lib/Railway/local-context.d.ts +125 -0
  989. package/lib/Railway/local-context.d.ts.map +1 -0
  990. package/lib/Railway/local-context.js +254 -0
  991. package/lib/Railway/local-context.js.map +1 -0
  992. package/lib/Report.d.ts +248 -0
  993. package/lib/Report.d.ts.map +1 -0
  994. package/lib/Report.js +18 -0
  995. package/lib/Report.js.map +1 -0
  996. package/lib/Stack.d.ts +7 -6
  997. package/lib/Stack.d.ts.map +1 -1
  998. package/lib/Stack.js +2 -4
  999. package/lib/Stack.js.map +1 -1
  1000. package/lib/State/Export.d.ts +6 -4
  1001. package/lib/State/Export.d.ts.map +1 -1
  1002. package/lib/State/Export.js +13 -18
  1003. package/lib/State/Export.js.map +1 -1
  1004. package/lib/State/HttpStateStore.d.ts +1 -1
  1005. package/lib/State/HttpStateStore.d.ts.map +1 -1
  1006. package/lib/State/HttpStateStore.js +10 -6
  1007. package/lib/State/HttpStateStore.js.map +1 -1
  1008. package/lib/State/LocalState.d.ts.map +1 -1
  1009. package/lib/State/LocalState.js +6 -13
  1010. package/lib/State/LocalState.js.map +1 -1
  1011. package/lib/State/Tree.d.ts +62 -0
  1012. package/lib/State/Tree.d.ts.map +1 -0
  1013. package/lib/State/Tree.js +166 -0
  1014. package/lib/State/Tree.js.map +1 -0
  1015. package/lib/State/index.d.ts +1 -0
  1016. package/lib/State/index.d.ts.map +1 -1
  1017. package/lib/State/index.js +1 -0
  1018. package/lib/State/index.js.map +1 -1
  1019. package/lib/Telemetry/Layer.d.ts +6 -0
  1020. package/lib/Telemetry/Layer.d.ts.map +1 -1
  1021. package/lib/Telemetry/Layer.js +16 -5
  1022. package/lib/Telemetry/Layer.js.map +1 -1
  1023. package/lib/Telemetry.d.ts +5 -0
  1024. package/lib/Telemetry.d.ts.map +1 -1
  1025. package/lib/Telemetry.js +6 -1
  1026. package/lib/Telemetry.js.map +1 -1
  1027. package/lib/Test/Core.d.ts +4 -3
  1028. package/lib/Test/Core.d.ts.map +1 -1
  1029. package/lib/Test/Core.js +5 -3
  1030. package/lib/Test/Core.js.map +1 -1
  1031. package/lib/UserFacingError.d.ts +26 -0
  1032. package/lib/UserFacingError.d.ts.map +1 -0
  1033. package/lib/UserFacingError.js +25 -0
  1034. package/lib/UserFacingError.js.map +1 -0
  1035. package/lib/Util/AtomicFile.d.ts +19 -0
  1036. package/lib/Util/AtomicFile.d.ts.map +1 -0
  1037. package/lib/Util/AtomicFile.js +22 -0
  1038. package/lib/Util/AtomicFile.js.map +1 -0
  1039. package/lib/Util/ConsoleSink.d.ts +4 -0
  1040. package/lib/Util/ConsoleSink.d.ts.map +1 -0
  1041. package/lib/Util/ConsoleSink.js +24 -0
  1042. package/lib/Util/ConsoleSink.js.map +1 -0
  1043. package/lib/Util/LineBuffer.d.ts +9 -0
  1044. package/lib/Util/LineBuffer.d.ts.map +1 -0
  1045. package/lib/Util/LineBuffer.js +23 -0
  1046. package/lib/Util/LineBuffer.js.map +1 -0
  1047. package/lib/Util/Memoize.d.ts +20 -0
  1048. package/lib/Util/Memoize.d.ts.map +1 -0
  1049. package/lib/Util/Memoize.js +38 -0
  1050. package/lib/Util/Memoize.js.map +1 -0
  1051. package/lib/Util/Node.d.ts +22 -5
  1052. package/lib/Util/Node.d.ts.map +1 -1
  1053. package/lib/Util/Node.js +30 -10
  1054. package/lib/Util/Node.js.map +1 -1
  1055. package/lib/Util/PlatformServices.d.ts +6 -2
  1056. package/lib/Util/PlatformServices.d.ts.map +1 -1
  1057. package/lib/Util/PlatformServices.js +6 -2
  1058. package/lib/Util/PlatformServices.js.map +1 -1
  1059. package/lib/Util/ResourceOutput.d.ts +30 -0
  1060. package/lib/Util/ResourceOutput.d.ts.map +1 -0
  1061. package/lib/Util/ResourceOutput.js +60 -0
  1062. package/lib/Util/ResourceOutput.js.map +1 -0
  1063. package/lib/Util/Terminal.d.ts +23 -0
  1064. package/lib/Util/Terminal.d.ts.map +1 -0
  1065. package/lib/Util/Terminal.js +57 -0
  1066. package/lib/Util/Terminal.js.map +1 -0
  1067. package/lib/Util/Theme.d.ts +123 -0
  1068. package/lib/Util/Theme.d.ts.map +1 -0
  1069. package/lib/Util/Theme.js +133 -0
  1070. package/lib/Util/Theme.js.map +1 -0
  1071. package/lib/Util/interactive.d.ts +17 -12
  1072. package/lib/Util/interactive.d.ts.map +1 -1
  1073. package/lib/Util/interactive.js +81 -13
  1074. package/lib/Util/interactive.js.map +1 -1
  1075. package/lib/Util/scc.d.ts +11 -3
  1076. package/lib/Util/scc.d.ts.map +1 -1
  1077. package/lib/Util/scc.js +35 -22
  1078. package/lib/Util/scc.js.map +1 -1
  1079. package/lib/Util/tarGzip.d.ts +3 -1
  1080. package/lib/Util/tarGzip.d.ts.map +1 -1
  1081. package/lib/Util/tarGzip.js +15 -5
  1082. package/lib/Util/tarGzip.js.map +1 -1
  1083. package/lib/Website/Server.d.ts.map +1 -1
  1084. package/lib/Website/Server.js +11 -1
  1085. package/lib/Website/Server.js.map +1 -1
  1086. package/lib/index.d.ts +4 -2
  1087. package/lib/index.d.ts.map +1 -1
  1088. package/lib/index.js +4 -2
  1089. package/lib/index.js.map +1 -1
  1090. package/package.json +40 -38
  1091. package/src/AWS/AGENTS.md +1 -1
  1092. package/src/AWS/AMP/Scraper.ts +1 -1
  1093. package/src/AWS/AppRunner/Service.ts +11 -27
  1094. package/src/AWS/Assets.ts +2 -2
  1095. package/src/AWS/AuthProvider.ts +748 -429
  1096. package/src/AWS/Batch/JobDefinition.ts +11 -27
  1097. package/src/AWS/Cognito/ManagedLoginBranding.ts +339 -0
  1098. package/src/AWS/Cognito/UserPool.ts +144 -6
  1099. package/src/AWS/Cognito/index.ts +1 -0
  1100. package/src/AWS/EC2/Instance.ts +12 -28
  1101. package/src/AWS/EC2/InternetGateway.ts +1 -1
  1102. package/src/AWS/EC2/NatGateway.ts +1 -1
  1103. package/src/AWS/EC2/NetworkInterface.ts +1 -1
  1104. package/src/AWS/EC2/NetworkInterfaceAttachment.ts +1 -1
  1105. package/src/AWS/EC2/RouteTable.ts +1 -1
  1106. package/src/AWS/EC2/RouteTableAssociation.ts +1 -1
  1107. package/src/AWS/EC2/Snapshot.ts +1 -1
  1108. package/src/AWS/EC2/Subnet.ts +1 -1
  1109. package/src/AWS/EC2/Volume.ts +1 -1
  1110. package/src/AWS/EC2/VolumeAttachment.ts +1 -1
  1111. package/src/AWS/EC2/Vpc.ts +1 -1
  1112. package/src/AWS/EC2/VpcEndpoint.ts +1 -1
  1113. package/src/AWS/EC2/hosted.ts +5 -6
  1114. package/src/AWS/ECR/ImageSource.ts +4 -5
  1115. package/src/AWS/ECS/Service.ts +7 -21
  1116. package/src/AWS/ECS/Task.ts +7 -21
  1117. package/src/AWS/ElastiCache/CacheCluster.ts +323 -0
  1118. package/src/AWS/ElastiCache/ConnectCacheCluster.ts +58 -0
  1119. package/src/AWS/ElastiCache/ConnectCacheClusterHttp.ts +77 -0
  1120. package/src/AWS/ElastiCache/ConnectReplicationGroup.ts +62 -0
  1121. package/src/AWS/ElastiCache/ConnectReplicationGroupHttp.ts +110 -0
  1122. package/src/AWS/ElastiCache/ReplicationGroup.ts +594 -0
  1123. package/src/AWS/ElastiCache/SubnetGroup.ts +208 -0
  1124. package/src/AWS/ElastiCache/index.ts +7 -0
  1125. package/src/AWS/ElastiCache/internal.ts +36 -0
  1126. package/src/AWS/Environment.ts +15 -48
  1127. package/src/AWS/IAM/actions.generated.ts +1 -1
  1128. package/src/AWS/IdentityCenter/AccountAssignment.ts +7 -0
  1129. package/src/AWS/Lambda/Function.ts +26 -28
  1130. package/src/AWS/Lambda/MicrovmImage.ts +12 -28
  1131. package/src/AWS/Lambda/MicrovmProvider.ts +1 -1
  1132. package/src/AWS/Lambda/NetworkConnector.ts +1 -1
  1133. package/src/AWS/Local/DevWatchProvider.ts +10 -1
  1134. package/src/AWS/Organizations/Account.ts +18 -10
  1135. package/src/AWS/Organizations/DelegatedAdministrator.ts +7 -7
  1136. package/src/AWS/Organizations/Organization.ts +3 -5
  1137. package/src/AWS/Organizations/common.ts +17 -0
  1138. package/src/AWS/Providers.ts +16 -0
  1139. package/src/AWS/S3/Bucket.ts +1 -1
  1140. package/src/AWS/Website/StaticSite.ts +8 -4
  1141. package/src/Alchemist/Errors.ts +36 -0
  1142. package/src/Alchemist/Progress.ts +175 -0
  1143. package/src/Alchemist/Runtime.ts +40 -0
  1144. package/src/Alchemist/Session.ts +460 -0
  1145. package/src/Alchemist/index.ts +24 -0
  1146. package/src/Alchemist/routes/aws.ts +88 -0
  1147. package/src/Alchemist/routes/cloudflare.ts +188 -0
  1148. package/src/Alchemist/routes/cloudflareToken.ts +215 -0
  1149. package/src/Alchemist/routes/drift.ts +94 -0
  1150. package/src/Alchemist/routes/logs.ts +185 -0
  1151. package/src/Alchemist/routes/nuke.ts +146 -0
  1152. package/src/Alchemist/routes/profile.ts +427 -0
  1153. package/src/Alchemist/routes/provider.ts +107 -0
  1154. package/src/Alchemist/routes/stack.ts +137 -0
  1155. package/src/Alchemist/routes/state.ts +77 -0
  1156. package/src/Apply.ts +312 -173
  1157. package/src/Auth/AuthProvider.ts +416 -158
  1158. package/src/Auth/BrowserOAuth.ts +68 -0
  1159. package/src/Auth/Credentials.ts +155 -46
  1160. package/src/Auth/CredentialsCache.ts +57 -0
  1161. package/src/Auth/Demand.ts +208 -83
  1162. package/src/Auth/Env.ts +38 -14
  1163. package/src/Auth/Inspect.ts +129 -0
  1164. package/src/Auth/Lock.ts +26 -11
  1165. package/src/Auth/OAuthFlow.ts +551 -0
  1166. package/src/Auth/Paths.ts +30 -0
  1167. package/src/Auth/Profile.ts +768 -164
  1168. package/src/Auth/Resolve.ts +136 -0
  1169. package/src/Auth/StoredAuthProvider.ts +291 -0
  1170. package/src/Auth/index.ts +1 -0
  1171. package/src/Axiom/AuthProvider.ts +112 -314
  1172. package/src/Axiom/Credentials.ts +5 -13
  1173. package/src/Axiom/Providers.ts +3 -3
  1174. package/src/Bundle/Bundle.ts +3 -5
  1175. package/src/Cli/CliKit/CliKit.ts +183 -0
  1176. package/src/Cli/CliKit/index.ts +50 -0
  1177. package/src/Cli/CliKit/interaction.ts +19 -0
  1178. package/src/Cli/CliKit/layer.ts +50 -0
  1179. package/src/Cli/DevOptions.ts +19 -0
  1180. package/src/Cli/Format.ts +31 -0
  1181. package/src/Cli/GlobalLog.ts +147 -0
  1182. package/src/Cli/LoggingCli.ts +312 -108
  1183. package/src/Cli/ModeTag.ts +1 -1
  1184. package/src/Cli/NamespaceTree.ts +94 -21
  1185. package/src/Cli/PlainCliFormatter.ts +75 -0
  1186. package/src/Cli/PropertyDiff.ts +229 -0
  1187. package/src/Cli/checkVersion.ts +19 -6
  1188. package/src/Cli/commands/aws.ts +67 -100
  1189. package/src/Cli/commands/cloudflare.ts +195 -435
  1190. package/src/Cli/commands/compat.ts +25 -0
  1191. package/src/Cli/commands/confirm.ts +46 -0
  1192. package/src/Cli/commands/deploy.ts +225 -212
  1193. package/src/Cli/commands/dev.ts +83 -38
  1194. package/src/Cli/commands/drift.ts +107 -0
  1195. package/src/Cli/commands/errors.ts +162 -0
  1196. package/src/Cli/commands/flags.ts +199 -0
  1197. package/src/Cli/commands/instrument.ts +18 -0
  1198. package/src/Cli/commands/logs.ts +125 -143
  1199. package/src/Cli/commands/nuke.ts +138 -811
  1200. package/src/Cli/commands/profile/commands.ts +482 -0
  1201. package/src/Cli/commands/profile/flows.ts +218 -0
  1202. package/src/Cli/commands/profile/hub.ts +191 -0
  1203. package/src/Cli/commands/profile/index.ts +1 -0
  1204. package/src/Cli/commands/provider.ts +63 -0
  1205. package/src/Cli/commands/render.ts +121 -0
  1206. package/src/Cli/commands/state.ts +250 -387
  1207. package/src/Cli/components/types.ts +141 -0
  1208. package/src/Cli/components/ui/Data.tsx +44 -0
  1209. package/src/Cli/components/ui/Environment.tsx +86 -0
  1210. package/src/Cli/components/ui/Feedback.tsx +269 -0
  1211. package/src/Cli/components/ui/Interactive.tsx +1062 -0
  1212. package/src/Cli/components/ui/Layout.tsx +252 -0
  1213. package/src/Cli/components/ui/Live.tsx +131 -0
  1214. package/src/Cli/components/ui/ProgressBar.tsx +57 -0
  1215. package/src/Cli/components/ui/Transcript.tsx +42 -0
  1216. package/src/Cli/components/ui/Typography.tsx +83 -0
  1217. package/src/Cli/components/ui/index.ts +68 -0
  1218. package/src/Cli/components/view/ApprovePlan.tsx +101 -0
  1219. package/src/Cli/components/view/Help.tsx +381 -0
  1220. package/src/Cli/components/view/Logo.tsx +168 -0
  1221. package/src/Cli/components/view/Nuke.tsx +258 -0
  1222. package/src/Cli/components/view/PlanDecision.tsx +80 -0
  1223. package/src/Cli/components/view/PlanRow.tsx +39 -0
  1224. package/src/Cli/components/view/PlanTree.ts +354 -0
  1225. package/src/Cli/components/view/PlanView.tsx +825 -0
  1226. package/src/Cli/components/view/Profile.tsx +446 -0
  1227. package/src/Cli/components/view/ProfileDashboard.tsx +929 -0
  1228. package/src/Cli/components/view/Prompts.tsx +793 -0
  1229. package/src/Cli/components/view/Runtime.tsx +975 -0
  1230. package/src/Cli/components/view/SigilCli.tsx +186 -0
  1231. package/src/Cli/components/view/StackOutputs.tsx +38 -0
  1232. package/src/Cli/components/view/StateExplorer.tsx +1179 -0
  1233. package/src/Cli/components/view/statusStyle.ts +97 -0
  1234. package/src/Cli/components/view/usePlanPresentation.ts +82 -0
  1235. package/src/Cli/components/view/usePlanViewport.ts +172 -0
  1236. package/src/Cli/exec.ts +278 -32
  1237. package/src/Cli/main.ts +189 -42
  1238. package/src/Cli/selectCli.ts +30 -15
  1239. package/src/Cloudflare/ApiToken/UserApiToken.ts +1 -1
  1240. package/src/Cloudflare/Auth/AuthConfig.ts +117 -0
  1241. package/src/Cloudflare/Auth/AuthProvider.ts +712 -608
  1242. package/src/Cloudflare/Auth/OAuthClient.ts +40 -366
  1243. package/src/Cloudflare/Auth/OAuthScopes.ts +921 -0
  1244. package/src/Cloudflare/Auth/TokenPolicy.ts +79 -0
  1245. package/src/Cloudflare/CloudflareEnvironment.ts +7 -17
  1246. package/src/Cloudflare/Containers/Container.ts +12 -24
  1247. package/src/Cloudflare/Containers/ContainerApplication.ts +12 -27
  1248. package/src/Cloudflare/Credentials.ts +18 -72
  1249. package/src/Cloudflare/EdgeSession.ts +2 -3
  1250. package/src/Cloudflare/Email/AllowPolicy.ts +9 -3
  1251. package/src/Cloudflare/Email/ImpersonationRegistryEntry.ts +9 -1
  1252. package/src/Cloudflare/Email/TrustedDomain.ts +9 -1
  1253. package/src/Cloudflare/Logs.ts +16 -10
  1254. package/src/Cloudflare/Pages/Project.ts +1 -1
  1255. package/src/Cloudflare/Providers.ts +2 -2
  1256. package/src/Cloudflare/StateStore/Api.ts +2 -2
  1257. package/src/Cloudflare/StateStore/CredentialsFile.ts +11 -6
  1258. package/src/Cloudflare/StateStore/State.ts +247 -194
  1259. package/src/Cloudflare/Vectorize/SearchIndexHttpClient.ts +2 -2
  1260. package/src/Cloudflare/Website/Nextjs.ts +4 -15
  1261. package/src/Cloudflare/Website/Vocs.ts +3 -7
  1262. package/src/Cloudflare/Workers/Assets.ts +120 -44
  1263. package/src/Cloudflare/Workers/BrowserHttpClient.ts +10 -3
  1264. package/src/Cloudflare/Workers/CloudflareTracer.ts +113 -0
  1265. package/src/Cloudflare/Workers/Compatibility.ts +37 -7
  1266. package/src/Cloudflare/Workers/DurableObject.ts +50 -4
  1267. package/src/Cloudflare/Workers/DurableObjectBridge.ts +8 -0
  1268. package/src/Cloudflare/Workers/DurableObjectState.ts +46 -9
  1269. package/src/Cloudflare/Workers/DurableObjectStorage.ts +25 -12
  1270. package/src/Cloudflare/Workers/LocalWorkerProvider.ts +172 -58
  1271. package/src/Cloudflare/Workers/RpcWorker.ts +44 -18
  1272. package/src/Cloudflare/Workers/Source.ts +9 -1
  1273. package/src/Cloudflare/Workers/Sources/Python.ts +18 -12
  1274. package/src/Cloudflare/Workers/Sources/Rolldown.ts +1 -1
  1275. package/src/Cloudflare/Workers/Sources/Vite.ts +42 -34
  1276. package/src/Cloudflare/Workers/Telemetry.ts +170 -0
  1277. package/src/Cloudflare/Workers/ViteBuildChildRunner.ts +6 -1
  1278. package/src/Cloudflare/Workers/ViteChild.shared.ts +1 -0
  1279. package/src/Cloudflare/Workers/ViteChild.ts +21 -19
  1280. package/src/Cloudflare/Workers/ViteChildRunner.ts +2 -1
  1281. package/src/Cloudflare/Workers/Worker.ts +101 -50
  1282. package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +29 -0
  1283. package/src/Cloudflare/Workers/WorkerLoader.ts +40 -8
  1284. package/src/Cloudflare/Workers/WorkerProvider.ts +65 -29
  1285. package/src/Cloudflare/Workers/cloudflare_workers.ts +5 -1
  1286. package/src/Cloudflare/Workers/index.ts +1 -0
  1287. package/src/Cloudflare/Workflows/Workflow.ts +105 -0
  1288. package/src/Cloudflare/Workflows/WorkflowBridge.ts +5 -3
  1289. package/src/Command/Command.ts +11 -3
  1290. package/src/Command/Dev.ts +42 -9
  1291. package/src/Docker/BuildHash.ts +75 -8
  1292. package/src/Docker/Docker.ts +7 -2
  1293. package/src/Docker/Service.ts +7 -21
  1294. package/src/Docker/ServiceImage.ts +4 -5
  1295. package/src/{Sync.ts → Drift.ts} +161 -59
  1296. package/src/Drizzle/Schema.ts +5 -7
  1297. package/src/Fly/AuthProvider.ts +44 -232
  1298. package/src/Fly/CheckpointHttp.ts +5 -2
  1299. package/src/Fly/Credentials.ts +29 -16
  1300. package/src/Fly/DecryptHttp.ts +5 -2
  1301. package/src/Fly/EncryptHttp.ts +5 -2
  1302. package/src/Fly/ExecHttp.ts +5 -2
  1303. package/src/Fly/GetSecretHttp.ts +5 -2
  1304. package/src/Fly/ListSecretsHttp.ts +5 -2
  1305. package/src/Fly/Machine.ts +67 -20
  1306. package/src/Fly/Providers.ts +2 -2
  1307. package/src/Fly/Service.ts +44 -20
  1308. package/src/Fly/SignHttp.ts +5 -2
  1309. package/src/Fly/VerifyHttp.ts +5 -2
  1310. package/src/Fly/WriteSecretHttp.ts +5 -2
  1311. package/src/Fly/replicas.ts +47 -1
  1312. package/src/GitHub/AuthProvider.ts +225 -143
  1313. package/src/GitHub/Credentials.ts +6 -13
  1314. package/src/GitHub/Providers.ts +4 -4
  1315. package/src/Hetzner/AuthProvider.ts +50 -238
  1316. package/src/Hetzner/Credentials.ts +4 -12
  1317. package/src/Hetzner/Providers.ts +2 -2
  1318. package/src/Interaction.ts +354 -0
  1319. package/src/Kubernetes/ClusterAdapter.ts +4 -5
  1320. package/src/Kubernetes/Deployment.ts +7 -21
  1321. package/src/Kubernetes/Job.ts +7 -21
  1322. package/src/Local/DevLog.ts +135 -0
  1323. package/src/Local/LocalProvider.ts +3 -3
  1324. package/src/Local/RpcServer.ts +11 -0
  1325. package/src/Local/RpcServerEnvironment.ts +3 -2
  1326. package/src/Local/RpcSpawner.ts +161 -78
  1327. package/src/Neon/AuthProvider.ts +31 -203
  1328. package/src/Neon/Credentials.ts +4 -12
  1329. package/src/Neon/Providers.ts +2 -2
  1330. package/src/Nuke.ts +463 -0
  1331. package/src/Plan.ts +920 -708
  1332. package/src/Planetscale/AuthProvider.ts +397 -324
  1333. package/src/Planetscale/Credentials.ts +21 -19
  1334. package/src/Planetscale/OAuthClient.ts +34 -328
  1335. package/src/Planetscale/Postgres/PostgresDefaultRole.ts +27 -5
  1336. package/src/Planetscale/Postgres/PostgresRole.ts +12 -0
  1337. package/src/Planetscale/Providers.ts +2 -2
  1338. package/src/Planetscale/Util.ts +1 -1
  1339. package/src/Prisma/AuthProvider.ts +62 -240
  1340. package/src/Prisma/Compute.ts +7 -21
  1341. package/src/Prisma/PrismaEnvironment.ts +6 -14
  1342. package/src/Prisma/Providers.ts +7 -7
  1343. package/src/Provider.ts +12 -13
  1344. package/src/Railway/AuthProvider.ts +291 -235
  1345. package/src/Railway/Bucket.ts +6 -6
  1346. package/src/Railway/CloudAgent.ts +4 -4
  1347. package/src/Railway/Credentials.ts +5 -14
  1348. package/src/Railway/CustomDomain.ts +5 -5
  1349. package/src/Railway/Function.ts +10 -10
  1350. package/src/Railway/Group.ts +2 -2
  1351. package/src/Railway/LoginSession.ts +5 -5
  1352. package/src/Railway/Mongo.ts +19 -19
  1353. package/src/Railway/MySQL.ts +19 -19
  1354. package/src/Railway/Postgres.ts +19 -19
  1355. package/src/Railway/PrivateNetwork.ts +2 -2
  1356. package/src/Railway/Project.ts +7 -7
  1357. package/src/Railway/ProjectEnvironment.ts +7 -7
  1358. package/src/Railway/Providers.ts +2 -2
  1359. package/src/Railway/Redis.ts +9 -9
  1360. package/src/Railway/Sandbox.ts +10 -10
  1361. package/src/Railway/Service.ts +72 -1
  1362. package/src/Railway/ServiceDomain.ts +253 -27
  1363. package/src/Railway/ServiceProvider.ts +234 -87
  1364. package/src/Railway/TcpProxy.ts +4 -4
  1365. package/src/Railway/Template.ts +12 -12
  1366. package/src/Railway/Usage.ts +2 -2
  1367. package/src/Railway/Variable.ts +2 -2
  1368. package/src/Railway/Volume.ts +4 -4
  1369. package/src/Railway/VolumeBackup.ts +11 -11
  1370. package/src/Railway/local-context.ts +333 -0
  1371. package/src/Report.ts +365 -0
  1372. package/src/Stack.ts +12 -8
  1373. package/src/State/Export.ts +28 -47
  1374. package/src/State/HttpStateStore.ts +15 -8
  1375. package/src/State/LocalState.ts +6 -16
  1376. package/src/State/Tree.ts +277 -0
  1377. package/src/State/index.ts +1 -0
  1378. package/src/Telemetry/Layer.ts +16 -5
  1379. package/src/Telemetry.ts +6 -1
  1380. package/src/Test/Core.ts +10 -4
  1381. package/src/UserFacingError.ts +35 -0
  1382. package/src/Util/AtomicFile.ts +36 -0
  1383. package/src/Util/ConsoleSink.ts +23 -0
  1384. package/src/Util/LineBuffer.ts +20 -0
  1385. package/src/Util/Memoize.ts +48 -0
  1386. package/src/Util/Node.ts +35 -14
  1387. package/src/Util/PlatformServices.ts +11 -1
  1388. package/src/Util/ResourceOutput.ts +77 -0
  1389. package/src/Util/Terminal.ts +81 -0
  1390. package/src/Util/Theme.ts +150 -0
  1391. package/src/Util/interactive.ts +103 -16
  1392. package/src/Util/scc.ts +43 -23
  1393. package/src/Util/tarGzip.ts +33 -5
  1394. package/src/Website/Server.ts +16 -1
  1395. package/src/index.ts +4 -2
  1396. package/lib/Cli/Cli.d.ts +0 -21
  1397. package/lib/Cli/Cli.d.ts.map +0 -1
  1398. package/lib/Cli/Cli.js +0 -5
  1399. package/lib/Cli/Cli.js.map +0 -1
  1400. package/lib/Cli/Event.d.ts +0 -29
  1401. package/lib/Cli/Event.d.ts.map +0 -1
  1402. package/lib/Cli/Event.js +0 -1
  1403. package/lib/Cli/Event.js.map +0 -1
  1404. package/lib/Cli/commands/_shared.d.ts +0 -138
  1405. package/lib/Cli/commands/_shared.d.ts.map +0 -1
  1406. package/lib/Cli/commands/_shared.js +0 -298
  1407. package/lib/Cli/commands/_shared.js.map +0 -1
  1408. package/lib/Cli/commands/login.d.ts +0 -14
  1409. package/lib/Cli/commands/login.d.ts.map +0 -1
  1410. package/lib/Cli/commands/login.js +0 -115
  1411. package/lib/Cli/commands/login.js.map +0 -1
  1412. package/lib/Cli/commands/profile.d.ts +0 -25
  1413. package/lib/Cli/commands/profile.d.ts.map +0 -1
  1414. package/lib/Cli/commands/profile.js +0 -83
  1415. package/lib/Cli/commands/profile.js.map +0 -1
  1416. package/lib/Cli/commands/sync.d.ts +0 -22
  1417. package/lib/Cli/commands/sync.d.ts.map +0 -1
  1418. package/lib/Cli/commands/sync.js +0 -64
  1419. package/lib/Cli/commands/sync.js.map +0 -1
  1420. package/lib/Cli/commands/tail.d.ts +0 -9
  1421. package/lib/Cli/commands/tail.d.ts.map +0 -1
  1422. package/lib/Cli/commands/tail.js +0 -97
  1423. package/lib/Cli/commands/tail.js.map +0 -1
  1424. package/lib/Cli/tui/InkCLI.d.ts +0 -4
  1425. package/lib/Cli/tui/InkCLI.d.ts.map +0 -1
  1426. package/lib/Cli/tui/InkCLI.js +0 -53
  1427. package/lib/Cli/tui/InkCLI.js.map +0 -1
  1428. package/lib/Cli/tui/components/ApprovePlan.d.ts +0 -9
  1429. package/lib/Cli/tui/components/ApprovePlan.d.ts.map +0 -1
  1430. package/lib/Cli/tui/components/ApprovePlan.js +0 -21
  1431. package/lib/Cli/tui/components/ApprovePlan.js.map +0 -1
  1432. package/lib/Cli/tui/components/Nuke.d.ts +0 -36
  1433. package/lib/Cli/tui/components/Nuke.d.ts.map +0 -1
  1434. package/lib/Cli/tui/components/Nuke.js +0 -132
  1435. package/lib/Cli/tui/components/Nuke.js.map +0 -1
  1436. package/lib/Cli/tui/components/Plan.d.ts +0 -8
  1437. package/lib/Cli/tui/components/Plan.d.ts.map +0 -1
  1438. package/lib/Cli/tui/components/Plan.js +0 -87
  1439. package/lib/Cli/tui/components/Plan.js.map +0 -1
  1440. package/lib/Cli/tui/components/PlanProgress.d.ts +0 -55
  1441. package/lib/Cli/tui/components/PlanProgress.d.ts.map +0 -1
  1442. package/lib/Cli/tui/components/PlanProgress.js +0 -292
  1443. package/lib/Cli/tui/components/PlanProgress.js.map +0 -1
  1444. package/lib/Sync.d.ts +0 -109
  1445. package/lib/Sync.d.ts.map +0 -1
  1446. package/lib/Sync.js.map +0 -1
  1447. package/lib/Util/Clank.d.ts +0 -45
  1448. package/lib/Util/Clank.d.ts.map +0 -1
  1449. package/lib/Util/Clank.js +0 -79
  1450. package/lib/Util/Clank.js.map +0 -1
  1451. package/src/Cli/Cli.ts +0 -23
  1452. package/src/Cli/Event.ts +0 -51
  1453. package/src/Cli/commands/_shared.ts +0 -498
  1454. package/src/Cli/commands/login.ts +0 -169
  1455. package/src/Cli/commands/profile.ts +0 -132
  1456. package/src/Cli/commands/sync.ts +0 -123
  1457. package/src/Cli/commands/tail.ts +0 -155
  1458. package/src/Cli/tui/InkCLI.tsx +0 -69
  1459. package/src/Cli/tui/components/ApprovePlan.tsx +0 -44
  1460. package/src/Cli/tui/components/Nuke.tsx +0 -273
  1461. package/src/Cli/tui/components/Plan.tsx +0 -211
  1462. package/src/Cli/tui/components/PlanProgress.tsx +0 -455
  1463. package/src/Util/Clank.ts +0 -103
@@ -1,9 +1,17 @@
1
+ import { cachedFunction } from "../Util/cached-function.ts";
2
+ import * as Config from "effect/Config";
1
3
  import * as Context from "effect/Context";
2
4
  import * as Effect from "effect/Effect";
5
+ import * as FileSystem from "effect/FileSystem";
3
6
  import * as Layer from "effect/Layer";
7
+ import * as Option from "effect/Option";
8
+ import * as Path from "effect/Path";
4
9
  import * as Schema from "effect/Schema";
10
+
5
11
  import * as Semaphore from "effect/Semaphore";
6
- import { withLock } from "./Lock.ts";
12
+ import { Interaction } from "../Interaction.ts";
13
+ import { UserFacingError } from "../UserFacingError.ts";
14
+ import { withProfileCredentialsLock } from "./Lock.ts";
7
15
 
8
16
  /**
9
17
  * Canonical web host for OAuth provider-agnostic landing pages
@@ -16,16 +24,6 @@ export const AUTH_LANDING_HOST = "https://alchemy.run";
16
24
  export const AUTH_SUCCESS_URL = `${AUTH_LANDING_HOST}/auth/success`;
17
25
  export const AUTH_ERROR_URL = `${AUTH_LANDING_HOST}/auth/error`;
18
26
 
19
- /**
20
- * Methods on an {@link AuthProviderImpl} that mutate (or could trigger
21
- * mutation of) on-disk credentials. The factory wraps these in a
22
- * cross-process file lock keyed by `(profileName, providerName)` so that
23
- * concurrent processes never refresh / write credentials simultaneously.
24
- *
25
- * `prettyPrint` is intentionally excluded: it's read-only display.
26
- */
27
- const LOCKED_METHODS = new Set(["read", "login", "logout", "configure"]);
28
-
29
27
  /**
30
28
  * Methods that may drive an interactive flow (prompts, browser-based
31
29
  * OAuth, etc.). A process-wide mutex serializes these across providers
@@ -33,17 +31,56 @@ const LOCKED_METHODS = new Set(["read", "login", "logout", "configure"]);
33
31
  * before Planetscale's begins — even when the two auth provider Layers
34
32
  * are built in parallel as part of a single `providers()` Layer.
35
33
  *
36
- * The clack prompt wrapper in `Util/Clank.ts` enforces per-prompt
37
- * serialization; this mutex enforces per-flow serialization so the user
38
- * sees one provider's prompts grouped together rather than interleaved.
34
+ * The interactive renderer enforces per-prompt serialization; this mutex
35
+ * enforces per-flow serialization so the user sees one provider's prompts
36
+ * grouped together rather than interleaved.
39
37
  */
40
- const INTERACTIVE_METHODS = new Set(["login", "configure"]);
41
38
  const interactiveMutex = Semaphore.makeUnsafe(1);
42
39
 
43
40
  export class AuthError extends Schema.TaggedError<AuthError>()("AuthError", {
44
41
  message: Schema.String,
45
42
  cause: Schema.optional(Schema.Defect()),
46
- }) {}
43
+ }) {
44
+ readonly [UserFacingError] = true;
45
+ }
46
+
47
+ /**
48
+ * Stored credentials exist (or are expected) but cannot be used until the
49
+ * user re-authenticates: missing values, an expired/rotated
50
+ * token, or a session the provider can no longer refresh silently. The
51
+ * profile UI renders this as "needs re-login" instead of a generic error,
52
+ * and callers match it with `Effect.catchTag("NeedsReauth", ...)` — never
53
+ * by inspecting the message.
54
+ */
55
+ export class NeedsReauth extends Schema.TaggedError<NeedsReauth>()(
56
+ "NeedsReauth",
57
+ {
58
+ provider: Schema.String,
59
+ profile: Schema.String,
60
+ message: Schema.String,
61
+ cause: Schema.optional(Schema.Defect()),
62
+ },
63
+ ) {
64
+ readonly [UserFacingError] = true;
65
+ }
66
+
67
+ /**
68
+ * Standard remediation hint appended to stored-credential errors
69
+ * ("credentials not found", "refresh failed", ...). Deliberately generic —
70
+ * the explicit command is correct from any surface, including inside the
71
+ * profile dashboard (where `r` is merely the shortcut for it). Centralized
72
+ * so the phrasing lives in one place; surface-aware wording can layer on
73
+ * top later without touching call sites.
74
+ */
75
+ export const refreshHint = (provider: string, profileName: string): string =>
76
+ `Run \`alchemy profile refresh --profile ${profileName} --provider ${provider}\`.`;
77
+
78
+ /** {@link refreshHint}'s sibling for reconfiguration. */
79
+ export const reconfigureHint = (
80
+ provider: string,
81
+ profileName: string,
82
+ ): string =>
83
+ `Run \`alchemy profile edit --profile ${profileName} --reconfigure ${provider}\` to reconfigure.`;
47
84
 
48
85
  export class AuthProviders extends Context.Service<
49
86
  AuthProviders,
@@ -53,203 +90,420 @@ export class AuthProviders extends Context.Service<
53
90
  >()("AuthProviders") {}
54
91
 
55
92
  /**
56
- * Context passed to {@link AuthProviderImpl.configure}.
93
+ * Declares one environment variable a provider's {@link AuthProviderImpl.readEnvironment}
94
+ * consumes. Profiles are not available in CI — environment variables are the
95
+ * only CI credential source — so this metadata is the machine-readable
96
+ * contract for "what must CI set": rendered in docs, surfaced by the CLI,
97
+ * and available to tooling through the {@link AuthProviders} registry.
57
98
  */
58
- export interface ConfigureContext {
99
+ export const EnvironmentVariable = Schema.Struct({
100
+ /** Environment variable name, e.g. `CLOUDFLARE_API_TOKEN`. */
101
+ name: Schema.String,
102
+ /** What the variable configures and when it applies. */
103
+ description: Schema.optional(Schema.String),
104
+ /**
105
+ * Whether credential resolution fails when neither this variable nor one
106
+ * of its {@link alternatives} is set. Use `description` to explain
107
+ * conditional requirements (e.g. "required unless X is set").
108
+ */
109
+ required: Schema.Boolean,
110
+ /** Holds a secret — display surfaces must redact its value. */
111
+ secret: Schema.optional(Schema.Boolean),
59
112
  /**
60
- * `true` when running in a CI/CD environment (resolved from the `CI`
61
- * env/config). Providers MUST NOT prompt interactively when `ci` is true;
62
- * they should pick a non-interactive default (typically
63
- * `{ method: "env" }`) so unattended runs work.
113
+ * Alternative variable names that satisfy the same requirement, in
114
+ * precedence order after {@link name} (e.g. `AWS_DEFAULT_REGION` for
115
+ * `AWS_REGION`).
64
116
  */
65
- readonly ci: boolean;
117
+ alternatives: Schema.optional(Schema.Array(Schema.String)),
118
+ });
119
+
120
+ export type EnvironmentVariable = typeof EnvironmentVariable.Type;
66
121
 
122
+ const EnvironmentVariables = Schema.Array(EnvironmentVariable);
123
+
124
+ /** Render a one-line summary of a provider's environment contract. */
125
+ export const describeEnvironment = (
126
+ environment: ReadonlyArray<EnvironmentVariable>,
127
+ ): string =>
128
+ environment
129
+ .map((v) => {
130
+ const names = [v.name, ...(v.alternatives ?? [])].join(" | ");
131
+ return v.required ? names : `[${names}]`;
132
+ })
133
+ .join(", ");
134
+
135
+ /**
136
+ * The variable names a provider's environment resolution would consume, or
137
+ * `undefined` when the declared contract is not fully satisfied (some
138
+ * required variable has no non-empty value). Reads through the ambient
139
+ * `ConfigProvider` — the process environment plus `.env` / `--env-file` —
140
+ * so it sees exactly what `readEnvironment` will. Environment credentials
141
+ * take precedence over any profile, CI or not; the returned names tell the
142
+ * user exactly which keys won.
143
+ */
144
+ export const presentEnvironment = (
145
+ environment: ReadonlyArray<EnvironmentVariable>,
146
+ ) =>
147
+ Effect.gen(function* () {
148
+ const used: string[] = [];
149
+ for (const variable of environment) {
150
+ let found: string | undefined;
151
+ for (const name of [variable.name, ...(variable.alternatives ?? [])]) {
152
+ const value = yield* Config.option(Config.string(name));
153
+ if (Option.isSome(value) && value.value !== "") {
154
+ found = name;
155
+ break;
156
+ }
157
+ }
158
+ if (found !== undefined) used.push(found);
159
+ else if (variable.required) return undefined;
160
+ }
161
+ return used.length > 0 ? used : undefined;
162
+ });
163
+
164
+ /**
165
+ * One rendered line of a provider's credential details: `key: value`.
166
+ * Values must arrive pre-redacted (see `displayRedacted`) — the display
167
+ * layer renders them verbatim.
168
+ */
169
+ export interface ProviderDetailLine {
170
+ readonly key: string;
171
+ readonly value: string;
172
+ }
173
+
174
+ /**
175
+ * Structured result of {@link AuthProviderImpl.details} — what
176
+ * `alchemy profile show` and the dashboard render for a connected
177
+ * provider. Replaces the old `prettyPrint` Console-capture contract.
178
+ */
179
+ export interface ProviderDetails {
180
+ readonly lines: ReadonlyArray<ProviderDetailLine>;
181
+ }
182
+
183
+ /**
184
+ * One input a provider's flag-driven (non-interactive) configuration
185
+ * accepts — the machine-readable half of `alchemy profile edit --add
186
+ * <provider> --method <m> --set <name>=<value>`.
187
+ */
188
+ export interface ConfigureField {
189
+ /** `--set` key and, for stored-credential providers, the stored JSON property. */
190
+ readonly name: string;
191
+ /** Human prompt label, e.g. "Cloudflare API Token". */
192
+ readonly label: string;
193
+ /** Secondary guidance shown beneath the interactive input. */
194
+ readonly description?: string;
195
+ /** Masked during prompts and redacted in details. @default false */
196
+ readonly secret?: boolean;
197
+ /** May be omitted. @default false */
198
+ readonly optional?: boolean;
199
+ readonly placeholder?: string;
200
+ readonly defaultValue?: string;
201
+ /** Return an error message for an invalid value, undefined when valid. */
202
+ readonly validate?: (value: string) => string | undefined;
203
+ }
204
+
205
+ /**
206
+ * The flag-driven configuration contract a provider exposes per method:
207
+ * which `--method` names are accepted and which `--set` fields each one
208
+ * takes. Interactive-only methods (browser OAuth, SSO) simply don't
209
+ * appear here.
210
+ */
211
+ export interface ConfigureMethod {
67
212
  /**
68
- * Optional human-readable explanation of WHY credentials are being
69
- * demanded right now — e.g. which resources in a dev plan require the
70
- * real cloud (see `Auth/Demand.ts`). Interactive `configure`
71
- * implementations should display it before their first prompt so the
72
- * user knows what triggered the flow.
213
+ * `--method` value. Always the same literal the provider persists as the
214
+ * config's `method` (`"stored"`, `"sso"`, `"local"`, `"env"`), so the
215
+ * flag and the credentials file speak one vocabulary.
73
216
  */
74
- readonly reason?: string;
217
+ readonly method: string;
218
+ readonly fields: ReadonlyArray<ConfigureField>;
75
219
  }
76
220
 
77
221
  export interface AuthProviderImpl<
78
- Config extends { method: string } = any,
79
- Credentials = any,
80
- ConfigureReq = any,
81
- LoginReq = any,
82
- LogoutReq = any,
83
- PrettyPrintReq = any,
84
- ReadReq = any,
222
+ Config extends { method: string } = { method: string },
223
+ Credentials = unknown,
224
+ R = never,
85
225
  > {
226
+ /**
227
+ * Schema for the provider-owned `values` object ({@link Config}). Stored
228
+ * entries are user-editable JSON that may also come from a newer or
229
+ * older alchemy, so every load decodes against this schema — an invalid
230
+ * entry fails with a reconfigure hint instead of reaching provider code
231
+ * that matches exhaustively on `method`.
232
+ */
233
+ readonly configSchema: Schema.Codec<Config>;
234
+
86
235
  configure(
87
236
  profileName: string,
88
- ctx: ConfigureContext,
89
- ): Effect.Effect<Config, AuthError, ConfigureReq>;
237
+ currentConfig?: Config,
238
+ ): Effect.Effect<Config, AuthError, R | Interaction>;
239
+
240
+ /**
241
+ * Flag-driven configuration for scripts and agents: validated `--set`
242
+ * values for one of the methods declared in {@link configureMethods}.
243
+ * Optional — interactive-only providers omit it.
244
+ */
245
+ configureWith?(
246
+ profileName: string,
247
+ input: {
248
+ readonly method: string;
249
+ readonly values: Record<string, string>;
250
+ },
251
+ ): Effect.Effect<Config, AuthError, R | Interaction>;
252
+
253
+ /**
254
+ * The methods {@link configureWith} accepts and their fields. Required
255
+ * whenever `configureWith` is implemented so the CLI can validate and
256
+ * document the flags.
257
+ */
258
+ readonly configureMethods?: ReadonlyArray<ConfigureMethod>;
90
259
 
91
260
  login(
92
261
  profileName: string,
93
262
  config: Config,
94
- ): Effect.Effect<void, AuthError, LoginReq>;
263
+ updateConfig?: (config: Config) => Effect.Effect<void, AuthError>,
264
+ ): Effect.Effect<Config | void, AuthError, R | Interaction>;
95
265
 
96
266
  logout(
97
267
  profileName: string,
98
268
  config: Config,
99
- ): Effect.Effect<void, AuthError, LogoutReq>;
269
+ ): Effect.Effect<void, AuthError, R | Interaction>;
100
270
 
101
- prettyPrint(
271
+ /**
272
+ * Structured credential details for display. Fails with
273
+ * {@link NeedsReauth} when stored credentials exist but require
274
+ * re-authentication, so the UI can render "needs re-login" instead of a
275
+ * generic error.
276
+ */
277
+ details(
102
278
  profileName: string,
103
279
  config: Config,
104
- ): Effect.Effect<void, AuthError, PrettyPrintReq>;
280
+ updateConfig?: (config: Config) => Effect.Effect<void, AuthError>,
281
+ ): Effect.Effect<ProviderDetails, AuthError | NeedsReauth, R | Interaction>;
105
282
 
283
+ /**
284
+ * Resolve credentials from the profile values, silently refreshing when the
285
+ * provider supports it. MUST be non-interactive — this is the only method
286
+ * (with {@link readEnvironment}) that child processes exercise, and their
287
+ * graphs carry no interaction services. When re-authentication is needed,
288
+ * fail with {@link NeedsReauth} instead of prompting.
289
+ */
106
290
  read(
107
291
  profileName: string,
108
292
  config: Config,
109
- ): Effect.Effect<Credentials, AuthError, ReadReq>;
293
+ updateConfig?: (config: Config) => Effect.Effect<void, AuthError>,
294
+ ): Effect.Effect<Credentials, AuthError | NeedsReauth, R>;
295
+
296
+ /**
297
+ * Resolve credentials directly from the process environment for CI.
298
+ * This never creates, selects, or mutates an Alchemy profile.
299
+ */
300
+ readonly readEnvironment?: Effect.Effect<Credentials, AuthError, R>;
301
+
302
+ /**
303
+ * The environment variables {@link readEnvironment} consumes. Required
304
+ * whenever `readEnvironment` is implemented — profiles do not exist in CI,
305
+ * so this list is the provider's entire CI configuration contract. Names
306
+ * only, never values.
307
+ */
308
+ readonly environment?: ReadonlyArray<EnvironmentVariable>;
110
309
  }
111
310
 
112
311
  export interface AuthProvider<
113
- Config extends { method: string } = any,
114
- Credentials = any,
115
- > extends AuthProviderImpl<
116
- Config,
117
- Credentials,
118
- never,
119
- never,
120
- never,
121
- never,
122
- never
123
- > {
312
+ Config extends { method: string } = { method: string },
313
+ Credentials = unknown,
314
+ > extends AuthProviderImpl<Config, Credentials> {
124
315
  readonly kind: "AuthProvider";
125
316
  readonly name: string;
317
+ /** Log each environment contract once per built provider layer. */
318
+ readonly logEnvironmentCredentials: (
319
+ used: ReadonlyArray<string>,
320
+ ) => Effect.Effect<void>;
321
+ /**
322
+ * The provider's declared CI environment contract. Empty when the
323
+ * provider does not support environment credentials.
324
+ */
325
+ readonly environment: ReadonlyArray<EnvironmentVariable>;
326
+ /**
327
+ * Decode raw provider values against {@link AuthProviderImpl.configSchema}.
328
+ * Fails with an {@link AuthError} carrying the reconfigure hint, so every
329
+ * consumer of stored configuration reports invalid entries the same way.
330
+ */
331
+ decodeConfig(
332
+ profileName: string,
333
+ config: unknown,
334
+ ): Effect.Effect<Config, AuthError>;
126
335
  }
127
336
 
128
337
  export const AuthProvider =
129
338
  <Config extends { method: string }, Credentials>() =>
130
- <
131
- ImplReq = never,
132
- ConfigureReq = never,
133
- LoginReq = never,
134
- LogoutReq = never,
135
- PrettyPrintReq = never,
136
- ReadReq = never,
137
- >(
339
+ <R = never, ImplReq = never>(
138
340
  name: string,
139
341
  impl:
140
- | AuthProviderImpl<
141
- Config,
142
- Credentials,
143
- ConfigureReq,
144
- LoginReq,
145
- LogoutReq,
146
- PrettyPrintReq,
147
- ReadReq
148
- >
149
- | Effect.Effect<
150
- AuthProviderImpl<
151
- Config,
152
- Credentials,
153
- ConfigureReq,
154
- LoginReq,
155
- LogoutReq,
156
- PrettyPrintReq,
157
- ReadReq
158
- >,
159
- never,
160
- ImplReq
161
- >,
342
+ | AuthProviderImpl<Config, Credentials, R>
343
+ | Effect.Effect<AuthProviderImpl<Config, Credentials, R>, never, ImplReq>,
162
344
  ) =>
163
345
  Effect.gen(function* () {
164
- const ctx = yield* Effect.context();
346
+ // FileSystem/Path back the cross-process credentials lock that wraps
347
+ // `logout`/`read` below, so capture them with the impl's own services.
348
+ //
349
+ // `Effect.context()` snapshots the ENTIRE fiber context (the type
350
+ // parameter only narrows the type), and `Effect.provideContext` makes
351
+ // the provided side win — so an Interaction that happens to be
352
+ // ambient at REGISTRATION would silently shadow whatever the caller
353
+ // provides at call time, making the interactive methods' declared
354
+ // `Interaction` requirement a dead letter. Omit it from the snapshot:
355
+ // interactive flows resolve Interaction from the caller, exactly as
356
+ // their signatures promise (a scripted test Interaction, a
357
+ // browser-driven Alchemist login).
358
+ // SAFETY: the assertion restores the pre-omit type — tsc cannot reduce
359
+ // `Exclude<R, … Exclude<R, Interaction>>` over the generic R. It only
360
+ // over-promises Interaction, which every registered method signature
361
+ // re-declares as a requirement anyway, so no call site can rely on the
362
+ // capture satisfying it.
363
+ const ctx = Context.omit(Interaction)(
364
+ yield* Effect.context<
365
+ FileSystem.FileSystem | Path.Path | R | ImplReq
366
+ >(),
367
+ ) as Context.Context<FileSystem.FileSystem | Path.Path | R | ImplReq>;
165
368
  const providers = yield* AuthProviders;
166
369
  const service = yield* Effect.isEffect(impl)
167
370
  ? impl
168
371
  : Effect.succeed(impl);
169
- return yield* Effect.sync(
170
- () =>
171
- (providers[name] = {
172
- kind: "AuthProvider",
173
- name,
174
- ...Object.fromEntries(
175
- Object.entries(service).map(([methodName, fn]) => [
176
- methodName,
177
- (...args: Parameters<typeof fn>) => {
178
- let eff = (fn as any)(...args).pipe(
179
- Effect.provideContext(ctx),
180
- );
181
- if (LOCKED_METHODS.has(methodName)) {
182
- // First positional arg is always `profileName`.
183
- const profileName = args[0] as string;
184
- eff = withLock(`${profileName}-${name}`, eff, {
185
- label: `${name}.${methodName} (profile '${profileName}')`,
186
- // `login`/`configure` legitimately block on the user
187
- // (browser OAuth, `aws sso login`), and a periodic
188
- // notice would trample the prompt they are answering.
189
- watchdog: !INTERACTIVE_METHODS.has(methodName),
190
- });
191
- }
192
- if (INTERACTIVE_METHODS.has(methodName)) {
193
- eff = Semaphore.withPermits(interactiveMutex, 1)(eff);
194
- }
195
- return eff;
196
- },
197
- ]),
372
+ // Validate the declared environment contract at registration so a
373
+ // malformed declaration fails at layer build (programmer error), not
374
+ // when a CI run tries to render it.
375
+ const environment =
376
+ service.environment === undefined
377
+ ? []
378
+ : Schema.decodeUnknownSync(EnvironmentVariables)(service.environment);
379
+ if (service.readEnvironment !== undefined && environment.length === 0) {
380
+ return yield* Effect.die(
381
+ `AuthProvider '${name}' implements readEnvironment but does not ` +
382
+ "declare its `environment` variables. Declare every variable " +
383
+ "readEnvironment consumes so CI requirements are discoverable.",
384
+ );
385
+ }
386
+ if (
387
+ service.configureWith !== undefined &&
388
+ (service.configureMethods === undefined ||
389
+ service.configureMethods.length === 0)
390
+ ) {
391
+ return yield* Effect.die(
392
+ `AuthProvider '${name}' implements configureWith but does not ` +
393
+ "declare `configureMethods`. Declare each accepted --method and " +
394
+ "its --set fields so the CLI can validate and document them.",
395
+ );
396
+ }
397
+
398
+ const provider: AuthProvider<Config, Credentials> = {
399
+ logEnvironmentCredentials: yield* cachedFunction(
400
+ (used: ReadonlyArray<string>) =>
401
+ Effect.logInfo(
402
+ `${name}: using environment variables (${used.join(", ")}) instead of the profile.`,
198
403
  ),
199
- } as AuthProvider<Config, Credentials>),
200
- );
404
+ { key: ([used]) => JSON.stringify(used.toSorted()) },
405
+ ),
406
+ kind: "AuthProvider",
407
+ name,
408
+ // configure/login can wait minutes on a browser grant, so they hold
409
+ // only the process-level interactive mutex — never the per-profile
410
+ // credentials lock, which would starve every concurrent `read` (its
411
+ // waiters time out at ~120s). Providers whose login path performs a
412
+ // rotate-on-use silent refresh wrap that read-refresh-persist
413
+ // section (and only it) in `withProfileCredentialsLock` themselves;
414
+ // a post-browser persist is a benign whole-file swap where the last
415
+ // grant wins.
416
+ configure: (profileName, currentConfig) =>
417
+ Semaphore.withPermits(
418
+ interactiveMutex,
419
+ 1,
420
+ )(
421
+ service
422
+ .configure(profileName, currentConfig)
423
+ .pipe(Effect.provideContext(ctx)),
424
+ ),
425
+ login: (profileName, config, updateConfig) =>
426
+ Semaphore.withPermits(
427
+ interactiveMutex,
428
+ 1,
429
+ )(
430
+ service
431
+ .login(profileName, config, updateConfig)
432
+ .pipe(Effect.provideContext(ctx)),
433
+ ),
434
+ logout: (profileName, config) =>
435
+ withProfileCredentialsLock(
436
+ profileName,
437
+ service.logout(profileName, config),
438
+ ).pipe(Effect.provideContext(ctx)),
439
+ details: (profileName, config, updateConfig) =>
440
+ withProfileCredentialsLock(
441
+ profileName,
442
+ service.details(profileName, config, updateConfig),
443
+ ).pipe(Effect.provideContext(ctx)),
444
+ ...(service.configureWith === undefined
445
+ ? {}
446
+ : {
447
+ configureWith: (
448
+ profileName: string,
449
+ input: {
450
+ readonly method: string;
451
+ readonly values: Record<string, string>;
452
+ },
453
+ ) =>
454
+ service.configureWith!(profileName, input).pipe(
455
+ Effect.provideContext(ctx),
456
+ ),
457
+ configureMethods: service.configureMethods,
458
+ }),
459
+ read: (profileName, config, updateConfig) =>
460
+ withProfileCredentialsLock(
461
+ profileName,
462
+ service.read(profileName, config, updateConfig),
463
+ ).pipe(Effect.provideContext(ctx)),
464
+ readEnvironment: service.readEnvironment?.pipe(
465
+ Effect.provideContext(ctx),
466
+ ),
467
+ environment,
468
+ configSchema: service.configSchema,
469
+ decodeConfig: (profileName, config) =>
470
+ Effect.gen(function* () {
471
+ return yield* Schema.decodeUnknownEffect(service.configSchema)(
472
+ config,
473
+ ).pipe(
474
+ Effect.mapError(
475
+ (cause) =>
476
+ new AuthError({
477
+ message:
478
+ `Stored ${name} configuration in profile '${profileName}' is not valid ` +
479
+ `for this version of alchemy. ` +
480
+ `${reconfigureHint(name, profileName)}`,
481
+ cause,
482
+ }),
483
+ ),
484
+ );
485
+ }),
486
+ };
487
+
488
+ providers[name] = provider;
201
489
  });
202
490
 
203
491
  /**
204
492
  * Build a Layer that registers an AuthProvider into the {@link AuthProviders}
205
493
  * registry when its parent layer is built. Use this from a provider's
206
- * top-level `providers()` Layer so that `alchemy login` can discover the
494
+ * top-level `providers()` Layer so that the alchemy CLI can discover the
207
495
  * provider via the registry without forcing credential resolution.
208
496
  */
209
497
  export const AuthProviderLayer =
210
498
  <Config extends { method: string }, Credentials>() =>
211
- <
212
- ImplReq = never,
213
- ConfigureReq = never,
214
- LoginReq = never,
215
- LogoutReq = never,
216
- PrettyPrintReq = never,
217
- ReadReq = never,
218
- >(
499
+ <R = never, ImplReq = never>(
219
500
  name: string,
220
501
  impl:
221
- | AuthProviderImpl<
222
- Config,
223
- Credentials,
224
- ConfigureReq,
225
- LoginReq,
226
- LogoutReq,
227
- PrettyPrintReq,
228
- ReadReq
229
- >
230
- | Effect.Effect<
231
- AuthProviderImpl<
232
- Config,
233
- Credentials,
234
- ConfigureReq,
235
- LoginReq,
236
- LogoutReq,
237
- PrettyPrintReq,
238
- ReadReq
239
- >,
240
- never,
241
- ImplReq
242
- >,
502
+ | AuthProviderImpl<Config, Credentials, R>
503
+ | Effect.Effect<AuthProviderImpl<Config, Credentials, R>, never, ImplReq>,
243
504
  ) =>
244
505
  Layer.effectDiscard(
245
- AuthProvider<Config, Credentials>()<
246
- ImplReq,
247
- ConfigureReq,
248
- LoginReq,
249
- LogoutReq,
250
- PrettyPrintReq,
251
- ReadReq
252
- >(name, impl),
506
+ AuthProvider<Config, Credentials>()<R, ImplReq>(name, impl),
253
507
  );
254
508
 
255
509
  /**
@@ -258,8 +512,8 @@ export const AuthProviderLayer =
258
512
  * its layer hasn't been built).
259
513
  */
260
514
  export const getAuthProvider = <
261
- Config extends { method: string } = any,
262
- Credentials = any,
515
+ Config extends { method: string } = { method: string },
516
+ Credentials = unknown,
263
517
  >(
264
518
  name: string,
265
519
  ): Effect.Effect<AuthProvider<Config, Credentials>, AuthError, AuthProviders> =>
@@ -270,5 +524,9 @@ export const getAuthProvider = <
270
524
  message: `AuthProvider '${name}' is not registered. Make sure its layer has been provided.`,
271
525
  }),
272
526
  )
273
- : Effect.succeed(registry[name] as AuthProvider<Config, Credentials>),
527
+ : Effect.succeed(
528
+ // SAFETY: registration erases provider-specific generic parameters;
529
+ // callers restore the contract associated with the requested name.
530
+ registry[name] as AuthProvider<Config, Credentials>,
531
+ ),
274
532
  );