ferix-code 0.0.2-beta.11 → 0.0.2-beta.12

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/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ import { Command } from "commander";
71
71
  // package.json
72
72
  var package_default = {
73
73
  name: "ferix-code",
74
- version: "0.0.2-beta.11",
74
+ version: "0.0.2-beta.12",
75
75
  description: "Composable RALPH loops for AI coding agents - v2 with Effect",
76
76
  type: "module",
77
77
  bin: {
@@ -616,9 +616,11 @@ function separator(width) {
616
616
  );
617
617
  }
618
618
  function borderedLine(content, width) {
619
- const stripped = stripAnsi(content);
620
- const padding = Math.max(0, width - stripped.length - 4);
621
- return `${pc11.cyan(box.vertical)} ${content}${" ".repeat(padding)} ${pc11.cyan(box.vertical)}`;
619
+ const innerWidth = width - 4;
620
+ const finalContent = stripAnsi(content).length > innerWidth ? truncate(content, innerWidth) : content;
621
+ const finalStripped = stripAnsi(finalContent);
622
+ const padding = Math.max(0, innerWidth - finalStripped.length);
623
+ return `${pc11.cyan(box.vertical)} ${finalContent}${" ".repeat(padding)} ${pc11.cyan(box.vertical)}`;
622
624
  }
623
625
  function emptyBorderedLine(width) {
624
626
  const repeatCount = Math.max(0, width - 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ferix-code",
3
- "version": "0.0.2-beta.11",
3
+ "version": "0.0.2-beta.12",
4
4
  "description": "Composable RALPH loops for AI coding agents - v2 with Effect",
5
5
  "type": "module",
6
6
  "bin": {