@n8n-as-code/core 0.4.1 → 0.4.2

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/dist/index.d.ts CHANGED
@@ -6,9 +6,5 @@ export * from './services/sync-engine.js';
6
6
  export * from './services/watcher.js';
7
7
  export * from './services/resolution-manager.js';
8
8
  export * from './services/state-manager.js';
9
- export * from './services/schema-generator.js';
10
- export * from './services/sync-manager.js';
11
- export * from './services/n8n-api-client.js';
12
9
  export * from './services/directory-utils.js';
13
- export * from './types.js';
14
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAI/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC"}
package/dist/index.js CHANGED
@@ -6,9 +6,5 @@ export * from './services/sync-engine.js';
6
6
  export * from './services/watcher.js';
7
7
  export * from './services/resolution-manager.js';
8
8
  export * from './services/state-manager.js';
9
- export * from './services/schema-generator.js';
10
- export * from './services/sync-manager.js';
11
- export * from './services/n8n-api-client.js';
12
9
  export * from './services/directory-utils.js';
13
- export * from './types.js';
14
10
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAI/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n-as-code/core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Core library for n8n-as-code ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +0,0 @@
1
- export declare class SchemaGenerator {
2
- constructor();
3
- /**
4
- * Fetches node types from n8n and generates a standard JSON Schema.
5
- * This schema can be used by AI agents to validate node parameters.
6
- */
7
- generateSchema(outputPath: string): Promise<void>;
8
- }
9
- //# sourceMappingURL=schema-generator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-generator.d.ts","sourceRoot":"","sources":["../../src/services/schema-generator.ts"],"names":[],"mappings":"AAIA,qBAAa,eAAe;;IAGxB;;;OAGG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAuE1D"}
@@ -1,79 +0,0 @@
1
- import fs from 'fs';
2
- export class SchemaGenerator {
3
- constructor() { }
4
- /**
5
- * Fetches node types from n8n and generates a standard JSON Schema.
6
- * This schema can be used by AI agents to validate node parameters.
7
- */
8
- async generateSchema(outputPath) {
9
- // Defines the structure of an n8n workflow JSON
10
- const schema = {
11
- "$schema": "http://json-schema.org/draft-07/schema#",
12
- "title": "n8n Workflow Structure",
13
- "description": "Validation schema for n8n workflow JSON files",
14
- "type": "object",
15
- "required": ["nodes", "connections"],
16
- "properties": {
17
- "name": { "type": "string", "description": "Name of the workflow" },
18
- "nodes": {
19
- "type": "array",
20
- "description": "List of nodes in the workflow",
21
- "items": {
22
- "type": "object",
23
- "required": ["parameters", "id", "name", "type", "typeVersion", "position"],
24
- "properties": {
25
- "parameters": {
26
- "type": "object",
27
- "description": "Configuration parameters for the node"
28
- },
29
- "id": { "type": "string", "description": "Unique UUID of the node" },
30
- "name": { "type": "string", "description": "Display name of the node" },
31
- "type": { "type": "string", "description": "Node type identifier (e.g., n8n-nodes-base.httpRequest)" },
32
- "typeVersion": { "type": ["number", "object"], "description": "Version of the node type" },
33
- "position": {
34
- "type": "array",
35
- "minItems": 2,
36
- "maxItems": 2,
37
- "items": { "type": "number" },
38
- "description": "[x, y] coordinates on the canvas"
39
- },
40
- "notesInFlow": { "type": "boolean" },
41
- "notes": { "type": "string" }
42
- }
43
- }
44
- },
45
- "connections": {
46
- "type": "object",
47
- "description": "Connections between nodes",
48
- "patternProperties": {
49
- "^.*$": {
50
- "type": "object",
51
- "patternProperties": {
52
- "^main$": {
53
- "type": "array",
54
- "items": {
55
- "type": "array",
56
- "items": {
57
- "type": "object",
58
- "required": ["node", "type", "index"],
59
- "properties": {
60
- "node": { "type": "string", "description": "Target node name" },
61
- "type": { "type": "string", "enum": ["main"], "default": "main" },
62
- "index": { "type": "number", "default": 0 }
63
- }
64
- }
65
- }
66
- }
67
- }
68
- }
69
- }
70
- },
71
- "settings": { "type": "object" },
72
- "staticData": { "type": ["object", "null"] },
73
- "pinData": { "type": "object" }
74
- }
75
- };
76
- fs.writeFileSync(outputPath, JSON.stringify(schema, null, 2));
77
- }
78
- }
79
- //# sourceMappingURL=schema-generator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-generator.js","sourceRoot":"","sources":["../../src/services/schema-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,MAAM,OAAO,eAAe;IACxB,gBAAgB,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,cAAc,CAAC,UAAkB;QACnC,gDAAgD;QAChD,MAAM,MAAM,GAAG;YACX,SAAS,EAAE,yCAAyC;YACpD,OAAO,EAAE,wBAAwB;YACjC,aAAa,EAAE,+CAA+C;YAC9D,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC;YACpC,YAAY,EAAE;gBACV,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,EAAE;gBACnE,OAAO,EAAE;oBACL,MAAM,EAAE,OAAO;oBACf,aAAa,EAAE,+BAA+B;oBAC9C,OAAO,EAAE;wBACL,MAAM,EAAE,QAAQ;wBAChB,UAAU,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC;wBAC3E,YAAY,EAAE;4BACV,YAAY,EAAE;gCACV,MAAM,EAAE,QAAQ;gCAChB,aAAa,EAAE,uCAAuC;6BACzD;4BACD,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,E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