cxstatusline 0.4.1 → 0.5.0
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/cxstatusline.js +8 -6
- package/package.json +3 -3
- package/patches/codex-0.155.0.patch +1491 -0
- package/patches/manifest.json +3 -2
package/dist/cxstatusline.js
CHANGED
|
@@ -58196,8 +58196,8 @@ function runRefreshCommand(cacheKey2, deps) {
|
|
|
58196
58196
|
return 0;
|
|
58197
58197
|
}
|
|
58198
58198
|
// src/version-info.ts
|
|
58199
|
-
var VERSION = "0.
|
|
58200
|
-
var SOURCE_COMMIT = /^[0-9a-f]{40}$/.test("
|
|
58199
|
+
var VERSION = "0.5.0";
|
|
58200
|
+
var SOURCE_COMMIT = /^[0-9a-f]{40}$/.test("7e5c4b19fd78a4f566b4426b08f38fd65bfccdf0") ? "7e5c4b19fd78a4f566b4426b08f38fd65bfccdf0" : null;
|
|
58201
58201
|
var SOURCE_DIRTY = false;
|
|
58202
58202
|
|
|
58203
58203
|
// src/context.ts
|
|
@@ -66450,7 +66450,8 @@ function PowerlineSetup({ settings, onUpdate, onBack }) {
|
|
|
66450
66450
|
const [screen, setScreen] = import_react44.useState("menu");
|
|
66451
66451
|
const [selected, setSelected] = import_react44.useState(0);
|
|
66452
66452
|
const [confirmEnable, setConfirmEnable] = import_react44.useState(false);
|
|
66453
|
-
const
|
|
66453
|
+
const browserRuntime = process.env.CXSTATUSLINE_WEB === "1";
|
|
66454
|
+
const fontFound = import_react44.useMemo(() => browserRuntime ? false : detectPowerlineFont(), [browserRuntime]);
|
|
66454
66455
|
const powerline = settings.powerline;
|
|
66455
66456
|
const manualSeparators = settings.lines.some((line3) => line3.some((item) => item.type === "separator"));
|
|
66456
66457
|
use_input_default((input2, key) => {
|
|
@@ -66516,7 +66517,7 @@ function PowerlineSetup({ settings, onUpdate, onBack }) {
|
|
|
66516
66517
|
}, undefined, false, undefined, this),
|
|
66517
66518
|
/* @__PURE__ */ jsx_dev_runtime23.jsxDEV(Text, {
|
|
66518
66519
|
dimColor: true,
|
|
66519
|
-
children: `Font detection: ${fontFound ? "compatible font found" : "no compatible font found"} (informational; terminal configuration controls glyph rendering)`
|
|
66520
|
+
children: browserRuntime ? "Font detection: unavailable in browser (the browser terminal decides glyph rendering)" : `Font detection: ${fontFound ? "compatible font found" : "no compatible font found"} (informational; terminal configuration controls glyph rendering)`
|
|
66520
66521
|
}, undefined, false, undefined, this),
|
|
66521
66522
|
/* @__PURE__ */ jsx_dev_runtime23.jsxDEV(Text, {
|
|
66522
66523
|
children: [
|
|
@@ -66594,8 +66595,9 @@ function clampSettings(settings) {
|
|
|
66594
66595
|
const lines = cloned.lines.slice(0, 3);
|
|
66595
66596
|
return { ...cloned, lines: lines.length ? lines : [[]] };
|
|
66596
66597
|
}
|
|
66597
|
-
function App2({ initialSettings, settingsPath, readImportFile = readImportFileFromDisk, writeSettings = saveSettings }) {
|
|
66598
|
-
const { exit } = use_app_default();
|
|
66598
|
+
function App2({ initialSettings, settingsPath, readImportFile = readImportFileFromDisk, writeSettings = saveSettings, onExit }) {
|
|
66599
|
+
const { exit: nativeExit } = use_app_default();
|
|
66600
|
+
const exit = onExit ?? nativeExit;
|
|
66599
66601
|
const { stdout } = use_stdout_default();
|
|
66600
66602
|
const [settings, setSettings] = import_react45.useState(() => initialSettings ? clampSettings(initialSettings) : null);
|
|
66601
66603
|
const [originalSettings, setOriginalSettings] = import_react45.useState(() => initialSettings ? clampSettings(initialSettings) : null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cxstatusline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Customizable statusline for OpenAI Codex CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"demo": "bun run build && vhs docs/demo.tape",
|
|
27
27
|
"build": "bun run scripts/build.ts",
|
|
28
|
-
"test": "bun test",
|
|
29
|
-
"test:coverage": "bun test --coverage",
|
|
28
|
+
"test": "bun test ./test ./src",
|
|
29
|
+
"test:coverage": "bun test --coverage ./test ./src",
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
31
|
"check:package": "bun run scripts/check-package.ts",
|
|
32
32
|
"upstream:watch": "bun run scripts/upstream-watch.ts",
|