@galaxy-foundry/gxwf-foundry
v0.1.1
Published
Galaxy Workflow Foundry CLI — produce and validate Mold IO artifacts.
Maintainers
Readme
@galaxy-foundry/gxwf-foundry
Galaxy Workflow Foundry CLI. Produces and validates Mold IO artifacts (summaries, recommendations, test files) from a single foundry bin.
Status
v0.1.0 — initial public release.
Install
npm install -g @galaxy-foundry/gxwf-foundry
# or, ephemeral:
npx --package @galaxy-foundry/gxwf-foundry foundry --helpRequires Node.js >= 20.
Subcommands
foundry summarize-nextflow <path-or-url> [options] # produce + validate
foundry validate-summary-nextflow <summary.json>
foundry validate-summary-cwl <summary.json>
foundry validate-galaxy-tool-discovery <recommendation.json>
foundry validate-galaxy-tool-summary <manifest.json>
foundry validate-tests-format <tests.yml> [--workflow <wf>] [--json]summarize-nextflow wraps @galaxy-foundry/summarize-nextflow. The validators exit 0 for valid input, 3 for schema-validation failure, and 1 for input errors (missing file, malformed JSON/YAML).
Library use
The same validators are exported as plain functions for TS consumers:
import { summaryCwlValidator } from "@galaxy-foundry/gxwf-foundry";
const { valid, errors } = summaryCwlValidator.validate(data);Schema JSON is reachable via sub-path exports: @galaxy-foundry/gxwf-foundry/schemas/summary-cwl.json etc.
CLI metadata (program/command/option shape) is exported as static data from @galaxy-foundry/gxwf-foundry/meta:
import { foundryCliMeta } from "@galaxy-foundry/gxwf-foundry/meta";Browser-safe; no commander or node-only deps.
Schema sources
summary-cwl,galaxy-tool-discovery,galaxy-tool-summary— Foundry-authored, JSON insrc/schemas/<name>/.tests-format— vendored from@galaxy-tool-util/schema; refresh viapnpm sync.summary-nextflowlives in the producing package (@galaxy-foundry/summarize-nextflow); foundry imports it as a peer.
License
MIT.
