n8n/packages/@n8n/db
Arvin Ansari 70b3f2fcaf feat(core): Let the agent read which nodes the workflows in scope use (no-changelog)
The dependency index already records a row per node type per workflow, kept
current on every save, and the workflow repository already resolves a
`nodeTypes` filter against it. No caller ever supplied one, so "which workflows
use Postgres" meant fetching every workflow and parsing its nodes, and "what is
this folder built out of" was not answerable at all.

- `workflows(list)` gains `nodeTypes`. It matches the node a workflow actually
  contains, so a workflow merely NAMED for a service is correctly excluded and
  one that uses it under an unrelated name is correctly found.
- `workflows(node-usage)` returns the node-type histogram for a scope, most-used
  first, and composes with the folder arguments. Offered only where the adapter
  can answer it, so the agent is never shown a summary it would get an error from.
- Counts DISTINCT workflows rather than node instances: three HTTP Request nodes
  in one workflow are one user of the type, which is the question being asked.
- The scan is capped, and a capped scan says its counts are a lower bound —
  silently truncating would read as a total, and these are numbers a caller
  quotes back to the user.
- Gated separately from folder context. The two answer different questions
  (where something lives vs what it is made of), and one switch could not tell
  which of them moved a result.

Shared field descriptions are hoisted to constants because the schema sanitizer
requires a single description per field name across the action union.
2026-08-27 19:06:06 +02:00
..
scripts ci: Run DB tests against the full supported Postgres range (#35960) 2026-08-11 09:49:07 +00:00
src feat(core): Let the agent read which nodes the workflows in scope use (no-changelog) 2026-08-27 19:06:06 +02:00
AGENTS.md chore(core): Lock the @n8n/typeorm import ratchet and document the boundary (no-changelog) (#34370) 2026-07-21 08:26:21 +00:00
eslint.config.mjs fix(core): Prevent sub-workflow failures after transferring a deleted user's workflows (#33772) 2026-07-14 07:33:01 +00:00
package.json 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
tsconfig.build.json chore: Migrate the rest of packages/@n8n to typescript 7 (#34332) 2026-07-17 10:45:58 +03:00
tsconfig.json chore: Migrate the rest of packages/@n8n to typescript 7 (#34332) 2026-07-17 10:45:58 +03:00
vite.config.ts chore: Consolidate ts tooling catalog (#34310) 2026-07-16 10:10:12 +00:00