@taqueria/protocol 0.56.15 → 0.57.8

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 (568) hide show
  1. package/Alias.d.js +455 -0
  2. package/Alias.d.js.map +1 -0
  3. package/Alias.js +53 -53
  4. package/Alias.js.map +1 -1
  5. package/Base.d.js +27 -0
  6. package/Base.d.js.map +1 -0
  7. package/Base.d.ts +6 -6
  8. package/Base.d.ts.map +1 -1
  9. package/Base.js.map +1 -1
  10. package/Command.d.js +455 -0
  11. package/Command.d.js.map +1 -0
  12. package/Command.js +53 -53
  13. package/Command.js.map +1 -1
  14. package/Config.d.js +455 -0
  15. package/Config.d.js.map +1 -0
  16. package/Config.d.ts +0 -1
  17. package/Config.js +53 -53
  18. package/Config.js.map +1 -1
  19. package/ConfigArtifactsDir.d.js +19 -0
  20. package/ConfigArtifactsDir.d.js.map +1 -0
  21. package/ConfigArtifactsDir.js.map +1 -1
  22. package/ConfigContractsDir.d.js +455 -0
  23. package/ConfigContractsDir.d.js.map +1 -0
  24. package/ConfigContractsDir.js +53 -53
  25. package/ConfigContractsDir.js.map +1 -1
  26. package/ConfigEnvironmentFileV2.d.js +455 -0
  27. package/ConfigEnvironmentFileV2.d.js.map +1 -0
  28. package/ConfigEnvironmentFileV2.d.ts +0 -1
  29. package/ConfigEnvironmentFileV2.js +53 -53
  30. package/ConfigEnvironmentFileV2.js.map +1 -1
  31. package/ConfigFileV2.d.js +455 -0
  32. package/ConfigFileV2.d.js.map +1 -0
  33. package/ConfigFileV2.d.ts +0 -1
  34. package/ConfigFileV2.js +53 -53
  35. package/ConfigFileV2.js.map +1 -1
  36. package/Contract.d.js +455 -0
  37. package/Contract.d.js.map +1 -0
  38. package/Contract.js +53 -53
  39. package/Contract.js.map +1 -1
  40. package/Crypto.d.js +19 -0
  41. package/Crypto.d.js.map +1 -0
  42. package/EconomicalProtocolHash.d.js +455 -0
  43. package/EconomicalProtocolHash.d.js.map +1 -0
  44. package/EconomicalProtocolHash.js +53 -53
  45. package/EconomicalProtocolHash.js.map +1 -1
  46. package/Environment.d.js +455 -0
  47. package/Environment.d.js.map +1 -0
  48. package/Environment.d.ts +0 -1
  49. package/Environment.js +53 -53
  50. package/Environment.js.map +1 -1
  51. package/EphemeralState.d.js +19 -0
  52. package/EphemeralState.d.js.map +1 -0
  53. package/EphemeralState.d.ts +1602 -646
  54. package/EphemeralState.d.ts.map +1 -1
  55. package/EphemeralState.js +3251 -108
  56. package/EphemeralState.js.map +1 -1
  57. package/Faucet.d.js +455 -0
  58. package/Faucet.d.js.map +1 -0
  59. package/Faucet.js +53 -53
  60. package/Faucet.js.map +1 -1
  61. package/HumanReadableIdentifier.d.js +455 -0
  62. package/HumanReadableIdentifier.d.js.map +1 -0
  63. package/HumanReadableIdentifier.js +53 -53
  64. package/HumanReadableIdentifier.js.map +1 -1
  65. package/InstalledPlugin.d.js +455 -0
  66. package/InstalledPlugin.d.js.map +1 -0
  67. package/InstalledPlugin.js +53 -53
  68. package/InstalledPlugin.js.map +1 -1
  69. package/LoadedConfig.d.js +455 -0
  70. package/LoadedConfig.d.js.map +1 -0
  71. package/LoadedConfig.js +53 -53
  72. package/LoadedConfig.js.map +1 -1
  73. package/MetadataConfig.d.js +455 -0
  74. package/MetadataConfig.d.js.map +1 -0
  75. package/MetadataConfig.js +53 -53
  76. package/MetadataConfig.js.map +1 -1
  77. package/NetworkAccountConfig.d.js +455 -0
  78. package/NetworkAccountConfig.d.js.map +1 -0
  79. package/NetworkAccountConfig.js +53 -53
  80. package/NetworkAccountConfig.js.map +1 -1
  81. package/NetworkConfig.d.js +455 -0
  82. package/NetworkConfig.d.js.map +1 -0
  83. package/NetworkConfig.js +53 -53
  84. package/NetworkConfig.js.map +1 -1
  85. package/NonEmptyString.d.js +455 -0
  86. package/NonEmptyString.d.js.map +1 -0
  87. package/NonEmptyString.js +53 -53
  88. package/NonEmptyString.js.map +1 -1
  89. package/Operation.d.js +455 -0
  90. package/Operation.d.js.map +1 -0
  91. package/Operation.js +53 -53
  92. package/Operation.js.map +1 -1
  93. package/Option.d.js +455 -0
  94. package/Option.d.js.map +1 -0
  95. package/Option.js +53 -53
  96. package/Option.js.map +1 -1
  97. package/ParsedOperation.d.js +455 -0
  98. package/ParsedOperation.d.js.map +1 -0
  99. package/ParsedOperation.js +53 -53
  100. package/ParsedOperation.js.map +1 -1
  101. package/ParsedPluginInfo.d.js +19 -0
  102. package/ParsedPluginInfo.d.js.map +1 -0
  103. package/ParsedPluginInfo.d.ts +5477 -717
  104. package/ParsedPluginInfo.d.ts.map +1 -1
  105. package/ParsedPluginInfo.js +53 -53
  106. package/ParsedPluginInfo.js.map +1 -1
  107. package/ParsedTemplate.d.js +455 -0
  108. package/ParsedTemplate.d.js.map +1 -0
  109. package/ParsedTemplate.js +53 -53
  110. package/ParsedTemplate.js.map +1 -1
  111. package/PersistentState.d.js +19 -0
  112. package/PersistentState.d.js.map +1 -0
  113. package/PersistentState.d.ts +47 -332
  114. package/PersistentState.d.ts.map +1 -1
  115. package/PersistentState.js +53 -53
  116. package/PersistentState.js.map +1 -1
  117. package/PluginActionName.d.js +455 -0
  118. package/PluginActionName.d.js.map +1 -0
  119. package/PluginActionName.js +53 -53
  120. package/PluginActionName.js.map +1 -1
  121. package/PluginDependenciesResponse.d.js +455 -0
  122. package/PluginDependenciesResponse.d.js.map +1 -0
  123. package/PluginDependenciesResponse.js +53 -53
  124. package/PluginDependenciesResponse.js.map +1 -1
  125. package/PluginInfo.d.js +19 -0
  126. package/PluginInfo.d.js.map +1 -0
  127. package/PluginInfo.d.ts +5925 -1223
  128. package/PluginInfo.d.ts.map +1 -1
  129. package/PluginInfo.js +53 -53
  130. package/PluginInfo.js.map +1 -1
  131. package/PluginJsonResponse.d.js +455 -0
  132. package/PluginJsonResponse.d.js.map +1 -0
  133. package/PluginJsonResponse.js +53 -53
  134. package/PluginJsonResponse.js.map +1 -1
  135. package/PluginProxyResponse.d.js +455 -0
  136. package/PluginProxyResponse.d.js.map +1 -0
  137. package/PluginProxyResponse.js +53 -53
  138. package/PluginProxyResponse.js.map +1 -1
  139. package/PluginResponseEncoding.d.js +455 -0
  140. package/PluginResponseEncoding.d.js.map +1 -0
  141. package/PluginResponseEncoding.js +53 -53
  142. package/PluginResponseEncoding.js.map +1 -1
  143. package/PluginSchema.d.js +19 -0
  144. package/PluginSchema.d.js.map +1 -0
  145. package/PluginSchema.d.ts +27517 -11308
  146. package/PluginSchema.d.ts.map +1 -1
  147. package/PluginSchema.js +53 -53
  148. package/PluginSchema.js.map +1 -1
  149. package/PositionalArg.d.js +455 -0
  150. package/PositionalArg.d.js.map +1 -0
  151. package/PositionalArg.js +53 -53
  152. package/PositionalArg.js.map +1 -1
  153. package/Provisioner.d.js +455 -0
  154. package/Provisioner.d.js.map +1 -0
  155. package/Provisioner.js +53 -53
  156. package/Provisioner.js.map +1 -1
  157. package/ProvisionerID.d.js +455 -0
  158. package/ProvisionerID.d.js.map +1 -0
  159. package/ProvisionerID.js +53 -53
  160. package/ProvisionerID.js.map +1 -1
  161. package/Provisions.d.js +455 -0
  162. package/Provisions.d.js.map +1 -0
  163. package/Provisions.js +53 -53
  164. package/Provisions.js.map +1 -1
  165. package/ProxyTaskArgs.d.js +455 -0
  166. package/ProxyTaskArgs.d.js.map +1 -0
  167. package/ProxyTaskArgs.js +53 -53
  168. package/ProxyTaskArgs.js.map +1 -1
  169. package/ProxyTemplateArgs.d.js +455 -0
  170. package/ProxyTemplateArgs.d.js.map +1 -0
  171. package/ProxyTemplateArgs.js +53 -53
  172. package/ProxyTemplateArgs.js.map +1 -1
  173. package/PublicKeyHash.d.js +455 -0
  174. package/PublicKeyHash.d.js.map +1 -0
  175. package/PublicKeyHash.js +53 -53
  176. package/PublicKeyHash.js.map +1 -1
  177. package/RequestArgs.d.js +455 -0
  178. package/RequestArgs.d.js.map +1 -0
  179. package/RequestArgs.js +53 -53
  180. package/RequestArgs.js.map +1 -1
  181. package/SHA256.d.js +19 -0
  182. package/SHA256.d.js.map +1 -0
  183. package/SHA256.d.ts +7 -7
  184. package/SHA256.d.ts.map +1 -1
  185. package/SHA256.js.map +1 -1
  186. package/SandboxAccountConfig.d.js +455 -0
  187. package/SandboxAccountConfig.d.js.map +1 -0
  188. package/SandboxAccountConfig.js +53 -53
  189. package/SandboxAccountConfig.js.map +1 -1
  190. package/SandboxConfig.d.js +455 -0
  191. package/SandboxConfig.d.js.map +1 -0
  192. package/SandboxConfig.js +53 -53
  193. package/SandboxConfig.js.map +1 -1
  194. package/SanitizedAbsPath.d.js +19 -0
  195. package/SanitizedAbsPath.d.js.map +1 -0
  196. package/SanitizedAbsPath.d.ts +10 -10
  197. package/SanitizedAbsPath.d.ts.map +1 -1
  198. package/SanitizedAbsPath.js.map +1 -1
  199. package/SanitizedArgs.d.js +19 -0
  200. package/SanitizedArgs.d.js.map +1 -0
  201. package/SanitizedArgs.d.ts +410 -358
  202. package/SanitizedArgs.d.ts.map +1 -1
  203. package/SanitizedArgs.js +53 -53
  204. package/SanitizedArgs.js.map +1 -1
  205. package/SanitizedPath.d.js +455 -0
  206. package/SanitizedPath.d.js.map +1 -0
  207. package/SanitizedPath.js +53 -53
  208. package/SanitizedPath.js.map +1 -1
  209. package/ScaffoldConfig.d.js +455 -0
  210. package/ScaffoldConfig.d.js.map +1 -0
  211. package/ScaffoldConfig.js +53 -53
  212. package/ScaffoldConfig.js.map +1 -1
  213. package/Settings.d.js +455 -0
  214. package/Settings.d.js.map +1 -0
  215. package/Settings.d.ts +1 -0
  216. package/Settings.d.ts.map +1 -1
  217. package/Settings.js +53 -53
  218. package/Settings.js.map +1 -1
  219. package/SingleChar.d.js +455 -0
  220. package/SingleChar.d.js.map +1 -0
  221. package/SingleChar.js +53 -53
  222. package/SingleChar.js.map +1 -1
  223. package/TaqError.d.js +19 -0
  224. package/TaqError.d.js.map +1 -0
  225. package/TaqError.d.ts +0 -1
  226. package/TaqError.d.ts.map +1 -1
  227. package/Task.d.js +455 -0
  228. package/Task.d.js.map +1 -0
  229. package/Task.js +53 -53
  230. package/Task.js.map +1 -1
  231. package/Template.d.js +455 -0
  232. package/Template.d.js.map +1 -0
  233. package/Template.js +53 -53
  234. package/Template.js.map +1 -1
  235. package/Timestamp.d.js +455 -0
  236. package/Timestamp.d.js.map +1 -0
  237. package/Timestamp.js +53 -53
  238. package/Timestamp.js.map +1 -1
  239. package/Tz.d.js +455 -0
  240. package/Tz.d.js.map +1 -0
  241. package/Tz.js +53 -53
  242. package/Tz.js.map +1 -1
  243. package/Url.d.js +455 -0
  244. package/Url.d.js.map +1 -0
  245. package/Url.js +53 -53
  246. package/Url.js.map +1 -1
  247. package/Verb.d.js +455 -0
  248. package/Verb.d.js.map +1 -0
  249. package/Verb.js +53 -53
  250. package/Verb.js.map +1 -1
  251. package/VersionNumber.d.js +455 -0
  252. package/VersionNumber.d.js.map +1 -0
  253. package/VersionNumber.js +53 -53
  254. package/VersionNumber.js.map +1 -1
  255. package/helpers.d.js +19 -0
  256. package/helpers.d.js.map +1 -0
  257. package/helpers.js.map +1 -1
  258. package/i18n.d.js +27 -0
  259. package/i18n.d.js.map +1 -0
  260. package/i18n.d.ts.map +1 -1
  261. package/index.d.js +3531 -0
  262. package/index.d.js.map +1 -0
  263. package/index.js +79 -80
  264. package/index.js.map +1 -1
  265. package/out/types/Alias.d.ts +1 -1
  266. package/out/types/Alias.d.ts.map +1 -1
  267. package/out/types/Alias.js +53 -53
  268. package/out/types/Alias.js.map +1 -1
  269. package/out/types/BuildNumber.d.ts +1 -1
  270. package/out/types/BuildNumber.d.ts.map +1 -1
  271. package/out/types/BuildNumber.js +53 -53
  272. package/out/types/BuildNumber.js.map +1 -1
  273. package/out/types/Command.d.ts +1 -1
  274. package/out/types/Command.d.ts.map +1 -1
  275. package/out/types/Command.js +53 -53
  276. package/out/types/Command.js.map +1 -1
  277. package/out/types/Config.d.ts +154 -155
  278. package/out/types/Config.d.ts.map +1 -1
  279. package/out/types/Config.js +53 -53
  280. package/out/types/Config.js.map +1 -1
  281. package/out/types/ConfigAccount.d.ts +1 -1
  282. package/out/types/ConfigAccount.d.ts.map +1 -1
  283. package/out/types/ConfigAccount.js +53 -53
  284. package/out/types/ConfigAccount.js.map +1 -1
  285. package/out/types/ConfigArtifactsDir.d.ts +1 -1
  286. package/out/types/ConfigArtifactsDir.d.ts.map +1 -1
  287. package/out/types/ConfigArtifactsDir.js +53 -53
  288. package/out/types/ConfigArtifactsDir.js.map +1 -1
  289. package/out/types/ConfigContractsDir.d.ts +1 -1
  290. package/out/types/ConfigContractsDir.d.ts.map +1 -1
  291. package/out/types/ConfigContractsDir.js +53 -53
  292. package/out/types/ConfigContractsDir.js.map +1 -1
  293. package/out/types/ConfigEnvironmentFileV2.d.ts +1 -2
  294. package/out/types/ConfigEnvironmentFileV2.d.ts.map +1 -1
  295. package/out/types/ConfigEnvironmentFileV2.js +53 -53
  296. package/out/types/ConfigEnvironmentFileV2.js.map +1 -1
  297. package/out/types/ConfigFileV1.d.ts +275 -275
  298. package/out/types/ConfigFileV1.d.ts.map +1 -1
  299. package/out/types/ConfigFileV1.js +53 -53
  300. package/out/types/ConfigFileV1.js.map +1 -1
  301. package/out/types/ConfigFileV2.d.ts +73 -74
  302. package/out/types/ConfigFileV2.d.ts.map +1 -1
  303. package/out/types/ConfigFileV2.js +53 -53
  304. package/out/types/ConfigFileV2.js.map +1 -1
  305. package/out/types/Contract.d.ts +1 -1
  306. package/out/types/Contract.d.ts.map +1 -1
  307. package/out/types/Contract.js +53 -53
  308. package/out/types/Contract.js.map +1 -1
  309. package/out/types/CurrencyAmountV2.d.ts +1 -1
  310. package/out/types/CurrencyAmountV2.d.ts.map +1 -1
  311. package/out/types/CurrencyAmountV2.js +53 -53
  312. package/out/types/CurrencyAmountV2.js.map +1 -1
  313. package/out/types/EconomicalProtocolHash.d.ts +1 -1
  314. package/out/types/EconomicalProtocolHash.d.ts.map +1 -1
  315. package/out/types/EconomicalProtocolHash.js +53 -53
  316. package/out/types/EconomicalProtocolHash.js.map +1 -1
  317. package/out/types/Environment.d.ts +10 -11
  318. package/out/types/Environment.d.ts.map +1 -1
  319. package/out/types/Environment.js +53 -53
  320. package/out/types/Environment.js.map +1 -1
  321. package/out/types/EphemeralState.d.ts +16933 -7937
  322. package/out/types/EphemeralState.d.ts.map +1 -1
  323. package/out/types/EphemeralState.js +53 -53
  324. package/out/types/EphemeralState.js.map +1 -1
  325. package/out/types/Faucet.d.ts +1 -1
  326. package/out/types/Faucet.d.ts.map +1 -1
  327. package/out/types/Faucet.js +53 -53
  328. package/out/types/Faucet.js.map +1 -1
  329. package/out/types/HumanReadableIdentifier.d.ts +1 -1
  330. package/out/types/HumanReadableIdentifier.d.ts.map +1 -1
  331. package/out/types/HumanReadableIdentifier.js +53 -53
  332. package/out/types/HumanReadableIdentifier.js.map +1 -1
  333. package/out/types/InstalledPlugin.d.ts +1 -1
  334. package/out/types/InstalledPlugin.d.ts.map +1 -1
  335. package/out/types/InstalledPlugin.js +53 -53
  336. package/out/types/InstalledPlugin.js.map +1 -1
  337. package/out/types/LoadedConfig.d.ts +328 -324
  338. package/out/types/LoadedConfig.d.ts.map +1 -1
  339. package/out/types/LoadedConfig.js +53 -53
  340. package/out/types/LoadedConfig.js.map +1 -1
  341. package/out/types/MetadataConfig.d.ts +1 -1
  342. package/out/types/MetadataConfig.d.ts.map +1 -1
  343. package/out/types/MetadataConfig.js +53 -53
  344. package/out/types/MetadataConfig.js.map +1 -1
  345. package/out/types/NetworkAccountConfig.d.ts +10 -10
  346. package/out/types/NetworkAccountConfig.d.ts.map +1 -1
  347. package/out/types/NetworkAccountConfig.js +53 -53
  348. package/out/types/NetworkAccountConfig.js.map +1 -1
  349. package/out/types/NetworkConfig.d.ts +18 -18
  350. package/out/types/NetworkConfig.d.ts.map +1 -1
  351. package/out/types/NetworkConfig.js +53 -53
  352. package/out/types/NetworkConfig.js.map +1 -1
  353. package/out/types/NonEmptyString.d.ts +1 -1
  354. package/out/types/NonEmptyString.d.ts.map +1 -1
  355. package/out/types/NonEmptyString.js +53 -53
  356. package/out/types/NonEmptyString.js.map +1 -1
  357. package/out/types/Operation.d.ts +2034 -1971
  358. package/out/types/Operation.d.ts.map +1 -1
  359. package/out/types/Operation.js +53 -53
  360. package/out/types/Operation.js.map +1 -1
  361. package/out/types/Option.d.ts +28 -28
  362. package/out/types/Option.d.ts.map +1 -1
  363. package/out/types/Option.js +53 -53
  364. package/out/types/Option.js.map +1 -1
  365. package/out/types/ParsedConfig.d.ts +332 -68
  366. package/out/types/ParsedConfig.d.ts.map +1 -1
  367. package/out/types/ParsedConfig.js +53 -53
  368. package/out/types/ParsedConfig.js.map +1 -1
  369. package/out/types/ParsedOperation.d.ts +1124 -1088
  370. package/out/types/ParsedOperation.d.ts.map +1 -1
  371. package/out/types/ParsedOperation.js +53 -53
  372. package/out/types/ParsedOperation.js.map +1 -1
  373. package/out/types/ParsedTemplate.d.ts +4622 -162
  374. package/out/types/ParsedTemplate.d.ts.map +1 -1
  375. package/out/types/ParsedTemplate.js +53 -53
  376. package/out/types/ParsedTemplate.js.map +1 -1
  377. package/out/types/PersistedOperation.d.ts +1 -1
  378. package/out/types/PersistedOperation.d.ts.map +1 -1
  379. package/out/types/PersistedOperation.js +53 -53
  380. package/out/types/PersistedOperation.js.map +1 -1
  381. package/out/types/PersistedTask.d.ts +1 -1
  382. package/out/types/PersistedTask.d.ts.map +1 -1
  383. package/out/types/PersistedTask.js +53 -53
  384. package/out/types/PersistedTask.js.map +1 -1
  385. package/out/types/PersistentState.d.ts +1 -1
  386. package/out/types/PersistentState.d.ts.map +1 -1
  387. package/out/types/PersistentState.js +53 -53
  388. package/out/types/PersistentState.js.map +1 -1
  389. package/out/types/PluginActionName.d.ts +1 -1
  390. package/out/types/PluginActionName.d.ts.map +1 -1
  391. package/out/types/PluginActionName.js +53 -53
  392. package/out/types/PluginActionName.js.map +1 -1
  393. package/out/types/PluginDependenciesResponse.d.ts +21 -17
  394. package/out/types/PluginDependenciesResponse.d.ts.map +1 -1
  395. package/out/types/PluginDependenciesResponse.js +53 -53
  396. package/out/types/PluginDependenciesResponse.js.map +1 -1
  397. package/out/types/PluginInfo.d.ts +7813 -3313
  398. package/out/types/PluginInfo.d.ts.map +1 -1
  399. package/out/types/PluginInfo.js +53 -53
  400. package/out/types/PluginInfo.js.map +1 -1
  401. package/out/types/PluginJsonResponse.d.ts +5 -5
  402. package/out/types/PluginJsonResponse.d.ts.map +1 -1
  403. package/out/types/PluginJsonResponse.js +53 -53
  404. package/out/types/PluginJsonResponse.js.map +1 -1
  405. package/out/types/PluginProxyResponse.d.ts +5 -5
  406. package/out/types/PluginProxyResponse.d.ts.map +1 -1
  407. package/out/types/PluginProxyResponse.js +53 -53
  408. package/out/types/PluginProxyResponse.js.map +1 -1
  409. package/out/types/PluginResponseEncoding.d.ts +1 -1
  410. package/out/types/PluginResponseEncoding.d.ts.map +1 -1
  411. package/out/types/PluginResponseEncoding.js +53 -53
  412. package/out/types/PluginResponseEncoding.js.map +1 -1
  413. package/out/types/PluginSchema.d.ts +18909 -24722
  414. package/out/types/PluginSchema.d.ts.map +1 -1
  415. package/out/types/PluginSchema.js +53 -53
  416. package/out/types/PluginSchema.js.map +1 -1
  417. package/out/types/PositionalArg.d.ts +19 -19
  418. package/out/types/PositionalArg.d.ts.map +1 -1
  419. package/out/types/PositionalArg.js +53 -53
  420. package/out/types/PositionalArg.js.map +1 -1
  421. package/out/types/Provisioner.d.ts +1 -1
  422. package/out/types/Provisioner.d.ts.map +1 -1
  423. package/out/types/Provisioner.js +53 -53
  424. package/out/types/Provisioner.js.map +1 -1
  425. package/out/types/ProvisionerID.d.ts +1 -1
  426. package/out/types/ProvisionerID.d.ts.map +1 -1
  427. package/out/types/ProvisionerID.js +53 -53
  428. package/out/types/ProvisionerID.js.map +1 -1
  429. package/out/types/Provisions.d.ts +1 -1
  430. package/out/types/Provisions.d.ts.map +1 -1
  431. package/out/types/Provisions.js +53 -53
  432. package/out/types/Provisions.js.map +1 -1
  433. package/out/types/ProxyTaskArgs.d.ts +1181 -1129
  434. package/out/types/ProxyTaskArgs.d.ts.map +1 -1
  435. package/out/types/ProxyTaskArgs.js +53 -53
  436. package/out/types/ProxyTaskArgs.js.map +1 -1
  437. package/out/types/ProxyTemplateArgs.d.ts +1181 -1129
  438. package/out/types/ProxyTemplateArgs.d.ts.map +1 -1
  439. package/out/types/ProxyTemplateArgs.js +53 -53
  440. package/out/types/ProxyTemplateArgs.js.map +1 -1
  441. package/out/types/PublicKeyHash.d.ts +1 -1
  442. package/out/types/PublicKeyHash.d.ts.map +1 -1
  443. package/out/types/PublicKeyHash.js +53 -53
  444. package/out/types/PublicKeyHash.js.map +1 -1
  445. package/out/types/RequestArgs.d.ts +1168 -1129
  446. package/out/types/RequestArgs.d.ts.map +1 -1
  447. package/out/types/RequestArgs.js +53 -53
  448. package/out/types/RequestArgs.js.map +1 -1
  449. package/out/types/RuntimeDependency.d.ts +1 -1
  450. package/out/types/RuntimeDependency.d.ts.map +1 -1
  451. package/out/types/RuntimeDependency.js +53 -53
  452. package/out/types/RuntimeDependency.js.map +1 -1
  453. package/out/types/RuntimeDependencyReport.d.ts +21 -17
  454. package/out/types/RuntimeDependencyReport.d.ts.map +1 -1
  455. package/out/types/RuntimeDependencyReport.js +53 -53
  456. package/out/types/RuntimeDependencyReport.js.map +1 -1
  457. package/out/types/SHA256.d.ts +1 -1
  458. package/out/types/SHA256.d.ts.map +1 -1
  459. package/out/types/SHA256.js +53 -53
  460. package/out/types/SHA256.js.map +1 -1
  461. package/out/types/SandboxAccount.d.ts +1 -1
  462. package/out/types/SandboxAccount.d.ts.map +1 -1
  463. package/out/types/SandboxAccount.js +53 -53
  464. package/out/types/SandboxAccount.js.map +1 -1
  465. package/out/types/SandboxAccountConfig.d.ts +1 -1
  466. package/out/types/SandboxAccountConfig.d.ts.map +1 -1
  467. package/out/types/SandboxAccountConfig.js +53 -53
  468. package/out/types/SandboxAccountConfig.js.map +1 -1
  469. package/out/types/SandboxAccounts.d.ts +1 -1
  470. package/out/types/SandboxAccounts.d.ts.map +1 -1
  471. package/out/types/SandboxAccounts.js +53 -53
  472. package/out/types/SandboxAccounts.js.map +1 -1
  473. package/out/types/SandboxConfig.d.ts +10 -10
  474. package/out/types/SandboxConfig.d.ts.map +1 -1
  475. package/out/types/SandboxConfig.js +53 -53
  476. package/out/types/SandboxConfig.js.map +1 -1
  477. package/out/types/SanitizedAbsPath.d.ts +1 -1
  478. package/out/types/SanitizedAbsPath.d.ts.map +1 -1
  479. package/out/types/SanitizedAbsPath.js +53 -53
  480. package/out/types/SanitizedAbsPath.js.map +1 -1
  481. package/out/types/SanitizedArgs.d.ts +1 -1
  482. package/out/types/SanitizedArgs.d.ts.map +1 -1
  483. package/out/types/SanitizedArgs.js +53 -53
  484. package/out/types/SanitizedArgs.js.map +1 -1
  485. package/out/types/SanitizedPath.d.ts +1 -1
  486. package/out/types/SanitizedPath.d.ts.map +1 -1
  487. package/out/types/SanitizedPath.js +53 -53
  488. package/out/types/SanitizedPath.js.map +1 -1
  489. package/out/types/ScaffoldConfig.d.ts +1 -1
  490. package/out/types/ScaffoldConfig.d.ts.map +1 -1
  491. package/out/types/ScaffoldConfig.js +53 -53
  492. package/out/types/ScaffoldConfig.js.map +1 -1
  493. package/out/types/Settings.d.ts +1 -1
  494. package/out/types/Settings.d.ts.map +1 -1
  495. package/out/types/Settings.js +53 -53
  496. package/out/types/Settings.js.map +1 -1
  497. package/out/types/SingleChar.d.ts +1 -1
  498. package/out/types/SingleChar.d.ts.map +1 -1
  499. package/out/types/SingleChar.js +53 -53
  500. package/out/types/SingleChar.js.map +1 -1
  501. package/out/types/Task.d.ts +167 -167
  502. package/out/types/Task.d.ts.map +1 -1
  503. package/out/types/Task.js +53 -53
  504. package/out/types/Task.js.map +1 -1
  505. package/out/types/Template.d.ts +2532 -5745
  506. package/out/types/Template.d.ts.map +1 -1
  507. package/out/types/Template.js +53 -53
  508. package/out/types/Template.js.map +1 -1
  509. package/out/types/Timestamp.d.ts +1 -1
  510. package/out/types/Timestamp.d.ts.map +1 -1
  511. package/out/types/Timestamp.js +53 -53
  512. package/out/types/Timestamp.js.map +1 -1
  513. package/out/types/Tz.d.ts +1 -1
  514. package/out/types/Tz.d.ts.map +1 -1
  515. package/out/types/Tz.js +53 -53
  516. package/out/types/Tz.js.map +1 -1
  517. package/out/types/TzKtConfig.d.ts +1 -1
  518. package/out/types/TzKtConfig.d.ts.map +1 -1
  519. package/out/types/TzKtConfig.js +53 -53
  520. package/out/types/TzKtConfig.js.map +1 -1
  521. package/out/types/Url.d.ts +1 -1
  522. package/out/types/Url.d.ts.map +1 -1
  523. package/out/types/Url.js +53 -53
  524. package/out/types/Url.js.map +1 -1
  525. package/out/types/Verb.d.ts +1 -1
  526. package/out/types/Verb.d.ts.map +1 -1
  527. package/out/types/Verb.js +53 -53
  528. package/out/types/Verb.js.map +1 -1
  529. package/out/types/VersionNumber.d.ts +1 -1
  530. package/out/types/VersionNumber.d.ts.map +1 -1
  531. package/out/types/VersionNumber.js +53 -53
  532. package/out/types/VersionNumber.js.map +1 -1
  533. package/out/types-strict.d.ts +0 -1
  534. package/out/types-zod.d.js.map +1 -1
  535. package/out/types-zod.d.ts +15769 -13234
  536. package/out/types-zod.d.ts.map +1 -1
  537. package/out/types-zod.js +53 -53
  538. package/out/types-zod.js.map +1 -1
  539. package/package.json +338 -335
  540. package/scripts/exports.sh +0 -0
  541. package/taqueria-protocol-types.d.js +3523 -0
  542. package/taqueria-protocol-types.d.js.map +1 -0
  543. package/taqueria-protocol-types.js +2212 -1335
  544. package/taqueria-protocol-types.js.map +1 -1
  545. package/tsconfig.tsbuildinfo +1 -0
  546. package/tsup.config.d.js +27 -0
  547. package/tsup.config.d.js.map +1 -0
  548. package/tsup.config.d.ts.map +1 -1
  549. package/tsup.config.js +104 -0
  550. package/tsup.config.js.map +1 -0
  551. package/types-config-files.d.js +19 -0
  552. package/types-config-files.d.js.map +1 -0
  553. package/types-config-files.d.ts +1 -2
  554. package/types-config-files.d.ts.map +1 -1
  555. package/types-config-files.js +2 -4
  556. package/types-config-files.js.map +1 -1
  557. package/types.d.js +19 -0
  558. package/types.d.js.map +1 -0
  559. package/types.d.ts +0 -1
  560. package/tzkt-config.d.js +19 -0
  561. package/tzkt-config.d.js.map +1 -0
  562. package/tzkt-config.d.ts +10 -10
  563. package/tzkt-config.d.ts.map +1 -1
  564. package/tzkt-config.js.map +1 -1
  565. package/scripts/build-types.d.ts +0 -2
  566. package/scripts/build-types.d.ts.map +0 -1
  567. package/scripts/post-ts-to-zod.d.ts +0 -2
  568. package/scripts/post-ts-to-zod.d.ts.map +0 -1
