n8n/packages/cli
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
..
bin chore: Initial V2 changes (#22553) 2025-12-01 20:44:59 +02:00
scripts feat(core): Add new agent slack integration (#35591) 2026-08-17 09:27:50 +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
templates fix(core): Keep the account panel on hosted forms once every account is connected (#36429) 2026-08-18 06:38:47 +00:00
test feat(core): Let the agent read and address workflow folders (no-changelog) 2026-08-27 14:00:20 +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
BREAKING-CHANGES.md fix: Security patches (#22748) 2025-12-05 13:28:39 +00:00
eslint.config.mjs refactor(API): Route public API credentials through the shared credentials service (#36048) 2026-08-17 13:14:21 +00:00
nodemon.json
package.json refactor(API): Migrate workflow archive, unarchive, and transfer routes to the decorator pattern (no-changelog) (#35835) 2026-08-18 15:14:06 +00:00
tsconfig.build.json feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662) 2026-07-23 16:09:54 +00:00
tsconfig.json feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662) 2026-07-23 16:09:54 +00:00
vitest.config.base.ts feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662) 2026-07-23 16:09:54 +00:00
vitest.config.integration.testcontainers.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
vitest.config.integration.ts refactor(core): Tidy agent-eval runner and rating-persistence internals (no-changelog) (#35424) 2026-08-04 10:42:20 +00:00
vitest.config.migration.testcontainers.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
vitest.config.migration.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
vitest.config.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
vitest.tsc-entity-transform.ts chore: Consolidate ts tooling catalog (#34310) 2026-07-16 10:10:12 +00:00
vitest.workspace-externals.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00