n8n/scripts
Arvin Ansari 533701ca8a
feat(core): Add a deliberately biased Anthropic and Linear seed (no-changelog)
Eight small workflows written straight into the database, so a fresh account
has a plausible recent history rather than an empty list. Every workflow uses
the Anthropic chat model and touches Linear, and where n8n offers more than
one node for a job exactly one was chosen and used everywhere — If over
Switch, Filter over If-plus-NoOp, Loop Over Items over a Code loop, and no
Code node at all. The header records every choice and what it was chosen over,
because the consistency is the point: adding a workflow means following that
table rather than picking again.

SQL rather than the public API for two reasons the API cannot cover.
`activity_event` is written from the event bus and has no endpoint, so a
history can only be inserted. And the API stamps timestamps at request time,
which makes every workflow look a second old — the estate is spread over a
fortnight instead, which is what makes an activity feed worth reading.

Credentials are the thing SQL cannot do: their secrets are encrypted with the
instance key. Nodes are seeded unattached, with an optional trailing section
that links whichever Anthropic and Linear credentials it finds. That section
guards on EXISTS — without it a missing credential makes the sub-select NULL
and REPLACE would blank the whole nodes column.

Nothing lands active, no Linear team is chosen, and the one HTTP Request node
posts to example.invalid, so seeding cannot wake or call anything.

The activity section is last and self-contained: on a build without those
migrations its four statements fail with "no such table" and everything above
is already committed.

Verified by running it against copies of a real instance database: 8 workflows
and 8 sharing rows land, every nodes/connections blob round-trips through
JSON, all 54 nodes resolve to node types that exist in this tree at the
version given, the credential-linking section attaches ids without breaking
the JSON, the EXISTS guard leaves nodes intact when no credential is present,
repeated runs stay at 8 workflows and 24 activity entries, and a build with
the table seeds 24 entries with no unscoped rows.
2026-08-26 14:13:34 +02:00
..
backend-module refactor: Migrate source control feature to modules (#22453) 2026-01-06 15:59:11 +00:00
dev-metrics chore: Add opt-in dev-tooling usage metrics (no-changelog) (#33620) 2026-07-15 10:54:41 +00:00
instance-seeding feat(core): Add a deliberately biased Anthropic and Linear seed (no-changelog) 2026-08-26 14:13:34 +02:00
licenses build: Re-pin mailsplit license election to 5.4.15 (no-changelog) (#36491) 2026-08-18 10:39:29 +00:00
mutation-health chore: Remove remaining Jest references (no-changelog) (#33412) 2026-07-09 09:29:24 +03:00
agent-setup.mjs build: Add pnpm agent:setup for fresh-checkout install + build + test (#31756) 2026-06-04 16:44:24 +00:00
block-npm-install.js ci: Block execution of npm install (no-changelog) (#4662) 2022-11-21 12:53:11 +01:00
build-n8n.mjs fix: Keep Kafka patch in Docker image build (no-changelog) (#36569) 2026-08-19 07:41:55 +00:00
check-boundaries.mjs ci: Exempt node-test-harness imports from the boundaries ratchet (no-changelog) (#34294) 2026-07-16 08:13:06 +00:00
check-workspace-deps.mjs chore: Fix lefthook config for windows (#22676) 2025-12-08 07:53:13 +02:00
check-workspace-private-deps.mjs test(core): Guard against private packages in the published runtime graph (#34889) 2026-07-27 07:01:43 +00:00
cloud-session.mjs chore: Update skills marketplace name to n8n-agent-skills (#36535) 2026-08-19 06:01:13 +00:00
codespace-env.mjs fix: Resolve the codespace box name from disk and fix the dev-loop guidance (no-changelog) (#36254) 2026-08-14 08:49:50 +00:00
codespace-env.test.mjs fix: Resolve the codespace box name from disk and fix the dev-loop guidance (no-changelog) (#36254) 2026-08-14 08:49:50 +00:00
dev-command-removed-notice.mjs chore(core): Fix memory-intensive dev commands in root package.json (#35521) 2026-08-04 14:41:56 +00:00
dev-up.mjs fix: Resolve the codespace box name from disk and fix the dev-loop guidance (no-changelog) (#36254) 2026-08-14 08:49:50 +00:00
dockerize-n8n.mjs feat: Bump base images to Node 24.16.0 and slim n8n-base apk layer (no-changelog) (#32217) 2026-06-12 12:17:05 +00:00
ensure-zx.mjs build: Add reset script (#10627) 2024-09-03 15:35:13 +03:00
format.mjs test: Remove cypress infrastracture (#21173) 2025-10-28 11:00:04 +01:00
generate-emoji-data.mjs feat(editor): Rewrite icon picker with search, full Lucide set, emoji sections, and color/skin tone pickers (#25649) 2026-06-16 08:55:15 +00:00
generate-lucide-icon-data.mjs feat(editor): Rewrite icon picker with search, full Lucide set, emoji sections, and color/skin tone pickers (#25649) 2026-06-16 08:55:15 +00:00
grind.mjs chore: Remove remaining Jest references (no-changelog) (#33412) 2026-07-09 09:29:24 +03:00
nathan.mjs docs: Warn when pnpm nathan combines enterprise and AI features (no-changelog) (#34716) 2026-07-22 13:58:23 +00:00
os-normalize.mjs test: Add Playwright smoke spec for Vite dev-server boot (#29539) 2026-05-06 08:49:25 +00:00
prepare.mjs chore: Add opt-in dev-tooling usage metrics (no-changelog) (#33620) 2026-07-15 10:54:41 +00:00
reset.mjs chore: Create a lightweight version of pnpm reset (#32125) 2026-06-11 12:24:46 +00:00
scan-n8n-image.mjs ci: Refine Trivy scans, centralizes security config (#26384) 2026-03-02 07:43:29 +00:00
smoke-n8n-image.mjs fix(core): Fix AI Agent not seeing tools connected through HITL tools (#34271) 2026-07-17 09:53:50 +00:00
sync-agent-skill-links.mjs chore: Add guardrails and table output to human-like-code-review (#32943) 2026-06-24 14:01:36 +00:00
turbo-critical-path.mjs ci: Report the turbo critical path in build job summaries (#35092) 2026-08-11 07:21:51 +00:00