@@ -9,11 +9,11 @@ var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
- var __copyProps = (to, from28, except, desc) => {
13
- if (from28 && typeof from28 === "object" || typeof from28 === "function") {
14
- for (let key of __getOwnPropNames(from28))
12
+ var __copyProps = (to, from46, except, desc) => {
13
+ if (from46 && typeof from46 === "object" || typeof from46 === "function") {
14
+ for (let key of __getOwnPropNames(from46))
15
15
  if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from28[key], enumerable: !(desc = __getOwnPropDesc(from28, key)) || desc.enumerable });
16
+ __defProp(to, key, { get: () => from46[key], enumerable: !(desc = __getOwnPropDesc(from46, key)) || desc.enumerable });
17
17
  }
18
18
  return to;
19
19
  };
@@ -185,6 +185,14 @@ var taskSchema = import_zod.z.object({
185
185
  options: import_zod.z.array(optionSchema).optional(),
186
186
  positionals: import_zod.z.array(positionalArgSchema).optional()
187
187
  });
188
+ var pluginSchemaBaseSchema = import_zod.z.object({
189
+ name: nonEmptyStringSchema,
190
+ version: versionNumberSchema,
191
+ schema: versionNumberSchema,
192
+ alias: aliasSchema,
193
+ tasks: import_zod.z.array(taskSchema).optional(),
194
+ postInstall: import_zod.z.string().optional()
195
+ });
188
196
  var runtimeDependencySchema = import_zod.z.object({
189
197
  name: humanReadableIdentifierSchema,
190
198
  path: import_zod.z.string(),
@@ -311,10 +319,23 @@ var metadataConfigSchema = import_zod.z.object({
311
319
  homepage: import_zod.z.string().optional()
312
320
  });
313
321
  var versionV2Schema = import_zod.z.string().regex(/^v2$/);
322
+ var configAccountSchema = import_zod.z.object({
323
+ balance: currencyAmountV2Schema
324
+ });
314
325
  var sandboxAccountSchema = import_zod.z.object({
315
326
  type: import_zod.z.string().optional()
316
327
  }).passthrough();
317
328
  var sandboxAccountsSchema = import_zod.z.record(sandboxAccountSchema);
329
+ var configEnvironmentFileV2Schema = import_zod.z.object({
330
+ type: import_zod.z.string().optional(),
331
+ accounts: sandboxAccountsSchema.optional(),
332
+ accountDefault: import_zod.z.any().optional(),
333
+ contracts: import_zod.z.record(
334
+ import_zod.z.object({
335
+ address: import_zod.z.string().optional()
336
+ })
337
+ ).optional()
338
+ }).passthrough();
318
339
  var networkAccountConfigSchema = import_zod.z.object({
319
340
  publicKey: nonEmptyStringSchema.optional(),
320
341
  publicKeyHash: publicKeyHashSchema.optional(),
@@ -326,39 +347,28 @@ var sandboxAccountConfigSchema = import_zod.z.object({
326
347
  publicKeyHash: publicKeyHashSchema,
327
348
  secretKey: nonEmptyStringSchema
328
349
  });
350
+ var sandboxConfigSchema = import_zod.z.object({
351
+ label: nonEmptyStringSchema,
352
+ rpcUrl: urlSchema,
353
+ protocol: economicalProtocolHashSchema.optional(),
354
+ plugin: verbSchema.optional(),
355
+ accounts: import_zod.z.record(import_zod.z.union([sandboxAccountConfigSchema, nonEmptyStringSchema])).optional(),
356
+ tzkt: tzKtConfigSchema.optional(),
357
+ annotations: import_zod.z.record(import_zod.z.unknown()).optional()
358
+ });
329
359
  var scaffoldConfigSchema = import_zod.z.object({
330
360
  postInit: import_zod.z.string().optional()
331
361
  });
332
- var pluginSchemaBaseSchema = import_zod.z.object({
333
- name: nonEmptyStringSchema,
334
- version: versionNumberSchema,
335
- schema: versionNumberSchema,
336
- alias: aliasSchema,
337
- tasks: import_zod.z.array(taskSchema).optional(),
338
- postInstall: import_zod.z.string().optional()
339
- });
340
362
  var persistentStateSchema = import_zod.z.object({
341
363
  operations: import_zod.z.record(persistedOperationSchema),
342
364
  tasks: import_zod.z.record(persistedTaskSchema)
343
365
  });
344
- var configAccountSchema = import_zod.z.object({
345
- balance: currencyAmountV2Schema
346
- });
347
366
  var networkConfigSchema = import_zod.z.object({
348
367
  label: humanReadableIdentifierSchema,
349
368
  rpcUrl: urlSchema,
350
369
  accounts: import_zod.z.record(networkAccountConfigSchema).optional(),
351
370
  faucet: faucetSchema.optional()
352
371
  });
353
- var sandboxConfigSchema = import_zod.z.object({
354
- label: nonEmptyStringSchema,
355
- rpcUrl: urlSchema,
356
- protocol: economicalProtocolHashSchema.optional(),
357
- plugin: verbSchema.optional(),
358
- accounts: import_zod.z.record(import_zod.z.union([sandboxAccountConfigSchema, nonEmptyStringSchema])).optional(),
359
- tzkt: tzKtConfigSchema.optional(),
360
- annotations: import_zod.z.record(import_zod.z.unknown()).optional()
361
- });
362
372
  var configFileV1Schema = import_zod.z.object({
363
373
  language: humanLanguageSchema.optional(),
364
374
  plugins: import_zod.z.array(installedPluginSchema).optional(),
@@ -371,28 +381,6 @@ var configFileV1Schema = import_zod.z.object({
371
381
  contracts: import_zod.z.record(contractSchema).optional(),
372
382
  metadata: metadataConfigSchema.optional()
373
383
  });
374
- var configEnvironmentFileV2Schema = import_zod.z.object({
375
- type: import_zod.z.string().optional(),
376
- accounts: sandboxAccountsSchema.optional(),
377
- accountDefault: import_zod.z.any().optional(),
378
- contracts: import_zod.z.record(
379
- import_zod.z.object({
380
- address: import_zod.z.string().optional()
381
- })
382
- ).optional()
383
- }).passthrough();
384
- var configSchema = import_zod.z.object({
385
- language: humanLanguageSchema.optional(),
386
- metadata: metadataConfigSchema.optional(),
387
- artifactsDir: configArtifactsDirSchema.optional(),
388
- contractsDir: configContractsDirSchema.optional(),
389
- contracts: import_zod.z.record(contractSchema).optional(),
390
- plugins: import_zod.z.array(installedPluginSchema).optional(),
391
- accounts: import_zod.z.record(tzSchema).optional(),
392
- environment: import_zod.z.record(import_zod.z.union([environmentSchema, environmentNameSchema])),
393
- network: import_zod.z.record(networkConfigSchema).optional(),
394
- sandbox: import_zod.z.record(sandboxConfigSchema).optional()
395
- });
396
384
  var configFileV2Schema = import_zod.z.object({
397
385
  version: versionV2Schema,
398
386
  language: humanLanguageSchema.optional(),
@@ -405,6 +393,18 @@ var configFileV2Schema = import_zod.z.object({
405
393
  environments: import_zod.z.record(configEnvironmentFileV2Schema).optional(),
406
394
  plugins: import_zod.z.array(installedPluginSchema).optional()
407
395
  });
396
+ var configSchema = import_zod.z.object({
397
+ language: humanLanguageSchema.optional(),
398
+ metadata: metadataConfigSchema.optional(),
399
+ artifactsDir: configArtifactsDirSchema.optional(),
400
+ contractsDir: configContractsDirSchema.optional(),
401
+ contracts: import_zod.z.record(contractSchema).optional(),
402
+ plugins: import_zod.z.array(installedPluginSchema).optional(),
403
+ accounts: import_zod.z.record(tzSchema).optional(),
404
+ environment: import_zod.z.record(import_zod.z.union([environmentSchema, environmentNameSchema])),
405
+ network: import_zod.z.record(networkConfigSchema).optional(),
406
+ sandbox: import_zod.z.record(sandboxConfigSchema).optional()
407
+ });
408
408
  var parsedConfigSchema = configSchema.omit({ sandbox: true }).extend(
409
409
  {
410
410
  sandbox: import_zod.z.record(import_zod.z.union([sandboxConfigSchema, nonEmptyStringSchema]))
@@ -423,11 +423,6 @@ var requestArgsSchema = sanitizedArgsSchema.omit({ quickstart: true }).extend(
423
423
  config: loadedConfigSchema
424
424
  }
425
425
  ).passthrough();
426
- var proxyTaskArgsSchema = requestArgsSchema.extend(
427
- {
428
- task: nonEmptyStringSchema
429
- }
430
- ).passthrough();
431
426
  var proxyTemplateArgsSchema = requestArgsSchema.extend(
432
427
  {
433
428
  template: nonEmptyStringSchema
@@ -464,12 +459,6 @@ var parsedTemplateSchema = templateSchema.omit({ handler: true }).extend(
464
459
  handler: import_zod.z.string()
465
460
  }
466
461
  );
467
- var pluginInfoSchema = pluginSchemaBaseSchema.extend(
468
- {
469
- operations: import_zod.z.array(parsedOperationSchema).optional(),
470
- templates: import_zod.z.array(parsedTemplateSchema).optional()
471
- }
472
- );
473
462
  var pluginSchemaSchema = pluginSchemaBaseSchema.extend(
474
463
  {
475
464
  operations: import_zod.z.array(operationSchema).optional(),
@@ -479,6 +468,17 @@ var pluginSchemaSchema = pluginSchemaBaseSchema.extend(
479
468
  installRuntimeDependencies: import_zod.z.function().args(requestArgsSchema).returns(import_zod.z.promise(pluginDependenciesResponseSchema)).optional()
480
469
  }
481
470
  );
471
+ var proxyTaskArgsSchema = requestArgsSchema.extend(
472
+ {
473
+ task: nonEmptyStringSchema
474
+ }
475
+ ).passthrough();
476
+ var pluginInfoSchema = pluginSchemaBaseSchema.extend(
477
+ {
478
+ operations: import_zod.z.array(parsedOperationSchema).optional(),
479
+ templates: import_zod.z.array(parsedTemplateSchema).optional()
480
+ }
481
+ );
482
482
  var ephemeralStateSchema = import_zod.z.object({
483
483
  build: import_zod.z.string(),
484
484
  configHash: import_zod.z.string(),
@@ -677,1219 +677,888 @@ var internalSchema4 = environmentSchema;
677
677
  // EphemeralState.ts
678
678
  var EphemeralState_exports = {};
679
679
  __export(EphemeralState_exports, {
680
- create: () => create6,
681
- factory: () => factory,
682
- generatedSchemas: () => generatedSchemas,
680
+ create: () => create54,
681
+ factory: () => factory7,
682
+ generatedSchemas: () => generatedSchemas6,
683
683
  getTasks: () => getTasks,
684
- make: () => make5,
684
+ make: () => make52,
685
685
  mapOperationsToPlugins: () => mapOperationsToPlugins,
686
686
  mapTasksToPlugins: () => mapTasksToPlugins,
687
687
  mapTemplatesToPlugins: () => mapTemplatesToPlugins,
688
+ of: () => of52,
689
+ schemas: () => schemas52
690
+ });
691
+
692
+ // Command.ts
693
+ var Command_exports = {};
694
+ __export(Command_exports, {
695
+ create: () => create6,
696
+ from: () => from5,
697
+ internalSchema: () => internalSchema5,
698
+ make: () => make5,
688
699
  of: () => of5,
700
+ rawSchema: () => rawSchema5,
689
701
  schemas: () => schemas5
690
702
  });
691
- var import_protocol = require("@taqueria/protocol");
692
703
 
693
- // Base.ts
704
+ // out/types/Command.ts
694
705
  var import_fluture6 = require("fluture");
695
706
  var import_zod6 = require("zod");
696
- var createSchema = (params) => {
697
- var _a, _b;
698
- const { rawSchema: rawSchema37, isStringLike } = params;
699
- const internalSchema32 = (_a = params.internalSchema) != null ? _a : params.rawSchema;
700
- const noop = (val) => val;
701
- const transformer = (_b = params.transformer) != null ? _b : noop;
702
- const schema = isStringLike ? internalSchema32.transform(
703
- (val) => transformer(val)
704
- ) : internalSchema32.transform(
705
- (val) => transformer(val)
706
- );
707
- return {
708
- rawSchema: rawSchema37,
709
- internalSchema: internalSchema32,
710
- schema
711
- };
712
- };
713
- var createType = (params) => {
714
- const schemas37 = createSchema(params);
715
- const { parseErrMsg, unknownErrMsg } = params;
716
- const internalOf = (input) => {
717
- try {
718
- return (0, import_fluture6.resolve)(schemas37.schema.parse(input));
719
- } catch (previous) {
720
- const parseMsg = typeof parseErrMsg === "string" ? parseErrMsg : parseErrMsg(input, previous);
721
- const unknownMsg = typeof unknownErrMsg === "string" ? unknownErrMsg : unknownErrMsg(input);
722
- if (previous instanceof import_zod6.ZodError) {
723
- return toFutureParseErr(previous, parseMsg, input);
724
- }
725
- return toFutureParseUnknownErr(previous, unknownMsg, input);
707
+ var from5 = (input) => {
708
+ try {
709
+ return commandSchema.parse(input);
710
+ } catch (previous) {
711
+ if (previous instanceof import_zod6.ZodError) {
712
+ const msgs = previous.errors.reduce(
713
+ (retval, issue) => {
714
+ const path2 = issue.path.join(" \u2192 ");
715
+ const msg = path2 + ": " + issue.message;
716
+ return [...retval, msg];
717
+ },
718
+ ["Command is invalid:"]
719
+ );
720
+ const validationErr = msgs.join("\n") + "\n";
721
+ throw toParseErr(previous, validationErr);
726
722
  }
727
- };
728
- const of35 = internalOf;
729
- const make35 = (input) => internalOf(input);
730
- const create37 = (input) => schemas37.schema.parse(input);
731
- const from28 = (input) => schemas37.schema.parse(input);
732
- const factory8 = {
733
- make: make35,
734
- of: of35,
735
- create: create37,
736
- from: from28
737
- };
738
- return {
739
- schemas: schemas37,
740
- factory: factory8
741
- };
723
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Command.");
724
+ }
742
725
  };
743
- var Base_default = createType;
726
+ var create6 = (input) => from5(input);
727
+ var of5 = (input) => {
728
+ try {
729
+ return (0, import_fluture6.resolve)(from5(input));
730
+ } catch (err) {
731
+ return (0, import_fluture6.reject)(err);
732
+ }
733
+ };
734
+ var make5 = (input) => of5(input);
735
+ var schemas5 = {
736
+ rawSchema: commandSchema,
737
+ schema: commandSchema.transform((val) => val)
738
+ };
739
+ var rawSchema5 = schemas5.rawSchema;
740
+ var internalSchema5 = commandSchema;
744
741
 
745
- // EphemeralState.ts
742
+ // ConfigFileV2.ts
743
+ var ConfigFileV2_exports = {};
744
+ __export(ConfigFileV2_exports, {
745
+ create: () => create7,
746
+ from: () => from6,
747
+ internalSchema: () => internalSchema6,
748
+ make: () => make6,
749
+ of: () => of6,
750
+ rawSchema: () => rawSchema6,
751
+ schemas: () => schemas6
752
+ });
753
+
754
+ // out/types/ConfigFileV2.ts
746
755
  var import_fluture7 = require("fluture");
747
756
  var import_zod7 = require("zod");
748
- var eager = (f) => (0, import_fluture7.promise)(
749
- (0, import_fluture7.mapRej)((err) => new E_TaqError(err))(f)
750
- );
751
- var taskToPluginMap = import_zod7.z.record(
752
- import_zod7.z.union([
753
- import_protocol.InstalledPlugin.schemas.schema,
754
- import_protocol.Task.schemas.schema
755
- ], { description: "Task/Plugin Mapping" })
756
- );
757
- var operationToPluginMap = import_zod7.z.record(
758
- import_zod7.z.union([
759
- import_protocol.InstalledPlugin.schemas.schema,
760
- import_protocol.ParsedOperation.schemas.schema
761
- ], { description: "Operation/Plugin Mapping" })
762
- );
763
- var templateToPluginMap = import_zod7.z.record(
764
- import_zod7.z.union([
765
- import_protocol.InstalledPlugin.schemas.schema,
766
- import_protocol.ParsedTemplate.schemas.schema
767
- ])
768
- );
769
- var rawSchema5 = import_zod7.z.object({
770
- build: import_zod7.z.string({ description: "cache.build" }),
771
- configHash: import_zod7.z.string({ description: "cache.configHash" }),
772
- tasks: taskToPluginMap,
773
- operations: operationToPluginMap,
774
- templates: templateToPluginMap,
775
- plugins: import_zod7.z.array(import_protocol.PluginInfo.schemas.schema, { description: "cache.plugins" })
776
- }).describe("Ephemeral State");
777
- var { schemas: generatedSchemas, factory } = Base_default({
778
- rawSchema: rawSchema5,
779
- parseErrMsg: (value) => `${value} is not a valid representation of ephemeral state`,
780
- unknownErrMsg: "Something went wrong when parsing the ephemeral state"
781
- });
782
- var { create: create6, of: of5, make: make5 } = factory;
783
- var schemas5 = {
784
- ...generatedSchemas,
785
- schema: generatedSchemas.schema.transform((val) => val)
757
+ var from6 = (input) => {
758
+ try {
759
+ return configFileV2Schema.parse(input);
760
+ } catch (previous) {
761
+ if (previous instanceof import_zod7.ZodError) {
762
+ const msgs = previous.errors.reduce(
763
+ (retval, issue) => {
764
+ const path2 = issue.path.join(" \u2192 ");
765
+ const msg = path2 + ": " + issue.message;
766
+ return [...retval, msg];
767
+ },
768
+ ["ConfigFileV2 is invalid:"]
769
+ );
770
+ const validationErr = msgs.join("\n") + "\n";
771
+ throw toParseErr(previous, validationErr);
772
+ }
773
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ConfigFileV2.");
774
+ }
786
775
  };
787
- var getTaskCounts = (pluginInfo) => {
788
- return pluginInfo.reduce(
789
- (retval, pluginInfo2) => pluginInfo2.tasks === void 0 ? {} : pluginInfo2.tasks.reduce(
790
- (retval2, task) => {
791
- const taskName = task.task;
792
- const providers = retval2[taskName] ? [...retval2[taskName], pluginInfo2] : [pluginInfo2];
793
- const mapping = {};
794
- mapping[taskName] = providers.filter((provider) => provider !== void 0);
795
- return { ...retval2, ...mapping };
796
- },
797
- retval
798
- ),
799
- {}
800
- );
776
+ var create7 = (input) => from6(input);
777
+ var of6 = (input) => {
778
+ try {
779
+ return (0, import_fluture7.resolve)(from6(input));
780
+ } catch (err) {
781
+ return (0, import_fluture7.reject)(err);
782
+ }
801
783
  };
802
- var getTemplateCounts = (pluginInfo) => {
803
- return pluginInfo.reduce(
804
- (retval, pluginInfo2) => !pluginInfo2.templates ? retval : pluginInfo2.templates.reduce(
805
- (retval2, template) => {
806
- const templateName = template.template;
807
- const providers = retval2[templateName] ? [...retval2[templateName], pluginInfo2] : [pluginInfo2];
808
- const mapping = {};
809
- mapping[templateName] = providers.filter((provider) => provider !== void 0);
810
- return { ...retval2, ...mapping };
811
- },
812
- retval
813
- ),
814
- {}
815
- );
816
- };
817
- var getOperationCounts = (pluginInfo) => {
818
- return pluginInfo.reduce(
819
- (retval, pluginInfo2) => pluginInfo2.operations === void 0 ? retval : pluginInfo2.operations.reduce(
820
- (retval2, operation) => {
821
- const operationName = operation.operation;
822
- const providers = retval2[operationName] ? [...retval2[operationName], pluginInfo2] : [pluginInfo2];
823
- const mapping = {};
824
- mapping[operationName] = providers.filter((provider) => provider !== void 0);
825
- return { ...retval2, ...mapping };
826
- },
827
- retval
828
- ),
829
- {}
830
- );
831
- };
832
- var toChoices = (plugins) => plugins.reduce(
833
- (retval, pluginInfo) => {
834
- return [...retval, pluginInfo.name, pluginInfo.alias];
835
- },
836
- []
837
- );
838
- var isComposite = (name, counts) => counts[name] && counts[name].length > 1;
839
- var getInstalledPlugin = (config, name) => {
840
- var _a;
841
- return (_a = config.plugins) == null ? void 0 : _a.find(
842
- (plugin) => [`taqueria-plugin-${name}`, name].includes(plugin.name)
843
- );
844
- };
845
- var mapTasksToPlugins = (config, pluginInfo, i18n) => {
846
- const taskCounts = getTaskCounts(pluginInfo);
847
- return (0, import_fluture7.attemptP)(
848
- async () => await pluginInfo.reduce(
849
- async (retval, pluginInfo2) => !pluginInfo2.tasks ? Promise.resolve({}) : await pluginInfo2.tasks.reduce(
850
- async (retval2, { task, hidden }) => {
851
- if (isComposite(task, taskCounts)) {
852
- const command = await eager(import_protocol.Command.make(task));
853
- const compositeTask = await eager(import_protocol.Task.make({
854
- task,
855
- command,
856
- description: await eager(import_protocol.NonEmptyString.make(i18n.__("providedByMany"))),
857
- hidden,
858
- options: [
859
- await eager(import_protocol.Option.make({
860
- flag: await eager(import_protocol.Verb.make("plugin")),
861
- description: await eager(
862
- import_protocol.NonEmptyString.make("Specify which plugin should be used to execute this task")
863
- ),
864
- choices: toChoices(taskCounts[task]),
865
- required: true
866
- }))
867
- ],
868
- handler: "proxy"
869
- }));
870
- return { ...await retval2, [task]: compositeTask };
871
- }
872
- const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
873
- return installedPlugin ? { ...await retval2, [task]: installedPlugin } : retval2;
874
- },
875
- retval
876
- ),
877
- Promise.resolve({})
878
- )
879
- ).pipe((0, import_fluture7.mapRej)((rej) => rej));
880
- };
881
- var mapOperationsToPlugins = (config, pluginInfo, i18n) => {
882
- const opCounts = getOperationCounts(pluginInfo);
883
- return (0, import_fluture7.attemptP)(
884
- async () => await pluginInfo.reduce(
885
- async (retval, pluginInfo2) => !pluginInfo2.operations ? Promise.resolve({}) : await pluginInfo2.operations.reduce(
886
- async (retval2, { operation }) => {
887
- if (isComposite(operation, opCounts)) {
888
- const command = await eager(import_protocol.Command.make(operation));
889
- const compositeOp = await eager(import_protocol.ParsedOperation.make({
890
- operation,
891
- command,
892
- description: await eager(import_protocol.NonEmptyString.make(i18n.__("providedByMany"))),
893
- options: [
894
- await eager(import_protocol.Option.make({
895
- flag: await eager(import_protocol.Verb.make("plugin")),
896
- description: await eager(
897
- import_protocol.NonEmptyString.make("Specify which plugin should be used to execute this operation")
898
- ),
899
- choices: toChoices(opCounts[operation]),
900
- required: true
901
- }))
902
- ]
903
- }));
904
- return { ...await retval2, [operation]: compositeOp };
905
- }
906
- const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
907
- return installedPlugin ? { ...await retval2, [operation]: installedPlugin } : retval2;
908
- },
909
- retval
910
- ),
911
- Promise.resolve({})
912
- )
913
- ).pipe((0, import_fluture7.mapRej)((rej) => rej));
914
- };
915
- var mapTemplatesToPlugins = (config, pluginInfo, i18n) => {
916
- const tmplCounts = getTemplateCounts(pluginInfo);
917
- return (0, import_fluture7.attemptP)(
918
- async () => await pluginInfo.reduce(
919
- async (retval, pluginInfo2) => !pluginInfo2.templates ? Promise.resolve({}) : await pluginInfo2.templates.reduce(
920
- async (retval2, { template, hidden }) => {
921
- if (isComposite(template, tmplCounts)) {
922
- const command = await eager(import_protocol.Command.make(template));
923
- const description = await eager(import_protocol.NonEmptyString.of(i18n.__("providedByMany")));
924
- const compositeTmpl = await eager(import_protocol.ParsedTemplate.make({
925
- template,
926
- command,
927
- description,
928
- options: [
929
- await eager(import_protocol.Option.make({
930
- flag: await eager(import_protocol.Verb.make("plugin")),
931
- description: await eager(
932
- import_protocol.NonEmptyString.make("Specify which plugin should be used to execute this task")
933
- ),
934
- choices: toChoices(tmplCounts[template]),
935
- required: true
936
- }))
937
- ],
938
- handler: "proxy",
939
- encoding: import_protocol.PluginResponseEncoding.create("none")
940
- }));
941
- return { ...await retval2, [template]: compositeTmpl };
942
- }
943
- const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
944
- return installedPlugin ? { ...await retval2, [template]: installedPlugin } : retval2;
945
- },
946
- retval
947
- ),
948
- Promise.resolve({})
949
- )
950
- ).pipe((0, import_fluture7.mapRej)((rej) => rej));
951
- };
952
- var getTasks = (pluginInfo) => pluginInfo.reduce(
953
- (retval, pluginInfo2) => {
954
- var _a;
955
- return [...retval, ...(_a = pluginInfo2.tasks) != null ? _a : []];
956
- },
957
- []
958
- );
959
-
960
- // HumanReadableIdentifier.ts
961
- var HumanReadableIdentifier_exports = {};
962
- __export(HumanReadableIdentifier_exports, {
963
- create: () => create7,
964
- from: () => from5,
965
- internalSchema: () => internalSchema5,
966
- make: () => make6,
967
- of: () => of6,
968
- rawSchema: () => rawSchema6,
969
- schemas: () => schemas6
970
- });
971
-
972
- // out/types/HumanReadableIdentifier.ts
973
- var import_fluture8 = require("fluture");
974
- var import_zod8 = require("zod");
975
- var from5 = (input) => {
976
- try {
977
- return humanReadableIdentifierSchema.parse(input);
978
- } catch (previous) {
979
- if (previous instanceof import_zod8.ZodError) {
980
- const msgs = previous.errors.reduce(
981
- (retval, issue) => {
982
- const path2 = issue.path.join(" \u2192 ");
983
- const msg = path2 + ": " + issue.message;
984
- return [...retval, msg];
985
- },
986
- ["HumanReadableIdentifier is invalid:"]
987
- );
988
- const validationErr = msgs.join("\n") + "\n";
989
- throw toParseErr(previous, validationErr);
990
- }
991
- throw toParseUnknownErr(previous, "There was a problem trying to parse a HumanReadableIdentifier.");
992
- }
993
- };
994
- var create7 = (input) => from5(input);
995
- var of6 = (input) => {
996
- try {
997
- return (0, import_fluture8.resolve)(from5(input));
998
- } catch (err) {
999
- return (0, import_fluture8.reject)(err);
1000
- }
1001
- };
1002
- var make6 = (input) => of6(input);
1003
- var schemas6 = {
1004
- rawSchema: humanReadableIdentifierSchema,
1005
- schema: humanReadableIdentifierSchema.transform((val) => val)
784
+ var make6 = (input) => of6(input);
785
+ var schemas6 = {
786
+ rawSchema: configFileV2Schema,
787
+ schema: configFileV2Schema.transform((val) => val)
1006
788
  };
1007
789
  var rawSchema6 = schemas6.rawSchema;
1008
- var internalSchema5 = humanReadableIdentifierSchema;
1009
-
1010
- // i18n.ts
1011
- var i18n_exports = {};
1012
- __export(i18n_exports, {
1013
- default: () => i18n_default
1014
- });
1015
- var import_i18next = __toESM(require("i18next"));
1016
- var i18n_default = async () => {
1017
- const i18n = {
1018
- ...await import_i18next.default.init({
1019
- lng: "en",
1020
- debug: false,
1021
- resources: {
1022
- // TODO: Move to separate language files
1023
- en: {
1024
- translation: {
1025
- "appName": "Taqueria",
1026
- "appDesc": "Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.",
1027
- "versionDesc": "Display the version number of the Taqueria program",
1028
- "betaWarning": "Please be advised that Taqueria is currently in BETA.",
1029
- "configDirDesc": "Config directory (default ./.taq)",
1030
- "initDesc": "Initialize a new project",
1031
- "optInDesc": "Opt-in to sharing anonymous usage analytics",
1032
- "optOutDesc": "Opt-out of sharing anonymous usage analytics",
1033
- "initPathDesc": "Path to your project directory",
1034
- "workflowDesc": "Select a workflow to initialize your Taqueria project. Choices are (ligo|smartpy|archetype|michelson)",
1035
- "scaffoldDesc": `Generate a new project using pre-made scaffold. Recommended for creating a new project.`,
1036
- "scaffoldUrlDesc": "Alias or Url for the scaffold project",
1037
- "scaffoldProjectDirDesc": "Path where to create the new project. This must be a new directory.",
1038
- "scaffoldDoneMsg": "The project was created using the scaffold.",
1039
- "installDesc": "Install a plugin",
1040
- "pluginInstalled": "Plugin installed successfully",
1041
- "pluginUninstalled": "Plugin uninstalled successfully",
1042
- "uninstallDesc": "Uninstall a plugin",
1043
- "pluginNameDesc": "The name of the plugin",
1044
- "promptForTask": "Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\n",
1045
- "pluginKindDesc": "Kind of plugin (NPM, Binary)",
1046
- "pluginAlreadyInstalled": "That plugin is already installed.",
1047
- "pluginOptionDesc": "Use the task from this plugin",
1048
- "bootstrapMsg": "Project taq'ified!",
1049
- "maxConcurrencyDesc": "Set the maximum concurrency limit used internally",
1050
- "providedByMany": "Provided by more than one plugin. The option --plugin is required.",
1051
- "pluginDesc": "Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.",
1052
- "listNetworks": "List known networks",
1053
- "envDesc": "Specify an environment configuration",
1054
- "disableStateDesc": "Does not use the saved state.json file. State is computed for each execution.",
1055
- "logPluginCallsDesc": "Logs any execution calls to a plugin to the console",
1056
- "npmInitRequired": "This project isn't a valid NPM project. Please run: npm init",
1057
- "testFromVsCode": "An internal command used by VS Code to test for the taq binary",
1058
- "fromVsCode": "An internal flag used to indicate that taq is executed via vscode",
1059
- "buildDesc": "Display build information about the current version",
1060
- "pluginOption": "Use to specify what plugin you'd like when running this task.",
1061
- "yesOptionDesc": 'Select "yes" to any prompt',
1062
- "templateNotFound": "Template not found. Perhaps you need to install a plugin?",
1063
- "createDesc": "Create files from pre-existing templates",
1064
- "templateDesc": "Name of the template to use"
1065
- }
1066
- }
1067
- }
1068
- }),
1069
- __: import_i18next.default.t
1070
- };
1071
- return i18n;
1072
- };
790
+ var internalSchema6 = configFileV2Schema;
1073
791
 
1074
- // InstalledPlugin.ts
1075
- var InstalledPlugin_exports = {};
1076
- __export(InstalledPlugin_exports, {
792
+ // Contract.ts
793
+ var Contract_exports = {};
794
+ __export(Contract_exports, {
1077
795
  create: () => create8,
1078
- from: () => from6,
1079
- internalSchema: () => internalSchema6,
796
+ from: () => from7,
797
+ internalSchema: () => internalSchema7,
1080
798
  make: () => make7,
1081
799
  of: () => of7,
1082
800
  rawSchema: () => rawSchema7,
1083
801
  schemas: () => schemas7
1084
802
  });
1085
803
 
1086
- // out/types/InstalledPlugin.ts
1087
- var import_fluture9 = require("fluture");
1088
- var import_zod9 = require("zod");
1089
- var from6 = (input) => {
804
+ // out/types/Contract.ts
805
+ var import_fluture8 = require("fluture");
806
+ var import_zod8 = require("zod");
807
+ var from7 = (input) => {
1090
808
  try {
1091
- return installedPluginSchema.parse(input);
809
+ return contractSchema.parse(input);
1092
810
  } catch (previous) {
1093
- if (previous instanceof import_zod9.ZodError) {
811
+ if (previous instanceof import_zod8.ZodError) {
1094
812
  const msgs = previous.errors.reduce(
1095
813
  (retval, issue) => {
1096
814
  const path2 = issue.path.join(" \u2192 ");
1097
815
  const msg = path2 + ": " + issue.message;
1098
816
  return [...retval, msg];
1099
817
  },
1100
- ["InstalledPlugin is invalid:"]
818
+ ["Contract is invalid:"]
1101
819
  );
1102
820
  const validationErr = msgs.join("\n") + "\n";
1103
821
  throw toParseErr(previous, validationErr);
1104
822
  }
1105
- throw toParseUnknownErr(previous, "There was a problem trying to parse a InstalledPlugin.");
823
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Contract.");
1106
824
  }
1107
825
  };
1108
- var create8 = (input) => from6(input);
826
+ var create8 = (input) => from7(input);
1109
827
  var of7 = (input) => {
1110
828
  try {
1111
- return (0, import_fluture9.resolve)(from6(input));
829
+ return (0, import_fluture8.resolve)(from7(input));
1112
830
  } catch (err) {
1113
- return (0, import_fluture9.reject)(err);
831
+ return (0, import_fluture8.reject)(err);
1114
832
  }
1115
833
  };
1116
834
  var make7 = (input) => of7(input);
1117
835
  var schemas7 = {
1118
- rawSchema: installedPluginSchema,
1119
- schema: installedPluginSchema.transform((val) => val)
836
+ rawSchema: contractSchema,
837
+ schema: contractSchema.transform((val) => val)
1120
838
  };
1121
839
  var rawSchema7 = schemas7.rawSchema;
1122
- var internalSchema6 = installedPluginSchema;
840
+ var internalSchema7 = contractSchema;
1123
841
 
1124
- // LoadedConfig.ts
1125
- var LoadedConfig_exports = {};
1126
- __export(LoadedConfig_exports, {
842
+ // Faucet.ts
843
+ var Faucet_exports = {};
844
+ __export(Faucet_exports, {
1127
845
  create: () => create9,
1128
- from: () => from7,
1129
- internalSchema: () => internalSchema7,
846
+ from: () => from8,
847
+ internalSchema: () => internalSchema8,
1130
848
  make: () => make8,
1131
849
  of: () => of8,
1132
850
  rawSchema: () => rawSchema8,
1133
851
  schemas: () => schemas8
1134
852
  });
1135
853
 
1136
- // out/types/LoadedConfig.ts
1137
- var import_fluture10 = require("fluture");
1138
- var import_zod10 = require("zod");
1139
- var from7 = (input) => {
854
+ // out/types/Faucet.ts
855
+ var import_fluture9 = require("fluture");
856
+ var import_zod9 = require("zod");
857
+ var from8 = (input) => {
1140
858
  try {
1141
- return loadedConfigSchema.parse(input);
859
+ return faucetSchema.parse(input);
1142
860
  } catch (previous) {
1143
- if (previous instanceof import_zod10.ZodError) {
861
+ if (previous instanceof import_zod9.ZodError) {
1144
862
  const msgs = previous.errors.reduce(
1145
863
  (retval, issue) => {
1146
864
  const path2 = issue.path.join(" \u2192 ");
1147
865
  const msg = path2 + ": " + issue.message;
1148
866
  return [...retval, msg];
1149
867
  },
1150
- ["Your .taq/config.json is invalid:"]
868
+ ["Faucet is invalid:"]
1151
869
  );
1152
870
  const validationErr = msgs.join("\n") + "\n";
1153
871
  throw toParseErr(previous, validationErr);
1154
872
  }
1155
- throw toParseUnknownErr(previous, "There was a problem trying to parse a LoadedConfig.");
873
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Faucet.");
1156
874
  }
1157
875
  };
1158
- var create9 = (input) => from7(input);
876
+ var create9 = (input) => from8(input);
1159
877
  var of8 = (input) => {
1160
878
  try {
1161
- return (0, import_fluture10.resolve)(from7(input));
879
+ return (0, import_fluture9.resolve)(from8(input));
1162
880
  } catch (err) {
1163
- return (0, import_fluture10.reject)(err);
881
+ return (0, import_fluture9.reject)(err);
1164
882
  }
1165
883
  };
1166
884
  var make8 = (input) => of8(input);
1167
885
  var schemas8 = {
1168
- rawSchema: loadedConfigSchema,
1169
- schema: loadedConfigSchema.transform((val) => val)
886
+ rawSchema: faucetSchema,
887
+ schema: faucetSchema.transform((val) => val)
1170
888
  };
1171
889
  var rawSchema8 = schemas8.rawSchema;
1172
- var internalSchema7 = loadedConfigSchema;
890
+ var internalSchema8 = faucetSchema;
1173
891
 
1174
- // MetadataConfig.ts
1175
- var MetadataConfig_exports = {};
1176
- __export(MetadataConfig_exports, {
892
+ // HumanReadableIdentifier.ts
893
+ var HumanReadableIdentifier_exports = {};
894
+ __export(HumanReadableIdentifier_exports, {
1177
895
  create: () => create10,
1178
- from: () => from8,
1179
- internalSchema: () => internalSchema8,
896
+ from: () => from9,
897
+ internalSchema: () => internalSchema9,
1180
898
  make: () => make9,
1181
899
  of: () => of9,
1182
900
  rawSchema: () => rawSchema9,
1183
901
  schemas: () => schemas9
1184
902
  });
1185
903
 
1186
- // out/types/MetadataConfig.ts
1187
- var import_fluture11 = require("fluture");
1188
- var import_zod11 = require("zod");
1189
- var from8 = (input) => {
904
+ // out/types/HumanReadableIdentifier.ts
905
+ var import_fluture10 = require("fluture");
906
+ var import_zod10 = require("zod");
907
+ var from9 = (input) => {
1190
908
  try {
1191
- return metadataConfigSchema.parse(input);
909
+ return humanReadableIdentifierSchema.parse(input);
1192
910
  } catch (previous) {
1193
- if (previous instanceof import_zod11.ZodError) {
911
+ if (previous instanceof import_zod10.ZodError) {
1194
912
  const msgs = previous.errors.reduce(
1195
913
  (retval, issue) => {
1196
914
  const path2 = issue.path.join(" \u2192 ");
1197
915
  const msg = path2 + ": " + issue.message;
1198
916
  return [...retval, msg];
1199
917
  },
1200
- ["MetadataConfig is invalid:"]
918
+ ["HumanReadableIdentifier is invalid:"]
1201
919
  );
1202
920
  const validationErr = msgs.join("\n") + "\n";
1203
921
  throw toParseErr(previous, validationErr);
1204
922
  }
1205
- throw toParseUnknownErr(previous, "There was a problem trying to parse a MetadataConfig.");
923
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a HumanReadableIdentifier.");
1206
924
  }
1207
925
  };
1208
- var create10 = (input) => from8(input);
926
+ var create10 = (input) => from9(input);
1209
927
  var of9 = (input) => {
1210
928
  try {
1211
- return (0, import_fluture11.resolve)(from8(input));
929
+ return (0, import_fluture10.resolve)(from9(input));
1212
930
  } catch (err) {
1213
- return (0, import_fluture11.reject)(err);
931
+ return (0, import_fluture10.reject)(err);
1214
932
  }
1215
933
  };
1216
934
  var make9 = (input) => of9(input);
1217
935
  var schemas9 = {
1218
- rawSchema: metadataConfigSchema,
1219
- schema: metadataConfigSchema.transform((val) => val)
936
+ rawSchema: humanReadableIdentifierSchema,
937
+ schema: humanReadableIdentifierSchema.transform((val) => val)
1220
938
  };
1221
939
  var rawSchema9 = schemas9.rawSchema;
1222
- var internalSchema8 = metadataConfigSchema;
940
+ var internalSchema9 = humanReadableIdentifierSchema;
1223
941
 
1224
- // NetworkConfig.ts
1225
- var NetworkConfig_exports = {};
1226
- __export(NetworkConfig_exports, {
942
+ // InstalledPlugin.ts
943
+ var InstalledPlugin_exports = {};
944
+ __export(InstalledPlugin_exports, {
1227
945
  create: () => create11,
1228
- from: () => from9,
1229
- internalSchema: () => internalSchema9,
946
+ from: () => from10,
947
+ internalSchema: () => internalSchema10,
1230
948
  make: () => make10,
1231
949
  of: () => of10,
1232
950
  rawSchema: () => rawSchema10,
1233
951
  schemas: () => schemas10
1234
952
  });
1235
953
 
1236
- // out/types/NetworkConfig.ts
1237
- var import_fluture12 = require("fluture");
1238
- var import_zod12 = require("zod");
1239
- var from9 = (input) => {
954
+ // out/types/InstalledPlugin.ts
955
+ var import_fluture11 = require("fluture");
956
+ var import_zod11 = require("zod");
957
+ var from10 = (input) => {
1240
958
  try {
1241
- return networkConfigSchema.parse(input);
959
+ return installedPluginSchema.parse(input);
1242
960
  } catch (previous) {
1243
- if (previous instanceof import_zod12.ZodError) {
961
+ if (previous instanceof import_zod11.ZodError) {
1244
962
  const msgs = previous.errors.reduce(
1245
963
  (retval, issue) => {
1246
964
  const path2 = issue.path.join(" \u2192 ");
1247
965
  const msg = path2 + ": " + issue.message;
1248
966
  return [...retval, msg];
1249
967
  },
1250
- ["NetworkConfig is invalid:"]
968
+ ["InstalledPlugin is invalid:"]
1251
969
  );
1252
970
  const validationErr = msgs.join("\n") + "\n";
1253
971
  throw toParseErr(previous, validationErr);
1254
972
  }
1255
- throw toParseUnknownErr(previous, "There was a problem trying to parse a NetworkConfig.");
973
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a InstalledPlugin.");
1256
974
  }
1257
975
  };
1258
- var create11 = (input) => from9(input);
976
+ var create11 = (input) => from10(input);
1259
977
  var of10 = (input) => {
1260
978
  try {
1261
- return (0, import_fluture12.resolve)(from9(input));
979
+ return (0, import_fluture11.resolve)(from10(input));
1262
980
  } catch (err) {
1263
- return (0, import_fluture12.reject)(err);
981
+ return (0, import_fluture11.reject)(err);
1264
982
  }
1265
983
  };
1266
984
  var make10 = (input) => of10(input);
1267
985
  var schemas10 = {
1268
- rawSchema: networkConfigSchema,
1269
- schema: networkConfigSchema.transform((val) => val)
986
+ rawSchema: installedPluginSchema,
987
+ schema: installedPluginSchema.transform((val) => val)
1270
988
  };
1271
989
  var rawSchema10 = schemas10.rawSchema;
1272
- var internalSchema9 = networkConfigSchema;
990
+ var internalSchema10 = installedPluginSchema;
1273
991
 
1274
- // Operation.ts
1275
- var Operation_exports = {};
1276
- __export(Operation_exports, {
992
+ // LoadedConfig.ts
993
+ var LoadedConfig_exports = {};
994
+ __export(LoadedConfig_exports, {
1277
995
  create: () => create12,
1278
- from: () => from10,
1279
- internalSchema: () => internalSchema10,
996
+ from: () => from11,
997
+ internalSchema: () => internalSchema11,
1280
998
  make: () => make11,
1281
999
  of: () => of11,
1282
1000
  rawSchema: () => rawSchema11,
1283
1001
  schemas: () => schemas11
1284
1002
  });
1285
1003
 
1286
- // out/types/Operation.ts
1287
- var import_fluture13 = require("fluture");
1288
- var import_zod13 = require("zod");
1289
- var from10 = (input) => {
1004
+ // out/types/LoadedConfig.ts
1005
+ var import_fluture12 = require("fluture");
1006
+ var import_zod12 = require("zod");
1007
+ var from11 = (input) => {
1290
1008
  try {
1291
- return operationSchema.parse(input);
1009
+ return loadedConfigSchema.parse(input);
1292
1010
  } catch (previous) {
1293
- if (previous instanceof import_zod13.ZodError) {
1011
+ if (previous instanceof import_zod12.ZodError) {
1294
1012
  const msgs = previous.errors.reduce(
1295
1013
  (retval, issue) => {
1296
1014
  const path2 = issue.path.join(" \u2192 ");
1297
1015
  const msg = path2 + ": " + issue.message;
1298
1016
  return [...retval, msg];
1299
1017
  },
1300
- ["Operation is invalid:"]
1018
+ ["Your .taq/config.json is invalid:"]
1301
1019
  );
1302
1020
  const validationErr = msgs.join("\n") + "\n";
1303
1021
  throw toParseErr(previous, validationErr);
1304
1022
  }
1305
- throw toParseUnknownErr(previous, "There was a problem trying to parse a Operation.");
1023
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a LoadedConfig.");
1306
1024
  }
1307
1025
  };
1308
- var create12 = (input) => from10(input);
1026
+ var create12 = (input) => from11(input);
1309
1027
  var of11 = (input) => {
1310
1028
  try {
1311
- return (0, import_fluture13.resolve)(from10(input));
1029
+ return (0, import_fluture12.resolve)(from11(input));
1312
1030
  } catch (err) {
1313
- return (0, import_fluture13.reject)(err);
1031
+ return (0, import_fluture12.reject)(err);
1314
1032
  }
1315
1033
  };
1316
1034
  var make11 = (input) => of11(input);
1317
1035
  var schemas11 = {
1318
- rawSchema: operationSchema,
1319
- schema: operationSchema.transform((val) => val)
1036
+ rawSchema: loadedConfigSchema,
1037
+ schema: loadedConfigSchema.transform((val) => val)
1320
1038
  };
1321
1039
  var rawSchema11 = schemas11.rawSchema;
1322
- var internalSchema10 = operationSchema;
1040
+ var internalSchema11 = loadedConfigSchema;
1323
1041
 
1324
- // Option.ts
1325
- var Option_exports = {};
1326
- __export(Option_exports, {
1042
+ // MetadataConfig.ts
1043
+ var MetadataConfig_exports = {};
1044
+ __export(MetadataConfig_exports, {
1327
1045
  create: () => create13,
1328
- from: () => from11,
1329
- internalSchema: () => internalSchema11,
1046
+ from: () => from12,
1047
+ internalSchema: () => internalSchema12,
1330
1048
  make: () => make12,
1331
1049
  of: () => of12,
1332
1050
  rawSchema: () => rawSchema12,
1333
1051
  schemas: () => schemas12
1334
1052
  });
1335
1053
 
1336
- // out/types/Option.ts
1337
- var import_fluture14 = require("fluture");
1338
- var import_zod14 = require("zod");
1339
- var from11 = (input) => {
1054
+ // out/types/MetadataConfig.ts
1055
+ var import_fluture13 = require("fluture");
1056
+ var import_zod13 = require("zod");
1057
+ var from12 = (input) => {
1340
1058
  try {
1341
- return optionSchema.parse(input);
1059
+ return metadataConfigSchema.parse(input);
1342
1060
  } catch (previous) {
1343
- if (previous instanceof import_zod14.ZodError) {
1061
+ if (previous instanceof import_zod13.ZodError) {
1344
1062
  const msgs = previous.errors.reduce(
1345
1063
  (retval, issue) => {
1346
1064
  const path2 = issue.path.join(" \u2192 ");
1347
1065
  const msg = path2 + ": " + issue.message;
1348
1066
  return [...retval, msg];
1349
1067
  },
1350
- ["Option is invalid:"]
1068
+ ["MetadataConfig is invalid:"]
1351
1069
  );
1352
1070
  const validationErr = msgs.join("\n") + "\n";
1353
1071
  throw toParseErr(previous, validationErr);
1354
1072
  }
1355
- throw toParseUnknownErr(previous, "There was a problem trying to parse a Option.");
1073
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a MetadataConfig.");
1356
1074
  }
1357
1075
  };
1358
- var create13 = (input) => from11(input);
1076
+ var create13 = (input) => from12(input);
1359
1077
  var of12 = (input) => {
1360
1078
  try {
1361
- return (0, import_fluture14.resolve)(from11(input));
1079
+ return (0, import_fluture13.resolve)(from12(input));
1362
1080
  } catch (err) {
1363
- return (0, import_fluture14.reject)(err);
1081
+ return (0, import_fluture13.reject)(err);
1364
1082
  }
1365
1083
  };
1366
1084
  var make12 = (input) => of12(input);
1367
1085
  var schemas12 = {
1368
- rawSchema: optionSchema,
1369
- schema: optionSchema.transform((val) => val)
1086
+ rawSchema: metadataConfigSchema,
1087
+ schema: metadataConfigSchema.transform((val) => val)
1370
1088
  };
1371
1089
  var rawSchema12 = schemas12.rawSchema;
1372
- var internalSchema11 = optionSchema;
1090
+ var internalSchema12 = metadataConfigSchema;
1373
1091
 
1374
- // ParsedOperation.ts
1375
- var ParsedOperation_exports = {};
1376
- __export(ParsedOperation_exports, {
1092
+ // NetworkAccountConfig.ts
1093
+ var NetworkAccountConfig_exports = {};
1094
+ __export(NetworkAccountConfig_exports, {
1377
1095
  create: () => create14,
1378
- from: () => from12,
1379
- internalSchema: () => internalSchema12,
1096
+ from: () => from13,
1097
+ internalSchema: () => internalSchema13,
1380
1098
  make: () => make13,
1381
1099
  of: () => of13,
1382
1100
  rawSchema: () => rawSchema13,
1383
1101
  schemas: () => schemas13
1384
1102
  });
1385
1103
 
1386
- // out/types/ParsedOperation.ts
1387
- var import_fluture15 = require("fluture");
1388
- var import_zod15 = require("zod");
1389
- var from12 = (input) => {
1104
+ // out/types/NetworkAccountConfig.ts
1105
+ var import_fluture14 = require("fluture");
1106
+ var import_zod14 = require("zod");
1107
+ var from13 = (input) => {
1390
1108
  try {
1391
- return parsedOperationSchema.parse(input);
1109
+ return networkAccountConfigSchema.parse(input);
1392
1110
  } catch (previous) {
1393
- if (previous instanceof import_zod15.ZodError) {
1111
+ if (previous instanceof import_zod14.ZodError) {
1394
1112
  const msgs = previous.errors.reduce(
1395
1113
  (retval, issue) => {
1396
1114
  const path2 = issue.path.join(" \u2192 ");
1397
1115
  const msg = path2 + ": " + issue.message;
1398
1116
  return [...retval, msg];
1399
1117
  },
1400
- ["ParsedOperation is invalid:"]
1118
+ ["NetworkAccountConfig is invalid:"]
1401
1119
  );
1402
1120
  const validationErr = msgs.join("\n") + "\n";
1403
1121
  throw toParseErr(previous, validationErr);
1404
1122
  }
1405
- throw toParseUnknownErr(previous, "There was a problem trying to parse a ParsedOperation.");
1123
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a NetworkAccountConfig.");
1406
1124
  }
1407
1125
  };
1408
- var create14 = (input) => from12(input);
1126
+ var create14 = (input) => from13(input);
1409
1127
  var of13 = (input) => {
1410
1128
  try {
1411
- return (0, import_fluture15.resolve)(from12(input));
1129
+ return (0, import_fluture14.resolve)(from13(input));
1412
1130
  } catch (err) {
1413
- return (0, import_fluture15.reject)(err);
1131
+ return (0, import_fluture14.reject)(err);
1414
1132
  }
1415
1133
  };
1416
1134
  var make13 = (input) => of13(input);
1417
1135
  var schemas13 = {
1418
- rawSchema: parsedOperationSchema,
1419
- schema: parsedOperationSchema.transform((val) => val)
1136
+ rawSchema: networkAccountConfigSchema,
1137
+ schema: networkAccountConfigSchema.transform((val) => val)
1420
1138
  };
1421
1139
  var rawSchema13 = schemas13.rawSchema;
1422
- var internalSchema12 = parsedOperationSchema;
1140
+ var internalSchema13 = networkAccountConfigSchema;
1423
1141
 
1424
- // ParsedTemplate.ts
1425
- var ParsedTemplate_exports = {};
1426
- __export(ParsedTemplate_exports, {
1142
+ // NetworkConfig.ts
1143
+ var NetworkConfig_exports = {};
1144
+ __export(NetworkConfig_exports, {
1427
1145
  create: () => create15,
1428
- from: () => from13,
1429
- internalSchema: () => internalSchema13,
1146
+ from: () => from14,
1147
+ internalSchema: () => internalSchema14,
1430
1148
  make: () => make14,
1431
1149
  of: () => of14,
1432
1150
  rawSchema: () => rawSchema14,
1433
1151
  schemas: () => schemas14
1434
1152
  });
1435
1153
 
1436
- // out/types/ParsedTemplate.ts
1437
- var import_fluture16 = require("fluture");
1438
- var import_zod16 = require("zod");
1439
- var from13 = (input) => {
1154
+ // out/types/NetworkConfig.ts
1155
+ var import_fluture15 = require("fluture");
1156
+ var import_zod15 = require("zod");
1157
+ var from14 = (input) => {
1440
1158
  try {
1441
- return parsedTemplateSchema.parse(input);
1159
+ return networkConfigSchema.parse(input);
1442
1160
  } catch (previous) {
1443
- if (previous instanceof import_zod16.ZodError) {
1161
+ if (previous instanceof import_zod15.ZodError) {
1444
1162
  const msgs = previous.errors.reduce(
1445
1163
  (retval, issue) => {
1446
1164
  const path2 = issue.path.join(" \u2192 ");
1447
1165
  const msg = path2 + ": " + issue.message;
1448
1166
  return [...retval, msg];
1449
1167
  },
1450
- ["ParsedTemplate is invalid:"]
1168
+ ["NetworkConfig is invalid:"]
1451
1169
  );
1452
1170
  const validationErr = msgs.join("\n") + "\n";
1453
1171
  throw toParseErr(previous, validationErr);
1454
1172
  }
1455
- throw toParseUnknownErr(previous, "There was a problem trying to parse a ParsedTemplate.");
1173
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a NetworkConfig.");
1456
1174
  }
1457
1175
  };
1458
- var create15 = (input) => from13(input);
1176
+ var create15 = (input) => from14(input);
1459
1177
  var of14 = (input) => {
1460
1178
  try {
1461
- return (0, import_fluture16.resolve)(from13(input));
1179
+ return (0, import_fluture15.resolve)(from14(input));
1462
1180
  } catch (err) {
1463
- return (0, import_fluture16.reject)(err);
1181
+ return (0, import_fluture15.reject)(err);
1464
1182
  }
1465
1183
  };
1466
1184
  var make14 = (input) => of14(input);
1467
1185
  var schemas14 = {
1468
- rawSchema: parsedTemplateSchema,
1469
- schema: parsedTemplateSchema.transform((val) => val)
1186
+ rawSchema: networkConfigSchema,
1187
+ schema: networkConfigSchema.transform((val) => val)
1470
1188
  };
1471
1189
  var rawSchema14 = schemas14.rawSchema;
1472
- var internalSchema13 = parsedTemplateSchema;
1473
-
1474
- // PersistentState.ts
1475
- var PersistentState_exports = {};
1476
- __export(PersistentState_exports, {
1477
- create: () => create18,
1478
- factory: () => factory3,
1479
- generatedSchemas: () => generatedSchemas3,
1480
- internalSchema: () => internalSchema16,
1481
- make: () => make17,
1482
- of: () => of17,
1483
- rawSchema: () => rawSchema18,
1484
- schemas: () => schemas18
1485
- });
1190
+ var internalSchema14 = networkConfigSchema;
1486
1191
 
1487
- // SHA256.ts
1488
- var SHA256_exports = {};
1489
- __export(SHA256_exports, {
1490
- Crypto: () => Crypto,
1192
+ // NonEmptyString.ts
1193
+ var NonEmptyString_exports = {};
1194
+ __export(NonEmptyString_exports, {
1491
1195
  create: () => create16,
1492
- internalSchema: () => internalSchema14,
1196
+ from: () => from15,
1197
+ internalSchema: () => internalSchema15,
1493
1198
  make: () => make15,
1494
1199
  of: () => of15,
1495
1200
  rawSchema: () => rawSchema15,
1496
- schemas: () => schemas15,
1497
- toSHA256: () => toSHA256
1201
+ schemas: () => schemas15
1498
1202
  });
1499
- var import_fluture17 = require("fluture");
1500
- var import_rambda = require("rambda");
1501
- var import_zod17 = require("zod");
1502
- var eager2 = (f) => (0, import_fluture17.promise)(
1503
- (0, import_fluture17.mapRej)((err) => new E_TaqError(err))(f)
1504
- );
1505
- var Crypto = class {
1506
- constructor() {
1507
- this.subtle = {
1508
- digest(_method, _data) {
1509
- return new ArrayBuffer(50);
1510
- }
1511
- };
1203
+
1204
+ // out/types/NonEmptyString.ts
1205
+ var import_fluture16 = require("fluture");
1206
+ var import_zod16 = require("zod");
1207
+ var from15 = (input) => {
1208
+ try {
1209
+ return nonEmptyStringSchema.parse(input);
1210
+ } catch (previous) {
1211
+ if (previous instanceof import_zod16.ZodError) {
1212
+ const msgs = previous.errors.reduce(
1213
+ (retval, issue) => {
1214
+ const path2 = issue.path.join(" \u2192 ");
1215
+ const msg = path2 + ": " + issue.message;
1216
+ return [...retval, msg];
1217
+ },
1218
+ ["NonEmptyString is invalid:"]
1219
+ );
1220
+ const validationErr = msgs.join("\n") + "\n";
1221
+ throw toParseErr(previous, validationErr);
1222
+ }
1223
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a NonEmptyString.");
1512
1224
  }
1513
1225
  };
1514
- var getSubtleCrypto = async () => {
1515
- if ((0, import_rambda.has)("SubtleCrypto", globalThis)) {
1516
- return Promise.resolve(crypto.subtle);
1226
+ var create16 = (input) => from15(input);
1227
+ var of15 = (input) => {
1228
+ try {
1229
+ return (0, import_fluture16.resolve)(from15(input));
1230
+ } catch (err) {
1231
+ return (0, import_fluture16.reject)(err);
1517
1232
  }
1518
- const { Crypto: Crypto2 } = await import("@peculiar/webcrypto");
1519
- const webcrypto = new Crypto2();
1520
- return Promise.resolve(webcrypto.subtle);
1521
- };
1522
- var rawSchema15 = import_zod17.z.string({ description: "SHA256" }).length(64);
1523
- var { schemas: generatedSchemas2, factory: factory2 } = Base_default({
1524
- isStringLike: true,
1525
- rawSchema: rawSchema15,
1526
- parseErrMsg: (value) => `${value} is an invalid SHA256 hash`,
1527
- unknownErrMsg: (value) => `Something went wrong trying to parse the following as a SHA256 value, ${value}`
1528
- });
1529
- var toSHA256 = async (value) => {
1530
- const encoder = new TextEncoder();
1531
- const data = encoder.encode(value);
1532
- const hash = await (await getSubtleCrypto()).digest("SHA-256", data);
1533
- const hashArray = Array.from(new Uint8Array(hash));
1534
- const hashHex = hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
1535
- return eager2(factory2.make(hashHex));
1536
1233
  };
1537
- var internalSchema14 = generatedSchemas2.schema;
1538
- var { create: create16, of: of15, make: make15 } = factory2;
1234
+ var make15 = (input) => of15(input);
1539
1235
  var schemas15 = {
1540
- ...generatedSchemas2,
1541
- schema: generatedSchemas2.schema.transform((val) => val)
1236
+ rawSchema: nonEmptyStringSchema,
1237
+ schema: nonEmptyStringSchema.transform((val) => val)
1542
1238
  };
1239
+ var rawSchema15 = schemas15.rawSchema;
1240
+ var internalSchema15 = nonEmptyStringSchema;
1543
1241
 
1544
- // out/types/Timestamp.ts
1545
- var import_fluture18 = require("fluture");
1546
- var import_zod18 = require("zod");
1242
+ // Operation.ts
1243
+ var Operation_exports = {};
1244
+ __export(Operation_exports, {
1245
+ create: () => create17,
1246
+ from: () => from16,
1247
+ internalSchema: () => internalSchema16,
1248
+ make: () => make16,
1249
+ of: () => of16,
1250
+ rawSchema: () => rawSchema16,
1251
+ schemas: () => schemas16
1252
+ });
1253
+
1254
+ // out/types/Operation.ts
1255
+ var import_fluture17 = require("fluture");
1256
+ var import_zod17 = require("zod");
1257
+ var from16 = (input) => {
1258
+ try {
1259
+ return operationSchema.parse(input);
1260
+ } catch (previous) {
1261
+ if (previous instanceof import_zod17.ZodError) {
1262
+ const msgs = previous.errors.reduce(
1263
+ (retval, issue) => {
1264
+ const path2 = issue.path.join(" \u2192 ");
1265
+ const msg = path2 + ": " + issue.message;
1266
+ return [...retval, msg];
1267
+ },
1268
+ ["Operation is invalid:"]
1269
+ );
1270
+ const validationErr = msgs.join("\n") + "\n";
1271
+ throw toParseErr(previous, validationErr);
1272
+ }
1273
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Operation.");
1274
+ }
1275
+ };
1276
+ var create17 = (input) => from16(input);
1277
+ var of16 = (input) => {
1278
+ try {
1279
+ return (0, import_fluture17.resolve)(from16(input));
1280
+ } catch (err) {
1281
+ return (0, import_fluture17.reject)(err);
1282
+ }
1283
+ };
1284
+ var make16 = (input) => of16(input);
1547
1285
  var schemas16 = {
1548
- rawSchema: timestampSchema,
1549
- schema: timestampSchema.transform((val) => val)
1286
+ rawSchema: operationSchema,
1287
+ schema: operationSchema.transform((val) => val)
1550
1288
  };
1551
1289
  var rawSchema16 = schemas16.rawSchema;
1290
+ var internalSchema16 = operationSchema;
1552
1291
 
1553
- // Verb.ts
1554
- var Verb_exports = {};
1555
- __export(Verb_exports, {
1556
- create: () => create17,
1557
- from: () => from14,
1558
- internalSchema: () => internalSchema15,
1559
- make: () => make16,
1560
- of: () => of16,
1292
+ // Option.ts
1293
+ var Option_exports = {};
1294
+ __export(Option_exports, {
1295
+ create: () => create18,
1296
+ from: () => from17,
1297
+ internalSchema: () => internalSchema17,
1298
+ make: () => make17,
1299
+ of: () => of17,
1561
1300
  rawSchema: () => rawSchema17,
1562
1301
  schemas: () => schemas17
1563
1302
  });
1564
1303
 
1565
- // out/types/Verb.ts
1566
- var import_fluture19 = require("fluture");
1567
- var import_zod19 = require("zod");
1568
- var from14 = (input) => {
1304
+ // out/types/Option.ts
1305
+ var import_fluture18 = require("fluture");
1306
+ var import_zod18 = require("zod");
1307
+ var from17 = (input) => {
1569
1308
  try {
1570
- return verbSchema.parse(input);
1309
+ return optionSchema.parse(input);
1571
1310
  } catch (previous) {
1572
- if (previous instanceof import_zod19.ZodError) {
1311
+ if (previous instanceof import_zod18.ZodError) {
1573
1312
  const msgs = previous.errors.reduce(
1574
1313
  (retval, issue) => {
1575
1314
  const path2 = issue.path.join(" \u2192 ");
1576
1315
  const msg = path2 + ": " + issue.message;
1577
1316
  return [...retval, msg];
1578
1317
  },
1579
- ["Verb is invalid:"]
1318
+ ["Option is invalid:"]
1580
1319
  );
1581
1320
  const validationErr = msgs.join("\n") + "\n";
1582
1321
  throw toParseErr(previous, validationErr);
1583
1322
  }
1584
- throw toParseUnknownErr(previous, "There was a problem trying to parse a Verb.");
1323
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Option.");
1585
1324
  }
1586
1325
  };
1587
- var create17 = (input) => from14(input);
1588
- var of16 = (input) => {
1326
+ var create18 = (input) => from17(input);
1327
+ var of17 = (input) => {
1589
1328
  try {
1590
- return (0, import_fluture19.resolve)(from14(input));
1329
+ return (0, import_fluture18.resolve)(from17(input));
1591
1330
  } catch (err) {
1592
- return (0, import_fluture19.reject)(err);
1331
+ return (0, import_fluture18.reject)(err);
1593
1332
  }
1594
1333
  };
1595
- var make16 = (input) => of16(input);
1334
+ var make17 = (input) => of17(input);
1596
1335
  var schemas17 = {
1597
- rawSchema: verbSchema,
1598
- schema: verbSchema.transform((val) => val)
1336
+ rawSchema: optionSchema,
1337
+ schema: optionSchema.transform((val) => val)
1599
1338
  };
1600
1339
  var rawSchema17 = schemas17.rawSchema;
1601
- var internalSchema15 = verbSchema;
1340
+ var internalSchema17 = optionSchema;
1602
1341
 
1603
- // PersistentState.ts
1604
- var import_zod20 = require("zod");
1605
- var rawOpSchema = import_zod20.z.object({
1606
- hash: rawSchema15.describe("state.op.hash"),
1607
- time: rawSchema16.describe("state.op.time"),
1608
- output: import_zod20.z.unknown().describe("state.op.output")
1609
- }).describe("Persistent State Operation");
1610
- var rawTaskSchema = import_zod20.z.object({
1611
- task: schemas17.rawSchema,
1612
- plugin: import_zod20.z.string().min(1),
1613
- time: rawSchema16.describe("state.task.time"),
1614
- output: import_zod20.z.unknown().describe("state.task.output")
1615
- });
1616
- var internalOpSchema = import_zod20.z.object({
1617
- hash: schemas15.schema.describe("state.op.hash"),
1618
- time: schemas16.schema.describe("state.op.time"),
1619
- output: import_zod20.z.unknown().describe("state.op.output")
1620
- });
1621
- var internalTaskSchema = import_zod20.z.object({
1622
- task: schemas17.schema,
1623
- plugin: import_zod20.z.string().min(1),
1624
- time: schemas16.schema.describe("state.task.time"),
1625
- output: import_zod20.z.unknown().describe("state.op.output")
1626
- });
1627
- var rawSchema18 = import_zod20.z.object({
1628
- operations: import_zod20.z.record(rawOpSchema),
1629
- tasks: import_zod20.z.record(rawTaskSchema)
1630
- });
1631
- var internalSchema16 = import_zod20.z.object({
1632
- operations: import_zod20.z.record(internalOpSchema),
1633
- tasks: import_zod20.z.record(internalTaskSchema)
1634
- }).transform((val) => ({
1635
- operations: val.operations,
1636
- tasks: val.tasks
1637
- }));
1638
- var { schemas: generatedSchemas3, factory: factory3 } = Base_default({
1639
- rawSchema: rawSchema18,
1640
- parseErrMsg: `The persistent state is invalid`,
1641
- unknownErrMsg: `Something went wrong trying to parse the persistent state`
1342
+ // ParsedOperation.ts
1343
+ var ParsedOperation_exports = {};
1344
+ __export(ParsedOperation_exports, {
1345
+ create: () => create19,
1346
+ from: () => from18,
1347
+ internalSchema: () => internalSchema18,
1348
+ make: () => make18,
1349
+ of: () => of18,
1350
+ rawSchema: () => rawSchema18,
1351
+ schemas: () => schemas18
1642
1352
  });
1643
- var { create: create18, of: of17, make: make17 } = factory3;
1353
+
1354
+ // out/types/ParsedOperation.ts
1355
+ var import_fluture19 = require("fluture");
1356
+ var import_zod19 = require("zod");
1357
+ var from18 = (input) => {
1358
+ try {
1359
+ return parsedOperationSchema.parse(input);
1360
+ } catch (previous) {
1361
+ if (previous instanceof import_zod19.ZodError) {
1362
+ const msgs = previous.errors.reduce(
1363
+ (retval, issue) => {
1364
+ const path2 = issue.path.join(" \u2192 ");
1365
+ const msg = path2 + ": " + issue.message;
1366
+ return [...retval, msg];
1367
+ },
1368
+ ["ParsedOperation is invalid:"]
1369
+ );
1370
+ const validationErr = msgs.join("\n") + "\n";
1371
+ throw toParseErr(previous, validationErr);
1372
+ }
1373
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ParsedOperation.");
1374
+ }
1375
+ };
1376
+ var create19 = (input) => from18(input);
1377
+ var of18 = (input) => {
1378
+ try {
1379
+ return (0, import_fluture19.resolve)(from18(input));
1380
+ } catch (err) {
1381
+ return (0, import_fluture19.reject)(err);
1382
+ }
1383
+ };
1384
+ var make18 = (input) => of18(input);
1644
1385
  var schemas18 = {
1645
- ...generatedSchemas3,
1646
- schema: generatedSchemas3.schema.transform((val) => val)
1386
+ rawSchema: parsedOperationSchema,
1387
+ schema: parsedOperationSchema.transform((val) => val)
1647
1388
  };
1389
+ var rawSchema18 = schemas18.rawSchema;
1390
+ var internalSchema18 = parsedOperationSchema;
1648
1391
 
1649
- // PluginActionName.ts
1650
- var PluginActionName_exports = {};
1651
- __export(PluginActionName_exports, {
1652
- create: () => create19,
1653
- from: () => from15,
1654
- internalSchema: () => internalSchema17,
1655
- make: () => make18,
1656
- of: () => of18,
1392
+ // ParsedTemplate.ts
1393
+ var ParsedTemplate_exports = {};
1394
+ __export(ParsedTemplate_exports, {
1395
+ create: () => create20,
1396
+ from: () => from19,
1397
+ internalSchema: () => internalSchema19,
1398
+ make: () => make19,
1399
+ of: () => of19,
1657
1400
  rawSchema: () => rawSchema19,
1658
1401
  schemas: () => schemas19
1659
1402
  });
1660
1403
 
1661
- // out/types/PluginActionName.ts
1404
+ // out/types/ParsedTemplate.ts
1662
1405
  var import_fluture20 = require("fluture");
1663
- var import_zod21 = require("zod");
1664
- var from15 = (input) => {
1406
+ var import_zod20 = require("zod");
1407
+ var from19 = (input) => {
1665
1408
  try {
1666
- return pluginActionNameSchema.parse(input);
1409
+ return parsedTemplateSchema.parse(input);
1667
1410
  } catch (previous) {
1668
- if (previous instanceof import_zod21.ZodError) {
1411
+ if (previous instanceof import_zod20.ZodError) {
1669
1412
  const msgs = previous.errors.reduce(
1670
1413
  (retval, issue) => {
1671
1414
  const path2 = issue.path.join(" \u2192 ");
1672
1415
  const msg = path2 + ": " + issue.message;
1673
1416
  return [...retval, msg];
1674
1417
  },
1675
- ["PluginActionName is invalid:"]
1418
+ ["ParsedTemplate is invalid:"]
1676
1419
  );
1677
1420
  const validationErr = msgs.join("\n") + "\n";
1678
1421
  throw toParseErr(previous, validationErr);
1679
1422
  }
1680
- throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginActionName.");
1423
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ParsedTemplate.");
1681
1424
  }
1682
1425
  };
1683
- var create19 = (input) => from15(input);
1684
- var of18 = (input) => {
1426
+ var create20 = (input) => from19(input);
1427
+ var of19 = (input) => {
1685
1428
  try {
1686
- return (0, import_fluture20.resolve)(from15(input));
1429
+ return (0, import_fluture20.resolve)(from19(input));
1687
1430
  } catch (err) {
1688
1431
  return (0, import_fluture20.reject)(err);
1689
1432
  }
1690
1433
  };
1691
- var make18 = (input) => of18(input);
1434
+ var make19 = (input) => of19(input);
1692
1435
  var schemas19 = {
1693
- rawSchema: pluginActionNameSchema,
1694
- schema: pluginActionNameSchema.transform((val) => val)
1436
+ rawSchema: parsedTemplateSchema,
1437
+ schema: parsedTemplateSchema.transform((val) => val)
1695
1438
  };
1696
1439
  var rawSchema19 = schemas19.rawSchema;
1697
- var internalSchema17 = pluginActionNameSchema;
1440
+ var internalSchema19 = parsedTemplateSchema;
1698
1441
 
1699
- // PluginInfo.ts
1700
- var PluginInfo_exports = {};
1701
- __export(PluginInfo_exports, {
1702
- create: () => create22,
1703
- factory: () => factory4,
1442
+ // PluginActionName.ts
1443
+ var PluginActionName_exports = {};
1444
+ __export(PluginActionName_exports, {
1445
+ create: () => create21,
1446
+ from: () => from20,
1704
1447
  internalSchema: () => internalSchema20,
1705
- make: () => make21,
1706
- of: () => of21,
1707
- rawSchema: () => rawSchema22,
1708
- schemas: () => schemas22
1709
- });
1710
-
1711
- // Task.ts
1712
- var Task_exports = {};
1713
- __export(Task_exports, {
1714
- create: () => create20,
1715
- from: () => from16,
1716
- internalSchema: () => internalSchema18,
1717
- make: () => make19,
1718
- of: () => of19,
1448
+ make: () => make20,
1449
+ of: () => of20,
1719
1450
  rawSchema: () => rawSchema20,
1720
1451
  schemas: () => schemas20
1721
1452
  });
1722
1453
 
1723
- // out/types/Task.ts
1454
+ // out/types/PluginActionName.ts
1724
1455
  var import_fluture21 = require("fluture");
1725
- var import_zod22 = require("zod");
1726
- var from16 = (input) => {
1456
+ var import_zod21 = require("zod");
1457
+ var from20 = (input) => {
1727
1458
  try {
1728
- return taskSchema.parse(input);
1459
+ return pluginActionNameSchema.parse(input);
1729
1460
  } catch (previous) {
1730
- if (previous instanceof import_zod22.ZodError) {
1461
+ if (previous instanceof import_zod21.ZodError) {
1731
1462
  const msgs = previous.errors.reduce(
1732
1463
  (retval, issue) => {
1733
1464
  const path2 = issue.path.join(" \u2192 ");
1734
1465
  const msg = path2 + ": " + issue.message;
1735
1466
  return [...retval, msg];
1736
1467
  },
1737
- ["Task is invalid:"]
1468
+ ["PluginActionName is invalid:"]
1738
1469
  );
1739
1470
  const validationErr = msgs.join("\n") + "\n";
1740
1471
  throw toParseErr(previous, validationErr);
1741
1472
  }
1742
- throw toParseUnknownErr(previous, "There was a problem trying to parse a Task.");
1473
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginActionName.");
1743
1474
  }
1744
1475
  };
1745
- var create20 = (input) => from16(input);
1746
- var of19 = (input) => {
1476
+ var create21 = (input) => from20(input);
1477
+ var of20 = (input) => {
1747
1478
  try {
1748
- return (0, import_fluture21.resolve)(from16(input));
1479
+ return (0, import_fluture21.resolve)(from20(input));
1749
1480
  } catch (err) {
1750
1481
  return (0, import_fluture21.reject)(err);
1751
1482
  }
1752
1483
  };
1753
- var make19 = (input) => of19(input);
1484
+ var make20 = (input) => of20(input);
1754
1485
  var schemas20 = {
1755
- rawSchema: taskSchema,
1756
- schema: taskSchema.transform((val) => val)
1486
+ rawSchema: pluginActionNameSchema,
1487
+ schema: pluginActionNameSchema.transform((val) => val)
1757
1488
  };
1758
1489
  var rawSchema20 = schemas20.rawSchema;
1759
- var internalSchema18 = taskSchema;
1490
+ var internalSchema20 = pluginActionNameSchema;
1760
1491
 
1761
- // VersionNumber.ts
1762
- var VersionNumber_exports = {};
1763
- __export(VersionNumber_exports, {
1764
- create: () => create21,
1765
- from: () => from17,
1766
- internalSchema: () => internalSchema19,
1767
- make: () => make20,
1768
- of: () => of20,
1492
+ // PluginDependenciesResponse.ts
1493
+ var PluginDependenciesResponse_exports = {};
1494
+ __export(PluginDependenciesResponse_exports, {
1495
+ create: () => create22,
1496
+ from: () => from21,
1497
+ internalSchema: () => internalSchema21,
1498
+ make: () => make21,
1499
+ of: () => of21,
1769
1500
  rawSchema: () => rawSchema21,
1770
1501
  schemas: () => schemas21
1771
1502
  });
1772
1503
 
1773
- // out/types/VersionNumber.ts
1504
+ // out/types/PluginDependenciesResponse.ts
1774
1505
  var import_fluture22 = require("fluture");
1775
- var import_zod23 = require("zod");
1776
- var from17 = (input) => {
1506
+ var import_zod22 = require("zod");
1507
+ var from21 = (input) => {
1777
1508
  try {
1778
- return versionNumberSchema.parse(input);
1509
+ return pluginDependenciesResponseSchema.parse(input);
1779
1510
  } catch (previous) {
1780
- if (previous instanceof import_zod23.ZodError) {
1511
+ if (previous instanceof import_zod22.ZodError) {
1781
1512
  const msgs = previous.errors.reduce(
1782
1513
  (retval, issue) => {
1783
1514
  const path2 = issue.path.join(" \u2192 ");
1784
1515
  const msg = path2 + ": " + issue.message;
1785
1516
  return [...retval, msg];
1786
1517
  },
1787
- ["VersionNumber is invalid:"]
1518
+ ["PluginDependenciesResponse is invalid:"]
1788
1519
  );
1789
1520
  const validationErr = msgs.join("\n") + "\n";
1790
1521
  throw toParseErr(previous, validationErr);
1791
1522
  }
1792
- throw toParseUnknownErr(previous, "There was a problem trying to parse a VersionNumber.");
1523
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginDependenciesResponse.");
1793
1524
  }
1794
1525
  };
1795
- var create21 = (input) => from17(input);
1796
- var of20 = (input) => {
1526
+ var create22 = (input) => from21(input);
1527
+ var of21 = (input) => {
1797
1528
  try {
1798
- return (0, import_fluture22.resolve)(from17(input));
1529
+ return (0, import_fluture22.resolve)(from21(input));
1799
1530
  } catch (err) {
1800
1531
  return (0, import_fluture22.reject)(err);
1801
1532
  }
1802
1533
  };
1803
- var make20 = (input) => of20(input);
1534
+ var make21 = (input) => of21(input);
1804
1535
  var schemas21 = {
1805
- rawSchema: versionNumberSchema,
1806
- schema: versionNumberSchema.transform((val) => val)
1536
+ rawSchema: pluginDependenciesResponseSchema,
1537
+ schema: pluginDependenciesResponseSchema.transform((val) => val)
1807
1538
  };
1808
1539
  var rawSchema21 = schemas21.rawSchema;
1809
- var internalSchema19 = versionNumberSchema;
1810
-
1811
- // PluginInfo.ts
1812
- var import_zod24 = require("zod");
1813
- var rawSchema22 = import_zod24.z.object({
1814
- name: import_zod24.z.string({ description: "Plugin Name" }).min(1),
1815
- version: rawSchema21.describe("Plugin Version #"),
1816
- schema: rawSchema21.describe("Plugin Schema Version #"),
1817
- alias: rawSchema.describe("Plugin Alias"),
1818
- postInstall: import_zod24.z.string().optional(),
1819
- tasks: import_zod24.z.preprocess(
1820
- (val) => val != null ? val : [],
1821
- import_zod24.z.array(
1822
- schemas20.schema.describe("Plugin Task"),
1823
- { description: "Plugin Tasks" }
1824
- )
1825
- ).optional(),
1826
- operations: import_zod24.z.preprocess(
1827
- (val) => val != null ? val : [],
1828
- import_zod24.z.array(
1829
- schemas13.schema.describe("Plugin Operation"),
1830
- { description: "Plugin Operations" }
1831
- )
1832
- ).optional(),
1833
- templates: import_zod24.z.preprocess(
1834
- (val) => val != null ? val : [],
1835
- import_zod24.z.array(
1836
- schemas14.schema.describe("Plugin Template")
1837
- )
1838
- ).optional()
1839
- });
1840
- var internalSchema20 = rawSchema22.extend({
1841
- version: schemas21.schema.describe("Plugin Version #"),
1842
- schema: schemas21.schema.describe("Plugin Schema Version #"),
1843
- alias: schemas.schema.describe("Plugin Alias"),
1844
- tasks: import_zod24.z.preprocess(
1845
- (val) => val != null ? val : [],
1846
- import_zod24.z.array(
1847
- schemas20.schema.describe("Plugin Task"),
1848
- { description: "Plugin Tasks" }
1849
- )
1850
- ).optional(),
1851
- operations: import_zod24.z.preprocess(
1852
- (val) => val != null ? val : [],
1853
- import_zod24.z.array(
1854
- schemas13.schema.describe("Plugin Operation"),
1855
- { description: "Plugin Operations" }
1856
- )
1857
- ).optional(),
1858
- templates: import_zod24.z.preprocess(
1859
- (val) => val != null ? val : [],
1860
- import_zod24.z.array(
1861
- schemas14.schema.describe("Plugin Template")
1862
- )
1863
- ).optional()
1864
- }).describe("Plugin Schema");
1865
- var { schemas: schemas22, factory: factory4 } = Base_default({
1866
- rawSchema: rawSchema22,
1867
- internalSchema: internalSchema20,
1868
- parseErrMsg: "The schema returned from the plugin is invalid",
1869
- unknownErrMsg: "Something went wrong parsing the schema from a plugin"
1870
- });
1871
- var { create: create22, of: of21, make: make21 } = factory4;
1540
+ var internalSchema21 = pluginDependenciesResponseSchema;
1872
1541
 
1873
1542
  // PluginJsonResponse.ts
1874
1543
  var PluginJsonResponse_exports = {};
1875
1544
  __export(PluginJsonResponse_exports, {
1876
1545
  create: () => create23,
1877
- from: () => from18,
1878
- internalSchema: () => internalSchema21,
1546
+ from: () => from22,
1547
+ internalSchema: () => internalSchema22,
1879
1548
  make: () => make22,
1880
1549
  of: () => of22,
1881
- rawSchema: () => rawSchema23,
1882
- schemas: () => schemas23
1550
+ rawSchema: () => rawSchema22,
1551
+ schemas: () => schemas22
1883
1552
  });
1884
1553
 
1885
1554
  // out/types/PluginJsonResponse.ts
1886
1555
  var import_fluture23 = require("fluture");
1887
- var import_zod25 = require("zod");
1888
- var from18 = (input) => {
1556
+ var import_zod23 = require("zod");
1557
+ var from22 = (input) => {
1889
1558
  try {
1890
1559
  return pluginJsonResponseSchema.parse(input);
1891
1560
  } catch (previous) {
1892
- if (previous instanceof import_zod25.ZodError) {
1561
+ if (previous instanceof import_zod23.ZodError) {
1893
1562
  const msgs = previous.errors.reduce(
1894
1563
  (retval, issue) => {
1895
1564
  const path2 = issue.path.join(" \u2192 ");
@@ -1904,204 +1573,142 @@ var from18 = (input) => {
1904
1573
  throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginJsonResponse.");
1905
1574
  }
1906
1575
  };
1907
- var create23 = (input) => from18(input);
1576
+ var create23 = (input) => from22(input);
1908
1577
  var of22 = (input) => {
1909
1578
  try {
1910
- return (0, import_fluture23.resolve)(from18(input));
1579
+ return (0, import_fluture23.resolve)(from22(input));
1911
1580
  } catch (err) {
1912
1581
  return (0, import_fluture23.reject)(err);
1913
1582
  }
1914
1583
  };
1915
1584
  var make22 = (input) => of22(input);
1916
- var schemas23 = {
1585
+ var schemas22 = {
1917
1586
  rawSchema: pluginJsonResponseSchema,
1918
1587
  schema: pluginJsonResponseSchema.transform((val) => val)
1919
1588
  };
1920
- var rawSchema23 = schemas23.rawSchema;
1921
- var internalSchema21 = pluginJsonResponseSchema;
1589
+ var rawSchema22 = schemas22.rawSchema;
1590
+ var internalSchema22 = pluginJsonResponseSchema;
1922
1591
 
1923
- // PluginResponseEncoding.ts
1924
- var PluginResponseEncoding_exports = {};
1925
- __export(PluginResponseEncoding_exports, {
1592
+ // PluginProxyResponse.ts
1593
+ var PluginProxyResponse_exports = {};
1594
+ __export(PluginProxyResponse_exports, {
1926
1595
  create: () => create24,
1927
- from: () => from19,
1928
- internalSchema: () => internalSchema22,
1596
+ from: () => from23,
1597
+ internalSchema: () => internalSchema23,
1929
1598
  make: () => make23,
1930
1599
  of: () => of23,
1931
- rawSchema: () => rawSchema24,
1932
- schemas: () => schemas24
1600
+ rawSchema: () => rawSchema23,
1601
+ schemas: () => schemas23
1933
1602
  });
1934
1603
 
1935
- // out/types/PluginResponseEncoding.ts
1604
+ // out/types/PluginProxyResponse.ts
1936
1605
  var import_fluture24 = require("fluture");
1937
- var import_zod26 = require("zod");
1938
- var from19 = (input) => {
1606
+ var import_zod24 = require("zod");
1607
+ var from23 = (input) => {
1939
1608
  try {
1940
- return pluginResponseEncodingSchema.parse(input);
1609
+ return pluginProxyResponseSchema.parse(input);
1941
1610
  } catch (previous) {
1942
- if (previous instanceof import_zod26.ZodError) {
1611
+ if (previous instanceof import_zod24.ZodError) {
1943
1612
  const msgs = previous.errors.reduce(
1944
1613
  (retval, issue) => {
1945
1614
  const path2 = issue.path.join(" \u2192 ");
1946
1615
  const msg = path2 + ": " + issue.message;
1947
1616
  return [...retval, msg];
1948
1617
  },
1949
- ["PluginResponseEncoding is invalid:"]
1618
+ ["PluginProxyResponse is invalid:"]
1950
1619
  );
1951
1620
  const validationErr = msgs.join("\n") + "\n";
1952
1621
  throw toParseErr(previous, validationErr);
1953
1622
  }
1954
- throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginResponseEncoding.");
1623
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginProxyResponse.");
1955
1624
  }
1956
1625
  };
1957
- var create24 = (input) => from19(input);
1626
+ var create24 = (input) => from23(input);
1958
1627
  var of23 = (input) => {
1959
1628
  try {
1960
- return (0, import_fluture24.resolve)(from19(input));
1629
+ return (0, import_fluture24.resolve)(from23(input));
1961
1630
  } catch (err) {
1962
1631
  return (0, import_fluture24.reject)(err);
1963
1632
  }
1964
1633
  };
1965
1634
  var make23 = (input) => of23(input);
1966
- var schemas24 = {
1967
- rawSchema: pluginResponseEncodingSchema,
1968
- schema: pluginResponseEncodingSchema.transform((val) => val)
1635
+ var schemas23 = {
1636
+ rawSchema: pluginProxyResponseSchema,
1637
+ schema: pluginProxyResponseSchema.transform((val) => val)
1969
1638
  };
1970
- var rawSchema24 = schemas24.rawSchema;
1971
- var internalSchema22 = pluginResponseEncodingSchema;
1972
-
1973
- // PluginSchema.ts
1974
- var PluginSchema_exports = {};
1975
- __export(PluginSchema_exports, {
1976
- create: () => create27,
1977
- factory: () => factory5,
1978
- generatedSchemas: () => generatedSchemas4,
1979
- make: () => make25,
1980
- of: () => of25,
1981
- rawSchema: () => rawSchema26,
1982
- schemas: () => schemas26
1983
- });
1639
+ var rawSchema23 = schemas23.rawSchema;
1640
+ var internalSchema23 = pluginProxyResponseSchema;
1984
1641
 
1985
- // Template.ts
1986
- var Template_exports = {};
1987
- __export(Template_exports, {
1988
- create: () => create26,
1989
- from: () => from20,
1990
- internalSchema: () => internalSchema23,
1642
+ // PluginResponseEncoding.ts
1643
+ var PluginResponseEncoding_exports = {};
1644
+ __export(PluginResponseEncoding_exports, {
1645
+ create: () => create25,
1646
+ from: () => from24,
1647
+ internalSchema: () => internalSchema24,
1991
1648
  make: () => make24,
1992
1649
  of: () => of24,
1993
- rawSchema: () => rawSchema25,
1994
- schemas: () => schemas25
1650
+ rawSchema: () => rawSchema24,
1651
+ schemas: () => schemas24
1995
1652
  });
1996
1653
 
1997
- // out/types/Template.ts
1654
+ // out/types/PluginResponseEncoding.ts
1998
1655
  var import_fluture25 = require("fluture");
1999
- var import_zod27 = require("zod");
2000
- var from20 = (input) => {
1656
+ var import_zod25 = require("zod");
1657
+ var from24 = (input) => {
2001
1658
  try {
2002
- return templateSchema.parse(input);
1659
+ return pluginResponseEncodingSchema.parse(input);
2003
1660
  } catch (previous) {
2004
- if (previous instanceof import_zod27.ZodError) {
1661
+ if (previous instanceof import_zod25.ZodError) {
2005
1662
  const msgs = previous.errors.reduce(
2006
1663
  (retval, issue) => {
2007
1664
  const path2 = issue.path.join(" \u2192 ");
2008
1665
  const msg = path2 + ": " + issue.message;
2009
1666
  return [...retval, msg];
2010
1667
  },
2011
- ["Template is invalid:"]
1668
+ ["PluginResponseEncoding is invalid:"]
2012
1669
  );
2013
1670
  const validationErr = msgs.join("\n") + "\n";
2014
1671
  throw toParseErr(previous, validationErr);
2015
1672
  }
2016
- throw toParseUnknownErr(previous, "There was a problem trying to parse a Template.");
1673
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a PluginResponseEncoding.");
2017
1674
  }
2018
1675
  };
2019
- var create25 = (input) => from20(input);
1676
+ var create25 = (input) => from24(input);
2020
1677
  var of24 = (input) => {
2021
1678
  try {
2022
- return (0, import_fluture25.resolve)(from20(input));
1679
+ return (0, import_fluture25.resolve)(from24(input));
2023
1680
  } catch (err) {
2024
1681
  return (0, import_fluture25.reject)(err);
2025
1682
  }
2026
1683
  };
2027
1684
  var make24 = (input) => of24(input);
2028
- var schemas25 = {
2029
- rawSchema: templateSchema,
2030
- schema: templateSchema.transform((val) => val)
2031
- };
2032
- var rawSchema25 = schemas25.rawSchema;
2033
- var internalSchema23 = templateSchema;
2034
-
2035
- // Template.ts
2036
- function create26(args) {
2037
- return create25(args);
2038
- }
2039
-
2040
- // PluginSchema.ts
2041
- var import_zod28 = require("zod");
2042
- var internalSchema24 = internalSchema20.extend({
2043
- operations: import_zod28.z.preprocess(
2044
- (val) => val != null ? val : [],
2045
- import_zod28.z.array(
2046
- schemas11.schema,
2047
- { description: "ParsedOperations" }
2048
- ).optional()
2049
- ),
2050
- templates: import_zod28.z.preprocess(
2051
- (val) => val != null ? val : [],
2052
- import_zod28.z.array(
2053
- schemas25.schema
2054
- ).optional()
2055
- )
2056
- }).passthrough().describe("ParsedPluginInfo");
2057
- var rawSchema26 = rawSchema22.extend({
2058
- name: rawSchema.optional(),
2059
- operations: import_zod28.z.preprocess(
2060
- (val) => val != null ? val : [],
2061
- import_zod28.z.array(
2062
- rawSchema11,
2063
- { description: "ParsedOperation" }
2064
- )
2065
- ).optional(),
2066
- templates: import_zod28.z.preprocess(
2067
- (val) => val != null ? val : [],
2068
- import_zod28.z.array(
2069
- schemas25.schema
2070
- ).optional()
2071
- )
2072
- }).passthrough().describe("ParsedPluginInfo");
2073
- var { schemas: generatedSchemas4, factory: factory5 } = Base_default({
2074
- rawSchema: rawSchema26,
2075
- internalSchema: internalSchema24,
2076
- parseErrMsg: (value) => `The following plugin info gave us trouble when parsing the following plugin information: ${value}`,
2077
- unknownErrMsg: "Something went wrong trying to parse the plugin information"
2078
- });
2079
- var { create: create27, of: of25, make: make25 } = factory5;
2080
- var schemas26 = {
2081
- ...generatedSchemas4,
2082
- schema: generatedSchemas4.schema.transform((val) => val)
1685
+ var schemas24 = {
1686
+ rawSchema: pluginResponseEncodingSchema,
1687
+ schema: pluginResponseEncodingSchema.transform((val) => val)
2083
1688
  };
1689
+ var rawSchema24 = schemas24.rawSchema;
1690
+ var internalSchema24 = pluginResponseEncodingSchema;
2084
1691
 
2085
1692
  // PositionalArg.ts
2086
1693
  var PositionalArg_exports = {};
2087
1694
  __export(PositionalArg_exports, {
2088
- create: () => create28,
2089
- from: () => from21,
1695
+ create: () => create26,
1696
+ from: () => from25,
2090
1697
  internalSchema: () => internalSchema25,
2091
- make: () => make26,
2092
- of: () => of26,
2093
- rawSchema: () => rawSchema27,
2094
- schemas: () => schemas27
1698
+ make: () => make25,
1699
+ of: () => of25,
1700
+ rawSchema: () => rawSchema25,
1701
+ schemas: () => schemas25
2095
1702
  });
2096
1703
 
2097
1704
  // out/types/PositionalArg.ts
2098
1705
  var import_fluture26 = require("fluture");
2099
- var import_zod29 = require("zod");
2100
- var from21 = (input) => {
1706
+ var import_zod26 = require("zod");
1707
+ var from25 = (input) => {
2101
1708
  try {
2102
1709
  return positionalArgSchema.parse(input);
2103
1710
  } catch (previous) {
2104
- if (previous instanceof import_zod29.ZodError) {
1711
+ if (previous instanceof import_zod26.ZodError) {
2105
1712
  const msgs = previous.errors.reduce(
2106
1713
  (retval, issue) => {
2107
1714
  const path2 = issue.path.join(" \u2192 ");
@@ -2116,502 +1723,571 @@ var from21 = (input) => {
2116
1723
  throw toParseUnknownErr(previous, "There was a problem trying to parse a PositionalArg.");
2117
1724
  }
2118
1725
  };
2119
- var create28 = (input) => from21(input);
2120
- var of26 = (input) => {
1726
+ var create26 = (input) => from25(input);
1727
+ var of25 = (input) => {
2121
1728
  try {
2122
- return (0, import_fluture26.resolve)(from21(input));
1729
+ return (0, import_fluture26.resolve)(from25(input));
2123
1730
  } catch (err) {
2124
1731
  return (0, import_fluture26.reject)(err);
2125
1732
  }
2126
1733
  };
2127
- var make26 = (input) => of26(input);
2128
- var schemas27 = {
1734
+ var make25 = (input) => of25(input);
1735
+ var schemas25 = {
2129
1736
  rawSchema: positionalArgSchema,
2130
1737
  schema: positionalArgSchema.transform((val) => val)
2131
1738
  };
2132
- var rawSchema27 = schemas27.rawSchema;
1739
+ var rawSchema25 = schemas25.rawSchema;
2133
1740
  var internalSchema25 = positionalArgSchema;
2134
1741
 
2135
- // RequestArgs.ts
2136
- var RequestArgs_exports = {};
2137
- __export(RequestArgs_exports, {
2138
- create: () => create29,
2139
- from: () => from22,
1742
+ // Provisioner.ts
1743
+ var Provisioner_exports = {};
1744
+ __export(Provisioner_exports, {
1745
+ create: () => create27,
1746
+ from: () => from26,
2140
1747
  internalSchema: () => internalSchema26,
2141
- make: () => make27,
2142
- of: () => of27,
2143
- rawSchema: () => rawSchema28,
2144
- schemas: () => schemas28
1748
+ make: () => make26,
1749
+ of: () => of26,
1750
+ rawSchema: () => rawSchema26,
1751
+ schemas: () => schemas26
2145
1752
  });
2146
1753
 
2147
- // out/types/RequestArgs.ts
1754
+ // out/types/Provisioner.ts
2148
1755
  var import_fluture27 = require("fluture");
2149
- var import_zod30 = require("zod");
2150
- var from22 = (input) => {
1756
+ var import_zod27 = require("zod");
1757
+ var from26 = (input) => {
2151
1758
  try {
2152
- return requestArgsSchema.parse(input);
1759
+ return provisionerSchema.parse(input);
2153
1760
  } catch (previous) {
2154
- if (previous instanceof import_zod30.ZodError) {
1761
+ if (previous instanceof import_zod27.ZodError) {
2155
1762
  const msgs = previous.errors.reduce(
2156
1763
  (retval, issue) => {
2157
1764
  const path2 = issue.path.join(" \u2192 ");
2158
1765
  const msg = path2 + ": " + issue.message;
2159
1766
  return [...retval, msg];
2160
1767
  },
2161
- ["RequestArgs is invalid:"]
1768
+ ["Provisioner is invalid:"]
2162
1769
  );
2163
1770
  const validationErr = msgs.join("\n") + "\n";
2164
1771
  throw toParseErr(previous, validationErr);
2165
1772
  }
2166
- throw toParseUnknownErr(previous, "There was a problem trying to parse a RequestArgs.");
1773
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Provisioner.");
2167
1774
  }
2168
1775
  };
2169
- var create29 = (input) => from22(input);
2170
- var of27 = (input) => {
1776
+ var create27 = (input) => from26(input);
1777
+ var of26 = (input) => {
2171
1778
  try {
2172
- return (0, import_fluture27.resolve)(from22(input));
1779
+ return (0, import_fluture27.resolve)(from26(input));
2173
1780
  } catch (err) {
2174
1781
  return (0, import_fluture27.reject)(err);
2175
1782
  }
2176
1783
  };
2177
- var make27 = (input) => of27(input);
2178
- var schemas28 = {
2179
- rawSchema: requestArgsSchema,
2180
- schema: requestArgsSchema.transform((val) => val)
1784
+ var make26 = (input) => of26(input);
1785
+ var schemas26 = {
1786
+ rawSchema: provisionerSchema,
1787
+ schema: provisionerSchema.transform((val) => val)
2181
1788
  };
2182
- var rawSchema28 = schemas28.rawSchema;
2183
- var internalSchema26 = requestArgsSchema;
1789
+ var rawSchema26 = schemas26.rawSchema;
1790
+ var internalSchema26 = provisionerSchema;
2184
1791
 
2185
- // SandboxAccountConfig.ts
2186
- var SandboxAccountConfig_exports = {};
2187
- __export(SandboxAccountConfig_exports, {
2188
- create: () => create30,
2189
- from: () => from23,
1792
+ // ProvisionerID.ts
1793
+ var ProvisionerID_exports = {};
1794
+ __export(ProvisionerID_exports, {
1795
+ create: () => create28,
1796
+ from: () => from27,
2190
1797
  internalSchema: () => internalSchema27,
2191
- make: () => make28,
2192
- of: () => of28,
2193
- rawSchema: () => rawSchema29,
2194
- schemas: () => schemas29
1798
+ make: () => make27,
1799
+ of: () => of27,
1800
+ rawSchema: () => rawSchema27,
1801
+ schemas: () => schemas27
2195
1802
  });
2196
1803
 
2197
- // out/types/SandboxAccountConfig.ts
1804
+ // out/types/ProvisionerID.ts
2198
1805
  var import_fluture28 = require("fluture");
2199
- var import_zod31 = require("zod");
2200
- var from23 = (input) => {
1806
+ var import_zod28 = require("zod");
1807
+ var from27 = (input) => {
2201
1808
  try {
2202
- return sandboxAccountConfigSchema.parse(input);
1809
+ return provisionerIDSchema.parse(input);
2203
1810
  } catch (previous) {
2204
- if (previous instanceof import_zod31.ZodError) {
1811
+ if (previous instanceof import_zod28.ZodError) {
2205
1812
  const msgs = previous.errors.reduce(
2206
1813
  (retval, issue) => {
2207
1814
  const path2 = issue.path.join(" \u2192 ");
2208
1815
  const msg = path2 + ": " + issue.message;
2209
1816
  return [...retval, msg];
2210
1817
  },
2211
- ["SandboxAccountConfig is invalid:"]
1818
+ ["ProvisionerID is invalid:"]
2212
1819
  );
2213
1820
  const validationErr = msgs.join("\n") + "\n";
2214
1821
  throw toParseErr(previous, validationErr);
2215
1822
  }
2216
- throw toParseUnknownErr(previous, "There was a problem trying to parse a SandboxAccountConfig.");
1823
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ProvisionerID.");
2217
1824
  }
2218
1825
  };
2219
- var create30 = (input) => from23(input);
2220
- var of28 = (input) => {
1826
+ var create28 = (input) => from27(input);
1827
+ var of27 = (input) => {
2221
1828
  try {
2222
- return (0, import_fluture28.resolve)(from23(input));
1829
+ return (0, import_fluture28.resolve)(from27(input));
2223
1830
  } catch (err) {
2224
1831
  return (0, import_fluture28.reject)(err);
2225
1832
  }
2226
1833
  };
2227
- var make28 = (input) => of28(input);
2228
- var schemas29 = {
2229
- rawSchema: sandboxAccountConfigSchema,
2230
- schema: sandboxAccountConfigSchema.transform((val) => val)
1834
+ var make27 = (input) => of27(input);
1835
+ var schemas27 = {
1836
+ rawSchema: provisionerIDSchema,
1837
+ schema: provisionerIDSchema.transform((val) => val)
2231
1838
  };
2232
- var rawSchema29 = schemas29.rawSchema;
2233
- var internalSchema27 = sandboxAccountConfigSchema;
1839
+ var rawSchema27 = schemas27.rawSchema;
1840
+ var internalSchema27 = provisionerIDSchema;
2234
1841
 
2235
- // SandboxConfig.ts
2236
- var SandboxConfig_exports = {};
2237
- __export(SandboxConfig_exports, {
2238
- create: () => create31,
2239
- from: () => from24,
1842
+ // Provisions.ts
1843
+ var Provisions_exports = {};
1844
+ __export(Provisions_exports, {
1845
+ create: () => create29,
1846
+ from: () => from28,
2240
1847
  internalSchema: () => internalSchema28,
2241
- make: () => make29,
2242
- of: () => of29,
2243
- rawSchema: () => rawSchema30,
2244
- schemas: () => schemas30
1848
+ make: () => make28,
1849
+ of: () => of28,
1850
+ rawSchema: () => rawSchema28,
1851
+ schemas: () => schemas28
2245
1852
  });
2246
1853
 
2247
- // out/types/SandboxConfig.ts
1854
+ // out/types/Provisions.ts
2248
1855
  var import_fluture29 = require("fluture");
2249
- var import_zod32 = require("zod");
2250
- var from24 = (input) => {
1856
+ var import_zod29 = require("zod");
1857
+ var from28 = (input) => {
2251
1858
  try {
2252
- return sandboxConfigSchema.parse(input);
1859
+ return provisionsSchema.parse(input);
2253
1860
  } catch (previous) {
2254
- if (previous instanceof import_zod32.ZodError) {
1861
+ if (previous instanceof import_zod29.ZodError) {
2255
1862
  const msgs = previous.errors.reduce(
2256
1863
  (retval, issue) => {
2257
1864
  const path2 = issue.path.join(" \u2192 ");
2258
1865
  const msg = path2 + ": " + issue.message;
2259
1866
  return [...retval, msg];
2260
1867
  },
2261
- ["SandboxConfig is invalid:"]
1868
+ ["Provisions is invalid:"]
2262
1869
  );
2263
1870
  const validationErr = msgs.join("\n") + "\n";
2264
1871
  throw toParseErr(previous, validationErr);
2265
1872
  }
2266
- throw toParseUnknownErr(previous, "There was a problem trying to parse a SandboxConfig.");
1873
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Provisions.");
2267
1874
  }
2268
1875
  };
2269
- var create31 = (input) => from24(input);
2270
- var of29 = (input) => {
1876
+ var create29 = (input) => from28(input);
1877
+ var of28 = (input) => {
2271
1878
  try {
2272
- return (0, import_fluture29.resolve)(from24(input));
1879
+ return (0, import_fluture29.resolve)(from28(input));
2273
1880
  } catch (err) {
2274
1881
  return (0, import_fluture29.reject)(err);
2275
1882
  }
2276
1883
  };
2277
- var make29 = (input) => of29(input);
2278
- var schemas30 = {
2279
- rawSchema: sandboxConfigSchema,
2280
- schema: sandboxConfigSchema.transform((val) => val)
2281
- };
2282
- var rawSchema30 = schemas30.rawSchema;
2283
- var internalSchema28 = sandboxConfigSchema;
2284
-
2285
- // SanitizedAbsPath.ts
2286
- var SanitizedAbsPath_exports = {};
2287
- __export(SanitizedAbsPath_exports, {
2288
- create: () => create32,
2289
- factory: () => factory6,
2290
- generatedSchemas: () => generatedSchemas5,
2291
- make: () => make30,
2292
- of: () => of30,
2293
- rawSchema: () => rawSchema31,
2294
- schemas: () => schemas31
2295
- });
2296
- var path = __toESM(require("path"));
2297
- var import_zod33 = require("zod");
2298
- var rawSchema31 = import_zod33.z.string({ description: "SanitizedAbsPath" }).min(1);
2299
- var { schemas: generatedSchemas5, factory: factory6 } = Base_default({
2300
- isStringLike: true,
2301
- rawSchema: rawSchema31,
2302
- transformer: (value) => path.resolve(value),
2303
- parseErrMsg: (value) => `${value} is an invalid absolute path`,
2304
- unknownErrMsg: (value) => `Something went wrong trying to parse the absolute path, ${value}`
2305
- });
2306
- var { create: create32, make: make30, of: of30 } = factory6;
2307
- var schemas31 = {
2308
- ...generatedSchemas5,
2309
- schema: generatedSchemas5.schema.transform((val) => val)
1884
+ var make28 = (input) => of28(input);
1885
+ var schemas28 = {
1886
+ rawSchema: provisionsSchema,
1887
+ schema: provisionsSchema.transform((val) => val)
2310
1888
  };
1889
+ var rawSchema28 = schemas28.rawSchema;
1890
+ var internalSchema28 = provisionsSchema;
2311
1891
 
2312
- // SanitizedArgs.ts
2313
- var SanitizedArgs_exports = {};
2314
- __export(SanitizedArgs_exports, {
2315
- create: () => create33,
2316
- createCreateTaskArgs: () => createCreateTaskArgs,
2317
- createInstallTaskArgs: () => createInstallTaskArgs,
2318
- createProvisionTaskArgs: () => createProvisionTaskArgs,
2319
- createScaffoldTaskArgs: () => createScaffoldTaskArgs,
2320
- createSetEnvTaskArgs: () => createSetEnvTaskArgs,
2321
- createTaskArgs: () => createTaskArgs,
2322
- createUninstallTaskArgs: () => createUninstallTaskArgs,
2323
- factory: () => factory7,
2324
- generatedSchemas: () => generatedSchemas6,
2325
- initRawSchema: () => initRawSchema,
2326
- installTaskArgs: () => installTaskArgs,
2327
- make: () => make31,
2328
- makeCreateTaskArgs: () => makeCreateTaskArgs,
2329
- makeInstallTaskArgs: () => makeInstallTaskArgs,
2330
- makeProvisionTaskArgs: () => makeProvisionTaskArgs,
2331
- makeScaffoldTaskArgs: () => makeScaffoldTaskArgs,
2332
- makeSetEnvTaskArgs: () => makeSetEnvTaskArgs,
2333
- makeUninstallTaskArgs: () => makeUninstallTaskArgs,
2334
- managePluginRawSchema: () => managePluginRawSchema,
2335
- of: () => of31,
2336
- ofCreateTaskArgs: () => ofCreateTaskArgs,
2337
- ofInstallTaskArgs: () => ofInstallTaskArgs,
2338
- ofProvisionTaskArgs: () => ofProvisionTaskArgs,
2339
- ofScaffoldTaskArgs: () => ofScaffoldTaskArgs,
2340
- ofSetEnvTaskArgs: () => ofSetEnvTaskArgs,
2341
- ofUninstallTaskArgs: () => ofUninstallTaskArgs,
2342
- provisionRawSchema: () => provisionRawSchema,
2343
- provisionTaskArgs: () => provisionTaskArgs,
2344
- rawSchema: () => rawSchema33,
2345
- scaffoldRawSchema: () => scaffoldRawSchema,
2346
- scaffoldTaskArgs: () => scaffoldTaskArgs,
2347
- schemas: () => schemas33,
2348
- setEnvRawSchema: () => setEnvRawSchema,
2349
- setEnvTaskArgs: () => setEnvTaskArgs,
2350
- templateRawSchema: () => templateRawSchema,
2351
- uninstallTaskArgs: () => uninstallTaskArgs
1892
+ // ProxyTaskArgs.ts
1893
+ var ProxyTaskArgs_exports = {};
1894
+ __export(ProxyTaskArgs_exports, {
1895
+ create: () => create30,
1896
+ from: () => from29,
1897
+ internalSchema: () => internalSchema29,
1898
+ make: () => make29,
1899
+ of: () => of29,
1900
+ rawSchema: () => rawSchema29,
1901
+ schemas: () => schemas29
2352
1902
  });
2353
1903
 
2354
- // out/types/NonEmptyString.ts
1904
+ // out/types/ProxyTaskArgs.ts
2355
1905
  var import_fluture30 = require("fluture");
2356
- var import_zod34 = require("zod");
2357
- var schemas32 = {
2358
- rawSchema: nonEmptyStringSchema,
2359
- schema: nonEmptyStringSchema.transform((val) => val)
1906
+ var import_zod30 = require("zod");
1907
+ var from29 = (input) => {
1908
+ try {
1909
+ return proxyTaskArgsSchema.parse(input);
1910
+ } catch (previous) {
1911
+ if (previous instanceof import_zod30.ZodError) {
1912
+ const msgs = previous.errors.reduce(
1913
+ (retval, issue) => {
1914
+ const path2 = issue.path.join(" \u2192 ");
1915
+ const msg = path2 + ": " + issue.message;
1916
+ return [...retval, msg];
1917
+ },
1918
+ ["ProxyTaskArgs is invalid:"]
1919
+ );
1920
+ const validationErr = msgs.join("\n") + "\n";
1921
+ throw toParseErr(previous, validationErr);
1922
+ }
1923
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ProxyTaskArgs.");
1924
+ }
2360
1925
  };
2361
- var rawSchema32 = schemas32.rawSchema;
2362
-
2363
- // SanitizedArgs.ts
2364
- var import_zod35 = require("zod");
2365
- var rawSchema33 = import_zod35.z.object({
2366
- _: import_zod35.z.array(import_zod35.z.union([import_zod35.z.string().min(1), import_zod35.z.number()])),
2367
- projectDir: schemas31.schema,
2368
- maxConcurrency: import_zod35.z.preprocess(
2369
- (val) => typeof val === "string" ? parseInt(val) : Number(val),
2370
- import_zod35.z.number().int().min(1).default(10)
2371
- ),
2372
- debug: import_zod35.z.preprocess(
2373
- (val) => Boolean(val),
2374
- import_zod35.z.boolean().default(false)
2375
- ),
2376
- disableState: import_zod35.z.preprocess(
2377
- (val) => Boolean(val),
2378
- import_zod35.z.boolean().default(false)
2379
- ),
2380
- logPluginRequests: import_zod35.z.preprocess(
2381
- (val) => Boolean(val),
2382
- import_zod35.z.boolean().default(false)
2383
- ),
2384
- fromVsCode: import_zod35.z.preprocess(
2385
- (val) => Boolean(val),
2386
- import_zod35.z.boolean().default(false)
2387
- ),
2388
- version: import_zod35.z.preprocess(
2389
- (val) => Boolean(val),
2390
- import_zod35.z.boolean().optional()
2391
- ),
2392
- build: import_zod35.z.preprocess(
2393
- (val) => Boolean(val),
2394
- import_zod35.z.boolean().optional()
2395
- ),
2396
- help: import_zod35.z.preprocess(
2397
- (val) => Boolean(val),
2398
- import_zod35.z.boolean().optional()
2399
- ),
2400
- yes: import_zod35.z.preprocess(
2401
- (val) => Boolean(val),
2402
- import_zod35.z.boolean().optional()
2403
- ),
2404
- plugin: schemas32.schema.optional(),
2405
- env: import_zod35.z.string().optional(),
2406
- quickstart: import_zod35.z.string().min(1).optional(),
2407
- setBuild: import_zod35.z.preprocess(
2408
- (val) => String(val),
2409
- import_zod35.z.string().min(3)
2410
- ),
2411
- setVersion: import_zod35.z.string().min(3),
2412
- pluginName: import_zod35.z.string().min(1).optional()
2413
- }, { description: "Sanitizied Args" }).passthrough();
2414
- var scaffoldRawSchema = rawSchema33.extend({
2415
- scaffoldProjectDir: import_zod35.z.string().min(1).transform((val) => val),
2416
- scaffoldUrl: import_zod35.z.string().min(1).url().transform((val) => val),
2417
- branch: import_zod35.z.string().min(1).optional()
2418
- });
2419
- var initRawSchema = rawSchema33.extend({
2420
- workflow: import_zod35.z.string().refine((val) => val === "ligo" || val === "smartpy" || val === "archetype" || val === "michelson").optional()
2421
- });
2422
- var provisionRawSchema = rawSchema33.extend({
2423
- operation: import_zod35.z.string().min(1).describe("Operation name"),
2424
- name: import_zod35.z.string().min(1).regex(
2425
- /^[a-z0-9]+[a-z0-9-_]$/,
2426
- "Provisioner name must consist of one or more letters/numbers and may not start with an underscore or dash."
2427
- ).describe("Provisioner name").optional()
2428
- }).passthrough();
2429
- var templateRawSchema = rawSchema33.extend({
2430
- template: import_zod35.z.string().min(1)
2431
- }).passthrough();
2432
- var managePluginRawSchema = rawSchema33.omit({ pluginName: true }).extend({
2433
- pluginName: import_zod35.z.string().min(1)
2434
- });
2435
- var setEnvRawSchema = rawSchema33.extend({
2436
- defaultEnvironment: import_zod35.z.string().min(1)
2437
- });
2438
- var { schemas: generatedSchemas6, factory: factory7 } = Base_default({
2439
- rawSchema: rawSchema33,
2440
- parseErrMsg: "The arguments provided are invalid",
2441
- unknownErrMsg: "Something went wrong parsing the command-line arguments"
2442
- });
2443
- var { create: create33, of: of31, make: make31 } = factory7;
2444
- var schemas33 = {
2445
- ...generatedSchemas6,
2446
- schema: generatedSchemas6.schema.transform((val) => val)
1926
+ var create30 = (input) => from29(input);
1927
+ var of29 = (input) => {
1928
+ try {
1929
+ return (0, import_fluture30.resolve)(from29(input));
1930
+ } catch (err) {
1931
+ return (0, import_fluture30.reject)(err);
1932
+ }
2447
1933
  };
2448
- var scaffoldTaskArgs = Base_default({
2449
- rawSchema: scaffoldRawSchema,
2450
- parseErrMsg: "The arguments provided are invalid for the scaffold task",
2451
- unknownErrMsg: "Something went wrong parsing the arguments for the scaffold task"
2452
- });
2453
- var provisionTaskArgs = Base_default({
2454
- rawSchema: provisionRawSchema,
2455
- parseErrMsg: "The arguments provided are invalid for the provision task",
2456
- unknownErrMsg: "Something went wrong parsing the arguments for the provision task"
2457
- });
2458
- var installTaskArgs = Base_default({
2459
- rawSchema: managePluginRawSchema,
2460
- parseErrMsg: "The arguments provided are invalid for the install task",
2461
- unknownErrMsg: "Something went wrong parsing the arguments for the install task"
2462
- });
2463
- var uninstallTaskArgs = Base_default({
2464
- rawSchema: managePluginRawSchema,
2465
- parseErrMsg: "The arguments provided are invalid for the uninstall task",
2466
- unknownErrMsg: "Something went wrong parsing the arguments for the uninstall task"
2467
- });
2468
- var setEnvTaskArgs = Base_default({
2469
- rawSchema: setEnvRawSchema,
2470
- parseErrMsg: "The arguments provided are invalid for the set-environment task",
2471
- unknownErrMsg: "Something went wrong parsing the arguments for the set-environment task"
2472
- });
2473
- var createTaskArgs = Base_default({
2474
- rawSchema: templateRawSchema,
2475
- parseErrMsg: "The arguments provided are invalid for the create task",
2476
- unknownErrMsg: "Something went wrong parsing the arguments for the create task"
2477
- });
2478
- var createScaffoldTaskArgs = scaffoldTaskArgs.factory.from;
2479
- var makeScaffoldTaskArgs = scaffoldTaskArgs.factory.make;
2480
- var ofScaffoldTaskArgs = scaffoldTaskArgs.factory.of;
2481
- var createProvisionTaskArgs = provisionTaskArgs.factory.create;
2482
- var makeProvisionTaskArgs = provisionTaskArgs.factory.make;
2483
- var ofProvisionTaskArgs = provisionTaskArgs.factory.of;
2484
- var createInstallTaskArgs = installTaskArgs.factory.create;
2485
- var makeInstallTaskArgs = installTaskArgs.factory.make;
2486
- var ofInstallTaskArgs = installTaskArgs.factory.of;
2487
- var createUninstallTaskArgs = uninstallTaskArgs.factory.create;
2488
- var makeUninstallTaskArgs = uninstallTaskArgs.factory.make;
2489
- var ofUninstallTaskArgs = uninstallTaskArgs.factory.of;
2490
- var createSetEnvTaskArgs = setEnvTaskArgs.factory.create;
2491
- var makeSetEnvTaskArgs = setEnvTaskArgs.factory.make;
2492
- var ofSetEnvTaskArgs = setEnvTaskArgs.factory.of;
2493
- var createCreateTaskArgs = createTaskArgs.factory.create;
2494
- var makeCreateTaskArgs = createTaskArgs.factory.make;
2495
- var ofCreateTaskArgs = createTaskArgs.factory.of;
1934
+ var make29 = (input) => of29(input);
1935
+ var schemas29 = {
1936
+ rawSchema: proxyTaskArgsSchema,
1937
+ schema: proxyTaskArgsSchema.transform((val) => val)
1938
+ };
1939
+ var rawSchema29 = schemas29.rawSchema;
1940
+ var internalSchema29 = proxyTaskArgsSchema;
2496
1941
 
2497
- // SanitizedPath.ts
2498
- var SanitizedPath_exports = {};
2499
- __export(SanitizedPath_exports, {
2500
- create: () => create34,
2501
- from: () => from25,
2502
- internalSchema: () => internalSchema29,
2503
- make: () => make32,
2504
- of: () => of32,
2505
- rawSchema: () => rawSchema34,
2506
- schemas: () => schemas34
1942
+ // ProxyTemplateArgs.ts
1943
+ var ProxyTemplateArgs_exports = {};
1944
+ __export(ProxyTemplateArgs_exports, {
1945
+ create: () => create31,
1946
+ from: () => from30,
1947
+ internalSchema: () => internalSchema30,
1948
+ make: () => make30,
1949
+ of: () => of30,
1950
+ rawSchema: () => rawSchema30,
1951
+ schemas: () => schemas30
2507
1952
  });
2508
1953
 
2509
- // out/types/SanitizedPath.ts
1954
+ // out/types/ProxyTemplateArgs.ts
2510
1955
  var import_fluture31 = require("fluture");
2511
- var import_zod36 = require("zod");
2512
- var from25 = (input) => {
1956
+ var import_zod31 = require("zod");
1957
+ var from30 = (input) => {
2513
1958
  try {
2514
- return sanitizedPathSchema.parse(input);
1959
+ return proxyTemplateArgsSchema.parse(input);
2515
1960
  } catch (previous) {
2516
- if (previous instanceof import_zod36.ZodError) {
1961
+ if (previous instanceof import_zod31.ZodError) {
2517
1962
  const msgs = previous.errors.reduce(
2518
1963
  (retval, issue) => {
2519
1964
  const path2 = issue.path.join(" \u2192 ");
2520
1965
  const msg = path2 + ": " + issue.message;
2521
1966
  return [...retval, msg];
2522
1967
  },
2523
- ["SanitizedPath is invalid:"]
1968
+ ["ProxyTemplateArgs is invalid:"]
2524
1969
  );
2525
1970
  const validationErr = msgs.join("\n") + "\n";
2526
1971
  throw toParseErr(previous, validationErr);
2527
1972
  }
2528
- throw toParseUnknownErr(previous, "There was a problem trying to parse a SanitizedPath.");
1973
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ProxyTemplateArgs.");
2529
1974
  }
2530
1975
  };
2531
- var create34 = (input) => from25(input);
2532
- var of32 = (input) => {
1976
+ var create31 = (input) => from30(input);
1977
+ var of30 = (input) => {
2533
1978
  try {
2534
- return (0, import_fluture31.resolve)(from25(input));
1979
+ return (0, import_fluture31.resolve)(from30(input));
2535
1980
  } catch (err) {
2536
1981
  return (0, import_fluture31.reject)(err);
2537
1982
  }
2538
1983
  };
2539
- var make32 = (input) => of32(input);
2540
- var schemas34 = {
2541
- rawSchema: sanitizedPathSchema,
2542
- schema: sanitizedPathSchema.transform((val) => val)
1984
+ var make30 = (input) => of30(input);
1985
+ var schemas30 = {
1986
+ rawSchema: proxyTemplateArgsSchema,
1987
+ schema: proxyTemplateArgsSchema.transform((val) => val)
2543
1988
  };
2544
- var rawSchema34 = schemas34.rawSchema;
2545
- var internalSchema29 = sanitizedPathSchema;
1989
+ var rawSchema30 = schemas30.rawSchema;
1990
+ var internalSchema30 = proxyTemplateArgsSchema;
2546
1991
 
2547
- // ScaffoldConfig.ts
2548
- var ScaffoldConfig_exports = {};
2549
- __export(ScaffoldConfig_exports, {
2550
- create: () => create35,
2551
- from: () => from26,
2552
- internalSchema: () => internalSchema30,
2553
- make: () => make33,
2554
- of: () => of33,
2555
- rawSchema: () => rawSchema35,
2556
- schemas: () => schemas35
1992
+ // PublicKeyHash.ts
1993
+ var PublicKeyHash_exports = {};
1994
+ __export(PublicKeyHash_exports, {
1995
+ create: () => create32,
1996
+ from: () => from31,
1997
+ internalSchema: () => internalSchema31,
1998
+ make: () => make31,
1999
+ of: () => of31,
2000
+ rawSchema: () => rawSchema31,
2001
+ schemas: () => schemas31
2557
2002
  });
2558
2003
 
2559
- // out/types/ScaffoldConfig.ts
2004
+ // out/types/PublicKeyHash.ts
2560
2005
  var import_fluture32 = require("fluture");
2561
- var import_zod37 = require("zod");
2562
- var from26 = (input) => {
2006
+ var import_zod32 = require("zod");
2007
+ var from31 = (input) => {
2563
2008
  try {
2564
- return scaffoldConfigSchema.parse(input);
2009
+ return publicKeyHashSchema.parse(input);
2565
2010
  } catch (previous) {
2566
- if (previous instanceof import_zod37.ZodError) {
2011
+ if (previous instanceof import_zod32.ZodError) {
2567
2012
  const msgs = previous.errors.reduce(
2568
2013
  (retval, issue) => {
2569
2014
  const path2 = issue.path.join(" \u2192 ");
2570
2015
  const msg = path2 + ": " + issue.message;
2571
2016
  return [...retval, msg];
2572
2017
  },
2573
- ["ScaffoldConfig is invalid:"]
2018
+ ["PublicKeyHash is invalid:"]
2574
2019
  );
2575
2020
  const validationErr = msgs.join("\n") + "\n";
2576
2021
  throw toParseErr(previous, validationErr);
2577
2022
  }
2578
- throw toParseUnknownErr(previous, "There was a problem trying to parse a ScaffoldConfig.");
2023
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a PublicKeyHash.");
2579
2024
  }
2580
2025
  };
2581
- var create35 = (input) => from26(input);
2582
- var of33 = (input) => {
2026
+ var create32 = (input) => from31(input);
2027
+ var of31 = (input) => {
2583
2028
  try {
2584
- return (0, import_fluture32.resolve)(from26(input));
2029
+ return (0, import_fluture32.resolve)(from31(input));
2585
2030
  } catch (err) {
2586
2031
  return (0, import_fluture32.reject)(err);
2587
2032
  }
2588
2033
  };
2034
+ var make31 = (input) => of31(input);
2035
+ var schemas31 = {
2036
+ rawSchema: publicKeyHashSchema,
2037
+ schema: publicKeyHashSchema.transform((val) => val)
2038
+ };
2039
+ var rawSchema31 = schemas31.rawSchema;
2040
+ var internalSchema31 = publicKeyHashSchema;
2041
+
2042
+ // RequestArgs.ts
2043
+ var RequestArgs_exports = {};
2044
+ __export(RequestArgs_exports, {
2045
+ create: () => create33,
2046
+ from: () => from32,
2047
+ internalSchema: () => internalSchema32,
2048
+ make: () => make32,
2049
+ of: () => of32,
2050
+ rawSchema: () => rawSchema32,
2051
+ schemas: () => schemas32
2052
+ });
2053
+
2054
+ // out/types/RequestArgs.ts
2055
+ var import_fluture33 = require("fluture");
2056
+ var import_zod33 = require("zod");
2057
+ var from32 = (input) => {
2058
+ try {
2059
+ return requestArgsSchema.parse(input);
2060
+ } catch (previous) {
2061
+ if (previous instanceof import_zod33.ZodError) {
2062
+ const msgs = previous.errors.reduce(
2063
+ (retval, issue) => {
2064
+ const path2 = issue.path.join(" \u2192 ");
2065
+ const msg = path2 + ": " + issue.message;
2066
+ return [...retval, msg];
2067
+ },
2068
+ ["RequestArgs is invalid:"]
2069
+ );
2070
+ const validationErr = msgs.join("\n") + "\n";
2071
+ throw toParseErr(previous, validationErr);
2072
+ }
2073
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a RequestArgs.");
2074
+ }
2075
+ };
2076
+ var create33 = (input) => from32(input);
2077
+ var of32 = (input) => {
2078
+ try {
2079
+ return (0, import_fluture33.resolve)(from32(input));
2080
+ } catch (err) {
2081
+ return (0, import_fluture33.reject)(err);
2082
+ }
2083
+ };
2084
+ var make32 = (input) => of32(input);
2085
+ var schemas32 = {
2086
+ rawSchema: requestArgsSchema,
2087
+ schema: requestArgsSchema.transform((val) => val)
2088
+ };
2089
+ var rawSchema32 = schemas32.rawSchema;
2090
+ var internalSchema32 = requestArgsSchema;
2091
+
2092
+ // SandboxAccountConfig.ts
2093
+ var SandboxAccountConfig_exports = {};
2094
+ __export(SandboxAccountConfig_exports, {
2095
+ create: () => create34,
2096
+ from: () => from33,
2097
+ internalSchema: () => internalSchema33,
2098
+ make: () => make33,
2099
+ of: () => of33,
2100
+ rawSchema: () => rawSchema33,
2101
+ schemas: () => schemas33
2102
+ });
2103
+
2104
+ // out/types/SandboxAccountConfig.ts
2105
+ var import_fluture34 = require("fluture");
2106
+ var import_zod34 = require("zod");
2107
+ var from33 = (input) => {
2108
+ try {
2109
+ return sandboxAccountConfigSchema.parse(input);
2110
+ } catch (previous) {
2111
+ if (previous instanceof import_zod34.ZodError) {
2112
+ const msgs = previous.errors.reduce(
2113
+ (retval, issue) => {
2114
+ const path2 = issue.path.join(" \u2192 ");
2115
+ const msg = path2 + ": " + issue.message;
2116
+ return [...retval, msg];
2117
+ },
2118
+ ["SandboxAccountConfig is invalid:"]
2119
+ );
2120
+ const validationErr = msgs.join("\n") + "\n";
2121
+ throw toParseErr(previous, validationErr);
2122
+ }
2123
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a SandboxAccountConfig.");
2124
+ }
2125
+ };
2126
+ var create34 = (input) => from33(input);
2127
+ var of33 = (input) => {
2128
+ try {
2129
+ return (0, import_fluture34.resolve)(from33(input));
2130
+ } catch (err) {
2131
+ return (0, import_fluture34.reject)(err);
2132
+ }
2133
+ };
2589
2134
  var make33 = (input) => of33(input);
2590
- var schemas35 = {
2591
- rawSchema: scaffoldConfigSchema,
2592
- schema: scaffoldConfigSchema.transform((val) => val)
2135
+ var schemas33 = {
2136
+ rawSchema: sandboxAccountConfigSchema,
2137
+ schema: sandboxAccountConfigSchema.transform((val) => val)
2593
2138
  };
2594
- var rawSchema35 = schemas35.rawSchema;
2595
- var internalSchema30 = scaffoldConfigSchema;
2139
+ var rawSchema33 = schemas33.rawSchema;
2140
+ var internalSchema33 = sandboxAccountConfigSchema;
2596
2141
 
2597
- // Url.ts
2598
- var Url_exports = {};
2599
- __export(Url_exports, {
2600
- create: () => create36,
2601
- from: () => from27,
2602
- internalSchema: () => internalSchema31,
2142
+ // SandboxConfig.ts
2143
+ var SandboxConfig_exports = {};
2144
+ __export(SandboxConfig_exports, {
2145
+ create: () => create35,
2146
+ from: () => from34,
2147
+ internalSchema: () => internalSchema34,
2603
2148
  make: () => make34,
2604
2149
  of: () => of34,
2150
+ rawSchema: () => rawSchema34,
2151
+ schemas: () => schemas34
2152
+ });
2153
+
2154
+ // out/types/SandboxConfig.ts
2155
+ var import_fluture35 = require("fluture");
2156
+ var import_zod35 = require("zod");
2157
+ var from34 = (input) => {
2158
+ try {
2159
+ return sandboxConfigSchema.parse(input);
2160
+ } catch (previous) {
2161
+ if (previous instanceof import_zod35.ZodError) {
2162
+ const msgs = previous.errors.reduce(
2163
+ (retval, issue) => {
2164
+ const path2 = issue.path.join(" \u2192 ");
2165
+ const msg = path2 + ": " + issue.message;
2166
+ return [...retval, msg];
2167
+ },
2168
+ ["SandboxConfig is invalid:"]
2169
+ );
2170
+ const validationErr = msgs.join("\n") + "\n";
2171
+ throw toParseErr(previous, validationErr);
2172
+ }
2173
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a SandboxConfig.");
2174
+ }
2175
+ };
2176
+ var create35 = (input) => from34(input);
2177
+ var of34 = (input) => {
2178
+ try {
2179
+ return (0, import_fluture35.resolve)(from34(input));
2180
+ } catch (err) {
2181
+ return (0, import_fluture35.reject)(err);
2182
+ }
2183
+ };
2184
+ var make34 = (input) => of34(input);
2185
+ var schemas34 = {
2186
+ rawSchema: sandboxConfigSchema,
2187
+ schema: sandboxConfigSchema.transform((val) => val)
2188
+ };
2189
+ var rawSchema34 = schemas34.rawSchema;
2190
+ var internalSchema34 = sandboxConfigSchema;
2191
+
2192
+ // SanitizedAbsPath.ts
2193
+ var SanitizedAbsPath_exports = {};
2194
+ __export(SanitizedAbsPath_exports, {
2195
+ create: () => create36,
2196
+ factory: () => factory,
2197
+ generatedSchemas: () => generatedSchemas,
2198
+ make: () => make35,
2199
+ of: () => of35,
2200
+ rawSchema: () => rawSchema35,
2201
+ schemas: () => schemas35
2202
+ });
2203
+
2204
+ // Base.ts
2205
+ var import_fluture36 = require("fluture");
2206
+ var import_zod36 = require("zod");
2207
+ var createSchema = (params) => {
2208
+ var _a, _b;
2209
+ const { rawSchema: rawSchema53, isStringLike } = params;
2210
+ const internalSchema50 = (_a = params.internalSchema) != null ? _a : params.rawSchema;
2211
+ const noop = (val) => val;
2212
+ const transformer = (_b = params.transformer) != null ? _b : noop;
2213
+ const schema = isStringLike ? internalSchema50.transform(
2214
+ (val) => transformer(val)
2215
+ ) : internalSchema50.transform(
2216
+ (val) => transformer(val)
2217
+ );
2218
+ return {
2219
+ rawSchema: rawSchema53,
2220
+ internalSchema: internalSchema50,
2221
+ schema
2222
+ };
2223
+ };
2224
+ var createType = (params) => {
2225
+ const schemas53 = createSchema(params);
2226
+ const { parseErrMsg, unknownErrMsg } = params;
2227
+ const internalOf = (input) => {
2228
+ try {
2229
+ return (0, import_fluture36.resolve)(schemas53.schema.parse(input));
2230
+ } catch (previous) {
2231
+ const parseMsg = typeof parseErrMsg === "string" ? parseErrMsg : parseErrMsg(input, previous);
2232
+ const unknownMsg = typeof unknownErrMsg === "string" ? unknownErrMsg : unknownErrMsg(input);
2233
+ if (previous instanceof import_zod36.ZodError) {
2234
+ return toFutureParseErr(previous, parseMsg, input);
2235
+ }
2236
+ return toFutureParseUnknownErr(previous, unknownMsg, input);
2237
+ }
2238
+ };
2239
+ const of53 = internalOf;
2240
+ const make53 = (input) => internalOf(input);
2241
+ const create55 = (input) => schemas53.schema.parse(input);
2242
+ const from46 = (input) => schemas53.schema.parse(input);
2243
+ const factory8 = {
2244
+ make: make53,
2245
+ of: of53,
2246
+ create: create55,
2247
+ from: from46
2248
+ };
2249
+ return {
2250
+ schemas: schemas53,
2251
+ factory: factory8
2252
+ };
2253
+ };
2254
+ var Base_default = createType;
2255
+
2256
+ // SanitizedAbsPath.ts
2257
+ var path = __toESM(require("path"));
2258
+ var import_zod37 = require("zod");
2259
+ var rawSchema35 = import_zod37.z.string({ description: "SanitizedAbsPath" }).min(1);
2260
+ var { schemas: generatedSchemas, factory } = Base_default({
2261
+ isStringLike: true,
2262
+ rawSchema: rawSchema35,
2263
+ transformer: (value) => path.resolve(value),
2264
+ parseErrMsg: (value) => `${value} is an invalid absolute path`,
2265
+ unknownErrMsg: (value) => `Something went wrong trying to parse the absolute path, ${value}`
2266
+ });
2267
+ var { create: create36, make: make35, of: of35 } = factory;
2268
+ var schemas35 = {
2269
+ ...generatedSchemas,
2270
+ schema: generatedSchemas.schema.transform((val) => val)
2271
+ };
2272
+
2273
+ // SanitizedPath.ts
2274
+ var SanitizedPath_exports = {};
2275
+ __export(SanitizedPath_exports, {
2276
+ create: () => create37,
2277
+ from: () => from35,
2278
+ internalSchema: () => internalSchema35,
2279
+ make: () => make36,
2280
+ of: () => of36,
2605
2281
  rawSchema: () => rawSchema36,
2606
2282
  schemas: () => schemas36
2607
2283
  });
2608
2284
 
2609
- // out/types/Url.ts
2610
- var import_fluture33 = require("fluture");
2285
+ // out/types/SanitizedPath.ts
2286
+ var import_fluture37 = require("fluture");
2611
2287
  var import_zod38 = require("zod");
2612
- var from27 = (input) => {
2288
+ var from35 = (input) => {
2613
2289
  try {
2614
- return urlSchema.parse(input);
2290
+ return sanitizedPathSchema.parse(input);
2615
2291
  } catch (previous) {
2616
2292
  if (previous instanceof import_zod38.ZodError) {
2617
2293
  const msgs = previous.errors.reduce(
@@ -2620,27 +2296,1228 @@ var from27 = (input) => {
2620
2296
  const msg = path2 + ": " + issue.message;
2621
2297
  return [...retval, msg];
2622
2298
  },
2623
- ["Url is invalid:"]
2299
+ ["SanitizedPath is invalid:"]
2624
2300
  );
2625
2301
  const validationErr = msgs.join("\n") + "\n";
2626
2302
  throw toParseErr(previous, validationErr);
2627
2303
  }
2628
- throw toParseUnknownErr(previous, "There was a problem trying to parse a Url.");
2304
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a SanitizedPath.");
2629
2305
  }
2630
2306
  };
2631
- var create36 = (input) => from27(input);
2632
- var of34 = (input) => {
2307
+ var create37 = (input) => from35(input);
2308
+ var of36 = (input) => {
2633
2309
  try {
2634
- return (0, import_fluture33.resolve)(from27(input));
2310
+ return (0, import_fluture37.resolve)(from35(input));
2635
2311
  } catch (err) {
2636
- return (0, import_fluture33.reject)(err);
2312
+ return (0, import_fluture37.reject)(err);
2637
2313
  }
2638
2314
  };
2639
- var make34 = (input) => of34(input);
2315
+ var make36 = (input) => of36(input);
2640
2316
  var schemas36 = {
2641
- rawSchema: urlSchema,
2642
- schema: urlSchema.transform((val) => val)
2317
+ rawSchema: sanitizedPathSchema,
2318
+ schema: sanitizedPathSchema.transform((val) => val)
2643
2319
  };
2644
2320
  var rawSchema36 = schemas36.rawSchema;
2645
- var internalSchema31 = urlSchema;
2321
+ var internalSchema35 = sanitizedPathSchema;
2322
+
2323
+ // ScaffoldConfig.ts
2324
+ var ScaffoldConfig_exports = {};
2325
+ __export(ScaffoldConfig_exports, {
2326
+ create: () => create38,
2327
+ from: () => from36,
2328
+ internalSchema: () => internalSchema36,
2329
+ make: () => make37,
2330
+ of: () => of37,
2331
+ rawSchema: () => rawSchema37,
2332
+ schemas: () => schemas37
2333
+ });
2334
+
2335
+ // out/types/ScaffoldConfig.ts
2336
+ var import_fluture38 = require("fluture");
2337
+ var import_zod39 = require("zod");
2338
+ var from36 = (input) => {
2339
+ try {
2340
+ return scaffoldConfigSchema.parse(input);
2341
+ } catch (previous) {
2342
+ if (previous instanceof import_zod39.ZodError) {
2343
+ const msgs = previous.errors.reduce(
2344
+ (retval, issue) => {
2345
+ const path2 = issue.path.join(" \u2192 ");
2346
+ const msg = path2 + ": " + issue.message;
2347
+ return [...retval, msg];
2348
+ },
2349
+ ["ScaffoldConfig is invalid:"]
2350
+ );
2351
+ const validationErr = msgs.join("\n") + "\n";
2352
+ throw toParseErr(previous, validationErr);
2353
+ }
2354
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ScaffoldConfig.");
2355
+ }
2356
+ };
2357
+ var create38 = (input) => from36(input);
2358
+ var of37 = (input) => {
2359
+ try {
2360
+ return (0, import_fluture38.resolve)(from36(input));
2361
+ } catch (err) {
2362
+ return (0, import_fluture38.reject)(err);
2363
+ }
2364
+ };
2365
+ var make37 = (input) => of37(input);
2366
+ var schemas37 = {
2367
+ rawSchema: scaffoldConfigSchema,
2368
+ schema: scaffoldConfigSchema.transform((val) => val)
2369
+ };
2370
+ var rawSchema37 = schemas37.rawSchema;
2371
+ var internalSchema36 = scaffoldConfigSchema;
2372
+
2373
+ // Settings.ts
2374
+ var Settings_exports = {};
2375
+ __export(Settings_exports, {
2376
+ create: () => create39,
2377
+ from: () => from37,
2378
+ internalSchema: () => internalSchema37,
2379
+ make: () => make38,
2380
+ of: () => of38,
2381
+ rawSchema: () => rawSchema38,
2382
+ schemas: () => schemas38
2383
+ });
2384
+
2385
+ // out/types/Settings.ts
2386
+ var import_fluture39 = require("fluture");
2387
+ var import_zod40 = require("zod");
2388
+ var from37 = (input) => {
2389
+ try {
2390
+ return settingsSchema.parse(input);
2391
+ } catch (previous) {
2392
+ if (previous instanceof import_zod40.ZodError) {
2393
+ const msgs = previous.errors.reduce(
2394
+ (retval, issue) => {
2395
+ const path2 = issue.path.join(" \u2192 ");
2396
+ const msg = path2 + ": " + issue.message;
2397
+ return [...retval, msg];
2398
+ },
2399
+ ["Settings is invalid:"]
2400
+ );
2401
+ const validationErr = msgs.join("\n") + "\n";
2402
+ throw toParseErr(previous, validationErr);
2403
+ }
2404
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Settings.");
2405
+ }
2406
+ };
2407
+ var create39 = (input) => from37(input);
2408
+ var of38 = (input) => {
2409
+ try {
2410
+ return (0, import_fluture39.resolve)(from37(input));
2411
+ } catch (err) {
2412
+ return (0, import_fluture39.reject)(err);
2413
+ }
2414
+ };
2415
+ var make38 = (input) => of38(input);
2416
+ var schemas38 = {
2417
+ rawSchema: settingsSchema,
2418
+ schema: settingsSchema.transform((val) => val)
2419
+ };
2420
+ var rawSchema38 = schemas38.rawSchema;
2421
+ var internalSchema37 = settingsSchema;
2422
+
2423
+ // SingleChar.ts
2424
+ var SingleChar_exports = {};
2425
+ __export(SingleChar_exports, {
2426
+ create: () => create40,
2427
+ from: () => from38,
2428
+ internalSchema: () => internalSchema38,
2429
+ make: () => make39,
2430
+ of: () => of39,
2431
+ rawSchema: () => rawSchema39,
2432
+ schemas: () => schemas39
2433
+ });
2434
+
2435
+ // out/types/SingleChar.ts
2436
+ var import_fluture40 = require("fluture");
2437
+ var import_zod41 = require("zod");
2438
+ var from38 = (input) => {
2439
+ try {
2440
+ return singleCharSchema.parse(input);
2441
+ } catch (previous) {
2442
+ if (previous instanceof import_zod41.ZodError) {
2443
+ const msgs = previous.errors.reduce(
2444
+ (retval, issue) => {
2445
+ const path2 = issue.path.join(" \u2192 ");
2446
+ const msg = path2 + ": " + issue.message;
2447
+ return [...retval, msg];
2448
+ },
2449
+ ["SingleChar is invalid:"]
2450
+ );
2451
+ const validationErr = msgs.join("\n") + "\n";
2452
+ throw toParseErr(previous, validationErr);
2453
+ }
2454
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a SingleChar.");
2455
+ }
2456
+ };
2457
+ var create40 = (input) => from38(input);
2458
+ var of39 = (input) => {
2459
+ try {
2460
+ return (0, import_fluture40.resolve)(from38(input));
2461
+ } catch (err) {
2462
+ return (0, import_fluture40.reject)(err);
2463
+ }
2464
+ };
2465
+ var make39 = (input) => of39(input);
2466
+ var schemas39 = {
2467
+ rawSchema: singleCharSchema,
2468
+ schema: singleCharSchema.transform((val) => val)
2469
+ };
2470
+ var rawSchema39 = schemas39.rawSchema;
2471
+ var internalSchema38 = singleCharSchema;
2472
+
2473
+ // Task.ts
2474
+ var Task_exports = {};
2475
+ __export(Task_exports, {
2476
+ create: () => create41,
2477
+ from: () => from39,
2478
+ internalSchema: () => internalSchema39,
2479
+ make: () => make40,
2480
+ of: () => of40,
2481
+ rawSchema: () => rawSchema40,
2482
+ schemas: () => schemas40
2483
+ });
2484
+
2485
+ // out/types/Task.ts
2486
+ var import_fluture41 = require("fluture");
2487
+ var import_zod42 = require("zod");
2488
+ var from39 = (input) => {
2489
+ try {
2490
+ return taskSchema.parse(input);
2491
+ } catch (previous) {
2492
+ if (previous instanceof import_zod42.ZodError) {
2493
+ const msgs = previous.errors.reduce(
2494
+ (retval, issue) => {
2495
+ const path2 = issue.path.join(" \u2192 ");
2496
+ const msg = path2 + ": " + issue.message;
2497
+ return [...retval, msg];
2498
+ },
2499
+ ["Task is invalid:"]
2500
+ );
2501
+ const validationErr = msgs.join("\n") + "\n";
2502
+ throw toParseErr(previous, validationErr);
2503
+ }
2504
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Task.");
2505
+ }
2506
+ };
2507
+ var create41 = (input) => from39(input);
2508
+ var of40 = (input) => {
2509
+ try {
2510
+ return (0, import_fluture41.resolve)(from39(input));
2511
+ } catch (err) {
2512
+ return (0, import_fluture41.reject)(err);
2513
+ }
2514
+ };
2515
+ var make40 = (input) => of40(input);
2516
+ var schemas40 = {
2517
+ rawSchema: taskSchema,
2518
+ schema: taskSchema.transform((val) => val)
2519
+ };
2520
+ var rawSchema40 = schemas40.rawSchema;
2521
+ var internalSchema39 = taskSchema;
2522
+
2523
+ // Template.ts
2524
+ var Template_exports = {};
2525
+ __export(Template_exports, {
2526
+ create: () => create43,
2527
+ from: () => from40,
2528
+ internalSchema: () => internalSchema40,
2529
+ make: () => make41,
2530
+ of: () => of41,
2531
+ rawSchema: () => rawSchema41,
2532
+ schemas: () => schemas41
2533
+ });
2534
+
2535
+ // out/types/Template.ts
2536
+ var import_fluture42 = require("fluture");
2537
+ var import_zod43 = require("zod");
2538
+ var from40 = (input) => {
2539
+ try {
2540
+ return templateSchema.parse(input);
2541
+ } catch (previous) {
2542
+ if (previous instanceof import_zod43.ZodError) {
2543
+ const msgs = previous.errors.reduce(
2544
+ (retval, issue) => {
2545
+ const path2 = issue.path.join(" \u2192 ");
2546
+ const msg = path2 + ": " + issue.message;
2547
+ return [...retval, msg];
2548
+ },
2549
+ ["Template is invalid:"]
2550
+ );
2551
+ const validationErr = msgs.join("\n") + "\n";
2552
+ throw toParseErr(previous, validationErr);
2553
+ }
2554
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Template.");
2555
+ }
2556
+ };
2557
+ var create42 = (input) => from40(input);
2558
+ var of41 = (input) => {
2559
+ try {
2560
+ return (0, import_fluture42.resolve)(from40(input));
2561
+ } catch (err) {
2562
+ return (0, import_fluture42.reject)(err);
2563
+ }
2564
+ };
2565
+ var make41 = (input) => of41(input);
2566
+ var schemas41 = {
2567
+ rawSchema: templateSchema,
2568
+ schema: templateSchema.transform((val) => val)
2569
+ };
2570
+ var rawSchema41 = schemas41.rawSchema;
2571
+ var internalSchema40 = templateSchema;
2572
+
2573
+ // Template.ts
2574
+ function create43(args) {
2575
+ return create42(args);
2576
+ }
2577
+
2578
+ // Timestamp.ts
2579
+ var Timestamp_exports = {};
2580
+ __export(Timestamp_exports, {
2581
+ create: () => create44,
2582
+ from: () => from41,
2583
+ internalSchema: () => internalSchema41,
2584
+ make: () => make42,
2585
+ of: () => of42,
2586
+ rawSchema: () => rawSchema42,
2587
+ schemas: () => schemas42
2588
+ });
2589
+
2590
+ // out/types/Timestamp.ts
2591
+ var import_fluture43 = require("fluture");
2592
+ var import_zod44 = require("zod");
2593
+ var from41 = (input) => {
2594
+ try {
2595
+ return timestampSchema.parse(input);
2596
+ } catch (previous) {
2597
+ if (previous instanceof import_zod44.ZodError) {
2598
+ const msgs = previous.errors.reduce(
2599
+ (retval, issue) => {
2600
+ const path2 = issue.path.join(" \u2192 ");
2601
+ const msg = path2 + ": " + issue.message;
2602
+ return [...retval, msg];
2603
+ },
2604
+ ["Timestamp is invalid:"]
2605
+ );
2606
+ const validationErr = msgs.join("\n") + "\n";
2607
+ throw toParseErr(previous, validationErr);
2608
+ }
2609
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Timestamp.");
2610
+ }
2611
+ };
2612
+ var create44 = (input) => from41(input);
2613
+ var of42 = (input) => {
2614
+ try {
2615
+ return (0, import_fluture43.resolve)(from41(input));
2616
+ } catch (err) {
2617
+ return (0, import_fluture43.reject)(err);
2618
+ }
2619
+ };
2620
+ var make42 = (input) => of42(input);
2621
+ var schemas42 = {
2622
+ rawSchema: timestampSchema,
2623
+ schema: timestampSchema.transform((val) => val)
2624
+ };
2625
+ var rawSchema42 = schemas42.rawSchema;
2626
+ var internalSchema41 = timestampSchema;
2627
+
2628
+ // Tz.ts
2629
+ var Tz_exports = {};
2630
+ __export(Tz_exports, {
2631
+ create: () => create45,
2632
+ from: () => from42,
2633
+ internalSchema: () => internalSchema42,
2634
+ make: () => make43,
2635
+ of: () => of43,
2636
+ rawSchema: () => rawSchema43,
2637
+ schemas: () => schemas43
2638
+ });
2639
+
2640
+ // out/types/Tz.ts
2641
+ var import_fluture44 = require("fluture");
2642
+ var import_zod45 = require("zod");
2643
+ var from42 = (input) => {
2644
+ try {
2645
+ return tzSchema.parse(input);
2646
+ } catch (previous) {
2647
+ if (previous instanceof import_zod45.ZodError) {
2648
+ const msgs = previous.errors.reduce(
2649
+ (retval, issue) => {
2650
+ const path2 = issue.path.join(" \u2192 ");
2651
+ const msg = path2 + ": " + issue.message;
2652
+ return [...retval, msg];
2653
+ },
2654
+ ["Tz is invalid:"]
2655
+ );
2656
+ const validationErr = msgs.join("\n") + "\n";
2657
+ throw toParseErr(previous, validationErr);
2658
+ }
2659
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Tz.");
2660
+ }
2661
+ };
2662
+ var create45 = (input) => from42(input);
2663
+ var of43 = (input) => {
2664
+ try {
2665
+ return (0, import_fluture44.resolve)(from42(input));
2666
+ } catch (err) {
2667
+ return (0, import_fluture44.reject)(err);
2668
+ }
2669
+ };
2670
+ var make43 = (input) => of43(input);
2671
+ var schemas43 = {
2672
+ rawSchema: tzSchema,
2673
+ schema: tzSchema.transform((val) => val)
2674
+ };
2675
+ var rawSchema43 = schemas43.rawSchema;
2676
+ var internalSchema42 = tzSchema;
2677
+
2678
+ // Url.ts
2679
+ var Url_exports = {};
2680
+ __export(Url_exports, {
2681
+ create: () => create46,
2682
+ from: () => from43,
2683
+ internalSchema: () => internalSchema43,
2684
+ make: () => make44,
2685
+ of: () => of44,
2686
+ rawSchema: () => rawSchema44,
2687
+ schemas: () => schemas44
2688
+ });
2689
+
2690
+ // out/types/Url.ts
2691
+ var import_fluture45 = require("fluture");
2692
+ var import_zod46 = require("zod");
2693
+ var from43 = (input) => {
2694
+ try {
2695
+ return urlSchema.parse(input);
2696
+ } catch (previous) {
2697
+ if (previous instanceof import_zod46.ZodError) {
2698
+ const msgs = previous.errors.reduce(
2699
+ (retval, issue) => {
2700
+ const path2 = issue.path.join(" \u2192 ");
2701
+ const msg = path2 + ": " + issue.message;
2702
+ return [...retval, msg];
2703
+ },
2704
+ ["Url is invalid:"]
2705
+ );
2706
+ const validationErr = msgs.join("\n") + "\n";
2707
+ throw toParseErr(previous, validationErr);
2708
+ }
2709
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Url.");
2710
+ }
2711
+ };
2712
+ var create46 = (input) => from43(input);
2713
+ var of44 = (input) => {
2714
+ try {
2715
+ return (0, import_fluture45.resolve)(from43(input));
2716
+ } catch (err) {
2717
+ return (0, import_fluture45.reject)(err);
2718
+ }
2719
+ };
2720
+ var make44 = (input) => of44(input);
2721
+ var schemas44 = {
2722
+ rawSchema: urlSchema,
2723
+ schema: urlSchema.transform((val) => val)
2724
+ };
2725
+ var rawSchema44 = schemas44.rawSchema;
2726
+ var internalSchema43 = urlSchema;
2727
+
2728
+ // Verb.ts
2729
+ var Verb_exports = {};
2730
+ __export(Verb_exports, {
2731
+ create: () => create47,
2732
+ from: () => from44,
2733
+ internalSchema: () => internalSchema44,
2734
+ make: () => make45,
2735
+ of: () => of45,
2736
+ rawSchema: () => rawSchema45,
2737
+ schemas: () => schemas45
2738
+ });
2739
+
2740
+ // out/types/Verb.ts
2741
+ var import_fluture46 = require("fluture");
2742
+ var import_zod47 = require("zod");
2743
+ var from44 = (input) => {
2744
+ try {
2745
+ return verbSchema.parse(input);
2746
+ } catch (previous) {
2747
+ if (previous instanceof import_zod47.ZodError) {
2748
+ const msgs = previous.errors.reduce(
2749
+ (retval, issue) => {
2750
+ const path2 = issue.path.join(" \u2192 ");
2751
+ const msg = path2 + ": " + issue.message;
2752
+ return [...retval, msg];
2753
+ },
2754
+ ["Verb is invalid:"]
2755
+ );
2756
+ const validationErr = msgs.join("\n") + "\n";
2757
+ throw toParseErr(previous, validationErr);
2758
+ }
2759
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a Verb.");
2760
+ }
2761
+ };
2762
+ var create47 = (input) => from44(input);
2763
+ var of45 = (input) => {
2764
+ try {
2765
+ return (0, import_fluture46.resolve)(from44(input));
2766
+ } catch (err) {
2767
+ return (0, import_fluture46.reject)(err);
2768
+ }
2769
+ };
2770
+ var make45 = (input) => of45(input);
2771
+ var schemas45 = {
2772
+ rawSchema: verbSchema,
2773
+ schema: verbSchema.transform((val) => val)
2774
+ };
2775
+ var rawSchema45 = schemas45.rawSchema;
2776
+ var internalSchema44 = verbSchema;
2777
+
2778
+ // VersionNumber.ts
2779
+ var VersionNumber_exports = {};
2780
+ __export(VersionNumber_exports, {
2781
+ create: () => create48,
2782
+ from: () => from45,
2783
+ internalSchema: () => internalSchema45,
2784
+ make: () => make46,
2785
+ of: () => of46,
2786
+ rawSchema: () => rawSchema46,
2787
+ schemas: () => schemas46
2788
+ });
2789
+
2790
+ // out/types/VersionNumber.ts
2791
+ var import_fluture47 = require("fluture");
2792
+ var import_zod48 = require("zod");
2793
+ var from45 = (input) => {
2794
+ try {
2795
+ return versionNumberSchema.parse(input);
2796
+ } catch (previous) {
2797
+ if (previous instanceof import_zod48.ZodError) {
2798
+ const msgs = previous.errors.reduce(
2799
+ (retval, issue) => {
2800
+ const path2 = issue.path.join(" \u2192 ");
2801
+ const msg = path2 + ": " + issue.message;
2802
+ return [...retval, msg];
2803
+ },
2804
+ ["VersionNumber is invalid:"]
2805
+ );
2806
+ const validationErr = msgs.join("\n") + "\n";
2807
+ throw toParseErr(previous, validationErr);
2808
+ }
2809
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a VersionNumber.");
2810
+ }
2811
+ };
2812
+ var create48 = (input) => from45(input);
2813
+ var of46 = (input) => {
2814
+ try {
2815
+ return (0, import_fluture47.resolve)(from45(input));
2816
+ } catch (err) {
2817
+ return (0, import_fluture47.reject)(err);
2818
+ }
2819
+ };
2820
+ var make46 = (input) => of46(input);
2821
+ var schemas46 = {
2822
+ rawSchema: versionNumberSchema,
2823
+ schema: versionNumberSchema.transform((val) => val)
2824
+ };
2825
+ var rawSchema46 = schemas46.rawSchema;
2826
+ var internalSchema45 = versionNumberSchema;
2827
+
2828
+ // PluginInfo.ts
2829
+ var PluginInfo_exports = {};
2830
+ __export(PluginInfo_exports, {
2831
+ create: () => create49,
2832
+ factory: () => factory2,
2833
+ internalSchema: () => internalSchema46,
2834
+ make: () => make47,
2835
+ of: () => of47,
2836
+ rawSchema: () => rawSchema47,
2837
+ schemas: () => schemas47
2838
+ });
2839
+ var import_zod49 = require("zod");
2840
+ var rawSchema47 = import_zod49.z.object({
2841
+ name: import_zod49.z.string({ description: "Plugin Name" }).min(1),
2842
+ version: rawSchema46.describe("Plugin Version #"),
2843
+ schema: rawSchema46.describe("Plugin Schema Version #"),
2844
+ alias: rawSchema.describe("Plugin Alias"),
2845
+ postInstall: import_zod49.z.string().optional(),
2846
+ tasks: import_zod49.z.preprocess(
2847
+ (val) => val != null ? val : [],
2848
+ import_zod49.z.array(
2849
+ schemas40.schema.describe("Plugin Task"),
2850
+ { description: "Plugin Tasks" }
2851
+ )
2852
+ ).optional(),
2853
+ operations: import_zod49.z.preprocess(
2854
+ (val) => val != null ? val : [],
2855
+ import_zod49.z.array(
2856
+ schemas18.schema.describe("Plugin Operation"),
2857
+ { description: "Plugin Operations" }
2858
+ )
2859
+ ).optional(),
2860
+ templates: import_zod49.z.preprocess(
2861
+ (val) => val != null ? val : [],
2862
+ import_zod49.z.array(
2863
+ schemas19.schema.describe("Plugin Template")
2864
+ )
2865
+ ).optional()
2866
+ });
2867
+ var internalSchema46 = rawSchema47.extend({
2868
+ version: schemas46.schema.describe("Plugin Version #"),
2869
+ schema: schemas46.schema.describe("Plugin Schema Version #"),
2870
+ alias: schemas.schema.describe("Plugin Alias"),
2871
+ tasks: import_zod49.z.preprocess(
2872
+ (val) => val != null ? val : [],
2873
+ import_zod49.z.array(
2874
+ schemas40.schema.describe("Plugin Task"),
2875
+ { description: "Plugin Tasks" }
2876
+ )
2877
+ ).optional(),
2878
+ operations: import_zod49.z.preprocess(
2879
+ (val) => val != null ? val : [],
2880
+ import_zod49.z.array(
2881
+ schemas18.schema.describe("Plugin Operation"),
2882
+ { description: "Plugin Operations" }
2883
+ )
2884
+ ).optional(),
2885
+ templates: import_zod49.z.preprocess(
2886
+ (val) => val != null ? val : [],
2887
+ import_zod49.z.array(
2888
+ schemas19.schema.describe("Plugin Template")
2889
+ )
2890
+ ).optional()
2891
+ }).describe("Plugin Schema");
2892
+ var { schemas: schemas47, factory: factory2 } = Base_default({
2893
+ rawSchema: rawSchema47,
2894
+ internalSchema: internalSchema46,
2895
+ parseErrMsg: "The schema returned from the plugin is invalid",
2896
+ unknownErrMsg: "Something went wrong parsing the schema from a plugin"
2897
+ });
2898
+ var { create: create49, of: of47, make: make47 } = factory2;
2899
+
2900
+ // i18n.ts
2901
+ var i18n_exports = {};
2902
+ __export(i18n_exports, {
2903
+ default: () => i18n_default
2904
+ });
2905
+ var import_i18next = __toESM(require("i18next"));
2906
+ var i18n_default = async () => {
2907
+ const i18n = {
2908
+ ...await import_i18next.default.init({
2909
+ lng: "en",
2910
+ debug: false,
2911
+ resources: {
2912
+ // TODO: Move to separate language files
2913
+ en: {
2914
+ translation: {
2915
+ "appName": "Taqueria",
2916
+ "appDesc": "Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.",
2917
+ "versionDesc": "Display the version number of the Taqueria program",
2918
+ "betaWarning": "Please be advised that Taqueria is currently in BETA.",
2919
+ "configDirDesc": "Config directory (default ./.taq)",
2920
+ "initDesc": "Initialize a new project",
2921
+ "optInDesc": "Opt-in to sharing anonymous usage analytics",
2922
+ "optOutDesc": "Opt-out of sharing anonymous usage analytics",
2923
+ "initPathDesc": "Path to your project directory",
2924
+ "workflowDesc": "Select a workflow to initialize your Taqueria project. Choices are (ligo|smartpy|archetype|michelson)",
2925
+ "scaffoldDesc": `Generate a new project using pre-made scaffold. Recommended for creating a new project.`,
2926
+ "scaffoldUrlDesc": "Alias or Url for the scaffold project",
2927
+ "scaffoldProjectDirDesc": "Path where to create the new project. This must be a new directory.",
2928
+ "scaffoldDoneMsg": "The project was created using the scaffold.",
2929
+ "installDesc": "Install a plugin",
2930
+ "pluginInstalled": "Plugin installed successfully",
2931
+ "pluginUninstalled": "Plugin uninstalled successfully",
2932
+ "uninstallDesc": "Uninstall a plugin",
2933
+ "pluginNameDesc": "The name of the plugin",
2934
+ "promptForTask": "Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\n",
2935
+ "pluginKindDesc": "Kind of plugin (NPM, Binary)",
2936
+ "pluginAlreadyInstalled": "That plugin is already installed.",
2937
+ "pluginOptionDesc": "Use the task from this plugin",
2938
+ "bootstrapMsg": "Project taq'ified!",
2939
+ "maxConcurrencyDesc": "Set the maximum concurrency limit used internally",
2940
+ "providedByMany": "Provided by more than one plugin. The option --plugin is required.",
2941
+ "pluginDesc": "Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.",
2942
+ "listNetworks": "List known networks",
2943
+ "envDesc": "Specify an environment configuration",
2944
+ "disableStateDesc": "Does not use the saved state.json file. State is computed for each execution.",
2945
+ "logPluginCallsDesc": "Logs any execution calls to a plugin to the console",
2946
+ "npmInitRequired": "This project isn't a valid NPM project. Please run: npm init",
2947
+ "testFromVsCode": "An internal command used by VS Code to test for the taq binary",
2948
+ "fromVsCode": "An internal flag used to indicate that taq is executed via vscode",
2949
+ "buildDesc": "Display build information about the current version",
2950
+ "pluginOption": "Use to specify what plugin you'd like when running this task.",
2951
+ "yesOptionDesc": 'Select "yes" to any prompt',
2952
+ "templateNotFound": "Template not found. Perhaps you need to install a plugin?",
2953
+ "createDesc": "Create files from pre-existing templates",
2954
+ "templateDesc": "Name of the template to use"
2955
+ }
2956
+ }
2957
+ }
2958
+ }),
2959
+ __: import_i18next.default.t
2960
+ };
2961
+ return i18n;
2962
+ };
2963
+
2964
+ // PersistentState.ts
2965
+ var PersistentState_exports = {};
2966
+ __export(PersistentState_exports, {
2967
+ create: () => create51,
2968
+ factory: () => factory4,
2969
+ generatedSchemas: () => generatedSchemas3,
2970
+ internalSchema: () => internalSchema48,
2971
+ make: () => make49,
2972
+ of: () => of49,
2973
+ rawSchema: () => rawSchema49,
2974
+ schemas: () => schemas49
2975
+ });
2976
+
2977
+ // SHA256.ts
2978
+ var SHA256_exports = {};
2979
+ __export(SHA256_exports, {
2980
+ Crypto: () => Crypto,
2981
+ create: () => create50,
2982
+ internalSchema: () => internalSchema47,
2983
+ make: () => make48,
2984
+ of: () => of48,
2985
+ rawSchema: () => rawSchema48,
2986
+ schemas: () => schemas48,
2987
+ toSHA256: () => toSHA256
2988
+ });
2989
+ var import_fluture48 = require("fluture");
2990
+ var import_rambda = require("rambda");
2991
+ var import_zod50 = require("zod");
2992
+ var eager = (f) => (0, import_fluture48.promise)(
2993
+ (0, import_fluture48.mapRej)((err) => new E_TaqError(err))(f)
2994
+ );
2995
+ var Crypto = class {
2996
+ constructor() {
2997
+ this.subtle = {
2998
+ digest(_method, _data) {
2999
+ return new ArrayBuffer(50);
3000
+ }
3001
+ };
3002
+ }
3003
+ };
3004
+ var getSubtleCrypto = async () => {
3005
+ if ((0, import_rambda.has)("SubtleCrypto", globalThis)) {
3006
+ return Promise.resolve(crypto.subtle);
3007
+ }
3008
+ const { Crypto: Crypto2 } = await import("@peculiar/webcrypto");
3009
+ const webcrypto = new Crypto2();
3010
+ return Promise.resolve(webcrypto.subtle);
3011
+ };
3012
+ var rawSchema48 = import_zod50.z.string({ description: "SHA256" }).length(64);
3013
+ var { schemas: generatedSchemas2, factory: factory3 } = Base_default({
3014
+ isStringLike: true,
3015
+ rawSchema: rawSchema48,
3016
+ parseErrMsg: (value) => `${value} is an invalid SHA256 hash`,
3017
+ unknownErrMsg: (value) => `Something went wrong trying to parse the following as a SHA256 value, ${value}`
3018
+ });
3019
+ var toSHA256 = async (value) => {
3020
+ const encoder = new TextEncoder();
3021
+ const data = encoder.encode(value);
3022
+ const hash = await (await getSubtleCrypto()).digest("SHA-256", data);
3023
+ const hashArray = Array.from(new Uint8Array(hash));
3024
+ const hashHex = hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
3025
+ return eager(factory3.make(hashHex));
3026
+ };
3027
+ var internalSchema47 = generatedSchemas2.schema;
3028
+ var { create: create50, of: of48, make: make48 } = factory3;
3029
+ var schemas48 = {
3030
+ ...generatedSchemas2,
3031
+ schema: generatedSchemas2.schema.transform((val) => val)
3032
+ };
3033
+
3034
+ // PersistentState.ts
3035
+ var import_zod51 = require("zod");
3036
+ var rawOpSchema = import_zod51.z.object({
3037
+ hash: rawSchema48.describe("state.op.hash"),
3038
+ time: rawSchema42.describe("state.op.time"),
3039
+ output: import_zod51.z.unknown().describe("state.op.output")
3040
+ }).describe("Persistent State Operation");
3041
+ var rawTaskSchema = import_zod51.z.object({
3042
+ task: schemas45.rawSchema,
3043
+ plugin: import_zod51.z.string().min(1),
3044
+ time: rawSchema42.describe("state.task.time"),
3045
+ output: import_zod51.z.unknown().describe("state.task.output")
3046
+ });
3047
+ var internalOpSchema = import_zod51.z.object({
3048
+ hash: schemas48.schema.describe("state.op.hash"),
3049
+ time: schemas42.schema.describe("state.op.time"),
3050
+ output: import_zod51.z.unknown().describe("state.op.output")
3051
+ });
3052
+ var internalTaskSchema = import_zod51.z.object({
3053
+ task: schemas45.schema,
3054
+ plugin: import_zod51.z.string().min(1),
3055
+ time: schemas42.schema.describe("state.task.time"),
3056
+ output: import_zod51.z.unknown().describe("state.op.output")
3057
+ });
3058
+ var rawSchema49 = import_zod51.z.object({
3059
+ operations: import_zod51.z.record(rawOpSchema),
3060
+ tasks: import_zod51.z.record(rawTaskSchema)
3061
+ });
3062
+ var internalSchema48 = import_zod51.z.object({
3063
+ operations: import_zod51.z.record(internalOpSchema),
3064
+ tasks: import_zod51.z.record(internalTaskSchema)
3065
+ }).transform((val) => ({
3066
+ operations: val.operations,
3067
+ tasks: val.tasks
3068
+ }));
3069
+ var { schemas: generatedSchemas3, factory: factory4 } = Base_default({
3070
+ rawSchema: rawSchema49,
3071
+ parseErrMsg: `The persistent state is invalid`,
3072
+ unknownErrMsg: `Something went wrong trying to parse the persistent state`
3073
+ });
3074
+ var { create: create51, of: of49, make: make49 } = factory4;
3075
+ var schemas49 = {
3076
+ ...generatedSchemas3,
3077
+ schema: generatedSchemas3.schema.transform((val) => val)
3078
+ };
3079
+
3080
+ // PluginSchema.ts
3081
+ var PluginSchema_exports = {};
3082
+ __export(PluginSchema_exports, {
3083
+ create: () => create52,
3084
+ factory: () => factory5,
3085
+ generatedSchemas: () => generatedSchemas4,
3086
+ make: () => make50,
3087
+ of: () => of50,
3088
+ rawSchema: () => rawSchema50,
3089
+ schemas: () => schemas50
3090
+ });
3091
+ var import_zod52 = require("zod");
3092
+ var internalSchema49 = internalSchema46.extend({
3093
+ operations: import_zod52.z.preprocess(
3094
+ (val) => val != null ? val : [],
3095
+ import_zod52.z.array(
3096
+ schemas16.schema,
3097
+ { description: "ParsedOperations" }
3098
+ ).optional()
3099
+ ),
3100
+ templates: import_zod52.z.preprocess(
3101
+ (val) => val != null ? val : [],
3102
+ import_zod52.z.array(
3103
+ schemas41.schema
3104
+ ).optional()
3105
+ )
3106
+ }).passthrough().describe("ParsedPluginInfo");
3107
+ var rawSchema50 = rawSchema47.extend({
3108
+ name: rawSchema.optional(),
3109
+ operations: import_zod52.z.preprocess(
3110
+ (val) => val != null ? val : [],
3111
+ import_zod52.z.array(
3112
+ rawSchema16,
3113
+ { description: "ParsedOperation" }
3114
+ )
3115
+ ).optional(),
3116
+ templates: import_zod52.z.preprocess(
3117
+ (val) => val != null ? val : [],
3118
+ import_zod52.z.array(
3119
+ schemas41.schema
3120
+ ).optional()
3121
+ )
3122
+ }).passthrough().describe("ParsedPluginInfo");
3123
+ var { schemas: generatedSchemas4, factory: factory5 } = Base_default({
3124
+ rawSchema: rawSchema50,
3125
+ internalSchema: internalSchema49,
3126
+ parseErrMsg: (value) => `The following plugin info gave us trouble when parsing the following plugin information: ${value}`,
3127
+ unknownErrMsg: "Something went wrong trying to parse the plugin information"
3128
+ });
3129
+ var { create: create52, of: of50, make: make50 } = factory5;
3130
+ var schemas50 = {
3131
+ ...generatedSchemas4,
3132
+ schema: generatedSchemas4.schema.transform((val) => val)
3133
+ };
3134
+
3135
+ // SanitizedArgs.ts
3136
+ var SanitizedArgs_exports = {};
3137
+ __export(SanitizedArgs_exports, {
3138
+ create: () => create53,
3139
+ createCreateTaskArgs: () => createCreateTaskArgs,
3140
+ createInstallTaskArgs: () => createInstallTaskArgs,
3141
+ createProvisionTaskArgs: () => createProvisionTaskArgs,
3142
+ createScaffoldTaskArgs: () => createScaffoldTaskArgs,
3143
+ createSetEnvTaskArgs: () => createSetEnvTaskArgs,
3144
+ createTaskArgs: () => createTaskArgs,
3145
+ createUninstallTaskArgs: () => createUninstallTaskArgs,
3146
+ factory: () => factory6,
3147
+ generatedSchemas: () => generatedSchemas5,
3148
+ initRawSchema: () => initRawSchema,
3149
+ installTaskArgs: () => installTaskArgs,
3150
+ make: () => make51,
3151
+ makeCreateTaskArgs: () => makeCreateTaskArgs,
3152
+ makeInstallTaskArgs: () => makeInstallTaskArgs,
3153
+ makeProvisionTaskArgs: () => makeProvisionTaskArgs,
3154
+ makeScaffoldTaskArgs: () => makeScaffoldTaskArgs,
3155
+ makeSetEnvTaskArgs: () => makeSetEnvTaskArgs,
3156
+ makeUninstallTaskArgs: () => makeUninstallTaskArgs,
3157
+ managePluginRawSchema: () => managePluginRawSchema,
3158
+ of: () => of51,
3159
+ ofCreateTaskArgs: () => ofCreateTaskArgs,
3160
+ ofInstallTaskArgs: () => ofInstallTaskArgs,
3161
+ ofProvisionTaskArgs: () => ofProvisionTaskArgs,
3162
+ ofScaffoldTaskArgs: () => ofScaffoldTaskArgs,
3163
+ ofSetEnvTaskArgs: () => ofSetEnvTaskArgs,
3164
+ ofUninstallTaskArgs: () => ofUninstallTaskArgs,
3165
+ provisionRawSchema: () => provisionRawSchema,
3166
+ provisionTaskArgs: () => provisionTaskArgs,
3167
+ rawSchema: () => rawSchema51,
3168
+ scaffoldRawSchema: () => scaffoldRawSchema,
3169
+ scaffoldTaskArgs: () => scaffoldTaskArgs,
3170
+ schemas: () => schemas51,
3171
+ setEnvRawSchema: () => setEnvRawSchema,
3172
+ setEnvTaskArgs: () => setEnvTaskArgs,
3173
+ templateRawSchema: () => templateRawSchema,
3174
+ uninstallTaskArgs: () => uninstallTaskArgs
3175
+ });
3176
+ var import_zod53 = require("zod");
3177
+ var rawSchema51 = import_zod53.z.object({
3178
+ _: import_zod53.z.array(import_zod53.z.union([import_zod53.z.string().min(1), import_zod53.z.number()])),
3179
+ projectDir: schemas35.schema,
3180
+ maxConcurrency: import_zod53.z.preprocess(
3181
+ (val) => typeof val === "string" ? parseInt(val) : Number(val),
3182
+ import_zod53.z.number().int().min(1).default(10)
3183
+ ),
3184
+ debug: import_zod53.z.preprocess(
3185
+ (val) => Boolean(val),
3186
+ import_zod53.z.boolean().default(false)
3187
+ ),
3188
+ disableState: import_zod53.z.preprocess(
3189
+ (val) => Boolean(val),
3190
+ import_zod53.z.boolean().default(false)
3191
+ ),
3192
+ logPluginRequests: import_zod53.z.preprocess(
3193
+ (val) => Boolean(val),
3194
+ import_zod53.z.boolean().default(false)
3195
+ ),
3196
+ fromVsCode: import_zod53.z.preprocess(
3197
+ (val) => Boolean(val),
3198
+ import_zod53.z.boolean().default(false)
3199
+ ),
3200
+ version: import_zod53.z.preprocess(
3201
+ (val) => Boolean(val),
3202
+ import_zod53.z.boolean().optional()
3203
+ ),
3204
+ build: import_zod53.z.preprocess(
3205
+ (val) => Boolean(val),
3206
+ import_zod53.z.boolean().optional()
3207
+ ),
3208
+ help: import_zod53.z.preprocess(
3209
+ (val) => Boolean(val),
3210
+ import_zod53.z.boolean().optional()
3211
+ ),
3212
+ yes: import_zod53.z.preprocess(
3213
+ (val) => Boolean(val),
3214
+ import_zod53.z.boolean().optional()
3215
+ ),
3216
+ plugin: schemas15.schema.optional(),
3217
+ env: import_zod53.z.string().optional(),
3218
+ quickstart: import_zod53.z.string().min(1).optional(),
3219
+ setBuild: import_zod53.z.preprocess(
3220
+ (val) => String(val),
3221
+ import_zod53.z.string().min(3)
3222
+ ),
3223
+ setVersion: import_zod53.z.string().min(3),
3224
+ pluginName: import_zod53.z.string().min(1).optional()
3225
+ }, { description: "Sanitizied Args" }).passthrough();
3226
+ var scaffoldRawSchema = rawSchema51.extend({
3227
+ scaffoldProjectDir: import_zod53.z.string().min(1).transform((val) => val),
3228
+ scaffoldUrl: import_zod53.z.string().min(1).url().transform((val) => val),
3229
+ branch: import_zod53.z.string().min(1).optional()
3230
+ });
3231
+ var initRawSchema = rawSchema51.extend({
3232
+ workflow: import_zod53.z.string().refine((val) => val === "ligo" || val === "smartpy" || val === "archetype" || val === "michelson").optional()
3233
+ });
3234
+ var provisionRawSchema = rawSchema51.extend({
3235
+ operation: import_zod53.z.string().min(1).describe("Operation name"),
3236
+ name: import_zod53.z.string().min(1).regex(
3237
+ /^[a-z0-9]+[a-z0-9-_]$/,
3238
+ "Provisioner name must consist of one or more letters/numbers and may not start with an underscore or dash."
3239
+ ).describe("Provisioner name").optional()
3240
+ }).passthrough();
3241
+ var templateRawSchema = rawSchema51.extend({
3242
+ template: import_zod53.z.string().min(1)
3243
+ }).passthrough();
3244
+ var managePluginRawSchema = rawSchema51.omit({ pluginName: true }).extend({
3245
+ pluginName: import_zod53.z.string().min(1)
3246
+ });
3247
+ var setEnvRawSchema = rawSchema51.extend({
3248
+ defaultEnvironment: import_zod53.z.string().min(1)
3249
+ });
3250
+ var { schemas: generatedSchemas5, factory: factory6 } = Base_default({
3251
+ rawSchema: rawSchema51,
3252
+ parseErrMsg: "The arguments provided are invalid",
3253
+ unknownErrMsg: "Something went wrong parsing the command-line arguments"
3254
+ });
3255
+ var { create: create53, of: of51, make: make51 } = factory6;
3256
+ var schemas51 = {
3257
+ ...generatedSchemas5,
3258
+ schema: generatedSchemas5.schema.transform((val) => val)
3259
+ };
3260
+ var scaffoldTaskArgs = Base_default({
3261
+ rawSchema: scaffoldRawSchema,
3262
+ parseErrMsg: "The arguments provided are invalid for the scaffold task",
3263
+ unknownErrMsg: "Something went wrong parsing the arguments for the scaffold task"
3264
+ });
3265
+ var provisionTaskArgs = Base_default({
3266
+ rawSchema: provisionRawSchema,
3267
+ parseErrMsg: "The arguments provided are invalid for the provision task",
3268
+ unknownErrMsg: "Something went wrong parsing the arguments for the provision task"
3269
+ });
3270
+ var installTaskArgs = Base_default({
3271
+ rawSchema: managePluginRawSchema,
3272
+ parseErrMsg: "The arguments provided are invalid for the install task",
3273
+ unknownErrMsg: "Something went wrong parsing the arguments for the install task"
3274
+ });
3275
+ var uninstallTaskArgs = Base_default({
3276
+ rawSchema: managePluginRawSchema,
3277
+ parseErrMsg: "The arguments provided are invalid for the uninstall task",
3278
+ unknownErrMsg: "Something went wrong parsing the arguments for the uninstall task"
3279
+ });
3280
+ var setEnvTaskArgs = Base_default({
3281
+ rawSchema: setEnvRawSchema,
3282
+ parseErrMsg: "The arguments provided are invalid for the set-environment task",
3283
+ unknownErrMsg: "Something went wrong parsing the arguments for the set-environment task"
3284
+ });
3285
+ var createTaskArgs = Base_default({
3286
+ rawSchema: templateRawSchema,
3287
+ parseErrMsg: "The arguments provided are invalid for the create task",
3288
+ unknownErrMsg: "Something went wrong parsing the arguments for the create task"
3289
+ });
3290
+ var createScaffoldTaskArgs = scaffoldTaskArgs.factory.from;
3291
+ var makeScaffoldTaskArgs = scaffoldTaskArgs.factory.make;
3292
+ var ofScaffoldTaskArgs = scaffoldTaskArgs.factory.of;
3293
+ var createProvisionTaskArgs = provisionTaskArgs.factory.create;
3294
+ var makeProvisionTaskArgs = provisionTaskArgs.factory.make;
3295
+ var ofProvisionTaskArgs = provisionTaskArgs.factory.of;
3296
+ var createInstallTaskArgs = installTaskArgs.factory.create;
3297
+ var makeInstallTaskArgs = installTaskArgs.factory.make;
3298
+ var ofInstallTaskArgs = installTaskArgs.factory.of;
3299
+ var createUninstallTaskArgs = uninstallTaskArgs.factory.create;
3300
+ var makeUninstallTaskArgs = uninstallTaskArgs.factory.make;
3301
+ var ofUninstallTaskArgs = uninstallTaskArgs.factory.of;
3302
+ var createSetEnvTaskArgs = setEnvTaskArgs.factory.create;
3303
+ var makeSetEnvTaskArgs = setEnvTaskArgs.factory.make;
3304
+ var ofSetEnvTaskArgs = setEnvTaskArgs.factory.of;
3305
+ var createCreateTaskArgs = createTaskArgs.factory.create;
3306
+ var makeCreateTaskArgs = createTaskArgs.factory.make;
3307
+ var ofCreateTaskArgs = createTaskArgs.factory.of;
3308
+
3309
+ // EphemeralState.ts
3310
+ var import_fluture49 = require("fluture");
3311
+ var import_zod54 = require("zod");
3312
+ var eager2 = (f) => (0, import_fluture49.promise)(
3313
+ (0, import_fluture49.mapRej)((err) => new E_TaqError(err))(f)
3314
+ );
3315
+ var taskToPluginMap = import_zod54.z.record(
3316
+ import_zod54.z.union([
3317
+ InstalledPlugin_exports.schemas.schema,
3318
+ Task_exports.schemas.schema
3319
+ ], { description: "Task/Plugin Mapping" })
3320
+ );
3321
+ var operationToPluginMap = import_zod54.z.record(
3322
+ import_zod54.z.union([
3323
+ InstalledPlugin_exports.schemas.schema,
3324
+ ParsedOperation_exports.schemas.schema
3325
+ ], { description: "Operation/Plugin Mapping" })
3326
+ );
3327
+ var templateToPluginMap = import_zod54.z.record(
3328
+ import_zod54.z.union([
3329
+ InstalledPlugin_exports.schemas.schema,
3330
+ ParsedTemplate_exports.schemas.schema
3331
+ ])
3332
+ );
3333
+ var rawSchema52 = import_zod54.z.object({
3334
+ build: import_zod54.z.string({ description: "cache.build" }),
3335
+ configHash: import_zod54.z.string({ description: "cache.configHash" }),
3336
+ tasks: taskToPluginMap,
3337
+ operations: operationToPluginMap,
3338
+ templates: templateToPluginMap,
3339
+ plugins: import_zod54.z.array(PluginInfo_exports.schemas.schema, { description: "cache.plugins" })
3340
+ }).describe("Ephemeral State");
3341
+ var { schemas: generatedSchemas6, factory: factory7 } = Base_default({
3342
+ rawSchema: rawSchema52,
3343
+ parseErrMsg: (value) => `${value} is not a valid representation of ephemeral state`,
3344
+ unknownErrMsg: "Something went wrong when parsing the ephemeral state"
3345
+ });
3346
+ var { create: create54, of: of52, make: make52 } = factory7;
3347
+ var schemas52 = {
3348
+ ...generatedSchemas6,
3349
+ schema: generatedSchemas6.schema.transform((val) => val)
3350
+ };
3351
+ var getTaskCounts = (pluginInfo) => {
3352
+ return pluginInfo.reduce(
3353
+ (retval, pluginInfo2) => pluginInfo2.tasks === void 0 ? {} : pluginInfo2.tasks.reduce(
3354
+ (retval2, task) => {
3355
+ const taskName = task.task;
3356
+ const providers = retval2[taskName] ? [...retval2[taskName], pluginInfo2] : [pluginInfo2];
3357
+ const mapping = {};
3358
+ mapping[taskName] = providers.filter((provider) => provider !== void 0);
3359
+ return { ...retval2, ...mapping };
3360
+ },
3361
+ retval
3362
+ ),
3363
+ {}
3364
+ );
3365
+ };
3366
+ var getTemplateCounts = (pluginInfo) => {
3367
+ return pluginInfo.reduce(
3368
+ (retval, pluginInfo2) => !pluginInfo2.templates ? retval : pluginInfo2.templates.reduce(
3369
+ (retval2, template) => {
3370
+ const templateName = template.template;
3371
+ const providers = retval2[templateName] ? [...retval2[templateName], pluginInfo2] : [pluginInfo2];
3372
+ const mapping = {};
3373
+ mapping[templateName] = providers.filter((provider) => provider !== void 0);
3374
+ return { ...retval2, ...mapping };
3375
+ },
3376
+ retval
3377
+ ),
3378
+ {}
3379
+ );
3380
+ };
3381
+ var getOperationCounts = (pluginInfo) => {
3382
+ return pluginInfo.reduce(
3383
+ (retval, pluginInfo2) => pluginInfo2.operations === void 0 ? retval : pluginInfo2.operations.reduce(
3384
+ (retval2, operation) => {
3385
+ const operationName = operation.operation;
3386
+ const providers = retval2[operationName] ? [...retval2[operationName], pluginInfo2] : [pluginInfo2];
3387
+ const mapping = {};
3388
+ mapping[operationName] = providers.filter((provider) => provider !== void 0);
3389
+ return { ...retval2, ...mapping };
3390
+ },
3391
+ retval
3392
+ ),
3393
+ {}
3394
+ );
3395
+ };
3396
+ var toChoices = (plugins) => plugins.reduce(
3397
+ (retval, pluginInfo) => {
3398
+ return [...retval, pluginInfo.name, pluginInfo.alias];
3399
+ },
3400
+ []
3401
+ );
3402
+ var isComposite = (name, counts) => counts[name] && counts[name].length > 1;
3403
+ var getInstalledPlugin = (config, name) => {
3404
+ var _a;
3405
+ return (_a = config.plugins) == null ? void 0 : _a.find(
3406
+ (plugin) => [`taqueria-plugin-${name}`, name].includes(plugin.name)
3407
+ );
3408
+ };
3409
+ var mapTasksToPlugins = (config, pluginInfo, i18n) => {
3410
+ const taskCounts = getTaskCounts(pluginInfo);
3411
+ return (0, import_fluture49.attemptP)(
3412
+ async () => await pluginInfo.reduce(
3413
+ async (retval, pluginInfo2) => !pluginInfo2.tasks ? Promise.resolve({}) : await pluginInfo2.tasks.reduce(
3414
+ async (retval2, { task, hidden }) => {
3415
+ if (isComposite(task, taskCounts)) {
3416
+ const command = await eager2(Command_exports.make(task));
3417
+ const compositeTask = await eager2(Task_exports.make({
3418
+ task,
3419
+ command,
3420
+ description: await eager2(NonEmptyString_exports.make(i18n.__("providedByMany"))),
3421
+ hidden,
3422
+ options: [
3423
+ await eager2(Option_exports.make({
3424
+ flag: await eager2(Verb_exports.make("plugin")),
3425
+ description: await eager2(
3426
+ NonEmptyString_exports.make("Specify which plugin should be used to execute this task")
3427
+ ),
3428
+ choices: toChoices(taskCounts[task]),
3429
+ required: true
3430
+ }))
3431
+ ],
3432
+ handler: "proxy"
3433
+ }));
3434
+ return { ...await retval2, [task]: compositeTask };
3435
+ }
3436
+ const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
3437
+ return installedPlugin ? { ...await retval2, [task]: installedPlugin } : retval2;
3438
+ },
3439
+ retval
3440
+ ),
3441
+ Promise.resolve({})
3442
+ )
3443
+ ).pipe((0, import_fluture49.mapRej)((rej) => rej));
3444
+ };
3445
+ var mapOperationsToPlugins = (config, pluginInfo, i18n) => {
3446
+ const opCounts = getOperationCounts(pluginInfo);
3447
+ return (0, import_fluture49.attemptP)(
3448
+ async () => await pluginInfo.reduce(
3449
+ async (retval, pluginInfo2) => !pluginInfo2.operations ? Promise.resolve({}) : await pluginInfo2.operations.reduce(
3450
+ async (retval2, { operation }) => {
3451
+ if (isComposite(operation, opCounts)) {
3452
+ const command = await eager2(Command_exports.make(operation));
3453
+ const compositeOp = await eager2(ParsedOperation_exports.make({
3454
+ operation,
3455
+ command,
3456
+ description: await eager2(NonEmptyString_exports.make(i18n.__("providedByMany"))),
3457
+ options: [
3458
+ await eager2(Option_exports.make({
3459
+ flag: await eager2(Verb_exports.make("plugin")),
3460
+ description: await eager2(
3461
+ NonEmptyString_exports.make("Specify which plugin should be used to execute this operation")
3462
+ ),
3463
+ choices: toChoices(opCounts[operation]),
3464
+ required: true
3465
+ }))
3466
+ ]
3467
+ }));
3468
+ return { ...await retval2, [operation]: compositeOp };
3469
+ }
3470
+ const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
3471
+ return installedPlugin ? { ...await retval2, [operation]: installedPlugin } : retval2;
3472
+ },
3473
+ retval
3474
+ ),
3475
+ Promise.resolve({})
3476
+ )
3477
+ ).pipe((0, import_fluture49.mapRej)((rej) => rej));
3478
+ };
3479
+ var mapTemplatesToPlugins = (config, pluginInfo, i18n) => {
3480
+ const tmplCounts = getTemplateCounts(pluginInfo);
3481
+ return (0, import_fluture49.attemptP)(
3482
+ async () => await pluginInfo.reduce(
3483
+ async (retval, pluginInfo2) => !pluginInfo2.templates ? Promise.resolve({}) : await pluginInfo2.templates.reduce(
3484
+ async (retval2, { template, hidden }) => {
3485
+ if (isComposite(template, tmplCounts)) {
3486
+ const command = await eager2(Command_exports.make(template));
3487
+ const description = await eager2(NonEmptyString_exports.of(i18n.__("providedByMany")));
3488
+ const compositeTmpl = await eager2(ParsedTemplate_exports.make({
3489
+ template,
3490
+ command,
3491
+ description,
3492
+ options: [
3493
+ await eager2(Option_exports.make({
3494
+ flag: await eager2(Verb_exports.make("plugin")),
3495
+ description: await eager2(
3496
+ NonEmptyString_exports.make("Specify which plugin should be used to execute this task")
3497
+ ),
3498
+ choices: toChoices(tmplCounts[template]),
3499
+ required: true
3500
+ }))
3501
+ ],
3502
+ handler: "proxy",
3503
+ encoding: PluginResponseEncoding_exports.create("none")
3504
+ }));
3505
+ return { ...await retval2, [template]: compositeTmpl };
3506
+ }
3507
+ const installedPlugin = getInstalledPlugin(config, pluginInfo2.name);
3508
+ return installedPlugin ? { ...await retval2, [template]: installedPlugin } : retval2;
3509
+ },
3510
+ retval
3511
+ ),
3512
+ Promise.resolve({})
3513
+ )
3514
+ ).pipe((0, import_fluture49.mapRej)((rej) => rej));
3515
+ };
3516
+ var getTasks = (pluginInfo) => pluginInfo.reduce(
3517
+ (retval, pluginInfo2) => {
3518
+ var _a;
3519
+ return [...retval, ...(_a = pluginInfo2.tasks) != null ? _a : []];
3520
+ },
3521
+ []
3522
+ );
2646
3523
  //# sourceMappingURL=taqueria-protocol-types.js.map