nexum-code 0.12.8 → 0.13.5

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.
@@ -6,8 +6,22 @@
6
6
  <meta name="theme-color" content="#0d1117" />
7
7
  <link rel="icon" href="./icon.ico" type="image/x-icon" />
8
8
  <title>Nexum Web UI</title>
9
- <script type="module" crossorigin src="./assets/index-Dk4bewva.js"></script>
10
- <link rel="stylesheet" crossorigin href="./assets/index-nfSMt8uX.css">
9
+ <script>
10
+ // Set the theme before first paint to avoid a dark/light flash (FOUC).
11
+ (function () {
12
+ try {
13
+ var saved = localStorage.getItem('nexum-theme');
14
+ var dark =
15
+ saved === 'dark' ||
16
+ (saved !== 'light' && window.matchMedia('(prefers-color-scheme: dark)').matches);
17
+ document.documentElement.dataset.theme = dark ? 'dark' : 'light';
18
+ } catch (e) {
19
+ /* storage unavailable - fall back to defaults */
20
+ }
21
+ })();
22
+ </script>
23
+ <script type="module" crossorigin src="./assets/index-DCh1yGQ_.js"></script>
24
+ <link rel="stylesheet" crossorigin href="./assets/index-CSHfYrxD.css">
11
25
  </head>
12
26
  <body>
13
27
  <div id="app"></div>
@@ -3,5 +3,5 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
3
3
  import { dirname as __cjsShimDirname } from 'node:path';
4
4
  const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
- import { t as TextInputDialogComponent } from "./text-input-dialog-CHwbHQah.mjs";
6
+ import { t as TextInputDialogComponent } from "./text-input-dialog-Bncn0-6m.mjs";
7
7
  export { TextInputDialogComponent };
@@ -121,12 +121,12 @@ const dictionaries = {
121
121
  "tasks.user_stopped": "用户发起停止",
122
122
  "tasks.stop_failed": "停止失败:{msg}",
123
123
  "tasks.open_output_failed": "无法打开输出:{msg}",
124
- "status.idle": "○ 空闲",
124
+ "status.idle": "○ 空闲中",
125
125
  "status.thinking": "思考中",
126
126
  "status.composing": "输出中",
127
127
  "status.tool": "执行中",
128
- "status.waiting": "等待响应",
129
- "status.reconnecting": "重连尝试中",
128
+ "status.waiting": "等待中",
129
+ "status.reconnecting": "重连中",
130
130
  "approval.allow_once": "批准一次",
131
131
  "approval.allow_session": "批准(当前会话)",
132
132
  "approval.deny": "拒绝",
@@ -196,8 +196,9 @@ const dictionaries = {
196
196
  "footer.help": "/help: 显示命令",
197
197
  "footer.config": "/config: 选择并配置你常用的模型商",
198
198
  "footer.reminder": "让 Nexum 安排任务,例如 \"2个小时后提醒我去拿快递\"",
199
- "footer.context": "上下文:{pct} ({tokens}/{maxTokens})",
200
- "footer.context_short": "上下文:{pct}",
199
+ "footer.context": "上下文: {bar} ({tokens}/{maxTokens})",
200
+ "footer.context_short": "上下文: {bar}",
201
+ "footer.hit": "HitR",
201
202
  "footer.tasks_running": "{count}个任务 运行中",
202
203
  "footer.agents_running": "{count}个代理 运行中",
203
204
  "input.replay_blocked": "会话历史正在回放时无法发送输入。",
@@ -437,6 +438,11 @@ const dictionaries = {
437
438
  "like.other_example": "例如:请用中文回答,避免缩写",
438
439
  "like.cancelled": "已取消 /like 设置",
439
440
  "like.saved": "偏好已保存(下次新会话生效)",
441
+ "like.tool_priority_title": "设置工具优先级",
442
+ "like.tool_priority_hint": "选择 Agent 应优先检查的工具来源。",
443
+ "like.tool_priority_default": "默认 — 由 Agent 自行判断",
444
+ "like.tool_priority_skill": "技能优先",
445
+ "like.tool_priority_mcp": "MCP 工具优先",
440
446
  "revoke.streaming": "无法在 streaming 中撤回 — 请先按 Esc 或 Ctrl-C 取消。",
441
447
  "revoke.usage": "用法:/revoke [数量],数量为正整数。",
442
448
  "revoke.nothing": "没有可以撤回的内容。",
@@ -892,6 +898,20 @@ const dictionaries = {
892
898
  "textinput.empty_hint": "输入不能为空。",
893
899
  "editor.auto_detect": "自动检测 ($VISUAL / $EDITOR)",
894
900
  "editor.select_title": "选择外部编辑器",
901
+ "editor.empty_session_hint": "Tips:推荐使用 OpencodeGo 作为模型提供商,按 Ctrl+F 获取 API,按 Ctrl+B 切换显示",
902
+ "editor.tip_ad": "💡 Tips:使用 OpencodeGo 可免费调用模型或选择低价套餐,按 Ctrl+F 获取 API 【Ctrl+B 关闭 Tips】",
903
+ "editor.tip_1": "💡 Tips:空输入框按 Tab 可切换模型思考等级 【Ctrl+B 关闭 Tips】",
904
+ "editor.tip_2": "💡 Tips:输入 / 查看所有命令,输入 @ 引用文件路径 【Ctrl+B 关闭 Tips】",
905
+ "editor.tip_3": "💡 Tips:按 Shift+Tab 切换计划模式 【Ctrl+B 关闭 Tips】",
906
+ "editor.tip_4": "💡 Tips:输入 /model diy 可为子代理配置不同模型 【Ctrl+B 关闭 Tips】",
907
+ "editor.tip_5": "💡 Tips:输入 /config diy 可添加自定义模型 【Ctrl+B 关闭 Tips】",
908
+ "editor.tip_6": "💡 Tips:使用中不建议切换模型,丢失缓存会降低命中率 【Ctrl+B 关闭 Tips】",
909
+ "editor.tip_7": "💡 Tips:按 Ctrl+E 跳到行尾,Ctrl+W 删除前一个单词 【Ctrl+B 关闭 Tips】",
910
+ "editor.tip_8": "💡 Tips:输入 /compact 可手动压缩上下文并释放 token 空间 【Ctrl+B 关闭 Tips】",
911
+ "editor.tip_9": "💡 Tips:按 Ctrl+G 可在外部编辑器中编写长消息 【Ctrl+B 关闭 Tips】",
912
+ "editor.tip_10": "💡 Tips:输入 /rlm 可开启运行时记忆,让 Agent 跨轮记住更多上下文 【Ctrl+B 关闭 Tips】",
913
+ "editor.tip_11": "💡 Tips:空输入时按 Ctrl+D 可退出,再按一次确认 【Ctrl+B 关闭 Tips】",
914
+ "editor.tip_12": "💡 Tips:输入 /sessions 可查看并恢复历史会话 【Ctrl+B 关闭 Tips】",
895
915
  "editorkey.cancel_compaction_failed": "取消压缩失败: {msg}",
896
916
  "editorkey.editor_not_configured": "未配置编辑器。请设置 $VISUAL / $EDITOR,或运行 /editor <命令>。",
897
917
  "editorkey.external_editor_failed": "外部编辑器失败: {msg}",
@@ -1112,6 +1132,16 @@ const dictionaries = {
1112
1132
  "registry.status_desc": "显示当前会话和运行时状态",
1113
1133
  "registry.usage_desc": "显示 token 用量和上下文窗口",
1114
1134
  "registry.btw_desc": "在不中断对话的情况下快速提问",
1135
+ "registry.snaptimer_desc": "开关会话快照计时器(每次回复后的用时标记)",
1136
+ "snaptimer.enabled": "会话快照计时器已开启",
1137
+ "snaptimer.disabled": "会话快照计时器已关闭",
1138
+ "registry.hl_desc": "开关用户消息高亮块 — 开启后用户消息带背景色(暗色主题黄色、亮色主题橙红),便于与 AI 回复区分;关闭恢复默认显示",
1139
+ "hl.enabled": "用户消息高亮已开启",
1140
+ "hl.disabled": "用户消息高亮已关闭",
1141
+ "onboarding.description": "Nexum 需要先选一个模型才能开始工作,一分钟即可完成配置。",
1142
+ "onboarding.configure": "立即配置",
1143
+ "onboarding.skip": "跳过(稍后用 /config 配置)",
1144
+ "onboarding.hint": "Enter=确认 Up/Down=选择 Esc=跳过",
1115
1145
  "registry.like_desc": "设置你的偏好(昵称、语气、其他偏好)",
1116
1146
  "registry.mcp_desc": "管理 MCP 服务器(安装/停用/卸载)",
1117
1147
  "registry.skill_desc": "技能中心,管理 Skill 技能,含激活、安装、卸载等",
@@ -1201,7 +1231,7 @@ const dictionaries = {
1201
1231
  "status.composing": "Writing",
1202
1232
  "status.tool": "Running",
1203
1233
  "status.waiting": "Waiting",
1204
- "status.reconnecting": "Reconnect attempt",
1234
+ "status.reconnecting": "Reconnecting",
1205
1235
  "approval.allow_once": "Allow Once",
1206
1236
  "approval.allow_session": "Allow Session",
1207
1237
  "approval.deny": "Deny",
@@ -1271,8 +1301,9 @@ const dictionaries = {
1271
1301
  "footer.help": "/help: Show commands",
1272
1302
  "footer.config": "/config: Configure your model provider",
1273
1303
  "footer.reminder": "Let Nexum schedule tasks, e.g. \"remind me to pick up the package in 2 hours\"",
1274
- "footer.context": "Context: {pct} ({tokens}/{maxTokens})",
1275
- "footer.context_short": "Context: {pct}",
1304
+ "footer.context": "Context: {bar} ({tokens}/{maxTokens})",
1305
+ "footer.context_short": "Context: {bar}",
1306
+ "footer.hit": "HitR",
1276
1307
  "footer.tasks_running": "{count} tasks running",
1277
1308
  "footer.agents_running": "{count} agents running",
1278
1309
  "input.replay_blocked": "Cannot send input while session history is replaying.",
@@ -1512,6 +1543,11 @@ const dictionaries = {
1512
1543
  "like.other_example": "e.g. Answer in English, avoid abbreviations",
1513
1544
  "like.cancelled": "/like setup cancelled",
1514
1545
  "like.saved": "Preferences saved (takes effect in next session)",
1546
+ "like.tool_priority_title": "Set tool priority",
1547
+ "like.tool_priority_hint": "Choose which tool source the agent should check first.",
1548
+ "like.tool_priority_default": "Default — let the agent decide",
1549
+ "like.tool_priority_skill": "Skills first",
1550
+ "like.tool_priority_mcp": "MCP tools first",
1515
1551
  "revoke.streaming": "Cannot revoke during streaming — press Esc or Ctrl-C to cancel first.",
1516
1552
  "revoke.usage": "Usage: /revoke [count], where count is a positive integer.",
1517
1553
  "revoke.nothing": "Nothing to revoke.",
@@ -1967,6 +2003,20 @@ const dictionaries = {
1967
2003
  "textinput.empty_hint": "Input cannot be empty.",
1968
2004
  "editor.auto_detect": "Auto detect ($VISUAL / $EDITOR)",
1969
2005
  "editor.select_title": "Select external editor",
2006
+ "editor.empty_session_hint": "Tips: Use OpencodeGo as your model provider. Ctrl+F: get an API key. Ctrl+B: toggle this tip.",
2007
+ "editor.tip_ad": "💡 Tips: Use OpencodeGo for free models or a low-cost plan. Ctrl+F: get an API key [Ctrl+B to hide Tips]",
2008
+ "editor.tip_1": "💡 Tips: Press Tab on an empty input to cycle thinking effort [Ctrl+B to hide Tips]",
2009
+ "editor.tip_2": "💡 Tips: Type / to see all commands, type @ to reference a file path [Ctrl+B to hide Tips]",
2010
+ "editor.tip_3": "💡 Tips: Press Shift+Tab to switch plan mode [Ctrl+B to hide Tips]",
2011
+ "editor.tip_4": "💡 Tips: Type /model diy to configure a different model for sub-agents [Ctrl+B to hide Tips]",
2012
+ "editor.tip_5": "💡 Tips: Type /config diy to add a custom model [Ctrl+B to hide Tips]",
2013
+ "editor.tip_6": "💡 Tips: Avoid switching models mid-session because cache loss reduces hit rate [Ctrl+B to hide Tips]",
2014
+ "editor.tip_7": "💡 Tips: Ctrl+E jumps to end of line, Ctrl+W deletes the previous word [Ctrl+B to hide Tips]",
2015
+ "editor.tip_8": "💡 Tips: Type /compact to compact context and free token space [Ctrl+B to hide Tips]",
2016
+ "editor.tip_9": "💡 Tips: Press Ctrl+G to compose long messages in an external editor [Ctrl+B to hide Tips]",
2017
+ "editor.tip_10": "💡 Tips: Type /rlm to enable runtime memory for cross-turn recall [Ctrl+B to hide Tips]",
2018
+ "editor.tip_11": "💡 Tips: Press Ctrl+D on empty input to quit, then press again to confirm [Ctrl+B to hide Tips]",
2019
+ "editor.tip_12": "💡 Tips: Type /sessions to browse and resume past sessions [Ctrl+B to hide Tips]",
1970
2020
  "editorkey.cancel_compaction_failed": "Cancel compaction failed: {msg}",
1971
2021
  "editorkey.editor_not_configured": "Editor not configured. Set $VISUAL / $EDITOR, or run /editor <command>.",
1972
2022
  "editorkey.external_editor_failed": "External editor failed: {msg}",
@@ -2187,6 +2237,16 @@ const dictionaries = {
2187
2237
  "registry.status_desc": "Show current session and runtime status",
2188
2238
  "registry.usage_desc": "Show token usage and context window",
2189
2239
  "registry.btw_desc": "Quick question without interrupting conversation",
2240
+ "registry.snaptimer_desc": "Toggle the per-turn elapsed snapshot timer",
2241
+ "snaptimer.enabled": "Session snapshot timer enabled",
2242
+ "snaptimer.disabled": "Session snapshot timer disabled",
2243
+ "registry.hl_desc": "Toggle the user-message highlight block — user messages get a colored background (yellow in dark themes, orange-red in light themes) when enabled; disable to return to the default look",
2244
+ "hl.enabled": "User message highlight enabled",
2245
+ "hl.disabled": "User message highlight disabled",
2246
+ "onboarding.description": "Nexum needs a model to start working. Set one up in under a minute.",
2247
+ "onboarding.configure": "Configure now",
2248
+ "onboarding.skip": "Skip (config later with /config)",
2249
+ "onboarding.hint": "Enter=confirm Up/Down=choose Esc=skip",
2190
2250
  "registry.like_desc": "Set your preferences (nickname, tone, other)",
2191
2251
  "registry.mcp_desc": "Manage MCP servers (install/disable/uninstall)",
2192
2252
  "registry.skill_desc": "Skill center, manage Skills including activate, install, uninstall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexum-code",
3
- "version": "0.12.8",
3
+ "version": "0.13.5",
4
4
  "description": "A terminal-native AI agent for builders",
5
5
  "license": "MIT",
6
6
  "author": "NexumCli",
@@ -55,7 +55,7 @@
55
55
  "smoke": "node dist/main.mjs --version"
56
56
  },
57
57
  "dependencies": {
58
- "@earendil-works/pi-tui": "npm:@liutod-scream/pi-tui@^0.84.0",
58
+ "@earendil-works/pi-tui": "npm:@liutod-scream/pi-tui@^0.84.4",
59
59
  "@mariozechner/clipboard": "^0.3.2",
60
60
  "chalk": "^5.4.1",
61
61
  "cli-highlight": "^2.1.11",