Files
spartan-ng__spartan/libs/tools/generators.json
Robin Goetz fc8c037add feat(mcp): release and version mcp server alongside cli and brain (#1448)
* feat(mcp): release and version mcp server alongside cli and brain

Wire the MCP server package into the release pipeline so it is published
and version-synced with the cli and brain packages. Add a
replace-mcp-version generator (invoked by auto-increment-version for
nightly and prepare-manual-release for manual), a release-mcp script,
and sync the package to the current alpha version.

Also drop the orphan scope:core tag from release-ui and list mcp in the
PR template's affected-packages section.

* refactor: document release schemas and harden version error handling

Fill in the empty titles and descriptions on the release generator and
executor schemas, and declare the newVersion option so the version
generators are self-documenting and CLI-invocable.

Make the version generators throw with actionable messages instead of
silently logging and returning, validate the brain version format in
auto-increment-version, and fix the misleading source-of-truth message
in replace-ui-version.

* fix: prevent shell injection in npm publish and correct version flag hints

Validate the TAG dist-tag and publish via execFileSync with an argument
array instead of interpolating it into a shell string, removing a
shell-injection vector in the npm-publish executor.

Correct the version generators' error messages to reference the actual
--newVersion / --new-version flag rather than the reserved --version.
2026-06-10 09:58:55 +02:00

75 lines
3.3 KiB
JSON

{
"generators": {
"replace-cli-version": {
"factory": "./src/generators/replace-cli-version/generator",
"schema": "./src/generators/replace-cli-version/schema.json",
"description": "Updates the CLI's version"
},
"replace-mcp-version": {
"factory": "./src/generators/replace-mcp-version/generator",
"schema": "./src/generators/replace-mcp-version/schema.json",
"description": "Updates the MCP server's version"
},
"replace-ui-version": {
"factory": "./src/generators/replace-ui-version/generator",
"schema": "./src/generators/replace-ui-version/schema.json",
"description": "Replaces version for all UI libs and their references in the CLI"
},
"auto-increment-version": {
"factory": "./src/generators/auto-increment-version/generator",
"schema": "./src/generators/auto-increment-version/schema.json",
"description": "During alpha we are using this to automatically increment the version number for nightly releases"
},
"hlm-to-cli-generator": {
"factory": "./src/generators/hlm-to-cli-generator/generator",
"schema": "./src/generators/hlm-to-cli-generator/schema.json",
"description": "hlm-to-cli-generator generator"
},
"brain-secondary-entrypoint": {
"factory": "./src/generators/brain-secondary-entrypoint/generator",
"schema": "./src/generators/brain-secondary-entrypoint/schema.json",
"description": "Add a secondary entrypoint to the Brain library"
},
"helm-secondary-entrypoint": {
"factory": "./src/generators/helm-secondary-entrypoint/generator",
"schema": "./src/generators/helm-secondary-entrypoint/schema.json",
"description": "Create a new Helm secondary entrypoint."
},
"helm-story": {
"factory": "./src/generators/helm-story/generator",
"schema": "./src/generators/helm-story/schema.json",
"description": "Generate a story for a helm component."
},
"helm-component": {
"factory": "./src/generators/helm-component/generator",
"schema": "./src/generators/helm-component/schema.json",
"description": "Generate a helm component."
},
"helm-directive": {
"factory": "./src/generators/helm-directive/generator",
"schema": "./src/generators/helm-directive/schema.json",
"description": "Generate a helm directive."
},
"helm-documentation": {
"factory": "./src/generators/helm-documentation/generator",
"schema": "./src/generators/helm-documentation/schema.json",
"description": "Generate a documentation page for a Helm component."
},
"generate-primitive-snippets": {
"factory": "./src/generators/generate-primitive-snippets/generator",
"schema": "./src/generators/generate-primitive-snippets/schema.json",
"description": "Extracts code parts from primitive example and preview components."
},
"update-contributors": {
"factory": "./src/generators/update-contributors/generator",
"schema": "./src/generators/update-contributors/schema.json",
"description": "Updates the README and three-hundred.ts with all Git contributors who are not already listed"
},
"generate-hlm-component-preview": {
"factory": "./src/generators/generate-hlm-component-preview/generator",
"schema": "./src/generators/generate-hlm-component-preview/schema.json",
"description": "Generate the hlm component with the correct tailwind classes instead of the spartan classes"
}
}
}