@each1024/pi-mini-mode 0.9.0 → 0.9.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/README.md +1 -2
- package/README.zh-CN.md +1 -2
- package/extensions/footer-status.ts +86 -17
- package/lib/settings.html +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ An everyday refinement for [Pi](https://pi.dev), not just a footer. Preview imag
|
|
|
16
16
|
pi install npm:@each1024/pi-mini-mode
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Run `/reload` in Pi. On the first interactive TUI session, choose **Apply recommended setup** to select `cc-dark` or `cc-light` and save the theme plus `tuiMode=fullscreen` globally; restart Pi for fullscreen to take effect. Project settings and CLI flags may override global settings. You can
|
|
19
|
+
Run `/reload` in Pi. On the first interactive TUI session, choose **Apply recommended setup** to select `cc-dark` or `cc-light` and save the theme plus `tuiMode=fullscreen` globally; restart Pi for fullscreen to take effect. Project settings and CLI flags may override global settings. You can configure Pi Mini Mode any time with `/pi-mini-mode-settings`.
|
|
20
20
|
|
|
21
21
|
**Pi ≥ 0.84.0.** Input enhancements and minimal output are on by default. Minimal mode uses a private **Pi 0.85.x** layout adapter—see [compatibility](#compatibility) before enabling it.
|
|
22
22
|
|
|
@@ -75,7 +75,6 @@ This earlier screenshot and recording show footer configuration, not the newer i
|
|
|
75
75
|
| Command / shortcut | Purpose |
|
|
76
76
|
| --- | --- |
|
|
77
77
|
| `/pi-mini-mode-settings` | Configure fields, input enhancements and minimal output |
|
|
78
|
-
| `/pi-mini-mode-setup` | Choose the bundled theme and save global fullscreen mode; restart Pi afterward |
|
|
79
78
|
| `/pi-mini-mode-minimal on` / `off` | Enable minimal output / restore native history |
|
|
80
79
|
| `Ctrl+O` | Expand or collapse the complete process tree |
|
|
81
80
|
| `Ctrl+S` | Expand or collapse completed subagent rows; yields to Pi `/model`, `/thinking`, and other selectors |
|
package/README.zh-CN.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
pi install npm:@each1024/pi-mini-mode
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
在 Pi 中运行 `/reload`。首次进入交互式 TUI 时,选择 **应用推荐配置**,再选择 `cc-dark` 或 `cc-light`;它会通过 Pi 官方设置 API 保存主题与全局 `tuiMode=fullscreen`,重启 Pi 后全屏模式才会生效。项目设置和命令行参数可能覆盖全局设置。之后可用 `/pi-mini-mode-
|
|
19
|
+
在 Pi 中运行 `/reload`。首次进入交互式 TUI 时,选择 **应用推荐配置**,再选择 `cc-dark` 或 `cc-light`;它会通过 Pi 官方设置 API 保存主题与全局 `tuiMode=fullscreen`,重启 Pi 后全屏模式才会生效。项目设置和命令行参数可能覆盖全局设置。之后可用 `/pi-mini-mode-settings` 随时配置 Pi Mini Mode。
|
|
20
20
|
|
|
21
21
|
**需要 Pi ≥ 0.84.0。** 输入增强和极简输出默认开启。极简模式使用私有 **Pi 0.85.x** 布局适配器,启用前请查看[兼容性](#兼容性)。
|
|
22
22
|
|
|
@@ -75,7 +75,6 @@ pi install git:github.com/eachann1024/pi-mini-mode
|
|
|
75
75
|
| 命令/快捷键 | 用途 |
|
|
76
76
|
| --- | --- |
|
|
77
77
|
| `/pi-mini-mode-settings` | 配置字段、输入增强和极简输出 |
|
|
78
|
-
| `/pi-mini-mode-setup` | 选择内置主题并保存全局全屏模式;之后需重启 Pi |
|
|
79
78
|
| `/pi-mini-mode-minimal on` / `off` | 开启极简输出/恢复原生历史 |
|
|
80
79
|
| `Ctrl+O` | 展开/收起完整过程树 |
|
|
81
80
|
| `Ctrl+S` | 展开/收起已完成的子代理行;打开 `/model`、`/thinking` 等选择器时交给 Pi |
|
|
@@ -484,10 +484,17 @@ export interface MinimalTurn {
|
|
|
484
484
|
/** Wall-clock start of this user-request execution; retained across tool and thinking turns. */
|
|
485
485
|
startedAt?: number;
|
|
486
486
|
thinking?: number;
|
|
487
|
+
/** Per-process-index Thinking clocks. Live rows count; completed rows keep endedAt. */
|
|
488
|
+
thinkingClocks?: Array<ThinkingClock | undefined>;
|
|
487
489
|
awaitingResponse?: boolean;
|
|
488
490
|
waitingTools?: Array<{ id: string; name: string; startedAt: number }>;
|
|
489
491
|
}
|
|
490
492
|
|
|
493
|
+
export interface ThinkingClock {
|
|
494
|
+
startedAt: number;
|
|
495
|
+
endedAt?: number;
|
|
496
|
+
}
|
|
497
|
+
|
|
491
498
|
const PROCESS_PREVIEW_LIMIT = 180;
|
|
492
499
|
const THINKING_SCROLL_INTERVAL_MS = 80;
|
|
493
500
|
|
|
@@ -524,6 +531,37 @@ export function formatElapsed(startedAt: number | undefined, now = Date.now()):
|
|
|
524
531
|
return minutes >= 60 ? `${Math.floor(minutes / 60)}:${String(minutes % 60).padStart(2, "0")}:${remainder}` : `${minutes}:${remainder}`;
|
|
525
532
|
}
|
|
526
533
|
|
|
534
|
+
function ensureThinkingClock(turn: MinimalTurn, index: number, startedAt = Date.now()): ThinkingClock {
|
|
535
|
+
const clocks = turn.thinkingClocks ??= [];
|
|
536
|
+
return clocks[index] ??= { startedAt: turn.startedAt ?? startedAt };
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
function freezeThinkingClock(turn: MinimalTurn | undefined, index: number | undefined, endedAt = Date.now()): void {
|
|
540
|
+
if (!turn || index === undefined) return;
|
|
541
|
+
const clock = turn.thinkingClocks?.[index];
|
|
542
|
+
if (clock && clock.endedAt === undefined) clock.endedAt = endedAt;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
function freezeOpenThinkingClocks(turn: MinimalTurn | undefined, endedAt = Date.now()): void {
|
|
546
|
+
if (!turn?.thinkingClocks) return;
|
|
547
|
+
for (const clock of turn.thinkingClocks) {
|
|
548
|
+
if (clock && clock.endedAt === undefined) clock.endedAt = endedAt;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/** Active Thinking counts from the turn start; completed Thinking keeps the frozen stop time. */
|
|
553
|
+
export function formatThinkingElapsed(
|
|
554
|
+
turn: Pick<MinimalTurn, "startedAt" | "thinkingClocks">,
|
|
555
|
+
processIndex: number,
|
|
556
|
+
active: boolean,
|
|
557
|
+
now = Date.now(),
|
|
558
|
+
): string {
|
|
559
|
+
const clock = turn.thinkingClocks?.[processIndex];
|
|
560
|
+
if (active) return formatElapsed(clock?.startedAt ?? turn.startedAt, now);
|
|
561
|
+
if (clock?.endedAt != null) return formatElapsed(clock.startedAt, clock.endedAt);
|
|
562
|
+
return "";
|
|
563
|
+
}
|
|
564
|
+
|
|
527
565
|
function pushProcess(turn: MinimalTurn | undefined, kind: string, value: unknown): void {
|
|
528
566
|
if (!turn) return;
|
|
529
567
|
const text = processText(value);
|
|
@@ -611,12 +649,14 @@ function visibleMinimalTurns(settings: MiniLensSettings, turns: MinimalTurn[]):
|
|
|
611
649
|
return turns.map((turn) => {
|
|
612
650
|
let thinking: number | undefined;
|
|
613
651
|
let visibleCount = 0;
|
|
652
|
+
const thinkingClocks: Array<ThinkingClock | undefined> = [];
|
|
614
653
|
const process = turn.process.filter((line, index) => {
|
|
615
654
|
const visible = line.startsWith("thinking ") ? settings["pi-mini-mode-minimal-thinking-show"]
|
|
616
655
|
: /^(tool|call) /.test(line) ? settings["pi-mini-mode-minimal-tools-show"]
|
|
617
656
|
: line.startsWith("output ") ? settings["pi-mini-mode-minimal-output-show"]
|
|
618
657
|
: line.startsWith("skill ") ? settings["pi-mini-mode-minimal-skills-show"] : true;
|
|
619
658
|
if (visible) {
|
|
659
|
+
if (turn.thinkingClocks?.[index]) thinkingClocks[visibleCount] = turn.thinkingClocks[index];
|
|
620
660
|
if (index === turn.thinking) thinking = visibleCount;
|
|
621
661
|
visibleCount++;
|
|
622
662
|
}
|
|
@@ -628,6 +668,7 @@ function visibleMinimalTurns(settings: MiniLensSettings, turns: MinimalTurn[]):
|
|
|
628
668
|
awaitingResponse: turn.awaitingResponse && settings["pi-mini-mode-minimal-thinking-show"],
|
|
629
669
|
agentCalls: settings["pi-mini-mode-minimal-tools-show"] ? turn.agentCalls : [],
|
|
630
670
|
process,
|
|
671
|
+
thinkingClocks: turn.thinkingClocks ? thinkingClocks : undefined,
|
|
631
672
|
};
|
|
632
673
|
});
|
|
633
674
|
}
|
|
@@ -793,19 +834,19 @@ export function minimalOutputComponent(theme: ExtensionContext["ui"]["theme"], g
|
|
|
793
834
|
const call = turn.agentCalls?.find(call => call.id === entry.slice(5));
|
|
794
835
|
if (call && isAgentTool(call.tool ?? call.name) && !isExpanded()) return [];
|
|
795
836
|
const display = call && agentCallDisplay(call);
|
|
796
|
-
return call && display ? [{ title: `${isAgentTool(call.tool ?? call.name) ? "Control" : call.name} ${display.summary}`.trim(), detail: display.detail, state: call.state, id: call.id, thinking: false }] : [];
|
|
837
|
+
return call && display ? [{ title: `${isAgentTool(call.tool ?? call.name) ? "Control" : call.name} ${display.summary}`.trim(), detail: display.detail, state: call.state, id: call.id, thinking: false, processIndex, activeThinking: false }] : [];
|
|
797
838
|
}
|
|
798
839
|
const part = entry.match(/^(tool|output|thinking|skill)(?:\s+|$)([\s\S]*)/);
|
|
799
840
|
const thinking = part?.[1] === "thinking";
|
|
800
841
|
const activeThinking = thinking && turn.running && turn.thinking === processIndex;
|
|
801
842
|
const label = ({ tool: "Tool", output: "Output", thinking: "Thinking", skill: "Skill" } as Record<string, string>)[part?.[1] ?? ""] ?? "Process";
|
|
802
|
-
return [{ title: `${label} ${part?.[2] ?? entry}`, detail: part?.[2] ?? entry, state: activeThinking ? "running" : "done", id: thinking ? `thinking:${index}:${processIndex}` : "", thinking }];
|
|
843
|
+
return [{ title: `${label} ${part?.[2] ?? entry}`, detail: part?.[2] ?? entry, state: activeThinking ? "running" : "done", id: thinking ? `thinking:${index}:${processIndex}` : "", thinking, processIndex, activeThinking }];
|
|
803
844
|
});
|
|
804
845
|
// Older in-memory turns may predate call markers.
|
|
805
846
|
for (const call of turn.agentCalls ?? []) {
|
|
806
847
|
if (isAgentTool(call.tool ?? call.name) && !isExpanded()) continue;
|
|
807
848
|
const display = agentCallDisplay(call);
|
|
808
|
-
if (!entries.some(entry => entry.id === call.id)) entries.push({ title: `${isAgentTool(call.tool ?? call.name) ? "Control" : call.name} ${display.summary}`, detail: display.detail, state: call.state, id: call.id, thinking: false });
|
|
849
|
+
if (!entries.some(entry => entry.id === call.id)) entries.push({ title: `${isAgentTool(call.tool ?? call.name) ? "Control" : call.name} ${display.summary}`, detail: display.detail, state: call.state, id: call.id, thinking: false, processIndex: -1, activeThinking: false });
|
|
809
850
|
}
|
|
810
851
|
const agentTurnControls: Array<{ runId: string; y: number; width: number; line: string }> = [];
|
|
811
852
|
const agents = liveAgentView(turn.subAgents ?? [], theme, width, subAgentsExpanded(), true, agentDeadlines, Date.now(), expandedSubagents, agentTurnControls);
|
|
@@ -841,8 +882,9 @@ export function minimalOutputComponent(theme: ExtensionContext["ui"]["theme"], g
|
|
|
841
882
|
const split = text.indexOf(" ");
|
|
842
883
|
const label = split < 0 ? text : text.slice(0, split);
|
|
843
884
|
const body = split < 0 ? "" : text.slice(split + 1);
|
|
844
|
-
const activeThinking = entry.
|
|
845
|
-
const
|
|
885
|
+
const activeThinking = !!entry.activeThinking;
|
|
886
|
+
const elapsed = entry.thinking ? formatThinkingElapsed(turn, entry.processIndex, activeThinking) : "";
|
|
887
|
+
const thinkingElapsed = elapsed ? theme.fg(activeThinking ? "success" : "muted", ` ${elapsed}`) : "";
|
|
846
888
|
const call = turn.agentCalls?.find(call => call.id === entry.id && !isAgentTool(call.tool ?? call.name));
|
|
847
889
|
const controlId = call?.id ?? (entry.thinking ? entry.id : "");
|
|
848
890
|
const open = call ? expandedTools.has(call.id) : !!(entry.thinking && expandedThinking.has(entry.id));
|
|
@@ -1321,10 +1363,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1321
1363
|
description: "Open HTML settings in the browser",
|
|
1322
1364
|
handler: async (_args, ctx) => openSettings(ctx),
|
|
1323
1365
|
});
|
|
1324
|
-
|
|
1325
|
-
description: "Set up Pi Mini Mode theme and fullscreen mode",
|
|
1326
|
-
handler: async (_args, ctx) => runOnboarding(ctx),
|
|
1327
|
-
});
|
|
1366
|
+
|
|
1328
1367
|
pi.on("session_start", async (_event, ctx) => {
|
|
1329
1368
|
const loaded = await loadSettings(configPath);
|
|
1330
1369
|
settings = loaded.settings;
|
|
@@ -1390,9 +1429,23 @@ export default function (pi: ExtensionAPI) {
|
|
|
1390
1429
|
});
|
|
1391
1430
|
pi.on("model_select", refresh);
|
|
1392
1431
|
pi.on("thinking_level_select", refresh);
|
|
1432
|
+
const writeThinkingLine = (turn: MinimalTurn, blockIndex: number, line: string): number => {
|
|
1433
|
+
const existing = minimalMessageIndices.get(blockIndex);
|
|
1434
|
+
if (existing === undefined) {
|
|
1435
|
+
const index = turn.process.length;
|
|
1436
|
+
minimalMessageIndices.set(blockIndex, index);
|
|
1437
|
+
turn.process.push(line);
|
|
1438
|
+
ensureThinkingClock(turn, index);
|
|
1439
|
+
return index;
|
|
1440
|
+
}
|
|
1441
|
+
turn.process[existing] = line;
|
|
1442
|
+
ensureThinkingClock(turn, existing);
|
|
1443
|
+
return existing;
|
|
1444
|
+
};
|
|
1393
1445
|
pi.on("message_start", (event) => {
|
|
1394
1446
|
if (event.message.role === "user") {
|
|
1395
1447
|
if (activeMinimalTurn) {
|
|
1448
|
+
freezeOpenThinkingClocks(activeMinimalTurn);
|
|
1396
1449
|
activeMinimalTurn.final = pendingMinimalFinal;
|
|
1397
1450
|
activeMinimalTurn.running = false;
|
|
1398
1451
|
activeMinimalTurn.thinking = undefined;
|
|
@@ -1414,6 +1467,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1414
1467
|
// Background completions can start a new assistant turn without a user message.
|
|
1415
1468
|
activeMinimalTurn ??= minimalTurns.at(-1);
|
|
1416
1469
|
if (activeMinimalTurn) {
|
|
1470
|
+
freezeThinkingClock(activeMinimalTurn, activeMinimalTurn.thinking);
|
|
1417
1471
|
if (activeMinimalTurn.final) (activeMinimalTurn.replies ??= []).push(activeMinimalTurn.final);
|
|
1418
1472
|
activeMinimalTurn.final = undefined;
|
|
1419
1473
|
activeMinimalTurn.running = true;
|
|
@@ -1432,17 +1486,21 @@ export default function (pi: ExtensionAPI) {
|
|
|
1432
1486
|
pi.on("message_update", (event) => {
|
|
1433
1487
|
const partial = (event.assistantMessageEvent as { partial?: { usage?: UsageLike; content?: Array<Record<string, unknown>> } }).partial;
|
|
1434
1488
|
if (activeMinimalTurn && partial?.content) {
|
|
1489
|
+
const previousThinking = activeMinimalTurn.thinking;
|
|
1435
1490
|
activeMinimalTurn.thinking = undefined;
|
|
1436
1491
|
if (partial.content.length) activeMinimalTurn.awaitingResponse = false;
|
|
1437
1492
|
for (const [blockIndex, item] of partial.content.entries()) {
|
|
1438
1493
|
if (item.type !== "thinking") continue;
|
|
1439
|
-
const line =
|
|
1440
|
-
const index =
|
|
1441
|
-
if (
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1494
|
+
const line = `thinking ${processText(item.thinking ?? item.text)}`;
|
|
1495
|
+
const index = writeThinkingLine(activeMinimalTurn, blockIndex, line);
|
|
1496
|
+
if (blockIndex === partial.content.length - 1 && event.assistantMessageEvent.type !== "thinking_end") {
|
|
1497
|
+
activeMinimalTurn.thinking = index;
|
|
1498
|
+
} else {
|
|
1499
|
+
freezeThinkingClock(activeMinimalTurn, index);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
if (previousThinking !== undefined && previousThinking !== activeMinimalTurn.thinking) {
|
|
1503
|
+
freezeThinkingClock(activeMinimalTurn, previousThinking);
|
|
1446
1504
|
}
|
|
1447
1505
|
activeMinimalTurn.final = contentText(partial.content) || undefined;
|
|
1448
1506
|
refreshMinimalOutput();
|
|
@@ -1469,6 +1527,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
1469
1527
|
pi.on("message_end", (event) => {
|
|
1470
1528
|
if (event.message.role === "assistant") {
|
|
1471
1529
|
if (activeMinimalTurn) {
|
|
1530
|
+
freezeThinkingClock(activeMinimalTurn, activeMinimalTurn.thinking);
|
|
1531
|
+
freezeOpenThinkingClocks(activeMinimalTurn);
|
|
1472
1532
|
activeMinimalTurn.thinking = undefined;
|
|
1473
1533
|
activeMinimalTurn.awaitingResponse = false;
|
|
1474
1534
|
activeMinimalTurn.usage = addUsage(activeMinimalTurn.usage ?? EMPTY_USAGE, event.message.usage as UsageLike | undefined);
|
|
@@ -1485,6 +1545,10 @@ export default function (pi: ExtensionAPI) {
|
|
|
1485
1545
|
for (const [blockIndex, item] of (content as Array<Record<string, unknown>>).entries()) {
|
|
1486
1546
|
if (item.type !== "thinking" && !(item.type === "text" && content.some((block) => block.type === "toolCall"))) continue;
|
|
1487
1547
|
const line = `${item.type === "thinking" ? "thinking" : "output"} ${processText(item.thinking ?? item.text)}`;
|
|
1548
|
+
if (item.type === "thinking") {
|
|
1549
|
+
freezeThinkingClock(activeMinimalTurn, writeThinkingLine(activeMinimalTurn, blockIndex, line));
|
|
1550
|
+
continue;
|
|
1551
|
+
}
|
|
1488
1552
|
const index = minimalMessageIndices.get(blockIndex);
|
|
1489
1553
|
if (index === undefined) activeMinimalTurn.process.push(line);
|
|
1490
1554
|
else activeMinimalTurn.process[index] = line;
|
|
@@ -1505,6 +1569,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1505
1569
|
pi.on("tool_execution_start", (event) => {
|
|
1506
1570
|
toolStarts.set(event.toolCallId, Date.now());
|
|
1507
1571
|
if (activeMinimalTurn) {
|
|
1572
|
+
freezeThinkingClock(activeMinimalTurn, activeMinimalTurn.thinking);
|
|
1508
1573
|
activeMinimalTurn.thinking = undefined;
|
|
1509
1574
|
activeMinimalTurn.awaitingResponse = false;
|
|
1510
1575
|
(activeMinimalTurn.agentCalls ??= []).push(agentCall(event.toolCallId, event.toolName, event.args));
|
|
@@ -1571,7 +1636,11 @@ export default function (pi: ExtensionAPI) {
|
|
|
1571
1636
|
pi.on("agent_end", refresh);
|
|
1572
1637
|
pi.on("agent_settled", () => {
|
|
1573
1638
|
if (!activeMinimalTurn) return;
|
|
1574
|
-
for (const turn of minimalTurns) {
|
|
1639
|
+
for (const turn of minimalTurns) {
|
|
1640
|
+
freezeOpenThinkingClocks(turn);
|
|
1641
|
+
turn.running = false;
|
|
1642
|
+
turn.thinking = undefined;
|
|
1643
|
+
}
|
|
1575
1644
|
activeMinimalTurn.final = pendingMinimalFinal;
|
|
1576
1645
|
activeMinimalTurn = undefined;
|
|
1577
1646
|
pendingMinimalFinal = "";
|
package/lib/settings.html
CHANGED
|
@@ -41,13 +41,13 @@ const I18N={
|
|
|
41
41
|
{id:'status',title:'状态栏指标',body:'一行看清会话状态,随终端宽度自动取舍,不换行。',points:['模型与思考等级,会话与缓存 Token、缓存命中率、费用估算','上下文用量进度条与百分比','生成速度 tok/s,从第一个输出 token 起算,不含等待首字'],hint:'勾选需要的字段,拖拽预览中的条目即可排序。'},
|
|
42
42
|
{id:'minimal',setting:'pi-mini-mode-minimal-show',title:'极简输出',body:'把对话收成结论:思考、工具与技能汇成一棵按时间排序的可折叠过程树。',points:['长用户消息默认保留前四行,点击折叠控件展开全文','子代理行可展开活动记录与最终输出','Ctrl+O 展开或收起完整过程树,新问题默认收起','最终 Markdown 流畅呈现,失败与中断明确标记'],hint:'/pi-mini-mode-minimal on|off · /pi-mini-mode-prompts · /pi-mini-mode-history'},
|
|
43
43
|
{id:'input-enhancements',setting:'pi-mini-mode-input-enhancements',title:'输入增强',body:'让输入框和消息里的图片、技能与文件路径直接可用。',points:['光标移入图片路径即可预览,全屏编辑器也支持悬停','图片路径收纳为 [image1] 标签,提交时保留原图','空白后输入 / 就地搜索技能,并在光标处插入','点击图片标签或消息中的文件路径,用系统默认应用打开'],hint:'Ctrl+V 粘贴图片(Windows/WSL 使用 Alt+V)'},
|
|
44
|
-
{id:'themes',title:'明暗主题',body:'内置 cc-dark 与 cc-light 两套主题,Markdown、代码高亮、表格与 Mermaid 图表一并适配明暗。',points:['用户消息使用主题的用户背景色,与正文清晰区分','不支持、不完整或过宽的图表保留源文本'],hint:'/pi-mini-mode-
|
|
44
|
+
{id:'themes',title:'明暗主题',body:'内置 cc-dark 与 cc-light 两套主题,Markdown、代码高亮、表格与 Mermaid 图表一并适配明暗。',points:['用户消息使用主题的用户背景色,与正文清晰区分','不支持、不完整或过宽的图表保留源文本'],hint:'/pi-mini-mode-settings 配置所有选项'}
|
|
45
45
|
],
|
|
46
46
|
en:[
|
|
47
47
|
{id:'status',title:'Status bar metrics',body:'The whole session state on one line, trimmed to fit narrow terminals instead of wrapping.',points:['Model and thinking level, session and cache tokens, cache hit rate, cost estimate','Context usage bar with percentage','Speed in tok/s, measured from the first output token, excluding time to first token'],hint:'Enable the items you need, then drag entries in the preview to reorder.'},
|
|
48
48
|
{id:'minimal',setting:'pi-mini-mode-minimal-show',title:'Minimal transcript',body:'Turns the conversation into conclusions: thinking, tools and skills collapse into one chronological, foldable tree.',points:['Long user messages keep four lines; click the fold control to expand','Subagent rows expand to activity and final output','Ctrl+O expands or collapses the full process tree; new questions start collapsed','Final Markdown streams plainly; failures and interrupts are marked'],hint:'/pi-mini-mode-minimal on|off · /pi-mini-mode-prompts · /pi-mini-mode-history'},
|
|
49
49
|
{id:'input-enhancements',setting:'pi-mini-mode-input-enhancements',title:'Input enhancements',body:'Makes images, skills and file paths usable right where you type.',points:['Preview an image as soon as the cursor enters its path; hovering works in fullscreen','Image paths collapse to [image1] labels while keeping the original path on submit','Type / after a space to search skills and insert one at the cursor','Click image labels or file paths in messages to open them in the default app'],hint:'Ctrl+V pastes images (Windows/WSL: Alt+V)'},
|
|
50
|
-
{id:'themes',title:'Light and dark themes',body:'Built-in cc-dark and cc-light adapt Markdown, code highlighting, tables and Mermaid diagrams to the color scheme.',points:['User messages use the theme user background to stand apart from the body','Unsupported, incomplete or overly wide diagrams keep their source text'],hint:'/pi-mini-mode-
|
|
50
|
+
{id:'themes',title:'Light and dark themes',body:'Built-in cc-dark and cc-light adapt Markdown, code highlighting, tables and Mermaid diagrams to the color scheme.',points:['User messages use the theme user background to stand apart from the body','Unsupported, incomplete or overly wide diagrams keep their source text'],hint:'/pi-mini-mode-settings to configure all options'}
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
reset:{zh:'恢复默认',en:'Reset defaults'},
|
package/package.json
CHANGED