nolo-cli 0.75.0-alpha.5 → 0.75.0-alpha.6

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.
@@ -8,7 +8,7 @@ import {
8
8
  resolveRunSettlementNote,
9
9
  resolveWorkflowReference,
10
10
  runAgentRunCommand
11
- } from "./chunk-UPR5N3UO.js";
11
+ } from "./chunk-RL5PTRUQ.js";
12
12
  import "./chunk-S7Z2HMCN.js";
13
13
  import {
14
14
  parseAgentRunArgs
@@ -1324,15 +1324,18 @@ function resolveTuiBrightnessSignal(env = process.env) {
1324
1324
  if (explicit === "dark") return "dark";
1325
1325
  if (activeThemeMode !== "terminal") return activeThemeMode;
1326
1326
  if (resolvedBrightness) return resolvedBrightness;
1327
- const colorfgbg = env.COLORFGBG ?? "";
1328
- if (colorfgbg) {
1329
- const parts = colorfgbg.split(";");
1330
- const bg = parts.length > 1 ? Number.parseInt(parts[1] ?? "", 10) : NaN;
1331
- if (!Number.isNaN(bg) && bg >= 0 && bg <= 6) return "dark";
1332
- if (!Number.isNaN(bg) && bg >= 7 && bg <= 15) return "light";
1333
- }
1327
+ const colorFgBgBrightness = detectColorFgBgBrightness(env);
1328
+ if (colorFgBgBrightness) return colorFgBgBrightness;
1334
1329
  return detectSystemBrightnessFromEnv(env);
1335
1330
  }
1331
+ function detectColorFgBgBrightness(env) {
1332
+ const parts = (env.COLORFGBG ?? "").split(";");
1333
+ const bg = Number.parseInt(parts.at(-1) ?? "", 10);
1334
+ if (Number.isNaN(bg)) return null;
1335
+ if (bg >= 0 && bg <= 6) return "dark";
1336
+ if (bg >= 7 && bg <= 15) return "light";
1337
+ return null;
1338
+ }
1336
1339
  function resolveTuiThemeMode(env = process.env, fallback = activeThemeMode) {
1337
1340
  const explicit = (env.NOLO_TUI_THEME ?? "").trim().toLowerCase();
1338
1341
  if (explicit === "light" || explicit === "dark") return explicit;
@@ -1489,6 +1492,9 @@ function surfaceBackgroundSequence(env = process.env, brightness = resolveTuiBri
1489
1492
  }
1490
1493
  function userSurfaceBackgroundSequence(env = process.env, brightness = resolveTuiBrightness(env)) {
1491
1494
  if (!supportsTruecolor(env)) return "";
1495
+ if (resolveTuiThemeMode(env) === "terminal" && activeTerminalBaseHex === null && detectColorFgBgBrightness(env) === null) {
1496
+ return "";
1497
+ }
1492
1498
  const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.trail;
1493
1499
  const surfaceHex = brightness === "light" ? palette.light.chrome.hex : palette.dark.accent.hex;
1494
1500
  const weight = brightness === "dark" ? 0.3 : 0.08;
package/index.js CHANGED
@@ -127,7 +127,7 @@ function createDaemonShortcutCommand(path, description, command2) {
127
127
  // packages/cli/agentInternalCommandEntries.ts
128
128
  function getAgentInternalCommandEntries() {
129
129
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
130
- const { runAgentRunCommand } = await import("./agentRunCommand-ARZU224Q.js");
130
+ const { runAgentRunCommand } = await import("./agentRunCommand-CDRQIDLW.js");
131
131
  return runAgentRunCommand(args2, {
132
132
  env: ctx.env,
133
133
  scriptDir: ctx.scriptDir,
@@ -875,7 +875,7 @@ async function runScript(script, forwardedArgs, env) {
875
875
  return proc.exited;
876
876
  }
877
877
  async function launchTuiWorkspace(args2) {
878
- const { startTuiWorkspace } = await import("./readlineWorkspace-Y27LK4KJ.js");
878
+ const { startTuiWorkspace } = await import("./readlineWorkspace-RFSDCOKK.js");
879
879
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-3Z24VUWM.js");
880
880
  return startTuiWorkspace({
881
881
  ...args2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.75.0-alpha.5",
3
+ "version": "0.75.0-alpha.6",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
@@ -72,7 +72,7 @@ import {
72
72
  wrapTextToLines,
73
73
  wrapTranscriptLine,
74
74
  wrapTranscriptLineWithLayout
75
- } from "./chunk-UPR5N3UO.js";
75
+ } from "./chunk-RL5PTRUQ.js";
76
76
  import "./chunk-S7Z2HMCN.js";
77
77
  import {
78
78
  listFavoriteAgentIdsAcrossServers,