@strayl/agent 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/agent.js +17 -2
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -12912,7 +12912,7 @@ Examples where you MUST NOT use this:
12912
12912
  return JSON.stringify({
12913
12913
  success: true,
12914
12914
  reason: args.reason,
12915
- message: "Plan mode activated. Use read-only tools and interviewUser to gather requirements, then writePlan to create the plan."
12915
+ message: "Plan mode activated. Use read-only tools and askUser to gather requirements, then writePlan to create the plan."
12916
12916
  });
12917
12917
  }
12918
12918
  };
@@ -13753,6 +13753,10 @@ ${IMPLEMENTATION_MODE_PROMPT2}`);
13753
13753
  const prevMode = currentMode;
13754
13754
  currentMode = "plan";
13755
13755
  emitter.emit({ type: "mode-changed", from: prevMode, to: currentMode });
13756
+ const { PLAN_MODE_SYSTEM_PROMPT: PLAN_MODE_SYSTEM_PROMPT2 } = await Promise.resolve().then(() => (init_system(), system_exports));
13757
+ context.addUser(`[System] You have entered plan mode.
13758
+
13759
+ ${PLAN_MODE_SYSTEM_PROMPT2}`);
13756
13760
  }
13757
13761
  }
13758
13762
  await checkpoints.save(iteration, context.messages(), todoManager.read(), context.totalUsage(), emitter);
@@ -13828,6 +13832,7 @@ var { values } = parseArgs({
13828
13832
  "hitl-dir": { type: "string", default: "/tmp/hitl" },
13829
13833
  "skills-dir": { type: "string", default: "./skills" },
13830
13834
  "previous-summary": { type: "string" },
13835
+ "previous-summary-file": { type: "string" },
13831
13836
  "max-iterations": { type: "string", default: "200" },
13832
13837
  "work-dir": { type: "string" },
13833
13838
  "restore-checkpoint": { type: "string" }
@@ -13904,7 +13909,17 @@ try {
13904
13909
  maxIterations: parseInt(values["max-iterations"]),
13905
13910
  hitlDir: values["hitl-dir"],
13906
13911
  skillsDir: values["skills-dir"],
13907
- previousSummary: values["previous-summary"],
13912
+ previousSummary: values["previous-summary"] ?? await (async () => {
13913
+ const file = values["previous-summary-file"];
13914
+ if (!file) return void 0;
13915
+ try {
13916
+ return await fs12.readFile(file, "utf-8");
13917
+ } catch {
13918
+ process.stderr.write(`Failed to read previous summary file: ${file}
13919
+ `);
13920
+ return void 0;
13921
+ }
13922
+ })(),
13908
13923
  restoreCheckpoint,
13909
13924
  images: images.length > 0 ? images : void 0
13910
13925
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strayl/agent",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"