cxstatusline 0.4.1 → 0.5.1

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.
@@ -58196,8 +58196,8 @@ function runRefreshCommand(cacheKey2, deps) {
58196
58196
  return 0;
58197
58197
  }
58198
58198
  // src/version-info.ts
58199
- var VERSION = "0.4.1";
58200
- var SOURCE_COMMIT = /^[0-9a-f]{40}$/.test("d5cfa7430d7fdb52a032c51c289131d04f714dd4") ? "d5cfa7430d7fdb52a032c51c289131d04f714dd4" : null;
58199
+ var VERSION = "0.5.1";
58200
+ var SOURCE_COMMIT = /^[0-9a-f]{40}$/.test("53f07035eea93931f7c0195d208f81b525ef1b80") ? "53f07035eea93931f7c0195d208f81b525ef1b80" : 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 fontFound = import_react44.useMemo(detectPowerlineFont, []);
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.4.1",
3
+ "version": "0.5.1",
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",