@robinpath/cli 1.97.0 → 1.98.0

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/cli.mjs +5 -6
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -18598,7 +18598,7 @@ function getNativeModules() {
18598
18598
  import { join as join3, basename as basename2 } from "node:path";
18599
18599
  import { homedir as homedir2, platform as platform2 } from "node:os";
18600
18600
  import { existsSync as existsSync2 } from "node:fs";
18601
- var CLI_VERSION = true ? "1.97.0" : "1.97.0";
18601
+ var CLI_VERSION = true ? "1.98.0" : "1.98.0";
18602
18602
  var FLAG_QUIET = false;
18603
18603
  var FLAG_VERBOSE = false;
18604
18604
  var FLAG_AUTO_ACCEPT = false;
@@ -24614,10 +24614,7 @@ function ChatApp({ engine }) {
24614
24614
  },
24615
24615
  onCancel: () => setShowModelPicker(false)
24616
24616
  }
24617
- ) : loading ? /* @__PURE__ */ jsx2(Box2, { flexDirection: "column", paddingX: 1, children: streaming ? /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", children: [
24618
- /* @__PURE__ */ jsx2(Markdown, { children: streaming }),
24619
- /* @__PURE__ */ jsx2(Text2, { color: "cyan", children: "\u258D" })
24620
- ] }) : /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
24617
+ ) : loading ? /* @__PURE__ */ jsx2(Box2, { flexDirection: "column", paddingX: 1, children: streaming ? /* @__PURE__ */ jsx2(Text2, { wrap: "wrap", children: streaming }) : /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
24621
24618
  /* @__PURE__ */ jsx2(InkSpinner, { type: "dots" }),
24622
24619
  " Thinking"
24623
24620
  ] }) }) : /* @__PURE__ */ jsx2(
@@ -24801,7 +24798,9 @@ Type / to see available commands.`;
24801
24798
  }
24802
24799
  fullText += delta;
24803
24800
  const clean = fullText.replace(/<memory>[\s\S]*?<\/memory>/g, "").replace(/<cmd>[\s\S]*?<\/cmd>/g, "").replace(/\n{3,}/g, "\n\n").trim();
24804
- ui?.setStreaming(clean);
24801
+ const hasOpenCmd = fullText.includes("<cmd>") && !fullText.endsWith("</cmd>") && (fullText.match(/<cmd>/g) || []).length > (fullText.match(/<\/cmd>/g) || []).length;
24802
+ const display = hasOpenCmd ? clean + "\n\nPreparing commands..." : clean;
24803
+ ui?.setStreaming(display);
24805
24804
  },
24806
24805
  conversationHistory: this.conversationMessages.slice(0, -1),
24807
24806
  provider: activeProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinpath/cli",
3
- "version": "1.97.0",
3
+ "version": "1.98.0",
4
4
  "description": "AI-powered scripting CLI — automate anything from your terminal",
5
5
  "type": "module",
6
6
  "license": "MIT",