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 +1 -1
- package/server/jobs/run-scheduled-job.js +10 -1
- package/server/public/assets/{index-51659f11.js → index-2ae5d4c9.js} +1 -1
- package/server/public/assets/{index-c8670d18.js → index-3cbc62df.js} +1 -1
- package/server/public/assets/{index-71b48a0d.js → index-65caa7e7.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 +11 -2
- package/server/public/assets/index-dfb62c39.js +0 -1
package/package.json
CHANGED
|
@@ -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:
|