n8n-nodes-dopomogai 1.2.1 → 1.3.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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +53 -54
- package/scripts/copy-icons.mjs +13 -13
- /package/dist/nodes/{Agents/Agents.node.d.ts → DopomogaiAgents/DopomogaiAgents.node.d.ts} +0 -0
- /package/dist/nodes/{Agents/Agents.node.js → DopomogaiAgents/DopomogaiAgents.node.js} +0 -0
- /package/dist/nodes/{Agents → DopomogaiAgents}/dopomogai.svg +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './credentials/DopomogaiApiKey.credentials';
|
|
2
|
-
export * from './nodes/
|
|
2
|
+
export * from './nodes/DopomogaiAgents/DopomogaiAgents.node';
|
|
3
3
|
export * from './nodes/Chat/Chat.node';
|
|
4
4
|
export * from './nodes/Conversations/Conversations.node';
|
|
5
5
|
export * from './nodes/Files/Files.node';
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./credentials/DopomogaiApiKey.credentials"), exports);
|
|
18
18
|
// Nodes (split for better UX in n8n)
|
|
19
|
-
__exportStar(require("./nodes/
|
|
19
|
+
__exportStar(require("./nodes/DopomogaiAgents/DopomogaiAgents.node"), exports);
|
|
20
20
|
__exportStar(require("./nodes/Chat/Chat.node"), exports);
|
|
21
21
|
__exportStar(require("./nodes/Conversations/Conversations.node"), exports);
|
|
22
22
|
__exportStar(require("./nodes/Files/Files.node"), exports);
|
package/package.json
CHANGED
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
"main": "dist/index.js",
|
|
22
|
-
"types": "dist/index.d.ts",
|
|
23
|
-
"files": [
|
|
24
|
-
"dist/**",
|
|
25
|
-
"scripts/**"
|
|
26
|
-
],
|
|
27
|
-
"publishConfig": {
|
|
28
|
-
"access": "public"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "rimraf dist && tsc -p tsconfig.json && node ./scripts/copy-icons.mjs",
|
|
32
|
-
"dev": "tsc -w -p tsconfig.json"
|
|
33
|
-
},
|
|
34
|
-
"n8n": {
|
|
35
|
-
"n8nNodesApiVersion": 1,
|
|
36
|
-
"credentials": [
|
|
37
|
-
"dist/credentials/DopomogaiApiKey.credentials.js"
|
|
2
|
+
"name": "n8n-nodes-dopomogai",
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "n8n community nodes for DopomogAI (Agents, Chat, Conversations, Files, Tools, KB).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "DopomogAI",
|
|
7
|
+
"homepage": "https://api.dopomogai.com",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://api.dopomogai.com"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"n8n-community-node-package",
|
|
14
|
+
"n8n",
|
|
15
|
+
"dopomogai",
|
|
16
|
+
"ai",
|
|
17
|
+
"agents",
|
|
18
|
+
"chat",
|
|
19
|
+
"tools"
|
|
38
20
|
],
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
21
|
+
"main": "dist/index.js",
|
|
22
|
+
"types": "dist/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist/**",
|
|
25
|
+
"scripts/**"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rimraf dist && tsc -p tsconfig.json && node ./scripts/copy-icons.mjs",
|
|
32
|
+
"dev": "tsc -w -p tsconfig.json"
|
|
33
|
+
},
|
|
34
|
+
"n8n": {
|
|
35
|
+
"n8nNodesApiVersion": 1,
|
|
36
|
+
"credentials": [
|
|
37
|
+
"dist/credentials/DopomogaiApiKey.credentials.js"
|
|
38
|
+
],
|
|
39
|
+
"nodes": [
|
|
40
|
+
"dist/nodes/DopomogaiAgents/DopomogaiAgents.node.js",
|
|
41
|
+
"dist/nodes/Chat/Chat.node.js",
|
|
42
|
+
"dist/nodes/Conversations/Conversations.node.js",
|
|
43
|
+
"dist/nodes/Files/Files.node.js",
|
|
44
|
+
"dist/nodes/Tools/Tools.node.js",
|
|
45
|
+
"dist/nodes/Knowledge/Knowledge.node.js"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"n8n-core": "^2.2.3",
|
|
51
|
+
"n8n-workflow": "^2.2.3",
|
|
52
|
+
"@types/node": "^20.11.30",
|
|
53
|
+
"rimraf": "^6.0.1",
|
|
54
|
+
"typescript": "^5.5.4"
|
|
55
|
+
}
|
|
57
56
|
}
|
package/scripts/copy-icons.mjs
CHANGED
|
@@ -6,13 +6,13 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = path.dirname(__filename);
|
|
7
7
|
|
|
8
8
|
function ensureDir(p) {
|
|
9
|
-
|
|
9
|
+
fs.mkdirSync(p, { recursive: true });
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
function copy(src, dest) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ensureDir(path.dirname(dest));
|
|
14
|
+
fs.copyFileSync(src, dest);
|
|
15
|
+
console.log(`[copy-icons] ${src} -> ${dest}`);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// Single shared icon source
|
|
@@ -21,19 +21,19 @@ const srcIcon = path.join(repoRoot, 'src', 'nodes', 'icons', 'dopomogai.svg');
|
|
|
21
21
|
|
|
22
22
|
// Copy into each node folder so `icon: file:dopomogai.svg` always works
|
|
23
23
|
const targets = [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
path.join(repoRoot, 'dist', 'nodes', 'DopomogaiAgents', 'dopomogai.svg'),
|
|
25
|
+
path.join(repoRoot, 'dist', 'nodes', 'Chat', 'dopomogai.svg'),
|
|
26
|
+
path.join(repoRoot, 'dist', 'nodes', 'Conversations', 'dopomogai.svg'),
|
|
27
|
+
path.join(repoRoot, 'dist', 'nodes', 'Files', 'dopomogai.svg'),
|
|
28
|
+
path.join(repoRoot, 'dist', 'nodes', 'Tools', 'dopomogai.svg'),
|
|
29
|
+
path.join(repoRoot, 'dist', 'nodes', 'Knowledge', 'dopomogai.svg'),
|
|
30
30
|
];
|
|
31
31
|
|
|
32
32
|
if (!fs.existsSync(srcIcon)) {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
console.warn(`[copy-icons] Source icon not found: ${srcIcon}`);
|
|
34
|
+
process.exit(0);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
for (const dest of targets) {
|
|
38
|
-
|
|
38
|
+
copy(srcIcon, dest);
|
|
39
39
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|