@robinpath/cli 2.5.0 → 2.6.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 +6 -15
  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 ? "2.5.0" : "2.5.0";
18601
+ var CLI_VERSION = true ? "2.6.0" : "2.6.0";
18602
18602
  var FLAG_QUIET = false;
18603
18603
  var FLAG_VERBOSE = false;
18604
18604
  var FLAG_AUTO_ACCEPT = false;
@@ -24216,23 +24216,14 @@ function TextBlock({ content }) {
24216
24216
  }) });
24217
24217
  }
24218
24218
  function CodeBlock({ content, lang }) {
24219
- const w = Math.min(process.stdout.columns - 6 || 72, 72);
24220
24219
  const allLines = content.split("\n");
24221
24220
  const MAX_CODE_LINES = 30;
24222
24221
  const truncated = allLines.length > MAX_CODE_LINES;
24223
- const lines = truncated ? [...allLines.slice(0, 20), `... (${allLines.length - 25} lines hidden)`, ...allLines.slice(-5)] : allLines;
24224
- return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginY: 1, marginX: 1, children: [
24225
- /* @__PURE__ */ jsxs(Text, { children: [
24226
- /* @__PURE__ */ jsx(Text, { dimColor: true, children: " \u250C" }),
24227
- lang ? /* @__PURE__ */ jsx(Text, { dimColor: true, children: ` ${lang} ` }) : null,
24228
- /* @__PURE__ */ jsx(Text, { dimColor: true, children: "\u2500".repeat(Math.max(0, w - (lang ? lang.length + 5 : 3))) })
24229
- ] }),
24230
- lines.map((line, i) => /* @__PURE__ */ jsxs(Text, { children: [
24231
- /* @__PURE__ */ jsx(Text, { dimColor: true, children: " \u2502 " }),
24232
- /* @__PURE__ */ jsx(Text, { color: "white", children: line.slice(0, w - 5) })
24233
- ] }, i)),
24234
- /* @__PURE__ */ jsx(Text, { dimColor: true, children: " \u2514" + "\u2500".repeat(w - 3) })
24235
- ] });
24222
+ const lines = truncated ? [...allLines.slice(0, 20), `\u2026 ${allLines.length - 25} more lines`, ...allLines.slice(-5)] : allLines;
24223
+ return /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginY: 0, paddingLeft: 2, children: lines.map((line, i) => /* @__PURE__ */ jsxs(Text, { children: [
24224
+ /* @__PURE__ */ jsx(Text, { children: " " }),
24225
+ /* @__PURE__ */ jsx(Text, { children: line })
24226
+ ] }, i)) });
24236
24227
  }
24237
24228
  function Markdown({ children }) {
24238
24229
  const blocks = parseBlocks(children);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinpath/cli",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "AI-powered scripting CLI — automate anything from your terminal",
5
5
  "type": "module",
6
6
  "license": "MIT",