@galaxy-tool-util/cli 0.1.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bin/galaxy-tool-cache.js +15 -0
  3. package/dist/bin/galaxy-tool-cache.js.map +1 -1
  4. package/dist/bin/gxwf.d.ts +3 -0
  5. package/dist/bin/gxwf.d.ts.map +1 -0
  6. package/dist/bin/gxwf.js +150 -0
  7. package/dist/bin/gxwf.js.map +1 -0
  8. package/dist/commands/add.js +2 -2
  9. package/dist/commands/add.js.map +1 -1
  10. package/dist/commands/clean-tree.d.ts +9 -0
  11. package/dist/commands/clean-tree.d.ts.map +1 -0
  12. package/dist/commands/clean-tree.js +69 -0
  13. package/dist/commands/clean-tree.js.map +1 -0
  14. package/dist/commands/clean.d.ts +10 -0
  15. package/dist/commands/clean.d.ts.map +1 -0
  16. package/dist/commands/clean.js +48 -0
  17. package/dist/commands/clean.js.map +1 -0
  18. package/dist/commands/clear.js +4 -4
  19. package/dist/commands/clear.js.map +1 -1
  20. package/dist/commands/convert-tree.d.ts +32 -0
  21. package/dist/commands/convert-tree.d.ts.map +1 -0
  22. package/dist/commands/convert-tree.js +229 -0
  23. package/dist/commands/convert-tree.js.map +1 -0
  24. package/dist/commands/convert.d.ts +13 -0
  25. package/dist/commands/convert.d.ts.map +1 -0
  26. package/dist/commands/convert.js +151 -0
  27. package/dist/commands/convert.js.map +1 -0
  28. package/dist/commands/info.d.ts.map +1 -1
  29. package/dist/commands/info.js +5 -4
  30. package/dist/commands/info.js.map +1 -1
  31. package/dist/commands/lint-tree.d.ts +11 -0
  32. package/dist/commands/lint-tree.d.ts.map +1 -0
  33. package/dist/commands/lint-tree.js +104 -0
  34. package/dist/commands/lint-tree.js.map +1 -0
  35. package/dist/commands/lint.d.ts +34 -0
  36. package/dist/commands/lint.d.ts.map +1 -0
  37. package/dist/commands/lint.js +195 -0
  38. package/dist/commands/lint.js.map +1 -0
  39. package/dist/commands/list.js +3 -3
  40. package/dist/commands/list.js.map +1 -1
  41. package/dist/commands/populate-workflow.d.ts +6 -0
  42. package/dist/commands/populate-workflow.d.ts.map +1 -0
  43. package/dist/commands/populate-workflow.js +55 -0
  44. package/dist/commands/populate-workflow.js.map +1 -0
  45. package/dist/commands/render-results.d.ts +11 -0
  46. package/dist/commands/render-results.d.ts.map +1 -0
  47. package/dist/commands/render-results.js +27 -0
  48. package/dist/commands/render-results.js.map +1 -0
  49. package/dist/commands/report-output.d.ts +34 -0
  50. package/dist/commands/report-output.d.ts.map +1 -0
  51. package/dist/commands/report-output.js +70 -0
  52. package/dist/commands/report-output.js.map +1 -0
  53. package/dist/commands/resolve-tool.js +1 -1
  54. package/dist/commands/resolve-tool.js.map +1 -1
  55. package/dist/commands/roundtrip-tree.d.ts +15 -0
  56. package/dist/commands/roundtrip-tree.d.ts.map +1 -0
  57. package/dist/commands/roundtrip-tree.js +178 -0
  58. package/dist/commands/roundtrip-tree.js.map +1 -0
  59. package/dist/commands/roundtrip.d.ts +31 -0
  60. package/dist/commands/roundtrip.d.ts.map +1 -0
  61. package/dist/commands/roundtrip.js +144 -0
  62. package/dist/commands/roundtrip.js.map +1 -0
  63. package/dist/commands/schema.js +2 -2
  64. package/dist/commands/schema.js.map +1 -1
  65. package/dist/commands/stateful-tool-inputs.d.ts +33 -0
  66. package/dist/commands/stateful-tool-inputs.d.ts.map +1 -0
  67. package/dist/commands/stateful-tool-inputs.js +73 -0
  68. package/dist/commands/stateful-tool-inputs.js.map +1 -0
  69. package/dist/commands/strict-options.d.ts +22 -0
  70. package/dist/commands/strict-options.d.ts.map +1 -0
  71. package/dist/commands/strict-options.js +18 -0
  72. package/dist/commands/strict-options.js.map +1 -0
  73. package/dist/commands/structural-schema.d.ts +6 -0
  74. package/dist/commands/structural-schema.d.ts.map +1 -0
  75. package/dist/commands/structural-schema.js +31 -0
  76. package/dist/commands/structural-schema.js.map +1 -0
  77. package/dist/commands/tree.d.ts +45 -0
  78. package/dist/commands/tree.d.ts.map +1 -0
  79. package/dist/commands/tree.js +155 -0
  80. package/dist/commands/tree.js.map +1 -0
  81. package/dist/commands/validate-tests-tree.d.ts +36 -0
  82. package/dist/commands/validate-tests-tree.d.ts.map +1 -0
  83. package/dist/commands/validate-tests-tree.js +191 -0
  84. package/dist/commands/validate-tests-tree.js.map +1 -0
  85. package/dist/commands/validate-tests.d.ts +21 -0
  86. package/dist/commands/validate-tests.d.ts.map +1 -0
  87. package/dist/commands/validate-tests.js +83 -0
  88. package/dist/commands/validate-tests.js.map +1 -0
  89. package/dist/commands/validate-tree.d.ts +12 -0
  90. package/dist/commands/validate-tree.d.ts.map +1 -0
  91. package/dist/commands/validate-tree.js +124 -0
  92. package/dist/commands/validate-tree.js.map +1 -0
  93. package/dist/commands/validate-workflow-json-schema.d.ts +8 -2
  94. package/dist/commands/validate-workflow-json-schema.d.ts.map +1 -1
  95. package/dist/commands/validate-workflow-json-schema.js +129 -50
  96. package/dist/commands/validate-workflow-json-schema.js.map +1 -1
  97. package/dist/commands/validate-workflow.d.ts +18 -10
  98. package/dist/commands/validate-workflow.d.ts.map +1 -1
  99. package/dist/commands/validate-workflow.js +215 -88
  100. package/dist/commands/validate-workflow.js.map +1 -1
  101. package/dist/commands/workflow-io.d.ts +7 -0
  102. package/dist/commands/workflow-io.d.ts.map +1 -0
  103. package/dist/commands/workflow-io.js +38 -0
  104. package/dist/commands/workflow-io.js.map +1 -0
  105. package/dist/index.d.ts +41 -0
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js +36 -0
  108. package/dist/index.js.map +1 -1
  109. package/dist/workflow/_templates-bundled.d.ts +2 -0
  110. package/dist/workflow/_templates-bundled.d.ts.map +1 -0
  111. package/dist/workflow/_templates-bundled.js +324 -0
  112. package/dist/workflow/_templates-bundled.js.map +1 -0
  113. package/dist/workflow/report-templates.d.ts +13 -0
  114. package/dist/workflow/report-templates.d.ts.map +1 -0
  115. package/dist/workflow/report-templates.js +91 -0
  116. package/dist/workflow/report-templates.js.map +1 -0
  117. package/package.json +18 -16
  118. package/dist/bin/galaxy-workflow-validate.d.ts +0 -3
  119. package/dist/bin/galaxy-workflow-validate.d.ts.map +0 -1
  120. package/dist/bin/galaxy-workflow-validate.js +0 -17
  121. package/dist/bin/galaxy-workflow-validate.js.map +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 John Chilton
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -4,7 +4,9 @@ import { runAdd } from "../commands/add.js";
4
4
  import { runList } from "../commands/list.js";
5
5
  import { runInfo } from "../commands/info.js";
6
6
  import { runClear } from "../commands/clear.js";
7
+ import { runPopulateWorkflow } from "../commands/populate-workflow.js";
7
8
  import { runSchema } from "../commands/schema.js";
9
+ import { runStructuralSchema } from "../commands/structural-schema.js";
8
10
  const program = new Command();
9
11
  program
10
12
  .name("galaxy-tool-cache")
@@ -46,5 +48,18 @@ program
46
48
  .option("--output <file>", "Output file (default: stdout)")
47
49
  .option("--cache-dir <dir>", "Cache directory")
48
50
  .action(runSchema);
51
+ program
52
+ .command("populate-workflow")
53
+ .description("Scan a workflow and cache all referenced tools")
54
+ .argument("<file>", "Workflow file (.ga, .gxwf.yml)")
55
+ .option("--cache-dir <dir>", "Cache directory")
56
+ .option("--galaxy-url <url>", "Galaxy instance URL for fallback")
57
+ .action(runPopulateWorkflow);
58
+ program
59
+ .command("structural-schema")
60
+ .description("Export the structural JSON Schema for Galaxy workflows")
61
+ .option("--format <fmt>", "Workflow format: format2 (default) or native", "format2")
62
+ .option("--output <file>", "Output file (default: stdout)")
63
+ .action(runStructuralSchema);
49
64
  program.parse();
