pi-antigravity-bridge 0.1.13 → 0.1.15
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 +24 -0
- package/README.md +4 -0
- package/assets/agents/pi-bridge.md +4 -0
- package/assets/tui-demo.svg +578 -0
- package/package.json +1 -1
- package/src/acp/process-manager.ts +8 -1
- package/src/mcp/http-mcp-bridge.ts +214 -33
- package/src/mcp/schema-validator.ts +14 -1
- package/src/mcp/stdio-shim.ts +15 -0
- package/src/session/checkpoint-sync.ts +34 -4
- package/src/session/customization-mounter.ts +102 -12
- package/src/session/turn-coordinator.ts +251 -91
- package/src/stream/event-mapper.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.15] - 2026-11-24
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- 优化 `pi-tools` 模式下大体积工具文本输出的回传链路,完整保留超过 10 KB 的文件读取、命令执行、脚本与 MCP 工具输出,减少大文件分段重复读取次数并保持当前会话缓存命中。
|
|
8
|
+
- 完善 `pi-tools` 模式工作区上下文挂载:支持透传 `codemode` 及第三方扩展工具的使用指引、用户附加提示词与扩展自定义上下文区块,并补充 Pi MCP 服务器与资源的访问引导。
|
|
9
|
+
- 为名称超长的直通 MCP 工具自动生成兼容长度限制的调用别名并在执行时还原原始工具名,同时缩短单次工具调用的聚合等待时间并缓存历史图片摘要以降低多步工具循环开销。
|
|
10
|
+
- 在单轮连续工具调用达到后端单次步数上限时自动续接当前会话,避免长任务中途静默停止。
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- 修复 `pi-tools` 模式下禁用内置工具后仍残留 `list_resources`、`read_resource` 与 `manage_task` 原生工具的问题,避免误调不可用的资源接口或拖慢后续工具响应。
|
|
15
|
+
- 修复工具请求体在跨网络分片传输中文或 Emoji 等多字节 UTF-8 字符时可能产生乱码导致写入损坏或编辑匹配失败的问题。
|
|
16
|
+
- 修复并发执行多个慢速工具触发挂起超时剥离时可能遗漏同批部分工具执行结果的问题。
|
|
17
|
+
- 修复运行中切换工具、转向输入或回传大尺寸结果时,未等待正在写入的工具记录完成后再收口旧请求导致的偶发结果丢失问题。
|
|
18
|
+
- 修复上游网络流瞬断自动重试时将瞬时错误提示拼入模型回复正文,以及误将失败重试记录计入用量统计的问题。
|
|
19
|
+
- 修复模型向可选参数传入 `null` 或字符串化数组/对象导致参数校验失败重试、根级 `$ref` Schema 校验不完整、同名子串工具前置宣告误匹配,以及 `processPerSession: false` 模式下鉴权或服务异常未返回标准错误响应的问题。
|
|
20
|
+
|
|
21
|
+
## [0.1.14] - 2026-11-22
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- 新增 `README.md` 顶部原生 Pi TUI 交互演示动效图,在 GitHub 与 npm 页面展示模型选择、思考档位切换、工具模式切换与代码对比 Diff 效果。
|
|
26
|
+
|
|
3
27
|
## [0.1.13] - 2026-11-22
|
|
4
28
|
|
|
5
29
|
### Changed
|
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
将 Google Antigravity CLI(`agy`)作为原生模型与 Agent 后端接入 [Pi](https://github.com/earendil-works/pi)(`@earendil-works/pi-coding-agent`),在完整的 Pi TUI 交互界面中直接使用 Antigravity 提供的模型、思考档位与工具生态。
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="https://raw.githubusercontent.com/onprs/Pi-Antigravity-Bridge/main/assets/tui-demo.svg" alt="Pi Antigravity Bridge TUI 交互演示" width="100%" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
5
9
|
## 功能特性
|
|
6
10
|
|
|
7
11
|
- **原生模型与思考控制**:通过 `/model` 选择当前账号可用的 Gemini、Claude 等模型,直接联动 Pi 的 Thinking 档位切换与思考块折叠展示。
|
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 560" width="920" height="560" role="img" aria-labelledby="tuiTitle tuiDesc">
|
|
3
|
+
<title id="tuiTitle">Pi Antigravity Bridge — Pi TUI Session</title>
|
|
4
|
+
<desc id="tuiDesc">Pi TUI 终端实机演示:通过 /model 选择 Google Antigravity 模型与思考档位,通过 /agy mode 切换工具运行模式,并在原生 Pi 界面中完成思考、工具调用与代码 Diff 修改。</desc>
|
|
5
|
+
|
|
6
|
+
<defs>
|
|
7
|
+
<style>
|
|
8
|
+
.mono {
|
|
9
|
+
font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Ubuntu Mono", "Noto Sans Mono CJK SC", "PingFang SC", "Microsoft YaHei", monospace;
|
|
10
|
+
font-variant-ligatures: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ===== 静态默认态(prefers-reduced-motion 或不支持动画时展示完整第 3 幕真实终端结果态) ===== */
|
|
14
|
+
.scene-model-cmd,
|
|
15
|
+
.scene-model-sel,
|
|
16
|
+
.scene-think-notice,
|
|
17
|
+
.scene-mode-cmd,
|
|
18
|
+
.scene-mode-sel,
|
|
19
|
+
.scene-prompt-typing,
|
|
20
|
+
.editor-med,
|
|
21
|
+
.editor-working,
|
|
22
|
+
.footer-empty,
|
|
23
|
+
.footer-m-neon,
|
|
24
|
+
.footer-m-med,
|
|
25
|
+
.status-native,
|
|
26
|
+
.status-hybrid,
|
|
27
|
+
.tool1-pending,
|
|
28
|
+
.tool2-pending {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.scene-turn-user,
|
|
33
|
+
.scene-turn-think,
|
|
34
|
+
.scene-turn-tool1,
|
|
35
|
+
.scene-turn-tool2,
|
|
36
|
+
.scene-turn-reply,
|
|
37
|
+
.editor-high-idle,
|
|
38
|
+
.idle-cursor-wrap,
|
|
39
|
+
.footer-used,
|
|
40
|
+
.footer-m-high,
|
|
41
|
+
.status-pi {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
46
|
+
/* 18 秒四幕真实终端录屏时间轴 */
|
|
47
|
+
/* 0.0s - 0.8s (0% - 4.4%): 敲入 /model */
|
|
48
|
+
.scene-model-cmd { animation: visModelCmd 18s steps(1, end) infinite; }
|
|
49
|
+
.clip-model-cmd { animation: typeShort 18s steps(7, end) infinite; }
|
|
50
|
+
|
|
51
|
+
/* 0.8s - 3.4s (4.4% - 18.9%): ModelSelectorComponent 展开并上下移动光标选中 gemini-4-carbon */
|
|
52
|
+
.scene-model-sel { animation: visModelSel 18s steps(1, end) infinite; }
|
|
53
|
+
.msel-row-0 { animation: mselRow0 18s steps(1, end) infinite; }
|
|
54
|
+
.msel-row-1 { animation: mselRow1 18s steps(1, end) infinite; }
|
|
55
|
+
|
|
56
|
+
/* 3.4s - 4.4s (18.9% - 24.4%): 切换 Thinking 档位至 high,边框变亮紫色 */
|
|
57
|
+
.scene-think-notice { animation: visThinkNotice 18s steps(1, end) infinite; }
|
|
58
|
+
.editor-med { animation: visEditorMed 18s steps(1, end) infinite; }
|
|
59
|
+
|
|
60
|
+
/* 4.4s - 5.1s (24.4% - 28.3%): 敲入 /agy mode */
|
|
61
|
+
.scene-mode-cmd { animation: visModeCmd 18s steps(1, end) infinite; }
|
|
62
|
+
.clip-mode-cmd { animation: typeModeCmd 18s steps(10, end) infinite; }
|
|
63
|
+
|
|
64
|
+
/* 5.1s - 8.1s (28.3% - 45.0%): ExtensionSelectorComponent 浏览三种模式 */
|
|
65
|
+
.scene-mode-sel { animation: visModeSel 18s steps(1, end) infinite; }
|
|
66
|
+
.asel-opt-0 { animation: aselOpt0 18s steps(1, end) infinite; }
|
|
67
|
+
.asel-opt-1 { animation: aselOpt1 18s steps(1, end) infinite; }
|
|
68
|
+
.asel-opt-2 { animation: aselOpt2 18s steps(1, end) infinite; }
|
|
69
|
+
|
|
70
|
+
/* 8.1s - 9.2s (45.0% - 51.1%): 在编辑器中输入用户任务指令 */
|
|
71
|
+
.scene-prompt-typing { animation: visPromptTyping 18s steps(1, end) infinite; }
|
|
72
|
+
.clip-prompt-typing { animation: typePrompt 18s steps(28, end) infinite; }
|
|
73
|
+
|
|
74
|
+
/* 9.2s - 18.0s (51.1% - 100%): 真实对话流、Working 旋转边框、Thinking、工具 Pending->Success、Diff 与回复 */
|
|
75
|
+
.scene-turn-user { animation: visTurnUser 18s steps(1, end) infinite; }
|
|
76
|
+
.editor-working { animation: visEditorWorking 18s steps(1, end) infinite; }
|
|
77
|
+
.editor-high-idle { animation: visEditorHighIdle 18s steps(1, end) infinite; }
|
|
78
|
+
.idle-cursor-wrap { animation: visIdleCursor 18s steps(1, end) infinite; }
|
|
79
|
+
|
|
80
|
+
.scene-turn-think { animation: visTurnThink 18s ease-out infinite; }
|
|
81
|
+
.scene-turn-tool1 { animation: visTurnTool1 18s steps(1, end) infinite; }
|
|
82
|
+
.tool1-pending { animation: visTool1Pending 18s steps(1, end) infinite; }
|
|
83
|
+
|
|
84
|
+
.scene-turn-tool2 { animation: visTurnTool2 18s steps(1, end) infinite; }
|
|
85
|
+
.tool2-pending { animation: visTool2Pending 18s steps(1, end) infinite; }
|
|
86
|
+
|
|
87
|
+
.scene-turn-reply { animation: visTurnReply 18s ease-out infinite; }
|
|
88
|
+
|
|
89
|
+
/* Footer 动态同步 */
|
|
90
|
+
.footer-empty { animation: visFooterEmpty 18s steps(1, end) infinite; }
|
|
91
|
+
.footer-used { animation: visFooterUsed 18s steps(1, end) infinite; }
|
|
92
|
+
.footer-m-neon { animation: visFooterNeon 18s steps(1, end) infinite; }
|
|
93
|
+
.footer-m-med { animation: visFooterMed 18s steps(1, end) infinite; }
|
|
94
|
+
.footer-m-high { animation: visFooterHigh 18s steps(1, end) infinite; }
|
|
95
|
+
|
|
96
|
+
.status-pi { animation: visStatusPi 18s steps(1, end) infinite; }
|
|
97
|
+
.status-native { animation: visStatusNative 18s steps(1, end) infinite; }
|
|
98
|
+
.status-hybrid { animation: visStatusHybrid 18s steps(1, end) infinite; }
|
|
99
|
+
|
|
100
|
+
/* 真实 80ms 矢量 Braille 6 点顺时针旋转 (永不缺字,任意帧 4 点常亮) */
|
|
101
|
+
.bdot-0 { animation: bSpin0 0.6s steps(1, end) infinite; }
|
|
102
|
+
.bdot-1 { animation: bSpin1 0.6s steps(1, end) infinite; }
|
|
103
|
+
.bdot-2 { animation: bSpin2 0.6s steps(1, end) infinite; }
|
|
104
|
+
.bdot-3 { animation: bSpin3 0.6s steps(1, end) infinite; }
|
|
105
|
+
.bdot-4 { animation: bSpin4 0.6s steps(1, end) infinite; }
|
|
106
|
+
.bdot-5 { animation: bSpin5 0.6s steps(1, end) infinite; }
|
|
107
|
+
|
|
108
|
+
/* 终端方块光标闪烁 */
|
|
109
|
+
.cursor-blink { animation: termBlink 1s steps(2, end) infinite; }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* --- 关键帧定义 --- */
|
|
113
|
+
@keyframes termBlink {
|
|
114
|
+
0%, 100% { opacity: 1; }
|
|
115
|
+
50% { opacity: 0; }
|
|
116
|
+
}
|
|
117
|
+
@keyframes bSpin0 { 0%, 66.6% { opacity: 1; } 66.7%, 100% { opacity: 0.18; } }
|
|
118
|
+
@keyframes bSpin1 { 0%, 16.6% { opacity: 0.18; } 16.7%, 83.3% { opacity: 1; } 83.4%, 100% { opacity: 0.18; } }
|
|
119
|
+
@keyframes bSpin2 { 0%, 33.3% { opacity: 0.18; } 33.4%, 100% { opacity: 1; } }
|
|
120
|
+
@keyframes bSpin3 { 0%, 16.6% { opacity: 1; } 16.7%, 50.0% { opacity: 0.18; } 50.1%, 100% { opacity: 1; } }
|
|
121
|
+
@keyframes bSpin4 { 0%, 33.3% { opacity: 1; } 33.4%, 66.6% { opacity: 0.18; } 66.7%, 100% { opacity: 1; } }
|
|
122
|
+
@keyframes bSpin5 { 0%, 50.0% { opacity: 1; } 50.1%, 83.3% { opacity: 0.18; } 83.4%, 100% { opacity: 1; } }
|
|
123
|
+
|
|
124
|
+
/* 第一幕:/model */
|
|
125
|
+
@keyframes visModelCmd {
|
|
126
|
+
0%, 4.4% { opacity: 1; }
|
|
127
|
+
4.41%, 100% { opacity: 0; }
|
|
128
|
+
}
|
|
129
|
+
@keyframes typeShort {
|
|
130
|
+
0% { transform: translateX(-80px); }
|
|
131
|
+
3.5%, 100% { transform: translateX(0px); }
|
|
132
|
+
}
|
|
133
|
+
@keyframes visModelSel {
|
|
134
|
+
0%, 4.4% { opacity: 0; }
|
|
135
|
+
4.41%, 18.8% { opacity: 1; }
|
|
136
|
+
18.81%, 100% { opacity: 0; }
|
|
137
|
+
}
|
|
138
|
+
@keyframes mselRow0 {
|
|
139
|
+
0%, 10.5% { opacity: 1; }
|
|
140
|
+
10.51%, 100% { opacity: 0; }
|
|
141
|
+
}
|
|
142
|
+
@keyframes mselRow1 {
|
|
143
|
+
0%, 10.5% { opacity: 0; }
|
|
144
|
+
10.51%, 100% { opacity: 1; }
|
|
145
|
+
}
|
|
146
|
+
@keyframes visThinkNotice {
|
|
147
|
+
0%, 19.5% { opacity: 0; }
|
|
148
|
+
19.51%, 24.4% { opacity: 1; }
|
|
149
|
+
24.41%, 100% { opacity: 0; }
|
|
150
|
+
}
|
|
151
|
+
@keyframes visEditorMed {
|
|
152
|
+
0%, 4.4% { opacity: 1; }
|
|
153
|
+
4.41%, 18.8% { opacity: 0; }
|
|
154
|
+
18.81%, 20.0% { opacity: 1; }
|
|
155
|
+
20.01%, 100% { opacity: 0; }
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* 第二幕:/agy mode */
|
|
159
|
+
@keyframes visModeCmd {
|
|
160
|
+
0%, 24.4% { opacity: 0; }
|
|
161
|
+
24.41%, 28.3% { opacity: 1; }
|
|
162
|
+
28.31%, 100% { opacity: 0; }
|
|
163
|
+
}
|
|
164
|
+
@keyframes typeModeCmd {
|
|
165
|
+
0%, 24.5% { transform: translateX(-110px); }
|
|
166
|
+
27.5%, 100% { transform: translateX(0px); }
|
|
167
|
+
}
|
|
168
|
+
@keyframes visModeSel {
|
|
169
|
+
0%, 28.3% { opacity: 0; }
|
|
170
|
+
28.31%, 45.0% { opacity: 1; }
|
|
171
|
+
45.01%, 100% { opacity: 0; }
|
|
172
|
+
}
|
|
173
|
+
@keyframes aselOpt0 {
|
|
174
|
+
0%, 33.0% { opacity: 1; }
|
|
175
|
+
33.01%, 41.5% { opacity: 0; }
|
|
176
|
+
41.51%, 100% { opacity: 1; }
|
|
177
|
+
}
|
|
178
|
+
@keyframes aselOpt1 {
|
|
179
|
+
0%, 33.0% { opacity: 0; }
|
|
180
|
+
33.01%, 37.5% { opacity: 1; }
|
|
181
|
+
37.51%, 100% { opacity: 0; }
|
|
182
|
+
}
|
|
183
|
+
@keyframes aselOpt2 {
|
|
184
|
+
0%, 37.5% { opacity: 0; }
|
|
185
|
+
37.51%, 41.5% { opacity: 1; }
|
|
186
|
+
41.51%, 100% { opacity: 0; }
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* 第三幕:输入提示词并执行完整编码回合 */
|
|
190
|
+
@keyframes visPromptTyping {
|
|
191
|
+
0%, 45.0% { opacity: 0; }
|
|
192
|
+
45.01%, 51.1% { opacity: 1; }
|
|
193
|
+
51.11%, 100% { opacity: 0; }
|
|
194
|
+
}
|
|
195
|
+
@keyframes typePrompt {
|
|
196
|
+
0%, 45.2% { transform: translateX(-460px); }
|
|
197
|
+
50.2%, 100% { transform: translateX(0px); }
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@keyframes visEditorHighIdle {
|
|
201
|
+
0%, 20.0% { opacity: 0; }
|
|
202
|
+
20.01%, 28.3% { opacity: 1; }
|
|
203
|
+
28.31%, 45.0% { opacity: 0; }
|
|
204
|
+
45.01%, 51.1% { opacity: 1; }
|
|
205
|
+
51.11%, 76.0% { opacity: 0; }
|
|
206
|
+
76.01%, 100% { opacity: 1; }
|
|
207
|
+
}
|
|
208
|
+
@keyframes visIdleCursor {
|
|
209
|
+
0%, 20.0% { opacity: 0; }
|
|
210
|
+
20.01%, 24.4% { opacity: 1; }
|
|
211
|
+
24.41%, 76.0% { opacity: 0; }
|
|
212
|
+
76.01%, 100% { opacity: 1; }
|
|
213
|
+
}
|
|
214
|
+
@keyframes visEditorWorking {
|
|
215
|
+
0%, 51.1% { opacity: 0; }
|
|
216
|
+
51.11%, 76.0% { opacity: 1; }
|
|
217
|
+
76.01%, 100% { opacity: 0; }
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@keyframes visTurnUser {
|
|
221
|
+
0%, 51.1% { opacity: 0; }
|
|
222
|
+
51.11%, 98.5% { opacity: 1; }
|
|
223
|
+
98.51%, 100% { opacity: 0; }
|
|
224
|
+
}
|
|
225
|
+
@keyframes visTurnThink {
|
|
226
|
+
0%, 53.5% { opacity: 0; }
|
|
227
|
+
55.5%, 98.5% { opacity: 1; }
|
|
228
|
+
98.51%, 100% { opacity: 0; }
|
|
229
|
+
}
|
|
230
|
+
@keyframes visTurnTool1 {
|
|
231
|
+
0%, 58.5% { opacity: 0; }
|
|
232
|
+
58.51%, 98.5% { opacity: 1; }
|
|
233
|
+
98.51%, 100% { opacity: 0; }
|
|
234
|
+
}
|
|
235
|
+
@keyframes visTool1Pending {
|
|
236
|
+
0%, 58.5% { opacity: 0; }
|
|
237
|
+
58.51%, 62.5% { opacity: 1; }
|
|
238
|
+
62.51%, 100% { opacity: 0; }
|
|
239
|
+
}
|
|
240
|
+
@keyframes visTurnTool2 {
|
|
241
|
+
0%, 64.0% { opacity: 0; }
|
|
242
|
+
64.01%, 98.5% { opacity: 1; }
|
|
243
|
+
98.51%, 100% { opacity: 0; }
|
|
244
|
+
}
|
|
245
|
+
@keyframes visTool2Pending {
|
|
246
|
+
0%, 64.0% { opacity: 0; }
|
|
247
|
+
64.01%, 68.5% { opacity: 1; }
|
|
248
|
+
68.51%, 100% { opacity: 0; }
|
|
249
|
+
}
|
|
250
|
+
@keyframes visTurnReply {
|
|
251
|
+
0%, 75.5% { opacity: 0; }
|
|
252
|
+
77.5%, 98.5% { opacity: 1; }
|
|
253
|
+
98.51%, 100% { opacity: 0; }
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* Footer 实时联动 */
|
|
257
|
+
@keyframes visFooterEmpty {
|
|
258
|
+
0%, 75.5% { opacity: 1; }
|
|
259
|
+
75.51%, 98.5% { opacity: 0; }
|
|
260
|
+
98.51%, 100% { opacity: 1; }
|
|
261
|
+
}
|
|
262
|
+
@keyframes visFooterUsed {
|
|
263
|
+
0%, 75.5% { opacity: 0; }
|
|
264
|
+
75.51%, 98.5% { opacity: 1; }
|
|
265
|
+
98.51%, 100% { opacity: 0; }
|
|
266
|
+
}
|
|
267
|
+
@keyframes visFooterNeon {
|
|
268
|
+
0%, 17.5% { opacity: 1; }
|
|
269
|
+
17.51%, 100% { opacity: 0; }
|
|
270
|
+
}
|
|
271
|
+
@keyframes visFooterMed {
|
|
272
|
+
0%, 17.5% { opacity: 0; }
|
|
273
|
+
17.51%, 20.0% { opacity: 1; }
|
|
274
|
+
20.01%, 100% { opacity: 0; }
|
|
275
|
+
}
|
|
276
|
+
@keyframes visFooterHigh {
|
|
277
|
+
0%, 20.0% { opacity: 0; }
|
|
278
|
+
20.01%, 100% { opacity: 1; }
|
|
279
|
+
}
|
|
280
|
+
@keyframes visStatusPi {
|
|
281
|
+
0%, 33.0% { opacity: 1; }
|
|
282
|
+
33.01%, 41.5% { opacity: 0; }
|
|
283
|
+
41.51%, 100% { opacity: 1; }
|
|
284
|
+
}
|
|
285
|
+
@keyframes visStatusNative {
|
|
286
|
+
0%, 33.0% { opacity: 0; }
|
|
287
|
+
33.01%, 37.5% { opacity: 1; }
|
|
288
|
+
37.51%, 100% { opacity: 0; }
|
|
289
|
+
}
|
|
290
|
+
@keyframes visStatusHybrid {
|
|
291
|
+
0%, 37.5% { opacity: 0; }
|
|
292
|
+
37.51%, 41.5% { opacity: 1; }
|
|
293
|
+
41.51%, 100% { opacity: 0; }
|
|
294
|
+
}
|
|
295
|
+
</style>
|
|
296
|
+
|
|
297
|
+
<clipPath id="termWindowClip">
|
|
298
|
+
<rect x="1" y="1" width="918" height="558" rx="8"/>
|
|
299
|
+
</clipPath>
|
|
300
|
+
|
|
301
|
+
<clipPath id="clipModelInput">
|
|
302
|
+
<rect class="clip-model-cmd" x="20" y="449" width="90" height="22"/>
|
|
303
|
+
</clipPath>
|
|
304
|
+
|
|
305
|
+
<clipPath id="clipModeInput">
|
|
306
|
+
<rect class="clip-mode-cmd" x="20" y="449" width="120" height="22"/>
|
|
307
|
+
</clipPath>
|
|
308
|
+
|
|
309
|
+
<clipPath id="clipPromptInput">
|
|
310
|
+
<rect class="clip-prompt-typing" x="20" y="449" width="470" height="22"/>
|
|
311
|
+
</clipPath>
|
|
312
|
+
</defs>
|
|
313
|
+
|
|
314
|
+
<!-- ==================== 纯净终端窗口容器 ==================== -->
|
|
315
|
+
<g clip-path="url(#termWindowClip)">
|
|
316
|
+
<!-- 真实终端深色底 (#18181E) -->
|
|
317
|
+
<rect x="1" y="1" width="918" height="558" fill="#18181E"/>
|
|
318
|
+
|
|
319
|
+
<!-- 极简终端系统标题栏 -->
|
|
320
|
+
<rect x="1" y="1" width="918" height="28" fill="#121217"/>
|
|
321
|
+
<line x1="1" y1="29" x2="919" y2="29" stroke="#262630" stroke-width="1"/>
|
|
322
|
+
<circle cx="20" cy="15" r="5" fill="#FF5F56" fill-opacity="0.85"/>
|
|
323
|
+
<circle cx="36" cy="15" r="5" fill="#FFBD2E" fill-opacity="0.85"/>
|
|
324
|
+
<circle cx="52" cy="15" r="5" fill="#27C93F" fill-opacity="0.85"/>
|
|
325
|
+
<text x="460" y="19" class="mono" font-size="12" fill="#7E888E" text-anchor="middle">π - auth-service</text>
|
|
326
|
+
|
|
327
|
+
<!-- ==================== 1. 真实 Pi 启动 Header (piLogoLines + keyHints) ==================== -->
|
|
328
|
+
<g id="startupHeader">
|
|
329
|
+
<!-- 4x4 半块像素矩阵精确复刻 piLogoLines() (coral #E48A7A, blue #4F8EB3, yellow #EAB65D) -->
|
|
330
|
+
<g transform="translate(20, 41)">
|
|
331
|
+
<!-- Row 0: coral coral coral . -->
|
|
332
|
+
<rect x="0" y="0" width="21" height="7" fill="#E48A7A"/>
|
|
333
|
+
<!-- Row 1: blue . coral . -->
|
|
334
|
+
<rect x="0" y="7" width="7" height="7" fill="#4F8EB3"/>
|
|
335
|
+
<rect x="14" y="7" width="7" height="7" fill="#E48A7A"/>
|
|
336
|
+
<!-- Row 2: blue blue . yellow -->
|
|
337
|
+
<rect x="0" y="14" width="14" height="7" fill="#4F8EB3"/>
|
|
338
|
+
<rect x="21" y="14" width="7" height="7" fill="#EAB65D"/>
|
|
339
|
+
<!-- Row 3: blue . . yellow -->
|
|
340
|
+
<rect x="0" y="21" width="7" height="7" fill="#4F8EB3"/>
|
|
341
|
+
<rect x="21" y="21" width="7" height="7" fill="#EAB65D"/>
|
|
342
|
+
</g>
|
|
343
|
+
|
|
344
|
+
<!-- Header Line 1: v1.6.0 -->
|
|
345
|
+
<text x="56" y="52" class="mono" font-size="12.5" fill="#7E888E">v1.6.0</text>
|
|
346
|
+
|
|
347
|
+
<!-- Header Line 2: compactInstructions() -->
|
|
348
|
+
<text x="56" y="68" class="mono" font-size="12.5">
|
|
349
|
+
<tspan fill="#7E888E">esc</tspan><tspan fill="#9DA5A9"> interrupt · </tspan>
|
|
350
|
+
<tspan fill="#7E888E">ctrl+c/ctrl+d</tspan><tspan fill="#9DA5A9"> clear/exit · </tspan>
|
|
351
|
+
<tspan fill="#7E888E">/</tspan><tspan fill="#9DA5A9"> commands · </tspan>
|
|
352
|
+
<tspan fill="#7E888E">!</tspan><tspan fill="#9DA5A9"> bash · </tspan>
|
|
353
|
+
<tspan fill="#7E888E">ctrl+o</tspan><tspan fill="#9DA5A9"> more</tspan>
|
|
354
|
+
</text>
|
|
355
|
+
|
|
356
|
+
<!-- Header Line 3: compactOnboarding() -->
|
|
357
|
+
<text x="20" y="88" class="mono" font-size="12.5" fill="#7E888E">Press ctrl+o to show full startup help and loaded resources.</text>
|
|
358
|
+
</g>
|
|
359
|
+
|
|
360
|
+
<!-- ==================== 2. 切换 Thinking 档位时的瞬时状态提示 ==================== -->
|
|
361
|
+
<g class="scene-think-notice">
|
|
362
|
+
<text x="20" y="424" class="mono" font-size="12.5" fill="#9DA5A9">Thinking level: high</text>
|
|
363
|
+
</g>
|
|
364
|
+
|
|
365
|
+
<!-- ==================== 3. 第三幕:真实 Pi 聊天视口内容 ==================== -->
|
|
366
|
+
<!-- 3.1 UserMessageComponent (通栏直角 #213B49,上下 1 行 padding,左缩进 1 列,无提示符) -->
|
|
367
|
+
<g class="scene-turn-user">
|
|
368
|
+
<rect x="12" y="104" width="896" height="44" fill="#213B49"/>
|
|
369
|
+
<text x="20" y="131" class="mono" font-size="13" fill="#DEE0E1">修复 src/auth/session.ts 令牌过期未自动刷新的问题</text>
|
|
370
|
+
</g>
|
|
371
|
+
|
|
372
|
+
<!-- 3.2 AssistantMessageComponent Thinking Block (无背景无边框,纯 thinkingText #96A0A4 斜体) -->
|
|
373
|
+
<g class="scene-turn-think">
|
|
374
|
+
<text x="20" y="172" class="mono" font-size="12.5" font-style="italic" fill="#96A0A4">检查 session.ts 中 ensureValidToken 的过期分支,改为调用 refreshSession 自动续期并复用并发刷新锁。</text>
|
|
375
|
+
</g>
|
|
376
|
+
|
|
377
|
+
<!-- 3.3 ToolExecutionComponent: read (通栏直角 Box: toolPendingBg #34383A -> toolSuccessBg #254131) -->
|
|
378
|
+
<g class="scene-turn-tool1">
|
|
379
|
+
<rect x="12" y="188" width="896" height="42" fill="#254131"/>
|
|
380
|
+
<rect class="tool1-pending" x="12" y="188" width="896" height="42" fill="#34383A"/>
|
|
381
|
+
<text x="20" y="214" class="mono" font-size="12.5">
|
|
382
|
+
<tspan fill="#DEE0E1" font-weight="700">read</tspan>
|
|
383
|
+
<tspan fill="#A798D7"> src/auth/session.ts</tspan><tspan fill="#CD9A22">:18-32</tspan>
|
|
384
|
+
</text>
|
|
385
|
+
</g>
|
|
386
|
+
|
|
387
|
+
<!-- 3.4 ToolExecutionComponent: edit (通栏直角 Box + 真实 renderDiff 行号与词级反色高亮) -->
|
|
388
|
+
<g class="scene-turn-tool2">
|
|
389
|
+
<rect x="12" y="242" width="896" height="134" fill="#254131"/>
|
|
390
|
+
<rect class="tool2-pending" x="12" y="242" width="896" height="134" fill="#34383A"/>
|
|
391
|
+
|
|
392
|
+
<text x="20" y="267" class="mono" font-size="12.5">
|
|
393
|
+
<tspan fill="#DEE0E1" font-weight="700">edit</tspan>
|
|
394
|
+
<tspan fill="#A798D7"> src/auth/session.ts</tspan>
|
|
395
|
+
</text>
|
|
396
|
+
|
|
397
|
+
<!-- renderDiff: context / -removed / +added / context -->
|
|
398
|
+
<text x="20" y="302" class="mono" font-size="12.5" fill="#9DA5A9" xml:space="preserve"> 23 export async function ensureValidToken(token: SessionToken) {</text>
|
|
399
|
+
<text x="20" y="321" class="mono" font-size="12.5" fill="#EA7F81" xml:space="preserve">-24 if (token.isExpired()) <tspan fill="#FF9E9F" font-weight="700">throw new SessionExpiredError()</tspan>;</text>
|
|
400
|
+
<text x="20" y="340" class="mono" font-size="12.5" fill="#68B78D" xml:space="preserve">+24 if (token.isExpired()) <tspan fill="#85DBA8" font-weight="700">return await refreshSession(token)</tspan>;</text>
|
|
401
|
+
<text x="20" y="359" class="mono" font-size="12.5" fill="#9DA5A9" xml:space="preserve"> 25 return token.accessToken;</text>
|
|
402
|
+
</g>
|
|
403
|
+
|
|
404
|
+
<!-- 3.5 AssistantMessageComponent Text Reply (无背景 Markdown,mdCode #A798D7 行内代码染色) -->
|
|
405
|
+
<g class="scene-turn-reply">
|
|
406
|
+
<text x="20" y="401" class="mono" font-size="13" fill="#DEE0E1">
|
|
407
|
+
<tspan>已在 </tspan>
|
|
408
|
+
<tspan fill="#A798D7">src/auth/session.ts</tspan>
|
|
409
|
+
<tspan> 中接入过期自动续期逻辑,12 项会话单测已全部通过。</tspan>
|
|
410
|
+
</text>
|
|
411
|
+
<text x="20" y="421" class="mono" font-size="12.5" fill="#DEE0E1">
|
|
412
|
+
<tspan fill="#A798D7">- </tspan>
|
|
413
|
+
<tspan>过期令牌自动经 </tspan>
|
|
414
|
+
<tspan fill="#A798D7">refreshSession(token)</tspan>
|
|
415
|
+
<tspan> 刷新并返回最新凭证</tspan>
|
|
416
|
+
</text>
|
|
417
|
+
</g>
|
|
418
|
+
|
|
419
|
+
<!-- ==================== 4. 第一幕:真实 ModelSelectorComponent (/model) ==================== -->
|
|
420
|
+
<g class="scene-model-sel">
|
|
421
|
+
<rect x="12" y="206" width="896" height="278" fill="#18181E"/>
|
|
422
|
+
<!-- Top DynamicBorder (#5FA8CC) -->
|
|
423
|
+
<line x1="12" y1="214" x2="908" y2="214" stroke="#5FA8CC" stroke-width="1.3"/>
|
|
424
|
+
|
|
425
|
+
<text x="12" y="240" class="mono" font-size="12.5" fill="#CD9A22">Only showing models from configured providers. Use /login to add providers.</text>
|
|
426
|
+
|
|
427
|
+
<!-- Search Input -->
|
|
428
|
+
<text x="12" y="268" class="mono" font-size="12.5" fill="#DEE0E1">
|
|
429
|
+
<tspan fill="#9DA5A9">> </tspan><tspan>antigravity</tspan>
|
|
430
|
+
</text>
|
|
431
|
+
<rect x="110" y="255" width="7.5" height="15" fill="#DEE0E1"/>
|
|
432
|
+
|
|
433
|
+
<!-- 列表状态 A (光标在第 0 行 gemini-4-neon,矢量 → 与 ✓ 绝对列对齐) -->
|
|
434
|
+
<g class="msel-row-0">
|
|
435
|
+
<path d="M 13 294 H 21 M 18 291 L 21.5 294 L 18 297" stroke="#A798D7" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
436
|
+
<path d="M 27 294 L 30 297 L 35.5 290.5" stroke="#A798D7" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
437
|
+
<text x="43" y="298" class="mono" font-size="12.5"><tspan fill="#A798D7">gemini-4-neon</tspan><tspan fill="#9DA5A9"> (Gemini 4 Neon) [antigravity]</tspan></text>
|
|
438
|
+
<text x="43" y="318" class="mono" font-size="12.5"><tspan fill="#DEE0E1">gemini-4-carbon</tspan><tspan fill="#9DA5A9"> (Gemini 4 Carbon) [antigravity] · default</tspan></text>
|
|
439
|
+
<text x="43" y="338" class="mono" font-size="12.5"><tspan fill="#DEE0E1">claude-sonnet-5-5</tspan><tspan fill="#9DA5A9"> (Claude Sonnet 5.5) [antigravity]</tspan></text>
|
|
440
|
+
<text x="43" y="358" class="mono" font-size="12.5"><tspan fill="#DEE0E1">claude-opus-5-5</tspan><tspan fill="#9DA5A9"> (Claude Opus 5.5) [antigravity]</tspan></text>
|
|
441
|
+
<text x="43" y="378" class="mono" font-size="12.5"><tspan fill="#DEE0E1">gemini-3.8-flash</tspan><tspan fill="#9DA5A9"> (Gemini 3.8 Flash) [antigravity]</tspan></text>
|
|
442
|
+
<text x="27" y="414" class="mono" font-size="12.5" fill="#9DA5A9">Model Name: Gemini 4 Neon</text>
|
|
443
|
+
</g>
|
|
444
|
+
|
|
445
|
+
<!-- 列表状态 B (光标下移选中第 1 行 gemini-4-carbon) -->
|
|
446
|
+
<g class="msel-row-1">
|
|
447
|
+
<path d="M 27 294 L 30 297 L 35.5 290.5" stroke="#A798D7" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
448
|
+
<path d="M 13 314 H 21 M 18 311 L 21.5 314 L 18 317" stroke="#A798D7" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
449
|
+
<text x="43" y="298" class="mono" font-size="12.5"><tspan fill="#DEE0E1">gemini-4-neon</tspan><tspan fill="#9DA5A9"> (Gemini 4 Neon) [antigravity]</tspan></text>
|
|
450
|
+
<text x="43" y="318" class="mono" font-size="12.5"><tspan fill="#A798D7">gemini-4-carbon</tspan><tspan fill="#9DA5A9"> (Gemini 4 Carbon) [antigravity] · default</tspan></text>
|
|
451
|
+
<text x="43" y="338" class="mono" font-size="12.5"><tspan fill="#DEE0E1">claude-sonnet-5-5</tspan><tspan fill="#9DA5A9"> (Claude Sonnet 5.5) [antigravity]</tspan></text>
|
|
452
|
+
<text x="43" y="358" class="mono" font-size="12.5"><tspan fill="#DEE0E1">claude-opus-5-5</tspan><tspan fill="#9DA5A9"> (Claude Opus 5.5) [antigravity]</tspan></text>
|
|
453
|
+
<text x="43" y="378" class="mono" font-size="12.5"><tspan fill="#DEE0E1">gemini-3.8-flash</tspan><tspan fill="#9DA5A9"> (Gemini 3.8 Flash) [antigravity]</tspan></text>
|
|
454
|
+
<text x="27" y="414" class="mono" font-size="12.5" fill="#9DA5A9">Model Name: Gemini 4 Carbon</text>
|
|
455
|
+
</g>
|
|
456
|
+
|
|
457
|
+
<text x="27" y="448" class="mono" font-size="12.5" fill="#7E888E">enter to select · ctrl+s to set as default · esc to cancel</text>
|
|
458
|
+
|
|
459
|
+
<!-- Bottom DynamicBorder (#5FA8CC) -->
|
|
460
|
+
<line x1="12" y1="476" x2="908" y2="476" stroke="#5FA8CC" stroke-width="1.3"/>
|
|
461
|
+
</g>
|
|
462
|
+
|
|
463
|
+
<!-- ==================== 5. 第二幕:真实 ExtensionSelectorComponent (/agy mode) ==================== -->
|
|
464
|
+
<g class="scene-mode-sel">
|
|
465
|
+
<rect x="12" y="274" width="896" height="210" fill="#18181E"/>
|
|
466
|
+
<!-- Top DynamicBorder (#5FA8CC) -->
|
|
467
|
+
<line x1="12" y1="282" x2="908" y2="282" stroke="#5FA8CC" stroke-width="1.3"/>
|
|
468
|
+
|
|
469
|
+
<text x="20" y="312" class="mono" font-size="13" font-weight="700" fill="#A798D7">切换工具模式(当前:pi-tools)</text>
|
|
470
|
+
|
|
471
|
+
<!-- 选项高亮态 0: pi-tools -->
|
|
472
|
+
<g class="asel-opt-0">
|
|
473
|
+
<path d="M 21 342 H 29 M 26 339 L 29.5 342 L 26 345" stroke="#A798D7" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
474
|
+
<text x="36" y="346" class="mono" font-size="12.5" fill="#A798D7">pi-tools — 通过 MCP 挂载并使用 Pi 工具集与审批流(默认)</text>
|
|
475
|
+
<text x="36" y="368" class="mono" font-size="12.5" fill="#DEE0E1">agy-tools — 使用 AGY 原生工具、Subagents 与沙箱能力</text>
|
|
476
|
+
<text x="36" y="390" class="mono" font-size="12.5" fill="#DEE0E1">hybrid — AGY 原生工具 + Pi 专属第三方扩展工具</text>
|
|
477
|
+
</g>
|
|
478
|
+
|
|
479
|
+
<!-- 选项高亮态 1: agy-tools -->
|
|
480
|
+
<g class="asel-opt-1">
|
|
481
|
+
<path d="M 21 364 H 29 M 26 361 L 29.5 364 L 26 367" stroke="#A798D7" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
482
|
+
<text x="36" y="346" class="mono" font-size="12.5" fill="#DEE0E1">pi-tools — 通过 MCP 挂载并使用 Pi 工具集与审批流(默认)</text>
|
|
483
|
+
<text x="36" y="368" class="mono" font-size="12.5" fill="#A798D7">agy-tools — 使用 AGY 原生工具、Subagents 与沙箱能力</text>
|
|
484
|
+
<text x="36" y="390" class="mono" font-size="12.5" fill="#DEE0E1">hybrid — AGY 原生工具 + Pi 专属第三方扩展工具</text>
|
|
485
|
+
</g>
|
|
486
|
+
|
|
487
|
+
<!-- 选项高亮态 2: hybrid -->
|
|
488
|
+
<g class="asel-opt-2">
|
|
489
|
+
<path d="M 21 386 H 29 M 26 383 L 29.5 386 L 26 389" stroke="#A798D7" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
490
|
+
<text x="36" y="346" class="mono" font-size="12.5" fill="#DEE0E1">pi-tools — 通过 MCP 挂载并使用 Pi 工具集与审批流(默认)</text>
|
|
491
|
+
<text x="36" y="368" class="mono" font-size="12.5" fill="#DEE0E1">agy-tools — 使用 AGY 原生工具、Subagents 与沙箱能力</text>
|
|
492
|
+
<text x="36" y="390" class="mono" font-size="12.5" fill="#A798D7">hybrid — AGY 原生工具 + Pi 专属第三方扩展工具</text>
|
|
493
|
+
</g>
|
|
494
|
+
|
|
495
|
+
<g transform="translate(20, 428)">
|
|
496
|
+
<path d="M 3 -9 V 0 M 0.5 -6.5 L 3 -9.5 L 5.5 -6.5 M 11 -9.5 V -0.5 M 8.5 -3 L 11 0 L 13.5 -3" stroke="#7E888E" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
497
|
+
<text x="20" y="0" class="mono" font-size="12.5">
|
|
498
|
+
<tspan fill="#9DA5A9">navigate </tspan>
|
|
499
|
+
<tspan fill="#7E888E">enter</tspan><tspan fill="#9DA5A9"> select </tspan>
|
|
500
|
+
<tspan fill="#7E888E">esc</tspan><tspan fill="#9DA5A9"> cancel</tspan>
|
|
501
|
+
</text>
|
|
502
|
+
</g>
|
|
503
|
+
|
|
504
|
+
<!-- Bottom DynamicBorder (#5FA8CC) -->
|
|
505
|
+
<line x1="12" y1="458" x2="908" y2="458" stroke="#5FA8CC" stroke-width="1.3"/>
|
|
506
|
+
</g>
|
|
507
|
+
|
|
508
|
+
<!-- ==================== 6. 真实 CustomEditor 边框与输入行 ==================== -->
|
|
509
|
+
<!-- 6.1 thinkingMedium 边框 (#6185CC) -->
|
|
510
|
+
<g class="editor-med">
|
|
511
|
+
<line x1="12" y1="442" x2="908" y2="442" stroke="#6185CC" stroke-width="1.3"/>
|
|
512
|
+
<line x1="12" y1="480" x2="908" y2="480" stroke="#6185CC" stroke-width="1.3"/>
|
|
513
|
+
</g>
|
|
514
|
+
|
|
515
|
+
<!-- 6.2 thinkingHigh 空闲边框 (#9776E5) -->
|
|
516
|
+
<g class="editor-high-idle">
|
|
517
|
+
<line x1="12" y1="442" x2="908" y2="442" stroke="#9776E5" stroke-width="1.3"/>
|
|
518
|
+
<line x1="12" y1="480" x2="908" y2="480" stroke="#9776E5" stroke-width="1.3"/>
|
|
519
|
+
</g>
|
|
520
|
+
|
|
521
|
+
<!-- 6.3 thinkingHigh 运行态嵌入边框: ── ⠹ Working ────────────────── -->
|
|
522
|
+
<g class="editor-working">
|
|
523
|
+
<line x1="12" y1="442" x2="32" y2="442" stroke="#9776E5" stroke-width="1.3"/>
|
|
524
|
+
<!-- 6 点矢量 Braille 旋转点阵 (2x3 矩阵顺时针环绕: 0左上 1右上 2右中 3右下 4左下 5左中) -->
|
|
525
|
+
<g transform="translate(39, 436)" fill="#9776E5">
|
|
526
|
+
<rect class="bdot-0" x="0" y="0" width="2.1" height="2.1" rx="0.6"/>
|
|
527
|
+
<rect class="bdot-1" x="4.2" y="0" width="2.1" height="2.1" rx="0.6"/>
|
|
528
|
+
<rect class="bdot-2" x="4.2" y="4.2" width="2.1" height="2.1" rx="0.6"/>
|
|
529
|
+
<rect class="bdot-3" x="4.2" y="8.4" width="2.1" height="2.1" rx="0.6"/>
|
|
530
|
+
<rect class="bdot-4" x="0" y="8.4" width="2.1" height="2.1" rx="0.6"/>
|
|
531
|
+
<rect class="bdot-5" x="0" y="4.2" width="2.1" height="2.1" rx="0.6"/>
|
|
532
|
+
</g>
|
|
533
|
+
<text x="52" y="446" class="mono" font-size="12.5" fill="#9776E5">Working</text>
|
|
534
|
+
<line x1="113" y1="442" x2="908" y2="442" stroke="#9776E5" stroke-width="1.3"/>
|
|
535
|
+
<line x1="12" y1="480" x2="908" y2="480" stroke="#9776E5" stroke-width="1.3"/>
|
|
536
|
+
</g>
|
|
537
|
+
|
|
538
|
+
<!-- 编辑器内各阶段输入文本 -->
|
|
539
|
+
<g class="scene-model-cmd" clip-path="url(#clipModelInput)">
|
|
540
|
+
<text x="20" y="465" class="mono" font-size="13" fill="#DEE0E1">/model</text>
|
|
541
|
+
</g>
|
|
542
|
+
|
|
543
|
+
<g class="scene-mode-cmd" clip-path="url(#clipModeInput)">
|
|
544
|
+
<text x="20" y="465" class="mono" font-size="13" fill="#DEE0E1">/agy mode</text>
|
|
545
|
+
</g>
|
|
546
|
+
|
|
547
|
+
<g class="scene-prompt-typing" clip-path="url(#clipPromptInput)">
|
|
548
|
+
<text x="20" y="465" class="mono" font-size="13" fill="#DEE0E1">修复 src/auth/session.ts 令牌过期未自动刷新的问题</text>
|
|
549
|
+
</g>
|
|
550
|
+
|
|
551
|
+
<g class="idle-cursor-wrap">
|
|
552
|
+
<rect class="cursor-blink" x="20" y="452" width="8" height="16" fill="#DEE0E1"/>
|
|
553
|
+
</g>
|
|
554
|
+
|
|
555
|
+
<!-- ==================== 7. 真实 3 行 FooterComponent ==================== -->
|
|
556
|
+
<g id="piFooter">
|
|
557
|
+
<!-- Line 1: pwd (branch) -->
|
|
558
|
+
<text x="12" y="503" class="mono" font-size="12" fill="#7E888E">~/workspace/auth-service (main)</text>
|
|
559
|
+
|
|
560
|
+
<!-- Line 2 Left: token / cache / cost (sub) / context% -->
|
|
561
|
+
<text class="mono footer-empty" x="12" y="522" font-size="12" fill="#7E888E">0.0%/200k (auto)</text>
|
|
562
|
+
<text class="mono footer-used" x="12" y="522" font-size="12" fill="#7E888E">↑14k ↓1.1k R13k CH93.8% $0.000 (sub) 7.1%/200k (auto)</text>
|
|
563
|
+
|
|
564
|
+
<!-- Line 2 Right: (provider) model • thinkingLevel -->
|
|
565
|
+
<text class="mono footer-m-neon" x="908" y="522" font-size="12" fill="#7E888E" text-anchor="end">(antigravity) gemini-4-neon • medium</text>
|
|
566
|
+
<text class="mono footer-m-med" x="908" y="522" font-size="12" fill="#7E888E" text-anchor="end">(antigravity) gemini-4-carbon • medium</text>
|
|
567
|
+
<text class="mono footer-m-high" x="908" y="522" font-size="12" fill="#7E888E" text-anchor="end">(antigravity) gemini-4-carbon • high</text>
|
|
568
|
+
|
|
569
|
+
<!-- Line 3: Extension Status (updateAntigravityStatusBar) -->
|
|
570
|
+
<text class="mono status-pi" x="12" y="541" font-size="12" fill="#DEE0E1">AGY:pi-tools</text>
|
|
571
|
+
<text class="mono status-native" x="12" y="541" font-size="12" fill="#DEE0E1">AGY:native(accept-edits)</text>
|
|
572
|
+
<text class="mono status-hybrid" x="12" y="541" font-size="12" fill="#DEE0E1">AGY:hybrid(default)</text>
|
|
573
|
+
</g>
|
|
574
|
+
</g>
|
|
575
|
+
|
|
576
|
+
<!-- 1px 终端窗口外框描边 -->
|
|
577
|
+
<rect x="1" y="1" width="918" height="558" rx="8" fill="none" stroke="#2B2E3B" stroke-width="1"/>
|
|
578
|
+
</svg>
|