@exulu/backend 1.19.1 → 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/CHANGELOG.md +3 -3
- package/dist/index.cjs +4 -13
- package/dist/index.js +4 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# [1.20.0](https://github.com/Qventu/exulu-backend/compare/v1.19.1...v1.20.0) (2025-08-29)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
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
|
@@ -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
|
@@ -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);
|