@exulu/backend 1.19.2 → 1.20.0
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/.github/workflows/release.yml +0 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +5 -14
- package/dist/index.js +5 -14
- package/package.json +1 -1
- package/release.config.cjs +1 -5
- package/.claude/settings.json +0 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# [1.20.0](https://github.com/Qventu/exulu-backend/compare/v1.19.1...v1.20.0) (2025-08-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* use the Claude Agent API key instead of having a dedicated API key per user ([bc3bb80](https://github.com/Qventu/exulu-backend/commit/bc3bb806c47d49b2324aee20068308f9e3856cd5))
|
package/dist/index.cjs
CHANGED
|
@@ -1590,8 +1590,8 @@ var ExuluContext = class {
|
|
|
1590
1590
|
CREATE INDEX IF NOT EXISTS ${tableName}_embedding_hnsw_cosine
|
|
1591
1591
|
ON ${tableName}
|
|
1592
1592
|
USING hnsw (embedding vector_cosine_ops)
|
|
1593
|
-
WITH (m = 16, ef_construction = 64)
|
|
1594
1593
|
WHERE embedding IS NOT NULL
|
|
1594
|
+
WITH (m = 16, ef_construction = 64)
|
|
1595
1595
|
`);
|
|
1596
1596
|
return;
|
|
1597
1597
|
};
|
|
@@ -4047,7 +4047,7 @@ var CLAUDE_MESSAGES = {
|
|
|
4047
4047
|
\x1B[41m -- Anthropic token variable set by your admin is not encrypted. This poses a security risk. Please contact your admin to fix the variable used for your key. --
|
|
4048
4048
|
\x1B[0m`,
|
|
4049
4049
|
anthropic_token_variable_not_found: `
|
|
4050
|
-
\x1B[41m -- Anthropic token variable not found. Please contact your Exulu adminto fix the variable used for
|
|
4050
|
+
\x1B[41m -- Anthropic token variable not found. Please contact your Exulu adminto fix the variable used for the key. --
|
|
4051
4051
|
\x1B[0m`,
|
|
4052
4052
|
authentication_error: `
|
|
4053
4053
|
\x1B[41m -- Authentication error please check your IMP token and try again. --
|
|
@@ -4059,16 +4059,7 @@ var CLAUDE_MESSAGES = {
|
|
|
4059
4059
|
\x1B[41m -- Missing NEXTAUTH_SECRET in environment variables on the server. --
|
|
4060
4060
|
\x1B[0m`,
|
|
4061
4061
|
not_enabled: `
|
|
4062
|
-
\x1B[
|
|
4063
|
-
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557
|
|
4064
|
-
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u255A\u2588\u2588\u2557\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
4065
|
-
\u2588\u2588\u2588\u2588\u2588\u2557 \u255A\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
4066
|
-
\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
4067
|
-
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2554\u255D \u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
|
|
4068
|
-
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D
|
|
4069
|
-
Intelligence Management Platform
|
|
4070
|
-
\x1B[0m
|
|
4071
|
-
\x1B[41m -- Your account has not been enabled to use Claude Code, please contact your admin or enable Claude Code in the user settings. --
|
|
4062
|
+
\x1B[41m -- The agent you selected does not have a valid API key set for it. --
|
|
4072
4063
|
\x1B[0m`
|
|
4073
4064
|
};
|
|
4074
4065
|
|
|
@@ -4893,13 +4884,13 @@ Mood: friendly and intelligent.
|
|
|
4893
4884
|
res.end(Buffer.from(arrayBuffer));
|
|
4894
4885
|
return;
|
|
4895
4886
|
}
|
|
4896
|
-
if (!
|
|
4887
|
+
if (!agent.providerApiKey) {
|
|
4897
4888
|
const arrayBuffer = createCustomAnthropicStreamingMessage(CLAUDE_MESSAGES.not_enabled);
|
|
4898
4889
|
res.setHeader("Content-Type", "application/json");
|
|
4899
4890
|
res.end(Buffer.from(arrayBuffer));
|
|
4900
4891
|
return;
|
|
4901
4892
|
}
|
|
4902
|
-
const variableName =
|
|
4893
|
+
const variableName = agent.providerApiKey;
|
|
4903
4894
|
const variable = await db3.from("variables").where({ name: variableName }).first();
|
|
4904
4895
|
if (!variable) {
|
|
4905
4896
|
const arrayBuffer = createCustomAnthropicStreamingMessage(CLAUDE_MESSAGES.anthropic_token_variable_not_found);
|
package/dist/index.js
CHANGED
|
@@ -1549,8 +1549,8 @@ var ExuluContext = class {
|
|
|
1549
1549
|
CREATE INDEX IF NOT EXISTS ${tableName}_embedding_hnsw_cosine
|
|
1550
1550
|
ON ${tableName}
|
|
1551
1551
|
USING hnsw (embedding vector_cosine_ops)
|
|
1552
|
-
WITH (m = 16, ef_construction = 64)
|
|
1553
1552
|
WHERE embedding IS NOT NULL
|
|
1553
|
+
WITH (m = 16, ef_construction = 64)
|
|
1554
1554
|
`);
|
|
1555
1555
|
return;
|
|
1556
1556
|
};
|
|
@@ -4006,7 +4006,7 @@ var CLAUDE_MESSAGES = {
|
|
|
4006
4006
|
\x1B[41m -- Anthropic token variable set by your admin is not encrypted. This poses a security risk. Please contact your admin to fix the variable used for your key. --
|
|
4007
4007
|
\x1B[0m`,
|
|
4008
4008
|
anthropic_token_variable_not_found: `
|
|
4009
|
-
\x1B[41m -- Anthropic token variable not found. Please contact your Exulu adminto fix the variable used for
|
|
4009
|
+
\x1B[41m -- Anthropic token variable not found. Please contact your Exulu adminto fix the variable used for the key. --
|
|
4010
4010
|
\x1B[0m`,
|
|
4011
4011
|
authentication_error: `
|
|
4012
4012
|
\x1B[41m -- Authentication error please check your IMP token and try again. --
|
|
@@ -4018,16 +4018,7 @@ var CLAUDE_MESSAGES = {
|
|
|
4018
4018
|
\x1B[41m -- Missing NEXTAUTH_SECRET in environment variables on the server. --
|
|
4019
4019
|
\x1B[0m`,
|
|
4020
4020
|
not_enabled: `
|
|
4021
|
-
\x1B[
|
|
4022
|
-
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557
|
|
4023
|
-
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u255A\u2588\u2588\u2557\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
4024
|
-
\u2588\u2588\u2588\u2588\u2588\u2557 \u255A\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
4025
|
-
\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
4026
|
-
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2554\u255D \u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
|
|
4027
|
-
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D
|
|
4028
|
-
Intelligence Management Platform
|
|
4029
|
-
\x1B[0m
|
|
4030
|
-
\x1B[41m -- Your account has not been enabled to use Claude Code, please contact your admin or enable Claude Code in the user settings. --
|
|
4021
|
+
\x1B[41m -- The agent you selected does not have a valid API key set for it. --
|
|
4031
4022
|
\x1B[0m`
|
|
4032
4023
|
};
|
|
4033
4024
|
|
|
@@ -4852,13 +4843,13 @@ Mood: friendly and intelligent.
|
|
|
4852
4843
|
res.end(Buffer.from(arrayBuffer));
|
|
4853
4844
|
return;
|
|
4854
4845
|
}
|
|
4855
|
-
if (!
|
|
4846
|
+
if (!agent.providerApiKey) {
|
|
4856
4847
|
const arrayBuffer = createCustomAnthropicStreamingMessage(CLAUDE_MESSAGES.not_enabled);
|
|
4857
4848
|
res.setHeader("Content-Type", "application/json");
|
|
4858
4849
|
res.end(Buffer.from(arrayBuffer));
|
|
4859
4850
|
return;
|
|
4860
4851
|
}
|
|
4861
|
-
const variableName =
|
|
4852
|
+
const variableName = agent.providerApiKey;
|
|
4862
4853
|
const variable = await db3.from("variables").where({ name: variableName }).first();
|
|
4863
4854
|
if (!variable) {
|
|
4864
4855
|
const arrayBuffer = createCustomAnthropicStreamingMessage(CLAUDE_MESSAGES.anthropic_token_variable_not_found);
|
package/package.json
CHANGED
package/release.config.cjs
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
branches: [
|
|
3
|
-
'main',
|
|
4
|
-
{ name: 'next', prerelease: true },
|
|
5
|
-
{ name: 'hotfix/*', rangeStrategy: 'always'} // any branch like hotfix/1.19.1 will trigger a release
|
|
6
|
-
],
|
|
2
|
+
branches: ['main', { name: 'next', prerelease: true }],
|
|
7
3
|
plugins: [
|
|
8
4
|
'@semantic-release/commit-analyzer',
|
|
9
5
|
'@semantic-release/release-notes-generator',
|
package/.claude/settings.json
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"ANTHROPIC_BASE_URL": "https://backend.exulu.com/gateway/anthropic/12b88f47-5a8c-41cc-aea8-c4842352b46a",
|
|
4
|
-
"DISABLE_AUTOUPDATER": 0
|
|
5
|
-
},
|
|
6
|
-
"apiKeyHelper": "echo eyJhbGciOiJIUzI1NiJ9.eyJpZCI6IjEiLCJlbWFpbCI6ImFkbWluQGV4dWx1LmNvbSIsImlhdCI6MTc2MDA4ODI5NiwiZXhwIjoxNzkxNjI0Mjk2fQ.gTXGxccE0hXoIjsrpIIp6b0lCWqrQKm-xEwXc8kZqyw"
|
|
7
|
-
}
|