windmill-cli 1.586.0 → 1.586.2

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 (475) hide show
  1. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.js +2 -2
  2. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.js +1 -1
  3. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.js +2 -2
  4. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.js +1 -1
  5. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.js +5 -4
  6. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.js +1 -1
  7. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.js +1 -1
  8. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.js +1 -1
  9. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.js +4 -3
  10. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.js +12 -36
  11. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.js +1 -2
  12. package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.js +1 -1
  13. package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
  14. package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
  15. package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  16. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.js +1 -1
  17. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.js +1 -1
  18. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.js +1 -1
  19. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.js +1 -1
  20. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.js +1 -1
  21. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.js +1 -1
  22. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.js +1 -1
  23. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.js +1 -1
  24. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.js +1 -1
  25. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.js +1 -1
  26. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.js +1 -1
  27. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.js +1 -1
  28. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.js +1 -1
  29. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +9 -0
  30. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/basename.js +5 -4
  31. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.js +1 -1
  32. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.js +2 -2
  33. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/dirname.js +5 -4
  34. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/extname.js +5 -4
  35. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.js +2 -2
  36. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.js +2 -2
  37. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.js +2 -2
  38. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.js +2 -2
  39. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.js +2 -2
  40. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join.js +7 -7
  41. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.js +2 -2
  42. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +57 -0
  43. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize.js +5 -4
  44. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.js +2 -2
  45. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.js +2 -2
  46. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.js +1 -1
  47. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/basename.js +4 -7
  48. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.js +1 -1
  49. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/dirname.js +4 -6
  50. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/extname.js +4 -8
  51. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.js +1 -1
  52. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.js +1 -1
  53. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.js +1 -1
  54. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.js +1 -1
  55. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join.js +8 -11
  56. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.js +1 -1
  57. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize.js +6 -7
  58. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.js +1 -1
  59. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.js +1 -1
  60. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.js +1 -1
  61. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.js +1 -1
  62. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.js +1 -1
  63. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.js +1 -1
  64. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.js +2 -2
  65. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.js +2 -2
  66. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.js +2 -2
  67. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.js +2 -2
  68. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +3 -0
  69. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.js +1 -1
  70. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/basename.js +4 -7
  71. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.js +1 -1
  72. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/dirname.js +6 -7
  73. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/extname.js +6 -7
  74. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.js +1 -1
  75. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.js +1 -1
  76. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.js +1 -1
  77. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.js +1 -1
  78. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join.js +7 -10
  79. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.js +1 -1
  80. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize.js +6 -7
  81. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.js +1 -1
  82. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.js +1 -1
  83. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.js +1 -1
  84. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.js +1 -1
  85. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.js +1 -1
  86. package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.js +1 -1
  87. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_chars.js +1 -1
  88. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_dumper_state.js +5 -14
  89. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_loader_state.js +150 -168
  90. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_schema.js +6 -11
  91. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/bool.js +1 -1
  92. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/float.js +1 -1
  93. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/int.js +1 -1
  94. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/map.js +1 -1
  95. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/merge.js +1 -1
  96. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/nil.js +1 -1
  97. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/omap.js +1 -1
  98. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/pairs.js +1 -1
  99. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/regexp.js +1 -1
  100. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/seq.js +1 -1
  101. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/set.js +1 -1
  102. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/str.js +1 -1
  103. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/timestamp.js +1 -1
  104. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/undefined.js +1 -1
  105. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type.js +1 -1
  106. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_utils.js +1 -1
  107. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/mod.js +1 -1
  108. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/parse.js +1 -1
  109. package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/stringify.js +1 -1
  110. package/esm/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.js +1522 -0
  111. package/esm/deps.js +6 -6
  112. package/esm/gen/services.gen.js +138 -0
  113. package/esm/src/commands/app/app_metadata.js +287 -0
  114. package/esm/src/commands/app/apps.js +65 -31
  115. package/esm/src/commands/app/bundle.js +249 -0
  116. package/esm/src/commands/app/dev.js +591 -0
  117. package/esm/src/commands/app/metadata.js +1 -0
  118. package/esm/src/commands/app/raw_apps.js +212 -0
  119. package/esm/src/commands/app/wmillTsDev.js +89 -0
  120. package/esm/src/commands/dependencies/dependencies.js +66 -0
  121. package/esm/src/commands/dev/dev.js +1 -1
  122. package/esm/src/commands/flow/flow.js +4 -5
  123. package/esm/src/commands/flow/flow_metadata.js +140 -0
  124. package/esm/src/commands/script/script.js +20 -37
  125. package/esm/src/commands/sync/pull.js +5 -3
  126. package/esm/src/commands/sync/sync.js +264 -76
  127. package/esm/src/commands/workspace/fork.js +6 -8
  128. package/esm/src/commands/workspace/workspace.js +7 -4
  129. package/esm/src/core/conf.js +5 -1
  130. package/esm/src/core/context.js +57 -47
  131. package/esm/src/main.js +2 -0
  132. package/esm/src/types.js +33 -16
  133. package/esm/src/utils/metadata.js +58 -178
  134. package/esm/src/utils/script_common.js +5 -5
  135. package/esm/src/utils/utils.js +21 -9
  136. package/package.json +4 -3
  137. package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts.map +1 -1
  138. package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.d.ts +1 -1
  139. package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.d.ts.map +1 -1
  140. package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts.map +1 -1
  141. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.d.ts.map +1 -1
  142. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.d.ts.map +1 -1
  143. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.d.ts.map +1 -1
  144. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.d.ts.map +1 -1
  145. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.d.ts.map +1 -1
  146. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.d.ts.map +1 -1
  147. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.d.ts.map +1 -1
  148. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.d.ts.map +1 -1
  149. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.d.ts.map +1 -1
  150. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.d.ts.map +1 -1
  151. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.d.ts.map +1 -1
  152. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.d.ts.map +1 -1
  153. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.d.ts.map +1 -1
  154. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.d.ts +1 -1
  155. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.d.ts.map +1 -1
  156. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.d.ts.map +1 -1
  157. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.d.ts.map +1 -1
  158. package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.d.ts.map +1 -1
  159. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.d.ts.map +1 -1
  160. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.d.ts.map +1 -1
  161. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.d.ts.map +1 -1
  162. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.d.ts.map +1 -1
  163. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.d.ts.map +1 -1
  164. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.d.ts.map +1 -1
  165. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.d.ts.map +1 -1
  166. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.d.ts.map +1 -1
  167. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.d.ts.map +1 -1
  168. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.d.ts.map +1 -1
  169. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.d.ts.map +1 -1
  170. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.d.ts.map +1 -1
  171. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.d.ts.map +1 -1
  172. package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
  173. package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
  174. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/basename.d.ts +4 -3
  175. package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
  176. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.d.ts.map +1 -1
  177. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.d.ts.map +1 -1
  178. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/dirname.d.ts +4 -3
  179. package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
  180. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/extname.d.ts +4 -3
  181. package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
  182. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.d.ts.map +1 -1
  183. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.d.ts.map +1 -1
  184. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.d.ts.map +1 -1
  185. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.d.ts.map +1 -1
  186. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.d.ts.map +1 -1
  187. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join.d.ts +4 -4
  188. package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
  189. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.d.ts.map +1 -1
  190. package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
  191. package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
  192. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize.d.ts +4 -3
  193. package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
  194. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.d.ts.map +1 -1
  195. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.d.ts.map +1 -1
  196. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.d.ts.map +1 -1
  197. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/basename.d.ts +4 -3
  198. package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
  199. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.d.ts.map +1 -1
  200. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/dirname.d.ts +4 -2
  201. package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
  202. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/extname.d.ts +4 -4
  203. package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
  204. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.d.ts.map +1 -1
  205. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.d.ts.map +1 -1
  206. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.d.ts.map +1 -1
  207. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.d.ts.map +1 -1
  208. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join.d.ts +6 -4
  209. package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
  210. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.d.ts.map +1 -1
  211. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize.d.ts +6 -3
  212. package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
  213. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.d.ts.map +1 -1
  214. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.d.ts.map +1 -1
  215. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.d.ts.map +1 -1
  216. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.d.ts.map +1 -1
  217. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.d.ts.map +1 -1
  218. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.d.ts.map +1 -1
  219. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.d.ts.map +1 -1
  220. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.d.ts.map +1 -1
  221. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.d.ts.map +1 -1
  222. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.d.ts.map +1 -1
  223. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/types.d.ts.map +1 -1
  224. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.d.ts.map +1 -1
  225. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/basename.d.ts +4 -3
  226. package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
  227. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.d.ts.map +1 -1
  228. package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
  229. package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
  230. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/extname.d.ts +6 -3
  231. package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
  232. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.d.ts.map +1 -1
  233. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.d.ts.map +1 -1
  234. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.d.ts.map +1 -1
  235. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.d.ts.map +1 -1
  236. package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
  237. package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
  238. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.d.ts.map +1 -1
  239. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize.d.ts +6 -3
  240. package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
  241. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.d.ts.map +1 -1
  242. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.d.ts.map +1 -1
  243. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.d.ts.map +1 -1
  244. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.d.ts.map +1 -1
  245. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.d.ts.map +1 -1
  246. package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.d.ts.map +1 -1
  247. package/types/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
  248. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_dumper_state.d.ts +1 -8
  249. package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
  250. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_loader_state.d.ts +8 -14
  251. package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
  252. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_schema.d.ts +3 -7
  253. package/types/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
  254. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
  255. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
  256. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
  257. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
  258. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
  259. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
  260. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
  261. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
  262. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
  263. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
  264. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
  265. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
  266. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
  267. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
  268. package/types/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
  269. package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type.d.ts +0 -16
  270. package/types/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
  271. package/types/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
  272. package/types/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
  273. package/types/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
  274. package/types/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
  275. package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.d.ts +7 -0
  276. package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.d.ts.map +1 -0
  277. package/types/deps.d.ts +6 -6
  278. package/types/deps.d.ts.map +1 -1
  279. package/types/gen/services.gen.d.ts +66 -1
  280. package/types/gen/services.gen.d.ts.map +1 -1
  281. package/types/gen/types.gen.d.ts +73 -0
  282. package/types/gen/types.gen.d.ts.map +1 -1
  283. package/types/src/commands/app/app_metadata.d.ts +26 -0
  284. package/types/src/commands/app/app_metadata.d.ts.map +1 -0
  285. package/types/src/commands/app/apps.d.ts +10 -1
  286. package/types/src/commands/app/apps.d.ts.map +1 -1
  287. package/types/src/commands/app/bundle.d.ts +70 -0
  288. package/types/src/commands/app/bundle.d.ts.map +1 -0
  289. package/types/src/commands/app/dev.d.ts +18 -0
  290. package/types/src/commands/app/dev.d.ts.map +1 -0
  291. package/types/src/commands/app/metadata.d.ts +20 -0
  292. package/types/src/commands/app/metadata.d.ts.map +1 -0
  293. package/types/src/commands/app/raw_apps.d.ts +18 -0
  294. package/types/src/commands/app/raw_apps.d.ts.map +1 -0
  295. package/types/src/commands/app/wmillTsDev.d.ts +2 -0
  296. package/types/src/commands/app/wmillTsDev.d.ts.map +1 -0
  297. package/types/src/commands/dependencies/dependencies.d.ts +15 -0
  298. package/types/src/commands/dependencies/dependencies.d.ts.map +1 -0
  299. package/types/src/commands/flow/flow.d.ts.map +1 -1
  300. package/types/src/commands/flow/flow_metadata.d.ts +8 -0
  301. package/types/src/commands/flow/flow_metadata.d.ts.map +1 -0
  302. package/types/src/commands/script/script.d.ts +4 -5
  303. package/types/src/commands/script/script.d.ts.map +1 -1
  304. package/types/src/commands/sync/pull.d.ts +1 -1
  305. package/types/src/commands/sync/pull.d.ts.map +1 -1
  306. package/types/src/commands/sync/sync.d.ts +7 -1
  307. package/types/src/commands/sync/sync.d.ts.map +1 -1
  308. package/types/src/commands/workspace/fork.d.ts.map +1 -1
  309. package/types/src/commands/workspace/workspace.d.ts.map +1 -1
  310. package/types/src/core/conf.d.ts +8 -1
  311. package/types/src/core/conf.d.ts.map +1 -1
  312. package/types/src/core/context.d.ts.map +1 -1
  313. package/types/src/main.d.ts.map +1 -1
  314. package/types/src/types.d.ts +1 -1
  315. package/types/src/types.d.ts.map +1 -1
  316. package/types/src/utils/metadata.d.ts +8 -9
  317. package/types/src/utils/metadata.d.ts.map +1 -1
  318. package/types/src/utils/script_common.d.ts +6 -6
  319. package/types/src/utils/script_common.d.ts.map +1 -1
  320. package/types/src/utils/utils.d.ts +2 -0
  321. package/types/src/utils/utils.d.ts.map +1 -1
  322. package/types/windmill-utils-internal/src/gen/types.gen.d.ts +73 -0
  323. package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
  324. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
  325. package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +0 -5
  326. package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +0 -216
  327. package/esm/deps/jsr.io/@std/path/1.1.3/types.js +0 -3
  328. package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
  329. package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
  330. package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
  331. package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
  332. package/types/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
  333. package/types/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
  334. package/types/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
  335. package/types/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
  336. package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
  337. package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
  338. package/types/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
  339. package/types/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
  340. package/types/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
  341. package/types/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
  342. package/types/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
  343. package/types/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
  344. package/types/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
  345. package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
  346. package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
  347. package/types/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
  348. package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
  349. package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
  350. package/types/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
  351. package/types/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
  352. package/types/deps/jsr.io/@std/yaml/1.0.10/_dumper_state.d.ts.map +0 -1
  353. package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
  354. package/types/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
  355. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
  356. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
  357. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
  358. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
  359. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
  360. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
  361. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
  362. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
  363. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
  364. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
  365. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
  366. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
  367. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
  368. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
  369. package/types/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
  370. package/types/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
  371. package/types/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
  372. package/types/deps/jsr.io/@std/yaml/1.0.10/mod.d.ts.map +0 -1
  373. package/types/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
  374. package/types/deps/jsr.io/@std/yaml/1.0.10/stringify.d.ts.map +0 -1
  375. /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.js +0 -0
  376. /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.js +0 -0
  377. /package/esm/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.js +0 -0
  378. /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.js +0 -0
  379. /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.js +0 -0
  380. /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.js +0 -0
  381. /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.js +0 -0
  382. /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.js +0 -0
  383. /package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/binary.js +0 -0
  384. /package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts +0 -0
  385. /package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts +0 -0
  386. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.d.ts +0 -0
  387. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.d.ts +0 -0
  388. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.d.ts +0 -0
  389. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.d.ts +0 -0
  390. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.d.ts +0 -0
  391. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.d.ts +0 -0
  392. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.d.ts +0 -0
  393. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.d.ts +0 -0
  394. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.d.ts +0 -0
  395. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.d.ts +0 -0
  396. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.d.ts +0 -0
  397. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.d.ts +0 -0
  398. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.d.ts +0 -0
  399. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.d.ts +0 -0
  400. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.d.ts +0 -0
  401. /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.d.ts +0 -0
  402. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.d.ts +0 -0
  403. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.d.ts +0 -0
  404. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.d.ts +0 -0
  405. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.d.ts +0 -0
  406. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.d.ts +0 -0
  407. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.d.ts +0 -0
  408. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.d.ts +0 -0
  409. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.d.ts +0 -0
  410. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.d.ts +0 -0
  411. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.d.ts +0 -0
  412. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.d.ts +0 -0
  413. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.d.ts +0 -0
  414. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.d.ts +0 -0
  415. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.d.ts +0 -0
  416. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.d.ts +0 -0
  417. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.d.ts +0 -0
  418. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.d.ts +0 -0
  419. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.d.ts +0 -0
  420. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.d.ts +0 -0
  421. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.d.ts +0 -0
  422. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.d.ts +0 -0
  423. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.d.ts +0 -0
  424. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.d.ts +0 -0
  425. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.d.ts +0 -0
  426. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.d.ts +0 -0
  427. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.d.ts +0 -0
  428. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.d.ts +0 -0
  429. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.d.ts +0 -0
  430. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.d.ts +0 -0
  431. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.d.ts +0 -0
  432. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.d.ts +0 -0
  433. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.d.ts +0 -0
  434. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.d.ts +0 -0
  435. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.d.ts +0 -0
  436. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.d.ts +0 -0
  437. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.d.ts +0 -0
  438. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.d.ts +0 -0
  439. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.d.ts +0 -0
  440. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.d.ts +0 -0
  441. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.d.ts +0 -0
  442. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/types.d.ts +0 -0
  443. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.d.ts +0 -0
  444. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.d.ts +0 -0
  445. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.d.ts +0 -0
  446. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.d.ts +0 -0
  447. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.d.ts +0 -0
  448. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.d.ts +0 -0
  449. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.d.ts +0 -0
  450. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.d.ts +0 -0
  451. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.d.ts +0 -0
  452. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.d.ts +0 -0
  453. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.d.ts +0 -0
  454. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.d.ts +0 -0
  455. /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.d.ts +0 -0
  456. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_chars.d.ts +0 -0
  457. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/binary.d.ts +0 -0
  458. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/bool.d.ts +0 -0
  459. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/float.d.ts +0 -0
  460. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/int.d.ts +0 -0
  461. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/map.d.ts +0 -0
  462. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/merge.d.ts +0 -0
  463. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/nil.d.ts +0 -0
  464. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/omap.d.ts +0 -0
  465. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/pairs.d.ts +0 -0
  466. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/regexp.d.ts +0 -0
  467. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/seq.d.ts +0 -0
  468. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/set.d.ts +0 -0
  469. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/str.d.ts +0 -0
  470. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/timestamp.d.ts +0 -0
  471. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/undefined.d.ts +0 -0
  472. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_utils.d.ts +0 -0
  473. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/mod.d.ts +0 -0
  474. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/parse.d.ts +0 -0
  475. /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/stringify.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  // Ported from js-yaml v3.13.1:
