zames_pro 2.28.2 → 2.29.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/browser.js +8 -0
- package/dist/index.js +10 -1
- package/dist/input.js +5 -0
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1051,6 +1051,14 @@ export class DeepSeekBrowser {
|
|
|
1051
1051
|
getToggleStatesSync() {
|
|
1052
1052
|
return this._toggles;
|
|
1053
1053
|
}
|
|
1054
|
+
// Update the cached toggle states (used by the status icons) without a send.
|
|
1055
|
+
// Called from /config so the icons change immediately.
|
|
1056
|
+
setToggleState(s) {
|
|
1057
|
+
if (typeof s.deepThinking === 'boolean')
|
|
1058
|
+
this._toggles.deepThinking = s.deepThinking;
|
|
1059
|
+
if (typeof s.webSearch === 'boolean')
|
|
1060
|
+
this._toggles.webSearch = s.webSearch;
|
|
1061
|
+
}
|
|
1054
1062
|
// The CURRENT state of the two DeepSeek toggles, read from the DOM
|
|
1055
1063
|
// (aria-pressed) so the status line reflects what is actually on, not what
|
|
1056
1064
|
// the config asked for. Falls back to the configured values when the buttons
|
package/dist/index.js
CHANGED
|
@@ -1407,13 +1407,22 @@ async function main() {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
// Reflect browser toggles on the LIVE browser object. The browser is
|
|
1409
1409
|
// created once at startup, so without this a /config set browser.*
|
|
1410
|
-
// change would only apply after a restart.
|
|
1410
|
+
// change would only apply after a restart. We also update the cached
|
|
1411
|
+
// toggle states (_toggles) that the status icons read, and repaint the
|
|
1412
|
+
// editor, so the 🧠/🌐 icons change IMMEDIATELY (previously they only
|
|
1413
|
+
// updated after the next send, when _applyToggles() ran).
|
|
1411
1414
|
if (path === 'browser.deepThinking' || path === 'browser.webSearch') {
|
|
1412
1415
|
const b = browser;
|
|
1413
1416
|
if (path === 'browser.deepThinking')
|
|
1414
1417
|
b.deepThinking = !!value;
|
|
1415
1418
|
else
|
|
1416
1419
|
b.webSearch = !!value;
|
|
1420
|
+
b.setToggleState({
|
|
1421
|
+
deepThinking: b.deepThinking,
|
|
1422
|
+
webSearch: b.webSearch,
|
|
1423
|
+
});
|
|
1424
|
+
if (editor)
|
|
1425
|
+
editor.refreshStatus();
|
|
1417
1426
|
}
|
|
1418
1427
|
}
|
|
1419
1428
|
function configSetRaw(field, raw) {
|
package/dist/input.js
CHANGED
|
@@ -720,6 +720,11 @@ export class LineEditor {
|
|
|
720
720
|
this.rendered = true;
|
|
721
721
|
this.cursorRowFromTop = top + lay.cursorRow;
|
|
722
722
|
}
|
|
723
|
+
// Public repaint hook: called when an external state that the status line
|
|
724
|
+
// reads (e.g. the toggle icons) changed, so it can be redrawn immediately.
|
|
725
|
+
refreshStatus() {
|
|
726
|
+
this._render();
|
|
727
|
+
}
|
|
723
728
|
_render() {
|
|
724
729
|
this._eraseBlock();
|
|
725
730
|
this._writeBlock();
|