@galaxy-tool-util/cli 1.4.0 → 1.6.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 (43) hide show
  1. package/dist/commands/draft-extract.d.ts +7 -0
  2. package/dist/commands/draft-extract.d.ts.map +1 -0
  3. package/dist/commands/draft-extract.js +75 -0
  4. package/dist/commands/draft-extract.js.map +1 -0
  5. package/dist/commands/draft-next-step.d.ts +6 -0
  6. package/dist/commands/draft-next-step.d.ts.map +1 -0
  7. package/dist/commands/draft-next-step.js +49 -0
  8. package/dist/commands/draft-next-step.js.map +1 -0
  9. package/dist/commands/draft-validate.d.ts +13 -0
  10. package/dist/commands/draft-validate.d.ts.map +1 -0
  11. package/dist/commands/draft-validate.js +272 -0
  12. package/dist/commands/draft-validate.js.map +1 -0
  13. package/dist/commands/report-output.d.ts +27 -1
  14. package/dist/commands/report-output.d.ts.map +1 -1
  15. package/dist/commands/report-output.js +32 -0
  16. package/dist/commands/report-output.js.map +1 -1
  17. package/dist/commands/validate-tool-source-tree.d.ts +28 -0
  18. package/dist/commands/validate-tool-source-tree.d.ts.map +1 -0
  19. package/dist/commands/validate-tool-source-tree.js +113 -0
  20. package/dist/commands/validate-tool-source-tree.js.map +1 -0
  21. package/dist/commands/validate-tool-source.d.ts +20 -0
  22. package/dist/commands/validate-tool-source.d.ts.map +1 -0
  23. package/dist/commands/validate-tool-source.js +52 -0
  24. package/dist/commands/validate-tool-source.js.map +1 -0
  25. package/dist/commands/validate-workflow.d.ts.map +1 -1
  26. package/dist/commands/validate-workflow.js +7 -1
  27. package/dist/commands/validate-workflow.js.map +1 -1
  28. package/dist/index.d.ts +6 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +4 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/meta/spec-types.d.ts +2 -0
  33. package/dist/meta/spec-types.d.ts.map +1 -1
  34. package/dist/programs/gxwf.d.ts.map +1 -1
  35. package/dist/programs/gxwf.js +10 -0
  36. package/dist/programs/gxwf.js.map +1 -1
  37. package/dist/spec/build-program.js +1 -1
  38. package/dist/spec/build-program.js.map +1 -1
  39. package/dist/workflow/_templates-bundled.d.ts.map +1 -1
  40. package/dist/workflow/_templates-bundled.js +117 -0
  41. package/dist/workflow/_templates-bundled.js.map +1 -1
  42. package/package.json +5 -5
  43. package/spec/gxwf.json +135 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-tool-util/cli",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "galaxy-tool-cache CLI — cache and inspect Galaxy tool metadata",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,10 +39,10 @@
39
39
  "effect": "^3.21.0",
40
40
  "nunjucks": "^3.2.4",
41
41
  "yaml": "^2.8.3",
42
- "@galaxy-tool-util/connection-validation": "1.2.0",
43
- "@galaxy-tool-util/core": "1.2.0",
44
- "@galaxy-tool-util/schema": "1.2.0",
45
- "@galaxy-tool-util/search": "1.2.0"
42
+ "@galaxy-tool-util/connection-validation": "1.6.0",
43
+ "@galaxy-tool-util/core": "1.6.0",
44
+ "@galaxy-tool-util/schema": "1.6.0",
45
+ "@galaxy-tool-util/search": "1.6.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^25.5.0",
package/spec/gxwf.json CHANGED
@@ -91,6 +91,99 @@
91
91
  }
92
92
  ]
93
93
  },
