junecoder 1.0.15 → 1.0.16

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/package.json +1 -1
  2. package/tui.mjs +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "junecoder",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Zero Npm Dependencies Agent Framework",
5
5
  "main": "agent.mjs",
6
6
  "type": "module",
package/tui.mjs CHANGED
@@ -535,7 +535,9 @@ export async function startTUI(agent, opts = {}) {
535
535
  if (typeof raw === "string") state.lines.push({ text: raw, color: C.text });
536
536
  else if (raw && typeof raw.text === "string") state.lines.push(raw);
537
537
  }
538
+ if (restored.history) agent.history = restored.history;
538
539
  if (restored.tasks) { state.tasks = restored.tasks; agent.tasks = restored.tasks; }
540
+ if (restored.goal) agent.goal = restored.goal;
539
541
  if (restored.planMode !== undefined) agent.planMode = restored.planMode;
540
542
  state.status = "Session restored";
541
543
  } else if (!setupMode) {