50
65
  //# sourceMappingURL=galaxy-tool-cache.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"galaxy-tool-cache.js","sourceRoot":"","sources":["../../src/bin/galaxy-tool-cache.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,mBAAmB,CAAC;KACzB,WAAW,CAAC,wCAAwC,CAAC;KACrD,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,gDAAgD,CAAC;KAC7D,QAAQ,CAAC,WAAW,EAAE,wCAAwC,CAAC;KAC/D,MAAM,CAAC,iBAAiB,EAAE,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C"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=gxwf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gxwf.d.ts","sourceRoot":"","sources":["../../src/bin/gxwf.ts"],"names":[],"mappings":""}
@@ -0,0 +1,150 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from "commander";
3
+ import { runClean } from "../commands/clean.js";
4
+ import { runCleanTree } from "../commands/clean-tree.js";
5
+ import { runConvert } from "../commands/convert.js";
6
+ import { runConvertTree } from "../commands/convert-tree.js";
7
+ import { runRoundtrip } from "../commands/roundtrip.js";
8
+ import { runRoundtripTree } from "../commands/roundtrip-tree.js";
9
+ import { runLint } from "../commands/lint.js";
10
+ import { runLintTree } from "../commands/lint-tree.js";
11
+ import { runValidateWorkflow } from "../commands/validate-workflow.js";
12
+ import { runValidateTests } from "../commands/validate-tests.js";
13
+ import { runValidateTestsTree } from "../commands/validate-tests-tree.js";
14
+ import { runValidateTree } from "../commands/validate-tree.js";
15
+ import { addStrictOptions } from "../commands/strict-options.js";
16
+ const program = new Command();
17
+ program
18
+ .name("gxwf")
19
+ .description("Galaxy workflow operations — validate, clean, lint, convert (single-file and tree)")
20
+ .version("1.0.0");
21
+ addStrictOptions(program
22
+ .command("validate")
23
+ .description("Validate Galaxy workflow files (structure + optional tool state)")
24
+ .argument("<file>", "Workflow file (.ga, .gxwf.yml)")
25
+ .option("--format <fmt>", "Force format: native or format2 (auto-detected by default)")
26
+ .option("--no-tool-state", "Skip tool state validation")
27
+ .option("--cache-dir <dir>", "Tool cache directory")
28
+ .option("--mode <mode>", "Validation backend: effect (default) or json-schema", "effect")
29
+ .option("--tool-schema-dir <dir>", "Directory of pre-exported per-tool JSON Schemas (for offline json-schema mode)")
30
+ .option("--json", "Output structured JSON report")
31
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")).action(runValidateWorkflow);
32
+ program
33
+ .command("validate-tests")
34
+ .description("Validate a workflow-test file (*-tests.yml, *.gxwf-tests.yml) against the Galaxy Tests schema")
35
+ .argument("<file>", "Tests file (*-tests.yml)")
36
+ .option("--json", "Output structured JSON report")
37
+ .option("--workflow <path>", "Cross-check job inputs + output assertions against a workflow (.ga / .gxwf.yml)")
38
+ .action(runValidateTests);
39
+ program
40
+ .command("clean")
41
+ .description("Strip stale keys and decode legacy tool_state encoding")
42
+ .argument("<file>", "Workflow file (.ga, .gxwf.yml)")
43
+ .option("--output <file>", "Write cleaned workflow to file (default: stdout)")
44
+ .option("--diff", "Show diff of changes instead of writing output")
45
+ .option("--format <fmt>", "Force format: native or format2 (auto-detected by default)")
46
+ .option("--json", "Output structured JSON report")
47
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")
48
+ .option("--skip-uuid", "Skip stripping uuid fields (errors are always stripped)")
49
+ .action(runClean);
50
+ addStrictOptions(program
51
+ .command("lint")
52
+ .description("Lint Galaxy workflow — structural checks, best practices, tool state validation")
53
+ .argument("<file>", "Workflow file (.ga, .gxwf.yml)")
54
+ .option("--skip-best-practices", "Skip annotation/creator/license/label checks")
55
+ .option("--skip-state-validation", "Skip tool state validation against cached tool definitions")
56
+ .option("--cache-dir <dir>", "Tool cache directory (for state validation)")
57
+ .option("--format <fmt>", "Force format: native or format2 (auto-detected by default)")
58
+ .option("--json", "Output structured JSON result")
59
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")).action(runLint);
60
+ addStrictOptions(program
61
+ .command("convert")
62
+ .description("Convert between native (.ga) and format2 (.gxwf.yml) formats")
63
+ .argument("<file>", "Workflow file (.ga, .gxwf.yml)")
64
+ .option("--to <format>", "Target format: native or format2 (infers opposite by default)")
65
+ .option("--output <file>", "Write result to file (default: stdout)")
66
+ .option("--compact", "Omit position info in format2 output")
67
+ .option("--json", "Force JSON output")
68
+ .option("--yaml", "Force YAML output")
69
+ .option("--format <fmt>", "Force source format (auto-detected by default)")
70
+ .option("--stateful", "Use cached tool definitions for schema-aware state re-encoding")
71
+ .option("--cache-dir <dir>", "Tool cache directory (for --stateful)")).action(runConvert);
72
+ addStrictOptions(program
73
+ .command("roundtrip")
74
+ .description("Roundtrip-validate a native workflow: native → format2 → native, diff tool_state")
75
+ .argument("<file>", "Native workflow file (.ga)")
76
+ .option("--cache-dir <dir>", "Tool cache directory")
77
+ .option("--format <fmt>", "Force source format (must resolve to native)")
78
+ .option("--json", "Output structured JSON report")
79
+ .option("--errors-only", "Suppress benign diffs and clean steps from output")
80
+ .option("--benign-only", "Show only steps with benign diffs (no errors, no failures)")
81
+ .option("--brief", "Omit per-diff list; show only the one-line summary")).action(runRoundtrip);
82
+ // -- Tree (batch) variants --
83
+ addStrictOptions(program
84
+ .command("validate-tree")
85
+ .description("Batch validate all workflows under a directory")
86
+ .argument("<dir>", "Directory to scan for workflows")
87
+ .option("--format <fmt>", "Force format: native or format2 (auto-detected by default)")
88
+ .option("--no-tool-state", "Skip tool state validation")
89
+ .option("--cache-dir <dir>", "Tool cache directory")
90
+ .option("--mode <mode>", "Validation backend: effect (default) or json-schema", "effect")
91
+ .option("--tool-schema-dir <dir>", "Directory of pre-exported per-tool JSON Schemas (for offline json-schema mode)")
92
+ .option("--json", "Output structured JSON report")
93
+ .option("--report-markdown [file]", "Write Markdown report to file (or stdout if omitted)")
94
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")).action(runValidateTree);
95
+ addStrictOptions(program
96
+ .command("lint-tree")
97
+ .description("Batch lint all workflows under a directory")
98
+ .argument("<dir>", "Directory to scan for workflows")
99
+ .option("--skip-best-practices", "Skip annotation/creator/license/label checks")
100
+ .option("--skip-state-validation", "Skip tool state validation against cached tool definitions")
101
+ .option("--cache-dir <dir>", "Tool cache directory (for state validation)")
102
+ .option("--format <fmt>", "Force format: native or format2 (auto-detected by default)")
103
+ .option("--json", "Output structured JSON report")
104
+ .option("--report-markdown [file]", "Write Markdown report to file (or stdout if omitted)")
105
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")).action(runLintTree);
106
+ program
107
+ .command("clean-tree")
108
+ .description("Batch clean all workflows under a directory")
109
+ .argument("<dir>", "Directory to scan for workflows")
110
+ .option("--output-dir <dir>", "Write cleaned workflows to directory (mirrors source tree)")
111
+ .option("--format <fmt>", "Force format: native or format2 (auto-detected by default)")
112
+ .option("--json", "Output structured JSON report")
113
+ .option("--report-markdown [file]", "Write Markdown report to file (or stdout if omitted)")
114
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")
115
+ .option("--skip-uuid", "Skip stripping uuid fields (errors are always stripped)")
116
+ .action(runCleanTree);
117
+ addStrictOptions(program
118
+ .command("convert-tree")
119
+ .description("Batch convert all workflows under a directory")
120
+ .argument("<dir>", "Directory to scan for workflows")
121
+ .option("--to <format>", "Target format: native or format2 (infers opposite by default)")
122
+ .option("--output-dir <dir>", "Write converted workflows to directory (required)")
123
+ .option("--compact", "Omit position info in format2 output")
124
+ .option("--report-json", "Output structured JSON report")
125
+ .option("--json", "Force JSON output for converted files")
126
+ .option("--yaml", "Force YAML output")
127
+ .option("--format <fmt>", "Force source format (auto-detected by default)")
128
+ .option("--stateful", "Use cached tool definitions for schema-aware state re-encoding")
129
+ .option("--cache-dir <dir>", "Tool cache directory (for --stateful)")).action(runConvertTree);
130
+ addStrictOptions(program
131
+ .command("roundtrip-tree")
132
+ .description("Batch roundtrip-validate native workflows under a directory")
133
+ .argument("<dir>", "Directory to scan for native workflows")
134
+ .option("--cache-dir <dir>", "Tool cache directory")
135
+ .option("--format <fmt>", "Force source format (must resolve to native)")
136
+ .option("--json", "Output structured JSON report")
137
+ .option("--errors-only", "List only files with errors or failures")
138
+ .option("--benign-only", "List only files with benign diffs (no errors, no failures)")
139
+ .option("--brief", "Omit per-file lines; print only the aggregate summary")
140
+ .option("--report-markdown [file]", "Write Markdown report to file (or stdout if omitted)")
141
+ .option("--report-html [file]", "Write HTML report to file (or stdout if omitted)")).action(runRoundtripTree);
142
+ program
143
+ .command("validate-tests-tree")
144
+ .description("Batch validate workflow-test files (*-tests.yml / *.gxwf-tests.yml) under a directory")
145
+ .argument("<dir>", "Directory to scan for test files")
146
+ .option("--json", "Output structured JSON report")
147
+ .option("--auto-workflow", "Pair each tests file with a sibling workflow by filename convention (foo.gxwf-tests.yml ↔ foo.gxwf.yml/foo.ga) and cross-check inputs/outputs")
148
+ .action(runValidateTestsTree);
149
+ program.parse();
150
+ //# sourceMappingURL=gxwf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gxwf.js","sourceRoot":"","sources":["../../src/bin/gxwf.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC,oFAAoF,CAAC;KACjG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB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M,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;KACnD,MAAM,CAAC,gBAAgB,EAAE,8CAA8C,CAAC;KACxE,MAAM,CAAC,QAAQ,EAAE,+BAA+B,CAAC;KACjD,MAAM,CAAC,eAAe,EAAE,yCAAyC,CAAC;KAClE,MAAM,CAAC,eAAe,EAAE,4DAA4D,CAAC;KACrF,MAAM,CAAC,SAAS,EAAE,uDAAuD,CAAC;KAC1E,MAAM,CAAC,0BAA0B,EAAE,sDAAsD,CAAC;KAC1F,MAAM,CAAC,sBAAsB,EAAE,kDAAkD,CAAC,CACtF,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAE3B,OAAO;KACJ,OAAO,CAAC,qBAAqB,CAAC;KAC9B,WAAW,CACV,uFAAuF,CACxF;KACA,QAAQ,CAAC,OAAO,EAAE,kCAAkC,CAAC;KACrD,MAAM,CAAC,QAAQ,EAAE,+BAA+B,CAAC;KACjD,MAAM,CACL,iBAAiB,EACjB,+IAA+I,CAChJ;KACA,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAEhC,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
- import { ToolInfoService } from "@galaxy-tool-util/core";
1
+ import { makeNodeToolInfoService } from "@galaxy-tool-util/core/node";
2
2
  export async function runAdd(toolId, opts) {
3
- const service = new ToolInfoService({
3
+ const service = makeNodeToolInfoService({
4
4
  cacheDir: opts.cacheDir,
5
5
  galaxyUrl: opts.galaxyUrl,
6
6
  });
@@ -1 +1 @@
1
- {"version":3,"file":"add.js","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAQzD,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,MAAc,EAAE,IAAgB;IAC3D,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC;QAClC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,SAAS,EAAE,IAAI,CAAC,SAAS;KAC1B,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;AAC1E,CAAC"}
1
+ {"version":3,"file":"add.js","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAQtE,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,MAAc,EAAE,IAAgB;IAC3D,MAAM,OAAO,GAAG,uBAAuB,CAAC;QACtC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,SAAS,EAAE,IAAI,CAAC,SAAS;KAC1B,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type ReportOutputOptions } from "./report-output.js";
2
+ export interface CleanTreeOptions extends ReportOutputOptions {
3
+ outputDir?: string;
4
+ format?: string;
5
+ json?: boolean;
6
+ skipUuid?: boolean;
7
+ }
8
+ export declare function runCleanTree(dir: string, opts: CleanTreeOptions): Promise<void>;
9
+ //# sourceMappingURL=clean-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clean-tree.d.ts","sourceRoot":"","sources":["../../src/commands/clean-tree.ts"],"names":[],"mappings":"AAeA,OAAO,EAAsC,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElG,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDrF"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * `gxwf clean-tree` — batch clean all workflows under a directory.
3
+ */
4
+ import { cleanWorkflow, buildWorkflowCleanResult, buildTreeCleanReport, } from "@galaxy-tool-util/schema";
5
+ import { mkdir, writeFile } from "node:fs/promises";
6
+ import { dirname, join } from "node:path";
7
+ import { resolveFormat, serializeWorkflow } from "./workflow-io.js";
8
+ import { collectTree } from "./tree.js";
9
+ import { writeReportOutput, writeReportHtml } from "./report-output.js";
10
+ export async function runCleanTree(dir, opts) {
11
+ const outputDir = opts.outputDir;
12
+ const treeResult = await collectTree(dir, async (info, data) => {
13
+ const format = resolveFormat(data, opts.format);
14
+ const cleanOpts = { skipUuid: opts.skipUuid };
15
+ const { results: stepResults } = await cleanWorkflow(data, cleanOpts);
16
+ if (outputDir) {
17
+ const outPath = join(outputDir, info.relativePath);
18
+ await mkdir(dirname(outPath), { recursive: true });
19
+ const serialized = serializeWorkflow(data, format);
20
+ await writeFile(outPath, serialized, "utf-8");
21
+ }
22
+ return buildWorkflowCleanResult(info.relativePath, stepResults);
23
+ });
24
+ const report = buildReport(treeResult);
25
+ await writeReportOutput("clean_tree.md.j2", report, { reportMarkdown: opts.reportMarkdown });
26
+ await writeReportHtml("clean-tree", report, opts.reportHtml);
27
+ if (opts.json) {
28
+ console.log(JSON.stringify(report, null, 2));
29
+ process.exitCode = report.summary.affected > 0 ? 1 : 0;
30
+ return;
31
+ }
32
+ // Text output
33
+ for (const wf of report.workflows) {
34
+ if (wf.error) {
35
+ console.error(` ${wf.path}: ERROR (${wf.error})`);
36
+ continue;
37
+ }
38
+ if (wf.skipped_reason) {
39
+ console.warn(` ${wf.path}: SKIPPED (${wf.skipped_reason})`);
40
+ continue;
41
+ }
42
+ const changed = wf.total_removed > 0;
43
+ console.log(` ${wf.path}: ${changed ? "CHANGED" : "clean"}`);
44
+ }
45
+ const s = report.summary;
46
+ const total = report.workflows.length;
47
+ const suffix = outputDir ? ` (written to ${outputDir})` : "";
48
+ console.log(`\nSummary: ${total} workflows | ${s.affected} changed, ${s.clean} unchanged${suffix}`);
49
+ // Exit 1 if any workflows had stale keys (like Python's clean-tree)
50
+ process.exitCode = s.affected > 0 ? 1 : 0;
51
+ }
52
+ function buildReport(treeResult) {
53
+ const workflows = [];
54
+ for (const o of treeResult.outcomes) {
55
+ if (o.error) {
56
+ workflows.push(buildWorkflowCleanResult(o.info.relativePath, [], { error: o.error }));
57
+ continue;
58
+ }
59
+ if (o.skipped) {
60
+ workflows.push(buildWorkflowCleanResult(o.info.relativePath, [], {
61
+ skipped_reason: o.skipReason ?? null,
62
+ }));
63
+ continue;
64
+ }
65
+ workflows.push(o.result);
66
+ }
67
+ return buildTreeCleanReport(treeResult.root, workflows);
68
+ }
69
+ //# sourceMappingURL=clean-tree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clean-tree.js","sourceRoot":"","sources":["../../src/commands/clean-tree.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,aAAa,EA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Html?: string | boolean;
7
+ skipUuid?: boolean;
8
+ }
9
+ export declare function runClean(filePath: string, opts: CleanOptions): Promise<void>;
10
+ //# sourceMappingURL=clean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clean.d.ts","sourceRoot":"","sources":["../../src/commands/clean.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA0ClF"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * `gxwf clean` — strip stale keys and decode legacy tool_state encoding.
3
+ */
4
+ import { cleanWorkflow, buildSingleCleanReport, } from "@galaxy-tool-util/schema";
5
+ import { readWorkflowFile, resolveFormat, serializeWorkflow, writeWorkflowOutput, } from "./workflow-io.js";
6
+ import { writeReportHtml } from "./report-output.js";
7
+ export async function runClean(filePath, opts) {
8
+ const data = await readWorkflowFile(filePath);
9
+ if (!data)
10
+ return;
11
+ const format = resolveFormat(data, opts.format);
12
+ const before = opts.diff ? JSON.stringify(data, null, 2) : null;
13
+ const cleanOpts = { skipUuid: opts.skipUuid };
14
+ const { results } = await cleanWorkflow(data, cleanOpts);
15
+ if (opts.json || opts.reportHtml) {
16
+ const report = buildSingleCleanReport(filePath, results);
17
+ if (opts.json) {
18
+ console.log(JSON.stringify(report, null, 2));
19
+ }
20
+ await writeReportHtml("clean", report, opts.reportHtml);
21
+ return;
22
+ }
23
+ if (opts.diff) {
24
+ const after = JSON.stringify(data, null, 2);
25
+ if (before === after) {
26
+ console.log("No changes.");
27
+ return;
28
+ }
29
+ // Simple line-by-line diff
30
+ const beforeLines = before.split("\n");
31
+ const afterLines = after.split("\n");
32
+ const maxLen = Math.max(beforeLines.length, afterLines.length);
33
+ for (let i = 0; i < maxLen; i++) {
34
+ const bLine = beforeLines[i];
35
+ const aLine = afterLines[i];
36
+ if (bLine !== aLine) {
37
+ if (bLine !== undefined)
38
+ console.log(`- ${bLine}`);
39
+ if (aLine !== undefined)
40
+ console.log(`+ ${aLine}`);
41
+ }
42
+ }
43
+ return;
44
+ }
45
+ const output = serializeWorkflow(data, format);
46
+ await writeWorkflowOutput(output, opts.output, "Cleaned workflow");
47
+ }
48
+ //# sourceMappingURL=clean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clean.js","sourceRoot":"","sources":["../../src/commands/clean.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,aAAa,EACb,sBAAsB,GAEvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAWrD,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,QAAgB,EAAE,IAAkB;IACjE,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,CAAC,IAAI;QAAE,OAAO;IAElB,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEhE,MAAM,SAAS,GAAyB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpE,MAAM,EAAE,OAAO,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AAO,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;gBACnD,IAAI,KAAK,KAAK,SAAS;oBAAE,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;YACrD,CAAC;QACH,CAAC;QACD,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC/C,MAAM,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACrE,CAAC"}
@@ -1,10 +1,10 @@
1
- import { ToolCache } from "@galaxy-tool-util/core";
1
+ import { makeNodeToolCache } from "@galaxy-tool-util/core/node";
2
2
  export async function runClear(prefix, opts) {
3
- const cache = new ToolCache({ cacheDir: opts.cacheDir });
3
+ const cache = makeNodeToolCache({ cacheDir: opts.cacheDir });
4
4
  await cache.index.load();
5
- const before = cache.listCached().length;
5
+ const before = (await cache.listCached()).length;
6
6
  await cache.clearCache(prefix);
7
- const after = cache.listCached().length;
7
+ const after = (await cache.listCached()).length;
8
8
  const removed = before - after;
9
9
  if (prefix) {
10
10
  console.log(`Removed ${removed} entries matching "${prefix}".`);
@@ -1 +1 @@
1
- {"version":3,"file":"clear.js","sourceRoot":"","sources":["../../src/commands/clear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,MAA0B,EAAE,IAAkB;IAC3E,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACzB,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC;IACzC,MAAM,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC;IACxC,MAAM,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/B,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,sBAAsB,MAAM,IAAI,CAAC,CAAC;IAClE,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,sBAAsB,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"clear.js","sourceRoot":"","sources":["../../src/commands/clear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAMhE,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,MAA0B,EAAE,IAAkB;IAC3E,MAAM,KAAK,GAAG,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7D,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACzB,MAAM,MAAM,GAAG,CAAC,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAC/B,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,sBAAsB,MAAM,IAAI,CAAC,CAAC;IAClE,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,sBAAsB,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { type StepConversionStatus } from "@galaxy-tool-util/schema";
2
+ import { type ToolLoadStatus } from "./stateful-tool-inputs.js";
3
+ import { type StrictOptions } from "./strict-options.js";
4
+ import { type TreeSummary } from "./tree.js";
5
+ export interface ConvertTreeOptions extends StrictOptions {
6
+ to?: string;
7
+ outputDir?: string;
8
+ compact?: boolean;
9
+ yaml?: boolean;
10
+ format?: string;
11
+ json?: boolean;
12
+ reportJson?: boolean;
13
+ stateful?: boolean;
14
+ cacheDir?: string;
15
+ }
16
+ export interface WorkflowConvertResult {
17
+ relativePath: string;
18
+ sourceFormat: string;
19
+ targetFormat: string;
20
+ statefulSteps?: StepConversionStatus[];
21
+ toolLoadErrors?: ToolLoadStatus[];
22
+ }
23
+ export interface ConvertTreeReport {
24
+ root: string;
25
+ results: (WorkflowConvertResult | {
26
+ relativePath: string;
27
+ error: string;
28
+ })[];
29
+ summary: TreeSummary;
30
+ }
31
+ export declare function runConvertTree(dir: string, opts: ConvertTreeOptions): Promise<void>;
32
+ //# sourceMappingURL=convert-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert-tree.d.ts","sourceRoot":"","sources":["../../src/commands/convert-tree.ts"],"names":[],"mappings":"AAKA,OAAO,EAQL,KAAK,oBAAoB,EAE1B,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3F,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAE9F,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAA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