totem-llm 0.8.1 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "totem-llm",
3
- "version": "0.8.1",
3
+ "version": "0.9.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",
@@ -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: job.prompt,
73
+ prompt: expandedPrompt,
65
74
  }).init();
66
75
 
67
76
  // Tool overrides control which tools the agent can use: