n8n-nodes-cala 0.4.12 → 0.4.14
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.
|
@@ -11,8 +11,8 @@ class Cala {
|
|
|
11
11
|
icon: 'file:cala.svg',
|
|
12
12
|
group: ['transform'],
|
|
13
13
|
version: 1,
|
|
14
|
-
subtitle: '={{$parameter["operation"]}}',
|
|
15
|
-
description: 'Search trusted knowledge with Cala AI',
|
|
14
|
+
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
|
|
15
|
+
description: 'Search trusted knowledge with Cala AI.',
|
|
16
16
|
defaults: {
|
|
17
17
|
name: 'Cala',
|
|
18
18
|
},
|
|
@@ -54,25 +54,25 @@ class Cala {
|
|
|
54
54
|
name: 'Get Entity',
|
|
55
55
|
value: 'getEntity',
|
|
56
56
|
action: 'Get an entity',
|
|
57
|
-
description: 'Get the full profile of an entity by its numeric ID',
|
|
57
|
+
description: 'Get the full profile of an entity by its numeric ID.',
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
name: 'Query',
|
|
61
61
|
value: 'query',
|
|
62
62
|
action: 'Query knowledge',
|
|
63
|
-
description: 'Filter entities by attributes using structured dot-notation syntax',
|
|
63
|
+
description: 'Filter entities by attributes using structured dot-notation syntax.',
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
name: 'Search',
|
|
67
67
|
value: 'search',
|
|
68
68
|
action: 'Search knowledge',
|
|
69
|
-
description: 'Answer natural language questions with sourced, researched content',
|
|
69
|
+
description: 'Answer natural language questions with sourced, researched content.',
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
name: 'Search Entities',
|
|
73
73
|
value: 'searchEntities',
|
|
74
74
|
action: 'Search entities',
|
|
75
|
-
description: 'Find entities by name with fuzzy matching',
|
|
75
|
+
description: 'Find entities by name with fuzzy matching.',
|
|
76
76
|
},
|
|
77
77
|
],
|
|
78
78
|
default: 'search',
|
|
@@ -85,7 +85,7 @@ class Cala {
|
|
|
85
85
|
required: true,
|
|
86
86
|
default: '',
|
|
87
87
|
placeholder: "e.g. What were Toyota's total sales in 2023?",
|
|
88
|
-
description: 'Natural language question to search knowledge for',
|
|
88
|
+
description: 'Natural language question to search knowledge for.',
|
|
89
89
|
displayOptions: {
|
|
90
90
|
show: { resource: ['knowledge'], operation: ['search'] },
|
|
91
91
|
},
|
|
@@ -98,7 +98,7 @@ class Cala {
|
|
|
98
98
|
required: true,
|
|
99
99
|
default: '',
|
|
100
100
|
placeholder: 'e.g. startups.location=Spain.funding>10M',
|
|
101
|
-
description: 'Structured dot-notation query to filter entities by attributes',
|
|
101
|
+
description: 'Structured dot-notation query to filter entities by attributes.',
|
|
102
102
|
displayOptions: {
|
|
103
103
|
show: { resource: ['knowledge'], operation: ['query'] },
|
|
104
104
|
},
|
|
@@ -111,7 +111,7 @@ class Cala {
|
|
|
111
111
|
required: true,
|
|
112
112
|
default: '',
|
|
113
113
|
placeholder: 'e.g. OpenAI',
|
|
114
|
-
description: 'Entity name to search for (supports fuzzy matching)',
|
|
114
|
+
description: 'Entity name to search for (supports fuzzy matching).',
|
|
115
115
|
displayOptions: {
|
|
116
116
|
show: { resource: ['knowledge'], operation: ['searchEntities'] },
|
|
117
117
|
},
|
|
@@ -121,7 +121,7 @@ class Cala {
|
|
|
121
121
|
name: 'limit',
|
|
122
122
|
type: 'number',
|
|
123
123
|
default: 20,
|
|
124
|
-
description: 'Maximum number of results to return',
|
|
124
|
+
description: 'Maximum number of results to return.',
|
|
125
125
|
typeOptions: { minValue: 1, maxValue: 100 },
|
|
126
126
|
displayOptions: {
|
|
127
127
|
show: { resource: ['knowledge'], operation: ['searchEntities'] },
|
|
@@ -133,8 +133,8 @@ class Cala {
|
|
|
133
133
|
name: 'entityId',
|
|
134
134
|
type: 'number',
|
|
135
135
|
required: true,
|
|
136
|
-
default:
|
|
137
|
-
description: '
|
|
136
|
+
default: 0,
|
|
137
|
+
description: 'Numeric ID of the entity to retrieve.',
|
|
138
138
|
displayOptions: {
|
|
139
139
|
show: { resource: ['knowledge'], operation: ['getEntity'] },
|
|
140
140
|
},
|
|
@@ -202,7 +202,7 @@ class Cala {
|
|
|
202
202
|
catch (error) {
|
|
203
203
|
if (this.continueOnFail()) {
|
|
204
204
|
returnData.push({
|
|
205
|
-
json: { error: error.message },
|
|
205
|
+
json: { error: new n8n_workflow_1.NodeApiError(this.getNode(), error).message },
|
|
206
206
|
pairedItem: { item: i },
|
|
207
207
|
});
|
|
208
208
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-cala",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.14",
|
|
4
4
|
"description": "n8n nodes for Cala AI knowledge search",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"eslint": "^9.39.2",
|
|
52
52
|
"gulp": "^5.0.0",
|
|
53
53
|
"jest": "^30.2.0",
|
|
54
|
+
"n8n-workflow": "^2.13.1",
|
|
54
55
|
"ts-jest": "^29.4.6",
|
|
55
56
|
"typescript": "^5.3.0",
|
|
56
57
|
"typescript-eslint": "^8.53.1"
|