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.
- package/dist/index.js +6 -4
- 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.
|
|
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
|
|
620
|
-
const
|
|
621
|
-
|
|
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);
|