@taqueria/protocol 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/Alias.d.ts +48 -0
  2. package/Alias.js +70 -0
  3. package/Alias.js.map +1 -0
  4. package/Alias.mjs +34 -0
  5. package/Alias.mjs.map +1 -0
  6. package/Base.d.ts +50 -0
  7. package/Base.js +83 -0
  8. package/Base.js.map +1 -0
  9. package/Base.mjs +57 -0
  10. package/Base.mjs.map +1 -0
  11. package/Command.d.ts +30 -0
  12. package/Command.js +61 -0
  13. package/Command.js.map +1 -0
  14. package/Command.mjs +25 -0
  15. package/Command.mjs.map +1 -0
  16. package/Config.d.ts +2062 -0
  17. package/Config.js +175 -0
  18. package/Config.js.map +1 -0
  19. package/Config.mjs +135 -0
  20. package/Config.mjs.map +1 -0
  21. package/Contract.d.ts +88 -0
  22. package/Contract.js +68 -0
  23. package/Contract.js.map +1 -0
  24. package/Contract.mjs +32 -0
  25. package/Contract.mjs.map +1 -0
  26. package/Crypto.d.ts +5 -0
  27. package/Crypto.js +35 -0
  28. package/Crypto.js.map +1 -0
  29. package/Crypto.mjs +10 -0
  30. package/Crypto.mjs.map +1 -0
  31. package/EconomicalProtocolHash.d.ts +48 -0
  32. package/EconomicalProtocolHash.js +64 -0
  33. package/EconomicalProtocolHash.js.map +1 -0
  34. package/EconomicalProtocolHash.mjs +27 -0
  35. package/EconomicalProtocolHash.mjs.map +1 -0
  36. package/Environment.d.ts +142 -0
  37. package/Environment.js +78 -0
  38. package/Environment.js.map +1 -0
  39. package/Environment.mjs +40 -0
  40. package/Environment.mjs.map +1 -0
  41. package/EphemeralState.d.ts +4561 -0
  42. package/EphemeralState.js +268 -0
  43. package/EphemeralState.js.map +1 -0
  44. package/EphemeralState.mjs +228 -0
  45. package/EphemeralState.mjs.map +1 -0
  46. package/Faucet.d.ts +210 -0
  47. package/Faucet.js +84 -0
  48. package/Faucet.js.map +1 -0
  49. package/Faucet.mjs +47 -0
  50. package/Faucet.mjs.map +1 -0
  51. package/HumanReadableIdentifier.d.ts +30 -0
  52. package/HumanReadableIdentifier.js +61 -0
  53. package/HumanReadableIdentifier.js.map +1 -0
  54. package/HumanReadableIdentifier.mjs +25 -0
  55. package/HumanReadableIdentifier.mjs.map +1 -0
  56. package/InstalledPlugin.d.ts +99 -0
  57. package/InstalledPlugin.js +67 -0
  58. package/InstalledPlugin.js.map +1 -0
  59. package/InstalledPlugin.mjs +30 -0
  60. package/InstalledPlugin.mjs.map +1 -0
  61. package/LoadedConfig.d.ts +2325 -0
  62. package/LoadedConfig.js +80 -0
  63. package/LoadedConfig.js.map +1 -0
  64. package/LoadedConfig.mjs +41 -0
  65. package/LoadedConfig.mjs.map +1 -0
  66. package/MetadataConfig.d.ts +162 -0
  67. package/MetadataConfig.js +75 -0
  68. package/MetadataConfig.js.map +1 -0
  69. package/MetadataConfig.mjs +38 -0
  70. package/MetadataConfig.mjs.map +1 -0
  71. package/NetworkConfig.d.ts +431 -0
  72. package/NetworkConfig.js +77 -0
  73. package/NetworkConfig.js.map +1 -0
  74. package/NetworkConfig.mjs +40 -0
  75. package/NetworkConfig.mjs.map +1 -0
  76. package/Operation.d.ts +1476 -0
  77. package/Operation.js +98 -0
  78. package/Operation.js.map +1 -0
  79. package/Operation.mjs +60 -0
  80. package/Operation.mjs.map +1 -0
  81. package/Option.d.ts +316 -0
  82. package/Option.js +103 -0
  83. package/Option.js.map +1 -0
  84. package/Option.mjs +65 -0
  85. package/Option.mjs.map +1 -0
  86. package/ParsedOperation.d.ts +888 -0
  87. package/ParsedOperation.js +63 -0
  88. package/ParsedOperation.js.map +1 -0
  89. package/ParsedOperation.mjs +26 -0
  90. package/ParsedOperation.mjs.map +1 -0
  91. package/ParsedTemplate.d.ts +1032 -0
  92. package/ParsedTemplate.js +71 -0
  93. package/ParsedTemplate.js.map +1 -0
  94. package/ParsedTemplate.mjs +34 -0
  95. package/ParsedTemplate.mjs.map +1 -0
  96. package/PersistentState.d.ts +581 -0
  97. package/PersistentState.js +98 -0
  98. package/PersistentState.js.map +1 -0
  99. package/PersistentState.mjs +60 -0
  100. package/PersistentState.mjs.map +1 -0
  101. package/PluginActionName.d.ts +23 -0
  102. package/PluginActionName.js +48 -0
  103. package/PluginActionName.js.map +1 -0
  104. package/PluginActionName.mjs +23 -0
  105. package/PluginActionName.mjs.map +1 -0
  106. package/PluginDependenciesResponse.d.ts +158 -0
  107. package/PluginDependenciesResponse.js +63 -0
  108. package/PluginDependenciesResponse.js.map +1 -0
  109. package/PluginDependenciesResponse.mjs +28 -0
  110. package/PluginDependenciesResponse.mjs.map +1 -0
  111. package/PluginInfo.d.ts +3425 -0
  112. package/PluginInfo.js +113 -0
  113. package/PluginInfo.js.map +1 -0
  114. package/PluginInfo.mjs +76 -0
  115. package/PluginInfo.mjs.map +1 -0
  116. package/PluginJsonResponse.d.ts +104 -0
  117. package/PluginJsonResponse.js +59 -0
  118. package/PluginJsonResponse.js.map +1 -0
  119. package/PluginJsonResponse.mjs +25 -0
  120. package/PluginJsonResponse.mjs.map +1 -0
  121. package/PluginProxyResponse.d.ts +23 -0
  122. package/PluginProxyResponse.js +61 -0
  123. package/PluginProxyResponse.js.map +1 -0
  124. package/PluginProxyResponse.mjs +25 -0
  125. package/PluginProxyResponse.mjs.map +1 -0
  126. package/PluginResponseEncoding.d.ts +39 -0
  127. package/PluginResponseEncoding.js +63 -0
  128. package/PluginResponseEncoding.js.map +1 -0
  129. package/PluginResponseEncoding.mjs +27 -0
  130. package/PluginResponseEncoding.mjs.map +1 -0
  131. package/PluginSchema.d.ts +7332 -0
  132. package/PluginSchema.js +107 -0
  133. package/PluginSchema.js.map +1 -0
  134. package/PluginSchema.mjs +70 -0
  135. package/PluginSchema.mjs.map +1 -0
  136. package/PositionalArg.d.ts +190 -0
  137. package/PositionalArg.js +78 -0
  138. package/PositionalArg.js.map +1 -0
  139. package/PositionalArg.mjs +41 -0
  140. package/PositionalArg.mjs.map +1 -0
  141. package/Provisioner.d.ts +276 -0
  142. package/Provisioner.js +86 -0
  143. package/Provisioner.js.map +1 -0
  144. package/Provisioner.mjs +48 -0
  145. package/Provisioner.mjs.map +1 -0
  146. package/ProvisionerID.d.ts +48 -0
  147. package/ProvisionerID.js +61 -0
  148. package/ProvisionerID.js.map +1 -0
  149. package/ProvisionerID.mjs +24 -0
  150. package/ProvisionerID.mjs.map +1 -0
  151. package/Provisions.d.ts +244 -0
  152. package/Provisions.js +93 -0
  153. package/Provisions.js.map +1 -0
  154. package/Provisions.mjs +57 -0
  155. package/Provisions.mjs.map +1 -0
  156. package/PublicKeyHash.d.ts +49 -0
  157. package/PublicKeyHash.js +65 -0
  158. package/PublicKeyHash.js.map +1 -0
  159. package/PublicKeyHash.mjs +28 -0
  160. package/PublicKeyHash.mjs.map +1 -0
  161. package/RequestArgs.d.ts +5557 -0
  162. package/RequestArgs.js +136 -0
  163. package/RequestArgs.js.map +1 -0
  164. package/RequestArgs.mjs +89 -0
  165. package/RequestArgs.mjs.map +1 -0
  166. package/SHA256.d.ts +33 -0
  167. package/SHA256.js +79 -0
  168. package/SHA256.js.map +1 -0
  169. package/SHA256.mjs +42 -0
  170. package/SHA256.mjs.map +1 -0
  171. package/SandboxAccountConfig.d.ts +152 -0
  172. package/SandboxAccountConfig.js +72 -0
  173. package/SandboxAccountConfig.js.map +1 -0
  174. package/SandboxAccountConfig.mjs +35 -0
  175. package/SandboxAccountConfig.mjs.map +1 -0
  176. package/SandboxConfig.d.ts +550 -0
  177. package/SandboxConfig.js +103 -0
  178. package/SandboxConfig.js.map +1 -0
  179. package/SandboxConfig.mjs +66 -0
  180. package/SandboxConfig.mjs.map +1 -0
  181. package/SanitizedAbsPath.d.ts +48 -0
  182. package/SanitizedAbsPath.js +64 -0
  183. package/SanitizedAbsPath.js.map +1 -0
  184. package/SanitizedAbsPath.mjs +27 -0
  185. package/SanitizedAbsPath.mjs.map +1 -0
  186. package/SanitizedArgs.d.ts +2907 -0
  187. package/SanitizedArgs.js +269 -0
  188. package/SanitizedArgs.js.map +1 -0
  189. package/SanitizedArgs.mjs +197 -0
  190. package/SanitizedArgs.mjs.map +1 -0
  191. package/SanitizedPath.d.ts +30 -0
  192. package/SanitizedPath.js +64 -0
  193. package/SanitizedPath.js.map +1 -0
  194. package/SanitizedPath.mjs +28 -0
  195. package/SanitizedPath.mjs.map +1 -0
  196. package/ScaffoldConfig.d.ts +6 -0
  197. package/ScaffoldConfig.js +19 -0
  198. package/ScaffoldConfig.js.map +1 -0
  199. package/ScaffoldConfig.mjs +1 -0
  200. package/ScaffoldConfig.mjs.map +1 -0
  201. package/Settings.d.ts +82 -0
  202. package/Settings.js +66 -0
  203. package/Settings.js.map +1 -0
  204. package/Settings.mjs +29 -0
  205. package/Settings.mjs.map +1 -0
  206. package/SingleChar.d.ts +48 -0
  207. package/SingleChar.js +62 -0
  208. package/SingleChar.js.map +1 -0
  209. package/SingleChar.mjs +25 -0
  210. package/SingleChar.mjs.map +1 -0
  211. package/TaqError.d.ts +24 -0
  212. package/TaqError.js +65 -0
  213. package/TaqError.js.map +1 -0
  214. package/TaqError.mjs +35 -0
  215. package/TaqError.mjs.map +1 -0
  216. package/Task.d.ts +825 -0
  217. package/Task.js +95 -0
  218. package/Task.js.map +1 -0
  219. package/Task.mjs +58 -0
  220. package/Task.mjs.map +1 -0
  221. package/Template.d.ts +1746 -0
  222. package/Template.js +117 -0
  223. package/Template.js.map +1 -0
  224. package/Template.mjs +79 -0
  225. package/Template.mjs.map +1 -0
  226. package/Timestamp.d.ts +51 -0
  227. package/Timestamp.js +65 -0
  228. package/Timestamp.js.map +1 -0
  229. package/Timestamp.mjs +27 -0
  230. package/Timestamp.mjs.map +1 -0
  231. package/Tz.d.ts +47 -0
  232. package/Tz.js +62 -0
  233. package/Tz.js.map +1 -0
  234. package/Tz.mjs +25 -0
  235. package/Tz.mjs.map +1 -0
  236. package/Url.d.ts +49 -0
  237. package/Url.js +68 -0
  238. package/Url.js.map +1 -0
  239. package/Url.mjs +30 -0
  240. package/Url.mjs.map +1 -0
  241. package/Verb.d.ts +48 -0
  242. package/Verb.js +62 -0
  243. package/Verb.js.map +1 -0
  244. package/Verb.mjs +25 -0
  245. package/Verb.mjs.map +1 -0
  246. package/VersionNumber.d.ts +30 -0
  247. package/VersionNumber.js +61 -0
  248. package/VersionNumber.js.map +1 -0
  249. package/VersionNumber.mjs +25 -0
  250. package/VersionNumber.mjs.map +1 -0
  251. package/i18n.d.ts +7 -0
  252. package/i18n.js +96 -0
  253. package/i18n.js.map +1 -0
  254. package/i18n.mjs +67 -0
  255. package/i18n.mjs.map +1 -0
  256. package/package.json +31 -3
  257. package/taqueria-protocol-types.d.ts +72 -0
  258. package/taqueria-protocol-types.js +142 -0
  259. package/taqueria-protocol-types.js.map +1 -0
  260. package/taqueria-protocol-types.mjs +76 -0
  261. package/taqueria-protocol-types.mjs.map +1 -0
  262. package/tzkt-config.d.ts +116 -0
  263. package/tzkt-config.js +65 -0
  264. package/tzkt-config.js.map +1 -0
  265. package/tzkt-config.mjs +28 -0
  266. package/tzkt-config.mjs.map +1 -0
  267. package/Alias.ts +0 -38
  268. package/Base.ts +0 -105
  269. package/Command.ts +0 -26
  270. package/Config.ts +0 -163
  271. package/Contract.ts +0 -35
  272. package/Crypto.ts +0 -3
  273. package/EconomicalProtocolHash.ts +0 -26
  274. package/Environment.ts +0 -40
  275. package/EphemeralState.ts +0 -282
  276. package/Faucet.ts +0 -46
  277. package/HumanReadableIdentifier.ts +0 -26
  278. package/InstalledPlugin.ts +0 -28
  279. package/LoadedConfig.ts +0 -45
  280. package/MetadataConfig.ts +0 -37
  281. package/NetworkConfig.ts +0 -39
  282. package/Operation.ts +0 -70
  283. package/Option.ts +0 -64
  284. package/ParsedOperation.ts +0 -33
  285. package/ParsedTemplate.ts +0 -40
  286. package/PersistentState.ts +0 -69
  287. package/PluginActionName.ts +0 -28
  288. package/PluginDependenciesResponse.ts +0 -33
  289. package/PluginInfo.ts +0 -76
  290. package/PluginJsonResponse.ts +0 -26
  291. package/PluginProxyResponse.ts +0 -24
  292. package/PluginResponseEncoding.ts +0 -27
  293. package/PluginSchema.ts +0 -81
  294. package/PositionalArg.ts +0 -41
  295. package/Provisioner.ts +0 -61
  296. package/ProvisionerID.ts +0 -25
  297. package/Provisions.ts +0 -70
  298. package/PublicKeyHash.ts +0 -28
  299. package/RequestArgs.ts +0 -97
  300. package/SHA256.ts +0 -42
  301. package/SandboxAccountConfig.ts +0 -35
  302. package/SandboxConfig.ts +0 -66
  303. package/SanitizedAbsPath.ts +0 -23
  304. package/SanitizedArgs.ts +0 -213
  305. package/SanitizedPath.ts +0 -28
  306. package/ScaffoldConfig.ts +0 -6
  307. package/Settings.ts +0 -27
  308. package/SingleChar.ts +0 -23
  309. package/TaqError.ts +0 -78
  310. package/Task.ts +0 -57
  311. package/Template.ts +0 -77
  312. package/Timestamp.ts +0 -25
  313. package/Tz.ts +0 -22
  314. package/Url.ts +0 -28
  315. package/Verb.ts +0 -23
  316. package/VersionNumber.ts +0 -25
  317. package/i18n.ts +0 -74
  318. package/taqueria-protocol-types.ts +0 -36
  319. package/tzkt-config.ts +0 -27
