Commit 78b9cdf
fix: store every node of multi-node community packages (czlonkowski#967) (czlonkowski#969)
* fix: store every node of multi-node community packages (czlonkowski#967)
The npm sync kept one row per package - the first parseable n8n.nodes
manifest entry - so multi-node packages lost the rest (pdf-toolkit
declares 18 nodes, the DB held one). One row per manifest entry now,
sharing package-level README and AI summary; per-node trigger/webhook
detection from the node's own name; the stale-row self-heal becomes a
set-diff over unverified community rows only; save-prune-seed runs in
a transaction; an unreadable package.json skips the package untouched
instead of collapsing it to a single heuristic row; shared summaries
are prompted package-scoped; statistics separate packages from rows.
Conceived by Romuald Członkowski - www.aiadvisors.pl/en
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: refresh bundled DB with multi-node package rows
npm run fetch:community on the new sync: 60 npm packages now yield 133
node rows (was one row each), 1,569 community nodes total. Recovered
siblings inherit the package README and AI summary; one stale row
removed (no longer declared by its package).
Conceived by Romuald Członkowski - www.aiadvisors.pl/en
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix: report a truthful count from deleteStaleCommunityNodes
The method returned result.changes, which the sql.js adapter hard-codes
to 1 regardless of rows deleted. One WHERE string now feeds both a
SELECT COUNT(*) and the DELETE so the reported count cannot drift from
what is removed, and nodesRemoved is re-coupled to that value instead
of the service-side snapshot.
Conceived by Romuald Członkowski - www.aiadvisors.pl/en
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 8265427 commit 78b9cdf
15 files changed
Lines changed: 1037 additions & 222 deletions
File tree
- data
- src
- community
- database
- scripts
- tests
- integration
- community
- database
- unit
- community
- database
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments