nolo-cli 0.105.0-alpha.2 → 0.105.0-alpha.3

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/index.js CHANGED
@@ -892,7 +892,7 @@ async function runScript(script, forwardedArgs, env) {
892
892
  return proc.exited;
893
893
  }
894
894
  async function launchTuiWorkspace(args2) {
895
- const { startTuiWorkspace } = await import("./readlineWorkspace-PXATJOED.js");
895
+ const { startTuiWorkspace } = await import("./readlineWorkspace-VXWM4UYD.js");
896
896
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-WFRWERGK.js");
897
897
  return startTuiWorkspace({
898
898
  ...args2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.105.0-alpha.2",
3
+ "version": "0.105.0-alpha.3",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
@@ -5858,6 +5858,16 @@ function trimUrl(raw) {
5858
5858
  }
5859
5859
  return out;
5860
5860
  }
5861
+ function collectConversationTurns(history) {
5862
+ const turns = [...history.turns];
5863
+ if (history.currentRole != null && history.currentContent) {
5864
+ turns.push({
5865
+ role: history.currentRole ?? void 0,
5866
+ content: history.currentContent
5867
+ });
5868
+ }
5869
+ return turns;
5870
+ }
5861
5871
  function extractConversationLinks(turns, options = {}) {
5862
5872
  const limit = options.limit ?? 20;
5863
5873
  const seen = /* @__PURE__ */ new Map();
@@ -10098,7 +10108,7 @@ async function runSubmittedSlashLine(line, host, actionGateHandler, confirmDestr
10098
10108
  spawnRunner,
10099
10109
  installAltScreenRestoreHandlers: installAltScreenRestoreHandlers2
10100
10110
  } = host;
10101
- const result = handleTuiInput(line, host.state, host.history.turns);
10111
+ const result = handleTuiInput(line, host.state, collectConversationTurns(host.history));
10102
10112
  const previousAgentKey = host.state.agentKey;
10103
10113
  host.state = result.nextState;
10104
10114
  const interactive = isInteractiveInput(input);
@@ -11563,7 +11573,7 @@ ${err.message}` : ""}`
11563
11573
  cursorPos = 0;
11564
11574
  if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
11565
11575
  const beforeAgentKey = state.agentKey;
11566
- const res = handleTuiInput(submittedText, state, history.turns);
11576
+ const res = handleTuiInput(submittedText, state, collectConversationTurns(history));
11567
11577
  if (res.action?.type === "paste-clipboard") {
11568
11578
  await readAndApplyClipboard("slash");
11569
11579
  return;