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