@lazyingart/agintiflow 0.20.72 → 0.20.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/scripts/smoke-coding-tools.js +11 -1
- package/src/agent-runner.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lazyingart/agintiflow",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Low-cost, project-aware Web and CLI agents with DeepSeek/Venice/OpenAI routing, visible tool calls, durable sessions, scouts, AAPS, SCS, and guarded local execution.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -416,9 +416,18 @@ try {
|
|
|
416
416
|
assert(written.includes("Created by AgInTiFlow mock mode."), "mock write did not create expected file");
|
|
417
417
|
assert(writeRun.events.some((event) => event.type === "file.changed"), "write run did not persist file.changed event");
|
|
418
418
|
|
|
419
|
-
await runMock("Create notes/resume.md with resumed session content.", "coding-write", { resume: true });
|
|
419
|
+
const resumedRun = await runMock("Create notes/resume.md with resumed session content.", "coding-write", { resume: true });
|
|
420
420
|
const resumed = await fs.readFile(path.join(workspace, "notes/resume.md"), "utf8");
|
|
421
421
|
assert(resumed.includes("Created by AgInTiFlow mock mode."), "mock resume did not create a new requested file");
|
|
422
|
+
assert(
|
|
423
|
+
resumedRun.state?.messages?.some(
|
|
424
|
+
(message) =>
|
|
425
|
+
message.role === "user" &&
|
|
426
|
+
/Continue with this new request/.test(message.content || "") &&
|
|
427
|
+
/Runtime time context: local=.*utc=/.test(message.content || "")
|
|
428
|
+
),
|
|
429
|
+
"resumed session prompt did not refresh local/UTC runtime time context"
|
|
430
|
+
);
|
|
422
431
|
|
|
423
432
|
let duplicateFailed = false;
|
|
424
433
|
try {
|
|
@@ -559,6 +568,7 @@ try {
|
|
|
559
568
|
"write_file",
|
|
560
569
|
"duplicate_write_failed",
|
|
561
570
|
"resume_session_write",
|
|
571
|
+
"resume_runtime_time_context",
|
|
562
572
|
"virtual_workspace_path",
|
|
563
573
|
"apply_patch",
|
|
564
574
|
"multi_file_patch",
|
package/src/agent-runner.js
CHANGED
|
@@ -583,10 +583,13 @@ async function applyContinuationPrompt(state, config, observers) {
|
|
|
583
583
|
state.stepsCompleted = 0;
|
|
584
584
|
state.updatedAt = new Date().toISOString();
|
|
585
585
|
const platform = platformInfo();
|
|
586
|
+
const temporalContext = runtimeTemporalContext(new Date(state.updatedAt));
|
|
586
587
|
state.messages.push({
|
|
587
588
|
role: "user",
|
|
588
589
|
content: [
|
|
589
590
|
`Continue with this new request: ${config.goal}`,
|
|
591
|
+
languageInstruction(config.language || "en"),
|
|
592
|
+
temporalContext,
|
|
590
593
|
config.startUrl ? `Suggested start URL: ${config.startUrl}` : "",
|
|
591
594
|
config.allowedDomains.length > 0 ? `Allowed domains: ${config.allowedDomains.join(", ")}` : "",
|
|
592
595
|
config.allowShellTool
|