package/Url.mjs ADDED
@@ -0,0 +1,30 @@
1
+ // Url.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import { z } from "zod";
4
+ var rawSchema = z.string({ description: "Url" }).url();
5
+ var { schemas: generatedSchemas, factory } = createType({
6
+ rawSchema,
7
+ isStringLike: true,
8
+ parseErrMsg: (value) => `${value} is an invalid url`,
9
+ unknownErrMsg: "Something went wrong trying to parse the url"
10
+ });
11
+ var toComponents = (url) => {
12
+ const parts = new URL(url.toString());
13
+ return parts;
14
+ };
15
+ var { create, of, make } = factory;
16
+ var schemas = {
17
+ ...generatedSchemas,
18
+ schema: generatedSchemas.schema.transform((val) => val)
19
+ };
20
+ export {
21
+ create,
22
+ factory,
23
+ generatedSchemas,
24
+ make,
25
+ of,
26
+ rawSchema,
27
+ schemas,
28
+ toComponents
29
+ };
30
+ //# sourceMappingURL=Url.mjs.map
package/Url.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Url.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string({ description: 'Url' })\n\t.url();\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tisStringLike: true,\n\tparseErrMsg: (value: unknown) => `${value} is an invalid url`,\n\tunknownErrMsg: 'Something went wrong trying to parse the url',\n});\n\nexport const toComponents = (url: Url) => {\n\tconst parts = new URL(url.toString());\n\treturn parts;\n};\n\nexport type Url = z.infer<typeof generatedSchemas.schema>;\nexport type t = Url;\nexport const { create, of, make } = factory;\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as Url),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EACvB,OAAO,EAAE,aAAa,MAAM,CAAC,EAC7B,IAAI;AAIC,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA+B;AAAA,EACpF;AAAA,EACA,cAAc;AAAA,EACd,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAEM,IAAM,eAAe,CAAC,QAAa;AACzC,QAAM,QAAQ,IAAI,IAAI,IAAI,SAAS,CAAC;AACpC,SAAO;AACR;AAIO,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAC7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAU;AAC5D;","names":[]}
package/Verb.d.ts ADDED
@@ -0,0 +1,48 @@
1
+ import * as fluture from 'fluture';
2
+ import { TaqError } from './TaqError.js';
3
+ import { z } from 'zod';
4
+
5
+ declare const rawSchema: z.ZodString;
6
+ declare const factory: {
7
+ make: (input: string) => fluture.FutureInstance<TaqError, string & {
8
+ readonly __kind: any;
9
+ }>;
10
+ of: (input: unknown) => fluture.FutureInstance<TaqError, string & {
11
+ readonly __kind: any;
12
+ }>;
13
+ create: (input: string) => string & {
14
+ readonly __kind: any;
15
+ };
16
+ from: (input: unknown) => string & {
17
+ readonly __kind: any;
18
+ };
19
+ };
20
+ declare const generatedSchemas: {
21
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
22
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
23
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
24
+ readonly __kind: any;
25
+ }, any>;
26
+ };
27
+ declare type Verb = z.infer<typeof generatedSchemas.schema>;
28
+ declare type t = Verb;
29
+ declare const create: (input: string) => string & {
30
+ readonly __kind: any;
31
+ };
32
+ declare const make: (input: string) => fluture.FutureInstance<TaqError, string & {
33
+ readonly __kind: any;
34
+ }>;
35
+ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, string & {
36
+ readonly __kind: any;
37
+ }>;
38
+ declare const schemas: {
39
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
40
+ readonly __kind: any;
41
+ }, any>, string & {
42
+ readonly __kind: any;
43
+ }, any>;
44
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
45
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
46
+ };
47
+
48
+ export { Verb, create, factory, generatedSchemas, make, of, rawSchema, schemas, t };
package/Verb.js ADDED
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // Verb.ts
27
+ var Verb_exports = {};
28
+ __export(Verb_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ generatedSchemas: () => generatedSchemas,
32
+ make: () => make,
33
+ of: () => of,
34
+ rawSchema: () => rawSchema,
35
+ schemas: () => schemas
36
+ });
37
+ module.exports = __toCommonJS(Verb_exports);
38
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
39
+ var import_zod = require("zod");
40
+ var rawSchema = import_zod.z.string({ description: "Verb" }).min(1, "Must be a valid verb").regex(/^[A-Za-z\-\ ]+/, "Must be a valid verb");
41
+ var { factory, schemas: generatedSchemas } = (0, import_Base.default)({
42
+ isStringLike: true,
43
+ rawSchema,
44
+ parseErrMsg: (value) => `${value} is not an invalid verb`,
45
+ unknownErrMsg: `Something went wrong trying to parse a verb`
46
+ });
47
+ var { create, make, of } = factory;
48
+ var schemas = {
49
+ ...generatedSchemas,
50
+ schema: generatedSchemas.schema.transform((val) => val)
51
+ };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ create,
55
+ factory,
56
+ generatedSchemas,
57
+ make,
58
+ of,
59
+ rawSchema,
60
+ schemas
61
+ });
62
+ //# sourceMappingURL=Verb.js.map
package/Verb.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Verb.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string({ description: 'Verb' })\n\t.min(1, 'Must be a valid verb')\n\t.regex(/^[A-Za-z\\-\\ ]+/, 'Must be a valid verb');\n\ntype Input = z.infer<typeof rawSchema>;\n\nexport const { factory, schemas: generatedSchemas } = createType<Input, Input>({\n\tisStringLike: true,\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not an invalid verb`,\n\tunknownErrMsg: `Something went wrong trying to parse a verb`,\n});\nexport type Verb = z.infer<typeof generatedSchemas.schema>;\nexport type t = Verb;\nexport const { create, make, of } = factory;\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as Verb),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aACvB,OAAO,EAAE,aAAa,OAAO,CAAC,EAC9B,IAAI,GAAG,sBAAsB,EAC7B,MAAM,kBAAkB,sBAAsB;AAIzC,IAAM,EAAE,SAAS,SAAS,iBAAiB,QAAI,YAAAA,SAAyB;AAAA,EAC9E,cAAc;AAAA,EACd;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAGM,IAAM,EAAE,QAAQ,MAAM,GAAG,IAAI;AAC7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAW;AAC7D;","names":["createType"]}
package/Verb.mjs ADDED
@@ -0,0 +1,25 @@
1
+ // Verb.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import { z } from "zod";
4
+ var rawSchema = z.string({ description: "Verb" }).min(1, "Must be a valid verb").regex(/^[A-Za-z\-\ ]+/, "Must be a valid verb");
5
+ var { factory, schemas: generatedSchemas } = createType({
6
+ isStringLike: true,
7
+ rawSchema,
8
+ parseErrMsg: (value) => `${value} is not an invalid verb`,
9
+ unknownErrMsg: `Something went wrong trying to parse a verb`
10
+ });
11
+ var { create, make, of } = factory;
12
+ var schemas = {
13
+ ...generatedSchemas,
14
+ schema: generatedSchemas.schema.transform((val) => val)
15
+ };
16
+ export {
17
+ create,
18
+ factory,
19
+ generatedSchemas,
20
+ make,
21
+ of,
22
+ rawSchema,
23
+ schemas
24
+ };
25
+ //# sourceMappingURL=Verb.mjs.map
package/Verb.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Verb.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string({ description: 'Verb' })\n\t.min(1, 'Must be a valid verb')\n\t.regex(/^[A-Za-z\\-\\ ]+/, 'Must be a valid verb');\n\ntype Input = z.infer<typeof rawSchema>;\n\nexport const { factory, schemas: generatedSchemas } = createType<Input, Input>({\n\tisStringLike: true,\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not an invalid verb`,\n\tunknownErrMsg: `Something went wrong trying to parse a verb`,\n});\nexport type Verb = z.infer<typeof generatedSchemas.schema>;\nexport type t = Verb;\nexport const { create, make, of } = factory;\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as Verb),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EACvB,OAAO,EAAE,aAAa,OAAO,CAAC,EAC9B,IAAI,GAAG,sBAAsB,EAC7B,MAAM,kBAAkB,sBAAsB;AAIzC,IAAM,EAAE,SAAS,SAAS,iBAAiB,IAAI,WAAyB;AAAA,EAC9E,cAAc;AAAA,EACd;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAGM,IAAM,EAAE,QAAQ,MAAM,GAAG,IAAI;AAC7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAW;AAC7D;","names":[]}
@@ -0,0 +1,30 @@
1
+ import * as fluture from 'fluture';
2
+ import { TaqError } from './TaqError.js';
3
+ import { z } from 'zod';
4
+
5
+ declare const rawSchema: z.ZodString;
6
+ declare const internalSchema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
7
+ readonly __kind: any;
8
+ }, any>;
9
+ declare type VersionNumber = z.infer<typeof internalSchema>;
10
+ declare type t = VersionNumber;
11
+ declare const create: (input: string) => string & {
12
+ readonly __kind: any;
13
+ };
14
+ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, string & {
15
+ readonly __kind: any;
16
+ }>;
17
+ declare const make: (input: string) => fluture.FutureInstance<TaqError, string & {
18
+ readonly __kind: any;
19
+ }>;
20
+ declare const schemas: {
21
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
22
+ readonly __kind: any;
23
+ }, any>, string & {
24
+ readonly __kind: any;
25
+ }, any>;
26
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
27
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
28
+ };
29
+
30
+ export { VersionNumber, create, internalSchema, make, of, rawSchema, schemas, t };
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // VersionNumber.ts
27
+ var VersionNumber_exports = {};
28
+ __export(VersionNumber_exports, {
29
+ create: () => create,
30
+ internalSchema: () => internalSchema,
31
+ make: () => make,
32
+ of: () => of,
33
+ rawSchema: () => rawSchema,
34
+ schemas: () => schemas
35
+ });
36
+ module.exports = __toCommonJS(VersionNumber_exports);
37
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
38
+ var import_zod = require("zod");
39
+ var rawSchema = import_zod.z.string({ description: "Version Number" }).min(1).regex(/^\d+\.\d+(\.\d+)*$/);
40
+ var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
41
+ isStringLike: true,
42
+ rawSchema,
43
+ parseErrMsg: (value) => `${value} is an invalid version number`,
44
+ unknownErrMsg: "Something went wrong trying to parse the version number"
45
+ });
46
+ var internalSchema = generatedSchemas.schema;
47
+ var { create, of, make } = factory;
48
+ var schemas = {
49
+ ...generatedSchemas,
50
+ schema: generatedSchemas.schema.transform((val) => val)
51
+ };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ create,
55
+ internalSchema,
56
+ make,
57
+ of,
58
+ rawSchema,
59
+ schemas
60
+ });
61
+ //# sourceMappingURL=VersionNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["VersionNumber.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.string({ description: 'Version Number' })\n\t.min(1)\n\t.regex(/^\\d+\\.\\d+(\\.\\d+)*$/);\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nconst { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\tisStringLike: true,\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is an invalid version number`,\n\tunknownErrMsg: 'Something went wrong trying to parse the version number',\n});\n\nexport const internalSchema = generatedSchemas.schema;\n\nexport type VersionNumber = z.infer<typeof internalSchema>;\nexport type t = VersionNumber;\nexport const { create, of, make } = factory;\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as VersionNumber),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aAAE,OAAO,EAAE,aAAa,iBAAiB,CAAC,EACjE,IAAI,CAAC,EACL,MAAM,oBAAoB;AAI5B,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAA,SAA+B;AAAA,EAC7E,cAAc;AAAA,EACd;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAEM,IAAM,iBAAiB,iBAAiB;AAIxC,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAC7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["createType"]}
@@ -0,0 +1,25 @@
1
+ // VersionNumber.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import { z } from "zod";
4
+ var rawSchema = z.string({ description: "Version Number" }).min(1).regex(/^\d+\.\d+(\.\d+)*$/);
5
+ var { schemas: generatedSchemas, factory } = createType({
6
+ isStringLike: true,
7
+ rawSchema,
8
+ parseErrMsg: (value) => `${value} is an invalid version number`,
9
+ unknownErrMsg: "Something went wrong trying to parse the version number"
10
+ });
11
+ var internalSchema = generatedSchemas.schema;
12
+ var { create, of, make } = factory;
13
+ var schemas = {
14
+ ...generatedSchemas,
15
+ schema: generatedSchemas.schema.transform((val) => val)
16
+ };
17
+ export {
18
+ create,
19
+ internalSchema,
20
+ make,
21
+ of,
22
+ rawSchema,
23
+ schemas
24
+ };
25
+ //# sourceMappingURL=VersionNumber.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["VersionNumber.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.string({ description: 'Version Number' })\n\t.min(1)\n\t.regex(/^\\d+\\.\\d+(\\.\\d+)*$/);\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nconst { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\tisStringLike: true,\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is an invalid version number`,\n\tunknownErrMsg: 'Something went wrong trying to parse the version number',\n});\n\nexport const internalSchema = generatedSchemas.schema;\n\nexport type VersionNumber = z.infer<typeof internalSchema>;\nexport type t = VersionNumber;\nexport const { create, of, make } = factory;\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as VersionNumber),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EAAE,OAAO,EAAE,aAAa,iBAAiB,CAAC,EACjE,IAAI,CAAC,EACL,MAAM,oBAAoB;AAI5B,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA+B;AAAA,EAC7E,cAAc;AAAA,EACd;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAEM,IAAM,iBAAiB,iBAAiB;AAIxC,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAC7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":[]}
package/i18n.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ interface i18n {
2
+ __: (...args: unknown[]) => string;
3
+ }
4
+ declare type t = i18n;
5
+ declare const _default: () => Promise<i18n>;
6
+
7
+ export { _default as default, i18n, t };
package/i18n.js ADDED
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // i18n.ts
27
+ var i18n_exports = {};
28
+ __export(i18n_exports, {
29
+ default: () => i18n_default
30
+ });
31
+ module.exports = __toCommonJS(i18n_exports);
32
+ var import_i18next = __toESM(require("i18next"));
33
+ var i18n_default = async () => {
34
+ const i18n = {
35
+ ...await import_i18next.default.init({
36
+ lng: "en",
37
+ debug: false,
38
+ resources: {
39
+ en: {
40
+ translation: {
41
+ "appName": "Taqueria",
42
+ "appDesc": "Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.",
43
+ "versionDesc": "Display the version number of the Taqueria program",
44
+ "betaWarning": "Taqueria is currently in BETA. You've been warned. :)",
45
+ "configDirDesc": "Config directory (default ./.taq)",
46
+ "initDesc": "Initialize a new project",
47
+ "optInDesc": "Opt-in to sharing anonymous usage analytics",
48
+ "optOutDesc": "Opt-out of sharing anonymous usage analytics",
49
+ "initPathDesc": "Path to your project directory",
50
+ "scaffoldDesc": "Generate a new project using pre-made scaffold",
51
+ "scaffoldUrlDesc": "Alias or Url for the scaffold project",
52
+ "scaffoldProjectDirDesc": "Path where to create the new project. This must be a new directory.",
53
+ "scaffoldDoneMsg": "The project was created using the scaffold.",
54
+ "installDesc": "Install a plugin",
55
+ "pluginInstalled": "Plugin installed successfully",
56
+ "pluginUninstalled": "Plugin uninstalled successfully",
57
+ "uninstallDesc": "Uninstall a plugin",
58
+ "pluginNameDesc": "The name of the plugin",
59
+ "promptForTask": "Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\n",
60
+ "pluginKindDesc": "Kind of plugin (NPM, Binary)",
61
+ "pluginAlreadyInstalled": "That plugin is already installed.",
62
+ "pluginOptionDesc": "Use the task from this plugin",
63
+ "bootstrapMsg": "Project taq'ified!",
64
+ "maxConcurrencyDesc": "Set the maximum concurrency limit used internally",
65
+ "providedByMany": "Provided by more than one plugin. The option --plugin is required.",
66
+ "pluginDesc": "Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.",
67
+ "listNetworks": "List known networks",
68
+ "envDesc": "Specify an environment configuration",
69
+ "disableStateDesc": "Does not use the saved state.json file. State is computed for each execution.",
70
+ "logPluginCallsDesc": "Logs any execution calls to a plugin to the console",
71
+ "npmInitRequired": "This project isn't a valid NPM project. Please run: npm init",
72
+ "testFromVsCode": "An internal command used by VS Code to test for the taq binary",
73
+ "fromVsCode": "An internal flag used to indicate that taq is executed via vscode",
74
+ "buildDesc": "Display build information about the current version",
75
+ "pluginOption": "Use to specify what plugin you'd like when running this task.",
76
+ "yesOptionDesc": 'Select "yes" to any prompt',
77
+ "templateNotFound": "Template not found. Perhaps you need to install a plugin?",
78
+ "createDesc": "Create files from pre-existing templates",
79
+ "templateDesc": "Name of the template to use",
80
+ "addContractDesc": "Add a contract to the contract registry",
81
+ "addSourceFileDesc": "Source file to add to the contract registry",
82
+ "removeContractDesc": "Remove a contract from the contract registry",
83
+ "removeContractNameDesc": "The name of the contract to remove",
84
+ "noContractsRegistered": "No registered contracts found",
85
+ "listContractsDesc": "List registered contracts"
86
+ }
87
+ }
88
+ }
89
+ }),
90
+ __: import_i18next.default.t
91
+ };
92
+ return i18n;
93
+ };
94
+ // Annotate the CommonJS export names for ESM import in node:
95
+ 0 && (module.exports = {});
96
+ //# sourceMappingURL=i18n.js.map
package/i18n.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["i18n.ts"],"sourcesContent":["import i18next from 'i18next';\n\nexport interface i18n {\n\t__: (...args: unknown[]) => string;\n}\n\nexport type t = i18n;\n\nexport default async (): Promise<i18n> => {\n\t// TODO: i18next is feature-rich, but rather large. Determine whether you need all of the functionality\n\tconst i18n = {\n\t\t...await i18next.init({\n\t\t\tlng: 'en',\n\t\t\tdebug: false,\n\t\t\tresources: {\n\t\t\t\t// TODO: Move to separate language files\n\t\t\t\ten: {\n\t\t\t\t\ttranslation: {\n\t\t\t\t\t\t'appName': 'Taqueria',\n\t\t\t\t\t\t'appDesc': 'Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.',\n\t\t\t\t\t\t'versionDesc': 'Display the version number of the Taqueria program',\n\t\t\t\t\t\t'betaWarning': \"Taqueria is currently in BETA. You've been warned. :)\",\n\t\t\t\t\t\t'configDirDesc': 'Config directory (default ./.taq)',\n\t\t\t\t\t\t'initDesc': 'Initialize a new project',\n\t\t\t\t\t\t'optInDesc': 'Opt-in to sharing anonymous usage analytics',\n\t\t\t\t\t\t'optOutDesc': 'Opt-out of sharing anonymous usage analytics',\n\t\t\t\t\t\t'initPathDesc': 'Path to your project directory',\n\t\t\t\t\t\t'scaffoldDesc': 'Generate a new project using pre-made scaffold',\n\t\t\t\t\t\t'scaffoldUrlDesc': 'Alias or Url for the scaffold project',\n\t\t\t\t\t\t'scaffoldProjectDirDesc': 'Path where to create the new project. This must be a new directory.',\n\t\t\t\t\t\t'scaffoldDoneMsg': 'The project was created using the scaffold.',\n\t\t\t\t\t\t'installDesc': 'Install a plugin',\n\t\t\t\t\t\t'pluginInstalled': 'Plugin installed successfully',\n\t\t\t\t\t\t'pluginUninstalled': 'Plugin uninstalled successfully',\n\t\t\t\t\t\t'uninstallDesc': 'Uninstall a plugin',\n\t\t\t\t\t\t'pluginNameDesc': 'The name of the plugin',\n\t\t\t\t\t\t'promptForTask':\n\t\t\t\t\t\t\t\"Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\\n\",\n\t\t\t\t\t\t'pluginKindDesc': 'Kind of plugin (NPM, Binary)',\n\t\t\t\t\t\t'pluginAlreadyInstalled': 'That plugin is already installed.',\n\t\t\t\t\t\t'pluginOptionDesc': 'Use the task from this plugin',\n\t\t\t\t\t\t'bootstrapMsg': \"Project taq'ified!\",\n\t\t\t\t\t\t'maxConcurrencyDesc': 'Set the maximum concurrency limit used internally',\n\t\t\t\t\t\t'providedByMany': 'Provided by more than one plugin. The option --plugin is required.',\n\t\t\t\t\t\t'pluginDesc':\n\t\t\t\t\t\t\t'Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.',\n\t\t\t\t\t\t'listNetworks': 'List known networks',\n\t\t\t\t\t\t'envDesc': 'Specify an environment configuration',\n\t\t\t\t\t\t'disableStateDesc': 'Does not use the saved state.json file. State is computed for each execution.',\n\t\t\t\t\t\t'logPluginCallsDesc': 'Logs any execution calls to a plugin to the console',\n\t\t\t\t\t\t'npmInitRequired': \"This project isn't a valid NPM project. Please run: npm init\",\n\t\t\t\t\t\t'testFromVsCode': 'An internal command used by VS Code to test for the taq binary',\n\t\t\t\t\t\t'fromVsCode': 'An internal flag used to indicate that taq is executed via vscode',\n\t\t\t\t\t\t'buildDesc': 'Display build information about the current version',\n\t\t\t\t\t\t'pluginOption': \"Use to specify what plugin you'd like when running this task.\",\n\t\t\t\t\t\t'yesOptionDesc': 'Select \"yes\" to any prompt',\n\t\t\t\t\t\t'templateNotFound': 'Template not found. Perhaps you need to install a plugin?',\n\t\t\t\t\t\t'createDesc': 'Create files from pre-existing templates',\n\t\t\t\t\t\t'templateDesc': 'Name of the template to use',\n\t\t\t\t\t\t'addContractDesc': 'Add a contract to the contract registry',\n\t\t\t\t\t\t'addSourceFileDesc': 'Source file to add to the contract registry',\n\t\t\t\t\t\t'removeContractDesc': 'Remove a contract from the contract registry',\n\t\t\t\t\t\t'removeContractNameDesc': 'The name of the contract to remove',\n\t\t\t\t\t\t'noContractsRegistered': 'No registered contracts found',\n\t\t\t\t\t\t'listContractsDesc': 'List registered contracts',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}),\n\t\t__: i18next.t,\n\t};\n\n\treturn i18n;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAoB;AAQpB,IAAO,eAAQ,YAA2B;AAEzC,QAAM,OAAO;AAAA,IACZ,GAAG,MAAM,eAAAA,QAAQ,KAAK;AAAA,MACrB,KAAK;AAAA,MACL,OAAO;AAAA,MACP,WAAW;AAAA,QAEV,IAAI;AAAA,UACH,aAAa;AAAA,YACZ,WAAW;AAAA,YACX,WAAW;AAAA,YACX,eAAe;AAAA,YACf,eAAe;AAAA,YACf,iBAAiB;AAAA,YACjB,YAAY;AAAA,YACZ,aAAa;AAAA,YACb,cAAc;AAAA,YACd,gBAAgB;AAAA,YAChB,gBAAgB;AAAA,YAChB,mBAAmB;AAAA,YACnB,0BAA0B;AAAA,YAC1B,mBAAmB;AAAA,YACnB,eAAe;AAAA,YACf,mBAAmB;AAAA,YACnB,qBAAqB;AAAA,YACrB,iBAAiB;AAAA,YACjB,kBAAkB;AAAA,YAClB,iBACC;AAAA,YACD,kBAAkB;AAAA,YAClB,0BAA0B;AAAA,YAC1B,oBAAoB;AAAA,YACpB,gBAAgB;AAAA,YAChB,sBAAsB;AAAA,YACtB,kBAAkB;AAAA,YAClB,cACC;AAAA,YACD,gBAAgB;AAAA,YAChB,WAAW;AAAA,YACX,oBAAoB;AAAA,YACpB,sBAAsB;AAAA,YACtB,mBAAmB;AAAA,YACnB,kBAAkB;AAAA,YAClB,cAAc;AAAA,YACd,aAAa;AAAA,YACb,gBAAgB;AAAA,YAChB,iBAAiB;AAAA,YACjB,oBAAoB;AAAA,YACpB,cAAc;AAAA,YACd,gBAAgB;AAAA,YAChB,mBAAmB;AAAA,YACnB,qBAAqB;AAAA,YACrB,sBAAsB;AAAA,YACtB,0BAA0B;AAAA,YAC1B,yBAAyB;AAAA,YACzB,qBAAqB;AAAA,UACtB;AAAA,QACD;AAAA,MACD;AAAA,IACD,CAAC;AAAA,IACD,IAAI,eAAAA,QAAQ;AAAA,EACb;AAEA,SAAO;AACR;","names":["i18next"]}
package/i18n.mjs ADDED
@@ -0,0 +1,67 @@
1
+ // i18n.ts
2
+ import i18next from "i18next";
3
+ var i18n_default = async () => {
4
+ const i18n = {
5
+ ...await i18next.init({
6
+ lng: "en",
7
+ debug: false,
8
+ resources: {
9
+ en: {
10
+ translation: {
11
+ "appName": "Taqueria",
12
+ "appDesc": "Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.",
13
+ "versionDesc": "Display the version number of the Taqueria program",
14
+ "betaWarning": "Taqueria is currently in BETA. You've been warned. :)",
15
+ "configDirDesc": "Config directory (default ./.taq)",
16
+ "initDesc": "Initialize a new project",
17
+ "optInDesc": "Opt-in to sharing anonymous usage analytics",
18
+ "optOutDesc": "Opt-out of sharing anonymous usage analytics",
19
+ "initPathDesc": "Path to your project directory",
20
+ "scaffoldDesc": "Generate a new project using pre-made scaffold",
21
+ "scaffoldUrlDesc": "Alias or Url for the scaffold project",
22
+ "scaffoldProjectDirDesc": "Path where to create the new project. This must be a new directory.",
23
+ "scaffoldDoneMsg": "The project was created using the scaffold.",
24
+ "installDesc": "Install a plugin",
25
+ "pluginInstalled": "Plugin installed successfully",
26
+ "pluginUninstalled": "Plugin uninstalled successfully",
27
+ "uninstallDesc": "Uninstall a plugin",
28
+ "pluginNameDesc": "The name of the plugin",
29
+ "promptForTask": "Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\n",
30
+ "pluginKindDesc": "Kind of plugin (NPM, Binary)",
31
+ "pluginAlreadyInstalled": "That plugin is already installed.",
32
+ "pluginOptionDesc": "Use the task from this plugin",
33
+ "bootstrapMsg": "Project taq'ified!",
34
+ "maxConcurrencyDesc": "Set the maximum concurrency limit used internally",
35
+ "providedByMany": "Provided by more than one plugin. The option --plugin is required.",
36
+ "pluginDesc": "Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.",
37
+ "listNetworks": "List known networks",
38
+ "envDesc": "Specify an environment configuration",
39
+ "disableStateDesc": "Does not use the saved state.json file. State is computed for each execution.",
40
+ "logPluginCallsDesc": "Logs any execution calls to a plugin to the console",
41
+ "npmInitRequired": "This project isn't a valid NPM project. Please run: npm init",
42
+ "testFromVsCode": "An internal command used by VS Code to test for the taq binary",
43
+ "fromVsCode": "An internal flag used to indicate that taq is executed via vscode",
44
+ "buildDesc": "Display build information about the current version",
45
+ "pluginOption": "Use to specify what plugin you'd like when running this task.",
46
+ "yesOptionDesc": 'Select "yes" to any prompt',
47
+ "templateNotFound": "Template not found. Perhaps you need to install a plugin?",
48
+ "createDesc": "Create files from pre-existing templates",
49
+ "templateDesc": "Name of the template to use",
50
+ "addContractDesc": "Add a contract to the contract registry",
51
+ "addSourceFileDesc": "Source file to add to the contract registry",
52
+ "removeContractDesc": "Remove a contract from the contract registry",
53
+ "removeContractNameDesc": "The name of the contract to remove",
54
+ "noContractsRegistered": "No registered contracts found",
55
+ "listContractsDesc": "List registered contracts"
56
+ }
57
+ }
58
+ }
59
+ }),
60
+ __: i18next.t
61
+ };
62
+ return i18n;
63
+ };
64
+ export {
65
+ i18n_default as default
66
+ };
67
+ //# sourceMappingURL=i18n.mjs.map
package/i18n.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["i18n.ts"],"sourcesContent":["import i18next from 'i18next';\n\nexport interface i18n {\n\t__: (...args: unknown[]) => string;\n}\n\nexport type t = i18n;\n\nexport default async (): Promise<i18n> => {\n\t// TODO: i18next is feature-rich, but rather large. Determine whether you need all of the functionality\n\tconst i18n = {\n\t\t...await i18next.init({\n\t\t\tlng: 'en',\n\t\t\tdebug: false,\n\t\t\tresources: {\n\t\t\t\t// TODO: Move to separate language files\n\t\t\t\ten: {\n\t\t\t\t\ttranslation: {\n\t\t\t\t\t\t'appName': 'Taqueria',\n\t\t\t\t\t\t'appDesc': 'Taqueria is an integrated environment for compiling, testing, and deploying Tezos software.',\n\t\t\t\t\t\t'versionDesc': 'Display the version number of the Taqueria program',\n\t\t\t\t\t\t'betaWarning': \"Taqueria is currently in BETA. You've been warned. :)\",\n\t\t\t\t\t\t'configDirDesc': 'Config directory (default ./.taq)',\n\t\t\t\t\t\t'initDesc': 'Initialize a new project',\n\t\t\t\t\t\t'optInDesc': 'Opt-in to sharing anonymous usage analytics',\n\t\t\t\t\t\t'optOutDesc': 'Opt-out of sharing anonymous usage analytics',\n\t\t\t\t\t\t'initPathDesc': 'Path to your project directory',\n\t\t\t\t\t\t'scaffoldDesc': 'Generate a new project using pre-made scaffold',\n\t\t\t\t\t\t'scaffoldUrlDesc': 'Alias or Url for the scaffold project',\n\t\t\t\t\t\t'scaffoldProjectDirDesc': 'Path where to create the new project. This must be a new directory.',\n\t\t\t\t\t\t'scaffoldDoneMsg': 'The project was created using the scaffold.',\n\t\t\t\t\t\t'installDesc': 'Install a plugin',\n\t\t\t\t\t\t'pluginInstalled': 'Plugin installed successfully',\n\t\t\t\t\t\t'pluginUninstalled': 'Plugin uninstalled successfully',\n\t\t\t\t\t\t'uninstallDesc': 'Uninstall a plugin',\n\t\t\t\t\t\t'pluginNameDesc': 'The name of the plugin',\n\t\t\t\t\t\t'promptForTask':\n\t\t\t\t\t\t\t\"Please specify which task you would like to execute. If you're starting a new project, please run 'init'.\\n\",\n\t\t\t\t\t\t'pluginKindDesc': 'Kind of plugin (NPM, Binary)',\n\t\t\t\t\t\t'pluginAlreadyInstalled': 'That plugin is already installed.',\n\t\t\t\t\t\t'pluginOptionDesc': 'Use the task from this plugin',\n\t\t\t\t\t\t'bootstrapMsg': \"Project taq'ified!\",\n\t\t\t\t\t\t'maxConcurrencyDesc': 'Set the maximum concurrency limit used internally',\n\t\t\t\t\t\t'providedByMany': 'Provided by more than one plugin. The option --plugin is required.',\n\t\t\t\t\t\t'pluginDesc':\n\t\t\t\t\t\t\t'Specify what plugin should execute this command. Use this when more than one plugin provide a task of the same name.',\n\t\t\t\t\t\t'listNetworks': 'List known networks',\n\t\t\t\t\t\t'envDesc': 'Specify an environment configuration',\n\t\t\t\t\t\t'disableStateDesc': 'Does not use the saved state.json file. State is computed for each execution.',\n\t\t\t\t\t\t'logPluginCallsDesc': 'Logs any execution calls to a plugin to the console',\n\t\t\t\t\t\t'npmInitRequired': \"This project isn't a valid NPM project. Please run: npm init\",\n\t\t\t\t\t\t'testFromVsCode': 'An internal command used by VS Code to test for the taq binary',\n\t\t\t\t\t\t'fromVsCode': 'An internal flag used to indicate that taq is executed via vscode',\n\t\t\t\t\t\t'buildDesc': 'Display build information about the current version',\n\t\t\t\t\t\t'pluginOption': \"Use to specify what plugin you'd like when running this task.\",\n\t\t\t\t\t\t'yesOptionDesc': 'Select \"yes\" to any prompt',\n\t\t\t\t\t\t'templateNotFound': 'Template not found. Perhaps you need to install a plugin?',\n\t\t\t\t\t\t'createDesc': 'Create files from pre-existing templates',\n\t\t\t\t\t\t'templateDesc': 'Name of the template to use',\n\t\t\t\t\t\t'addContractDesc': 'Add a contract to the contract registry',\n\t\t\t\t\t\t'addSourceFileDesc': 'Source file to add to the contract registry',\n\t\t\t\t\t\t'removeContractDesc': 'Remove a contract from the contract registry',\n\t\t\t\t\t\t'removeContractNameDesc': 'The name of the contract to remove',\n\t\t\t\t\t\t'noContractsRegistered': 'No registered contracts found',\n\t\t\t\t\t\t'listContractsDesc': 'List registered contracts',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}),\n\t\t__: i18next.t,\n\t};\n\n\treturn i18n;\n};\n"],"mappings":";AAAA,OAAO,aAAa;AAQpB,IAAO,eAAQ,YAA2B;AAEzC,QAAM,OAAO;AAAA,IACZ,GAAG,MAAM,QAAQ,KAAK;AAAA,MACrB,KAAK;AAAA,MACL,OAAO;AAAA,MACP,WAAW;AAAA,QAEV,IAAI;AAAA,UACH,aAAa;AAAA,YACZ,WAAW;AAAA,YACX,WAAW;AAAA,YACX,eAAe;AAAA,YACf,eAAe;AAAA,YACf,iBAAiB;AAAA,YACjB,YAAY;AAAA,YACZ,aAAa;AAAA,YACb,cAAc;AAAA,YACd,gBAAgB;AAAA,YAChB,gBAAgB;AAAA,YAChB,mBAAmB;AAAA,YACnB,0BAA0B;AAAA,YAC1B,mBAAmB;AAAA,YACnB,eAAe;AAAA,YACf,mBAAmB;AAAA,YACnB,qBAAqB;AAAA,YACrB,iBAAiB;AAAA,YACjB,kBAAkB;AAAA,YAClB,iBACC;AAAA,YACD,kBAAkB;AAAA,YAClB,0BAA0B;AAAA,YAC1B,oBAAoB;AAAA,YACpB,gBAAgB;AAAA,YAChB,sBAAsB;AAAA,YACtB,kBAAkB;AAAA,YAClB,cACC;AAAA,YACD,gBAAgB;AAAA,YAChB,WAAW;AAAA,YACX,oBAAoB;AAAA,YACpB,sBAAsB;AAAA,YACtB,mBAAmB;AAAA,YACnB,kBAAkB;AAAA,YAClB,cAAc;AAAA,YACd,aAAa;AAAA,YACb,gBAAgB;AAAA,YAChB,iBAAiB;AAAA,YACjB,oBAAoB;AAAA,YACpB,cAAc;AAAA,YACd,gBAAgB;AAAA,YAChB,mBAAmB;AAAA,YACnB,qBAAqB;AAAA,YACrB,sBAAsB;AAAA,YACtB,0BAA0B;AAAA,YAC1B,yBAAyB;AAAA,YACzB,qBAAqB;AAAA,UACtB;AAAA,QACD;AAAA,MACD;AAAA,IACD,CAAC;AAAA,IACD,IAAI,QAAQ;AAAA,EACb;AAEA,SAAO;AACR;","names":[]}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@taqueria/protocol",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "build": "echo 'Nothing to build.' && exit 0 "
8
+ "build": "npx tsc -noEmit -p ./tsconfig.json && npx tsup"
9
9
  },
10
10
  "keywords": [
11
11
  "taqueria",
@@ -31,11 +31,39 @@
31
31
  "devDependencies": {
32
32
  "typescript": "^4.7.2"
33
33
  },
34
+ "exports": {
35
+ "./*": {
36
+ "import": "./*.mjs",
37
+ "default": "./*.js"
38
+ },
39
+ "./*.js": {
40
+ "import": "./*.mjs",
41
+ "default": "./*.js"
42
+ }
43
+ },
34
44
  "dependencies": {
35
45
  "@peculiar/webcrypto": "^1.4.0",
36
46
  "batching-toposort": "^1.2.0",
37
47
  "fluture": "^14.0.0",
38
- "remeda": "^0.0.34",
48
+ "rambda": "^7.2.1",
49
+ "rambdax": "^8.1.0",
50
+ "tsup": "^6.2.3",
39
51
  "zod": "^3.17.3"
52
+ },
53
+ "tsup": {
54
+ "entry": [
55
+ "[!.]+.ts"
56
+ ],
57
+ "sourcemap": true,
58
+ "target": "node16",
59
+ "outDir": "./",
60
+ "dts": true,
61
+ "clean": false,
62
+ "skipNodeModulesBundle": true,
63
+ "platform": "node",
64
+ "format": [
65
+ "esm",
66
+ "cjs"
67
+ ]
40
68
  }
41
69
  }
