dsh-ssh-tui 0.3.3 → 0.3.4
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.en.md +13 -8
- package/README.md +9 -6
- package/lib/tui.js +474 -51
- package/lib/tui.js.map +1 -1
- package/lib/types/tui.d.ts +62 -1
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -189,7 +189,9 @@ The plugin runs on Linux, macOS, and Windows (Node ≥ 22.19):
|
|
|
189
189
|
Type `/` to see slash-command suggestions — the panel merges the TUI's own
|
|
190
190
|
commands (`/find`, `/model`, `/help`, ...) with every command the harness
|
|
191
191
|
registers (`/goal`, `/plan`, `/compact`, `/permission`, `/feedback`, ...).
|
|
192
|
-
`
|
|
192
|
+
`/compact` shows a spinning 「压缩上下文」 card and footer until it
|
|
193
|
+
finishes, then the tokens recovered. `Tab` completes, `Enter` runs.
|
|
194
|
+
`/help` lists everything.
|
|
193
195
|
|
|
194
196
|
`/model` lists models for the **current** provider first. On SuperGrok that
|
|
195
197
|
is `grok-4.6` / `grok-4.5` plus reasoning effort (`xhigh` on 4.6). Switching
|
|
@@ -234,14 +236,17 @@ Interrupted streaming output keeps the already-generated prefix and is marked
|
|
|
234
236
|
system messages. Harness slash commands that accept image attachments are
|
|
235
237
|
labelled `(images ok)` in the command list and completion hints.
|
|
236
238
|
|
|
237
|
-
`/usage` (alias `/quota`)
|
|
238
|
-
source and keeps the two billing models distinct:
|
|
239
|
+
`/usage` (alias `/quota`) follows the **current** provider:
|
|
239
240
|
|
|
240
|
-
- **
|
|
241
|
-
|
|
242
|
-
- **OpenCode Zen** is metered
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
- **SuperGrok** reads `GET cli-chat-proxy.grok.com/v1/billing` (weekly remaining %);
|
|
242
|
+
- **OpenCode Go** reads the official `/v1/usage` windows (5-hour / week / month);
|
|
243
|
+
- **OpenCode Zen** is metered — the TUI points at `https://opencode.ai/zen`.
|
|
244
|
+
|
|
245
|
+
Quota is fetched at startup. Recheck cadence follows the tightest window:
|
|
246
|
+
every 10 turns for a 5-hour cap (every 4 when near a threshold), every 50
|
|
247
|
+
for weekly (every 10 when near), every 80 for monthly (every 20 when near).
|
|
248
|
+
Crossing 50% / 25% / 10% / 5% remaining posts a ⚠ planning reminder. The
|
|
249
|
+
footer shows the tightest window.
|
|
245
250
|
|
|
246
251
|
The startup screen shows the official DeepSeek whale logo (rendered from the
|
|
247
252
|
harness favicon) in the DeepSeek brand color, with the wordmark below it. The
|
package/README.md
CHANGED
|
@@ -165,7 +165,9 @@ dsh --profile tui --no-color
|
|
|
165
165
|
|
|
166
166
|
斜杠命令:`/help`、`/find`、`/model`、`/submodel`、`/subeffort`、`/mode`、`/resume`、
|
|
167
167
|
`/status`、`/subagents`、`/usage`(`/quota` 同义)、`/setup`、`/clear`,
|
|
168
|
-
以及 harness 自带命令(`/goal`、`/plan`、`/compact`
|
|
168
|
+
以及 harness 自带命令(`/goal`、`/plan`、`/compact` 等)。`/compact` 进行中会显示
|
|
169
|
+
「压缩上下文」卡片和底栏转圈,结束时写出回收的 token 数。模型请求失败会显示重试
|
|
170
|
+
进度;会话标题由模型生成后写到窗口标题。harness 命令若声明
|
|
169
171
|
支持图片附件,会在命令列表和补全提示中标注“可附图”。
|
|
170
172
|
|
|
171
173
|
`/model` 默认列出**当前提供商**的模型。已经在 SuperGrok 时,直接选
|
|
@@ -200,12 +202,13 @@ SuperGrok / X Premium 走本机 OAuth,不需要填 Key。`/status` 和底栏
|
|
|
200
202
|
`提问用户` 卡片。`/goal` 是折叠的 `目标` 卡片。`/find 思考 padAnsi` 或 `Alt+1..4`
|
|
201
203
|
可跳到对应类别的最新卡片。
|
|
202
204
|
|
|
203
|
-
`/usage`
|
|
205
|
+
`/usage`(`/quota` 同义)按**当前提供商**查额度:
|
|
204
206
|
|
|
205
|
-
- **
|
|
206
|
-
|
|
207
|
-
- **OpenCode Zen
|
|
208
|
-
|
|
207
|
+
- **SuperGrok**:`GET cli-chat-proxy.grok.com/v1/billing`,显示本周剩余%;
|
|
208
|
+
- **OpenCode Go**:官方 `/v1/usage`,滚动 5 小时 / 本周 / 本月剩余%;
|
|
209
|
+
- **OpenCode Zen**:按量计费、没有固定额度,提示到 `https://opencode.ai/zen`。
|
|
210
|
+
|
|
211
|
+
启动时查一次。之后按最紧窗口调查询:5 小时额度每 10 轮(接近阈值改 4 轮),周额度每 50 轮(接近改 10 轮),月额度每 80 轮(接近改 20 轮)。剩余跨过 50% / 25% / 10% / 5% 时用 ⚠ 提示合理规划。底栏显示最紧窗口的剩余百分比。
|
|
209
212
|
|
|
210
213
|
## 配置
|
|
211
214
|
|