@bramblex/codex-workbench 0.1.15 → 0.1.16
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/package.json +1 -1
- package/src/ui/workbench.js +5 -3
package/package.json
CHANGED
package/src/ui/workbench.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
require('./blessed-compat');
|
|
5
5
|
const blessed = require('blessed');
|
|
6
|
+
const pkg = require('../../package.json');
|
|
6
7
|
const { printList, printShow } = require('../cli-output');
|
|
7
8
|
const { deleteSessionFile } = require('../model/session-store');
|
|
8
9
|
const { localTime, shortId, truncate } = require('../model/format');
|
|
@@ -27,6 +28,7 @@ async function runWorkbench() {
|
|
|
27
28
|
return printList(loadWorkbenchSessions().sessions);
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
const appTitle = `Codex Workbench v${pkg.version}`;
|
|
30
32
|
let sessions = [];
|
|
31
33
|
let sources = [];
|
|
32
34
|
let sourceErrors = [];
|
|
@@ -45,7 +47,7 @@ async function runWorkbench() {
|
|
|
45
47
|
const screen = blessed.screen({
|
|
46
48
|
smartCSR: true,
|
|
47
49
|
fullUnicode: true,
|
|
48
|
-
title:
|
|
50
|
+
title: appTitle,
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
const header = blessed.box({
|
|
@@ -56,7 +58,7 @@ async function runWorkbench() {
|
|
|
56
58
|
height: 3,
|
|
57
59
|
padding: { left: 1, right: 1 },
|
|
58
60
|
style: { fg: 'white', bg: 'blue' },
|
|
59
|
-
content:
|
|
61
|
+
content: appTitle,
|
|
60
62
|
});
|
|
61
63
|
|
|
62
64
|
const projectsList = blessed.list({
|
|
@@ -464,7 +466,7 @@ async function runWorkbench() {
|
|
|
464
466
|
const render = () => {
|
|
465
467
|
applyLayout();
|
|
466
468
|
const visible = currentSessions();
|
|
467
|
-
header.setContent(`
|
|
469
|
+
header.setContent(` ${appTitle}\n ${visible.length}/${sessions.length} visible ${groupDisplayName(currentGroup())}`);
|
|
468
470
|
detailBox.setContent(detailContent(selectedSession()));
|
|
469
471
|
updateFocusStyles();
|
|
470
472
|
screen.render();
|