2
2
  // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
3
  // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
- // Copyright 2018-2025 the Deno authors. MIT license.
4
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
5
5
  var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
6
6
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7
7
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
@@ -186,6 +186,12 @@ export class LoaderState {
186
186
  writable: true,
187
187
  value: void 0
188
188
  });
189
+ Object.defineProperty(this, "version", {
190
+ enumerable: true,
191
+ configurable: true,
192
+ writable: true,
193
+ value: void 0
194
+ });
189
195
  Object.defineProperty(this, "checkLineBreaks", {
190
196
  enumerable: true,
191
197
  configurable: true,
@@ -234,23 +240,9 @@ export class LoaderState {
234
240
  this.implicitTypes = schema.implicitTypes;
235
241
  this.typeMap = schema.typeMap;
236
242
  this.length = input.length;
243
+ this.version = null;
237
244
  this.readIndent();
238
245
  }
239
- skipWhitespaces() {
240
- let ch = this.peek();
241
- while (isWhiteSpace(ch)) {
242
- ch = this.next();
243
- }
244
- }
245
- skipComment() {
246
- let ch = this.peek();
247
- if (ch !== SHARP)
248
- return;
249
- ch = this.next();
250
- while (ch !== 0 && !isEOL(ch)) {
251
- ch = this.next();
252
- }
253
- }
254
246
  readIndent() {
255
247
  let char = this.peek();
256
248
  while (char === SPACE) {
@@ -265,78 +257,88 @@ export class LoaderState {
265
257
  this.position += 1;
266
258
  return this.peek();
267
259
  }
260
+ throwError(message) {
261
+ throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
262
+ }
268
263
  dispatchWarning(message) {
269
264
  const error = __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
270
265
  this.onWarning?.(error);
271
266
  }
272
- yamlDirectiveHandler(args) {
267
+ yamlDirectiveHandler(...args) {
268
+ if (this.version !== null) {
269
+ return this.throwError("Cannot handle YAML directive: duplication of %YAML directive");
270
+ }
273
271
  if (args.length !== 1) {
274
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: YAML directive accepts exactly one argument");
272
+ return this.throwError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
275
273
  }
276
274
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
277
275
  if (match === null) {
278
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: ill-formed argument");
276
+ return this.throwError("Cannot handle YAML directive: ill-formed argument");
279
277
  }
280
278
  const major = parseInt(match[1], 10);
281
279
  const minor = parseInt(match[2], 10);
282
280
  if (major !== 1) {
283
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: unacceptable YAML version");
281
+ return this.throwError("Cannot handle YAML directive: unacceptable YAML version");
284
282
  }
283
+ this.version = args[0] ?? null;
285
284
  this.checkLineBreaks = minor < 2;
286
285
  if (minor !== 1 && minor !== 2) {
287
- this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
286
+ return this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
288
287
  }
289
- return args[0] ?? null;
290
288
  }
291
- tagDirectiveHandler(args) {
289
+ tagDirectiveHandler(...args) {
292
290
  if (args.length !== 2) {
293
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
291
+ return this.throwError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
294
292
  }
295
293
  const handle = args[0];
296
294
  const prefix = args[1];
297
295
  if (!PATTERN_TAG_HANDLE.test(handle)) {
298
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
296
+ return this.throwError(`Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
299
297
  }
300
298
  if (this.tagMap.has(handle)) {
301
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
299
+ return this.throwError(`Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
302
300
  }
303
301
  if (!PATTERN_TAG_URI.test(prefix)) {
304
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
302
+ return this.throwError("Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
305
303
  }
306
304
  this.tagMap.set(handle, prefix);
307
305
  }
308
306
  captureSegment(start, end, checkJson) {
307
+ let result;
309
308
  if (start < end) {
310
- const result = this.input.slice(start, end);
309
+ result = this.input.slice(start, end);
311
310
  if (checkJson) {
312
311
  for (let position = 0; position < result.length; position++) {
313
312
  const character = result.charCodeAt(position);
314
313
  if (!(character === 0x09 ||
315
314
  (0x20 <= character && character <= 0x10ffff))) {
316
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Expected valid JSON character: received "${character}"`);
315
+ return this.throwError(`Expected valid JSON character: received "${character}"`);
317
316
  }
318
317
  }
319
318
  }
320
319
  else if (PATTERN_NON_PRINTABLE.test(result)) {
321
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Stream contains non-printable characters");
320
+ return this.throwError("Stream contains non-printable characters");
322
321
  }
323
322
  this.result += result;
324
323
  }
325
324
  }
326
325
  readBlockSequence(nodeIndent) {
326
+ let line;
327
+ let following;
327
328
  let detected = false;
329
+ let ch;
328
330
  const tag = this.tag;
329
331
  const anchor = this.anchor;
330
332
  const result = [];
331
333
  if (this.anchor !== null && typeof this.anchor !== "undefined") {
332
334
  this.anchorMap.set(this.anchor, result);
333
335
  }
334
- let ch = this.peek();
336
+ ch = this.peek();
335
337
  while (ch !== 0) {
336
338
  if (ch !== MINUS) {
337
339
  break;
338
340
  }
339
- const following = this.peek(1);
341
+ following = this.peek(1);
340
342
  if (!isWhiteSpaceOrEOL(following)) {
341
343
  break;
342
344
  }
@@ -349,18 +351,13 @@ export class LoaderState {
349
351
  continue;
350
352
  }
351
353
  }
352
- const line = this.line;
353
- this.composeNode({
354
- parentIndent: nodeIndent,
355
- nodeContext: CONTEXT_BLOCK_IN,
356
- allowToSeek: false,
357
- allowCompact: true,
358
- });
354
+ line = this.line;
355
+ this.composeNode(nodeIndent, CONTEXT_BLOCK_IN, false, true);
359
356
  result.push(this.result);
360
357
  this.skipSeparationSpace(true, -1);
361
358
  ch = this.peek();
362
359
  if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
363
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block sequence: bad indentation of a sequence entry");
360
+ return this.throwError("Cannot read block sequence: bad indentation of a sequence entry");
364
361
  }
365
362
  else if (this.lineIndent < nodeIndent) {
366
363
  break;
@@ -377,7 +374,7 @@ export class LoaderState {
377
374
  }
378
375
  mergeMappings(destination, source, overridableKeys) {
379
376
  if (!isObject(source)) {
380
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot merge mappings: the provided source object is unacceptable");
377
+ return this.throwError("Cannot merge mappings: the provided source object is unacceptable");
381
378
  }
382
379
  for (const [key, value] of Object.entries(source)) {
383
380
  if (Object.hasOwn(destination, key))
@@ -399,7 +396,7 @@ export class LoaderState {
399
396
  keyNode = Array.prototype.slice.call(keyNode);
400
397
  for (let index = 0; index < keyNode.length; index++) {
401
398
  if (Array.isArray(keyNode[index])) {
402
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot store mapping pair: nested arrays are not supported inside keys");
399
+ return this.throwError("Cannot store mapping pair: nested arrays are not supported inside keys");
403
400
  }
404
401
  if (typeof keyNode === "object" && isPlainObject(keyNode[index])) {
405
402
  keyNode[index] = "[object Object]";
@@ -429,7 +426,7 @@ export class LoaderState {
429
426
  Object.hasOwn(result, keyNode)) {
430
427
  this.line = startLine || this.line;
431
428
  this.position = startPos || this.position;
432
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot store mapping pair: duplicated key");
429
+ return this.throwError("Cannot store mapping pair: duplicated key");
433
430
  }
434
431
  Object.defineProperty(result, keyNode, {
435
432
  value: valueNode,
@@ -453,7 +450,7 @@ export class LoaderState {
453
450
  }
454
451
  }
455
452
  else {
456
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read line: line break not found");
453
+ return this.throwError("Cannot read line: line break not found");
457
454
  }
458
455
  this.line += 1;
459
456
  this.lineStart = this.position;
@@ -462,11 +459,13 @@ export class LoaderState {
462
459
  let lineBreaks = 0;
463
460
  let ch = this.peek();
464
461
  while (ch !== 0) {
465
- this.skipWhitespaces();
466
- ch = this.peek();
467
- if (allowComments) {
468
- this.skipComment();
469
- ch = this.peek();
462
+ while (isWhiteSpace(ch)) {
463
+ ch = this.next();
464
+ }
465
+ if (allowComments && ch === SHARP) {
466
+ do {
467
+ ch = this.next();
468
+ } while (ch !== LINE_FEED && ch !== CARRIAGE_RETURN && ch !== 0);
470
469
  }
471
470
  if (isEOL(ch)) {
472
471
  this.readLineBreak();
@@ -598,17 +597,18 @@ export class LoaderState {
598
597
  return false;
599
598
  }
600
599
  readSingleQuotedScalar(nodeIndent) {
601
- let ch = this.peek();
600
+ let ch;
601
+ let captureStart;
602
+ let captureEnd;
603
+ ch = this.peek();
602
604
  if (ch !== SINGLE_QUOTE) {
603
605
  return false;
604
606
  }
605
607
  this.kind = "scalar";
606
608
  this.result = "";
607
609
  this.position++;
608
- let captureStart = this.position;
609
- let captureEnd = this.position;
610
- ch = this.peek();
611
- while (ch !== 0) {
610
+ captureStart = captureEnd = this.position;
611
+ while ((ch = this.peek()) !== 0) {
612
612
  if (ch === SINGLE_QUOTE) {
613
613
  this.captureSegment(captureStart, this.position, true);
614
614
  ch = this.next();
@@ -628,15 +628,14 @@ export class LoaderState {
628
628
  }
629
629
  else if (this.position === this.lineStart &&
630
630
  this.testDocumentSeparator()) {
631
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the document within a single quoted scalar");
631
+ return this.throwError("Unexpected end of the document within a single quoted scalar");
632
632
  }
633
633
  else {
634
634
  this.position++;
635
635
  captureEnd = this.position;
636
636
  }
637
- ch = this.peek();
638
637
  }
639
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the stream within a single quoted scalar");
638
+ return this.throwError("Unexpected end of the stream within a single quoted scalar");
640
639
  }
641
640
  readDoubleQuotedScalar(nodeIndent) {
642
641
  let ch = this.peek();
@@ -649,8 +648,7 @@ export class LoaderState {
649
648
  let captureEnd = this.position;
650
649
  let captureStart = this.position;
651
650
  let tmp;
652
- ch = this.peek();
653
- while (ch !== 0) {
651
+ while ((ch = this.peek()) !== 0) {
654
652
  if (ch === DOUBLE_QUOTE) {
655
653
  this.captureSegment(captureStart, this.position, true);
656
654
  this.position++;
@@ -675,14 +673,14 @@ export class LoaderState {
675
673
  hexResult = (hexResult << 4) + tmp;
676
674
  }
677
675
  else {
678
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read double quoted scalar: expected hexadecimal character");
676
+ return this.throwError("Cannot read double quoted scalar: expected hexadecimal character");
679
677
  }
680
678
  }
681
679
  this.result += codepointToChar(hexResult);
682
680
  this.position++;
683
681
  }
684
682
  else {
685
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read double quoted scalar: unknown escape sequence");
683
+ return this.throwError("Cannot read double quoted scalar: unknown escape sequence");
686
684
  }
687
685
  captureStart = captureEnd = this.position;
688
686
  }
@@ -693,15 +691,14 @@ export class LoaderState {
693
691
  }
694
692
  else if (this.position === this.lineStart &&
695
693
  this.testDocumentSeparator()) {
696
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the document within a double quoted scalar");
694
+ return this.throwError("Unexpected end of the document within a double quoted scalar");
697
695
  }
698
696
  else {
699
697
  this.position++;
700
698
  captureEnd = this.position;
701
699
  }
702
- ch = this.peek();
703
700
  }
704
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Unexpected end of the stream within a double quoted scalar");
701
+ return this.throwError("Unexpected end of the stream within a double quoted scalar");
705
702
  }
706
703
  readFlowCollection(nodeIndent) {
707
704
  let ch = this.peek();
@@ -746,7 +743,7 @@ export class LoaderState {
746
743
  return true;
747
744
  }
748
745
  if (!readNext) {
749
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read flow collection: missing comma between flow collection entries");
746
+ return this.throwError("Cannot read flow collection: missing comma between flow collection entries");
750
747
  }
751
748
  keyTag = keyNode = valueNode = null;
752
749
  isPair = isExplicitPair = false;
@@ -759,12 +756,7 @@ export class LoaderState {
759
756
  }
760
757
  }
761
758
  line = this.line;
762
- this.composeNode({
763
- parentIndent: nodeIndent,
764
- nodeContext: CONTEXT_FLOW_IN,
765
- allowToSeek: false,
766
- allowCompact: true,
767
- });
759
+ this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
768
760
  keyTag = this.tag || null;
769
761
  keyNode = this.result;
770
762
  this.skipSeparationSpace(true, nodeIndent);
@@ -773,12 +765,7 @@ export class LoaderState {
773
765
  isPair = true;
774
766
  ch = this.next();
775
767
  this.skipSeparationSpace(true, nodeIndent);
776
- this.composeNode({
777
- parentIndent: nodeIndent,
778
- nodeContext: CONTEXT_FLOW_IN,
779
- allowToSeek: false,
780
- allowCompact: true,
781
- });
768
+ this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
782
769
  valueNode = this.result;
783
770
  }
784
771
  if (isMapping) {
@@ -800,7 +787,7 @@ export class LoaderState {
800
787
  readNext = false;
801
788
  }
802
789
  }
803
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read flow collection: unexpected end of the stream within a flow collection");
790
+ return this.throwError("Cannot read flow collection: unexpected end of the stream within a flow collection");
804
791
  }
805
792
  // Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
806
793
  // https://yaml.org/spec/1.2.2/#81-block-scalar-styles
@@ -832,19 +819,19 @@ export class LoaderState {
832
819
  chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
833
820
  }
834
821
  else {
835
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: chomping mode identifier repeated");
822
+ return this.throwError("Cannot read block: chomping mode identifier repeated");
836
823
  }
837
824
  }
838
825
  else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
839
826
  if (tmp === 0) {
840
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: indentation width must be greater than 0");
827
+ return this.throwError("Cannot read block: indentation width must be greater than 0");
841
828
  }
842
829
  else if (!detectedIndent) {
843
830
  textIndent = nodeIndent + tmp - 1;
844
831
  detectedIndent = true;
845
832
  }
846
833
  else {
847
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: indentation width identifier repeated");
834
+ return this.throwError("Cannot read block: indentation width identifier repeated");
848
835
  }
849
836
  }
850
837
  else {
@@ -852,9 +839,14 @@ export class LoaderState {
852
839
  }
853
840
  }
854
841
  if (isWhiteSpace(ch)) {
855
- this.skipWhitespaces();
856
- this.skipComment();
857
- ch = this.peek();
842
+ do {
843
+ ch = this.next();
844
+ } while (isWhiteSpace(ch));
845
+ if (ch === SHARP) {
846
+ do {
847
+ ch = this.next();
848
+ } while (!isEOL(ch) && ch !== 0);
849
+ }
858
850
  }
859
851
  while (ch !== 0) {
860
852
  this.readLineBreak();
@@ -933,6 +925,7 @@ export class LoaderState {
933
925
  const anchor = this.anchor;
934
926
  const result = {};
935
927
  const overridableKeys = new Set();
928
+ let following;
936
929
  let allowCompact = false;
937
930
  let line;
938
931
  let pos;
@@ -941,12 +934,13 @@ export class LoaderState {
941
934
  let valueNode = null;
942
935
  let atExplicitKey = false;
943
936
  let detected = false;
937
+ let ch;
944
938
  if (this.anchor !== null && typeof this.anchor !== "undefined") {
945
939
  this.anchorMap.set(this.anchor, result);
946
940
  }
947
- let ch = this.peek();
941
+ ch = this.peek();
948
942
  while (ch !== 0) {
949
- const following = this.peek(1);
943
+ following = this.peek(1);
950
944
  line = this.line; // Save the current line.
951
945
  pos = this.position;
952
946
  //
@@ -957,9 +951,7 @@ export class LoaderState {
957
951
  if (ch === QUESTION) {
958
952
  if (atExplicitKey) {
959
953
  this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
960
- keyTag = null;
961
- keyNode = null;
962
- valueNode = null;
954
+ keyTag = keyNode = valueNode = null;
963
955
  }
964
956
  detected = true;
965
957
  atExplicitKey = true;
@@ -971,7 +963,7 @@ export class LoaderState {
971
963
  allowCompact = true;
972
964
  }
973
965
  else {
974
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
966
+ return this.throwError("Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
975
967
  }
976
968
  this.position += 1;
977
969
  ch = following;
@@ -979,26 +971,20 @@ export class LoaderState {
979
971
  // Implicit notation case. Flow-style node as the key first, then ":", and the value.
980
972
  //
981
973
  }
982
- else if (this.composeNode({
983
- parentIndent: flowIndent,
984
- nodeContext: CONTEXT_FLOW_OUT,
985
- allowToSeek: false,
986
- allowCompact: true,
987
- })) {
974
+ else if (this.composeNode(flowIndent, CONTEXT_FLOW_OUT, false, true)) {
988
975
  if (this.line === line) {
989
976
  ch = this.peek();
990
- this.skipWhitespaces();
991
- ch = this.peek();
977
+ while (isWhiteSpace(ch)) {
978
+ ch = this.next();
979
+ }
992
980
  if (ch === COLON) {
993
981
  ch = this.next();
994
982
  if (!isWhiteSpaceOrEOL(ch)) {
995
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
983
+ return this.throwError("Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
996
984
  }
997
985
  if (atExplicitKey) {
998
986
  this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
999
- keyTag = null;
1000
- keyNode = null;
1001
- valueNode = null;
987
+ keyTag = keyNode = valueNode = null;
1002
988
  }
1003
989
  detected = true;
1004
990
  atExplicitKey = false;
@@ -1007,7 +993,7 @@ export class LoaderState {
1007
993
  keyNode = this.result;
1008
994
  }
1009
995
  else if (detected) {
1010
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read an implicit mapping pair: missing colon");
996
+ return this.throwError("Cannot read an implicit mapping pair: missing colon");
1011
997
  }
1012
998
  else {
1013
999
  this.tag = tag;
@@ -1016,7 +1002,7 @@ export class LoaderState {
1016
1002
  }
1017
1003
  }
1018
1004
  else if (detected) {
1019
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read a block mapping entry: a multiline key may not be an implicit key");
1005
+ return this.throwError("Cannot read a block mapping entry: a multiline key may not be an implicit key");
1020
1006
  }
1021
1007
  else {
1022
1008
  this.tag = tag;
@@ -1031,12 +1017,7 @@ export class LoaderState {
1031
1017
  // Common reading code for both explicit and implicit notations.
1032
1018
  //
1033
1019
  if (this.line === line || this.lineIndent > nodeIndent) {
1034
- if (this.composeNode({
1035
- parentIndent: nodeIndent,
1036
- nodeContext: CONTEXT_BLOCK_OUT,
1037
- allowToSeek: true,
1038
- allowCompact,
1039
- })) {
1020
+ if (this.composeNode(nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
1040
1021
  if (atExplicitKey) {
1041
1022
  keyNode = this.result;
1042
1023
  }
@@ -1052,7 +1033,7 @@ export class LoaderState {
1052
1033
  ch = this.peek();
1053
1034
  }
1054
1035
  if (this.lineIndent > nodeIndent && ch !== 0) {
1055
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read block: bad indentation of a mapping entry");
1036
+ return this.throwError("Cannot read block: bad indentation of a mapping entry");
1056
1037
  }
1057
1038
  else if (this.lineIndent < nodeIndent) {
1058
1039
  break;
@@ -1075,15 +1056,17 @@ export class LoaderState {
1075
1056
  return detected;
1076
1057
  }
1077
1058
  readTagProperty() {
1059
+ let position;
1078
1060
  let isVerbatim = false;
1079
1061
  let isNamed = false;
1080
1062
  let tagHandle = "";
1081
1063
  let tagName;
1082
- let ch = this.peek();
1064
+ let ch;
1065
+ ch = this.peek();
1083
1066
  if (ch !== EXCLAMATION)
1084
1067
  return false;
1085
1068
  if (this.tag !== null) {
1086
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: duplication of a tag property");
1069
+ return this.throwError("Cannot read tag property: duplication of a tag property");
1087
1070
  }
1088
1071
  ch = this.next();
1089
1072
  if (ch === SMALLER_THAN) {
@@ -1098,7 +1081,7 @@ export class LoaderState {
1098
1081
  else {
1099
1082
  tagHandle = "!";
1100
1083
  }
1101
- let position = this.position;
1084
+ position = this.position;
1102
1085
  if (isVerbatim) {
1103
1086
  do {
1104
1087
  ch = this.next();
@@ -1108,7 +1091,7 @@ export class LoaderState {
1108
1091
  ch = this.next();
1109
1092
  }
1110
1093
  else {
1111
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: unexpected end of stream");
1094
+ return this.throwError("Cannot read tag property: unexpected end of stream");
1112
1095
  }
1113
1096
  }
1114
1097
  else {
@@ -1117,24 +1100,24 @@ export class LoaderState {
1117
1100
  if (!isNamed) {
1118
1101
  tagHandle = this.input.slice(position - 1, this.position + 1);
1119
1102
  if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
1120
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: named tag handle contains invalid characters");
1103
+ return this.throwError("Cannot read tag property: named tag handle contains invalid characters");
1121
1104
  }
1122
1105
  isNamed = true;
1123
1106
  position = this.position + 1;
1124
1107
  }
1125
1108
  else {
1126
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: tag suffix cannot contain an exclamation mark");
1109
+ return this.throwError("Cannot read tag property: tag suffix cannot contain an exclamation mark");
1127
1110
  }
1128
1111
  }
1129
1112
  ch = this.next();
1130
1113
  }
1131
1114
  tagName = this.input.slice(position, this.position);
1132
1115
  if (PATTERN_FLOW_INDICATORS.test(tagName)) {
1133
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read tag property: tag suffix cannot contain flow indicator characters");
1116
+ return this.throwError("Cannot read tag property: tag suffix cannot contain flow indicator characters");
1134
1117
  }
1135
1118
  }
1136
1119
  if (tagName && !PATTERN_TAG_URI.test(tagName)) {
1137
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read tag property: invalid characters in tag name "${tagName}"`);
1120
+ return this.throwError(`Cannot read tag property: invalid characters in tag name "${tagName}"`);
1138
1121
  }
1139
1122
  if (isVerbatim) {
1140
1123
  this.tag = tagName;
@@ -1149,7 +1132,7 @@ export class LoaderState {
1149
1132
  this.tag = `tag:yaml.org,2002:${tagName}`;
1150
1133
  }
1151
1134
  else {
1152
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read tag property: undeclared tag handle "${tagHandle}"`);
1135
+ return this.throwError(`Cannot read tag property: undeclared tag handle "${tagHandle}"`);
1153
1136
  }
1154
1137
  return true;
1155
1138
  }
@@ -1158,7 +1141,7 @@ export class LoaderState {
1158
1141
  if (ch !== AMPERSAND)
1159
1142
  return false;
1160
1143
  if (this.anchor !== null) {
1161
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read anchor property: duplicate anchor property");
1144
+ return this.throwError("Cannot read anchor property: duplicate anchor property");
1162
1145
  }
1163
1146
  ch = this.next();
1164
1147
  const position = this.position;
@@ -1166,7 +1149,7 @@ export class LoaderState {
1166
1149
  ch = this.next();
1167
1150
  }
1168
1151
  if (this.position === position) {
1169
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read anchor property: name of an anchor node must contain at least one character");
1152
+ return this.throwError("Cannot read anchor property: name of an anchor node must contain at least one character");
1170
1153
  }
1171
1154
  this.anchor = this.input.slice(position, this.position);
1172
1155
  return true;
@@ -1180,29 +1163,32 @@ export class LoaderState {
1180
1163
  ch = this.next();
1181
1164
  }
1182
1165
  if (this.position === position) {
1183
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read alias: alias name must contain at least one character");
1166
+ return this.throwError("Cannot read alias: alias name must contain at least one character");
1184
1167
  }
1185
1168
  const alias = this.input.slice(position, this.position);
1186
1169
  if (!this.anchorMap.has(alias)) {
1187
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot read alias: unidentified alias "${alias}"`);
1170
+ return this.throwError(`Cannot read alias: unidentified alias "${alias}"`);
1188
1171
  }
1189
1172
  this.result = this.anchorMap.get(alias);
1190
1173
  this.skipSeparationSpace(true, -1);
1191
1174
  return true;
1192
1175
  }
1193
- composeNode({ parentIndent, nodeContext, allowToSeek, allowCompact }) {
1176
+ composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
1177
+ let allowBlockScalars;
1178
+ let allowBlockCollections;
1194
1179
  let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
1195
1180
  let atNewLine = false;
1196
1181
  let hasContent = false;
1197
1182
  let type;
1183
+ let flowIndent;
1184
+ let blockIndent;
1198
1185
  this.tag = null;
1199
1186
  this.anchor = null;
1200
1187
  this.kind = null;
1201
1188
  this.result = null;
1202
- const allowBlockScalars = CONTEXT_BLOCK_OUT === nodeContext ||
1203
- CONTEXT_BLOCK_IN === nodeContext;
1204
- let allowBlockCollections = allowBlockScalars;
1205
- const allowBlockStyles = allowBlockScalars;
1189
+ const allowBlockStyles = (allowBlockScalars =
1190
+ allowBlockCollections =
1191
+ CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
1206
1192
  if (allowToSeek) {
1207
1193
  if (this.skipSeparationSpace(true, -1)) {
1208
1194
  atNewLine = true;
@@ -1243,8 +1229,8 @@ export class LoaderState {
1243
1229
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1244
1230
  const cond = CONTEXT_FLOW_IN === nodeContext ||
1245
1231
  CONTEXT_FLOW_OUT === nodeContext;
1246
- const flowIndent = cond ? parentIndent : parentIndent + 1;
1247
- const blockIndent = this.position - this.lineStart;
1232
+ flowIndent = cond ? parentIndent : parentIndent + 1;
1233
+ blockIndent = this.position - this.lineStart;
1248
1234
  if (indentStatus === 1) {
1249
1235
  if ((allowBlockCollections &&
1250
1236
  (this.readBlockSequence(blockIndent) ||
@@ -1261,7 +1247,7 @@ export class LoaderState {
1261
1247
  else if (this.readAlias()) {
1262
1248
  hasContent = true;
1263
1249
  if (this.tag !== null || this.anchor !== null) {
1264
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot compose node: alias node should not have any properties");
1250
+ return this.throwError("Cannot compose node: alias node should not have any properties");
1265
1251
  }
1266
1252
  }
1267
1253
  else if (this.readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
@@ -1304,11 +1290,11 @@ export class LoaderState {
1304
1290
  const map = this.typeMap[this.kind ?? "fallback"];
1305
1291
  type = map.get(this.tag);
1306
1292
  if (this.result !== null && type.kind !== this.kind) {
1307
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
1293
+ return this.throwError(`Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
1308
1294
  }
1309
1295
  if (!type.resolve(this.result)) {
1310
1296
  // `state.result` updated in resolver if matched
1311
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot resolve a node with !<${this.tag}> explicit tag`);
1297
+ return this.throwError(`Cannot resolve a node with !<${this.tag}> explicit tag`);
1312
1298
  }
1313
1299
  else {
1314
1300
  this.result = type.construct(this.result);
@@ -1318,16 +1304,23 @@ export class LoaderState {
1318
1304
  }
1319
1305
  }
1320
1306
  else {
1321
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, `Cannot resolve unknown tag !<${this.tag}>`);
1307
+ return this.throwError(`Cannot resolve unknown tag !<${this.tag}>`);
1322
1308
  }
1323
1309
  }
1324
1310
  return this.tag !== null || this.anchor !== null || hasContent;
1325
1311
  }
1326
- readDirectives() {
1312
+ readDocument() {
1313
+ const documentStart = this.position;
1314
+ let position;
1315
+ let directiveName;
1316
+ let directiveArgs;
1327
1317
  let hasDirectives = false;
1328
- let version = null;
1329
- let ch = this.peek();
1330
- while (ch !== 0) {
1318
+ let ch;
1319
+ this.version = null;
1320
+ this.checkLineBreaks = false;
1321
+ this.tagMap = new Map();
1322
+ this.anchorMap = new Map();
1323
+ while ((ch = this.peek()) !== 0) {
1331
1324
  this.skipSeparationSpace(true, -1);
1332
1325
  ch = this.peek();
1333
1326
  if (this.lineIndent > 0 || ch !== PERCENT) {
@@ -1335,19 +1328,25 @@ export class LoaderState {
1335
1328
  }
1336
1329
  hasDirectives = true;
1337
1330
  ch = this.next();
1338
- let position = this.position;
1331
+ position = this.position;
1339
1332
  while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
1340
1333
  ch = this.next();
1341
1334
  }
1342
- const directiveName = this.input.slice(position, this.position);
1343
- const directiveArgs = [];
1335
+ directiveName = this.input.slice(position, this.position);
1336
+ directiveArgs = [];
1344
1337
  if (directiveName.length < 1) {
1345
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: directive name length must be greater than zero");
1338
+ return this.throwError("Cannot read document: directive name length must be greater than zero");
1346
1339
  }
1347
1340
  while (ch !== 0) {
1348
- this.skipWhitespaces();
1349
- this.skipComment();
1350
- ch = this.peek();
1341
+ while (isWhiteSpace(ch)) {
1342
+ ch = this.next();
1343
+ }
1344
+ if (ch === SHARP) {
1345
+ do {
1346
+ ch = this.next();
1347
+ } while (ch !== 0 && !isEOL(ch));
1348
+ break;
1349
+ }
1351
1350
  if (isEOL(ch))
1352
1351
  break;
1353
1352
  position = this.position;
@@ -1360,28 +1359,16 @@ export class LoaderState {
1360
1359
  this.readLineBreak();
1361
1360
  switch (directiveName) {
1362
1361
  case "YAML":
1363
- if (version !== null) {
1364
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: duplication of %YAML directive");
1365
- }
1366
- version = this.yamlDirectiveHandler(directiveArgs);
1362
+ this.yamlDirectiveHandler(...directiveArgs);
1367
1363
  break;
1368
1364
  case "TAG":
1369
- this.tagDirectiveHandler(directiveArgs);
1365
+ this.tagDirectiveHandler(...directiveArgs);
1370
1366
  break;
1371
1367
  default:
1372
1368
  this.dispatchWarning(`unknown document directive "${directiveName}"`);
1373
1369
  break;
1374
1370
  }
1375
- ch = this.peek();
1376
1371
  }
1377
- return hasDirectives;
1378
- }
1379
- readDocument() {
1380
- const documentStart = this.position;
1381
- this.checkLineBreaks = false;
1382
- this.tagMap = new Map();
1383
- this.anchorMap = new Map();
1384
- const hasDirectives = this.readDirectives();
1385
1372
  this.skipSeparationSpace(true, -1);
1386
1373
  if (this.lineIndent === 0 &&
1387
1374
  this.peek() === MINUS &&
@@ -1391,14 +1378,9 @@ export class LoaderState {
1391
1378
  this.skipSeparationSpace(true, -1);
1392
1379
  }
1393
1380
  else if (hasDirectives) {
1394
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: directives end mark is expected");
1381
+ return this.throwError("Cannot read document: directives end mark is expected");
1395
1382
  }
1396
- this.composeNode({
1397
- parentIndent: this.lineIndent - 1,
1398
- nodeContext: CONTEXT_BLOCK_OUT,
1399
- allowToSeek: false,
1400
- allowCompact: true,
1401
- });
1383
+ this.composeNode(this.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1402
1384
  this.skipSeparationSpace(true, -1);
1403
1385
  if (this.checkLineBreaks &&
1404
1386
  PATTERN_NON_ASCII_LINE_BREAKS.test(this.input.slice(documentStart, this.position))) {
@@ -1411,7 +1393,7 @@ export class LoaderState {
1411
1393
  }
1412
1394
  }
1413
1395
  else if (this.position < this.length - 1) {
1414
- throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot read document: end of the stream or a document separator is expected");
1396
+ return this.throwError("Cannot read document: end of the stream or a document separator is expected");
1415
1397
  }
1416
1398
  return this.result;
1417
1399
  }