totem-llm 0.8.2 → 0.10.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/lib/__tests__/version.test.js +3 -6
- package/package.json +14 -2
- package/server/jobs/run-scheduled-job.js +10 -1
- package/server/public/assets/{index-18f68353.js → index-699a4bde.js} +1 -1
- package/server/public/assets/{index-edf7553d.js → index-854b8551.js} +1 -1
- package/server/public/assets/{index-314fe5bd.js → index-c975f55a.js} +1 -1
- package/server/public/assets/index-e7572a76.js +1 -0
- package/server/public/index.js +2 -2
- package/server/utils/agents/defaults.js +6 -13
- package/server/utils/agents/ephemeral.js +6 -2
- package/server/utils/telegramBot/utils/commands/handlers/handleStart.js +1 -1
- package/server/utils/telegramBot/utils/navigation/callbacks/handleModelSelect.js +5 -1
- package/server/public/assets/index-dfb62c39.js +0 -1
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { getPackageVersion } from "../version.js";
|
|
1
|
+
const { resolve, dirname } = require("path");
|
|
2
|
+
const { getPackageVersion } = require("../version.js");
|
|
4
3
|
|
|
5
|
-
const
|
|
6
|
-
const __dirname = dirname(__filename);
|
|
7
|
-
const packageRoot = resolve(__dirname, "../..");
|
|
4
|
+
const packageRoot = resolve(dirname(__filename), "../..");
|
|
8
5
|
|
|
9
6
|
describe("getPackageVersion", () => {
|
|
10
7
|
test("returns the root package.json version", () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "totem-llm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Totem LLM – Your Private AI. Run a self-hosted AI assistant locally on Linux, macOS, or Windows.",
|
|
5
5
|
"main": "bin/totem-llm.js",
|
|
6
6
|
"type": "module",
|
|
@@ -61,8 +61,20 @@
|
|
|
61
61
|
},
|
|
62
62
|
"private": false,
|
|
63
63
|
"devDependencies": {
|
|
64
|
+
"@babel/core": "^8.0.1",
|
|
65
|
+
"@babel/preset-env": "^8.0.2",
|
|
66
|
+
"@langchain/textsplitters": "^1.0.1",
|
|
67
|
+
"@prisma/client": "^7.8.0",
|
|
68
|
+
"babel-jest": "^30.4.1",
|
|
64
69
|
"concurrently": "^9.1.2",
|
|
65
|
-
"
|
|
70
|
+
"dotenv": "^17.4.2",
|
|
71
|
+
"fix-path": "^5.0.0",
|
|
72
|
+
"jest": "^29.7.0",
|
|
73
|
+
"jsonwebtoken": "^9.0.3",
|
|
74
|
+
"lodash": "^4.18.1",
|
|
75
|
+
"pg": "^8.22.0",
|
|
76
|
+
"slugify": "^1.6.9",
|
|
77
|
+
"uuid": "^14.0.1"
|
|
66
78
|
},
|
|
67
79
|
"dependencies": {
|
|
68
80
|
"qrcode-terminal": "^0.12.0"
|
|
@@ -8,6 +8,9 @@ const {
|
|
|
8
8
|
} = require("./helpers/scheduled-job-helper.js");
|
|
9
9
|
const { ScheduledJob } = require("../models/scheduledJob.js");
|
|
10
10
|
const { ScheduledJobRun } = require("../models/scheduledJobRun.js");
|
|
11
|
+
const {
|
|
12
|
+
SystemPromptVariables,
|
|
13
|
+
} = require("../models/systemPromptVariables.js");
|
|
11
14
|
|
|
12
15
|
/** Status of the scheduled job run @type {'success' | 'failed' | 'timed_out' | 'not_found' | 'killed' | undefined} */
|
|
13
16
|
let status;
|
|
@@ -59,9 +62,15 @@ process.on("message", async (payload) => {
|
|
|
59
62
|
const { handler, thoughts, toolCalls, state } = agentActionCb();
|
|
60
63
|
|
|
61
64
|
const { EphemeralAgentHandler } = require("../utils/agents/ephemeral.js");
|
|
65
|
+
// Expand system prompt variables in the job prompt (same as workspace system prompts)
|
|
66
|
+
const expandedPrompt = await SystemPromptVariables.expandSystemPromptVariables(
|
|
67
|
+
job.prompt,
|
|
68
|
+
null,
|
|
69
|
+
null
|
|
70
|
+
);
|
|
62
71
|
const agentHandler = await new EphemeralAgentHandler({
|
|
63
72
|
uuid: uuidv4(),
|
|
64
|
-
prompt:
|
|
73
|
+
prompt: expandedPrompt,
|
|
65
74
|
}).init();
|
|
66
75
|
|
|
67
76
|
// Tool overrides control which tools the agent can use:
|