@n8n-as-code/n8nac 2.1.2-next.24 → 2.1.3-next.151

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @n8n-as-code/n8nac
2
2
 
3
+ ## [2.1.2](https://github.com/EtienneLescot/n8n-as-code/compare/@n8n-as-code/n8nac@v2.1.1...@n8n-as-code/n8nac@v2.1.2) (2026-05-13)
4
+
5
+ ### Documentation
6
+
7
+ * align environment terminology ([6c79f5b](https://github.com/EtienneLescot/n8n-as-code/commit/6c79f5b57e349d59035dc57a464401f493dd75b7))
8
+
3
9
  ## [2.1.1](https://github.com/EtienneLescot/n8n-as-code/compare/@n8n-as-code/n8nac@v2.1.0...@n8n-as-code/n8nac@v2.1.1) (2026-05-12)
4
10
 
5
11
  ### Documentation
package/README.md CHANGED
@@ -6,9 +6,9 @@ The plugin uses the same model as VS Code, Claude, and the CLI:
6
6
 
7
7
  | Group | Command | Purpose |
8
8
  |---|---|---|
9
- | Usage Principal | `n8nac env` | Workspace environments |
10
- | Maintenance Workspace | `n8nac workspace` | Readiness, unified migration, upgrade |
11
- | Instances Managées | `n8n-manager` | Local managed instances and tunnels |
9
+ | Primary Usage | `n8nac env` | Workspace environments |
10
+ | Workspace Maintenance | `n8nac workspace` | Readiness and unified workspace migration |
11
+ | Managed Local Instances | `n8n-manager` | Local managed instances and tunnels |
12
12
 
13
13
  ## Install
14
14
 
@@ -58,22 +58,22 @@ OpenClaw files live in `~/.openclaw/n8nac/`:
58
58
  workflows/
59
59
  ```
60
60
 
61
- `n8nac-config.json` stores workspace environments. API keys and managed local instance state stay local.
61
+ `n8nac-config.json` stores workspace environments. API keys and local managed instance state stay local.
62
62
 
63
63
  Manual equivalent:
64
64
 
65
65
  ```bash
66
- n8nac env add Dev --base-url <url> --sync-folder workflows/dev
66
+ n8nac env add Dev --base-url <url> --workflows-path workflows/dev
67
67
  n8nac env auth set Dev --api-key-stdin
68
68
  n8nac env use Dev
69
69
  n8nac update-ai
70
70
  ```
71
71
 
72
- For a managed local instance:
72
+ For a local managed instance:
73
73
 
74
74
  ```bash
75
75
  n8n-manager instance list
76
- n8nac env add Local --managed-instance <id> --sync-folder workflows/local
76
+ n8nac env add Local --managed-instance <id> --workflows-path workflows/local
77
77
  ```
78
78
 
79
79
  ## Agent Commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n-as-code/n8nac",
3
- "version": "2.1.2-next.24",
3
+ "version": "2.1.3-next.151",
4
4
  "description": "OpenClaw plugin for n8n-as-code — create and manage n8n workflows from OpenClaw",
5
5
  "keywords": [
6
6
  "n8n",
@@ -24,7 +24,7 @@
24
24
  "typecheck": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@n8n-as-code/telemetry": "2.0.0",
27
+ "@n8n-as-code/telemetry": "2.0.1-next.151",
28
28
  "@n8n-as-code/workflow-core": "2.0.0"
29
29
  },
30
30
  "devDependencies": {
@@ -11,21 +11,21 @@ Use `npx --yes n8nac@next` as the primary interface. Use `npx --yes @n8n-as-code
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
  - Generated context root hint: not embedded. Use the shell launch directory or the workspace path explicitly given by the user.
16
16
  - Before any n8n work, first run `npx --yes n8nac@next 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 `npx --yes n8nac@next env ...`, `npx --yes n8nac@next workspace ...`, `npx --yes n8nac@next 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
  npx --yes n8nac@next 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 @@ npx --yes n8nac@next env status --json
82
82
  10. Configure the environment with:
83
83
 
84
84
  ```bash
85
- npx --yes n8nac@next env add <name> --base-url <url> --sync-folder workflows
85
+ npx --yes n8nac@next env add <name> --base-url <url> --workflows-path workflows/<name>
86
86
  npx --yes n8nac@next env auth set <name> --api-key-stdin
87
87
  npx --yes n8nac@next env use <name>
88
88
  ```
@@ -90,7 +90,7 @@ npx --yes n8nac@next env use <name>
90
90
  For a managed local instance:
91
91
 
92
92
  ```bash
93
- npx --yes n8nac@next env add Local --managed-instance <id> --sync-folder workflows
93
+ npx --yes n8nac@next env add Local --managed-instance <id> --workflows-path workflows/local
94
94
  npx --yes n8nac@next env use Local
95
95
  ```
96
96
 
@@ -98,12 +98,12 @@ npx --yes n8nac@next env use Local
98
98
 
99
99
  ## Environments
100
100
 
101
- Use `npx --yes n8nac@next env ...` for workspace environments, remote URLs, active environment, API-key binding, projects, and sync folders.
101
+ Use `npx --yes n8nac@next env ...` for workspace environments, remote URLs, active environment, API-key binding, projects, and workflow paths.
102
102
 
103
103
  ```bash
104
104
  npx --yes n8nac@next env status --json
105
105
  npx --yes n8nac@next env list
106
- npx --yes n8nac@next env add <name> --base-url <url> --sync-folder workflows
106
+ npx --yes n8nac@next env add <name> --base-url <url> --workflows-path workflows/<name>
107
107
  npx --yes n8nac@next env auth set <name> --api-key-stdin
108
108
  npx --yes n8nac@next env use <name>
109
109
  ```
@@ -117,7 +117,7 @@ npx --yes n8nac@next env use <name>
117
117
  Attach a managed local instance to the workspace with `npx --yes n8nac@next env ...`:
118
118
 
119
119
  ```bash
120
- npx --yes n8nac@next env add Local --managed-instance <id> --sync-folder workflows
120
+ npx --yes n8nac@next env add Local --managed-instance <id> --workflows-path workflows/local
121
121
  npx --yes n8nac@next env use Local
122
122
  ```
123
123
 
@@ -195,7 +195,7 @@ npx --yes n8nac@next push <path-to-workflow.workflow.ts> --verify
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 `npx --yes n8nac@next list --local`.
198
+ - For a new workflow, create the file inside the `workflowsPath` returned by `env status --json`, then confirm it with `npx --yes n8nac@next 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 @@ npx --yes n8nac@next workflow activate <workflowId>
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.