@vibeapi/api-helper 0.0.129 → 0.0.131

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.
@@ -160,6 +160,9 @@
160
160
  "other_addresses": "其他接入地址",
161
161
  "other_addresses_found": "这些地址能用:{{urls}}。运行 {{cli}} base auto 换过去,用 {{product}} 配置过的工具会一起改",
162
162
  "other_addresses_none": "其他接入地址也都连不上,请检查网络或代理",
163
+ "balance": "余额",
164
+ "balance_tool": "余额({{tool}} 专属 Key)",
165
+ "check_balance": "查询余额",
163
166
  "check_client_config": "正在检查网关模型配置...",
164
167
  "client_config": "网关模型配置",
165
168
  "client_config_revision": "修订 {{revision}}",
@@ -177,7 +180,12 @@
177
180
  "tools": "工具",
178
181
  "config_loaded": "已应用配置",
179
182
  "config_not_loaded": "未应用配置",
180
- "tool_key_label": "{{tool}} 专属 Key"
183
+ "tool_key_label": "{{tool}} 专属 Key",
184
+ "balance": "余额",
185
+ "balance_account_low": "{{amount}}(令牌额度),但账户余额不够付这么多,到控制台充值",
186
+ "balance_token_limited": "{{amount}}(令牌额度)",
187
+ "balance_empty": "{{amount}},已用完,到控制台充值后才能继续用",
188
+ "balance_token_empty": "{{amount}},令牌额度已用完,到控制台调高这个令牌的额度"
181
189
  },
182
190
  "messages": {
183
191
  "env_vars_cleared": "检测到 shell 环境变量 {{vars}} 并已自动清除(它们会覆盖 {{product}} 写入的配置)。如已写入 shell 配置文件,请重开终端生效。",
@@ -268,7 +276,23 @@
268
276
  "min": "最小值",
269
277
  "max": "最大值",
270
278
  "errors": "错误",
271
- "missing_api_key": "还没有保存 API Key"
279
+ "missing_api_key": "还没有保存 API Key",
280
+ "stream_running": "正在用 {{model}} 发一条流式请求…",
281
+ "stream_title": "流式请求",
282
+ "stream_model": "模型",
283
+ "stream_first_token": "首字时间",
284
+ "stream_total": "总耗时",
285
+ "stream_ok": "流正常结束",
286
+ "stream_hint": "加 --stream 再发一条真实的流式请求,看首字时间和流能否正常结束(消耗极少额度):{{cli}} bench --stream",
287
+ "stream_fail": {
288
+ "http": "请求被拒绝",
289
+ "stream_error": "流里返回了错误",
290
+ "incomplete": "流中途断了,没有收到结束标记(回答会被截断)",
291
+ "no_text": "流结束了,但没有返回任何文字",
292
+ "timeout": "60 秒内没有结束",
293
+ "network": "连接失败",
294
+ "no_model": "这把 Key 拉不到模型列表,用 --model <模型> 指定一个:{{cli}} bench --stream --model <模型>"
295
+ }
272
296
  },
273
297
  "update": {
274
298
  "checking": "正在检查更新...",
@@ -328,7 +352,7 @@
328
352
  "desktop_registry_invalid": "--desktop-registry 只接受 on 或 off,收到的是 {{value}}",
329
353
  "install_confirm": "{{tools}} 还没装,现在从国内镜像装上吗?",
330
354
  "install_all_hint": "也可以运行 {{cli}} setup --key <你的 Key> --install 一次装好",
331
- "still_missing": "{{tools}} 还没装好,按上方的命令安装后就能用",
355
+ "still_missing": "{{tools}} 还没装,没有写它们的配置;按上方的命令装好后运行 {{commands}}",
332
356
  "path_reload": "在当前窗口运行 exec \"$SHELL\" -l(或新开一个终端)后就能用 {{commands}}",
333
357
  "path_added": "{{tool}} 已装在 {{dir}},但这个目录不在 PATH 里,已加入用户 PATH",
334
358
  "path_reload_windows": "新开一个终端后就能用 {{commands}}",
@@ -460,6 +484,51 @@
460
484
  "backup": "备份与还原记录在 {{dir}},还原用 {{cli}} codex sessions --undo <这个目录>",
461
485
  "undone": "已还原 {{files}} 个会话文件、{{rows}} 条数据库记录"
462
486
  },
487
+ "plan": {
488
+ "title": "将要修改(改前自动备份):",
489
+ "confirm": "确认写入?",
490
+ "cancelled": "已取消,没有修改任何文件",
491
+ "install_first": "{{tool}} 还没装:先安装,装好再写配置"
492
+ },
493
+ "sessions": {
494
+ "unknown_tool": "不认识的工具:{{tool}}(能看会话的工具:{{tools}})",
495
+ "unknown_tool_hint": "去掉 --tool 看全部,或运行 {{cli}} sessions --tool codex",
496
+ "id_too_short": "会话 ID「{{id}}」太短,至少写前 4 位",
497
+ "list_hint": "运行 {{cli}} sessions 查看会话和 ID",
498
+ "not_found": "本机没有 ID 以「{{id}}」开头的会话",
499
+ "ambiguous": "有多个会话的 ID 以「{{id}}」开头:{{ids}}",
500
+ "ambiguous_hint": "多写几位 ID 再试",
501
+ "bad_limit": "数量不对:{{value}}",
502
+ "bad_limit_hint": "写一个正整数,如 {{cli}} sessions --limit 50;全部列出用 --all",
503
+ "none": "本机没有找到符合条件的会话",
504
+ "list_footer": "共列出 {{count}} 个。看详情:{{cli}} sessions show <ID>;续聊:{{cli}} sessions resume <ID>;导出:{{cli}} sessions export <ID> -o <目录>",
505
+ "more_messages": "还有 {{more}} 条消息,全部导出:{{cli}} sessions export {{id}} -o <目录>",
506
+ "no_resume": "没有续聊命令,请在应用里打开",
507
+ "cannot_resume": "{{tool}} 的会话没有续聊命令",
508
+ "cannot_resume_hint": "请在 {{tool}} 应用里打开这个会话",
509
+ "cwd_missing": "会话的目录 {{dir}} 已经不在了,在当前目录启动",
510
+ "run_failed": "启动 {{command}} 失败:{{error}}",
511
+ "run_failed_hint": "确认已安装这个工具,或手动运行:{{line}}",
512
+ "export_needs_output": "导出需要指定目录",
513
+ "export_bad_path": "导出文件名不对:{{path}}",
514
+ "export_hint": "例如 {{cli}} sessions export <ID> -o ./sessions",
515
+ "role": {
516
+ "user": "用户",
517
+ "assistant": "助手",
518
+ "tool": "工具"
519
+ },
520
+ "field": {
521
+ "tool": "工具",
522
+ "id": "会话 ID",
523
+ "started": "开始时间",
524
+ "updated": "最后更新",
525
+ "cwd": "目录",
526
+ "provider": "服务商",
527
+ "messages": "消息数",
528
+ "file": "文件",
529
+ "resume": "续聊"
530
+ }
531
+ },
463
532
  "base": {
464
533
  "current": "当前接入地址:{{url}}",
465
534
  "current_mark": "当前",
@@ -701,7 +770,7 @@
701
770
  },
702
771
  "status": {
703
772
  "summary": "查看当前配置",
704
- "description": "显示当前的 Key、接入地址、语言、模型,以及各工具是否已配置。",
773
+ "description": "显示当前的 Key 和它的余额、接入地址、语言、模型,以及各工具是否已配置。",
705
774
  "ex": {
706
775
  "show": "查看当前配置",
707
776
  "json": "输出 JSON,给脚本读"
@@ -713,7 +782,7 @@
713
782
  },
714
783
  "doctor": {
715
784
  "summary": "检查配置和网络问题",
716
- "description": "检查 Key、网络、代理、已安装的工具和它们的配置,并给出处理办法。",
785
+ "description": "检查 Key、余额、网络、代理、已安装的工具和它们的配置,并给出处理办法。",
717
786
  "opt": {
718
787
  "deep": "装了 Claude Code 时,再用它真实发一条请求(消耗少量额度)",
719
788
  "report": "检查后上传诊断信息(检查结果、工具版本、设置和最近的运行记录,不含 Key 和对话内容),得到一个诊断码发给客服"
@@ -731,13 +800,17 @@
731
800
  },
732
801
  "bench": {
733
802
  "summary": "测接入地址的延迟",
734
- "description": "用已保存的 Key 向当前接入地址请求几次模型列表,统计耗时。",
803
+ "description": "用已保存的 Key 向当前接入地址请求几次模型列表,统计耗时;加 --stream 再发一条真实的流式请求,看首字时间和流能否正常结束。",
735
804
  "opt": {
736
- "samples": "请求次数(1–50)"
805
+ "samples": "请求次数(1–50)",
806
+ "stream": "再发一条真实的流式请求,看首字时间和流能否正常结束(消耗极少额度)",
807
+ "model": "流式请求用的模型(默认按 Key 能用的模型自动选)"
737
808
  },
738
809
  "ex": {
739
810
  "run": "请求 5 次",
740
811
  "samples": "只请求 3 次",
812
+ "stream": "测延迟,再测一次流式请求",
813
+ "stream_model": "用指定模型测流式请求",
741
814
  "json": "输出 JSON"
742
815
  },
743
816
  "when": "感觉变慢,或想看当前地址的延迟时。",
@@ -833,6 +906,41 @@
833
906
  "undo": "改完不满意,想改回去"
834
907
  }
835
908
  },
909
+ "sessions": {
910
+ "summary": "查看本机的编码会话",
911
+ "description": "列出 Claude Code、Codex 和 Claude 桌面版(Cowork / Code)存在本机的会话,按最后更新时间排序。\n可以看会话内容、打印或直接运行续聊命令、导出成 Markdown。只读,不改任何会话文件。",
912
+ "opt": {
913
+ "tool": "只看这个工具的会话(claude-code / codex / claude-desktop)",
914
+ "dir": "只看在这个目录或它下面开始的会话",
915
+ "here": "只看在当前目录或它下面开始的会话",
916
+ "limit": "最多列多少个(默认 20)",
917
+ "all": "全部列出",
918
+ "messages": "显示前几条消息(默认 6)",
919
+ "run": "直接运行续聊命令(默认只打印)",
920
+ "output": "导出到这个目录(不存在会新建,不覆盖已有文件)",
921
+ "tools": "附上工具调用的参数和输出(各截到 2000 字)"
922
+ },
923
+ "list": "列出会话(默认)",
924
+ "show": "显示一个会话的信息和前几条消息",
925
+ "resume": "打印或运行续聊命令",
926
+ "export": "把会话导出成 Markdown",
927
+ "ex": {
928
+ "list": "列出最近 20 个会话",
929
+ "codex": "只看 Codex 的会话",
930
+ "here": "只看当前目录的会话",
931
+ "show": "看一个会话(ID 写前几位即可)",
932
+ "resume": "在会话原来的目录里继续聊",
933
+ "export": "把两个会话导出到 ./sessions",
934
+ "json": "输出 JSON,给脚本读",
935
+ "show_more": "显示前 20 条消息",
936
+ "resume_print": "只打印续聊命令,自己复制运行",
937
+ "export_tools": "导出时附上工具调用的参数和输出"
938
+ },
939
+ "when": "想找回以前的对话、接着聊,或把对话存下来时。",
940
+ "alt": {
941
+ "codex_sessions": "Codex 列表里看不到旧会话时,把它们改到当前服务商"
942
+ }
943
+ },
836
944
  "lang": {
837
945
  "summary": "切换界面语言",
838
946
  "description": "查看或设置 {{product}} 的界面语言(zh_CN / en_US)。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeapi/api-helper",
3
- "version": "0.0.129",
3
+ "version": "0.0.131",
4
4
  "description": "CLI tool for managing AI coding assistants (Claude Code, Codex, OpenClaw, Hermes, AtomCode, Grok Build) with one unified config",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",