n8n-nodes-bgos 1.4.1 → 1.4.3
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.
|
@@ -3,15 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BGOSAction = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const eventHandler_1 = require("./handler/eventHandler");
|
|
6
|
+
// Read npm package version at compile/load time so the user-facing description
|
|
7
|
+
// reflects what's actually installed in n8n. Different from the n8n typeVersion
|
|
8
|
+
// (which signals SCHEMA evolution and is bumped per Telegram-style array form
|
|
9
|
+
// below). Both are exposed so users see real info either way.
|
|
10
|
+
const package_json_1 = require("../../package.json");
|
|
6
11
|
class BGOSAction {
|
|
7
12
|
description = {
|
|
8
13
|
displayName: 'BGOS Action',
|
|
9
14
|
name: 'bgosAction',
|
|
10
15
|
icon: 'file:bgos-icon.svg',
|
|
11
16
|
group: ['transform'],
|
|
17
|
+
// n8n typeVersion. INTEGER ONLY — some n8n deployments store this as a
|
|
18
|
+
// postgres INT column on package install and reject fractional/array
|
|
19
|
+
// forms with "invalid input syntax for type integer". Bump only on
|
|
20
|
+
// BREAKING schema changes (with migration logic). For non-breaking
|
|
21
|
+
// additions, leave at 1 and surface the npm package version via the
|
|
22
|
+
// description string below — that's what users actually want to see.
|
|
12
23
|
version: 1,
|
|
13
24
|
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
|
|
14
|
-
description:
|
|
25
|
+
description: `Interact with the BGOS chat platform. Send/edit/pin/delete messages, ask the user a question, send a message and wait for the reply, fetch chat metadata, manage assistants and files. Usable as an AI agent tool. (n8n-nodes-bgos v${package_json_1.version})`,
|
|
15
26
|
defaults: { name: 'BGOS Action' },
|
|
16
27
|
usableAsTool: true,
|
|
17
28
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -7,6 +7,7 @@ const chat_1 = require("./resources/chat");
|
|
|
7
7
|
const assistant_1 = require("./resources/assistant");
|
|
8
8
|
const user_1 = require("./resources/user");
|
|
9
9
|
const scheduledTask_1 = require("./resources/scheduledTask");
|
|
10
|
+
const package_json_1 = require("../../package.json");
|
|
10
11
|
/**
|
|
11
12
|
* Extracts the actual backend error message from a failed HTTP response.
|
|
12
13
|
* NestJS ValidationPipe returns { statusCode, message: string | string[], error }.
|
|
@@ -56,7 +57,7 @@ class Bgos {
|
|
|
56
57
|
group: ['transform'],
|
|
57
58
|
version: 1,
|
|
58
59
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
59
|
-
description:
|
|
60
|
+
description: `Interact with the BGOS AI assistant platform. (n8n-nodes-bgos v${package_json_1.version})`,
|
|
60
61
|
defaults: {
|
|
61
62
|
name: 'BGOS',
|
|
62
63
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BgosTrigger = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const package_json_1 = require("../../package.json");
|
|
5
6
|
const RATE_WINDOW_MS = 1000;
|
|
6
7
|
const RATE_MAX_EVENTS = 10;
|
|
7
8
|
const GLOBAL_KEY = '__bgosRateLimiter';
|
|
@@ -30,7 +31,7 @@ class BgosTrigger {
|
|
|
30
31
|
group: ['trigger'],
|
|
31
32
|
version: 1,
|
|
32
33
|
subtitle: '={{$parameter["updates"]}}',
|
|
33
|
-
description:
|
|
34
|
+
description: `Starts the workflow on a BGOS Assistant update. (n8n-nodes-bgos v${package_json_1.version})`,
|
|
34
35
|
defaults: { name: 'BGOS Trigger' },
|
|
35
36
|
inputs: [],
|
|
36
37
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-bgos",
|
|
3
|
+
"version": "1.4.3",
|
|
4
|
+
"description": "n8n community nodes for BGOS (Brand Growth OS) - AI assistant chat platform",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"bgos",
|
|
9
|
+
"chat",
|
|
10
|
+
"assistant",
|
|
11
|
+
"ai"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "https://github.com/BrandGrowthOS/bgos-n8n-nodes",
|
|
15
|
+
"author": {
|
|
16
|
+
"email": "alinur.dzjeenbekov@plus8soft.com",
|
|
17
|
+
"name": "BGOS Team",
|
|
18
|
+
"url": "https://github.com/BrandGrowthOS"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/BrandGrowthOS/bgos-n8n-nodes.git"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18.10",
|
|
26
|
+
"pnpm": ">=9.1"
|
|
27
|
+
},
|
|
28
|
+
"packageManager": "pnpm@9.1.4",
|
|
29
|
+
"main": "dist/nodes/Bgos/Bgos.node.js",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"preinstall": "npx only-allow pnpm",
|
|
32
|
+
"build": "tsc && gulp build:icons",
|
|
33
|
+
"dev": "tsc --watch",
|
|
34
|
+
"format": "prettier nodes credentials --write",
|
|
35
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.cjs .",
|
|
36
|
+
"lintfix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.cjs . --fix",
|
|
37
|
+
"prepack": "pnpm build",
|
|
38
|
+
"prepublishOnly": "pnpm build"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist",
|
|
42
|
+
"README.md",
|
|
43
|
+
"LICENSE.md"
|
|
44
|
+
],
|
|
45
|
+
"n8n": {
|
|
46
|
+
"n8nNodesApiVersion": 1,
|
|
47
|
+
"credentials": [
|
|
48
|
+
"dist/credentials/BgosApi.credentials.js"
|
|
49
|
+
],
|
|
50
|
+
"nodes": [
|
|
51
|
+
"dist/nodes/BgosTrigger/BgosTrigger.node.js",
|
|
52
|
+
"dist/nodes/Bgos/Bgos.node.js",
|
|
53
|
+
"dist/nodes/BGOSAction/BGOSAction.node.js"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/node": "^20.0.0",
|
|
59
|
+
"@typescript-eslint/parser": "~7.18.0",
|
|
60
|
+
"eslint": "~8.56.0",
|
|
61
|
+
"eslint-plugin-n8n-nodes-base": "~1.16.2",
|
|
62
|
+
"gulp": "~5.0.0",
|
|
63
|
+
"n8n-workflow": "*",
|
|
64
|
+
"prettier": "~3.3.3",
|
|
65
|
+
"typescript": "~5.6.3"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"n8n-workflow": "*"
|
|
69
|
+
}
|
|
70
|
+
}
|