niahere 0.2.71 → 0.2.72
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/src/core/runner.ts +4 -2
package/package.json
CHANGED
package/src/core/runner.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { getEmployee } from "./employees";
|
|
|
13
13
|
import { scanAgents } from "./agents";
|
|
14
14
|
import { truncate, formatToolUse } from "../utils/format-activity";
|
|
15
15
|
import { getMcpServers, type McpSourceContext } from "../mcp";
|
|
16
|
+
import { formatPromptDate } from "../utils/time";
|
|
16
17
|
import { ActiveEngine } from "../db/models";
|
|
17
18
|
import { getPaths } from "../utils/paths";
|
|
18
19
|
import { log } from "../utils/log";
|
|
@@ -333,9 +334,10 @@ export async function runJob(job: JobInput, onActivity?: ActivityCallback): Prom
|
|
|
333
334
|
systemPrompt = buildSystemPrompt("job");
|
|
334
335
|
}
|
|
335
336
|
|
|
337
|
+
const authoritativeDate = formatPromptDate(new Date(), config.timezone);
|
|
336
338
|
let jobPrompt = job.prompt
|
|
337
|
-
? `Job: ${job.name} (schedule: ${job.schedule})\n\n${job.prompt}`
|
|
338
|
-
: `Job: ${job.name} (schedule: ${job.schedule})\n\nExecute your scheduled tasks.`;
|
|
339
|
+
? `Job: ${job.name} (schedule: ${job.schedule})\nToday: ${authoritativeDate}\n\n${job.prompt}`
|
|
340
|
+
: `Job: ${job.name} (schedule: ${job.schedule})\nToday: ${authoritativeDate}\n\nExecute your scheduled tasks.`;
|
|
339
341
|
|
|
340
342
|
// Working memory: give stateful jobs a persistent workspace
|
|
341
343
|
jobPrompt += buildWorkingMemory(job.name, job.stateless);
|