@@ -0,0 +1,72 @@
1
+ import * as Alias from '@taqueria/protocol/Alias';
2
+ export { Alias };
3
+ import * as Config from '@taqueria/protocol/Config';
4
+ export { Config };
5
+ import * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';
6
+ export { EconomicalProtocolHash };
7
+ import * as Environment from '@taqueria/protocol/Environment';
8
+ export { Environment };
9
+ import * as EphemeralState from '@taqueria/protocol/EphemeralState';
10
+ export { EphemeralState };
11
+ import * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';
12
+ export { HumanReadableIdentifier };
13
+ import * as i18n from '@taqueria/protocol/i18n';
14
+ export { i18n };
15
+ import * as InstalledPlugin from '@taqueria/protocol/InstalledPlugin';
16
+ export { InstalledPlugin };
17
+ import * as LoadedConfig from '@taqueria/protocol/LoadedConfig';
18
+ export { LoadedConfig };
19
+ import * as MetadataConfig from '@taqueria/protocol/MetadataConfig';
20
+ export { MetadataConfig };
21
+ import * as NetworkConfig from '@taqueria/protocol/NetworkConfig';
22
+ export { NetworkConfig };
23
+ import * as Operation from '@taqueria/protocol/Operation';
24
+ export { Operation };
25
+ import * as Option from '@taqueria/protocol/Option';
26
+ export { Option };
27
+ import * as ParsedOperation from '@taqueria/protocol/ParsedOperation';
28
+ export { ParsedOperation };
29
+ import * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';
30
+ export { ParsedTemplate };
31
+ import * as PersistentState from '@taqueria/protocol/PersistentState';
32
+ export { PersistentState };
33
+ import * as PluginActionName from '@taqueria/protocol/PluginActionName';
34
+ export { PluginActionName };
35
+ import * as PluginInfo from '@taqueria/protocol/PluginInfo';
36
+ export { PluginInfo };
37
+ import * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';
38
+ export { PluginJsonResponse };
39
+ import * as PluginResponseEncoding from '@taqueria/protocol/PluginResponseEncoding';
40
+ export { PluginResponseEncoding };
41
+ import * as PluginSchema from '@taqueria/protocol/PluginSchema';
42
+ export { PluginSchema };
43
+ import * as PositionalArg from '@taqueria/protocol/PositionalArg';
44
+ export { PositionalArg };
45
+ import * as RequestArgs from '@taqueria/protocol/RequestArgs';
46
+ export { RequestArgs };
47
+ import * as SandboxAccountConfig from '@taqueria/protocol/SandboxAccountConfig';
48
+ export { SandboxAccountConfig };
49
+ import * as SandboxConfig from '@taqueria/protocol/SandboxConfig';
50
+ export { SandboxConfig };
51
+ import * as SanitizedAbsPath from '@taqueria/protocol/SanitizedAbsPath';
52
+ export { SanitizedAbsPath };
53
+ import * as SanitizedArgs from '@taqueria/protocol/SanitizedArgs';
54
+ export { SanitizedArgs };
55
+ import * as SanitizedPath from '@taqueria/protocol/SanitizedPath';
56
+ export { SanitizedPath };
57
+ import * as ScaffoldConfig from '@taqueria/protocol/ScaffoldConfig';
58
+ export { ScaffoldConfig };
59
+ import * as SHA256 from '@taqueria/protocol/SHA256';
60
+ export { SHA256 };
61
+ import * as _taqueria_protocol_TaqError from '@taqueria/protocol/TaqError';
62
+ export { _taqueria_protocol_TaqError as TaqError };
63
+ import * as Task from '@taqueria/protocol/Task';
64
+ export { Task };
65
+ import * as Template from '@taqueria/protocol/Template';
66
+ export { Template };
67
+ import * as Url from '@taqueria/protocol/Url';
68
+ export { Url };
69
+ import * as Verb from '@taqueria/protocol/Verb';
70
+ export { Verb };
71
+ import * as VersionNumber from '@taqueria/protocol/VersionNumber';
72
+ export { VersionNumber };