@x-otto/tui 0.3.0-beta.0 → 0.4.0-beta.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/build-revision.json +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +22 -22
- package/package.json +14 -14
package/dist/build-revision.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1591,7 +1591,7 @@ declare const en: {
|
|
|
1591
1591
|
readonly 'chat.restartStatusUnknown': "restart progress is not being reported · /reconnect if this window is stuck";
|
|
1592
1592
|
readonly 'chat.windowBuildStale': "This window runs older code than the engine · /exit -r to reopen it";
|
|
1593
1593
|
readonly 'chat.engineBuildStale': "the engine runs older code than the installed build · run otto reload in the project directory";
|
|
1594
|
-
readonly 'chat.
|
|
1594
|
+
readonly 'chat.supervisorBuildStale': "shared mode runs older code than the installed build · run otto reload in the project directory";
|
|
1595
1595
|
readonly 'chat.connectionReloading': "The engine is reloading · this window will reattach itself";
|
|
1596
1596
|
readonly 'chat.connectionReconnecting': "connection lost, reconnecting…";
|
|
1597
1597
|
readonly 'chat.connectionDisconnected': "connection closed";
|
|
@@ -3179,7 +3179,7 @@ declare const en: {
|
|
|
3179
3179
|
readonly 'perf.ledger.groupMemory': "memory surfaces";
|
|
3180
3180
|
readonly 'perf.ledger.groupSession': "session budget";
|
|
3181
3181
|
readonly 'perf.ledger.self': "worker process (engine)";
|
|
3182
|
-
readonly 'perf.ledger.supervisor': "
|
|
3182
|
+
readonly 'perf.ledger.supervisor': "engine supervisor";
|
|
3183
3183
|
readonly 'perf.ledger.children': "children";
|
|
3184
3184
|
readonly 'perf.ledger.jsHeap': "JS heap";
|
|
3185
3185
|
readonly 'perf.ledger.external': "external";
|
|
@@ -3249,9 +3249,9 @@ declare const en: {
|
|
|
3249
3249
|
readonly 'preferences.subagentFanOut.hint': "Max background subagents running at once";
|
|
3250
3250
|
readonly 'preferences.subagentFanOut.desc': "Upper bound on concurrent background subagents / sub-sessions per parent session; applies to the next delegation, no restart.";
|
|
3251
3251
|
readonly 'preferences.maxWorkers.label': "Worker processes";
|
|
3252
|
-
readonly 'preferences.maxWorkers.hint': "Most engine workers the
|
|
3252
|
+
readonly 'preferences.maxWorkers.hint': "Most engine workers the supervisor starts; takes effect after otto reload";
|
|
3253
3253
|
readonly 'preferences.maxWorkers.auto': "Auto ({{count}} cores)";
|
|
3254
|
-
readonly 'preferences.maxWorkers.desc': "Most worker processes the
|
|
3254
|
+
readonly 'preferences.maxWorkers.desc': "Most worker processes the supervisor starts for ordinary sessions. Auto follows this machine: the logical core count, never below 4. Each worker can hold 0.5-1 GiB of memory, so a high value on a small machine trades slots for memory. Takes effect after the engine restarts.";
|
|
3255
3255
|
readonly 'preferences.budget.wake': "Automatic execution budget";
|
|
3256
3256
|
readonly 'preferences.budget.notice': "Budget notice";
|
|
3257
3257
|
readonly 'preferences.budget.hint': "Adjust";
|
|
@@ -3278,7 +3278,7 @@ declare const en: {
|
|
|
3278
3278
|
readonly 'preferences.transcriptDisplay.bulk.none': "hide all";
|
|
3279
3279
|
readonly 'preferences.transcriptDisplay.bulk.invert': "invert";
|
|
3280
3280
|
readonly 'preferences.transcriptDisplay.items.count': "{{shown}}/{{total}} checked";
|
|
3281
|
-
readonly 'preferences.transcriptDisplay.items.
|
|
3281
|
+
readonly 'preferences.transcriptDisplay.items.supervisorOff': "supervisor switch off";
|
|
3282
3282
|
readonly 'preferences.transcriptDisplay.items.empty': "nothing to fine-tune yet";
|
|
3283
3283
|
readonly 'preferences.transcriptDisplay.noticeKind.modelSwitch': "Model switch";
|
|
3284
3284
|
readonly 'preferences.transcriptDisplay.noticeKind.modelFallback': "Model fallback";
|
|
@@ -3752,7 +3752,7 @@ declare const MESSAGES: {
|
|
|
3752
3752
|
readonly 'chat.restartStatusUnknown': "restart progress is not being reported · /reconnect if this window is stuck";
|
|
3753
3753
|
readonly 'chat.windowBuildStale': "This window runs older code than the engine · /exit -r to reopen it";
|
|
3754
3754
|
readonly 'chat.engineBuildStale': "the engine runs older code than the installed build · run otto reload in the project directory";
|
|
3755
|
-
readonly 'chat.
|
|
3755
|
+
readonly 'chat.supervisorBuildStale': "shared mode runs older code than the installed build · run otto reload in the project directory";
|
|
3756
3756
|
readonly 'chat.connectionReloading': "The engine is reloading · this window will reattach itself";
|
|
3757
3757
|
readonly 'chat.connectionReconnecting': "connection lost, reconnecting…";
|
|
3758
3758
|
readonly 'chat.connectionDisconnected': "connection closed";
|
|
@@ -5340,7 +5340,7 @@ declare const MESSAGES: {
|
|
|
5340
5340
|
readonly 'perf.ledger.groupMemory': "memory surfaces";
|
|
5341
5341
|
readonly 'perf.ledger.groupSession': "session budget";
|
|
5342
5342
|
readonly 'perf.ledger.self': "worker process (engine)";
|
|
5343
|
-
readonly 'perf.ledger.supervisor': "
|
|
5343
|
+
readonly 'perf.ledger.supervisor': "engine supervisor";
|
|
5344
5344
|
readonly 'perf.ledger.children': "children";
|
|
5345
5345
|
readonly 'perf.ledger.jsHeap': "JS heap";
|
|
5346
5346
|
readonly 'perf.ledger.external': "external";
|
|
@@ -5410,9 +5410,9 @@ declare const MESSAGES: {
|
|
|
5410
5410
|
readonly 'preferences.subagentFanOut.hint': "Max background subagents running at once";
|
|
5411
5411
|
readonly 'preferences.subagentFanOut.desc': "Upper bound on concurrent background subagents / sub-sessions per parent session; applies to the next delegation, no restart.";
|
|
5412
5412
|
readonly 'preferences.maxWorkers.label': "Worker processes";
|
|
5413
|
-
readonly 'preferences.maxWorkers.hint': "Most engine workers the
|
|
5413
|
+
readonly 'preferences.maxWorkers.hint': "Most engine workers the supervisor starts; takes effect after otto reload";
|
|
5414
5414
|
readonly 'preferences.maxWorkers.auto': "Auto ({{count}} cores)";
|
|
5415
|
-
readonly 'preferences.maxWorkers.desc': "Most worker processes the
|
|
5415
|
+
readonly 'preferences.maxWorkers.desc': "Most worker processes the supervisor starts for ordinary sessions. Auto follows this machine: the logical core count, never below 4. Each worker can hold 0.5-1 GiB of memory, so a high value on a small machine trades slots for memory. Takes effect after the engine restarts.";
|
|
5416
5416
|
readonly 'preferences.budget.wake': "Automatic execution budget";
|
|
5417
5417
|
readonly 'preferences.budget.notice': "Budget notice";
|
|
5418
5418
|
readonly 'preferences.budget.hint': "Adjust";
|
|
@@ -5439,7 +5439,7 @@ declare const MESSAGES: {
|
|
|
5439
5439
|
readonly 'preferences.transcriptDisplay.bulk.none': "hide all";
|
|
5440
5440
|
readonly 'preferences.transcriptDisplay.bulk.invert': "invert";
|
|
5441
5441
|
readonly 'preferences.transcriptDisplay.items.count': "{{shown}}/{{total}} checked";
|
|
5442
|
-
readonly 'preferences.transcriptDisplay.items.
|
|
5442
|
+
readonly 'preferences.transcriptDisplay.items.supervisorOff': "supervisor switch off";
|
|
5443
5443
|
readonly 'preferences.transcriptDisplay.items.empty': "nothing to fine-tune yet";
|
|
5444
5444
|
readonly 'preferences.transcriptDisplay.noticeKind.modelSwitch': "Model switch";
|
|
5445
5445
|
readonly 'preferences.transcriptDisplay.noticeKind.modelFallback': "Model fallback";
|
|
@@ -5910,7 +5910,7 @@ declare const MESSAGES: {
|
|
|
5910
5910
|
readonly 'chat.restartStatusUnknown': "暂时查不到重启进度 · 窗口卡住时可用 /reconnect 重连";
|
|
5911
5911
|
readonly 'chat.windowBuildStale': "本窗口的代码比引擎旧 · 执行 /exit -r 重开窗口以更新";
|
|
5912
5912
|
readonly 'chat.engineBuildStale': "引擎运行的是旧代码 · 在项目目录执行 otto reload";
|
|
5913
|
-
readonly 'chat.
|
|
5913
|
+
readonly 'chat.supervisorBuildStale': "共享模式运行的是旧代码 · 在项目目录执行 otto reload";
|
|
5914
5914
|
readonly 'chat.connectionReloading': "引擎正在重新加载 · 窗口会自己接回";
|
|
5915
5915
|
readonly 'chat.connectionReconnecting': "连接断开,正在重连…";
|
|
5916
5916
|
readonly 'chat.connectionDisconnected': "连接已断开";
|
|
@@ -7498,7 +7498,7 @@ declare const MESSAGES: {
|
|
|
7498
7498
|
readonly 'perf.ledger.groupMemory': "内存面";
|
|
7499
7499
|
readonly 'perf.ledger.groupSession': "会话预算";
|
|
7500
7500
|
readonly 'perf.ledger.self': "worker 进程(引擎)";
|
|
7501
|
-
readonly 'perf.ledger.supervisor': "
|
|
7501
|
+
readonly 'perf.ledger.supervisor': "supervisor 守护进程";
|
|
7502
7502
|
readonly 'perf.ledger.children': "子进程";
|
|
7503
7503
|
readonly 'perf.ledger.jsHeap': "JS 堆";
|
|
7504
7504
|
readonly 'perf.ledger.external': "外部内存";
|
|
@@ -7597,7 +7597,7 @@ declare const MESSAGES: {
|
|
|
7597
7597
|
readonly 'preferences.transcriptDisplay.bulk.none': "全不选";
|
|
7598
7598
|
readonly 'preferences.transcriptDisplay.bulk.invert': "反选";
|
|
7599
7599
|
readonly 'preferences.transcriptDisplay.items.count': "已勾选 {{shown}}/{{total}}";
|
|
7600
|
-
readonly 'preferences.transcriptDisplay.items.
|
|
7600
|
+
readonly 'preferences.transcriptDisplay.items.supervisorOff': "总开关已关闭";
|
|
7601
7601
|
readonly 'preferences.transcriptDisplay.items.empty': "当前没有可细化的条目";
|
|
7602
7602
|
readonly 'preferences.transcriptDisplay.noticeKind.modelSwitch': "模型切换";
|
|
7603
7603
|
readonly 'preferences.transcriptDisplay.noticeKind.modelFallback': "模型回退";
|
|
@@ -8101,7 +8101,7 @@ declare const zh: {
|
|
|
8101
8101
|
readonly 'chat.restartStatusUnknown': "暂时查不到重启进度 · 窗口卡住时可用 /reconnect 重连";
|
|
8102
8102
|
readonly 'chat.windowBuildStale': "本窗口的代码比引擎旧 · 执行 /exit -r 重开窗口以更新";
|
|
8103
8103
|
readonly 'chat.engineBuildStale': "引擎运行的是旧代码 · 在项目目录执行 otto reload";
|
|
8104
|
-
readonly 'chat.
|
|
8104
|
+
readonly 'chat.supervisorBuildStale': "共享模式运行的是旧代码 · 在项目目录执行 otto reload";
|
|
8105
8105
|
readonly 'chat.connectionReloading': "引擎正在重新加载 · 窗口会自己接回";
|
|
8106
8106
|
readonly 'chat.connectionReconnecting': "连接断开,正在重连…";
|
|
8107
8107
|
readonly 'chat.connectionDisconnected': "连接已断开";
|
|
@@ -9689,7 +9689,7 @@ declare const zh: {
|
|
|
9689
9689
|
readonly 'perf.ledger.groupMemory': "内存面";
|
|
9690
9690
|
readonly 'perf.ledger.groupSession': "会话预算";
|
|
9691
9691
|
readonly 'perf.ledger.self': "worker 进程(引擎)";
|
|
9692
|
-
readonly 'perf.ledger.supervisor': "
|
|
9692
|
+
readonly 'perf.ledger.supervisor': "supervisor 守护进程";
|
|
9693
9693
|
readonly 'perf.ledger.children': "子进程";
|
|
9694
9694
|
readonly 'perf.ledger.jsHeap': "JS 堆";
|
|
9695
9695
|
readonly 'perf.ledger.external': "外部内存";
|
|
@@ -9788,7 +9788,7 @@ declare const zh: {
|
|
|
9788
9788
|
readonly 'preferences.transcriptDisplay.bulk.none': "全不选";
|
|
9789
9789
|
readonly 'preferences.transcriptDisplay.bulk.invert': "反选";
|
|
9790
9790
|
readonly 'preferences.transcriptDisplay.items.count': "已勾选 {{shown}}/{{total}}";
|
|
9791
|
-
readonly 'preferences.transcriptDisplay.items.
|
|
9791
|
+
readonly 'preferences.transcriptDisplay.items.supervisorOff': "总开关已关闭";
|
|
9792
9792
|
readonly 'preferences.transcriptDisplay.items.empty': "当前没有可细化的条目";
|
|
9793
9793
|
readonly 'preferences.transcriptDisplay.noticeKind.modelSwitch': "模型切换";
|
|
9794
9794
|
readonly 'preferences.transcriptDisplay.noticeKind.modelFallback': "模型回退";
|
|
@@ -14766,7 +14766,7 @@ interface ConnectionStatusStore {
|
|
|
14766
14766
|
}
|
|
14767
14767
|
declare const useConnectionStatus: _$zustand.UseBoundStore<_$zustand.StoreApi<ConnectionStatusStore>>;
|
|
14768
14768
|
declare function reportConnectionState(remote: boolean, state: ConnectionState, reason?: string): void;
|
|
14769
|
-
type WindowBuildStatus = 'unknown' | 'same' | 'different' | 'engine-stale' | '
|
|
14769
|
+
type WindowBuildStatus = 'unknown' | 'same' | 'different' | 'engine-stale' | 'supervisor-stale';
|
|
14770
14770
|
interface WindowBuildStore {
|
|
14771
14771
|
status: WindowBuildStatus;
|
|
14772
14772
|
engineBuildId?: string;
|
|
@@ -14781,7 +14781,7 @@ declare function windowBuildMismatchOf(input: {
|
|
|
14781
14781
|
declare function buildDriftOf(input: {
|
|
14782
14782
|
windowBuildId: string | undefined;
|
|
14783
14783
|
activeWorkerBuild: string | undefined;
|
|
14784
|
-
|
|
14784
|
+
supervisorBuild: string | undefined;
|
|
14785
14785
|
diskBuild: string | undefined;
|
|
14786
14786
|
}): WindowBuildStatus;
|
|
14787
14787
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -310,7 +310,7 @@ const en = {
|
|
|
310
310
|
"chat.restartStatusUnknown": "restart progress is not being reported · /reconnect if this window is stuck",
|
|
311
311
|
"chat.windowBuildStale": "This window runs older code than the engine · /exit -r to reopen it",
|
|
312
312
|
"chat.engineBuildStale": "the engine runs older code than the installed build · run otto reload in the project directory",
|
|
313
|
-
"chat.
|
|
313
|
+
"chat.supervisorBuildStale": "shared mode runs older code than the installed build · run otto reload in the project directory",
|
|
314
314
|
"chat.connectionReloading": "The engine is reloading · this window will reattach itself",
|
|
315
315
|
"chat.connectionReconnecting": "connection lost, reconnecting…",
|
|
316
316
|
"chat.connectionDisconnected": "connection closed",
|
|
@@ -1898,7 +1898,7 @@ const en = {
|
|
|
1898
1898
|
"perf.ledger.groupMemory": "memory surfaces",
|
|
1899
1899
|
"perf.ledger.groupSession": "session budget",
|
|
1900
1900
|
"perf.ledger.self": "worker process (engine)",
|
|
1901
|
-
"perf.ledger.supervisor": "
|
|
1901
|
+
"perf.ledger.supervisor": "engine supervisor",
|
|
1902
1902
|
"perf.ledger.children": "children",
|
|
1903
1903
|
"perf.ledger.jsHeap": "JS heap",
|
|
1904
1904
|
"perf.ledger.external": "external",
|
|
@@ -1968,9 +1968,9 @@ const en = {
|
|
|
1968
1968
|
"preferences.subagentFanOut.hint": "Max background subagents running at once",
|
|
1969
1969
|
"preferences.subagentFanOut.desc": "Upper bound on concurrent background subagents / sub-sessions per parent session; applies to the next delegation, no restart.",
|
|
1970
1970
|
"preferences.maxWorkers.label": "Worker processes",
|
|
1971
|
-
"preferences.maxWorkers.hint": "Most engine workers the
|
|
1971
|
+
"preferences.maxWorkers.hint": "Most engine workers the supervisor starts; takes effect after otto reload",
|
|
1972
1972
|
"preferences.maxWorkers.auto": "Auto ({{count}} cores)",
|
|
1973
|
-
"preferences.maxWorkers.desc": "Most worker processes the
|
|
1973
|
+
"preferences.maxWorkers.desc": "Most worker processes the supervisor starts for ordinary sessions. Auto follows this machine: the logical core count, never below 4. Each worker can hold 0.5-1 GiB of memory, so a high value on a small machine trades slots for memory. Takes effect after the engine restarts.",
|
|
1974
1974
|
"preferences.budget.wake": "Automatic execution budget",
|
|
1975
1975
|
"preferences.budget.notice": "Budget notice",
|
|
1976
1976
|
"preferences.budget.hint": "Adjust",
|
|
@@ -1997,7 +1997,7 @@ const en = {
|
|
|
1997
1997
|
"preferences.transcriptDisplay.bulk.none": "hide all",
|
|
1998
1998
|
"preferences.transcriptDisplay.bulk.invert": "invert",
|
|
1999
1999
|
"preferences.transcriptDisplay.items.count": "{{shown}}/{{total}} checked",
|
|
2000
|
-
"preferences.transcriptDisplay.items.
|
|
2000
|
+
"preferences.transcriptDisplay.items.supervisorOff": "supervisor switch off",
|
|
2001
2001
|
"preferences.transcriptDisplay.items.empty": "nothing to fine-tune yet",
|
|
2002
2002
|
"preferences.transcriptDisplay.noticeKind.modelSwitch": "Model switch",
|
|
2003
2003
|
"preferences.transcriptDisplay.noticeKind.modelFallback": "Model fallback",
|
|
@@ -2471,7 +2471,7 @@ const zh = {
|
|
|
2471
2471
|
"chat.restartStatusUnknown": "暂时查不到重启进度 · 窗口卡住时可用 /reconnect 重连",
|
|
2472
2472
|
"chat.windowBuildStale": "本窗口的代码比引擎旧 · 执行 /exit -r 重开窗口以更新",
|
|
2473
2473
|
"chat.engineBuildStale": "引擎运行的是旧代码 · 在项目目录执行 otto reload",
|
|
2474
|
-
"chat.
|
|
2474
|
+
"chat.supervisorBuildStale": "共享模式运行的是旧代码 · 在项目目录执行 otto reload",
|
|
2475
2475
|
"chat.connectionReloading": "引擎正在重新加载 · 窗口会自己接回",
|
|
2476
2476
|
"chat.connectionReconnecting": "连接断开,正在重连…",
|
|
2477
2477
|
"chat.connectionDisconnected": "连接已断开",
|
|
@@ -4059,7 +4059,7 @@ const zh = {
|
|
|
4059
4059
|
"perf.ledger.groupMemory": "内存面",
|
|
4060
4060
|
"perf.ledger.groupSession": "会话预算",
|
|
4061
4061
|
"perf.ledger.self": "worker 进程(引擎)",
|
|
4062
|
-
"perf.ledger.supervisor": "
|
|
4062
|
+
"perf.ledger.supervisor": "supervisor 守护进程",
|
|
4063
4063
|
"perf.ledger.children": "子进程",
|
|
4064
4064
|
"perf.ledger.jsHeap": "JS 堆",
|
|
4065
4065
|
"perf.ledger.external": "外部内存",
|
|
@@ -4158,7 +4158,7 @@ const zh = {
|
|
|
4158
4158
|
"preferences.transcriptDisplay.bulk.none": "全不选",
|
|
4159
4159
|
"preferences.transcriptDisplay.bulk.invert": "反选",
|
|
4160
4160
|
"preferences.transcriptDisplay.items.count": "已勾选 {{shown}}/{{total}}",
|
|
4161
|
-
"preferences.transcriptDisplay.items.
|
|
4161
|
+
"preferences.transcriptDisplay.items.supervisorOff": "总开关已关闭",
|
|
4162
4162
|
"preferences.transcriptDisplay.items.empty": "当前没有可细化的条目",
|
|
4163
4163
|
"preferences.transcriptDisplay.noticeKind.modelSwitch": "模型切换",
|
|
4164
4164
|
"preferences.transcriptDisplay.noticeKind.modelFallback": "模型回退",
|
|
@@ -22906,7 +22906,7 @@ function messageScope(message) {
|
|
|
22906
22906
|
function askErrorCode(error) {
|
|
22907
22907
|
return error instanceof ServiceError ? error.code : void 0;
|
|
22908
22908
|
}
|
|
22909
|
-
const UNSUPPORTED_ASK_CODES = new Set(["
|
|
22909
|
+
const UNSUPPORTED_ASK_CODES = new Set(["SUPERVISOR_UNSUPPORTED", "UNSUPPORTED"]);
|
|
22910
22910
|
function isUnsupportedAskError(error) {
|
|
22911
22911
|
const code = error?.code;
|
|
22912
22912
|
return typeof code === "string" && UNSUPPORTED_ASK_CODES.has(code);
|
|
@@ -24871,8 +24871,8 @@ function windowBuildMismatchOf(input) {
|
|
|
24871
24871
|
return input.windowBuildId === input.engineBuildId ? "same" : "different";
|
|
24872
24872
|
}
|
|
24873
24873
|
function buildDriftOf(input) {
|
|
24874
|
-
const {
|
|
24875
|
-
if (
|
|
24874
|
+
const { supervisorBuild, activeWorkerBuild, diskBuild } = input;
|
|
24875
|
+
if (supervisorBuild !== void 0 && diskBuild !== void 0 && supervisorBuild !== diskBuild) return "supervisor-stale";
|
|
24876
24876
|
if (activeWorkerBuild !== void 0 && diskBuild !== void 0 && activeWorkerBuild !== diskBuild) return "engine-stale";
|
|
24877
24877
|
return windowBuildMismatchOf({
|
|
24878
24878
|
windowBuildId: input.windowBuildId,
|
|
@@ -47404,11 +47404,11 @@ function sectionItemsOf(id, toolCandidates, noticeKindCandidates, hiddenTools, h
|
|
|
47404
47404
|
hidden: hiddenNoticeKinds
|
|
47405
47405
|
};
|
|
47406
47406
|
}
|
|
47407
|
-
function sectionTagOf(items,
|
|
47408
|
-
if (items === void 0) return
|
|
47407
|
+
function sectionTagOf(items, supervisorHidden, state, t) {
|
|
47408
|
+
if (items === void 0) return supervisorHidden ? t("kbd.hidden") : t("kbd.shown");
|
|
47409
47409
|
const total = items.candidates.length;
|
|
47410
47410
|
if (total === 0) return t("preferences.transcriptDisplay.state.empty");
|
|
47411
|
-
if (
|
|
47411
|
+
if (supervisorHidden) return t("preferences.transcriptDisplay.state.none", { total });
|
|
47412
47412
|
const shown = items.candidates.filter((candidate) => !items.hidden.has(candidate)).length;
|
|
47413
47413
|
if (state === "all") return t("preferences.transcriptDisplay.state.all", { total });
|
|
47414
47414
|
if (state === "none") return t("preferences.transcriptDisplay.state.none", { total });
|
|
@@ -47436,13 +47436,13 @@ function TranscriptDisplayDialog() {
|
|
|
47436
47436
|
const [selected, setSelected] = useState(0);
|
|
47437
47437
|
const rows = useMemo(() => TRANSCRIPT_SECTION_IDS.map((id) => {
|
|
47438
47438
|
const items = sectionItemsOf(id, candidates.tools, candidates.noticeKinds, hiddenTools, hiddenNoticeKinds);
|
|
47439
|
-
const
|
|
47440
|
-
const state =
|
|
47439
|
+
const supervisorHidden = hidden.has(id);
|
|
47440
|
+
const state = supervisorHidden ? "none" : checkStateOf(shownCountOf(items), items?.candidates.length ?? 1);
|
|
47441
47441
|
return {
|
|
47442
47442
|
id,
|
|
47443
47443
|
label: t(SECTION_LABEL_KEYS[id]),
|
|
47444
47444
|
state,
|
|
47445
|
-
tag: sectionTagOf(items,
|
|
47445
|
+
tag: sectionTagOf(items, supervisorHidden, state, t),
|
|
47446
47446
|
route: SECTION_SUB_PATHS[id]
|
|
47447
47447
|
};
|
|
47448
47448
|
}), [
|
|
@@ -47596,7 +47596,7 @@ function TranscriptItemsDialog({ kind }) {
|
|
|
47596
47596
|
const sectionIds = usePreference("transcriptHidden");
|
|
47597
47597
|
const hiddenIds = kind === "tool" ? hiddenToolIds : hiddenNoticeKindIds;
|
|
47598
47598
|
const hidden = useMemo(() => transcriptHiddenNamesOf(hiddenIds), [hiddenIds]);
|
|
47599
|
-
const
|
|
47599
|
+
const supervisorHidden = sectionIds.includes(kind === "tool" ? "tool" : "notice");
|
|
47600
47600
|
const [selected, setSelected] = useState(0);
|
|
47601
47601
|
const rows = useMemo(() => {
|
|
47602
47602
|
if (kind === "tool") return candidates.tools.map((name) => ({
|
|
@@ -47714,8 +47714,8 @@ function TranscriptItemsDialog({ kind }) {
|
|
|
47714
47714
|
shown: shownCount,
|
|
47715
47715
|
total: rows.length
|
|
47716
47716
|
});
|
|
47717
|
-
const
|
|
47718
|
-
const hint = rows.length === 0 ? t("preferences.transcriptDisplay.items.empty") : `${
|
|
47717
|
+
const supervisorNote = supervisorHidden ? `${t("preferences.transcriptDisplay.items.supervisorOff")} · ` : "";
|
|
47718
|
+
const hint = rows.length === 0 ? t("preferences.transcriptDisplay.items.empty") : `${supervisorNote}${pageCount > 1 ? `${range} · ` : ""}${count}`;
|
|
47719
47719
|
return /* @__PURE__ */ jsxs(Box, {
|
|
47720
47720
|
flexDirection: "column",
|
|
47721
47721
|
children: [visible.map((row, offset) => {
|
|
@@ -54009,14 +54009,14 @@ function ChatStatusBar({ busy, thinkingText, activeTool, toolCount, maxToolTurns
|
|
|
54009
54009
|
const loadingNotice = isLoadingSession ? t("chat.sessionLoading") : void 0;
|
|
54010
54010
|
const unknownNotice = restartStatusUnknown ? t("chat.restartStatusUnknown") : void 0;
|
|
54011
54011
|
const windowBuild = useWindowBuild((state) => state.status);
|
|
54012
|
-
const buildNotice = windowBuild === "engine-stale" ? t("chat.engineBuildStale") : windowBuild === "
|
|
54012
|
+
const buildNotice = windowBuild === "engine-stale" ? t("chat.engineBuildStale") : windowBuild === "supervisor-stale" ? t("chat.supervisorBuildStale") : t("chat.windowBuildStale");
|
|
54013
54013
|
const engineStatus = deriveEngineStatus({
|
|
54014
54014
|
restartPhase: restartView?.phase,
|
|
54015
54015
|
restartUnknown: restartStatusUnknown,
|
|
54016
54016
|
isRemote: remoteConnection,
|
|
54017
54017
|
connectionState,
|
|
54018
54018
|
connectionReason,
|
|
54019
|
-
windowBuildStale: windowBuild === "different" || windowBuild === "engine-stale" || windowBuild === "
|
|
54019
|
+
windowBuildStale: windowBuild === "different" || windowBuild === "engine-stale" || windowBuild === "supervisor-stale",
|
|
54020
54020
|
isLoadingSession,
|
|
54021
54021
|
healthLevel: engineHealth.level
|
|
54022
54022
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-otto/tui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-beta.0",
|
|
4
4
|
"description": "终端 UI 应用层(React 19 + ink 7)",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@types/react": "^19.3.0",
|
|
23
|
-
"@x-otto/autosuggest": "^0.
|
|
24
|
-
"@x-otto/i18n": "^0.
|
|
25
|
-
"@x-otto/kernel": "^0.
|
|
26
|
-
"@x-otto/service": "^0.
|
|
27
|
-
"@x-otto/shared": "^0.
|
|
28
|
-
"@x-otto/tui-focus": "^0.
|
|
29
|
-
"@x-otto/tui-router": "^0.
|
|
30
|
-
"@x-otto/tui-screen": "^0.
|
|
31
|
-
"@x-otto/tui-theme": "^0.
|
|
32
|
-
"@x-otto/ui-model": "^0.
|
|
33
|
-
"@x-otto/ui-token": "^0.
|
|
34
|
-
"@x-otto/universal-refresh": "^0.
|
|
23
|
+
"@x-otto/autosuggest": "^0.4.0-beta.0",
|
|
24
|
+
"@x-otto/i18n": "^0.4.0-beta.0",
|
|
25
|
+
"@x-otto/kernel": "^0.4.0-beta.0",
|
|
26
|
+
"@x-otto/service": "^0.4.0-beta.0",
|
|
27
|
+
"@x-otto/shared": "^0.4.0-beta.0",
|
|
28
|
+
"@x-otto/tui-focus": "^0.4.0-beta.0",
|
|
29
|
+
"@x-otto/tui-router": "^0.4.0-beta.0",
|
|
30
|
+
"@x-otto/tui-screen": "^0.4.0-beta.0",
|
|
31
|
+
"@x-otto/tui-theme": "^0.4.0-beta.0",
|
|
32
|
+
"@x-otto/ui-model": "^0.4.0-beta.0",
|
|
33
|
+
"@x-otto/ui-token": "^0.4.0-beta.0",
|
|
34
|
+
"@x-otto/universal-refresh": "^0.4.0-beta.0",
|
|
35
35
|
"ink": "8.0.0",
|
|
36
36
|
"markdown-it": "^15.0.1",
|
|
37
37
|
"react": "19.3.1",
|
|
38
38
|
"shiki": "^4.4.3",
|
|
39
39
|
"zustand": "5.0.8",
|
|
40
|
-
"@x-otto/ottofs": "^0.
|
|
40
|
+
"@x-otto/ottofs": "^0.4.0-beta.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "19.3.1"
|