@oxecli/oxe 1.0.45 → 1.0.47

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 +10 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -26,15 +26,18 @@ export class CLI {
26
26
  }
27
27
  renderHeader(model = default_model) {
28
28
  const version = packageInfo.version ?? "unknown";
29
- const detailLine = (label, value) => {
30
- const plain = `${label} ${value}`;
31
- return `[dim]${label}[/dim] ${value}` + " ".repeat(Math.max(0, 69 - plain.length));
29
+ const cellWidth = 23;
30
+ const labelCell = (label) => {
31
+ return `[dim]${label}[/dim]` + " ".repeat(Math.max(0, cellWidth - label.length));
32
32
  };
33
+ const valueCell = (value, color) => {
34
+ return `[bold ${color}]${value}[/bold ${color}]` + " ".repeat(Math.max(0, cellWidth - value.length));
35
+ };
36
+ const description = "A focused terminal workspace for building and shipping software.";
33
37
  renderPanel("[bold white]Terminal coding agent[/bold white]\n" +
34
- "\n" +
35
- detailLine("Version", version) + "\n" +
36
- detailLine("Model", model) + "\n" +
37
- detailLine("Engine", "Ready"), "Oxe", "", false, "90", "left");
38
+ `[dim]${description}[/dim]\n\n` +
39
+ labelCell("Version") + labelCell("Model") + labelCell("Engine") + "\n" +
40
+ valueCell(version, "cyan") + valueCell(model, "blue") + valueCell("Ready", "green"), "Oxe", "", false, "90", "left");
38
41
  }
39
42
  saveSession(engine) {
40
43
  if (!this.inputItems.length)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxecli/oxe",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },