n8nac 2.0.0-next.63 → 2.0.0-next.68
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 +9 -0
- package/dist/core/assets/n8n-workflows.d.ts +30 -148
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -24,6 +24,15 @@ If you need fully repeatable automation, pin an explicit package version instead
|
|
|
24
24
|
npx --yes n8nac@1.8.0 <command>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
For prerelease testing, use the `next` npm dist-tag consistently with any prerelease plugin or generated agent instructions:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx --yes n8nac@next <command>
|
|
31
|
+
npx --yes @n8n-as-code/n8n-manager@next <command>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Do not use `npx --yes n8nac` for a workspace whose plugin or `AGENTS.md` was generated from the `next` branch; that resolves npm `latest` and may expose older stable commands.
|
|
35
|
+
|
|
27
36
|
Or install globally if you prefer:
|
|
28
37
|
|
|
29
38
|
```bash
|
|
@@ -16,156 +16,38 @@
|
|
|
16
16
|
// properties (typed from their literal values) get full IntelliSense
|
|
17
17
|
// inside defineRouting() without explicit type casts.
|
|
18
18
|
// =========================================================================
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
availableInMCP?: boolean;
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// =========================================================================
|
|
54
|
-
// DECORATOR METADATA
|
|
55
|
-
// =========================================================================
|
|
56
|
-
|
|
57
|
-
export interface WorkflowDecoratorOptions {
|
|
58
|
-
/** Workflow ID (assigned by n8n) */
|
|
59
|
-
id: string;
|
|
60
|
-
/** Human-readable name */
|
|
61
|
-
name: string;
|
|
62
|
-
/** Whether the workflow is active */
|
|
63
|
-
active: boolean;
|
|
64
|
-
/** Workflow description */
|
|
65
|
-
description?: string;
|
|
66
|
-
/** Workflow execution settings */
|
|
67
|
-
settings?: WorkflowSettings;
|
|
68
|
-
/** Project ID for organization */
|
|
69
|
-
projectId?: string;
|
|
70
|
-
/** Project name */
|
|
71
|
-
projectName?: string;
|
|
72
|
-
/** Whether the workflow is archived */
|
|
73
|
-
isArchived?: boolean;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface NodeDecoratorOptions {
|
|
77
|
-
/** Unique identifier of the node (matches workflow JSON) */
|
|
78
|
-
id?: string;
|
|
79
|
-
/** Stable webhook ID assigned by n8n to webhook nodes */
|
|
80
|
-
webhookId?: string;
|
|
81
|
-
/** Display name shown in n8n UI */
|
|
82
|
-
name: string;
|
|
83
|
-
/** Node type identifier (e.g. "n8n-nodes-base.httpRequest") */
|
|
84
|
-
type: string;
|
|
85
|
-
/** Node version */
|
|
86
|
-
version: number;
|
|
87
|
-
/** Position [x, y] on the canvas */
|
|
88
|
-
position?: [number, number];
|
|
89
|
-
/** Credential references */
|
|
90
|
-
credentials?: Record<string, { id: string; name: string }>;
|
|
91
|
-
/** Error handling mode */
|
|
92
|
-
onError?: 'continueErrorOutput' | 'continueRegularOutput' | 'stopWorkflow';
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// =========================================================================
|
|
96
|
-
// AI / LANGCHAIN DEPENDENCY MAP (.uses())
|
|
97
|
-
// =========================================================================
|
|
98
|
-
|
|
99
|
-
export interface AIDependencyMap {
|
|
100
|
-
ai_languageModel?: any;
|
|
101
|
-
ai_memory?: any;
|
|
102
|
-
ai_outputParser?: any;
|
|
103
|
-
ai_tool?: any[];
|
|
104
|
-
ai_agent?: any;
|
|
105
|
-
ai_chain?: any;
|
|
106
|
-
ai_document?: any[];
|
|
107
|
-
ai_textSplitter?: any;
|
|
108
|
-
ai_embedding?: any;
|
|
109
|
-
ai_retriever?: any;
|
|
110
|
-
ai_reranker?: any;
|
|
111
|
-
ai_vectorStore?: any;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// =========================================================================
|
|
115
|
-
// FLUENT CONNECTION API
|
|
116
|
-
// =========================================================================
|
|
117
|
-
|
|
118
|
-
export interface InputConnection {
|
|
119
|
-
readonly _to: { node: string; input: number };
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface OutputConnection {
|
|
123
|
-
readonly _from: { node: string; output: number; isError?: boolean };
|
|
124
|
-
to(input: InputConnection): void;
|
|
19
|
+
interface Object {
|
|
20
|
+
/** Regular output connector (index = output slot, default 0) */
|
|
21
|
+
out(index?: number): {
|
|
22
|
+
readonly _from: { node: string; output: number; isError?: boolean };
|
|
23
|
+
to(input: { readonly _to: { node: string; input: number } }): void;
|
|
24
|
+
};
|
|
25
|
+
/** Regular input connector (index = input slot, default 0) */
|
|
26
|
+
in(index?: number): { readonly _to: { node: string; input: number } };
|
|
27
|
+
/** Error output connector */
|
|
28
|
+
error(): {
|
|
29
|
+
readonly _from: { node: string; output: number; isError?: boolean };
|
|
30
|
+
to(input: { readonly _to: { node: string; input: number } }): void;
|
|
31
|
+
};
|
|
32
|
+
/** Declare AI/LangChain sub-node dependencies */
|
|
33
|
+
uses(dependencies: {
|
|
34
|
+
ai_languageModel?: any;
|
|
35
|
+
ai_memory?: any;
|
|
36
|
+
ai_outputParser?: any;
|
|
37
|
+
ai_tool?: any[];
|
|
38
|
+
ai_agent?: any;
|
|
39
|
+
ai_chain?: any;
|
|
40
|
+
ai_document?: any[];
|
|
41
|
+
ai_textSplitter?: any;
|
|
42
|
+
ai_embedding?: any;
|
|
43
|
+
ai_retriever?: any;
|
|
44
|
+
ai_reranker?: any;
|
|
45
|
+
ai_vectorStore?: any;
|
|
46
|
+
}): void;
|
|
47
|
+
/** Output reference used as target of .uses() values */
|
|
48
|
+
readonly output: any;
|
|
125
49
|
}
|
|
126
50
|
|
|
127
|
-
// =========================================================================
|
|
128
|
-
// DECORATORS
|
|
129
|
-
// =========================================================================
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Marks a class as an n8n workflow.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```ts
|
|
136
|
-
* @workflow({ id: 'abc123', name: 'My Workflow', active: false })
|
|
137
|
-
* export class MyWorkflow { ... }
|
|
138
|
-
* ```
|
|
139
|
-
*/
|
|
140
|
-
export declare function workflow(options: WorkflowDecoratorOptions): ClassDecorator;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Marks a class property as an n8n node.
|
|
144
|
-
* The property value is used as node parameters.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```ts
|
|
148
|
-
* @node({ name: 'HTTP Request', type: 'n8n-nodes-base.httpRequest', version: 4.2, position: [300, 200] })
|
|
149
|
-
* MyHttp = { url: 'https://api.example.com' };
|
|
150
|
-
* ```
|
|
151
|
-
*/
|
|
152
|
-
export declare function node(options: NodeDecoratorOptions): PropertyDecorator;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Marks a method as the routing/connections definition.
|
|
156
|
-
*
|
|
157
|
-
* @example
|
|
158
|
-
* ```ts
|
|
159
|
-
* @links()
|
|
160
|
-
* defineRouting() {
|
|
161
|
-
* this.Trigger.out(0).to(this.Agent.in(0));
|
|
162
|
-
* this.Agent.uses({ ai_languageModel: this.Model.output });
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
export declare function links(): MethodDecorator;
|
|
167
|
-
|
|
168
|
-
|
|
169
51
|
declare module '@n8n-as-code/transformer' {
|
|
170
52
|
// =========================================================================
|
|
171
53
|
// WORKFLOW SETTINGS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8nac",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.68",
|
|
4
4
|
"description": "Unified CLI for n8n-as-code — manage workflows and access AI tools",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@n8n-as-code/manager-adapter": "0.1.0",
|
|
26
26
|
"@n8n-as-code/n8n-manager-core": "^0.5.0",
|
|
27
|
-
"@n8n-as-code/skills": "2.0.0-next.
|
|
28
|
-
"@n8n-as-code/transformer": "2.0.0-next.
|
|
27
|
+
"@n8n-as-code/skills": "2.0.0-next.68",
|
|
28
|
+
"@n8n-as-code/transformer": "2.0.0-next.68",
|
|
29
29
|
"@n8n-as-code/workflow-core": "0.1.0",
|
|
30
30
|
"@types/json-stable-stringify": "^1.1.0",
|
|
31
31
|
"axios": "^1.6.0",
|