deepseeker-code 1.0.54 → 1.0.55
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 +20 -0
- package/dist/cli.mjs +1493 -581
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -217,6 +217,26 @@ settings.json 完整示例(代码真正消费的字段):
|
|
|
217
217
|
}
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
+
状态栏脚本示例(费用 + 缓存命中率 + 上下文水位拼一行,可复制即用)——stdin 收到的 JSON 含
|
|
221
|
+
`last_run_cost_yuan` / `session_cost_yuan` / `last_run_cache_hit_rate` / `context.fill_rate`
|
|
222
|
+
(成本信任链字段,尚无数据时自动省略该键):
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
#!/usr/bin/env bash
|
|
226
|
+
# ~/.deepseeker-code/statusline.sh — 深度适配版:💰 会话 ¥x.xx · 命中 71% · 水位 42%
|
|
227
|
+
read -r ctx
|
|
228
|
+
node -e '
|
|
229
|
+
const c = JSON.parse(process.argv[1]);
|
|
230
|
+
const p = [];
|
|
231
|
+
if (typeof c.session_cost_yuan === "number") p.push(`💰 ¥${c.session_cost_yuan.toFixed(3)}`);
|
|
232
|
+
if (typeof c.last_run_cache_hit_rate === "number") p.push(`命中 ${Math.round(c.last_run_cache_hit_rate * 100)}%`);
|
|
233
|
+
if (c.context) p.push(`水位 ${Math.round(c.context.fill_rate * 100)}%`);
|
|
234
|
+
console.log(p.join(" · "));
|
|
235
|
+
' "$ctx"
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
> 水位为估算口径(与自动压缩判定同公式);钱的数字来自 usage 真实回传按官方价折算,无价模型不显钱。
|
|
239
|
+
|
|
220
240
|
MCP 配置(`mcp.json`,独立文件):
|
|
221
241
|
|
|
222
242
|
```jsonc
|