@grnsft/if 0.7.0 → 0.7.1

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 (399) hide show
  1. package/.env +5 -0
  2. package/build/common/config/index.d.ts +1 -0
  3. package/build/common/config/index.js +6 -0
  4. package/build/common/config/strings.d.ts +11 -0
  5. package/build/common/config/strings.js +19 -0
  6. package/build/common/lib/load.d.ts +6 -0
  7. package/build/common/lib/load.js +18 -0
  8. package/build/common/types/manifest.d.ts +13 -0
  9. package/build/common/types/manifest.js +3 -0
  10. package/build/common/util/debug-logger.d.ts +4 -0
  11. package/build/common/util/debug-logger.js +124 -0
  12. package/build/common/util/fs.d.ts +20 -0
  13. package/build/common/util/fs.js +94 -0
  14. package/build/common/util/helpers.d.ts +15 -0
  15. package/build/common/util/helpers.js +80 -0
  16. package/build/common/util/logger.d.ts +5 -0
  17. package/build/common/util/logger.js +39 -0
  18. package/build/common/util/validations.d.ts +465 -0
  19. package/build/common/util/validations.js +148 -0
  20. package/build/common/util/yaml.d.ts +12 -0
  21. package/build/common/util/yaml.js +59 -0
  22. package/build/if-check/config/config.d.ts +6 -0
  23. package/build/if-check/config/config.js +31 -0
  24. package/build/if-check/config/index.d.ts +2 -0
  25. package/build/if-check/config/index.js +8 -0
  26. package/build/if-check/config/strings.d.ts +11 -0
  27. package/build/if-check/config/strings.js +15 -0
  28. package/build/if-check/index.d.ts +2 -0
  29. package/build/if-check/index.js +98 -0
  30. package/build/if-check/types/process-args.d.ts +4 -0
  31. package/build/if-check/types/process-args.js +3 -0
  32. package/build/if-check/util/args.d.ts +10 -0
  33. package/build/if-check/util/args.js +56 -0
  34. package/build/if-check/util/helpers.d.ts +4 -0
  35. package/build/if-check/util/helpers.js +18 -0
  36. package/build/if-check/util/npm.d.ts +4 -0
  37. package/build/if-check/util/npm.js +59 -0
  38. package/build/if-csv/config/config.d.ts +6 -0
  39. package/build/if-csv/config/config.js +36 -0
  40. package/build/if-csv/config/index.d.ts +2 -0
  41. package/build/if-csv/config/index.js +8 -0
  42. package/build/if-csv/config/strings.d.ts +3 -0
  43. package/build/if-csv/config/strings.js +7 -0
  44. package/build/if-csv/index.d.ts +2 -0
  45. package/build/if-csv/index.js +63 -0
  46. package/build/if-csv/types/csv.d.ts +7 -0
  47. package/build/if-csv/types/csv.js +3 -0
  48. package/build/if-csv/types/process-args.d.ts +5 -0
  49. package/build/if-csv/types/process-args.js +3 -0
  50. package/build/if-csv/util/args.d.ts +12 -0
  51. package/build/if-csv/util/args.js +47 -0
  52. package/build/if-csv/util/helpers.d.ts +9 -0
  53. package/build/if-csv/util/helpers.js +95 -0
  54. package/build/if-diff/config/config.d.ts +6 -0
  55. package/build/if-diff/config/config.js +31 -0
  56. package/build/if-diff/config/index.d.ts +2 -0
  57. package/build/if-diff/config/index.js +8 -0
  58. package/build/if-diff/config/strings.d.ts +6 -0
  59. package/build/if-diff/config/strings.js +10 -0
  60. package/build/if-diff/index.d.ts +2 -0
  61. package/build/if-diff/index.js +46 -0
  62. package/build/if-diff/lib/compare.d.ts +10 -0
  63. package/build/if-diff/lib/compare.js +56 -0
  64. package/build/if-diff/lib/load.d.ts +63 -0
  65. package/build/if-diff/lib/load.js +51 -0
  66. package/build/if-diff/types/args.d.ts +5 -0
  67. package/build/if-diff/types/args.js +3 -0
  68. package/build/if-diff/types/compare.d.ts +7 -0
  69. package/build/if-diff/types/compare.js +3 -0
  70. package/build/if-diff/types/process-args.d.ts +4 -0
  71. package/build/if-diff/types/process-args.js +3 -0
  72. package/build/if-diff/util/args.d.ts +5 -0
  73. package/build/if-diff/util/args.js +51 -0
  74. package/build/if-diff/util/helpers.d.ts +13 -0
  75. package/build/if-diff/util/helpers.js +75 -0
  76. package/build/if-env/config/config.d.ts +6 -0
  77. package/build/if-env/config/config.js +37 -0
  78. package/build/if-env/config/index.d.ts +2 -0
  79. package/build/if-env/config/index.js +8 -0
  80. package/build/if-env/config/strings.d.ts +7 -0
  81. package/build/if-env/config/strings.js +11 -0
  82. package/build/if-env/index.d.ts +2 -0
  83. package/build/if-env/index.js +40 -0
  84. package/build/if-env/types/if-env.d.ts +8 -0
  85. package/build/if-env/types/if-env.js +3 -0
  86. package/build/if-env/types/npm.d.ts +9 -0
  87. package/build/if-env/types/npm.js +3 -0
  88. package/build/if-env/types/process-args.d.ts +5 -0
  89. package/build/if-env/types/process-args.js +3 -0
  90. package/build/if-env/util/args.d.ts +12 -0
  91. package/build/if-env/util/args.js +47 -0
  92. package/build/if-env/util/helpers.d.ts +20 -0
  93. package/build/if-env/util/helpers.js +94 -0
  94. package/build/if-env/util/npm.d.ts +24 -0
  95. package/build/if-env/util/npm.js +126 -0
  96. package/build/if-merge/config/config.d.ts +6 -0
  97. package/build/if-merge/config/config.js +43 -0
  98. package/build/if-merge/config/index.d.ts +2 -0
  99. package/build/if-merge/config/index.js +8 -0
  100. package/build/if-merge/config/strings.d.ts +5 -0
  101. package/build/if-merge/config/strings.js +9 -0
  102. package/build/if-merge/index.d.ts +2 -0
  103. package/build/if-merge/index.js +26 -0
  104. package/build/if-merge/types/process-args.d.ts +6 -0
  105. package/build/if-merge/types/process-args.js +3 -0
  106. package/build/if-merge/util/args.d.ts +9 -0
  107. package/build/if-merge/util/args.js +59 -0
  108. package/build/if-merge/util/helpers.d.ts +5 -0
  109. package/build/if-merge/util/helpers.js +83 -0
  110. package/build/if-run/builtins/coefficient/index.d.ts +16 -0
  111. package/build/if-run/builtins/coefficient/index.js +45 -0
  112. package/build/if-run/builtins/copy-param/index.d.ts +21 -0
  113. package/build/if-run/builtins/copy-param/index.js +58 -0
  114. package/build/if-run/builtins/csv-lookup/index.d.ts +16 -0
  115. package/build/if-run/builtins/csv-lookup/index.js +175 -0
  116. package/build/if-run/builtins/divide/index.d.ts +16 -0
  117. package/build/if-run/builtins/divide/index.js +68 -0
  118. package/build/if-run/builtins/exponent/index.d.ts +16 -0
  119. package/build/if-run/builtins/exponent/index.js +52 -0
  120. package/build/if-run/builtins/export-log.d.ts +4 -0
  121. package/build/if-run/builtins/export-log.js +44 -0
  122. package/build/if-run/builtins/export-yaml.d.ts +4 -0
  123. package/build/if-run/builtins/export-yaml.js +30 -0
  124. package/build/if-run/builtins/index.d.ts +16 -0
  125. package/build/if-run/builtins/index.js +36 -0
  126. package/build/if-run/builtins/interpolation/index.d.ts +16 -0
  127. package/build/if-run/builtins/interpolation/index.js +138 -0
  128. package/build/if-run/builtins/mock-observations/helpers/common-generator.d.ts +3 -0
  129. package/build/if-run/builtins/mock-observations/helpers/common-generator.js +29 -0
  130. package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.d.ts +3 -0
  131. package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.js +48 -0
  132. package/build/if-run/builtins/mock-observations/index.d.ts +16 -0
  133. package/build/if-run/builtins/mock-observations/index.js +108 -0
  134. package/build/if-run/builtins/mock-observations/interfaces/index.d.ts +6 -0
  135. package/build/if-run/builtins/mock-observations/interfaces/index.js +3 -0
  136. package/build/if-run/builtins/multiply/index.d.ts +16 -0
  137. package/build/if-run/builtins/multiply/index.js +47 -0
  138. package/build/if-run/builtins/regex/index.d.ts +16 -0
  139. package/build/if-run/builtins/regex/index.js +55 -0
  140. package/build/if-run/builtins/sci/index.d.ts +16 -0
  141. package/build/if-run/builtins/sci/index.js +92 -0
  142. package/build/if-run/builtins/sci-embodied/index.d.ts +16 -0
  143. package/build/if-run/builtins/sci-embodied/index.js +142 -0
  144. package/build/if-run/builtins/shell/index.d.ts +16 -0
  145. package/build/if-run/builtins/shell/index.js +50 -0
  146. package/build/if-run/builtins/subtract/index.d.ts +16 -0
  147. package/build/if-run/builtins/subtract/index.js +51 -0
  148. package/build/if-run/builtins/sum/index.d.ts +16 -0
  149. package/build/if-run/builtins/sum/index.js +37 -0
  150. package/build/if-run/builtins/time-converter/config.d.ts +1 -0
  151. package/build/if-run/builtins/time-converter/config.js +44 -0
  152. package/build/if-run/builtins/time-converter/index.d.ts +16 -0
  153. package/build/if-run/builtins/time-converter/index.js +63 -0
  154. package/build/if-run/builtins/time-sync/index.d.ts +31 -0
  155. package/build/if-run/builtins/time-sync/index.js +371 -0
  156. package/build/if-run/config/config.d.ts +9 -0
  157. package/build/if-run/config/config.js +79 -0
  158. package/build/if-run/config/index.d.ts +2 -0
  159. package/build/if-run/config/index.js +8 -0
  160. package/build/if-run/config/strings.d.ts +62 -0
  161. package/build/if-run/config/strings.js +81 -0
  162. package/build/if-run/index.d.ts +2 -0
  163. package/build/if-run/index.js +58 -0
  164. package/build/if-run/lib/aggregate.d.ts +14 -0
  165. package/build/if-run/lib/aggregate.js +130 -0
  166. package/build/if-run/lib/compute.d.ts +5 -0
  167. package/build/if-run/lib/compute.js +164 -0
  168. package/build/if-run/lib/environment.d.ts +5 -0
  169. package/build/if-run/lib/environment.js +75 -0
  170. package/build/if-run/lib/exhaust.d.ts +7 -0
  171. package/build/if-run/lib/exhaust.js +27 -0
  172. package/build/if-run/lib/explain.d.ts +9 -0
  173. package/build/if-run/lib/explain.js +72 -0
  174. package/build/if-run/lib/initialize.d.ts +10 -0
  175. package/build/if-run/lib/initialize.js +113 -0
  176. package/build/if-run/lib/regroup.d.ts +5 -0
  177. package/build/if-run/lib/regroup.js +67 -0
  178. package/build/if-run/types/aggregation.d.ts +2 -0
  179. package/build/if-run/types/aggregation.js +11 -0
  180. package/build/if-run/types/compute.d.ts +33 -0
  181. package/build/if-run/types/compute.js +3 -0
  182. package/build/if-run/types/environment.d.ts +18 -0
  183. package/build/if-run/types/environment.js +3 -0
  184. package/build/if-run/types/explain.d.ts +16 -0
  185. package/build/if-run/types/explain.js +3 -0
  186. package/build/if-run/types/plugin-storage.d.ts +6 -0
  187. package/build/if-run/types/plugin-storage.js +3 -0
  188. package/build/if-run/types/process-args.d.ts +27 -0
  189. package/build/if-run/types/process-args.js +3 -0
  190. package/build/if-run/util/aggregation-helper.d.ts +6 -0
  191. package/build/if-run/util/aggregation-helper.js +52 -0
  192. package/build/if-run/util/args.d.ts +9 -0
  193. package/build/if-run/util/args.js +61 -0
  194. package/build/if-run/util/helpers.d.ts +8 -0
  195. package/build/if-run/util/helpers.js +37 -0
  196. package/build/if-run/util/log-memoize.d.ts +3 -0
  197. package/build/if-run/util/log-memoize.js +19 -0
  198. package/build/if-run/util/os-checker.d.ts +7 -0
  199. package/build/if-run/util/os-checker.js +97 -0
  200. package/build/if-run/util/plugin-storage.d.ts +14 -0
  201. package/build/if-run/util/plugin-storage.js +34 -0
  202. package/coverage/clover.xml +2045 -0
  203. package/coverage/coverage-final.json +55 -0
  204. package/coverage/lcov-report/base.css +224 -0
  205. package/coverage/lcov-report/block-navigation.js +87 -0
  206. package/coverage/lcov-report/builtins/coefficient/index.html +116 -0
  207. package/coverage/lcov-report/builtins/coefficient/index.ts.html +298 -0
  208. package/coverage/lcov-report/builtins/csv-lookup/index.html +116 -0
  209. package/coverage/lcov-report/builtins/csv-lookup/index.ts.html +826 -0
  210. package/coverage/lcov-report/builtins/divide/index.html +116 -0
  211. package/coverage/lcov-report/builtins/divide/index.ts.html +358 -0
  212. package/coverage/lcov-report/builtins/exponent/index.html +116 -0
  213. package/coverage/lcov-report/builtins/exponent/index.ts.html +361 -0
  214. package/coverage/lcov-report/builtins/export-csv-raw.ts.html +553 -0
  215. package/coverage/lcov-report/builtins/export-csv.ts.html +436 -0
  216. package/coverage/lcov-report/builtins/export-log.ts.html +148 -0
  217. package/coverage/lcov-report/builtins/export-yaml.ts.html +193 -0
  218. package/coverage/lcov-report/builtins/group-by.ts.html +370 -0
  219. package/coverage/lcov-report/builtins/index.html +206 -0
  220. package/coverage/lcov-report/builtins/index.ts.html +130 -0
  221. package/coverage/lcov-report/builtins/interpolation/index.html +116 -0
  222. package/coverage/lcov-report/builtins/interpolation/index.ts.html +676 -0
  223. package/coverage/lcov-report/builtins/interpolation/types.ts.html +100 -0
  224. package/coverage/lcov-report/builtins/mock-observations/helpers/common-generator.ts.html +184 -0
  225. package/coverage/lcov-report/builtins/mock-observations/helpers/index.html +131 -0
  226. package/coverage/lcov-report/builtins/mock-observations/helpers/rand-int-generator.ts.html +289 -0
  227. package/coverage/lcov-report/builtins/mock-observations/index.html +116 -0
  228. package/coverage/lcov-report/builtins/mock-observations/index.ts.html +619 -0
  229. package/coverage/lcov-report/builtins/multiply/index.html +116 -0
  230. package/coverage/lcov-report/builtins/multiply/index.ts.html +343 -0
  231. package/coverage/lcov-report/builtins/regex/index.html +116 -0
  232. package/coverage/lcov-report/builtins/regex/index.ts.html +373 -0
  233. package/coverage/lcov-report/builtins/sci/config.ts.html +205 -0
  234. package/coverage/lcov-report/builtins/sci/index.html +116 -0
  235. package/coverage/lcov-report/builtins/sci/index.ts.html +325 -0
  236. package/coverage/lcov-report/builtins/sci-embodied/index.html +116 -0
  237. package/coverage/lcov-report/builtins/sci-embodied/index.ts.html +478 -0
  238. package/coverage/lcov-report/builtins/shell/index.html +116 -0
  239. package/coverage/lcov-report/builtins/shell/index.ts.html +280 -0
  240. package/coverage/lcov-report/builtins/subtract/index.html +116 -0
  241. package/coverage/lcov-report/builtins/subtract/index.ts.html +379 -0
  242. package/coverage/lcov-report/builtins/sum/index.html +116 -0
  243. package/coverage/lcov-report/builtins/sum/index.ts.html +334 -0
  244. package/coverage/lcov-report/builtins/time-sync.ts.html +1462 -0
  245. package/coverage/lcov-report/common/config/index.html +131 -0
  246. package/coverage/lcov-report/common/config/index.ts.html +88 -0
  247. package/coverage/lcov-report/common/config/strings.ts.html +121 -0
  248. package/coverage/lcov-report/common/lib/index.html +116 -0
  249. package/coverage/lcov-report/common/lib/load.ts.html +139 -0
  250. package/coverage/lcov-report/common/util/debug-logger.ts.html +511 -0
  251. package/coverage/lcov-report/common/util/fs.ts.html +289 -0
  252. package/coverage/lcov-report/common/util/helpers.ts.html +280 -0
  253. package/coverage/lcov-report/common/util/index.html +191 -0
  254. package/coverage/lcov-report/common/util/logger.ts.html +151 -0
  255. package/coverage/lcov-report/common/util/validations.ts.html +613 -0
  256. package/coverage/lcov-report/common/util/yaml.ts.html +193 -0
  257. package/coverage/lcov-report/config/config.ts.html +463 -0
  258. package/coverage/lcov-report/config/index.html +161 -0
  259. package/coverage/lcov-report/config/index.ts.html +94 -0
  260. package/coverage/lcov-report/config/params.ts.html +697 -0
  261. package/coverage/lcov-report/config/strings.ts.html +490 -0
  262. package/coverage/lcov-report/favicon.png +0 -0
  263. package/coverage/lcov-report/if-check/config/config.ts.html +184 -0
  264. package/coverage/lcov-report/if-check/config/index.html +146 -0
  265. package/coverage/lcov-report/if-check/config/index.ts.html +91 -0
  266. package/coverage/lcov-report/if-check/config/strings.ts.html +142 -0
  267. package/coverage/lcov-report/if-check/util/args.ts.html +304 -0
  268. package/coverage/lcov-report/if-check/util/helpers.ts.html +136 -0
  269. package/coverage/lcov-report/if-check/util/index.html +146 -0
  270. package/coverage/lcov-report/if-check/util/npm.ts.html +232 -0
  271. package/coverage/lcov-report/if-csv/util/helpers.ts.html +346 -0
  272. package/coverage/lcov-report/if-csv/util/index.html +116 -0
  273. package/coverage/lcov-report/if-diff/config/config.ts.html +184 -0
  274. package/coverage/lcov-report/if-diff/config/index.html +146 -0
  275. package/coverage/lcov-report/if-diff/config/index.ts.html +91 -0
  276. package/coverage/lcov-report/if-diff/config/strings.ts.html +100 -0
  277. package/coverage/lcov-report/if-diff/lib/compare.ts.html +286 -0
  278. package/coverage/lcov-report/if-diff/lib/index.html +131 -0
  279. package/coverage/lcov-report/if-diff/lib/load.ts.html +199 -0
  280. package/coverage/lcov-report/if-diff/util/args.ts.html +268 -0
  281. package/coverage/lcov-report/if-diff/util/helpers.ts.html +337 -0
  282. package/coverage/lcov-report/if-diff/util/index.html +131 -0
  283. package/coverage/lcov-report/if-env/config/config.ts.html +211 -0
  284. package/coverage/lcov-report/if-env/config/index.html +146 -0
  285. package/coverage/lcov-report/if-env/config/index.ts.html +91 -0
  286. package/coverage/lcov-report/if-env/config/strings.ts.html +109 -0
  287. package/coverage/lcov-report/if-env/util/args.ts.html +250 -0
  288. package/coverage/lcov-report/if-env/util/index.html +131 -0
  289. package/coverage/lcov-report/if-env/util/npm.ts.html +526 -0
  290. package/coverage/lcov-report/if-merge/util/args.ts.html +295 -0
  291. package/coverage/lcov-report/if-merge/util/helpers.ts.html +301 -0
  292. package/coverage/lcov-report/if-merge/util/index.html +131 -0
  293. package/coverage/lcov-report/if-run/builtins/coefficient/index.html +116 -0
  294. package/coverage/lcov-report/if-run/builtins/coefficient/index.ts.html +382 -0
  295. package/coverage/lcov-report/if-run/builtins/copy-param/index.html +116 -0
  296. package/coverage/lcov-report/if-run/builtins/copy-param/index.ts.html +415 -0
  297. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.html +116 -0
  298. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.ts.html +868 -0
  299. package/coverage/lcov-report/if-run/builtins/divide/index.html +116 -0
  300. package/coverage/lcov-report/if-run/builtins/divide/index.ts.html +469 -0
  301. package/coverage/lcov-report/if-run/builtins/exponent/index.html +116 -0
  302. package/coverage/lcov-report/if-run/builtins/exponent/index.ts.html +394 -0
  303. package/coverage/lcov-report/if-run/builtins/export-csv-raw.ts.html +553 -0
  304. package/coverage/lcov-report/if-run/builtins/export-csv.ts.html +436 -0
  305. package/coverage/lcov-report/if-run/builtins/export-log.ts.html +148 -0
  306. package/coverage/lcov-report/if-run/builtins/export-yaml.ts.html +193 -0
  307. package/coverage/lcov-report/if-run/builtins/group-by.ts.html +370 -0
  308. package/coverage/lcov-report/if-run/builtins/index.html +146 -0
  309. package/coverage/lcov-report/if-run/builtins/index.ts.html +133 -0
  310. package/coverage/lcov-report/if-run/builtins/interpolation/index.html +116 -0
  311. package/coverage/lcov-report/if-run/builtins/interpolation/index.ts.html +709 -0
  312. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/common-generator.ts.html +184 -0
  313. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/index.html +131 -0
  314. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/rand-int-generator.ts.html +289 -0
  315. package/coverage/lcov-report/if-run/builtins/mock-observations/index.html +116 -0
  316. package/coverage/lcov-report/if-run/builtins/mock-observations/index.ts.html +709 -0
  317. package/coverage/lcov-report/if-run/builtins/multiply/index.html +116 -0
  318. package/coverage/lcov-report/if-run/builtins/multiply/index.ts.html +406 -0
  319. package/coverage/lcov-report/if-run/builtins/regex/index.html +116 -0
  320. package/coverage/lcov-report/if-run/builtins/regex/index.ts.html +433 -0
  321. package/coverage/lcov-report/if-run/builtins/sci/index.html +116 -0
  322. package/coverage/lcov-report/if-run/builtins/sci/index.ts.html +502 -0
  323. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.html +116 -0
  324. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.ts.html +577 -0
  325. package/coverage/lcov-report/if-run/builtins/shell/index.html +116 -0
  326. package/coverage/lcov-report/if-run/builtins/shell/index.ts.html +343 -0
  327. package/coverage/lcov-report/if-run/builtins/subtract/index.html +116 -0
  328. package/coverage/lcov-report/if-run/builtins/subtract/index.ts.html +418 -0
  329. package/coverage/lcov-report/if-run/builtins/sum/index.html +116 -0
  330. package/coverage/lcov-report/if-run/builtins/sum/index.ts.html +400 -0
  331. package/coverage/lcov-report/if-run/builtins/time-converter/config.ts.html +205 -0
  332. package/coverage/lcov-report/if-run/builtins/time-converter/index.html +131 -0
  333. package/coverage/lcov-report/if-run/builtins/time-converter/index.ts.html +412 -0
  334. package/coverage/lcov-report/if-run/builtins/time-sync/index.html +116 -0
  335. package/coverage/lcov-report/if-run/builtins/time-sync/index.ts.html +1651 -0
  336. package/coverage/lcov-report/if-run/builtins/time-sync.ts.html +1462 -0
  337. package/coverage/lcov-report/if-run/config/config.ts.html +271 -0
  338. package/coverage/lcov-report/if-run/config/index.html +161 -0
  339. package/coverage/lcov-report/if-run/config/index.ts.html +94 -0
  340. package/coverage/lcov-report/if-run/config/params.ts.html +679 -0
  341. package/coverage/lcov-report/if-run/config/strings.ts.html +460 -0
  342. package/coverage/lcov-report/if-run/lib/aggregate.ts.html +580 -0
  343. package/coverage/lcov-report/if-run/lib/compute.ts.html +709 -0
  344. package/coverage/lcov-report/if-run/lib/environment.ts.html +373 -0
  345. package/coverage/lcov-report/if-run/lib/exhaust.ts.html +193 -0
  346. package/coverage/lcov-report/if-run/lib/explain.ts.html +217 -0
  347. package/coverage/lcov-report/if-run/lib/index.html +206 -0
  348. package/coverage/lcov-report/if-run/lib/initialize.ts.html +475 -0
  349. package/coverage/lcov-report/if-run/lib/parameterize.ts.html +322 -0
  350. package/coverage/lcov-report/if-run/lib/regroup.ts.html +325 -0
  351. package/coverage/lcov-report/if-run/lib/time-sync.ts.html +1510 -0
  352. package/coverage/lcov-report/if-run/types/aggregation.ts.html +94 -0
  353. package/coverage/lcov-report/if-run/types/index.html +146 -0
  354. package/coverage/lcov-report/if-run/types/interface.ts.html +112 -0
  355. package/coverage/lcov-report/if-run/types/parameters.ts.html +106 -0
  356. package/coverage/lcov-report/if-run/util/aggregation-helper.ts.html +280 -0
  357. package/coverage/lcov-report/if-run/util/args.ts.html +313 -0
  358. package/coverage/lcov-report/if-run/util/helpers.ts.html +304 -0
  359. package/coverage/lcov-report/if-run/util/index.html +191 -0
  360. package/coverage/lcov-report/if-run/util/json.ts.html +115 -0
  361. package/coverage/lcov-report/if-run/util/log-memoize.ts.html +145 -0
  362. package/coverage/lcov-report/if-run/util/os-checker.ts.html +421 -0
  363. package/coverage/lcov-report/if-run/util/plugin-storage.ts.html +202 -0
  364. package/coverage/lcov-report/index.html +521 -0
  365. package/coverage/lcov-report/lib/aggregate.ts.html +358 -0
  366. package/coverage/lcov-report/lib/compare.ts.html +286 -0
  367. package/coverage/lcov-report/lib/compute.ts.html +436 -0
  368. package/coverage/lcov-report/lib/environment.ts.html +376 -0
  369. package/coverage/lcov-report/lib/exhaust.ts.html +289 -0
  370. package/coverage/lcov-report/lib/index.html +221 -0
  371. package/coverage/lcov-report/lib/initialize.ts.html +430 -0
  372. package/coverage/lcov-report/lib/load.ts.html +268 -0
  373. package/coverage/lcov-report/lib/parameterize.ts.html +316 -0
  374. package/coverage/lcov-report/prettify.css +1 -0
  375. package/coverage/lcov-report/prettify.js +2 -0
  376. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  377. package/coverage/lcov-report/sorter.js +196 -0
  378. package/coverage/lcov-report/types/aggregation.ts.html +94 -0
  379. package/coverage/lcov-report/types/index.html +146 -0
  380. package/coverage/lcov-report/types/interface.ts.html +112 -0
  381. package/coverage/lcov-report/types/parameters.ts.html +106 -0
  382. package/coverage/lcov-report/util/aggregation-helper.ts.html +289 -0
  383. package/coverage/lcov-report/util/args.ts.html +649 -0
  384. package/coverage/lcov-report/util/debug-logger.ts.html +481 -0
  385. package/coverage/lcov-report/util/errors.ts.html +232 -0
  386. package/coverage/lcov-report/util/fs.ts.html +124 -0
  387. package/coverage/lcov-report/util/helpers.ts.html +895 -0
  388. package/coverage/lcov-report/util/index.html +296 -0
  389. package/coverage/lcov-report/util/json.ts.html +115 -0
  390. package/coverage/lcov-report/util/log-memoize.ts.html +145 -0
  391. package/coverage/lcov-report/util/logger.ts.html +151 -0
  392. package/coverage/lcov-report/util/npm.ts.html +499 -0
  393. package/coverage/lcov-report/util/os-checker.ts.html +421 -0
  394. package/coverage/lcov-report/util/plugin-storage.ts.html +202 -0
  395. package/coverage/lcov-report/util/validations.ts.html +544 -0
  396. package/coverage/lcov-report/util/yaml.ts.html +193 -0
  397. package/coverage/lcov.info +3392 -0
  398. package/manifests/outputs/features/regroup/test.yml +92 -0
  399. package/package.json +9 -8
