aegis-desktop 0.7.1 → 0.7.2
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/package.json +1 -1
- package/renderer/app.js +19 -2
- package/renderer/index.html +5 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aegis-desktop",
|
|
3
3
|
"productName": "AEGIS Desktop",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"description": "Thin Electron host for AEGIS — a local chat UI over the shared client/aegis.js transport. Ships transport + UI only; engine logic stays server-side.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "AEGIS Code",
|
package/renderer/app.js
CHANGED
|
@@ -1977,6 +1977,15 @@ async function spawnPath(card, spec) {
|
|
|
1977
1977
|
// text nor a tool call would trigger the empty-turn recovery — an
|
|
1978
1978
|
// extra dispatch this lane has no gathered context to justify.
|
|
1979
1979
|
tools: false,
|
|
1980
|
+
// `singlePass` is what makes that promise true on the pooled class.
|
|
1981
|
+
// The engine derives the pooled brain flag as
|
|
1982
|
+
// `singlePass ? false : autonomous ? true : undefined`, and this lane
|
|
1983
|
+
// set neither: on a `nexus-brain*` id the flag was `undefined`, so the
|
|
1984
|
+
// model id's own default decided — which is the fan-out. A card that
|
|
1985
|
+
// was meant to be one cheap 1024-token pass could therefore bill a
|
|
1986
|
+
// workers + synthesis dispatch, twice per turn. Explicit `false` =
|
|
1987
|
+
// one provider call, always.
|
|
1988
|
+
singlePass: true,
|
|
1980
1989
|
sessionId: id,
|
|
1981
1990
|
},
|
|
1982
1991
|
onDelta
|
|
@@ -3206,9 +3215,17 @@ async function init() {
|
|
|
3206
3215
|
});
|
|
3207
3216
|
updateAutonomousControlsVisibility();
|
|
3208
3217
|
|
|
3209
|
-
// The discovery lane is opt-in
|
|
3218
|
+
// The discovery lane is opt-in, remembered across restarts.
|
|
3219
|
+
//
|
|
3220
|
+
// This used to read `savedExplore === 'off'` against a checkbox that shipped
|
|
3221
|
+
// `checked` in index.html, i.e. the opposite of the comment above it: a fresh
|
|
3222
|
+
// install (no `aegis.explore` key, and nothing had ever written one) landed
|
|
3223
|
+
// with the lane ON and billed two extra model calls after every single turn —
|
|
3224
|
+
// ~3× the tokens of a plain reply, silently, because the lane is
|
|
3225
|
+
// fire-and-forget and never looks slow. Only an explicit 'on' turns it on
|
|
3226
|
+
// now; every other state, including "never asked", means off.
|
|
3210
3227
|
const savedExplore = localStorage.getItem(EXPLORE_KEY);
|
|
3211
|
-
|
|
3228
|
+
els.exploreToggle.checked = savedExplore === 'on';
|
|
3212
3229
|
els.exploreToggle.addEventListener('change', () => {
|
|
3213
3230
|
localStorage.setItem(EXPLORE_KEY, els.exploreToggle.checked ? 'on' : 'off');
|
|
3214
3231
|
if (!els.exploreToggle.checked) abortBranches();
|
package/renderer/index.html
CHANGED
|
@@ -353,9 +353,12 @@
|
|
|
353
353
|
<label
|
|
354
354
|
class="flow-toggle"
|
|
355
355
|
for="explore-toggle"
|
|
356
|
-
title="After every answer, send the AI down two extra paths — an alternative angle and an unexpected discovery — shown as a horizontal discovery lane."
|
|
356
|
+
title="Optional, off by default. After every answer, send the AI down two extra paths — an alternative angle and an unexpected discovery — shown as a horizontal discovery lane. This costs two extra model calls per turn (roughly 3× the tokens of a plain reply)."
|
|
357
357
|
>
|
|
358
|
-
|
|
358
|
+
<!-- Unchecked in the markup on purpose: the lane bills two extra
|
|
359
|
+
model calls per turn, so it is opt-in. app.js only ticks this
|
|
360
|
+
when the user has explicitly saved 'on' (aegis.explore). -->
|
|
361
|
+
<input type="checkbox" id="explore-toggle" />
|
|
359
362
|
<span>discovery lane</span>
|
|
360
363
|
</label>
|
|
361
364
|
<button type="submit" id="send">Send</button>
|