@n8n-as-code/skills 2.1.3-next.24 → 2.1.4-next.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@ This package powers the shared n8n ontology behind `n8n-as-code`: searchable nod
6
6
 
7
7
  > **⚠️ BREAKING CHANGE (v0.16.0)**: Workflows are now generated and documented in **TypeScript format** (`.workflow.ts`) instead of JSON for better AI compatibility and readability.
8
8
 
9
- > **BREAKING CHANGE (v2.0.0)**: Generated agent context now assumes the environment model: use `n8nac env` for workspace environments, `n8nac workspace` for readiness/migration/upgrade, and `n8n-manager` for local managed instances. Legacy workspace-local instance libraries are no longer treated as the source of truth.
9
+ > **BREAKING CHANGE (v2.0.0)**: Generated agent context now assumes the workspace environment model: use `n8nac env` for workspace environments, `n8nac workspace` for readiness and unified migration, and `n8n-manager` for local managed instances. Legacy workspace-local instance libraries are no longer treated as the source of truth.
10
10
 
11
11
  Documentation: [CLI guide](https://n8nascode.dev/docs/usage/cli/) · [n8n-manager guide](https://n8nascode.dev/docs/usage/n8n-manager/) · [Skills guide](https://n8nascode.dev/docs/usage/skills/)
12
12
 
@@ -259,7 +259,7 @@ If you prefer a different location, set `customNodesPath` in `n8nac-config.json`
259
259
  ```json
260
260
  {
261
261
  "host": "https://my-n8n.example.com",
262
- "syncFolder": "workflows",
262
+ "workflowsPath": "workflows/dev",
263
263
  "projectId": "...",
264
264
  "projectName": "...",
265
265
  "customNodesPath": "./config/custom-nodes.json"
@@ -11,21 +11,21 @@ Use `{{N8NAC_CMD}}` as the primary interface. Use `{{N8N_MANAGER_CMD}}` only for
11
11
 
12
12
  ## Context Root Protocol
13
13
 
14
- - Treat the current context root as the directory containing `n8nac-config.json`, `AGENTS.md`, `.agents/skills`, and the workflow sync folder.
14
+ - Treat the current context root as the directory containing `n8nac-config.json`, `AGENTS.md`, `.agents/skills`, and the configured `workflowsPath`.
15
15
  - {{N8NAC_CONTEXT_ROOT_HINT}}
16
16
  - Before any n8n work, first run `{{N8NAC_CMD}} update-ai` from the context root, then read `AGENTS.md`. `update-ai` is designed to create or refresh the n8n-as-code block without destroying existing user or agent instructions.
17
17
  - Use the exact `n8nac command` and `n8n-manager command` listed in `AGENTS.md`. Those context-root commands override the portable examples in this skill.
18
18
  - Run every `{{N8NAC_CMD}} env ...`, `{{N8NAC_CMD}} workspace ...`, `{{N8NAC_CMD}} list`, `pull`, `push`, `validate`, `test`, and `update-ai` command from the context root unless the user explicitly gives another context root.
19
19
  - `AGENTS.md` is bootstrap context only, not a source of configuration truth.
20
- - Do not infer environment, project, sync folder, or workflow directory from `AGENTS.md`.
20
+ - Do not infer environment, project, or `workflowsPath` from `AGENTS.md`.
21
21
  - Before n8n work, resolve the effective context from the backend:
22
22
 
23
23
  ```bash
24
24
  {{N8NAC_CMD}} env status --json
25
25
  ```
26
26
 
27
- - Use the returned `workflowDir` for workflow files. Treat it as an opaque backend-derived path that may contain generated or hashed segments.
28
- - `syncFolder` is only the user-configured sync root, not the workflow directory. Do not reconstruct `workflowDir` from `syncFolder`, environment name/id, `instanceIdentifier`, `instanceUserIdentifier`, `projectId`, or `projectName`.
27
+ - Use the returned `workflowsPath` for workflow files. It is the configured workflow directory for the active environment.
28
+ - Do not reconstruct `workflowsPath` from environment name/id, `instanceIdentifier`, `instanceUserIdentifier`, `projectId`, `projectName`, or legacy sync fields.
29
29
  - Never write `n8nac-config.json`, `~/.n8n-manager`, or n8n-manager secret files by hand.
30
30
 
31
31
  ## Workspace Readiness
@@ -82,7 +82,7 @@ Migration is one user-facing command. Do not reason about internal migration pha
82
82
  10. Configure the environment with:
83
83
 
84
84
  ```bash
85
- {{N8NAC_CMD}} env add <name> --base-url <url> --sync-folder workflows
85
+ {{N8NAC_CMD}} env add <name> --base-url <url> --workflows-path workflows/<name>
86
86
  {{N8NAC_CMD}} env auth set <name> --api-key-stdin
87
87
  {{N8NAC_CMD}} env use <name>
88
88
  ```
@@ -90,7 +90,7 @@ Migration is one user-facing command. Do not reason about internal migration pha
90
90
  For a managed local instance:
91
91
 
92
92
  ```bash
93
- {{N8NAC_CMD}} env add Local --managed-instance <id> --sync-folder workflows
93
+ {{N8NAC_CMD}} env add Local --managed-instance <id> --workflows-path workflows/local
94
94
  {{N8NAC_CMD}} env use Local
95
95
  ```
96
96
 
@@ -98,12 +98,12 @@ For a managed local instance:
98
98
 
99
99
  ## Environments
100
100
 
101
- Use `{{N8NAC_CMD}} env ...` for workspace environments, remote URLs, active environment, API-key binding, projects, and sync folders.
101
+ Use `{{N8NAC_CMD}} env ...` for workspace environments, remote URLs, active environment, API-key binding, projects, and workflow paths.
102
102
 
103
103
  ```bash
104
104
  {{N8NAC_CMD}} env status --json
105
105
  {{N8NAC_CMD}} env list
106
- {{N8NAC_CMD}} env add <name> --base-url <url> --sync-folder workflows
106
+ {{N8NAC_CMD}} env add <name> --base-url <url> --workflows-path workflows/<name>
107
107
  {{N8NAC_CMD}} env auth set <name> --api-key-stdin
108
108
  {{N8NAC_CMD}} env use <name>
109
109
  ```
@@ -117,7 +117,7 @@ Use `{{N8NAC_CMD}} env ...` for workspace environments, remote URLs, active envi
117
117
  Attach a managed local instance to the workspace with `{{N8NAC_CMD}} env ...`:
118
118
 
119
119
  ```bash
120
- {{N8NAC_CMD}} env add Local --managed-instance <id> --sync-folder workflows
120
+ {{N8NAC_CMD}} env add Local --managed-instance <id> --workflows-path workflows/local
121
121
  {{N8NAC_CMD}} env use Local
122
122
  ```
123
123
 
@@ -195,7 +195,7 @@ Instance and tunnel operations are per managed local instance:
195
195
  ```
196
196
 
197
197
  - `push` requires the full workflow file path, either absolute or context-root-relative. Do not pass a bare filename.
198
- - For a new workflow, create the file inside the `workflowDir` returned by `env status --json`, then confirm it with `{{N8NAC_CMD}} list --local`.
198
+ - For a new workflow, create the file inside the `workflowsPath` returned by `env status --json`, then confirm it with `{{N8NAC_CMD}} list --local`.
199
199
  - If push/pull reports a conflict, use explicit resolution commands. Do not overwrite remote changes blindly.
200
200
  - `pull` and conflict resolution operate on a single workflow ID.
201
201
  - `list` is the lightweight command that covers all workflows at once.
@@ -491,7 +491,7 @@ When a workflow is blocked by missing credentials, resolve the credential gap wi
491
491
  For most workflow tasks:
492
492
 
493
493
  1. Resolve context with `env status --json`.
494
- 2. Read `workflowDir` from the backend response.
494
+ 2. Read `workflowsPath` from the backend response.
495
495
  3. Inspect existing workflows with `list`.
496
496
  4. Pull before editing an existing workflow.
497
497
  5. Search examples and schemas.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-05-12T20:28:39.878Z",
2
+ "generatedAt": "2026-05-19T09:59:36.200Z",
3
3
  "n8nVersion": "unknown",
4
4
  "sourceFileCount": 428,
5
5
  "scanDirectories": [