@aiwayds/dsh-opentui 0.21.0 → 0.21.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.
- package/CHANGELOG.md +11 -0
- package/dist/client/index.js +14 -45
- package/dist/client/index.js.map +7 -7
- package/dist/locales/en.json +2 -4
- package/dist/locales/zh-CN.json +2 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.21.1] - 2026-11-17
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- The footer message counter is now a single `💬 N msgs`. One message is one
|
|
12
|
+
durable `assistant/message` event (the unit previously called a round). The
|
|
13
|
+
turn count is no longer displayed in the footer; it remains available to the
|
|
14
|
+
`/session` panel.
|
|
15
|
+
|
|
16
|
+
### Note
|
|
17
|
+
- `msg` also counts tool-only rounds that produce no assistant transcript row.
|
|
18
|
+
|
|
8
19
|
## [0.21.0] - 2026-11-17
|
|
9
20
|
|
|
10
21
|
### Added
|
package/dist/client/index.js
CHANGED
|
@@ -9370,7 +9370,7 @@ class RemoteHostSession {
|
|
|
9370
9370
|
#model;
|
|
9371
9371
|
#settings;
|
|
9372
9372
|
#journal = [];
|
|
9373
|
-
#
|
|
9373
|
+
#msgs = 0;
|
|
9374
9374
|
#journalListeners = [];
|
|
9375
9375
|
#lastDurableSeq = -1;
|
|
9376
9376
|
#turnArmSeq = -1;
|
|
@@ -9646,7 +9646,7 @@ class RemoteHostSession {
|
|
|
9646
9646
|
sessionId: this.currentSessionId(),
|
|
9647
9647
|
model: this.label === "dsh-host" ? undefined : this.label,
|
|
9648
9648
|
turnCount: this.#turns,
|
|
9649
|
-
|
|
9649
|
+
msgCount: this.#msgs,
|
|
9650
9650
|
tokensIn: this.usage.prompt,
|
|
9651
9651
|
tokensOut: this.usage.completion,
|
|
9652
9652
|
cacheRead: this.usage.cacheRead,
|
|
@@ -10441,7 +10441,7 @@ class RemoteHostSession {
|
|
|
10441
10441
|
#resetLedger() {
|
|
10442
10442
|
this.#journal = [];
|
|
10443
10443
|
this.#lastDurableSeq = -1;
|
|
10444
|
-
this.#
|
|
10444
|
+
this.#msgs = 0;
|
|
10445
10445
|
this.#contextMeter.reset();
|
|
10446
10446
|
this.#contextPressure = undefined;
|
|
10447
10447
|
this.#contextProjections = undefined;
|
|
@@ -10529,7 +10529,7 @@ class RemoteHostSession {
|
|
|
10529
10529
|
if (entry.seq > this.#lastDurableSeq)
|
|
10530
10530
|
this.#lastDurableSeq = entry.seq;
|
|
10531
10531
|
if (entry.type === "assistant/message")
|
|
10532
|
-
this.#
|
|
10532
|
+
this.#msgs++;
|
|
10533
10533
|
this.#journal.push(entry);
|
|
10534
10534
|
if (this.#journal.length > 4000)
|
|
10535
10535
|
this.#journal.shift();
|
|
@@ -48641,46 +48641,17 @@ function contextSegment(used, window, theme) {
|
|
|
48641
48641
|
}
|
|
48642
48642
|
};
|
|
48643
48643
|
}
|
|
48644
|
-
function
|
|
48644
|
+
function msgSegment(n, theme) {
|
|
48645
48645
|
if (!Number.isFinite(n) || n < 0)
|
|
48646
48646
|
return null;
|
|
48647
48647
|
return {
|
|
48648
|
-
text: t(n === 1 ? "footer.
|
|
48648
|
+
text: t(n === 1 ? "footer.msgs.one" : "footer.msgs.many", {
|
|
48649
48649
|
n
|
|
48650
48650
|
}),
|
|
48651
48651
|
bg: resolvePalette(theme).messages,
|
|
48652
48652
|
priority: 75
|
|
48653
48653
|
};
|
|
48654
48654
|
}
|
|
48655
|
-
function roundsSegment(n, theme) {
|
|
48656
|
-
if (!Number.isFinite(n) || n < 0)
|
|
48657
|
-
return null;
|
|
48658
|
-
return {
|
|
48659
|
-
text: t(n === 1 ? "footer.rounds.one" : "footer.rounds.many", {
|
|
48660
|
-
n
|
|
48661
|
-
}),
|
|
48662
|
-
bg: resolvePalette(theme).messages,
|
|
48663
|
-
priority: 75
|
|
48664
|
-
};
|
|
48665
|
-
}
|
|
48666
|
-
function turnsRoundsSegment(turns, rounds, theme) {
|
|
48667
|
-
const turnLeaf = turnsSegment(turns, theme);
|
|
48668
|
-
if (!turnLeaf)
|
|
48669
|
-
return null;
|
|
48670
|
-
if (rounds === undefined)
|
|
48671
|
-
return {
|
|
48672
|
-
...turnLeaf,
|
|
48673
|
-
priority: 75
|
|
48674
|
-
};
|
|
48675
|
-
const roundLeaf = roundsSegment(rounds, theme);
|
|
48676
|
-
if (!roundLeaf)
|
|
48677
|
-
return null;
|
|
48678
|
-
return {
|
|
48679
|
-
text: `${turnLeaf.text} \xB7 ${roundLeaf.text}`,
|
|
48680
|
-
bg: turnLeaf.bg,
|
|
48681
|
-
priority: 75
|
|
48682
|
-
};
|
|
48683
|
-
}
|
|
48684
48655
|
function toolSegment(n, theme) {
|
|
48685
48656
|
if (!Number.isFinite(n) || n < 0)
|
|
48686
48657
|
return null;
|
|
@@ -48951,8 +48922,8 @@ function sessionFooterSegments(data) {
|
|
|
48951
48922
|
add(modelSegment(data.model ?? "", effectiveEffort(data.effort), theme));
|
|
48952
48923
|
add(contextSegment(data.contextTokens ?? null, data.contextWindow ?? null, theme));
|
|
48953
48924
|
add(cacheSegment(data.cacheHitRate ?? null, theme));
|
|
48954
|
-
if (data.
|
|
48955
|
-
add(
|
|
48925
|
+
if (data.msg !== undefined)
|
|
48926
|
+
add(msgSegment(data.msg, theme));
|
|
48956
48927
|
add(toolSegment(data.tools ?? 0, theme));
|
|
48957
48928
|
add(elapsedSegment(data.elapsedSec ?? null, theme));
|
|
48958
48929
|
add(speedSegment(data.tps ?? null, theme));
|
|
@@ -62933,7 +62904,7 @@ var init_subagents_viewer = __esm(() => {
|
|
|
62933
62904
|
import { TextAttributes as TextAttributes12 } from "@opentui/core";
|
|
62934
62905
|
function resolveVersion() {
|
|
62935
62906
|
try {
|
|
62936
|
-
return "0.21.
|
|
62907
|
+
return "0.21.1";
|
|
62937
62908
|
} catch {
|
|
62938
62909
|
return "dev";
|
|
62939
62910
|
}
|
|
@@ -64831,14 +64802,14 @@ class RemoteSessionSeam {
|
|
|
64831
64802
|
messageCount = rows.filter((row) => row.kind === "user" || row.kind === "assistant").length;
|
|
64832
64803
|
turnCount = rows.filter((row) => row.kind === "user").length;
|
|
64833
64804
|
} catch {}
|
|
64834
|
-
const
|
|
64805
|
+
const msgCount = base.sessionId === undefined ? undefined : base.msgCount;
|
|
64835
64806
|
return {
|
|
64836
64807
|
...base,
|
|
64837
64808
|
sessionId,
|
|
64838
64809
|
model: base.model ?? null,
|
|
64839
64810
|
messageCount,
|
|
64840
64811
|
turnCount,
|
|
64841
|
-
|
|
64812
|
+
msgCount,
|
|
64842
64813
|
contextTokens: base.contextTokens,
|
|
64843
64814
|
contextWindow: base.contextWindow ?? null
|
|
64844
64815
|
};
|
|
@@ -65466,8 +65437,7 @@ function V2SessionPageBody(props) {
|
|
|
65466
65437
|
}
|
|
65467
65438
|
setRemoteInfo({
|
|
65468
65439
|
messageCount: info.messageCount,
|
|
65469
|
-
|
|
65470
|
-
roundCount: info.roundCount,
|
|
65440
|
+
msgCount: info.msgCount,
|
|
65471
65441
|
tps: info.lastTurnTps ?? info.sessionAvgTps
|
|
65472
65442
|
});
|
|
65473
65443
|
labelEffortWord = effortFromModelLabel(info.model);
|
|
@@ -65490,8 +65460,7 @@ function V2SessionPageBody(props) {
|
|
|
65490
65460
|
provider: model()?.providerID,
|
|
65491
65461
|
model: model()?.modelID,
|
|
65492
65462
|
effort: effort(),
|
|
65493
|
-
|
|
65494
|
-
rounds: remoteInfo()?.roundCount,
|
|
65463
|
+
msg: remoteInfo()?.msgCount,
|
|
65495
65464
|
tools: tools(),
|
|
65496
65465
|
tps: remoteInfo()?.tps ?? null,
|
|
65497
65466
|
contextTokens: ctxTokens(),
|
|
@@ -66373,5 +66342,5 @@ export {
|
|
|
66373
66342
|
themeNameFromConfig
|
|
66374
66343
|
};
|
|
66375
66344
|
|
|
66376
|
-
//# debugId=
|
|
66345
|
+
//# debugId=83D4422F420B351864756E2164756E21
|
|
66377
66346
|
//# sourceMappingURL=index.js.map
|