@oxecli/oxe 1.0.47 → 1.0.48

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.js +7 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -27,11 +27,16 @@ export class CLI {
27
27
  renderHeader(model = default_model) {
28
28
  const version = packageInfo.version ?? "unknown";
29
29
  const cellWidth = 23;
30
+ const centeredCell = (value, render) => {
31
+ const left = Math.max(0, Math.floor((cellWidth - value.length) / 2));
32
+ const right = Math.max(0, cellWidth - value.length - left);
33
+ return " ".repeat(left) + render + " ".repeat(right);
34
+ };
30
35
  const labelCell = (label) => {
31
- return `[dim]${label}[/dim]` + " ".repeat(Math.max(0, cellWidth - label.length));
36
+ return centeredCell(label, `[dim]${label}[/dim]`);
32
37
  };
33
38
  const valueCell = (value, color) => {
34
- return `[bold ${color}]${value}[/bold ${color}]` + " ".repeat(Math.max(0, cellWidth - value.length));
39
+ return centeredCell(value, `[bold ${color}]${value}[/bold ${color}]`);
35
40
  };
36
41
  const description = "A focused terminal workspace for building and shipping software.";
37
42
  renderPanel("[bold white]Terminal coding agent[/bold white]\n" +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxecli/oxe",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },