windmill-cli 1.586.0 → 1.586.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 (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 +5 -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,23 +1,25 @@
1
1
  import * as dntShim from "../../../_dnt.shims.js";
2
2
  import { requireLogin } from "../../core/auth.js";
3
3
  import { fetchVersion, resolveWorkspace } from "../../core/context.js";
4
- import { colors, Command, Confirm, ensureDir, minimatch, path, log, yamlStringify, yamlParseContent, SEP, } from "../../../deps.js";
4
+ import { colors, Command, Confirm, ensureDir, log, minimatch, path, SEP, yamlParseContent, yamlStringify, } from "../../../deps.js";
5
5
  import * as wmill from "../../../gen/services.gen.js";
6
6
  import { getTypeStrFromPath, parseFromPath, pushObj, showConflict, showDiff, } from "../../types.js";
7
7
  import { downloadZip } from "./pull.js";
8
- import { exts, findContentFile, findGlobalDeps, findResourceFile, handleScriptMetadata, removeExtensionToPath, } from "../script/script.js";
8
+ import { exts, findContentFile, findResourceFile, handleScriptMetadata, removeExtensionToPath, } from "../script/script.js";
9
9
  import { handleFile } from "../script/script.js";
10
- import { deepEqual, isFileResource } from "../../utils/utils.js";
11
- import { getEffectiveSettings, validateBranchConfiguration, mergeConfigWithConfigFile, } from "../../core/conf.js";
12
- import { getSpecificItemsForCurrentBranch, isSpecificItem, getBranchSpecificPath, fromBranchSpecificPath, isCurrentBranchFile, isBranchSpecificFile, } from "../../core/specific_items.js";
10
+ import { deepEqual, isFileResource, isRawAppFile, isWorkspaceDependencies } from "../../utils/utils.js";
11
+ import { getEffectiveSettings, mergeConfigWithConfigFile, validateBranchConfiguration, } from "../../core/conf.js";
12
+ import { fromBranchSpecificPath, getBranchSpecificPath, getSpecificItemsForCurrentBranch, isBranchSpecificFile, isCurrentBranchFile, isSpecificItem, } from "../../core/specific_items.js";
13
13
  import { getCurrentGitBranch } from "../../utils/git.js";
14
14
  import { removePathPrefix } from "../../types.js";
15
15
  import { listSyncCodebases } from "../../utils/codebase.js";
16
- import { generateFlowLockInternal, generateScriptMetadataInternal, readLockfile, } from "../../utils/metadata.js";
16
+ import { generateScriptMetadataInternal, getRawWorkspaceDependencies, readLockfile, workspaceDependenciesPathToLanguageAndFilename, } from "../../utils/metadata.js";
17
17
  import { pushResource } from "../resource/resource.js";
18
18
  import { newPathAssigner, } from "../../../windmill-utils-internal/src/path-utils/path-assigner.js";
19
19
  import { extractInlineScripts as extractInlineScriptsForFlows } from "../../../windmill-utils-internal/src/inline-scripts/extractor.js";
20
+ import { generateFlowLockInternal } from "../flow/flow_metadata.js";
20
21
  import { isExecutionModeAnonymous } from "../app/apps.js";
22
+ import { generateAppLocksInternal } from "../app/app_metadata.js";
21
23
  // Merge CLI options with effective settings, preserving CLI flags as overrides
22
24
  function mergeCliWithEffectiveOptions(cliOpts, effectiveOpts) {
23
25
  // overlay CLI options on top (undefined cliOpts won't override effectiveOpts)
@@ -174,16 +176,51 @@ export const yamlOptions = {
174
176
  noRefs: true,
175
177
  skipInvalid: true,
176
178
  };
177
- export function extractInlineScriptsForApps(rec, pathAssigner) {
179
+ function extractFields(fields) {
180
+ Object.entries(fields).forEach(([k, v]) => {
181
+ if (typeof v == "object") {
182
+ if (v.type == "static") {
183
+ fields[k] = { value: v.value };
184
+ }
185
+ else if (v.type == "javascript") {
186
+ fields[k] = { expr: v.expr, allowUserResources: v.allowUserResources };
187
+ }
188
+ else if (v.type == "user") {
189
+ fields[k] = undefined;
190
+ }
191
+ }
192
+ // if (k == 'runType') {
193
+ // fields["type"] = undefined
194
+ // fields["schema"] = undefined
195
+ // }
196
+ });
197
+ }
198
+ export function extractFieldsForRawApps(runnables) {
199
+ Object.values(runnables).forEach((v) => {
200
+ if (typeof v == "object") {
201
+ if (v.fields !== undefined) {
202
+ extractFields(v.fields);
203
+ }
204
+ }
205
+ });
206
+ }
207
+ export function extractInlineScriptsForApps(key, rec, pathAssigner, toId) {
178
208
  if (!rec) {
179
209
  return [];
180
210
  }
181
211
  if (typeof rec == "object") {
182
212
  return Object.entries(rec).flatMap(([k, v]) => {
183
- if (k == "inlineScript" && typeof v == "object") {
213
+ if (k == 'runType') {
214
+ rec["type"] = undefined;
215
+ rec["schema"] = undefined;
216
+ return [];
217
+ }
218
+ else if (k == "inlineScript" && typeof v == "object") {
219
+ rec["type"] = undefined;
184
220
  const o = v;
185
- const name = rec["name"];
186
- const [basePath, ext] = pathAssigner.assignPath(name, o["language"]);
221
+ const name = toId(key ?? "", rec);
222
+ const [basePathO, ext] = pathAssigner.assignPath(name, o["language"]);
223
+ const basePath = basePathO.replaceAll(SEP, "/");
187
224
  const r = [];
188
225
  if (o["content"]) {
189
226
  const content = o["content"];
@@ -201,10 +238,11 @@ export function extractInlineScriptsForApps(rec, pathAssigner) {
201
238
  content: lock,
202
239
  });
203
240
  }
241
+ o.schema = undefined;
204
242
  return r;
205
243
  }
206
244
  else {
207
- return extractInlineScriptsForApps(v, pathAssigner);
245
+ return extractInlineScriptsForApps(k, v, pathAssigner, toId);
208
246
  }
209
247
  });
210
248
  }
@@ -212,15 +250,19 @@ export function extractInlineScriptsForApps(rec, pathAssigner) {
212
250
  }
213
251
  function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ignoreCodebaseChanges) {
214
252
  async function _internal_file(p, f) {
215
- const kind = p.endsWith("flow.json")
253
+ const kind = p.endsWith(".flow.json")
216
254
  ? "flow"
217
- : p.endsWith("app.json")
255
+ : p.endsWith(".app.json")
218
256
  ? "app"
219
- : p.endsWith("script.json")
220
- ? "script"
221
- : p.endsWith("resource.json")
222
- ? "resource"
223
- : "other";
257
+ : p.endsWith(".raw_app.json")
258
+ ? "raw_app"
259
+ : p.endsWith(".script.json")
260
+ ? "script"
261
+ : p.endsWith(".resource.json")
262
+ ? "resource"
263
+ : p.startsWith("dependencies/")
264
+ ? "dependencies"
265
+ : "other";
224
266
  const isJson = p.endsWith(".json");
225
267
  function transformPath() {
226
268
  if (kind == "flow") {
@@ -229,6 +271,12 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ig
229
271
  else if (kind == "app") {
230
272
  return p.replace("app.json", "app");
231
273
  }
274
+ else if (kind == "raw_app") {
275
+ return p.replace("raw_app.json", "raw_app");
276
+ }
277
+ else if (kind == "dependencies") {
278
+ return p;
279
+ }
232
280
  else {
233
281
  return useYaml && isJson ? p.replaceAll(".json", ".yaml") : p;
234
282
  }
@@ -236,7 +284,7 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ig
236
284
  const finalPath = transformPath();
237
285
  const r = [
238
286
  {
239
- isDirectory: kind == "flow" || kind == "app",
287
+ isDirectory: kind == "flow" || kind == "app" || kind == "raw_app",
240
288
  path: finalPath,
241
289
  async *getChildren() {
242
290
  if (kind == "flow") {
@@ -288,7 +336,7 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ig
288
336
  }
289
337
  let inlineScripts;
290
338
  try {
291
- inlineScripts = extractInlineScriptsForApps(app?.["value"], newPathAssigner(defaultTs));
339
+ inlineScripts = extractInlineScriptsForApps(undefined, app?.["value"], newPathAssigner(defaultTs), (_, val) => val["name"]);
292
340
  }
293
341
  catch (error) {
294
342
  log.error(`Failed to extract inline scripts for app at path: ${p}`);
@@ -319,6 +367,77 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ig
319
367
  },
320
368
  };
321
369
  }
370
+ else if (kind == "raw_app") {
371
+ let rawApp;
372
+ try {
373
+ rawApp = JSON.parse(await f.async("text"));
374
+ }
375
+ catch (error) {
376
+ log.error(`Failed to parse app.yaml at path: ${p}`);
377
+ throw error;
378
+ }
379
+ if (rawApp?.["policy"]?.["execution_mode"] == "anonymous") {
380
+ rawApp.public = true;
381
+ }
382
+ // console.log("rawApp", rawApp);
383
+ rawApp.policy = undefined;
384
+ let inlineScripts;
385
+ const value = rawApp?.["value"];
386
+ // console.log("FOOB", value?.["runnables"])
387
+ extractFieldsForRawApps(value?.["runnables"]);
388
+ try {
389
+ inlineScripts = extractInlineScriptsForApps(undefined, value, newPathAssigner(defaultTs), (key, val_) => key);
390
+ }
391
+ catch (error) {
392
+ log.error(`Failed to extract inline scripts for raw app at path: ${p}`);
393
+ throw error;
394
+ }
395
+ try {
396
+ for (const [filePath, content] of Object.entries(value?.["files"] ?? [])) {
397
+ yield {
398
+ isDirectory: false,
399
+ path: path.join(finalPath, filePath.substring(1)),
400
+ async *getChildren() { },
401
+ // deno-lint-ignore require-await
402
+ async getContentText() {
403
+ if (typeof content !== "string") {
404
+ throw new Error(`Content of raw app file ${filePath} is not a string`);
405
+ }
406
+ return content;
407
+ },
408
+ };
409
+ }
410
+ }
411
+ catch (error) {
412
+ log.error(`Failed to extract files for raw app at path: ${p}`);
413
+ throw error;
414
+ }
415
+ for (const s of inlineScripts) {
416
+ yield {
417
+ isDirectory: false,
418
+ path: path.join(finalPath, "runnables", s.path),
419
+ async *getChildren() { },
420
+ // deno-lint-ignore require-await
421
+ async getContentText() {
422
+ return s.content;
423
+ },
424
+ };
425
+ }
426
+ const runnables = value?.["runnables"];
427
+ if (runnables) {
428
+ rawApp.runnables = runnables;
429
+ delete rawApp?.["value"];
430
+ }
431
+ yield {
432
+ isDirectory: false,
433
+ path: path.join(finalPath, "raw_app.yaml"),
434
+ async *getChildren() { },
435
+ // deno-lint-ignore require-await
436
+ async getContentText() {
437
+ return yamlStringify(rawApp, yamlOptions);
438
+ },
439
+ };
440
+ }
322
441
  },
323
442
  async getContentText() {
324
443
  const content = await f.async("text");
@@ -374,7 +493,7 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ig
374
493
  ? yamlStringify(parsed, yamlOptions)
375
494
  : JSON.stringify(parsed, null, 2);
376
495
  }
377
- return useYaml && isJson
496
+ return useYaml && isJson && kind != "dependencies"
378
497
  ? (() => {
379
498
  try {
380
499
  return yamlStringify(JSON.parse(content), yamlOptions);
@@ -490,16 +609,14 @@ export async function* readDirRecursiveWithIgnore(ignore, root) {
490
609
  ];
491
610
  while (stack.length > 0) {
492
611
  const e = stack.pop();
493
- // console.log(e.path);
494
612
  yield e;
495
613
  for await (const e2 of e.c()) {
496
614
  if (e2.isDirectory) {
497
615
  const dirName = e2.path.split(SEP).pop();
498
- if (dirName == "node_modules" || dirName?.startsWith(".")) {
616
+ if (dirName == "node_modules" || dirName == ".claude" || dirName?.startsWith(".")) {
499
617
  continue;
500
618
  }
501
619
  }
502
- // console.log(e2.path);
503
620
  stack.push({
504
621
  path: e2.path,
505
622
  ignored: e.ignored || ignore(e2.path, e2.isDirectory),
@@ -515,12 +632,47 @@ export async function elementsToMap(els, ignore, json, skips, specificItems) {
515
632
  const map = {};
516
633
  const processedBasePaths = new Set();
517
634
  for await (const entry of readDirRecursiveWithIgnore(ignore, els)) {
518
- if (entry.isDirectory || entry.ignored)
635
+ // console.log("FOO", entry.path, entry.ignored, entry.isDirectory)
636
+ if (entry.isDirectory || entry.ignored) {
519
637
  continue;
638
+ }
520
639
  const path = entry.path;
521
- if (json && path.endsWith(".yaml") && !isFileResource(path))
522
- continue;
523
- if (!json && path.endsWith(".json") && !isFileResource(path))
640
+ if (!isFileResource(path) && !isRawAppFile(path) && !isWorkspaceDependencies(path)) {
641
+ if (json && path.endsWith(".yaml"))
642
+ continue;
643
+ if (!json && path.endsWith(".json"))
644
+ continue;
645
+ if (![
646
+ "json",
647
+ "yaml",
648
+ "go",
649
+ "sh",
650
+ "ts",
651
+ "py",
652
+ "sql",
653
+ "gql",
654
+ "ps1",
655
+ "php",
656
+ "js",
657
+ "lock",
658
+ "rs",
659
+ "cs",
660
+ "yml",
661
+ "nu",
662
+ "java",
663
+ "rb",
664
+ // for related places search: ADD_NEW_LANG
665
+ ].includes(path.split(".").pop() ?? "")) {
666
+ continue;
667
+ }
668
+ }
669
+ if (isRawAppFile(path)) {
670
+ const suffix = path.split(".raw_app" + SEP).pop();
671
+ if (suffix?.startsWith("dist/") || suffix == "wmill.d.ts" || suffix == "package-lock.json") {
672
+ continue;
673
+ }
674
+ }
675
+ if (skips.skipResources && isFileResource(path))
524
676
  continue;
525
677
  const ext = json ? ".json" : ".yaml";
526
678
  if (!skips.includeSchedules && path.endsWith(".schedule" + ext))
@@ -534,8 +686,9 @@ export async function elementsToMap(els, ignore, json, skips, specificItems) {
534
686
  path.endsWith(".mqtt_trigger" + ext) ||
535
687
  path.endsWith(".sqs_trigger" + ext) ||
536
688
  path.endsWith(".gcp_trigger" + ext) ||
537
- path.endsWith(".email_trigger" + ext)))
689
+ path.endsWith(".email_trigger" + ext))) {
538
690
  continue;
691
+ }
539
692
  if (!skips.includeUsers && path.endsWith(".user" + ext))
540
693
  continue;
541
694
  if (!skips.includeGroups && path.endsWith(".group" + ext))
@@ -546,8 +699,9 @@ export async function elementsToMap(els, ignore, json, skips, specificItems) {
546
699
  continue;
547
700
  if (skips.skipResources && path.endsWith(".resource" + ext))
548
701
  continue;
549
- if (skips.skipResourceTypes && path.endsWith(".resource-type" + ext))
702
+ if (skips.skipResourceTypes && path.endsWith(".resource-type" + ext)) {
550
703
  continue;
704
+ }
551
705
  // Use getTypeStrFromPath for consistent type detection
552
706
  try {
553
707
  const fileType = getTypeStrFromPath(path);
@@ -561,35 +715,12 @@ export async function elementsToMap(els, ignore, json, skips, specificItems) {
561
715
  continue;
562
716
  if (skips.skipFolders && fileType === "folder")
563
717
  continue;
718
+ if (skips.skipWorkspaceDependencies && fileType === "workspace_dependencies")
719
+ continue;
564
720
  }
565
721
  catch {
566
722
  // If getTypeStrFromPath can't determine the type, continue processing the file
567
723
  }
568
- if (skips.skipResources && isFileResource(path))
569
- continue;
570
- if (![
571
- "json",
572
- "yaml",
573
- "go",
574
- "sh",
575
- "ts",
576
- "py",
577
- "sql",
578
- "gql",
579
- "ps1",
580
- "php",
581
- "js",
582
- "lock",
583
- "rs",
584
- "cs",
585
- "yml",
586
- "nu",
587
- "java",
588
- "rb",
589
- // for related places search: ADD_NEW_LANG
590
- ].includes(path.split(".").pop() ?? "") &&
591
- !isFileResource(path))
592
- continue;
593
724
  // Handle branch-specific files - skip files for other branches
594
725
  if (specificItems && isBranchSpecificFile(path)) {
595
726
  const currentBranch = getCurrentGitBranch();
@@ -706,13 +837,16 @@ async function compareDynFSElement(els1, els2, ignore, json, skips, ignoreMetada
706
837
  if (skipMetadata) {
707
838
  continue;
708
839
  }
840
+ if (k.startsWith("dependencies/")) {
841
+ log.info(`Adding workspace dependencies file: ${k}`);
842
+ }
709
843
  changes.push({ name: "added", path: k, content: v });
710
844
  }
711
845
  else {
712
846
  if (m2[k] == v) {
713
847
  continue;
714
848
  }
715
- else if (k.endsWith(".json")) {
849
+ else if (k.endsWith(".json") && !isWorkspaceDependencies(k)) {
716
850
  let parsedV, parsedM2;
717
851
  try {
718
852
  parsedV = JSON.parse(v);
@@ -772,7 +906,7 @@ async function compareDynFSElement(els1, els2, ignore, json, skips, ignoreMetada
772
906
  changes.push({ name: "deleted", path: k });
773
907
  }
774
908
  else if (k?.endsWith(".script.yaml")) {
775
- let o = parseYaml(k, m2[k]);
909
+ const o = parseYaml(k, m2[k]);
776
910
  if (o.codebase != undefined) {
777
911
  remoteCodebase[k] = o.codebase;
778
912
  }
@@ -875,7 +1009,8 @@ const isNotWmillFile = (p, isDirectory) => {
875
1009
  !p.startsWith("f" + SEP) &&
876
1010
  !p.startsWith("g" + SEP) &&
877
1011
  !p.startsWith("users" + SEP) &&
878
- !p.startsWith("groups" + SEP));
1012
+ !p.startsWith("groups" + SEP) &&
1013
+ !p.startsWith("dependencies" + SEP));
879
1014
  }
880
1015
  try {
881
1016
  const typ = getTypeStrFromPath(p);
@@ -889,7 +1024,8 @@ const isNotWmillFile = (p, isDirectory) => {
889
1024
  !p.startsWith("f" + SEP) &&
890
1025
  !p.startsWith("g" + SEP) &&
891
1026
  !p.startsWith("users" + SEP) &&
892
- !p.startsWith("groups" + SEP));
1027
+ !p.startsWith("groups" + SEP) &&
1028
+ !p.startsWith("dependencies" + SEP));
893
1029
  }
894
1030
  }
895
1031
  catch {
@@ -903,7 +1039,8 @@ export const isWhitelisted = (p) => {
903
1039
  p == "f" ||
904
1040
  p == "g" ||
905
1041
  p == "users" ||
906
- p == "groups");
1042
+ p == "groups" ||
1043
+ p == "dependencies");
907
1044
  };
908
1045
  export async function ignoreF(wmillconf) {
909
1046
  let whitelist = undefined;
@@ -950,6 +1087,9 @@ export async function ignoreF(wmillconf) {
950
1087
  if (wmillconf.includeKey && fileType === "encryption_key") {
951
1088
  return false; // Don't ignore, always include
952
1089
  }
1090
+ if (!wmillconf.skipWorkspaceDependencies && fileType === "workspace_dependencies") {
1091
+ return false; // Don't ignore workspace dependencies (they are always included unless explicitly skipped)
1092
+ }
953
1093
  }
954
1094
  catch {
955
1095
  // If getTypeStrFromPath can't determine the type, fall through to normal logic
@@ -960,22 +1100,31 @@ export async function ignoreF(wmillconf) {
960
1100
  (!isDirectory && whitelist != undefined && !whitelist.approve(p))));
961
1101
  };
962
1102
  }
1103
+ const FLOW_EXT = ".flow" + SEP;
1104
+ const APP_EXT = ".app" + SEP;
1105
+ const RAW_APP_EXT = ".raw_app" + SEP;
963
1106
  // deno-lint-ignore no-inner-declarations
964
1107
  async function addToChangedIfNotExists(p, tracker) {
965
1108
  const isScript = exts.some((e) => p.endsWith(e));
966
1109
  if (isScript) {
967
- if (p.includes(".flow" + SEP)) {
968
- const folder = p.substring(0, p.indexOf(".flow" + SEP)) + ".flow" + SEP;
1110
+ if (p.includes(FLOW_EXT)) {
1111
+ const folder = p.substring(0, p.indexOf(FLOW_EXT)) + FLOW_EXT;
969
1112
  if (!tracker.flows.includes(folder)) {
970
1113
  tracker.flows.push(folder);
971
1114
  }
972
1115
  }
973
- else if (p.includes(".app" + SEP)) {
974
- const folder = p.substring(0, p.indexOf(".app" + SEP)) + ".app" + SEP;
1116
+ else if (p.includes(APP_EXT)) {
1117
+ const folder = p.substring(0, p.indexOf(APP_EXT)) + APP_EXT;
975
1118
  if (!tracker.apps.includes(folder)) {
976
1119
  tracker.apps.push(folder);
977
1120
  }
978
1121
  }
1122
+ else if (p.includes(RAW_APP_EXT)) {
1123
+ const folder = p.substring(0, p.indexOf(RAW_APP_EXT)) + RAW_APP_EXT;
1124
+ if (!tracker.rawApps.includes(folder)) {
1125
+ tracker.rawApps.push(folder);
1126
+ }
1127
+ }
979
1128
  else {
980
1129
  if (!tracker.scripts.includes(p)) {
981
1130
  tracker.scripts.push(p);
@@ -1001,6 +1150,7 @@ async function buildTracker(changes) {
1001
1150
  scripts: [],
1002
1151
  flows: [],
1003
1152
  apps: [],
1153
+ rawApps: [],
1004
1154
  };
1005
1155
  for (const change of changes) {
1006
1156
  if (change.name == "added" || change.name == "edited") {
@@ -1045,7 +1195,8 @@ export async function pull(opts) {
1045
1195
  catch {
1046
1196
  // ignore
1047
1197
  }
1048
- const remote = ZipFSElement((await downloadZip(workspace, opts.plainSecrets, opts.skipVariables, opts.skipResources, opts.skipResourceTypes, opts.skipSecrets, opts.includeSchedules, opts.includeTriggers, opts.includeUsers, opts.includeGroups, opts.includeSettings, opts.includeKey, opts.defaultTs)), !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, true);
1198
+ const zipFile = await downloadZip(workspace, opts.plainSecrets, opts.skipVariables, opts.skipResources, opts.skipResourceTypes, opts.skipSecrets, opts.includeSchedules, opts.includeTriggers, opts.includeUsers, opts.includeGroups, opts.includeSettings, opts.includeKey, opts.skipWorkspaceDependencies, opts.defaultTs);
1199
+ const remote = ZipFSElement(zipFile, !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, true);
1049
1200
  const local = !opts.stateful
1050
1201
  ? await FSFSElement(dntShim.Deno.cwd(), codebases, true)
1051
1202
  : await FSFSElement(path.join(dntShim.Deno.cwd(), ".wmill"), [], true);
@@ -1195,17 +1346,21 @@ export async function pull(opts) {
1195
1346
  }
1196
1347
  log.info("All local changes pulled, now updating wmill-lock.yaml");
1197
1348
  await readLockfile(); // ensure wmill-lock.yaml exists
1198
- const globalDeps = await findGlobalDeps();
1199
1349
  const tracker = await buildTracker(changes);
1350
+ const rawWorkspaceDependencies = await getRawWorkspaceDependencies();
1200
1351
  for (const change of tracker.scripts) {
1201
- await generateScriptMetadataInternal(change, workspace, opts, false, true, globalDeps, codebases, true);
1352
+ await generateScriptMetadataInternal(change, workspace, opts, false, true, rawWorkspaceDependencies, codebases, true);
1202
1353
  }
1203
1354
  for (const change of tracker.flows) {
1204
1355
  log.info(`Updating lock for flow ${change}`);
1205
- await generateFlowLockInternal(change, false, workspace, opts, true);
1356
+ await generateFlowLockInternal(change, false, workspace, opts, true, false);
1206
1357
  }
1207
1358
  if (tracker.apps.length > 0) {
1208
- log.info(`Apps ${tracker.apps.join(", ")} scripts were changed but ignoring for now`);
1359
+ log.info(colors.gray(`Apps ${tracker.apps.join(", ")} inline scripts were changed but ignoring metadata regeneration for now`));
1360
+ }
1361
+ for (const change of tracker.rawApps) {
1362
+ log.info(`Updating lock metadata for raw app ${change}`);
1363
+ await generateAppLocksInternal(change, false, workspace, opts, true, true);
1209
1364
  }
1210
1365
  if (opts.jsonOutput) {
1211
1366
  const result = {
@@ -1349,15 +1504,15 @@ export async function push(opts) {
1349
1504
  catch {
1350
1505
  // ignore
1351
1506
  }
1352
- const remote = ZipFSElement((await downloadZip(workspace, opts.plainSecrets, opts.skipVariables, opts.skipResources, opts.skipResourceTypes, opts.skipSecrets, opts.includeSchedules, opts.includeTriggers, opts.includeUsers, opts.includeGroups, opts.includeSettings, opts.includeKey, opts.defaultTs)), !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, false);
1507
+ const remote = ZipFSElement((await downloadZip(workspace, opts.plainSecrets, opts.skipVariables, opts.skipResources, opts.skipResourceTypes, opts.skipSecrets, opts.includeSchedules, opts.includeTriggers, opts.includeUsers, opts.includeGroups, opts.includeSettings, opts.includeKey, opts.skipWorkspaceDependencies, opts.defaultTs)), !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, false);
1353
1508
  const local = await FSFSElement(path.join(dntShim.Deno.cwd(), ""), codebases, false);
1354
1509
  const changes = await compareDynFSElement(local, remote, await ignoreF(opts), opts.json ?? false, opts, true, codebases, false, specificItems);
1355
- const globalDeps = await findGlobalDeps();
1510
+ const rawWorkspaceDependencies = await getRawWorkspaceDependencies();
1356
1511
  const tracker = await buildTracker(changes);
1357
1512
  const staleScripts = [];
1358
1513
  const staleFlows = [];
1359
1514
  for (const change of tracker.scripts) {
1360
- const stale = await generateScriptMetadataInternal(change, workspace, opts, true, true, globalDeps, codebases, false);
1515
+ const stale = await generateScriptMetadataInternal(change, workspace, opts, true, true, rawWorkspaceDependencies, codebases, false);
1361
1516
  if (stale) {
1362
1517
  staleScripts.push(stale);
1363
1518
  }
@@ -1458,9 +1613,19 @@ export async function push(opts) {
1458
1613
  while (queue.length > 0 || pool.size > 0) {
1459
1614
  // Fill the pool until we reach parallelizationFactor
1460
1615
  while (pool.size < parallelizationFactor && queue.length > 0) {
1461
- const [_basePath, changes] = queue.shift();
1616
+ let [_basePath, changes] = queue.shift();
1462
1617
  const promise = (async () => {
1463
1618
  const alreadySynced = [];
1619
+ const isRawApp = isRawAppFile(changes[0].path);
1620
+ if (isRawApp) {
1621
+ const deleteRawApp = changes.find(change => change.name === "deleted" && change.path.endsWith(".raw_app/raw_app.yaml"));
1622
+ if (deleteRawApp) {
1623
+ changes = [deleteRawApp];
1624
+ }
1625
+ else {
1626
+ changes.splice(1, changes.length - 1);
1627
+ }
1628
+ }
1464
1629
  for await (const change of changes) {
1465
1630
  let stateTarget = undefined;
1466
1631
  if (stateful) {
@@ -1473,13 +1638,13 @@ export async function push(opts) {
1473
1638
  }
1474
1639
  }
1475
1640
  if (change.name === "edited") {
1476
- if (await handleScriptMetadata(change.path, workspace, alreadySynced, opts.message, globalDeps, codebases, opts)) {
1641
+ if (await handleScriptMetadata(change.path, workspace, alreadySynced, opts.message, rawWorkspaceDependencies, codebases, opts)) {
1477
1642
  if (stateTarget) {
1478
1643
  await dntShim.Deno.writeTextFile(stateTarget, change.after);
1479
1644
  }
1480
1645
  continue;
1481
1646
  }
1482
- else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, globalDeps, codebases)) {
1647
+ else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, rawWorkspaceDependencies, codebases)) {
1483
1648
  if (stateTarget) {
1484
1649
  await dntShim.Deno.writeTextFile(stateTarget, change.after);
1485
1650
  }
@@ -1527,7 +1692,7 @@ export async function push(opts) {
1527
1692
  isFileResource(change.path)) {
1528
1693
  continue;
1529
1694
  }
1530
- else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, globalDeps, codebases)) {
1695
+ else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, rawWorkspaceDependencies, codebases)) {
1531
1696
  continue;
1532
1697
  }
1533
1698
  if (stateTarget) {
@@ -1601,6 +1766,14 @@ export async function push(opts) {
1601
1766
  path: removeSuffix(target, ".app/app.json"),
1602
1767
  });
1603
1768
  break;
1769
+ case "raw_app":
1770
+ if (target.endsWith(".raw_app/raw_app.yaml") || target.endsWith(".raw_app/raw_app.json")) {
1771
+ await wmill.deleteApp({
1772
+ workspace: workspaceId,
1773
+ path: removeSuffix(target, ".raw_app/raw_app.json"),
1774
+ });
1775
+ }
1776
+ break;
1604
1777
  case "schedule":
1605
1778
  await wmill.deleteSchedule({
1606
1779
  workspace: workspaceId,
@@ -1688,6 +1861,19 @@ export async function push(opts) {
1688
1861
  name: removeSuffix(removePathPrefix(change.path, "groups"), ".group.json"),
1689
1862
  });
1690
1863
  break;
1864
+ case "workspace_dependencies":
1865
+ const relativePath = removePathPrefix(change.path, "dependencies");
1866
+ const res = workspaceDependenciesPathToLanguageAndFilename(change.path);
1867
+ if (!res) {
1868
+ throw new Error(`Unknown workspace dependencies file format: ${change.path}`);
1869
+ }
1870
+ const { name, language } = res;
1871
+ await wmill.deleteWorkspaceDependencies({
1872
+ workspace: workspaceId,
1873
+ language,
1874
+ name
1875
+ });
1876
+ break;
1691
1877
  default:
1692
1878
  break;
1693
1879
  }
@@ -1758,6 +1944,7 @@ const command = new Command()
1758
1944
  .option("--skip-flows", "Skip syncing flows")
1759
1945
  .option("--skip-apps", "Skip syncing apps")
1760
1946
  .option("--skip-folders", "Skip syncing folders")
1947
+ .option("--skip-workspace-dependencies", "Skip syncing workspace dependencies")
1761
1948
  // .option("--skip-scripts-metadata", "Skip syncing scripts metadata, focus solely on logic")
1762
1949
  .option("--include-schedules", "Include syncing schedules")
1763
1950
  .option("--include-triggers", "Include syncing triggers")
@@ -1788,6 +1975,7 @@ const command = new Command()
1788
1975
  .option("--skip-flows", "Skip syncing flows")
1789
1976
  .option("--skip-apps", "Skip syncing apps")
1790
1977
  .option("--skip-folders", "Skip syncing folders")
1978
+ .option("--skip-workspace-dependencies", "Skip syncing workspace dependencies")
1791
1979
  // .option("--skip-scripts-metadata", "Skip syncing scripts metadata, focus solely on logic")
1792
1980
  .option("--include-schedules", "Include syncing schedules")
1793
1981
  .option("--include-triggers", "Include syncing triggers")
@@ -1,5 +1,5 @@
1
1
  import { colors, Input, log, setClient } from "../../../deps.js";
2
- import { addWorkspace, allWorkspaces, list, removeWorkspace } from "./workspace.js";
2
+ import { allWorkspaces, list, removeWorkspace } from "./workspace.js";
3
3
  import * as wmill from "../../../gen/services.gen.js";
4
4
  import { getCurrentGitBranch, getOriginalBranchForWorkspaceForks, isGitRepository } from "../../utils/git.js";
5
5
  import { WM_FORK_PREFIX } from "../../main.js";
@@ -86,14 +86,12 @@ async function createWorkspaceFork(opts, workspaceName, workspaceId = undefined)
86
86
  log.error(colors.red(`Failed to create forked workspace: ${error.message}`));
87
87
  throw error;
88
88
  }
89
- await addWorkspace({
90
- name: workspaceName,
91
- remote: remote,
92
- workspaceId: trueWorkspaceId,
93
- token: token,
94
- }, opts);
95
89
  const newBranchName = `${WM_FORK_PREFIX}/${clonedBranchName}/${workspaceId}`;
96
- log.info(`Created forked workspace ${trueWorkspaceId}. To start contributing to your fork, create and push edits to the branch \`${newBranchName}\` by using the command:\n\n\t` + colors.white(`git checkout -b ${newBranchName}`) + `\n\nThe changes will then be reflected in your fork if you've setup the git sync workflows correctly.`);
90
+ log.info(`Created forked workspace ${trueWorkspaceId}. To start contributing to your fork, create and push edits to the branch \`${newBranchName}\` by using the command:
91
+
92
+ \t` + colors.white(`git checkout -b ${newBranchName}`) + `
93
+
94
+ When doing operations on the forked workspace, it will use the remote setup in gitBranches for the branch it was forked from.`);
97
95
  }
98
96
  async function deleteWorkspaceFork(opts, name) {
99
97
  const orgWorkspaces = await allWorkspaces(opts.configDir);