@cortexkit/opencode-magic-context 0.37.0 → 0.38.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/README.md +2 -0
- package/dist/{derive-budgets-0f8xpyw2.js → derive-budgets-da4yg3tz.js} +1 -1
- package/dist/features/magic-context/dreamer/classify-prompt.d.ts +5 -1
- package/dist/features/magic-context/dreamer/classify-prompt.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/manifest-parser.d.ts +8 -0
- package/dist/features/magic-context/dreamer/manifest-parser.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +7 -1
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories.d.ts +18 -0
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +5 -0
- package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify-prompt.d.ts +5 -1
- package/dist/features/magic-context/dreamer/verify-prompt.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/features/magic-context/fail-closed-block.d.ts +6 -1
- package/dist/features/magic-context/fail-closed-block.d.ts.map +1 -1
- package/dist/features/magic-context/reclaim-protection.d.ts +13 -0
- package/dist/features/magic-context/reclaim-protection.d.ts.map +1 -0
- package/dist/features/magic-context/storage-db.d.ts +6 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +7 -6
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-tags.d.ts +13 -5
- package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/checker.d.ts +8 -1
- package/dist/hooks/auto-update-checker/checker.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-cycle.d.ts +16 -0
- package/dist/hooks/magic-context/channel2-cycle.d.ts.map +1 -0
- package/dist/hooks/magic-context/channel2-delivery.d.ts +3 -9
- package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.d.ts +2 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts +33 -103
- package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/execute-status.d.ts +2 -1
- package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
- package/dist/hooks/magic-context/fold-execution-gate.d.ts +2 -0
- package/dist/hooks/magic-context/fold-execution-gate.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/live-session-state.d.ts +3 -0
- package/dist/hooks/magic-context/live-session-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +4 -2
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/strip-content.d.ts +10 -8
- package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
- package/dist/hooks/magic-context/supersession-reclaim.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts +78 -0
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -0
- package/dist/hooks/magic-context/tool-reclaim.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +3 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-q0t189ay.js → index-9zhhvr4w.js} +27 -35
- package/dist/{index-0ze9p983.js → index-mmvhrqqb.js} +1428 -191
- package/dist/index.js +604 -763
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +2 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{recomp-orchestrator-c3ff16k7.js → recomp-orchestrator-jsde4ygw.js} +2 -2
- package/dist/shared/models-dev-cache.d.ts +2 -0
- package/dist/shared/models-dev-cache.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/rpc-types.d.ts +15 -0
- package/dist/shared/rpc-types.d.ts.map +1 -1
- package/dist/shared/rpc-utils.d.ts +9 -0
- package/dist/shared/rpc-utils.d.ts.map +1 -1
- package/dist/shared/tail-hygiene-status.d.ts +15 -0
- package/dist/shared/tail-hygiene-status.d.ts.map +1 -0
- package/dist/shared/window-geometry.d.ts +3 -2
- package/dist/shared/window-geometry.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/config/schema/magic-context.ts +2 -2
- package/src/shared/models-dev-cache.test.ts +25 -0
- package/src/shared/models-dev-cache.ts +5 -4
- package/src/shared/rpc-server.ts +1 -0
- package/src/shared/rpc-types.ts +16 -0
- package/src/shared/rpc-utils.test.ts +25 -0
- package/src/shared/rpc-utils.ts +80 -0
- package/src/shared/tail-hygiene-status.ts +57 -0
- package/src/shared/window-geometry.test.ts +34 -1
- package/src/shared/window-geometry.ts +37 -40
- package/src/tui/index.tsx +11 -1
- package/src/tui/slots/sidebar-content.tsx +17 -5
- package/src/tui-compiled/index.tsx +311 -289
- package/src/tui-compiled/slots/sidebar-content.tsx +316 -287
|
@@ -14,6 +14,7 @@ import packageJson from "../../package.json";
|
|
|
14
14
|
import { closeRpc, dismissUpgradeReminder, getAnnouncement, getCompartmentCount, getRpcGeneration, initRpcClient, loadEmbedDetail, loadStatusDetail, loadToastDurationMs, markAnnounced, requestRecomp, requestUpgrade } from "./data/context-db";
|
|
15
15
|
import { startNotificationSocket, stopNotificationSocket } from "./data/notification-socket";
|
|
16
16
|
import { formatThresholdPercent } from "../shared/format-threshold";
|
|
17
|
+
import { formatTailHygiene } from "../shared/tail-hygiene-status";
|
|
17
18
|
import { formatWindowDerivationLine } from "../shared/window-geometry";
|
|
18
19
|
import { compactionOffSidebarRows, nativeCompactionContextLabel } from "./compaction-off";
|
|
19
20
|
import { isCompactionEnabled } from "../config/agent-disable";
|
|
@@ -197,7 +198,7 @@ const StatusDialog = props => {
|
|
|
197
198
|
color: COLORS.profile
|
|
198
199
|
});
|
|
199
200
|
if (d.conversationTokens > 0) segs.push({
|
|
200
|
-
label: "Conversation",
|
|
201
|
+
label: "Conversation*",
|
|
201
202
|
tokens: d.conversationTokens,
|
|
202
203
|
color: COLORS.conversation
|
|
203
204
|
});
|
|
@@ -236,19 +237,20 @@ const StatusDialog = props => {
|
|
|
236
237
|
_el$12 = _$createTextNode(` tokens`),
|
|
237
238
|
_el$13 = _$createElement("box"),
|
|
238
239
|
_el$14 = _$createElement("box"),
|
|
239
|
-
_el$15 = _$createElement("
|
|
240
|
-
_el$
|
|
241
|
-
_el$
|
|
242
|
-
_el$
|
|
243
|
-
_el$20 = _$createElement("
|
|
244
|
-
_el$
|
|
240
|
+
_el$15 = _$createElement("text"),
|
|
241
|
+
_el$17 = _$createElement("box"),
|
|
242
|
+
_el$18 = _$createElement("box"),
|
|
243
|
+
_el$19 = _$createElement("text"),
|
|
244
|
+
_el$20 = _$createElement("b"),
|
|
245
|
+
_el$22 = _$createElement("box"),
|
|
246
|
+
_el$23 = _$createElement("text");
|
|
245
247
|
_$insertNode(_el$4, _el$5);
|
|
246
248
|
_$insertNode(_el$4, _el$1);
|
|
247
249
|
_$insertNode(_el$4, _el$13);
|
|
248
250
|
_$insertNode(_el$4, _el$14);
|
|
249
|
-
_$insertNode(_el$4, _el$
|
|
250
|
-
_$insertNode(_el$4, _el$
|
|
251
|
-
_$insertNode(_el$4, _el$
|
|
251
|
+
_$insertNode(_el$4, _el$17);
|
|
252
|
+
_$insertNode(_el$4, _el$18);
|
|
253
|
+
_$insertNode(_el$4, _el$22);
|
|
252
254
|
_$setProp(_el$4, "flexDirection", "column");
|
|
253
255
|
_$setProp(_el$4, "width", "100%");
|
|
254
256
|
_$setProp(_el$4, "paddingLeft", 2);
|
|
@@ -273,27 +275,27 @@ const StatusDialog = props => {
|
|
|
273
275
|
_$insert(_el$1, (() => {
|
|
274
276
|
var _c$ = _$memo(() => !!compactionOff());
|
|
275
277
|
return () => _c$() ? (() => {
|
|
276
|
-
var _el$23 = _$createElement("text"),
|
|
277
|
-
_el$24 = _$createElement("b");
|
|
278
|
-
_$insertNode(_el$23, _el$24);
|
|
279
|
-
_$insert(_el$24, () => nativeCompactionContextLabel(s()));
|
|
280
|
-
_$effect(_$p => _$setProp(_el$23, "fg", t().accent, _$p));
|
|
281
|
-
return _el$23;
|
|
282
|
-
})() : (() => {
|
|
283
278
|
var _el$25 = _$createElement("text"),
|
|
284
|
-
_el$26 = _$createElement("b")
|
|
285
|
-
_el$27 = _$createTextNode(`%`),
|
|
286
|
-
_el$28 = _$createTextNode(` / `),
|
|
287
|
-
_el$29 = _$createTextNode(`%`);
|
|
279
|
+
_el$26 = _$createElement("b");
|
|
288
280
|
_$insertNode(_el$25, _el$26);
|
|
289
|
-
_$
|
|
290
|
-
_$
|
|
291
|
-
_$insertNode(_el$26, _el$27);
|
|
292
|
-
_$insert(_el$26, () => s().usagePercentage.toFixed(1), _el$27);
|
|
293
|
-
_$insert(_el$25, () => formatThresholdPercent(s().executeThreshold), _el$29);
|
|
294
|
-
_$insert(_el$25, () => s().executeThresholdClamped ? "*" : "", null);
|
|
295
|
-
_$effect(_$p => _$setProp(_el$25, "fg", s().usagePercentage >= 80 ? t().error : s().usagePercentage >= 65 ? t().warning : t().accent, _$p));
|
|
281
|
+
_$insert(_el$26, () => nativeCompactionContextLabel(s()));
|
|
282
|
+
_$effect(_$p => _$setProp(_el$25, "fg", t().accent, _$p));
|
|
296
283
|
return _el$25;
|
|
284
|
+
})() : (() => {
|
|
285
|
+
var _el$27 = _$createElement("text"),
|
|
286
|
+
_el$28 = _$createElement("b"),
|
|
287
|
+
_el$29 = _$createTextNode(`%`),
|
|
288
|
+
_el$30 = _$createTextNode(` / `),
|
|
289
|
+
_el$31 = _$createTextNode(`%`);
|
|
290
|
+
_$insertNode(_el$27, _el$28);
|
|
291
|
+
_$insertNode(_el$27, _el$30);
|
|
292
|
+
_$insertNode(_el$27, _el$31);
|
|
293
|
+
_$insertNode(_el$28, _el$29);
|
|
294
|
+
_$insert(_el$28, () => s().usagePercentage.toFixed(1), _el$29);
|
|
295
|
+
_$insert(_el$27, () => formatThresholdPercent(s().executeThreshold), _el$31);
|
|
296
|
+
_$insert(_el$27, () => s().executeThresholdClamped ? "*" : "", null);
|
|
297
|
+
_$effect(_$p => _$setProp(_el$27, "fg", s().usagePercentage >= 80 ? t().error : s().usagePercentage >= 65 ? t().warning : t().accent, _$p));
|
|
298
|
+
return _el$27;
|
|
297
299
|
})();
|
|
298
300
|
})(), _el$10);
|
|
299
301
|
_$insertNode(_el$10, _el$11);
|
|
@@ -306,90 +308,107 @@ const StatusDialog = props => {
|
|
|
306
308
|
_$insert(_el$4, (() => {
|
|
307
309
|
var _c$3 = _$memo(() => !!s().windowGeometry);
|
|
308
310
|
return () => _c$3() && (() => {
|
|
309
|
-
var _el$
|
|
310
|
-
_$insert(_el$
|
|
311
|
-
_$effect(_$p => _$setProp(_el$
|
|
312
|
-
return _el$
|
|
311
|
+
var _el$32 = _$createElement("text");
|
|
312
|
+
_$insert(_el$32, () => formatWindowDerivationLine(s().inputTokens, s().windowGeometry));
|
|
313
|
+
_$effect(_$p => _$setProp(_el$32, "fg", t().textMuted, _$p));
|
|
314
|
+
return _el$32;
|
|
313
315
|
})();
|
|
314
316
|
})(), _el$13);
|
|
315
317
|
_$setProp(_el$13, "width", "100%");
|
|
316
318
|
_$setProp(_el$13, "flexDirection", "row");
|
|
317
319
|
_$setProp(_el$13, "height", 1);
|
|
318
320
|
_$insert(_el$13, () => barSegments().map(seg => (() => {
|
|
319
|
-
var _el$
|
|
320
|
-
_$setProp(_el$
|
|
321
|
-
_$setProp(_el$
|
|
321
|
+
var _el$33 = _$createElement("box");
|
|
322
|
+
_$setProp(_el$33, "flexBasis", 0);
|
|
323
|
+
_$setProp(_el$33, "height", 1);
|
|
322
324
|
_$effect(_p$ => {
|
|
323
|
-
var _v$
|
|
324
|
-
_v$
|
|
325
|
-
_v$
|
|
326
|
-
_v$
|
|
327
|
-
_v$
|
|
328
|
-
_v$
|
|
325
|
+
var _v$9 = seg.label,
|
|
326
|
+
_v$0 = Math.max(1, seg.tokens),
|
|
327
|
+
_v$1 = seg.color;
|
|
328
|
+
_v$9 !== _p$.e && (_p$.e = _$setProp(_el$33, "key", _v$9, _p$.e));
|
|
329
|
+
_v$0 !== _p$.t && (_p$.t = _$setProp(_el$33, "flexGrow", _v$0, _p$.t));
|
|
330
|
+
_v$1 !== _p$.a && (_p$.a = _$setProp(_el$33, "backgroundColor", _v$1, _p$.a));
|
|
329
331
|
return _p$;
|
|
330
332
|
}, {
|
|
331
333
|
e: undefined,
|
|
332
334
|
t: undefined,
|
|
333
335
|
a: undefined
|
|
334
336
|
});
|
|
335
|
-
return _el$
|
|
337
|
+
return _el$33;
|
|
336
338
|
})()));
|
|
339
|
+
_$insertNode(_el$14, _el$15);
|
|
337
340
|
_$setProp(_el$14, "flexDirection", "column");
|
|
338
341
|
_$insert(_el$14, () => breakdownSegments().segs.map(seg => {
|
|
339
342
|
const pct = (seg.tokens / breakdownSegments().total * 100).toFixed(1);
|
|
340
343
|
return (() => {
|
|
341
|
-
var _el$
|
|
342
|
-
_el$33 = _$createElement("text"),
|
|
343
|
-
_el$34 = _$createTextNode(` `),
|
|
344
|
+
var _el$34 = _$createElement("box"),
|
|
344
345
|
_el$35 = _$createElement("text"),
|
|
345
|
-
_el$36 = _$createTextNode(`
|
|
346
|
-
_el$37 = _$
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
_$
|
|
350
|
-
_$
|
|
351
|
-
_$setProp(_el$
|
|
352
|
-
_$
|
|
353
|
-
_$
|
|
354
|
-
_$insert(_el$33, () => seg.detail ?? "", null);
|
|
346
|
+
_el$36 = _$createTextNode(` `),
|
|
347
|
+
_el$37 = _$createElement("text"),
|
|
348
|
+
_el$38 = _$createTextNode(` (`),
|
|
349
|
+
_el$39 = _$createTextNode(`%)`);
|
|
350
|
+
_$insertNode(_el$34, _el$35);
|
|
351
|
+
_$insertNode(_el$34, _el$37);
|
|
352
|
+
_$setProp(_el$34, "width", "100%");
|
|
353
|
+
_$setProp(_el$34, "flexDirection", "row");
|
|
354
|
+
_$setProp(_el$34, "justifyContent", "space-between");
|
|
355
355
|
_$insertNode(_el$35, _el$36);
|
|
356
|
-
_$
|
|
357
|
-
_$insert(_el$35, () =>
|
|
358
|
-
_$
|
|
356
|
+
_$insert(_el$35, () => seg.label, _el$36);
|
|
357
|
+
_$insert(_el$35, () => seg.detail ?? "", null);
|
|
358
|
+
_$insertNode(_el$37, _el$38);
|
|
359
|
+
_$insertNode(_el$37, _el$39);
|
|
360
|
+
_$insert(_el$37, () => fmt(seg.tokens), _el$38);
|
|
361
|
+
_$insert(_el$37, pct, _el$39);
|
|
359
362
|
_$effect(_p$ => {
|
|
360
|
-
var _v$
|
|
361
|
-
_v$
|
|
362
|
-
_v$
|
|
363
|
-
_v$
|
|
364
|
-
_v$
|
|
365
|
-
_v$
|
|
363
|
+
var _v$10 = seg.label,
|
|
364
|
+
_v$11 = seg.color,
|
|
365
|
+
_v$12 = t().textMuted;
|
|
366
|
+
_v$10 !== _p$.e && (_p$.e = _$setProp(_el$34, "key", _v$10, _p$.e));
|
|
367
|
+
_v$11 !== _p$.t && (_p$.t = _$setProp(_el$35, "fg", _v$11, _p$.t));
|
|
368
|
+
_v$12 !== _p$.a && (_p$.a = _$setProp(_el$37, "fg", _v$12, _p$.a));
|
|
366
369
|
return _p$;
|
|
367
370
|
}, {
|
|
368
371
|
e: undefined,
|
|
369
372
|
t: undefined,
|
|
370
373
|
a: undefined
|
|
371
374
|
});
|
|
372
|
-
return _el$
|
|
375
|
+
return _el$34;
|
|
373
376
|
})();
|
|
374
|
-
}));
|
|
377
|
+
}), _el$15);
|
|
378
|
+
_$insertNode(_el$15, _$createTextNode(`* Conversation includes Reasoning; hygiene excludes it`));
|
|
379
|
+
_$insert(_el$14, (() => {
|
|
380
|
+
var _c$4 = _$memo(() => s().tailHygiene !== undefined);
|
|
381
|
+
return () => _c$4() && _$createComponent(R, {
|
|
382
|
+
get t() {
|
|
383
|
+
return t();
|
|
384
|
+
},
|
|
385
|
+
l: "Hygiene",
|
|
386
|
+
get v() {
|
|
387
|
+
return formatTailHygiene(s().tailHygiene);
|
|
388
|
+
},
|
|
389
|
+
get fg() {
|
|
390
|
+
return _$memo(() => !!s().tailHygiene.evaluable)() ? t().accent : t().warning;
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
})(), null);
|
|
375
394
|
_$insert(_el$4, (() => {
|
|
376
|
-
var _c$
|
|
377
|
-
return () => _c$
|
|
395
|
+
var _c$5 = _$memo(() => !!(!compactionOff() && s().recompProgress));
|
|
396
|
+
return () => _c$5() && (() => {
|
|
378
397
|
const p = s().recompProgress;
|
|
379
398
|
// Label follows the flow that started the run, so a plain
|
|
380
399
|
// /ctx-recomp never reads as an "Upgrade" (dogfood 2026-06-04).
|
|
381
400
|
const verb = p.kind === "upgrade" ? "Upgrade" : p.kind === "embed" ? "Embed" : "Recomp";
|
|
382
401
|
return (() => {
|
|
383
|
-
var _el$
|
|
384
|
-
_el$
|
|
385
|
-
_el$
|
|
386
|
-
_$insertNode(_el$
|
|
387
|
-
_$setProp(_el$
|
|
388
|
-
_$setProp(_el$
|
|
389
|
-
_$setProp(_el$
|
|
390
|
-
_$insertNode(_el$
|
|
391
|
-
_$insert(_el$
|
|
392
|
-
_$insert(_el$
|
|
402
|
+
var _el$40 = _$createElement("box"),
|
|
403
|
+
_el$41 = _$createElement("text"),
|
|
404
|
+
_el$42 = _$createElement("b");
|
|
405
|
+
_$insertNode(_el$40, _el$41);
|
|
406
|
+
_$setProp(_el$40, "marginTop", 1);
|
|
407
|
+
_$setProp(_el$40, "width", "100%");
|
|
408
|
+
_$setProp(_el$40, "flexDirection", "column");
|
|
409
|
+
_$insertNode(_el$41, _el$42);
|
|
410
|
+
_$insert(_el$42, verb);
|
|
411
|
+
_$insert(_el$40, () => {
|
|
393
412
|
if (p.phase === "recomp") {
|
|
394
413
|
const frac = p.totalMessages > 0 ? p.processedMessages / p.totalMessages : 0;
|
|
395
414
|
const width = 24;
|
|
@@ -489,28 +508,28 @@ const StatusDialog = props => {
|
|
|
489
508
|
}
|
|
490
509
|
});
|
|
491
510
|
}, null);
|
|
492
|
-
_$effect(_$p => _$setProp(_el$
|
|
493
|
-
return _el$
|
|
511
|
+
_$effect(_$p => _$setProp(_el$41, "fg", t().text, _$p));
|
|
512
|
+
return _el$40;
|
|
494
513
|
})();
|
|
495
514
|
})();
|
|
496
|
-
})(), _el$
|
|
497
|
-
_$setProp(_el$
|
|
498
|
-
_$setProp(_el$
|
|
499
|
-
_$setProp(_el$
|
|
500
|
-
_$setProp(_el$
|
|
501
|
-
_$insert(_el$
|
|
502
|
-
var _c$
|
|
503
|
-
return () => _c$
|
|
504
|
-
var _el$
|
|
505
|
-
_el$
|
|
506
|
-
_el$
|
|
507
|
-
_$insertNode(_el$
|
|
508
|
-
_$setProp(_el$
|
|
509
|
-
_$setProp(_el$
|
|
510
|
-
_$setProp(_el$
|
|
511
|
-
_$insertNode(_el$
|
|
512
|
-
_$insertNode(_el$
|
|
513
|
-
_$insert(_el$
|
|
515
|
+
})(), _el$17);
|
|
516
|
+
_$setProp(_el$17, "flexDirection", "row");
|
|
517
|
+
_$setProp(_el$17, "width", "100%");
|
|
518
|
+
_$setProp(_el$17, "marginTop", 1);
|
|
519
|
+
_$setProp(_el$17, "gap", 4);
|
|
520
|
+
_$insert(_el$17, (() => {
|
|
521
|
+
var _c$6 = _$memo(() => !!compactionOff());
|
|
522
|
+
return () => _c$6() ? (() => {
|
|
523
|
+
var _el$43 = _$createElement("box"),
|
|
524
|
+
_el$44 = _$createElement("text"),
|
|
525
|
+
_el$45 = _$createElement("b");
|
|
526
|
+
_$insertNode(_el$43, _el$44);
|
|
527
|
+
_$setProp(_el$43, "flexDirection", "column");
|
|
528
|
+
_$setProp(_el$43, "flexGrow", 1);
|
|
529
|
+
_$setProp(_el$43, "flexBasis", 0);
|
|
530
|
+
_$insertNode(_el$44, _el$45);
|
|
531
|
+
_$insertNode(_el$45, _$createTextNode(`Knowledge`));
|
|
532
|
+
_$insert(_el$43, () => compactionOffSidebarRows(s()).map(row => _$createComponent(R, {
|
|
514
533
|
get t() {
|
|
515
534
|
return t();
|
|
516
535
|
},
|
|
@@ -524,9 +543,9 @@ const StatusDialog = props => {
|
|
|
524
543
|
return _$memo(() => row.label === "Memories")() ? t().accent : t().textMuted;
|
|
525
544
|
}
|
|
526
545
|
})), null);
|
|
527
|
-
_$insert(_el$
|
|
528
|
-
var _c$
|
|
529
|
-
return () => _c$
|
|
546
|
+
_$insert(_el$43, (() => {
|
|
547
|
+
var _c$0 = _$memo(() => s().readySmartNoteCount > 0);
|
|
548
|
+
return () => _c$0() && _$createComponent(R, {
|
|
530
549
|
get t() {
|
|
531
550
|
return t();
|
|
532
551
|
},
|
|
@@ -539,9 +558,9 @@ const StatusDialog = props => {
|
|
|
539
558
|
}
|
|
540
559
|
});
|
|
541
560
|
})(), null);
|
|
542
|
-
_$insert(_el$
|
|
543
|
-
var _c$
|
|
544
|
-
return () => _c$
|
|
561
|
+
_$insert(_el$43, (() => {
|
|
562
|
+
var _c$1 = _$memo(() => !!s().lastDreamerRunAt);
|
|
563
|
+
return () => _c$1() && _$createComponent(R, {
|
|
545
564
|
get t() {
|
|
546
565
|
return t();
|
|
547
566
|
},
|
|
@@ -554,31 +573,31 @@ const StatusDialog = props => {
|
|
|
554
573
|
}
|
|
555
574
|
});
|
|
556
575
|
})(), null);
|
|
557
|
-
_$effect(_$p => _$setProp(_el$
|
|
558
|
-
return _el$
|
|
576
|
+
_$effect(_$p => _$setProp(_el$44, "fg", t().text, _$p));
|
|
577
|
+
return _el$43;
|
|
559
578
|
})() : [(() => {
|
|
560
|
-
var _el$
|
|
561
|
-
_el$
|
|
562
|
-
_el$
|
|
563
|
-
_el$
|
|
564
|
-
_el$
|
|
565
|
-
_el$
|
|
566
|
-
_el$
|
|
567
|
-
_el$
|
|
568
|
-
_el$
|
|
569
|
-
_el$
|
|
570
|
-
_el$
|
|
571
|
-
_el$
|
|
572
|
-
_$insertNode(_el$
|
|
573
|
-
_$insertNode(_el$
|
|
574
|
-
_$insertNode(_el$
|
|
575
|
-
_$insertNode(_el$
|
|
576
|
-
_$setProp(_el$
|
|
577
|
-
_$setProp(_el$
|
|
578
|
-
_$setProp(_el$
|
|
579
|
-
_$insertNode(_el$
|
|
580
|
-
_$insertNode(_el$
|
|
581
|
-
_$insert(_el$
|
|
579
|
+
var _el$47 = _$createElement("box"),
|
|
580
|
+
_el$48 = _$createElement("text"),
|
|
581
|
+
_el$49 = _$createElement("b"),
|
|
582
|
+
_el$51 = _$createElement("box"),
|
|
583
|
+
_el$52 = _$createElement("text"),
|
|
584
|
+
_el$53 = _$createElement("b"),
|
|
585
|
+
_el$55 = _$createElement("box"),
|
|
586
|
+
_el$56 = _$createElement("text"),
|
|
587
|
+
_el$57 = _$createElement("b"),
|
|
588
|
+
_el$59 = _$createElement("box"),
|
|
589
|
+
_el$60 = _$createElement("text"),
|
|
590
|
+
_el$61 = _$createElement("b");
|
|
591
|
+
_$insertNode(_el$47, _el$48);
|
|
592
|
+
_$insertNode(_el$47, _el$51);
|
|
593
|
+
_$insertNode(_el$47, _el$55);
|
|
594
|
+
_$insertNode(_el$47, _el$59);
|
|
595
|
+
_$setProp(_el$47, "flexDirection", "column");
|
|
596
|
+
_$setProp(_el$47, "flexGrow", 1);
|
|
597
|
+
_$setProp(_el$47, "flexBasis", 0);
|
|
598
|
+
_$insertNode(_el$48, _el$49);
|
|
599
|
+
_$insertNode(_el$49, _$createTextNode(`Tags`));
|
|
600
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
582
601
|
get t() {
|
|
583
602
|
return t();
|
|
584
603
|
},
|
|
@@ -586,8 +605,8 @@ const StatusDialog = props => {
|
|
|
586
605
|
get v() {
|
|
587
606
|
return `${s().activeTags} (~${fmtBytes(s().activeBytes)})`;
|
|
588
607
|
}
|
|
589
|
-
}), _el$
|
|
590
|
-
_$insert(_el$
|
|
608
|
+
}), _el$51);
|
|
609
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
591
610
|
get t() {
|
|
592
611
|
return t();
|
|
593
612
|
},
|
|
@@ -595,8 +614,8 @@ const StatusDialog = props => {
|
|
|
595
614
|
get v() {
|
|
596
615
|
return String(s().droppedTags);
|
|
597
616
|
}
|
|
598
|
-
}), _el$
|
|
599
|
-
_$insert(_el$
|
|
617
|
+
}), _el$51);
|
|
618
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
600
619
|
get t() {
|
|
601
620
|
return t();
|
|
602
621
|
},
|
|
@@ -607,12 +626,12 @@ const StatusDialog = props => {
|
|
|
607
626
|
get fg() {
|
|
608
627
|
return t().textMuted;
|
|
609
628
|
}
|
|
610
|
-
}), _el$
|
|
611
|
-
_$insertNode(_el$
|
|
612
|
-
_$setProp(_el$
|
|
613
|
-
_$insertNode(_el$
|
|
614
|
-
_$insertNode(_el$
|
|
615
|
-
_$insert(_el$
|
|
629
|
+
}), _el$51);
|
|
630
|
+
_$insertNode(_el$51, _el$52);
|
|
631
|
+
_$setProp(_el$51, "marginTop", 1);
|
|
632
|
+
_$insertNode(_el$52, _el$53);
|
|
633
|
+
_$insertNode(_el$53, _$createTextNode(`Pending Queue`));
|
|
634
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
616
635
|
get t() {
|
|
617
636
|
return t();
|
|
618
637
|
},
|
|
@@ -623,12 +642,12 @@ const StatusDialog = props => {
|
|
|
623
642
|
get fg() {
|
|
624
643
|
return _$memo(() => s().pendingOpsCount > 0)() ? t().warning : t().textMuted;
|
|
625
644
|
}
|
|
626
|
-
}), _el$
|
|
627
|
-
_$insertNode(_el$
|
|
628
|
-
_$setProp(_el$
|
|
629
|
-
_$insertNode(_el$
|
|
630
|
-
_$insertNode(_el$
|
|
631
|
-
_$insert(_el$
|
|
645
|
+
}), _el$55);
|
|
646
|
+
_$insertNode(_el$55, _el$56);
|
|
647
|
+
_$setProp(_el$55, "marginTop", 1);
|
|
648
|
+
_$insertNode(_el$56, _el$57);
|
|
649
|
+
_$insertNode(_el$57, _$createTextNode(`Cache TTL`));
|
|
650
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
632
651
|
get t() {
|
|
633
652
|
return t();
|
|
634
653
|
},
|
|
@@ -636,8 +655,8 @@ const StatusDialog = props => {
|
|
|
636
655
|
get v() {
|
|
637
656
|
return s().cacheTtl;
|
|
638
657
|
}
|
|
639
|
-
}), _el$
|
|
640
|
-
_$insert(_el$
|
|
658
|
+
}), _el$59);
|
|
659
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
641
660
|
get t() {
|
|
642
661
|
return t();
|
|
643
662
|
},
|
|
@@ -645,8 +664,8 @@ const StatusDialog = props => {
|
|
|
645
664
|
get v() {
|
|
646
665
|
return _$memo(() => s().lastResponseTime > 0)() ? `${Math.round(elapsed() / 1000)}s ago` : "never";
|
|
647
666
|
}
|
|
648
|
-
}), _el$
|
|
649
|
-
_$insert(_el$
|
|
667
|
+
}), _el$59);
|
|
668
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
650
669
|
get t() {
|
|
651
670
|
return t();
|
|
652
671
|
},
|
|
@@ -657,8 +676,8 @@ const StatusDialog = props => {
|
|
|
657
676
|
get fg() {
|
|
658
677
|
return _$memo(() => !!s().cacheExpired)() ? t().warning : t().textMuted;
|
|
659
678
|
}
|
|
660
|
-
}), _el$
|
|
661
|
-
_$insert(_el$
|
|
679
|
+
}), _el$59);
|
|
680
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
662
681
|
get t() {
|
|
663
682
|
return t();
|
|
664
683
|
},
|
|
@@ -669,12 +688,12 @@ const StatusDialog = props => {
|
|
|
669
688
|
get fg() {
|
|
670
689
|
return t().textMuted;
|
|
671
690
|
}
|
|
672
|
-
}), _el$
|
|
673
|
-
_$insertNode(_el$
|
|
674
|
-
_$setProp(_el$
|
|
675
|
-
_$insertNode(_el$
|
|
676
|
-
_$insertNode(_el$
|
|
677
|
-
_$insert(_el$
|
|
691
|
+
}), _el$59);
|
|
692
|
+
_$insertNode(_el$59, _el$60);
|
|
693
|
+
_$setProp(_el$59, "marginTop", 1);
|
|
694
|
+
_$insertNode(_el$60, _el$61);
|
|
695
|
+
_$insertNode(_el$61, _$createTextNode(`Memory`));
|
|
696
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
678
697
|
get t() {
|
|
679
698
|
return t();
|
|
680
699
|
},
|
|
@@ -686,7 +705,7 @@ const StatusDialog = props => {
|
|
|
686
705
|
return t().accent;
|
|
687
706
|
}
|
|
688
707
|
}), null);
|
|
689
|
-
_$insert(_el$
|
|
708
|
+
_$insert(_el$47, _$createComponent(R, {
|
|
690
709
|
get t() {
|
|
691
710
|
return t();
|
|
692
711
|
},
|
|
@@ -699,14 +718,14 @@ const StatusDialog = props => {
|
|
|
699
718
|
}
|
|
700
719
|
}), null);
|
|
701
720
|
_$effect(_p$ => {
|
|
702
|
-
var _v$
|
|
703
|
-
_v$13 = t().text,
|
|
721
|
+
var _v$13 = t().text,
|
|
704
722
|
_v$14 = t().text,
|
|
705
|
-
_v$15 = t().text
|
|
706
|
-
|
|
707
|
-
_v$13 !== _p$.
|
|
708
|
-
_v$14 !== _p$.
|
|
709
|
-
_v$15 !== _p$.
|
|
723
|
+
_v$15 = t().text,
|
|
724
|
+
_v$16 = t().text;
|
|
725
|
+
_v$13 !== _p$.e && (_p$.e = _$setProp(_el$48, "fg", _v$13, _p$.e));
|
|
726
|
+
_v$14 !== _p$.t && (_p$.t = _$setProp(_el$52, "fg", _v$14, _p$.t));
|
|
727
|
+
_v$15 !== _p$.a && (_p$.a = _$setProp(_el$56, "fg", _v$15, _p$.a));
|
|
728
|
+
_v$16 !== _p$.o && (_p$.o = _$setProp(_el$60, "fg", _v$16, _p$.o));
|
|
710
729
|
return _p$;
|
|
711
730
|
}, {
|
|
712
731
|
e: undefined,
|
|
@@ -714,26 +733,26 @@ const StatusDialog = props => {
|
|
|
714
733
|
a: undefined,
|
|
715
734
|
o: undefined
|
|
716
735
|
});
|
|
717
|
-
return _el$
|
|
736
|
+
return _el$47;
|
|
718
737
|
})(), (() => {
|
|
719
|
-
var _el$
|
|
720
|
-
_el$
|
|
721
|
-
_el$
|
|
722
|
-
_el$
|
|
723
|
-
_el$
|
|
724
|
-
_el$
|
|
725
|
-
_el$
|
|
726
|
-
_el$
|
|
727
|
-
_el$
|
|
728
|
-
_$insertNode(_el$
|
|
729
|
-
_$insertNode(_el$
|
|
730
|
-
_$insertNode(_el$
|
|
731
|
-
_$setProp(_el$
|
|
732
|
-
_$setProp(_el$
|
|
733
|
-
_$setProp(_el$
|
|
734
|
-
_$insertNode(_el$
|
|
735
|
-
_$insertNode(_el$
|
|
736
|
-
_$insert(_el$
|
|
738
|
+
var _el$63 = _$createElement("box"),
|
|
739
|
+
_el$64 = _$createElement("text"),
|
|
740
|
+
_el$65 = _$createElement("b"),
|
|
741
|
+
_el$67 = _$createElement("box"),
|
|
742
|
+
_el$68 = _$createElement("text"),
|
|
743
|
+
_el$69 = _$createElement("b"),
|
|
744
|
+
_el$71 = _$createElement("box"),
|
|
745
|
+
_el$72 = _$createElement("text"),
|
|
746
|
+
_el$73 = _$createElement("b");
|
|
747
|
+
_$insertNode(_el$63, _el$64);
|
|
748
|
+
_$insertNode(_el$63, _el$67);
|
|
749
|
+
_$insertNode(_el$63, _el$71);
|
|
750
|
+
_$setProp(_el$63, "flexDirection", "column");
|
|
751
|
+
_$setProp(_el$63, "flexGrow", 1);
|
|
752
|
+
_$setProp(_el$63, "flexBasis", 0);
|
|
753
|
+
_$insertNode(_el$64, _el$65);
|
|
754
|
+
_$insertNode(_el$65, _$createTextNode(`Reductions`));
|
|
755
|
+
_$insert(_el$63, _$createComponent(R, {
|
|
737
756
|
get t() {
|
|
738
757
|
return t();
|
|
739
758
|
},
|
|
@@ -741,8 +760,8 @@ const StatusDialog = props => {
|
|
|
741
760
|
get v() {
|
|
742
761
|
return `${formatThresholdPercent(s().executeThreshold)}%${s().executeThresholdClamped ? "*" : ""}`;
|
|
743
762
|
}
|
|
744
|
-
}), _el$
|
|
745
|
-
_$insert(_el$
|
|
763
|
+
}), _el$67);
|
|
764
|
+
_$insert(_el$63, _$createComponent(R, {
|
|
746
765
|
get t() {
|
|
747
766
|
return t();
|
|
748
767
|
},
|
|
@@ -750,12 +769,12 @@ const StatusDialog = props => {
|
|
|
750
769
|
get v() {
|
|
751
770
|
return `${fmt(s().lastNudgeTokens)} tok`;
|
|
752
771
|
}
|
|
753
|
-
}), _el$
|
|
754
|
-
_$insertNode(_el$
|
|
755
|
-
_$setProp(_el$
|
|
756
|
-
_$insertNode(_el$
|
|
757
|
-
_$insertNode(_el$
|
|
758
|
-
_$insert(_el$
|
|
772
|
+
}), _el$67);
|
|
773
|
+
_$insertNode(_el$67, _el$68);
|
|
774
|
+
_$setProp(_el$67, "marginTop", 1);
|
|
775
|
+
_$insertNode(_el$68, _el$69);
|
|
776
|
+
_$insertNode(_el$69, _$createTextNode(`Context Details`));
|
|
777
|
+
_$insert(_el$63, _$createComponent(R, {
|
|
759
778
|
get t() {
|
|
760
779
|
return t();
|
|
761
780
|
},
|
|
@@ -766,8 +785,8 @@ const StatusDialog = props => {
|
|
|
766
785
|
get fg() {
|
|
767
786
|
return t().textMuted;
|
|
768
787
|
}
|
|
769
|
-
}), _el$
|
|
770
|
-
_$insert(_el$
|
|
788
|
+
}), _el$71);
|
|
789
|
+
_$insert(_el$63, _$createComponent(R, {
|
|
771
790
|
get t() {
|
|
772
791
|
return t();
|
|
773
792
|
},
|
|
@@ -778,14 +797,14 @@ const StatusDialog = props => {
|
|
|
778
797
|
get fg() {
|
|
779
798
|
return t().textMuted;
|
|
780
799
|
}
|
|
781
|
-
}), _el$
|
|
782
|
-
_$insertNode(_el$
|
|
783
|
-
_$setProp(_el$
|
|
784
|
-
_$insertNode(_el$
|
|
785
|
-
_$insertNode(_el$
|
|
786
|
-
_$insert(_el$
|
|
787
|
-
var _c$
|
|
788
|
-
return () => _c$
|
|
800
|
+
}), _el$71);
|
|
801
|
+
_$insertNode(_el$71, _el$72);
|
|
802
|
+
_$setProp(_el$71, "marginTop", 1);
|
|
803
|
+
_$insertNode(_el$72, _el$73);
|
|
804
|
+
_$insertNode(_el$73, _$createTextNode(`History Compression`));
|
|
805
|
+
_$insert(_el$63, (() => {
|
|
806
|
+
var _c$10 = _$memo(() => typeof s().boundaryPresent === "boolean");
|
|
807
|
+
return () => _c$10() && _$createComponent(R, {
|
|
789
808
|
get t() {
|
|
790
809
|
return t();
|
|
791
810
|
},
|
|
@@ -795,9 +814,9 @@ const StatusDialog = props => {
|
|
|
795
814
|
}
|
|
796
815
|
});
|
|
797
816
|
})(), null);
|
|
798
|
-
_$insert(_el$
|
|
799
|
-
var _c$
|
|
800
|
-
return () => _c$
|
|
817
|
+
_$insert(_el$63, (() => {
|
|
818
|
+
var _c$11 = _$memo(() => s().coverageOrdinal !== undefined);
|
|
819
|
+
return () => _c$11() && _$createComponent(R, {
|
|
801
820
|
get t() {
|
|
802
821
|
return t();
|
|
803
822
|
},
|
|
@@ -807,9 +826,9 @@ const StatusDialog = props => {
|
|
|
807
826
|
}
|
|
808
827
|
});
|
|
809
828
|
})(), null);
|
|
810
|
-
_$insert(_el$
|
|
811
|
-
var _c$
|
|
812
|
-
return () => _c$
|
|
829
|
+
_$insert(_el$63, (() => {
|
|
830
|
+
var _c$12 = _$memo(() => typeof s().boundaryPresent === "boolean");
|
|
831
|
+
return () => _c$12() && _$createComponent(R, {
|
|
813
832
|
get t() {
|
|
814
833
|
return t();
|
|
815
834
|
},
|
|
@@ -819,7 +838,7 @@ const StatusDialog = props => {
|
|
|
819
838
|
}
|
|
820
839
|
});
|
|
821
840
|
})(), null);
|
|
822
|
-
_$insert(_el$
|
|
841
|
+
_$insert(_el$63, _$createComponent(R, {
|
|
823
842
|
get t() {
|
|
824
843
|
return t();
|
|
825
844
|
},
|
|
@@ -828,9 +847,9 @@ const StatusDialog = props => {
|
|
|
828
847
|
return `~${fmt(s().historyBlockTokens)} tok`;
|
|
829
848
|
}
|
|
830
849
|
}), null);
|
|
831
|
-
_$insert(_el$
|
|
832
|
-
var _c$
|
|
833
|
-
return () => _c$
|
|
850
|
+
_$insert(_el$63, (() => {
|
|
851
|
+
var _c$13 = _$memo(() => s().compressionBudget != null);
|
|
852
|
+
return () => _c$13() && _$createComponent(R, {
|
|
834
853
|
get t() {
|
|
835
854
|
return t();
|
|
836
855
|
},
|
|
@@ -840,9 +859,9 @@ const StatusDialog = props => {
|
|
|
840
859
|
}
|
|
841
860
|
});
|
|
842
861
|
})(), null);
|
|
843
|
-
_$insert(_el$
|
|
844
|
-
var _c$
|
|
845
|
-
return () => _c$
|
|
862
|
+
_$insert(_el$63, (() => {
|
|
863
|
+
var _c$14 = _$memo(() => !!s().lastDreamerRunAt);
|
|
864
|
+
return () => _c$14() && _$createComponent(R, {
|
|
846
865
|
get t() {
|
|
847
866
|
return t();
|
|
848
867
|
},
|
|
@@ -856,42 +875,42 @@ const StatusDialog = props => {
|
|
|
856
875
|
});
|
|
857
876
|
})(), null);
|
|
858
877
|
_$effect(_p$ => {
|
|
859
|
-
var _v$
|
|
860
|
-
_v$
|
|
861
|
-
_v$
|
|
862
|
-
_v$
|
|
863
|
-
_v$
|
|
864
|
-
_v$
|
|
878
|
+
var _v$17 = t().text,
|
|
879
|
+
_v$18 = t().text,
|
|
880
|
+
_v$19 = t().text;
|
|
881
|
+
_v$17 !== _p$.e && (_p$.e = _$setProp(_el$64, "fg", _v$17, _p$.e));
|
|
882
|
+
_v$18 !== _p$.t && (_p$.t = _$setProp(_el$68, "fg", _v$18, _p$.t));
|
|
883
|
+
_v$19 !== _p$.a && (_p$.a = _$setProp(_el$72, "fg", _v$19, _p$.a));
|
|
865
884
|
return _p$;
|
|
866
885
|
}, {
|
|
867
886
|
e: undefined,
|
|
868
887
|
t: undefined,
|
|
869
888
|
a: undefined
|
|
870
889
|
});
|
|
871
|
-
return _el$
|
|
890
|
+
return _el$63;
|
|
872
891
|
})()];
|
|
873
892
|
})());
|
|
874
893
|
_$insert(_el$4, (() => {
|
|
875
|
-
var _c$
|
|
876
|
-
return () => _c$
|
|
877
|
-
var _el$
|
|
878
|
-
_el$
|
|
879
|
-
_el$
|
|
880
|
-
_$insertNode(_el$
|
|
881
|
-
_$setProp(_el$
|
|
882
|
-
_$setProp(_el$
|
|
883
|
-
_$insertNode(_el$
|
|
884
|
-
_$insert(_el$
|
|
885
|
-
_$effect(_$p => _$setProp(_el$
|
|
886
|
-
return _el$
|
|
894
|
+
var _c$7 = _$memo(() => !!s().lastTransformError);
|
|
895
|
+
return () => _c$7() && (() => {
|
|
896
|
+
var _el$75 = _$createElement("box"),
|
|
897
|
+
_el$76 = _$createElement("text"),
|
|
898
|
+
_el$77 = _$createTextNode(`⚠ `);
|
|
899
|
+
_$insertNode(_el$75, _el$76);
|
|
900
|
+
_$setProp(_el$75, "marginTop", 1);
|
|
901
|
+
_$setProp(_el$75, "width", "100%");
|
|
902
|
+
_$insertNode(_el$76, _el$77);
|
|
903
|
+
_$insert(_el$76, () => s().lastTransformError, null);
|
|
904
|
+
_$effect(_$p => _$setProp(_el$76, "fg", t().error, _$p));
|
|
905
|
+
return _el$75;
|
|
887
906
|
})();
|
|
888
|
-
})(), _el$
|
|
889
|
-
_$insertNode(_el$
|
|
890
|
-
_$setProp(_el$
|
|
891
|
-
_$setProp(_el$
|
|
892
|
-
_$insertNode(_el$
|
|
893
|
-
_$insertNode(_el$
|
|
894
|
-
_$insert(_el$
|
|
907
|
+
})(), _el$18);
|
|
908
|
+
_$insertNode(_el$18, _el$19);
|
|
909
|
+
_$setProp(_el$18, "marginTop", 1);
|
|
910
|
+
_$setProp(_el$18, "width", "100%");
|
|
911
|
+
_$insertNode(_el$19, _el$20);
|
|
912
|
+
_$insertNode(_el$20, _$createTextNode(`Logger`));
|
|
913
|
+
_$insert(_el$18, _$createComponent(R, {
|
|
895
914
|
get t() {
|
|
896
915
|
return t();
|
|
897
916
|
},
|
|
@@ -903,9 +922,9 @@ const StatusDialog = props => {
|
|
|
903
922
|
return _$memo(() => (s().loggerDiagnostics?.swallowedWriteCount ?? 0) > 0)() ? t().error : t().textMuted;
|
|
904
923
|
}
|
|
905
924
|
}), null);
|
|
906
|
-
_$insert(_el$
|
|
907
|
-
var _c$
|
|
908
|
-
return () => _c$
|
|
925
|
+
_$insert(_el$18, (() => {
|
|
926
|
+
var _c$8 = _$memo(() => !!s().loggerDiagnostics?.lastErrorMessage);
|
|
927
|
+
return () => _c$8() && _$createComponent(R, {
|
|
909
928
|
get t() {
|
|
910
929
|
return t();
|
|
911
930
|
},
|
|
@@ -918,9 +937,9 @@ const StatusDialog = props => {
|
|
|
918
937
|
}
|
|
919
938
|
});
|
|
920
939
|
})(), null);
|
|
921
|
-
_$insert(_el$
|
|
922
|
-
var _c$
|
|
923
|
-
return () => _c$
|
|
940
|
+
_$insert(_el$18, (() => {
|
|
941
|
+
var _c$9 = _$memo(() => !!s().loggerDiagnostics?.lastErrorTime);
|
|
942
|
+
return () => _c$9() && _$createComponent(R, {
|
|
924
943
|
get t() {
|
|
925
944
|
return t();
|
|
926
945
|
},
|
|
@@ -933,29 +952,32 @@ const StatusDialog = props => {
|
|
|
933
952
|
}
|
|
934
953
|
});
|
|
935
954
|
})(), null);
|
|
936
|
-
_$insertNode(_el$
|
|
937
|
-
_$setProp(_el$
|
|
938
|
-
_$setProp(_el$
|
|
939
|
-
_$setProp(_el$
|
|
940
|
-
_$insertNode(_el$
|
|
955
|
+
_$insertNode(_el$22, _el$23);
|
|
956
|
+
_$setProp(_el$22, "marginTop", 1);
|
|
957
|
+
_$setProp(_el$22, "justifyContent", "flex-end");
|
|
958
|
+
_$setProp(_el$22, "width", "100%");
|
|
959
|
+
_$insertNode(_el$23, _$createTextNode(`Esc to close`));
|
|
941
960
|
_$effect(_p$ => {
|
|
942
961
|
var _v$3 = t().accent,
|
|
943
962
|
_v$4 = t().textMuted,
|
|
944
963
|
_v$5 = compactionOff() ? t().accent : s().usagePercentage >= 80 ? t().error : s().usagePercentage >= 65 ? t().warning : t().accent,
|
|
945
|
-
_v$6 = t().
|
|
946
|
-
_v$7 = t().
|
|
964
|
+
_v$6 = t().textMuted,
|
|
965
|
+
_v$7 = t().text,
|
|
966
|
+
_v$8 = t().textMuted;
|
|
947
967
|
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$6, "fg", _v$3, _p$.e));
|
|
948
968
|
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$9, "fg", _v$4, _p$.t));
|
|
949
969
|
_v$5 !== _p$.a && (_p$.a = _$setProp(_el$10, "fg", _v$5, _p$.a));
|
|
950
|
-
_v$6 !== _p$.o && (_p$.o = _$setProp(_el$
|
|
951
|
-
_v$7 !== _p$.i && (_p$.i = _$setProp(_el$
|
|
970
|
+
_v$6 !== _p$.o && (_p$.o = _$setProp(_el$15, "fg", _v$6, _p$.o));
|
|
971
|
+
_v$7 !== _p$.i && (_p$.i = _$setProp(_el$19, "fg", _v$7, _p$.i));
|
|
972
|
+
_v$8 !== _p$.n && (_p$.n = _$setProp(_el$23, "fg", _v$8, _p$.n));
|
|
952
973
|
return _p$;
|
|
953
974
|
}, {
|
|
954
975
|
e: undefined,
|
|
955
976
|
t: undefined,
|
|
956
977
|
a: undefined,
|
|
957
978
|
o: undefined,
|
|
958
|
-
i: undefined
|
|
979
|
+
i: undefined,
|
|
980
|
+
n: undefined
|
|
959
981
|
});
|
|
960
982
|
return _el$4;
|
|
961
983
|
})();
|
|
@@ -1105,31 +1127,31 @@ const EmbedDialog = props => {
|
|
|
1105
1127
|
const t = () => theme();
|
|
1106
1128
|
const lines = () => props.detail.statusText.split("\n");
|
|
1107
1129
|
return (() => {
|
|
1108
|
-
var _el$
|
|
1109
|
-
_el$
|
|
1110
|
-
_el$
|
|
1111
|
-
_el$
|
|
1112
|
-
_$insertNode(_el$76, _el$77);
|
|
1113
|
-
_$setProp(_el$76, "flexDirection", "column");
|
|
1114
|
-
_$setProp(_el$76, "width", "100%");
|
|
1115
|
-
_$setProp(_el$76, "paddingLeft", 2);
|
|
1116
|
-
_$setProp(_el$76, "paddingRight", 2);
|
|
1117
|
-
_$setProp(_el$76, "paddingTop", 1);
|
|
1118
|
-
_$setProp(_el$76, "paddingBottom", 1);
|
|
1119
|
-
_$insertNode(_el$77, _el$78);
|
|
1120
|
-
_$setProp(_el$77, "justifyContent", "center");
|
|
1121
|
-
_$setProp(_el$77, "width", "100%");
|
|
1122
|
-
_$setProp(_el$77, "marginBottom", 1);
|
|
1130
|
+
var _el$78 = _$createElement("box"),
|
|
1131
|
+
_el$79 = _$createElement("box"),
|
|
1132
|
+
_el$80 = _$createElement("text"),
|
|
1133
|
+
_el$81 = _$createElement("b");
|
|
1123
1134
|
_$insertNode(_el$78, _el$79);
|
|
1124
|
-
_$
|
|
1125
|
-
_$
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1135
|
+
_$setProp(_el$78, "flexDirection", "column");
|
|
1136
|
+
_$setProp(_el$78, "width", "100%");
|
|
1137
|
+
_$setProp(_el$78, "paddingLeft", 2);
|
|
1138
|
+
_$setProp(_el$78, "paddingRight", 2);
|
|
1139
|
+
_$setProp(_el$78, "paddingTop", 1);
|
|
1140
|
+
_$setProp(_el$78, "paddingBottom", 1);
|
|
1141
|
+
_$insertNode(_el$79, _el$80);
|
|
1142
|
+
_$setProp(_el$79, "justifyContent", "center");
|
|
1143
|
+
_$setProp(_el$79, "width", "100%");
|
|
1144
|
+
_$setProp(_el$79, "marginBottom", 1);
|
|
1145
|
+
_$insertNode(_el$80, _el$81);
|
|
1146
|
+
_$insertNode(_el$81, _$createTextNode(`Embedding`));
|
|
1147
|
+
_$insert(_el$78, () => lines().map(line => (() => {
|
|
1148
|
+
var _el$83 = _$createElement("text");
|
|
1149
|
+
_$insert(_el$83, line);
|
|
1150
|
+
_$effect(_$p => _$setProp(_el$83, "fg", t().text, _$p));
|
|
1151
|
+
return _el$83;
|
|
1130
1152
|
})()), null);
|
|
1131
|
-
_$effect(_$p => _$setProp(_el$
|
|
1132
|
-
return _el$
|
|
1153
|
+
_$effect(_$p => _$setProp(_el$80, "fg", t().accent, _$p));
|
|
1154
|
+
return _el$78;
|
|
1133
1155
|
})();
|
|
1134
1156
|
};
|
|
1135
1157
|
async function showEmbedDialog(api, targetSessionId = getSessionId(api)) {
|
|
@@ -1195,11 +1217,11 @@ function renderTuiProbeCustomArm(api, result) {
|
|
|
1195
1217
|
api.ui.dialog.replace(() => {
|
|
1196
1218
|
try {
|
|
1197
1219
|
return (() => {
|
|
1198
|
-
var _el$
|
|
1199
|
-
_el$
|
|
1200
|
-
_$insertNode(_el$
|
|
1201
|
-
_$insertNode(_el$
|
|
1202
|
-
return _el$
|
|
1220
|
+
var _el$84 = _$createElement("box"),
|
|
1221
|
+
_el$85 = _$createElement("text");
|
|
1222
|
+
_$insertNode(_el$84, _el$85);
|
|
1223
|
+
_$insertNode(_el$85, _$createTextNode(`probe`));
|
|
1224
|
+
return _el$84;
|
|
1203
1225
|
})();
|
|
1204
1226
|
} catch (error) {
|
|
1205
1227
|
result.customThrew = probeErrorMessage(error);
|
|
@@ -1272,11 +1294,11 @@ function reportTuiProbe(api, result) {
|
|
|
1272
1294
|
if (result.customThrew === null) {
|
|
1273
1295
|
try {
|
|
1274
1296
|
api.ui.dialog.replace(() => (() => {
|
|
1275
|
-
var _el$
|
|
1276
|
-
_el$
|
|
1277
|
-
_$insertNode(_el$
|
|
1278
|
-
_$insert(_el$
|
|
1279
|
-
return _el$
|
|
1297
|
+
var _el$87 = _$createElement("box"),
|
|
1298
|
+
_el$88 = _$createElement("text");
|
|
1299
|
+
_$insertNode(_el$87, _el$88);
|
|
1300
|
+
_$insert(_el$88, summary);
|
|
1301
|
+
return _el$87;
|
|
1280
1302
|
})());
|
|
1281
1303
|
return;
|
|
1282
1304
|
} catch (error) {
|