@strayl/agent 0.1.6 → 0.1.7
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/dist/agent.js +12 -1
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -13828,6 +13828,7 @@ var { values } = parseArgs({
|
|
|
13828
13828
|
"hitl-dir": { type: "string", default: "/tmp/hitl" },
|
|
13829
13829
|
"skills-dir": { type: "string", default: "./skills" },
|
|
13830
13830
|
"previous-summary": { type: "string" },
|
|
13831
|
+
"previous-summary-file": { type: "string" },
|
|
13831
13832
|
"max-iterations": { type: "string", default: "200" },
|
|
13832
13833
|
"work-dir": { type: "string" },
|
|
13833
13834
|
"restore-checkpoint": { type: "string" }
|
|
@@ -13904,7 +13905,17 @@ try {
|
|
|
13904
13905
|
maxIterations: parseInt(values["max-iterations"]),
|
|
13905
13906
|
hitlDir: values["hitl-dir"],
|
|
13906
13907
|
skillsDir: values["skills-dir"],
|
|
13907
|
-
previousSummary: values["previous-summary"]
|
|
13908
|
+
previousSummary: values["previous-summary"] ?? await (async () => {
|
|
13909
|
+
const file = values["previous-summary-file"];
|
|
13910
|
+
if (!file) return void 0;
|
|
13911
|
+
try {
|
|
13912
|
+
return await fs12.readFile(file, "utf-8");
|
|
13913
|
+
} catch {
|
|
13914
|
+
process.stderr.write(`Failed to read previous summary file: ${file}
|
|
13915
|
+
`);
|
|
13916
|
+
return void 0;
|
|
13917
|
+
}
|
|
13918
|
+
})(),
|
|
13908
13919
|
restoreCheckpoint,
|
|
13909
13920
|
images: images.length > 0 ? images : void 0
|
|
13910
13921
|
});
|