@@ -0,0 +1,465 @@
1
+ import { ZodSchema, z } from 'zod';
2
+ /**
3
+ * At least one property defined handler.
4
+ */
5
+ export declare const atLeastOneDefined: (obj: Record<string | number | symbol, unknown>) => boolean;
6
+ /**
7
+ * All properties are defined handler.
8
+ */
9
+ export declare const allDefined: (obj: Record<string | number | symbol, unknown>) => boolean;
10
+ /**
11
+ * Validation schema for manifests.
12
+ */
13
+ export declare const manifestSchema: z.ZodObject<{
14
+ name: z.ZodString;
15
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16
+ tags: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17
+ kind: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
+ complexity: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
+ category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ kind?: string | null | undefined;
22
+ complexity?: string | null | undefined;
23
+ category?: string | null | undefined;
24
+ }, {
25
+ kind?: string | null | undefined;
26
+ complexity?: string | null | undefined;
27
+ category?: string | null | undefined;
28
+ }>>>;
29
+ explainer: z.ZodOptional<z.ZodBoolean>;
30
+ explain: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
31
+ aggregation: z.ZodNullable<z.ZodOptional<z.ZodObject<{
32
+ metrics: z.ZodArray<z.ZodString, "many">;
33
+ type: z.ZodEnum<["horizontal", "time", "vertical", "component", "both"]>;
34
+ 'skip-components': z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "horizontal" | "time" | "vertical" | "component" | "both";
37
+ metrics: string[];
38
+ 'skip-components'?: string[] | undefined;
39
+ }, {
40
+ type: "horizontal" | "time" | "vertical" | "component" | "both";
41
+ metrics: string[];
42
+ 'skip-components'?: string[] | undefined;
43
+ }>>>;
44
+ initialize: z.ZodObject<{
45
+ plugins: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
46
+ path: z.ZodString;
47
+ method: z.ZodString;
48
+ mapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
49
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
50
+ 'parameter-metadata': z.ZodOptional<z.ZodObject<{
51
+ inputs: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
52
+ unit: z.ZodString;
53
+ description: z.ZodString;
54
+ 'aggregation-method': z.ZodObject<{
55
+ time: z.ZodEnum<["sum", "avg", "none", "copy"]>;
56
+ component: z.ZodEnum<["sum", "avg", "none", "copy"]>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ time: "sum" | "avg" | "none" | "copy";
59
+ component: "sum" | "avg" | "none" | "copy";
60
+ }, {
61
+ time: "sum" | "avg" | "none" | "copy";
62
+ component: "sum" | "avg" | "none" | "copy";
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ unit: string;
66
+ description: string;
67
+ 'aggregation-method': {
68
+ time: "sum" | "avg" | "none" | "copy";
69
+ component: "sum" | "avg" | "none" | "copy";
70
+ };
71
+ }, {
72
+ unit: string;
73
+ description: string;
74
+ 'aggregation-method': {
75
+ time: "sum" | "avg" | "none" | "copy";
76
+ component: "sum" | "avg" | "none" | "copy";
77
+ };
78
+ }>>>>;
79
+ outputs: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
80
+ unit: z.ZodString;
81
+ description: z.ZodString;
82
+ 'aggregation-method': z.ZodObject<{
83
+ time: z.ZodEnum<["sum", "avg", "none", "copy"]>;
84
+ component: z.ZodEnum<["sum", "avg", "none", "copy"]>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ time: "sum" | "avg" | "none" | "copy";
87
+ component: "sum" | "avg" | "none" | "copy";
88
+ }, {
89
+ time: "sum" | "avg" | "none" | "copy";
90
+ component: "sum" | "avg" | "none" | "copy";
91
+ }>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ unit: string;
94
+ description: string;
95
+ 'aggregation-method': {
96
+ time: "sum" | "avg" | "none" | "copy";
97
+ component: "sum" | "avg" | "none" | "copy";
98
+ };
99
+ }, {
100
+ unit: string;
101
+ description: string;
102
+ 'aggregation-method': {
103
+ time: "sum" | "avg" | "none" | "copy";
104
+ component: "sum" | "avg" | "none" | "copy";
105
+ };
106
+ }>>>>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ inputs?: Record<string, {
109
+ unit: string;
110
+ description: string;
111
+ 'aggregation-method': {
112
+ time: "sum" | "avg" | "none" | "copy";
113
+ component: "sum" | "avg" | "none" | "copy";
114
+ };
115
+ }> | null | undefined;
116
+ outputs?: Record<string, {
117
+ unit: string;
118
+ description: string;
119
+ 'aggregation-method': {
120
+ time: "sum" | "avg" | "none" | "copy";
121
+ component: "sum" | "avg" | "none" | "copy";
122
+ };
123
+ }> | null | undefined;
124
+ }, {
125
+ inputs?: Record<string, {
126
+ unit: string;
127
+ description: string;
128
+ 'aggregation-method': {
129
+ time: "sum" | "avg" | "none" | "copy";
130
+ component: "sum" | "avg" | "none" | "copy";
131
+ };
132
+ }> | null | undefined;
133
+ outputs?: Record<string, {
134
+ unit: string;
135
+ description: string;
136
+ 'aggregation-method': {
137
+ time: "sum" | "avg" | "none" | "copy";
138
+ component: "sum" | "avg" | "none" | "copy";
139
+ };
140
+ }> | null | undefined;
141
+ }>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ path: string;
144
+ method: string;
145
+ mapping?: Record<string, string> | undefined;
146
+ config?: Record<string, any> | undefined;
147
+ 'parameter-metadata'?: {
148
+ inputs?: Record<string, {
149
+ unit: string;
150
+ description: string;
151
+ 'aggregation-method': {
152
+ time: "sum" | "avg" | "none" | "copy";
153
+ component: "sum" | "avg" | "none" | "copy";
154
+ };
155
+ }> | null | undefined;
156
+ outputs?: Record<string, {
157
+ unit: string;
158
+ description: string;
159
+ 'aggregation-method': {
160
+ time: "sum" | "avg" | "none" | "copy";
161
+ component: "sum" | "avg" | "none" | "copy";
162
+ };
163
+ }> | null | undefined;
164
+ } | undefined;
165
+ }, {
166
+ path: string;
167
+ method: string;
168
+ mapping?: Record<string, string> | undefined;
169
+ config?: Record<string, any> | undefined;
170
+ 'parameter-metadata'?: {
171
+ inputs?: Record<string, {
172
+ unit: string;
173
+ description: string;
174
+ 'aggregation-method': {
175
+ time: "sum" | "avg" | "none" | "copy";
176
+ component: "sum" | "avg" | "none" | "copy";
177
+ };
178
+ }> | null | undefined;
179
+ outputs?: Record<string, {
180
+ unit: string;
181
+ description: string;
182
+ 'aggregation-method': {
183
+ time: "sum" | "avg" | "none" | "copy";
184
+ component: "sum" | "avg" | "none" | "copy";
185
+ };
186
+ }> | null | undefined;
187
+ } | undefined;
188
+ }>>>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ plugins: Record<string, {
191
+ path: string;
192
+ method: string;
193
+ mapping?: Record<string, string> | undefined;
194
+ config?: Record<string, any> | undefined;
195
+ 'parameter-metadata'?: {
196
+ inputs?: Record<string, {
197
+ unit: string;
198
+ description: string;
199
+ 'aggregation-method': {
200
+ time: "sum" | "avg" | "none" | "copy";
201
+ component: "sum" | "avg" | "none" | "copy";
202
+ };
203
+ }> | null | undefined;
204
+ outputs?: Record<string, {
205
+ unit: string;
206
+ description: string;
207
+ 'aggregation-method': {
208
+ time: "sum" | "avg" | "none" | "copy";
209
+ component: "sum" | "avg" | "none" | "copy";
210
+ };
211
+ }> | null | undefined;
212
+ } | undefined;
213
+ } | undefined>;
214
+ }, {
215
+ plugins: Record<string, {
216
+ path: string;
217
+ method: string;
218
+ mapping?: Record<string, string> | undefined;
219
+ config?: Record<string, any> | undefined;
220
+ 'parameter-metadata'?: {
221
+ inputs?: Record<string, {
222
+ unit: string;
223
+ description: string;
224
+ 'aggregation-method': {
225
+ time: "sum" | "avg" | "none" | "copy";
226
+ component: "sum" | "avg" | "none" | "copy";
227
+ };
228
+ }> | null | undefined;
229
+ outputs?: Record<string, {
230
+ unit: string;
231
+ description: string;
232
+ 'aggregation-method': {
233
+ time: "sum" | "avg" | "none" | "copy";
234
+ component: "sum" | "avg" | "none" | "copy";
235
+ };
236
+ }> | null | undefined;
237
+ } | undefined;
238
+ } | undefined>;
239
+ }>;
240
+ execution: z.ZodOptional<z.ZodObject<{
241
+ command: z.ZodOptional<z.ZodString>;
242
+ environment: z.ZodOptional<z.ZodObject<{
243
+ 'if-version': z.ZodString;
244
+ os: z.ZodString;
245
+ 'os-version': z.ZodString;
246
+ 'node-version': z.ZodString;
247
+ 'date-time': z.ZodString;
248
+ dependencies: z.ZodArray<z.ZodString, "many">;
249
+ }, "strip", z.ZodTypeAny, {
250
+ 'if-version': string;
251
+ os: string;
252
+ 'os-version': string;
253
+ 'node-version': string;
254
+ 'date-time': string;
255
+ dependencies: string[];
256
+ }, {
257
+ 'if-version': string;
258
+ os: string;
259
+ 'os-version': string;
260
+ 'node-version': string;
261
+ 'date-time': string;
262
+ dependencies: string[];
263
+ }>>;
264
+ status: z.ZodString;
265
+ error: z.ZodOptional<z.ZodString>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ status: string;
268
+ command?: string | undefined;
269
+ environment?: {
270
+ 'if-version': string;
271
+ os: string;
272
+ 'os-version': string;
273
+ 'node-version': string;
274
+ 'date-time': string;
275
+ dependencies: string[];
276
+ } | undefined;
277
+ error?: string | undefined;
278
+ }, {
279
+ status: string;
280
+ command?: string | undefined;
281
+ environment?: {
282
+ 'if-version': string;
283
+ os: string;
284
+ 'os-version': string;
285
+ 'node-version': string;
286
+ 'date-time': string;
287
+ dependencies: string[];
288
+ } | undefined;
289
+ error?: string | undefined;
290
+ }>>;
291
+ tree: z.ZodRecord<z.ZodString, z.ZodAny>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ name: string;
294
+ initialize: {
295
+ plugins: Record<string, {
296
+ path: string;
297
+ method: string;
298
+ mapping?: Record<string, string> | undefined;
299
+ config?: Record<string, any> | undefined;
300
+ 'parameter-metadata'?: {
301
+ inputs?: Record<string, {
302
+ unit: string;
303
+ description: string;
304
+ 'aggregation-method': {
305
+ time: "sum" | "avg" | "none" | "copy";
306
+ component: "sum" | "avg" | "none" | "copy";
307
+ };
308
+ }> | null | undefined;
309
+ outputs?: Record<string, {
310
+ unit: string;
311
+ description: string;
312
+ 'aggregation-method': {
313
+ time: "sum" | "avg" | "none" | "copy";
314
+ component: "sum" | "avg" | "none" | "copy";
315
+ };
316
+ }> | null | undefined;
317
+ } | undefined;
318
+ } | undefined>;
319
+ };
320
+ tree: Record<string, any>;
321
+ description?: string | null | undefined;
322
+ tags?: {
323
+ kind?: string | null | undefined;
324
+ complexity?: string | null | undefined;
325
+ category?: string | null | undefined;
326
+ } | null | undefined;
327
+ explainer?: boolean | undefined;
328
+ explain?: Record<string, any> | undefined;
329
+ aggregation?: {
330
+ type: "horizontal" | "time" | "vertical" | "component" | "both";
331
+ metrics: string[];
332
+ 'skip-components'?: string[] | undefined;
333
+ } | null | undefined;
334
+ execution?: {
335
+ status: string;
336
+ command?: string | undefined;
337
+ environment?: {
338
+ 'if-version': string;
339
+ os: string;
340
+ 'os-version': string;
341
+ 'node-version': string;
342
+ 'date-time': string;
343
+ dependencies: string[];
344
+ } | undefined;
345
+ error?: string | undefined;
346
+ } | undefined;
347
+ }, {
348
+ name: string;
349
+ initialize: {
350
+ plugins: Record<string, {
351
+ path: string;
352
+ method: string;
353
+ mapping?: Record<string, string> | undefined;
354
+ config?: Record<string, any> | undefined;
355
+ 'parameter-metadata'?: {
356
+ inputs?: Record<string, {
357
+ unit: string;
358
+ description: string;
359
+ 'aggregation-method': {
360
+ time: "sum" | "avg" | "none" | "copy";
361
+ component: "sum" | "avg" | "none" | "copy";
362
+ };
363
+ }> | null | undefined;
364
+ outputs?: Record<string, {
365
+ unit: string;
366
+ description: string;
367
+ 'aggregation-method': {
368
+ time: "sum" | "avg" | "none" | "copy";
369
+ component: "sum" | "avg" | "none" | "copy";
370
+ };
371
+ }> | null | undefined;
372
+ } | undefined;
373
+ } | undefined>;
374
+ };
375
+ tree: Record<string, any>;
376
+ description?: string | null | undefined;
377
+ tags?: {
378
+ kind?: string | null | undefined;
379
+ complexity?: string | null | undefined;
380
+ category?: string | null | undefined;
381
+ } | null | undefined;
382
+ explainer?: boolean | undefined;
383
+ explain?: Record<string, any> | undefined;
384
+ aggregation?: {
385
+ type: "horizontal" | "time" | "vertical" | "component" | "both";
386
+ metrics: string[];
387
+ 'skip-components'?: string[] | undefined;
388
+ } | null | undefined;
389
+ execution?: {
390
+ status: string;
391
+ command?: string | undefined;
392
+ environment?: {
393
+ 'if-version': string;
394
+ os: string;
395
+ 'os-version': string;
396
+ 'node-version': string;
397
+ 'date-time': string;
398
+ dependencies: string[];
399
+ } | undefined;
400
+ error?: string | undefined;
401
+ } | undefined;
402
+ }>;
403
+ /**
404
+ * Validates given `manifest` object to match pattern.
405
+ */
406
+ export declare const validateManifest: (manifest: any) => {
407
+ name: string;
408
+ initialize: {
409
+ plugins: Record<string, {
410
+ path: string;
411
+ method: string;
412
+ mapping?: Record<string, string> | undefined;
413
+ config?: Record<string, any> | undefined;
414
+ 'parameter-metadata'?: {
415
+ inputs?: Record<string, {
416
+ unit: string;
417
+ description: string;
418
+ 'aggregation-method': {
419
+ time: "sum" | "avg" | "none" | "copy";
420
+ component: "sum" | "avg" | "none" | "copy";
421
+ };
422
+ }> | null | undefined;
423
+ outputs?: Record<string, {
424
+ unit: string;
425
+ description: string;
426
+ 'aggregation-method': {
427
+ time: "sum" | "avg" | "none" | "copy";
428
+ component: "sum" | "avg" | "none" | "copy";
429
+ };
430
+ }> | null | undefined;
431
+ } | undefined;
432
+ } | undefined>;
433
+ };
434
+ tree: Record<string, any>;
435
+ description?: string | null | undefined;
436
+ tags?: {
437
+ kind?: string | null | undefined;
438
+ complexity?: string | null | undefined;
439
+ category?: string | null | undefined;
440
+ } | null | undefined;
441
+ explainer?: boolean | undefined;
442
+ explain?: Record<string, any> | undefined;
443
+ aggregation?: {
444
+ type: "horizontal" | "time" | "vertical" | "component" | "both";
445
+ metrics: string[];
446
+ 'skip-components'?: string[] | undefined;
447
+ } | null | undefined;
448
+ execution?: {
449
+ status: string;
450
+ command?: string | undefined;
451
+ environment?: {
452
+ 'if-version': string;
453
+ os: string;
454
+ 'os-version': string;
455
+ 'node-version': string;
456
+ 'date-time': string;
457
+ dependencies: string[];
458
+ } | undefined;
459
+ error?: string | undefined;
460
+ } | undefined;
461
+ };
462
+ /**
463
+ * Validates given `object` with given `schema`.
464
+ */
465
+ export declare const validate: <T>(schema: ZodSchema<T, z.ZodTypeDef, T>, object: any, index?: number, errorConstructor?: ErrorConstructor) => T;
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validate = exports.validateManifest = exports.manifestSchema = exports.allDefined = exports.atLeastOneDefined = void 0;
4
+ const zod_1 = require("zod");
5
+ const consts_1 = require("@grnsft/if-core/consts");
6
+ const utils_1 = require("@grnsft/if-core/utils");
7
+ const config_1 = require("../../if-run/config");
8
+ const aggregation_1 = require("../../if-run/types/aggregation");
9
+ const { ManifestValidationError, InputValidationError } = utils_1.ERRORS;
10
+ const { VALIDATING_MANIFEST } = config_1.STRINGS;
11
+ /**
12
+ * At least one property defined handler.
13
+ */
14
+ const atLeastOneDefined = (obj) => Object.values(obj).some(v => v !== undefined);
15
+ exports.atLeastOneDefined = atLeastOneDefined;
16
+ /**
17
+ * All properties are defined handler.
18
+ */
19
+ const allDefined = (obj) => Object.values(obj).every(v => v !== undefined);
20
+ exports.allDefined = allDefined;
21
+ /**
22
+ * Reusabe aggregation method schema for parameter metadata.
23
+ */
24
+ const aggregationMethodSchema = zod_1.z.object({
25
+ time: zod_1.z.enum(consts_1.AGGREGATION_METHODS),
26
+ component: zod_1.z.enum(consts_1.AGGREGATION_METHODS),
27
+ });
28
+ /**
29
+ * Reusable metadata schema.
30
+ */
31
+ const metadataSchema = zod_1.z
32
+ .record(zod_1.z.string(), zod_1.z.object({
33
+ unit: zod_1.z.string(),
34
+ description: zod_1.z.string(),
35
+ 'aggregation-method': aggregationMethodSchema,
36
+ }))
37
+ .optional()
38
+ .nullable();
39
+ /**
40
+ * Reusable parameter metadata schema.
41
+ */
42
+ const parameterMetadataSchema = zod_1.z
43
+ .object({
44
+ inputs: metadataSchema,
45
+ outputs: metadataSchema,
46
+ })
47
+ .optional();
48
+ /**
49
+ * Validation schema for manifests.
50
+ */
51
+ exports.manifestSchema = zod_1.z.object({
52
+ name: zod_1.z.string(),
53
+ description: zod_1.z.string().optional().nullable(),
54
+ tags: zod_1.z
55
+ .object({
56
+ kind: zod_1.z.string().optional().nullable(),
57
+ complexity: zod_1.z.string().optional().nullable(),
58
+ category: zod_1.z.string().optional().nullable(),
59
+ })
60
+ .optional()
61
+ .nullable(),
62
+ explainer: zod_1.z.boolean().optional(),
63
+ explain: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
64
+ aggregation: zod_1.z
65
+ .object({
66
+ metrics: zod_1.z.array(zod_1.z.string()),
67
+ type: zod_1.z.enum(aggregation_1.AGGREGATION_TYPES),
68
+ 'skip-components': zod_1.z.array(zod_1.z.string()).optional(),
69
+ })
70
+ .optional()
71
+ .nullable(),
72
+ initialize: zod_1.z.object({
73
+ plugins: zod_1.z.record(zod_1.z.string(), zod_1.z
74
+ .object({
75
+ path: zod_1.z.string(),
76
+ method: zod_1.z.string(),
77
+ mapping: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
78
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
79
+ 'parameter-metadata': parameterMetadataSchema,
80
+ })
81
+ .optional()),
82
+ }),
83
+ execution: zod_1.z
84
+ .object({
85
+ command: zod_1.z.string().optional(),
86
+ environment: zod_1.z
87
+ .object({
88
+ 'if-version': zod_1.z.string(),
89
+ os: zod_1.z.string(),
90
+ 'os-version': zod_1.z.string(),
91
+ 'node-version': zod_1.z.string(),
92
+ 'date-time': zod_1.z.string(),
93
+ dependencies: zod_1.z.array(zod_1.z.string()),
94
+ })
95
+ .optional(),
96
+ status: zod_1.z.string(),
97
+ error: zod_1.z.string().optional(),
98
+ })
99
+ .optional(),
100
+ tree: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
101
+ });
102
+ /**
103
+ * Validates given `manifest` object to match pattern.
104
+ */
105
+ const validateManifest = (manifest) => {
106
+ console.debug(VALIDATING_MANIFEST);
107
+ return (0, exports.validate)(exports.manifestSchema, manifest, undefined, ManifestValidationError);
108
+ };
109
+ exports.validateManifest = validateManifest;
110
+ /**
111
+ * Validates given `object` with given `schema`.
112
+ */
113
+ const validate = (schema, object, index, errorConstructor = InputValidationError) => {
114
+ const validationResult = schema.safeParse(object);
115
+ if (!validationResult.success) {
116
+ throw new errorConstructor(prettifyErrorMessage(validationResult.error.message, index));
117
+ }
118
+ return validationResult.data;
119
+ };
120
+ exports.validate = validate;
121
+ /**
122
+ * Error message formatter for zod issues.
123
+ */
124
+ const prettifyErrorMessage = (issues, index) => {
125
+ const issuesArray = JSON.parse(issues);
126
+ return issuesArray.map((issue) => {
127
+ const code = issue.code;
128
+ let { path, message } = issue;
129
+ const indexErrorMessage = index !== undefined ? ` at index ${index}` : '';
130
+ if (issue.code === zod_1.ZodIssueCode.invalid_union) {
131
+ message = issue.unionErrors[0].issues[0].message;
132
+ path = issue.unionErrors[0].issues[0].path;
133
+ }
134
+ const fullPath = flattenPath(path);
135
+ if (!fullPath) {
136
+ return message;
137
+ }
138
+ return `"${fullPath}" parameter is ${message.toLowerCase()}${indexErrorMessage}. Error code: ${code}.`;
139
+ });
140
+ };
141
+ /**
142
+ * Flattens an array representing a nested path into a string.
143
+ */
144
+ const flattenPath = (path) => {
145
+ const flattenPath = path.map(part => typeof part === 'number' ? `[${part}]` : part);
146
+ return flattenPath.join('.');
147
+ };
148
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tbW9uL3V0aWwvdmFsaWRhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXlEO0FBQ3pELG1EQUEyRDtBQUMzRCxpREFBNkM7QUFFN0MsZ0RBQTRDO0FBRTVDLGdFQUFpRTtBQUVqRSxNQUFNLEVBQUMsdUJBQXVCLEVBQUUsb0JBQW9CLEVBQUMsR0FBRyxjQUFNLENBQUM7QUFDL0QsTUFBTSxFQUFDLG1CQUFtQixFQUFDLEdBQUc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B6LnJlY29yZCh6LnN0cmluZygpLCB6LmFueSgpKS5vcHRpb25hbCgpLFxuICBhZ2dyZWdhdGlvbjogelxuICAgIC5vYmplY3Qoe1xuICAgICAgbWV0cmljczogei5hcnJheSh6LnN0cmluZygpKSxcbiAgICAgIHR5cGU6IHouZW51bShBR0dSRUdBVElPTl9UWVBFUyksXG4gICAgICAnc2tpcC1jb21wb25lbnRzJzogei5hcnJheSh6LnN0cmluZygpKS5vcHRpb25hbCgpLFxuICAgIH0pXG4gICAgLm9wdGlvbmFsKClcbiAgICAubnVsbGFibGUoKSxcbiAgaW5pdGlhbGl6ZTogei5vYmplY3Qoe1xuICAgIHBsdWdpbnM6IHoucmVjb3JkKFxuICAgICAgei5zdHJpbmcoKSxcbiAgICAgIHpcbiAgICAgICAgLm9iamVjdCh7XG4gICAgICAgICAgcGF0aDogei5zdHJpbmcoKSxcbiAgICAgICAgICBtZXRob2Q6IHouc3RyaW5nKCksXG4gICAgICAgICAgbWFwcGluZzogei5yZWNvcmQoei5zdHJpbmcoKSwgei5zdHJpbmcoKSkub3B0aW9uYWwoKSxcbiAgICAgICAgICBjb25maWc6IHoucmVjb3JkKHouc3RyaW5nKCksIHouYW55KCkpLm9wdGlvbmFsKCksXG4gICAgICAgICAgJ3BhcmFtZXRlci1tZXRhZGF0YSc6IHBhcmFtZXRlck1ldGFkYXRhU2NoZW1hLFxuICAgICAgICB9KVxuICAgICAgICAub3B0aW9uYWwoKVxuICAgICksXG4gIH0pLFxuICBleGVjdXRpb246IHpcbiAgICAub2JqZWN0KHtcbiAgICAgIGNvbW1hbmQ6IHouc3RyaW5nKCkub3B0aW9uYWwoKSxcbiAgICAgIGVudmlyb25tZW50OiB6XG4gICAgICAgIC5vYmplY3Qoe1xuICAgICAgICAgICdpZi12ZXJzaW9uJzogei5zdHJpbmcoKSxcbiAgICAgICAgICBvczogei5zdHJpbmcoKSxcbiAgICAgICAgICAnb3MtdmVyc2lvbic6IHouc3RyaW5nKCksXG4gICAgICAgIC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2U7XG4gICAgfVxuXG4gICAgcmV0dXJuIGBcIiR7ZnVsbFBhdGh9XCIgcGFyYW1ldGVyIGlzICR7bWVzc2FnZS50b0xvd2VyQ2FzZSgpfSR7aW5kZXhFcnJvck1lc3NhZ2V9LiBFcnJvciBjb2RlOiAke2NvZGV9LmA7XG4gIH0pO1xufTtcblxuLyoqXG4gKiBGbGF0dGVucyBhbiBhcnJheSByZXByZXNlbnRpbmcgYSBuZXN0ZWQgcGF0aCBpbnRvIGEgc3RyaW5nLlxuICovXG5jb25zdCBmbGF0dGVuUGF0aCA9IChwYXRoOiAoc3RyaW5nIHwgbnVtYmVyKVtdKTogc3RyaW5nID0+IHtcbiAgY29uc3QgZmxhdHRlblBhdGggPSBwYXRoLm1hcChwYXJ0ID0+XG4gICAgdHlwZW9mIHBhcnQgPT09ICdudW1iZXInID8gYFske3BhcnR9XWAgOiBwYXJ0XG4gICk7XG5cbiAgcmV0dXJuIGZsYXR0ZW5QYXRoLmpvaW4oJy4nKTtcbn07XG4iXX0=
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Reads and parses `yaml` file to object.
3
+ */
4
+ export declare const openYamlFileAsObject: <T>(filePath: string) => Promise<T>;
5
+ /**
6
+ * Saves given `yaml` dump as a file.
7
+ */
8
+ export declare const saveYamlFileAs: (object: any, pathToFile: string) => Promise<void>;
9
+ /**
10
+ * Checks if given `fileName` is yaml.
11
+ */
12
+ export declare const checkIfFileIsYaml: (fileName: string) => boolean;