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.
|
@@ -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
|
|
1328
|
-
if (
|
|
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-
|
|
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-
|
|
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