94
+ {
95
+ "name": "draft-validate",
96
+ "description": "Validate a draft Galaxy workflow (class: GalaxyWorkflowDraft)",
97
+ "handler": "draftValidate",
98
+ "args": [
99
+ {
100
+ "raw": "<file>",
101
+ "description": "Draft workflow file (.gxwf.yml)"
102
+ }
103
+ ],
104
+ "options": [
105
+ {
106
+ "flags": "--format <fmt>",
107
+ "description": "Force format: format2 (native is rejected for drafts)"
108
+ },
109
+ {
110
+ "flags": "--json",
111
+ "description": "Output structured JSON report"
112
+ },
113
+ {
114
+ "flags": "--report-html [file]",
115
+ "description": "Write HTML report to file (or stdout if omitted)"
116
+ },
117
+ {
118
+ "flags": "--report-markdown [file]",
119
+ "description": "Write Markdown report to file (or stdout if omitted)"
120
+ },
121
+ {
122
+ "flags": "--concrete",
123
+ "description": "Additionally extract the concrete subset and run the regular `gxwf validate` checks on it"
124
+ },
125
+ {
126
+ "flags": "--cache-dir <dir>",
127
+ "description": "Tool cache directory (for --concrete tool-state validation)"
128
+ },
129
+ {
130
+ "flags": "--no-tool-state",
131
+ "description": "Skip tool-state validation in the --concrete pass (default: enabled when --concrete is set)"
132
+ },
133
+ {
134
+ "flags": "--connections",
135
+ "description": "Validate connection-type compatibility on the --concrete subset (collection algebra, map-over)"
136
+ }
137
+ ],
138
+ "optionGroups": ["strict"]
139
+ },
140
+ {
141
+ "name": "draft-extract",
142
+ "description": "Extract the concrete subset of a draft workflow (drop drafty steps, strip _plan_* fields, promote class when fully concrete)",
143
+ "handler": "draftExtract",
144
+ "args": [
145
+ {
146
+ "raw": "<file>",
147
+ "description": "Draft workflow file (.gxwf.yml)"
148
+ }
149
+ ],
150
+ "options": [
151
+ {
152
+ "flags": "-o, --output <file>",
153
+ "description": "Write extracted workflow to file (default: stdout)"
154
+ },
155
+ {
156
+ "flags": "--report-json [file]",
157
+ "description": "Write extraction report JSON (drops, rewrites, class flip) — to file or stdout if omitted"
158
+ },
159
+ {
160
+ "flags": "--format <fmt>",
161
+ "description": "Force input format: format2 (default; native is rejected)"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "name": "draft-next-step",
167
+ "description": "Pick the next step a downstream agent should work on (or report no remaining work)",
168
+ "handler": "draftNextStep",
169
+ "args": [
170
+ {
171
+ "raw": "<file>",
172
+ "description": "Draft workflow file (.gxwf.yml)"
173
+ }
174
+ ],
175
+ "options": [
176
+ {
177
+ "flags": "--format <fmt>",
178
+ "description": "Force input format: format2 (default; native is rejected)"
179
+ },
180
+ {
181
+ "flags": "--output-format <fmt>",
182
+ "description": "Output format: json (default) or markdown",
183
+ "default": "json"
184
+ }
185
+ ]
186
+ },
94
187
  {
95
188
  "name": "clean",
96
189
  "description": "Strip stale keys and decode legacy tool_state encoding",
@@ -555,6 +648,48 @@
555
648
  }
556
649
  ]
557
650
  },
651
+ {
652
+ "name": "validate-tool-source",
653
+ "description": "Validate a user-defined Galaxy tool source YAML (class: GalaxyUserTool / GalaxyTool) against the Galaxy DynamicToolSources schema + #22615 semantic checks",
654
+ "handler": "validateToolSource",
655
+ "args": [
656
+ {
657
+ "raw": "<file>",
658
+ "description": "Tool source YAML file"
659
+ }
660
+ ],
661
+ "options": [
662
+ {
663
+ "flags": "--json",
664
+ "description": "Output structured JSON report"
665
+ },
666
+ {
667
+ "flags": "--schema-only",
668
+ "description": "Skip semantic (model_validator) checks; structural JSON-Schema validation only"
669
+ }
670
+ ]
671
+ },
672
+ {
673
+ "name": "validate-tool-source-tree",
674
+ "description": "Batch validate user-defined Galaxy tool source YAMLs (auto-discovered by class:) under a directory",
675
+ "handler": "validateToolSourceTree",
676
+ "args": [
677
+ {
678
+ "raw": "<dir>",
679
+ "description": "Directory to scan for tool source files"
680
+ }
681
+ ],
682
+ "options": [
683
+ {
684
+ "flags": "--json",
685
+ "description": "Output structured JSON report"
686
+ },
687
+ {
688
+ "flags": "--schema-only",
689
+ "description": "Skip semantic (model_validator) checks; structural JSON-Schema validation only"
690
+ }
691
+ ]
692
+ },
558
693
  {
559
694
  "name": "tool-search",
560
695
  "description": "Search the Galaxy Tool Shed for tools matching a query",