zcode-pro 1.7.0 → 1.8.0
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 +3 -2
- package/README.md +3 -2
- package/dist/inject.js +680 -97
- package/package.json +2 -2
- package/src/host/helper.mjs +54 -12
- package/src/host/mcp-bridge.mjs +488 -0
- package/src/host/session-import/index.mjs +140 -0
- package/src/host/session-import/sources.mjs +839 -0
- package/src/host/session-import/util.mjs +239 -0
- package/src/host/session-import/write.mjs +405 -0
- package/src/host/session-import/zstd.mjs +68 -0
- package/src/host/taskIndex.mjs +108 -0
- package/src/inject/core.js +69 -0
- package/src/inject/features/idle-reclaim.js +48 -23
- package/src/inject/features/session-import.js +367 -0
- package/src/inject/features/settings-dialog.js +11 -1
- package/src/inject/features/status-bar.js +56 -24
- package/src/inject/features/subagent-icon.js +16 -17
- package/src/inject/features/turn-usage.js +59 -14
- package/src/inject/features/ws-running.js +38 -8
- package/src/inject/ui.js +2 -0
package/README.en.md
CHANGED
|
@@ -29,6 +29,7 @@ Grouped by topic: the category column is a settings tab, entries with `·` (e.g.
|
|
|
29
29
|
| | Plugin panels on the new tab page | The built-in "new tab page" only lists built-in panels and recommended official plugins; this adds cards for third-party marketplace plugin panels (headroom, rtk, …) that open in the side pane |
|
|
30
30
|
| | Copy table | Adds a "Copy table" button to the table toolbar in answers: writes rich text to the clipboard so Excel / rich-text editors paste it as a real table (with separate cells, no borders or background colors); plain-text targets get tab-separated values |
|
|
31
31
|
| | Session ID links | Session IDs (`sess_` / `session_`) in questions and answers render as task names; click to switch to that session, hover for the raw ID; IDs in code blocks are left as-is |
|
|
32
|
+
| | Session import | Copy sessions from Codex, Claude Code, dsh and pi into ZCode tasks: per-source tabs, search, project filter, multi-select import; the import is a snapshot that keeps text, thinking, tool calls and images without changing the source session |
|
|
32
33
|
| | Auto-update | Check and update zcode-plugins marketplace plugins in one click, optional auto-update on startup |
|
|
33
34
|
| Shortcuts | Shortcut customization | Rebind the five session quick switch trigger keys (`alt+z` / `x` / `c` / `e` / `r` by default) one by one: click "Change" and press a new key (a single letter or digit only, conflicts rejected); reset all to defaults in one click |
|
|
34
35
|
| Behavior · ZCode CLI | ZCode CLI | Skill listing check: counts the full listing against the listing budget, warns when it degrades to names and file paths only and suggests a budget; configure the skill system, listing budget, extra skill directories and feature switches; workspace memory stays in the official settings under Settings → Agent capabilities → Memory; changes apply to new sessions |
|
|
@@ -38,7 +39,7 @@ Grouped by topic: the category column is a settings tab, entries with `·` (e.g.
|
|
|
38
39
|
| | Font adjustment | Custom UI font (all interface text except the terminal), question font and answer font |
|
|
39
40
|
| | Sidebar spacing | Fine-tune sidebar project spacing and task spacing |
|
|
40
41
|
| | UI style adjustments | Fine-tune paragraph spacing, content width, line heights, list/quote/table spacing and cell padding; focusing an input highlights the affected areas |
|
|
41
|
-
| Appearance · Status bar | Status bar statistics | Shows statistics at the bottom-right of the input box and at the end of each answer: recent output tokens/s (60-second window, holds the last rate after an answer ends), context usage (changes color when high), questions asked, today/total tokens and task count, mostly from official data; reorder or hide each item under Settings → Appearance → Status bar. Rate and per-turn usage are scoped to the session's own records; subagent calls live in separate session records and are not counted |
|
|
42
|
+
| Appearance · Status bar | Status bar statistics | Shows statistics at the bottom-right of the input box and at the end of each answer: recent output tokens/s (estimated from text growth and marked ≈ while streaming, switches to the official 60-second window value after the call completes, and holds the last rate after an answer ends), context usage (changes color when high), questions asked, today/total tokens and task count, mostly from official data; reorder or hide each item under Settings → Appearance → Status bar. Rate and per-turn usage are scoped to the session's own records; subagent calls live in separate session records and are not counted |
|
|
42
43
|
| | Per-turn token usage | Shows that turn's in/out tokens and cache hit rate, shown after the timestamp in each answer's action row (local records keep only a recent window; older answers stay unlabeled) |
|
|
43
44
|
| Appearance · Theme | Skins | Eleven well-known editor theme palettes (Dracula / Nord / Tokyo Night / Catppuccin / Gruvbox / One Dark / Solarized / Rosé Pine / Everforest / Night Owl / Kanagawa), auto-matching ZCode's light / dark mode; plus a custom theme: pick 5 colors each for light and dark to derive the whole palette, with live preview |
|
|
44
45
|
| Appearance · Wallpaper | Wallpaper | Window-wide background from five sources: none / local library (upload many, pick the active one, delete freely) / folder (read in place, rotate on a timer, random or by filename) / URL (refresh on a timer for random-image APIs) / web page (sandboxed iframe behind the UI); the left, center and right panes can each get their own background (static images only, fit and mask settable per pane, or follow the global settings); three sliders — mask opacity (image fading toward the theme background color), image blur, panel opacity — plus transition style, video volume/playback rate/FPS cap and pause conditions; the settings window is frosted over the wallpaper by default (can be turned off on that page), menus stay opaque; the library uploads with the zcode-pro WebDAV sync group (overwrite, no history versions) |
|
|
@@ -75,7 +76,7 @@ Right-click the settings button (gear) at the bottom of the ZCode sidebar to ope
|
|
|
75
76
|
|
|
76
77
|
## 📦 Installation
|
|
77
78
|
|
|
78
|
-
> **Version match**: for ZCode ≥ 3.16.1 use **zcode-pro 1.1.0 or newer** (the latest is 1.
|
|
79
|
+
> **Version match**: for ZCode ≥ 3.16.1 use **zcode-pro 1.1.0 or newer** (the latest is 1.8.0); for ZCode 3.15.x and earlier use **zcode-pro 0.20.3** (the previous release, still available).
|
|
79
80
|
|
|
80
81
|
Once installed, launch ZCode via the "ZCode Pro" shortcut in your app menu / Start menu, or the `zcode-pro` command in a terminal — the enhancements are enabled automatically in this mode; launching ZCode through its original entry does not load them. After launching, right-click the settings button at the bottom of the ZCode sidebar to open the ZCode Pro settings window.
|
|
81
82
|
|
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ ZCode 桌面版增强工具:壁纸引擎(图片/视频/网页)、皮肤主
|
|
|
29
29
|
| | 新标签页插件面板入口 | 官方“新标签页”只列官方面板与推荐的官方插件;本功能把第三方市场插件(headroom、rtk 等)的面板卡片加进去,点击在侧边面板打开 |
|
|
30
30
|
| | 复制表格 | 回答内容表格的工具条新增“复制表格”按钮:以富文本写入剪贴板,粘贴进 Excel / 富文本编辑器即被识别为表格(分列成格、不带边框与背景色);纯文本场景自动降级为 Tab 分列 |
|
|
31
31
|
| | 会话 ID 显示为任务名链接 | 提问与回答里出现的会话 ID(`sess_` / `session_` 开头)显示为任务名,点击切换到该会话,悬停显示原 ID;代码块里的 ID 不处理 |
|
|
32
|
+
| | 导入会话 | 把 Codex、Claude Code、dsh、pi 的历史会话复制成 ZCode 任务:按来源分标签,可搜索、按项目筛选、多选导入;导入是快照,保留文字、思考、工具调用和图片,不改变源会话 |
|
|
32
33
|
| | 插件更新 | 一键检查并更新 zcode-plugins 市场插件,可选启动时自动更新 |
|
|
33
34
|
| 快捷键 | 会话快捷键自定义 | 会话快捷切换的五个入口键(默认 `alt+z` / `x` / `c` / `e` / `r`)逐个修改:点“修改”后按下新键位(字母/数字)即生效,键位冲突会提示;可一键重置为默认 |
|
|
34
35
|
| 行为 | ZCode CLI | 技能清单检查:统计完整清单字符数并对照注入预算,超出时提示清单被降级为只剩技能名和路径并给出建议预算;可配置技能系统、清单预算、额外技能目录与功能开关;工作区记忆仍在官方 设置 → Agent 能力 → 记忆 中配置,改动新会话起生效 |
|
|
@@ -38,7 +39,7 @@ ZCode 桌面版增强工具:壁纸引擎(图片/视频/网页)、皮肤主
|
|
|
38
39
|
| | 字体调整 | 自定义界面字体(除终端外全部界面文字)、提问字体与回答字体 |
|
|
39
40
|
| | 侧栏间距调整 | 微调侧边栏项目间距与任务间距 |
|
|
40
41
|
| | 界面样式调整 | 微调段落间距、内容宽度、各类行高、列表/引用块/表格间距与单元格边距;聚焦输入框时高亮预览受影响区域 |
|
|
41
|
-
| 外观 · 状态栏 | 状态栏统计 | 提问输入框右下角和每轮回答最后显示统计项:最近输出 tokens/s
|
|
42
|
+
| 外观 · 状态栏 | 状态栏统计 | 提问输入框右下角和每轮回答最后显示统计项:最近输出 tokens/s(流式生成中按文本增长估算并标 ≈,调用完成后切到官方 60 秒窗口值,回答结束后停留在最后速率)、上下文占用(占用高时变色)、提问次数、今日/累计 token、任务总数,以官方数据为主;各项的顺序与显隐在 设置 → 外观 → 状态栏 调整。速率与每轮用量按会话记录统计,子代理是独立的会话记录、不计入 |
|
|
42
43
|
| | 每轮回答 token 用量 | 在每条回答末尾操作按钮的时间后面显示该轮的输入/输出 token 与缓存命中率(本地记录只保留最近一段,更早的回答不标注) |
|
|
43
44
|
| 外观 · 主题 | 界面皮肤 | 内置 11 套知名编辑器主题配色(Dracula / Nord / Tokyo Night / Catppuccin / Gruvbox / One Dark / Solarized / Rosé Pine / Everforest / Night Owl / Kanagawa),自动匹配 ZCode 的浅色 / 深色模式;另可自定义主题:浅色、深色各选 5 个颜色生成整套配色,改色实时生效 |
|
|
44
45
|
| 外观 · 壁纸 | 壁纸 | 整窗铺背景,五种来源:无背景 / 本地图库(可传多张、点选当前、可单删)/ 文件夹(原地读取,按间隔定时轮换,可选随机或按文件名顺序)/ 网址(可按间隔定时刷新,配合随机图 API)/ 网页(沙箱 iframe 铺在后方);左栏 / 中栏 / 右栏可分区独立设置(仅静态图,缩放与遮罩可单独调、可跟随全局);遮罩不透明度(图片向主题背景色淡化程度)、图片模糊、面板不透明度(左栏、中栏与右栏的不透明程度)三个滑杆调节,另有转场方式、视频音量/倍速/帧率上限与暂停条件;设置弹窗默认磨砂透出壁纸(可在该页关掉),菜单等浮层保持不透明保可读;图库随 WebDAV 同步的 zcode-pro 组一起上传(覆盖式,不留历史版本) |
|
|
@@ -75,7 +76,7 @@ ZCode 桌面版增强工具:壁纸引擎(图片/视频/网页)、皮肤主
|
|
|
75
76
|
|
|
76
77
|
## 📦 安装与使用
|
|
77
78
|
|
|
78
|
-
> **版本匹配**:ZCode ≥ 3.16.1 请使用 **zcode-pro 1.1.0 及以上**(当前最新 1.
|
|
79
|
+
> **版本匹配**:ZCode ≥ 3.16.1 请使用 **zcode-pro 1.1.0 及以上**(当前最新 1.8.0);ZCode ≤ 3.15.x 请使用 **zcode-pro 0.20.3**(旧版仍可用)。
|
|
79
80
|
|
|
80
81
|
安装后,通过应用菜单 / 开始菜单中的“ZCode Pro”快捷方式或终端命令 `zcode-pro` 启动 ZCode,增强在该方式下自动生效;使用原有 ZCode 入口启动时不加载增强。
|
|
81
82
|
|