@galaxy-tool-util/cli 1.1.0 → 1.2.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.
- package/dist/commands/annotate-connections.d.ts +30 -0
- package/dist/commands/annotate-connections.d.ts.map +1 -0
- package/dist/commands/annotate-connections.js +42 -0
- package/dist/commands/annotate-connections.js.map +1 -0
- package/dist/commands/connection-validation.d.ts +20 -0
- package/dist/commands/connection-validation.d.ts.map +1 -0
- package/dist/commands/connection-validation.js +26 -0
- package/dist/commands/connection-validation.js.map +1 -0
- package/dist/commands/cytoscapejs/_template-bundled.d.ts +2 -0
- package/dist/commands/cytoscapejs/_template-bundled.d.ts.map +1 -0
- package/dist/commands/cytoscapejs/_template-bundled.js +182 -0
- package/dist/commands/cytoscapejs/_template-bundled.js.map +1 -0
- package/dist/commands/cytoscapejs.d.ts +12 -0
- package/dist/commands/cytoscapejs.d.ts.map +1 -0
- package/dist/commands/cytoscapejs.js +62 -0
- package/dist/commands/cytoscapejs.js.map +1 -0
- package/dist/commands/mermaid.d.ts +2 -0
- package/dist/commands/mermaid.d.ts.map +1 -1
- package/dist/commands/mermaid.js +5 -1
- package/dist/commands/mermaid.js.map +1 -1
- package/dist/commands/validate-workflow.d.ts +1 -0
- package/dist/commands/validate-workflow.d.ts.map +1 -1
- package/dist/commands/validate-workflow.js +38 -3
- package/dist/commands/validate-workflow.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/extract-spec.d.ts +13 -0
- package/dist/meta/extract-spec.d.ts.map +1 -0
- package/dist/meta/extract-spec.js +90 -0
- package/dist/meta/extract-spec.js.map +1 -0
- package/dist/meta/index.d.ts +8 -0
- package/dist/meta/index.d.ts.map +1 -0
- package/dist/meta/index.js +21 -0
- package/dist/meta/index.js.map +1 -0
- package/dist/meta/spec-types.d.ts +40 -0
- package/dist/meta/spec-types.d.ts.map +1 -0
- package/dist/meta/spec-types.js +11 -0
- package/dist/meta/spec-types.js.map +1 -0
- package/dist/meta/specs.d.ts +4 -0
- package/dist/meta/specs.d.ts.map +1 -0
- package/dist/meta/specs.js +10 -0
- package/dist/meta/specs.js.map +1 -0
- package/dist/meta/types.d.ts +55 -0
- package/dist/meta/types.d.ts.map +1 -0
- package/dist/meta/types.js +9 -0
- package/dist/meta/types.js.map +1 -0
- package/dist/meta-build.d.ts +13 -0
- package/dist/meta-build.d.ts.map +1 -0
- package/dist/meta-build.js +60 -0
- package/dist/meta-build.js.map +1 -0
- package/dist/programs/galaxy-tool-cache.d.ts +5 -1
- package/dist/programs/galaxy-tool-cache.d.ts.map +1 -1
- package/dist/programs/galaxy-tool-cache.js +12 -56
- package/dist/programs/galaxy-tool-cache.js.map +1 -1
- package/dist/programs/gxwf.d.ts +7 -1
- package/dist/programs/gxwf.d.ts.map +1 -1
- package/dist/programs/gxwf.js +36 -184
- package/dist/programs/gxwf.js.map +1 -1
- package/dist/spec/build-program.d.ts +12 -0
- package/dist/spec/build-program.d.ts.map +1 -0
- package/dist/spec/build-program.js +102 -0
- package/dist/spec/build-program.js.map +1 -0
- package/package.json +10 -4
- package/spec/galaxy-tool-cache.json +152 -0
- package/spec/gxwf.json +693 -0
package/spec/gxwf.json
ADDED
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gxwf",
|
|
3
|
+
"description": "Galaxy workflow operations — validate, clean, lint, convert (single-file and tree)",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"optionGroups": {
|
|
6
|
+
"strict": [
|
|
7
|
+
{
|
|
8
|
+
"flags": "--strict",
|
|
9
|
+
"description": "Shorthand for --strict-structure --strict-encoding --strict-state"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"flags": "--strict-structure",
|
|
13
|
+
"description": "Reject unknown keys at envelope/step level"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"flags": "--strict-encoding",
|
|
17
|
+
"description": "Reject JSON-string tool_state and format2 field misuse"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"flags": "--strict-state",
|
|
21
|
+
"description": "Require every tool step to validate; no skips allowed"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"commands": [
|
|
26
|
+
{
|
|
27
|
+
"name": "validate",
|
|
28
|
+
"description": "Validate Galaxy workflow files (structure + optional tool state)",
|
|
29
|
+
"handler": "validateWorkflow",
|
|
30
|
+
"args": [
|
|
31
|
+
{
|
|
32
|
+
"raw": "<file>",
|
|
33
|
+
"description": "Workflow file (.ga, .gxwf.yml)"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"options": [
|
|
37
|
+
{
|
|
38
|
+
"flags": "--format <fmt>",
|
|
39
|
+
"description": "Force format: native or format2 (auto-detected by default)"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"flags": "--no-tool-state",
|
|
43
|
+
"description": "Skip tool state validation"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"flags": "--cache-dir <dir>",
|
|
47
|
+
"description": "Tool cache directory"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"flags": "--mode <mode>",
|
|
51
|
+
"description": "Validation backend: effect (default) or json-schema",
|
|
52
|
+
"default": "effect"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"flags": "--tool-schema-dir <dir>",
|
|
56
|
+
"description": "Directory of pre-exported per-tool JSON Schemas (for offline json-schema mode)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"flags": "--json",
|
|
60
|
+
"description": "Output structured JSON report"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"flags": "--report-html [file]",
|
|
64
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"flags": "--connections",
|
|
68
|
+
"description": "Validate connection-type compatibility (collection algebra, map-over)"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"optionGroups": ["strict"]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "validate-tests",
|
|
75
|
+
"description": "Validate a workflow-test file (*-tests.yml, *.gxwf-tests.yml) against the Galaxy Tests schema",
|
|
76
|
+
"handler": "validateTests",
|
|
77
|
+
"args": [
|
|
78
|
+
{
|
|
79
|
+
"raw": "<file>",
|
|
80
|
+
"description": "Tests file (*-tests.yml)"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"options": [
|
|
84
|
+
{
|
|
85
|
+
"flags": "--json",
|
|
86
|
+
"description": "Output structured JSON report"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"flags": "--workflow <path>",
|
|
90
|
+
"description": "Cross-check job inputs + output assertions against a workflow (.ga / .gxwf.yml)"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "clean",
|
|
96
|
+
"description": "Strip stale keys and decode legacy tool_state encoding",
|
|
97
|
+
"handler": "clean",
|
|
98
|
+
"args": [
|
|
99
|
+
{
|
|
100
|
+
"raw": "<file>",
|
|
101
|
+
"description": "Workflow file (.ga, .gxwf.yml)"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"options": [
|
|
105
|
+
{
|
|
106
|
+
"flags": "--output <file>",
|
|
107
|
+
"description": "Write cleaned workflow to file (default: stdout)"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"flags": "--diff",
|
|
111
|
+
"description": "Show diff of changes instead of writing output"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"flags": "--format <fmt>",
|
|
115
|
+
"description": "Force format: native or format2 (auto-detected by default)"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"flags": "--json",
|
|
119
|
+
"description": "Output structured JSON report"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"flags": "--report-html [file]",
|
|
123
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"flags": "--skip-uuid",
|
|
127
|
+
"description": "Skip stripping uuid fields (errors are always stripped)"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "lint",
|
|
133
|
+
"description": "Lint Galaxy workflow — structural checks, best practices, tool state validation",
|
|
134
|
+
"handler": "lint",
|
|
135
|
+
"args": [
|
|
136
|
+
{
|
|
137
|
+
"raw": "<file>",
|
|
138
|
+
"description": "Workflow file (.ga, .gxwf.yml)"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"options": [
|
|
142
|
+
{
|
|
143
|
+
"flags": "--skip-best-practices",
|
|
144
|
+
"description": "Skip annotation/creator/license/label checks"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"flags": "--skip-state-validation",
|
|
148
|
+
"description": "Skip tool state validation against cached tool definitions"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"flags": "--cache-dir <dir>",
|
|
152
|
+
"description": "Tool cache directory (for state validation)"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"flags": "--format <fmt>",
|
|
156
|
+
"description": "Force format: native or format2 (auto-detected by default)"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"flags": "--json",
|
|
160
|
+
"description": "Output structured JSON result"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"flags": "--report-html [file]",
|
|
164
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"optionGroups": ["strict"]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "convert",
|
|
171
|
+
"description": "Convert between native (.ga) and format2 (.gxwf.yml) formats",
|
|
172
|
+
"handler": "convert",
|
|
173
|
+
"args": [
|
|
174
|
+
{
|
|
175
|
+
"raw": "<file>",
|
|
176
|
+
"description": "Workflow file (.ga, .gxwf.yml)"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"options": [
|
|
180
|
+
{
|
|
181
|
+
"flags": "--to <format>",
|
|
182
|
+
"description": "Target format: native or format2 (infers opposite by default)"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"flags": "--output <file>",
|
|
186
|
+
"description": "Write result to file (default: stdout)"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"flags": "--compact",
|
|
190
|
+
"description": "Omit position info in format2 output"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"flags": "--json",
|
|
194
|
+
"description": "Force JSON output"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"flags": "--yaml",
|
|
198
|
+
"description": "Force YAML output"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"flags": "--format <fmt>",
|
|
202
|
+
"description": "Force source format (auto-detected by default)"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"flags": "--stateful",
|
|
206
|
+
"description": "Use cached tool definitions for schema-aware state re-encoding"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"flags": "--cache-dir <dir>",
|
|
210
|
+
"description": "Tool cache directory (for --stateful)"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"optionGroups": ["strict"]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "roundtrip",
|
|
217
|
+
"description": "Roundtrip-validate a native workflow: native → format2 → native, diff tool_state",
|
|
218
|
+
"handler": "roundtrip",
|
|
219
|
+
"args": [
|
|
220
|
+
{
|
|
221
|
+
"raw": "<file>",
|
|
222
|
+
"description": "Native workflow file (.ga)"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"options": [
|
|
226
|
+
{
|
|
227
|
+
"flags": "--cache-dir <dir>",
|
|
228
|
+
"description": "Tool cache directory"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"flags": "--format <fmt>",
|
|
232
|
+
"description": "Force source format (must resolve to native)"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"flags": "--json",
|
|
236
|
+
"description": "Output structured JSON report"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"flags": "--errors-only",
|
|
240
|
+
"description": "Suppress benign diffs and clean steps from output"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"flags": "--benign-only",
|
|
244
|
+
"description": "Show only steps with benign diffs (no errors, no failures)"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"flags": "--brief",
|
|
248
|
+
"description": "Omit per-diff list; show only the one-line summary"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"optionGroups": ["strict"]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "mermaid",
|
|
255
|
+
"description": "Render a Galaxy workflow as a Mermaid flowchart diagram",
|
|
256
|
+
"handler": "mermaid",
|
|
257
|
+
"args": [
|
|
258
|
+
{
|
|
259
|
+
"raw": "<file>",
|
|
260
|
+
"description": "Workflow file (.ga, .gxwf.yml)"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"raw": "[output]",
|
|
264
|
+
"description": "Output path (.mmd for raw, .md for fenced code block); stdout if omitted"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"options": [
|
|
268
|
+
{
|
|
269
|
+
"flags": "--comments",
|
|
270
|
+
"description": "Render frame comments as Mermaid subgraphs"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"flags": "--annotate-connections",
|
|
274
|
+
"description": "Encode map-over depth and reductions on edges (runs the connection validator)"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"flags": "--cache-dir <dir>",
|
|
278
|
+
"description": "Tool cache directory (used by --annotate-connections)"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "cytoscapejs",
|
|
284
|
+
"description": "Render a Galaxy workflow as Cytoscape.js elements (JSON or standalone HTML)",
|
|
285
|
+
"handler": "cytoscapeJs",
|
|
286
|
+
"args": [
|
|
287
|
+
{
|
|
288
|
+
"raw": "<file>",
|
|
289
|
+
"description": "Workflow file (.ga, .gxwf.yml)"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"raw": "[output]",
|
|
293
|
+
"description": "Output path (.json or .html); stdout JSON if omitted"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"options": [
|
|
297
|
+
{
|
|
298
|
+
"flags": "--html",
|
|
299
|
+
"description": "Force HTML output regardless of file extension"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"flags": "--json",
|
|
303
|
+
"description": "Force JSON output regardless of file extension"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"flags": "--annotate-connections",
|
|
307
|
+
"description": "Encode map-over depth and reductions on edges (runs the connection validator)"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"flags": "--cache-dir <dir>",
|
|
311
|
+
"description": "Tool cache directory (used by --annotate-connections)"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "validate-tree",
|
|
317
|
+
"description": "Batch validate all workflows under a directory",
|
|
318
|
+
"handler": "validateTree",
|
|
319
|
+
"args": [
|
|
320
|
+
{
|
|
321
|
+
"raw": "<dir>",
|
|
322
|
+
"description": "Directory to scan for workflows"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"options": [
|
|
326
|
+
{
|
|
327
|
+
"flags": "--format <fmt>",
|
|
328
|
+
"description": "Force format: native or format2 (auto-detected by default)"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"flags": "--no-tool-state",
|
|
332
|
+
"description": "Skip tool state validation"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"flags": "--cache-dir <dir>",
|
|
336
|
+
"description": "Tool cache directory"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"flags": "--mode <mode>",
|
|
340
|
+
"description": "Validation backend: effect (default) or json-schema",
|
|
341
|
+
"default": "effect"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"flags": "--tool-schema-dir <dir>",
|
|
345
|
+
"description": "Directory of pre-exported per-tool JSON Schemas (for offline json-schema mode)"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"flags": "--json",
|
|
349
|
+
"description": "Output structured JSON report"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"flags": "--report-markdown [file]",
|
|
353
|
+
"description": "Write Markdown report to file (or stdout if omitted)"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"flags": "--report-html [file]",
|
|
357
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"optionGroups": ["strict"]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "lint-tree",
|
|
364
|
+
"description": "Batch lint all workflows under a directory",
|
|
365
|
+
"handler": "lintTree",
|
|
366
|
+
"args": [
|
|
367
|
+
{
|
|
368
|
+
"raw": "<dir>",
|
|
369
|
+
"description": "Directory to scan for workflows"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"options": [
|
|
373
|
+
{
|
|
374
|
+
"flags": "--skip-best-practices",
|
|
375
|
+
"description": "Skip annotation/creator/license/label checks"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"flags": "--skip-state-validation",
|
|
379
|
+
"description": "Skip tool state validation against cached tool definitions"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"flags": "--cache-dir <dir>",
|
|
383
|
+
"description": "Tool cache directory (for state validation)"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"flags": "--format <fmt>",
|
|
387
|
+
"description": "Force format: native or format2 (auto-detected by default)"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"flags": "--json",
|
|
391
|
+
"description": "Output structured JSON report"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"flags": "--report-markdown [file]",
|
|
395
|
+
"description": "Write Markdown report to file (or stdout if omitted)"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"flags": "--report-html [file]",
|
|
399
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
"optionGroups": ["strict"]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "clean-tree",
|
|
406
|
+
"description": "Batch clean all workflows under a directory",
|
|
407
|
+
"handler": "cleanTree",
|
|
408
|
+
"args": [
|
|
409
|
+
{
|
|
410
|
+
"raw": "<dir>",
|
|
411
|
+
"description": "Directory to scan for workflows"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"options": [
|
|
415
|
+
{
|
|
416
|
+
"flags": "--output-dir <dir>",
|
|
417
|
+
"description": "Write cleaned workflows to directory (mirrors source tree)"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"flags": "--format <fmt>",
|
|
421
|
+
"description": "Force format: native or format2 (auto-detected by default)"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"flags": "--json",
|
|
425
|
+
"description": "Output structured JSON report"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"flags": "--report-markdown [file]",
|
|
429
|
+
"description": "Write Markdown report to file (or stdout if omitted)"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"flags": "--report-html [file]",
|
|
433
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"flags": "--skip-uuid",
|
|
437
|
+
"description": "Skip stripping uuid fields (errors are always stripped)"
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "convert-tree",
|
|
443
|
+
"description": "Batch convert all workflows under a directory",
|
|
444
|
+
"handler": "convertTree",
|
|
445
|
+
"args": [
|
|
446
|
+
{
|
|
447
|
+
"raw": "<dir>",
|
|
448
|
+
"description": "Directory to scan for workflows"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"options": [
|
|
452
|
+
{
|
|
453
|
+
"flags": "--to <format>",
|
|
454
|
+
"description": "Target format: native or format2 (infers opposite by default)"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"flags": "--output-dir <dir>",
|
|
458
|
+
"description": "Write converted workflows to directory (required)"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"flags": "--compact",
|
|
462
|
+
"description": "Omit position info in format2 output"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"flags": "--report-json",
|
|
466
|
+
"description": "Output structured JSON report"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"flags": "--json",
|
|
470
|
+
"description": "Force JSON output for converted files"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"flags": "--yaml",
|
|
474
|
+
"description": "Force YAML output"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"flags": "--format <fmt>",
|
|
478
|
+
"description": "Force source format (auto-detected by default)"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"flags": "--stateful",
|
|
482
|
+
"description": "Use cached tool definitions for schema-aware state re-encoding"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"flags": "--cache-dir <dir>",
|
|
486
|
+
"description": "Tool cache directory (for --stateful)"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"optionGroups": ["strict"]
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "roundtrip-tree",
|
|
493
|
+
"description": "Batch roundtrip-validate native workflows under a directory",
|
|
494
|
+
"handler": "roundtripTree",
|
|
495
|
+
"args": [
|
|
496
|
+
{
|
|
497
|
+
"raw": "<dir>",
|
|
498
|
+
"description": "Directory to scan for native workflows"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"options": [
|
|
502
|
+
{
|
|
503
|
+
"flags": "--cache-dir <dir>",
|
|
504
|
+
"description": "Tool cache directory"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"flags": "--format <fmt>",
|
|
508
|
+
"description": "Force source format (must resolve to native)"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"flags": "--json",
|
|
512
|
+
"description": "Output structured JSON report"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"flags": "--errors-only",
|
|
516
|
+
"description": "List only files with errors or failures"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"flags": "--benign-only",
|
|
520
|
+
"description": "List only files with benign diffs (no errors, no failures)"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"flags": "--brief",
|
|
524
|
+
"description": "Omit per-file lines; print only the aggregate summary"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"flags": "--report-markdown [file]",
|
|
528
|
+
"description": "Write Markdown report to file (or stdout if omitted)"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"flags": "--report-html [file]",
|
|
532
|
+
"description": "Write HTML report to file (or stdout if omitted)"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"optionGroups": ["strict"]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "validate-tests-tree",
|
|
539
|
+
"description": "Batch validate workflow-test files (*-tests.yml / *.gxwf-tests.yml) under a directory",
|
|
540
|
+
"handler": "validateTestsTree",
|
|
541
|
+
"args": [
|
|
542
|
+
{
|
|
543
|
+
"raw": "<dir>",
|
|
544
|
+
"description": "Directory to scan for test files"
|
|
545
|
+
}
|
|
546
|
+
],
|
|
547
|
+
"options": [
|
|
548
|
+
{
|
|
549
|
+
"flags": "--json",
|
|
550
|
+
"description": "Output structured JSON report"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"flags": "--auto-workflow",
|
|
554
|
+
"description": "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"
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "tool-search",
|
|
560
|
+
"description": "Search the Galaxy Tool Shed for tools matching a query",
|
|
561
|
+
"handler": "toolSearch",
|
|
562
|
+
"args": [
|
|
563
|
+
{
|
|
564
|
+
"raw": "<query>",
|
|
565
|
+
"description": "Search text (e.g. 'fastqc')"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"options": [
|
|
569
|
+
{
|
|
570
|
+
"flags": "--page-size <n>",
|
|
571
|
+
"description": "Server-side page size",
|
|
572
|
+
"default": "20"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"flags": "--max-results <n>",
|
|
576
|
+
"description": "Hard cap on hits returned",
|
|
577
|
+
"default": "50"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"flags": "--page <n>",
|
|
581
|
+
"description": "Starting page (1-indexed)",
|
|
582
|
+
"default": "1"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"flags": "--owner <user>",
|
|
586
|
+
"description": "Filter hits to a single repo owner (client-side)"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"flags": "--match-name",
|
|
590
|
+
"description": "Drop hits where the query is not a token in the tool name"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"flags": "--json",
|
|
594
|
+
"description": "Emit machine-readable JSON envelope"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"flags": "--enrich",
|
|
598
|
+
"description": "Resolve each hit's ParsedTool and attach it as `parsedTool` (one fetch per hit; off by default)"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"flags": "--cache-dir <dir>",
|
|
602
|
+
"description": "Tool cache directory (used by --enrich; shared with galaxy-tool-cache)"
|
|
603
|
+
}
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "tool-versions",
|
|
608
|
+
"description": "List TRS-published versions of a Tool Shed tool (newest last)",
|
|
609
|
+
"handler": "toolVersions",
|
|
610
|
+
"args": [
|
|
611
|
+
{
|
|
612
|
+
"raw": "<tool-id>",
|
|
613
|
+
"description": "TRS id (owner~repo~tool_id) or pretty form (owner/repo/tool_id)"
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"options": [
|
|
617
|
+
{
|
|
618
|
+
"flags": "--json",
|
|
619
|
+
"description": "Emit machine-readable JSON envelope"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"flags": "--latest",
|
|
623
|
+
"description": "Print only the latest version"
|
|
624
|
+
}
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "tool-revisions",
|
|
629
|
+
"description": "List changeset revisions that publish a Tool Shed tool (ordered oldest→newest). Use for reproducible (name, owner, changeset_revision) workflow pins. Caveat: version strings are not monotonic — the same version can appear in multiple changesets.",
|
|
630
|
+
"handler": "toolRevisions",
|
|
631
|
+
"args": [
|
|
632
|
+
{
|
|
633
|
+
"raw": "<tool-id>",
|
|
634
|
+
"description": "TRS id (owner~repo~tool_id) or pretty form (owner/repo/tool_id)"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
"options": [
|
|
638
|
+
{
|
|
639
|
+
"flags": "--tool-version <v>",
|
|
640
|
+
"description": "Restrict to revisions that publish this exact tool version"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"flags": "--latest",
|
|
644
|
+
"description": "Print only the newest matching revision"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"flags": "--json",
|
|
648
|
+
"description": "Emit machine-readable JSON envelope"
|
|
649
|
+
}
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "repo-search",
|
|
654
|
+
"description": "Search the Galaxy Tool Shed for repositories. Ranking is popularity-boosted; supports server-side --owner / --category filters via reserved keywords.",
|
|
655
|
+
"handler": "repoSearch",
|
|
656
|
+
"args": [
|
|
657
|
+
{
|
|
658
|
+
"raw": "<query>",
|
|
659
|
+
"description": "Search text (e.g. 'fastqc')"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"options": [
|
|
663
|
+
{
|
|
664
|
+
"flags": "--page-size <n>",
|
|
665
|
+
"description": "Server-side page size",
|
|
666
|
+
"default": "20"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"flags": "--max-results <n>",
|
|
670
|
+
"description": "Hard cap on hits returned",
|
|
671
|
+
"default": "50"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"flags": "--page <n>",
|
|
675
|
+
"description": "Starting page (1-indexed)",
|
|
676
|
+
"default": "1"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"flags": "--owner <user>",
|
|
680
|
+
"description": "Restrict to a single owner (server-side `owner:` keyword)"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"flags": "--category <name>",
|
|
684
|
+
"description": "Restrict to a category (server-side `category:` keyword)"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"flags": "--json",
|
|
688
|
+
"description": "Emit machine-readable JSON envelope"
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
|
+
}
|