n8n/packages/workflow
Yuliia Pominchuk 0a36cf18a7
feat(core): Read a workflow's declared input contract outside its node
The fields a workflow declares on its Execute Workflow Trigger are what a run
surface renders a form from, so a caller needs them without executing the node.
Adds a service that answers eligibility and schema together — a workflow with no
readable contract cannot be offered for direct running, and the caller should
not have to ask twice.

Moves the extraction from nodes-base into n8n-workflow. It now has several
readers — the parent editor's resource mapper, MCP deriving tool arguments, and
the run surfaces — and they must all see the same fields. nodes-base re-exports
so call sites are unchanged.

A pre-1.1 trigger gates its input-source parameter behind the node version and
therefore declares nothing, which reads as passthrough. That is correct, and
covered.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 16:18:42 +02:00
..
src feat(core): Read a workflow's declared input contract outside its node 2026-08-04 16:18:42 +02:00
test fix(core): Derive OAuth resource URL from the served endpoint (no-changelog) (#35441) 2026-08-03 18:37:22 +00:00
eslint.config.mjs build: Add import-x/no-extraneous-dependencies lint rule to n8n-workflow (#27155) 2026-03-24 07:11:00 +00:00
package.json feat(core): Read a workflow's declared input contract outside its node 2026-08-04 16:18:42 +02:00
README.md docs: Fix links to license files in readme (no-changelog) (#10257) 2024-08-06 15:21:57 +01:00
stryker.config.mjs chore: Tune Stryker config and fail the gate on partial mutation runs (#33007) 2026-06-25 17:35:26 +00:00
tsconfig.build.cjs.json chore: Migrate all base packages to TypeScript 7 (#34338) 2026-07-17 12:56:29 +03:00
tsconfig.build.esm.json feat: Modernize build and testing for workflow package (no-changelog) (#16771) 2025-06-30 20:02:16 +03:00
tsconfig.json chore(core): Lock the @n8n/typeorm import ratchet and document the boundary (no-changelog) (#34370) 2026-07-21 08:26:21 +00:00
vitest.config.ts chore: Vite 8 upgrade (#27680) 2026-04-02 09:27:10 +03:00
vitest.stryker.config.ts ci: Stand up multi-package mutation health — nightly passes + mutant-* skills (no-changelog) (#31356) 2026-06-01 08:57:25 +00:00

n8n.io - Workflow Automation

n8n-workflow

Workflow base code for n8n

npm install n8n-workflow

License

You can find the license information here