zames_pro 2.28.0 → 2.28.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.
Files changed (2) hide show
  1. package/dist/input.js +13 -11
  2. package/package.json +1 -1
package/dist/input.js CHANGED
@@ -387,19 +387,21 @@ export class LineEditor {
387
387
  return theme.success(ctx);
388
388
  }
389
389
  // Icons for the DeepSeek toggles: 🧠 "Deep thinking" and 🌐 "Smart search",
390
- // shown before the context counter. Only the ENABLED toggles are shown, and
391
- // they are teal-green. This does NOT rely on the terminal honoring the ANSI
392
- // color: a disabled toggle is simply absent, so there is no ambiguity
393
- // between "gray (off)" and "the emoji's own color (on)". U+FE0E forces the
394
- // monochrome TEXT presentation so the green is actually visible.
390
+ // shown before the context counter. BOTH icons are always visible so the
391
+ // operator can compare states; the state is encoded STRUCTURALLY (not only
392
+ // by color, which many terminals ignore for emoji):
393
+ // 🧠 (green, plain) — the toggle is ON
394
+ // (🧠) (dim, brackets) — the toggle is OFF
395
+ // The brackets are a reliable, color-independent cue that the toggle is off.
395
396
  _toggleIcons() {
396
397
  const TEXT = '\uFE0E';
397
- const parts = [];
398
- if (this.thinkingEnabled)
399
- parts.push(theme.toggleOn('🧠' + TEXT));
400
- if (this.searchEnabled)
401
- parts.push(theme.toggleOn('🌐' + TEXT));
402
- return parts.length ? parts.join(' ') + ' ' : '';
398
+ const mark = (onState, glyph) => {
399
+ const g = glyph + TEXT;
400
+ return onState ? theme.toggleOn(g) : theme.toggleOff('(' + g + ')');
401
+ };
402
+ const brain = mark(this.thinkingEnabled, '🧠');
403
+ const globe = mark(this.searchEnabled, '🌐');
404
+ return brain + ' ' + globe + ' ';
403
405
  }
404
406
  // Read the OS clipboard for an image and insert its marker. Used when the
405
407
  // terminal sends no usable paste data (Ctrl+V / right-click / empty paste).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.28.0",
3
+ "version": "2.28.1",
4
4
  "description": "Terminal coding agent over chat.deepseek.com via Playwright",
5
5
  "type": "module",
6
6
  "bin": {