zcode-pro 1.8.1 → 1.8.2
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 +37 -27
- package/README.md +42 -32
- package/dist/inject.js +460 -54
- package/package.json +1 -1
- package/src/host/helper.mjs +33 -4
- package/src/host/main.mjs +27 -12
- package/src/inject/core.js +12 -4
- package/src/inject/features/composer-edit-model.js +312 -0
- package/src/inject/features/settings-dialog.js +8 -2
- package/src/inject/features/status-bar.js +59 -8
- package/src/inject/features/styles.js +48 -28
- package/src/inject/features/theme.js +10 -0
- package/src/inject/features/ws-running.js +68 -12
- package/src/inject/index.js +2 -0
- package/src/inject/ui.js +2 -2
package/README.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[简体中文](README.md) | English
|
|
4
4
|
|
|
5
|
-
ZCode Pro is an enhancement pack for the ZCode desktop app: a wallpaper engine (image / video / web), skins, quick session switching, status bar stats and
|
|
5
|
+
ZCode Pro is an enhancement pack for the ZCode desktop app: a wallpaper engine (image / video / web), skins, quick session switching, status bar stats and 30+ UI and workflow improvements. No client files are modified; just launch via the ZCode Pro shortcut or the `zcode-pro` terminal command.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/zcode-pro) [](https://pypi.org/project/zcode-pro/) [](https://aur.archlinux.org/packages/zcode-pro) [](https://github.com/duanluan/zcode-pro#-windows) [](https://github.com/duanluan/zcode-pro#-linux--macos) [](https://github.com/duanluan/zcode-pro#-linux--macos) [](https://github.com/duanluan/zcode-pro#-community) [](https://github.com/duanluan/zcode-pro#-community)
|
|
8
8
|
|
|
@@ -10,73 +10,82 @@ ZCode Pro is an enhancement pack for the ZCode desktop app: a wallpaper engine (
|
|
|
10
10
|
|
|
11
11
|
## ✨ Features
|
|
12
12
|
|
|
13
|
-
Grouped by topic: the category column is a settings tab, entries with `·` (e.g. "Behavior · Global prompt") are sub-tabs
|
|
13
|
+
Grouped by topic: the category column is a settings tab, entries with `·` (e.g. "Behavior · Global prompt") are sub-tabs. Screenshots follow the tab order in the dialog.
|
|
14
14
|
|
|
15
15
|
| Category | Feature | Description |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| Features | Project menu actions (open folder / copy path) | Project "More" menu: open the project directory in the file manager, or copy its path |
|
|
18
|
-
| | ~~Custom alias~~ (retired) | Show a custom name for a project in the sidebar; UI-only, revert anytime; renaming is built into ZCode ≥ 3.16.1 (project menu "Edit project") — the feature disables itself there and offers to migrate existing aliases |
|
|
19
|
-
| | ~~Switch project folder~~ (retired) | Point a project at another folder; sidebar, tabs and task history follow. Stop running tasks before switching; historical checkpoints still reference the original path; retired on ZCode ≥ 3.16.1, where a project can hold multiple directories natively |
|
|
20
18
|
| | Sidebar session drag ordering | Reorder sessions in Pinned, Projects and Groups; persists across refreshes |
|
|
21
19
|
| | Session quick switch | `alt+z` toggles between the current and the last session; hold `alt` and press `x` (up) / `c` (down) to pick from recent sessions (10 shown initially, pressing `c` at the bottom loads 5 more), `alt+e` opens the last 10 directly, `alt+r` opens running / finished-but-unseen tasks; arrow keys also move the highlight, press `Enter` or click a row to switch; the five trigger keys are customizable in Settings → Shortcuts |
|
|
22
20
|
| | Keep renamed session titles | Sessions you renamed keep their custom title; auto-generated titles no longer overwrite it in the sidebar |
|
|
23
21
|
| | Collapsible Pinned section | The sidebar "Pinned" header collapses/expands its task list; the state is remembered |
|
|
24
22
|
| | File menu actions | Adds "Open with default app" and "Reveal in file manager" to file links in chat |
|
|
25
23
|
| | Copy image | Right-click an image in chat or the enlarged preview to copy it to the clipboard |
|
|
26
|
-
| | Plugin card sandbox reclaim | Releases the oldest plugin-card sandboxes once the cap is hit (the one being viewed goes last), so new cards keep opening after the 64-slot pool fills up; released cards come back when their session is reopened
|
|
24
|
+
| | Plugin card sandbox reclaim | Releases the oldest plugin-card sandboxes once the cap is hit (the one being viewed goes last), so new cards keep opening after the 64-slot pool fills up; released cards come back when their session is reopened |
|
|
27
25
|
| | Plugin card auto-retry | Auto-clicks "Reload" on cards that hit the 64-slot cap, so they recover as soon as a slot frees up |
|
|
28
|
-
| | Running indicator when collapsed | While any session is running, collapsed
|
|
26
|
+
| | Running indicator when collapsed | While any session is running, collapsed project rows and the "Projects" / "Tasks" / "Pinned" section headers show the same loader the running task row uses; it disappears when all finish |
|
|
27
|
+
| | Subagent running indicator | Task rows show a robot icon while background subagents run and a terminal icon while background commands run (robot wins when both); the unread dot moves to the row end; running sessions always show a spinner; project unread badges ignore error rows |
|
|
29
28
|
| | 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
29
|
| | 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
30
|
| | 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 |
|
|
31
|
+
| | Provider in model name | Shows the provider before the model name in the composer (e.g. BigModel-Max1 / glm-5.3), so models with the same name are distinguishable |
|
|
32
|
+
| | Keep current model when editing | Keeps the model you selected before editing instead of the model the message was sent with; you can still change it in the editor |
|
|
32
33
|
| | 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 |
|
|
33
|
-
| | Auto-update | Check and update zcode-plugins marketplace plugins in one click
|
|
34
|
+
| | Auto-update | Check and update zcode-plugins marketplace plugins in one click; can be set to update automatically when the settings window is opened |
|
|
34
35
|
| 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 |
|
|
35
36
|
| 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 |
|
|
36
37
|
| Behavior · Global prompt | Global prompt | Edit default instructions shared by all projects; applies to new sessions |
|
|
37
38
|
| Behavior · Auto rename | Auto rename | When a new session starts answering, generates the task name with a provider and prompt you choose (provider follows the current session, model defaults to glm-5.3-flash; every question sent before the first answer counts), saved as a manual rename the built-in auto title never overrides; provider, model and prompt are editable in settings, with a test button; a hover button on task rows and a context-menu entry under "Rename task" rename manually from the recent Q&A, with toggles for each entry point and the round count in settings |
|
|
38
|
-
| Appearance · Styles | Sidebar menu in the top bar | Turns "New task / Search / Automations / Plugin store" into icon buttons in the top navigation bar, highlighted while its view is open|
|
|
39
|
+
| Appearance · Styles | Sidebar menu in the top bar | Turns "New task / Search / Automations / Plugin store" into icon buttons in the top navigation bar, highlighted while its view is open |
|
|
39
40
|
| | Font adjustment | Custom UI font (all interface text except the terminal), question font and answer font |
|
|
40
41
|
| | Sidebar spacing | Fine-tune sidebar project spacing and task spacing |
|
|
41
42
|
| | 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 |
|
|
42
|
-
| Appearance · Status bar | Status bar statistics | Shows statistics at the bottom-right of the input box
|
|
43
|
+
| Appearance · Status bar | Status bar statistics | Shows statistics at the bottom-right of the input box: 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), average cache hit rate, cumulative input/output, context usage (changes color when high), main request count, 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 |
|
|
43
44
|
| | 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) |
|
|
44
45
|
| 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 |
|
|
45
46
|
| 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); four sliders — mask opacity (image fading toward the theme background color), image blur, panel opacity, plugin card veil (theme-colored layer behind plugin cards while the wallpaper shows through) — 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) |
|
|
46
47
|
| Performance | Idle project memory reclaim | Projects unused for a while with no running tasks release their memory automatically, and unused ones are reclaimed once after startup; sessions are untouched and reload when reopened (durations adjustable) |
|
|
47
|
-
| Proxy | Software proxy | Set an HTTP proxy for
|
|
48
|
+
| Proxy | Software proxy | Set an HTTP proxy for marketplace updates/installs and for installing/upgrading headroom and rtk (WebDAV sync can optionally use it, off by default), with connectivity test |
|
|
48
49
|
| Sync | Settings sync | Manually back up ZCode Pro settings and model settings to WebDAV, or restore them on a new computer; transfers only on click |
|
|
49
50
|
| Vision | Vision proxy | Automatically hand images to vision models for recognition when the main model cannot see them, and feed the descriptions to the main model; visual chain editor (zcode-vision plugin) |
|
|
50
51
|
| Headroom | Headroom | Manage compression device, power-save switching and proxy status; check and upgrade the headroom program (headroom plugin) |
|
|
51
52
|
| rtk | rtk compression | Manage rewrite hints and the command whitelist; check and upgrade the rtk program (rtk plugin) |
|
|
52
53
|
|
|
53
|
-
All features can be toggled or adjusted in the settings window;
|
|
54
|
+
All features can be toggled or adjusted in the settings window; the latest ZCode version is recommended, as some features may not work on older versions.
|
|
54
55
|
|
|
55
56
|
## 🎛 Settings
|
|
56
57
|
|
|
57
58
|
Right-click the settings button (gear) at the bottom of the ZCode sidebar to open the settings window:
|
|
58
59
|
|
|
59
|
-
| Features |
|
|
60
|
+
| Features | Appearance · Wallpaper | Appearance · Theme |
|
|
60
61
|
| --- | --- | --- |
|
|
61
|
-
| <img src="docs/settings/01-features.png" width="280"> | <img src="docs/settings/02-
|
|
62
|
+
| <img src="docs/settings/01-features.png" width="280"> | <img src="docs/settings/02-appearance-wallpaper.png" width="280"> | <img src="docs/settings/03-appearance-theme.png" width="280"> |
|
|
62
63
|
|
|
63
|
-
|
|
|
64
|
+
| Appearance · Styles | Appearance · Status bar | Behavior · ZCode CLI |
|
|
64
65
|
| --- | --- | --- |
|
|
65
|
-
| <img src="docs/settings/04-
|
|
66
|
+
| <img src="docs/settings/04-appearance-styles.png" width="280"> | <img src="docs/settings/05-appearance-status-bar.png" width="280"> | <img src="docs/settings/06-behavior-zcode-cli.png" width="280"> |
|
|
66
67
|
|
|
67
|
-
|
|
|
68
|
+
| Behavior · Global prompt | Behavior · Auto rename | Performance |
|
|
68
69
|
| --- | --- | --- |
|
|
69
|
-
| <img src="docs/settings/07-
|
|
70
|
+
| <img src="docs/settings/07-behavior-global-prompt.png" width="280"> | <img src="docs/settings/08-behavior-auto-rename.png" width="280"> | <img src="docs/settings/09-performance.png" width="280"> |
|
|
70
71
|
|
|
71
|
-
|
|
|
72
|
+
| Shortcuts | Proxy | Sync |
|
|
72
73
|
| --- | --- | --- |
|
|
73
|
-
| <img src="docs/settings/10-
|
|
74
|
+
| <img src="docs/settings/10-shortcuts.png" width="280"> | <img src="docs/settings/11-proxy.png" width="280"> | <img src="docs/settings/12-sync.png" width="280"> |
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
| Session import | Vision | Headroom |
|
|
77
|
+
| --- | --- | --- |
|
|
78
|
+
| <img src="docs/settings/13-session-import.png" width="280"> | <img src="docs/settings/14-vision.png" width="280"> | <img src="docs/settings/15-headroom.png" width="280"> |
|
|
79
|
+
|
|
80
|
+
| rtk |
|
|
81
|
+
| --- |
|
|
82
|
+
| <img src="docs/settings/16-rtk.png" width="280"> |
|
|
83
|
+
|
|
84
|
+
> The Vision / Headroom / rtk tabs come from the plugins of the same name; when a plugin is missing, the tab shows a one-click install card and switches to the full panel once installed.
|
|
76
85
|
|
|
77
86
|
## 📦 Installation
|
|
78
87
|
|
|
79
|
-
> **Version
|
|
88
|
+
> **Version note**: the latest ZCode version is recommended; some features may not work on older versions.
|
|
80
89
|
|
|
81
90
|
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.
|
|
82
91
|
|
|
@@ -149,7 +158,7 @@ If you previously installed via `install.sh`, run `./scripts/install.sh --uninst
|
|
|
149
158
|
|
|
150
159
|
### 🚀 Run without installing
|
|
151
160
|
|
|
152
|
-
No standalone Node.js required: the runtime bundled with ZCode is preferred
|
|
161
|
+
No standalone Node.js required: the runtime bundled with ZCode is preferred; works whether ZCode is installed in the default directory or a custom one (auto-detected).
|
|
153
162
|
|
|
154
163
|
```bash
|
|
155
164
|
git clone https://github.com/duanluan/zcode-pro.git && cd zcode-pro
|
|
@@ -179,21 +188,22 @@ Command-line options (see `zcode-pro --help` for all):
|
|
|
179
188
|
| `--cdp-port` | Debug port, default 9333 |
|
|
180
189
|
| `--helper-port` | Local helper port, default 47889 |
|
|
181
190
|
| `--zcode-path` | Explicit path to the ZCode executable |
|
|
182
|
-
| `--inject-only` | Attach to a running instance only; do not launch a new one |
|
|
183
|
-
| `--verbose` | Verbose logging |
|
|
191
|
+
| `--inject-only` (alias `--no-launch`) | Attach to a running instance only; do not launch a new one |
|
|
192
|
+
| `--verbose`, `-v` | Verbose logging |
|
|
184
193
|
| `setup [--desktop] [--uninstall]` | Install/undo local shortcuts (`--desktop` also adds a desktop one) |
|
|
185
194
|
| `wallpaper <op>` | Wallpaper CLI: list / set / rotate / params / upload / delete (see `wallpaper -h`) |
|
|
186
195
|
|
|
187
|
-
Only `--cdp-port`, `--helper-port` and `--zcode-path` also have a `ZCODEPRO_*` environment variable (`ZCODEPRO_CDP_PORT`, `ZCODEPRO_HELPER_PORT`, `ZCODEPRO_ZCODE_PATH`); the command-line option wins.
|
|
196
|
+
Only `--cdp-port`, `--helper-port` and `--zcode-path` also have a `ZCODEPRO_*` environment variable (`ZCODEPRO_CDP_PORT`, `ZCODEPRO_HELPER_PORT`, `ZCODEPRO_ZCODE_PATH`); the command-line option wins. Other variables include `ZCODE_DATA_BASE_DIR` (ZCode data root) and `RTK_DIR` (rtk state directory); see `zcode-pro --help` for the full list.
|
|
188
197
|
|
|
189
198
|
Configuration and data locations:
|
|
190
199
|
|
|
191
200
|
| Content | Location |
|
|
192
201
|
| --- | --- |
|
|
193
|
-
| Feature switches,
|
|
194
|
-
| Startup diagnostics log
|
|
202
|
+
| Feature switches, appearance (theme / wallpaper / styles), shortcuts, proxy and sync settings | `~/.zcode/zcodepro.json` |
|
|
203
|
+
| Startup diagnostics log | `~/.zcode/zcodepro.log` |
|
|
195
204
|
| Global prompt | `~/.zcode/AGENTS.md` |
|
|
196
205
|
| ZCode behavior settings (skill listing budget etc.) | `~/.zcode/cli/config.json` |
|
|
206
|
+
| Wallpaper library | `~/.zcode/backgrounds/` |
|
|
197
207
|
| Vision proxy (zcode-vision plugin) | `~/.zcode/zcode-vision.json` |
|
|
198
208
|
| rtk compression (rtk plugin) | `~/.zcode-rtk/` |
|
|
199
209
|
| Headroom (headroom plugin) | `~/.zcode/headroom.json` |
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.en.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
ZCode
|
|
5
|
+
ZCode 桌面版增强工具:壁纸引擎(图片/视频/网页)、皮肤主题、会话快捷切换、状态栏统计等三十余项界面与体验增强。不修改客户端文件,通过 ZCode Pro 快捷方式或终端命令 `zcode-pro` 启动即可生效。
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/zcode-pro) [](https://pypi.org/project/zcode-pro/) [](https://aur.archlinux.org/packages/zcode-pro) [](https://github.com/duanluan/zcode-pro#-windows) [](https://github.com/duanluan/zcode-pro#-linux--macos) [](https://github.com/duanluan/zcode-pro#-linux--macos) [](https://github.com/duanluan/zcode-pro#-交流与反馈) [](https://github.com/duanluan/zcode-pro#-交流与反馈)
|
|
8
8
|
|
|
@@ -10,73 +10,82 @@ ZCode 桌面版增强工具:壁纸引擎(图片/视频/网页)、皮肤主
|
|
|
10
10
|
|
|
11
11
|
## ✨ 功能
|
|
12
12
|
|
|
13
|
-
按主题分组排列:分类列为设置弹窗的标签页,带 `·` 的(如“行为 ·
|
|
13
|
+
按主题分组排列:分类列为设置弹窗的标签页,带 `·` 的(如“行为 · 全局提示词”)为标签页内的二级子标签。功能表按主题归类,截图按弹窗内的标签页顺序排列。
|
|
14
14
|
|
|
15
15
|
| 分类 | 功能 | 说明 |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| 功能 | 项目菜单增强(打开文件夹 / 复制路径) | 项目“更多”菜单:在系统文件管理器中打开项目目录,或复制项目路径 |
|
|
18
|
-
| |
|
|
19
|
-
| | ~~切换文件夹~~(已停用) | 将项目指向另一个文件夹,侧边栏、标签页与任务历史一并迁移;切换前先停止运行中的任务;历史检查点仍引用原路径;ZCode ≥ 3.16.1 官方已支持一个项目挂多个目录,本功能随之停用 |
|
|
20
|
-
| | 会话拖动排序 | 拖动调整置顶、项目与分组中的会话顺序,重启后不变 |
|
|
18
|
+
| | 侧边栏会话拖动排序 | 拖动调整置顶、项目与分组中的会话顺序,重启后不变 |
|
|
21
19
|
| | 会话快捷切换 | `alt+z` 在当前与上次会话间来回切换;按住 `alt` 按 `x`(上移)/ `c`(下移)在最近会话列表中选择(初始 10 条,`c` 到底再加载 5 条),`alt+e` 直接打开最近 10 条,`alt+r` 打开正在运行与运行完未查看的任务;方向键同样可选,`Enter` 或点击行切换;五个入口键可在 设置 → 快捷键 中修改 |
|
|
22
20
|
| | 重命名会话名锁定 | 手动重命名过的会话不再被自动标题覆盖,侧栏始终显示重命名后的名字 |
|
|
23
21
|
| | 已置顶分区可折叠 | 侧边栏“已置顶”标题可点击折叠/展开其任务列表,折叠状态会记住 |
|
|
24
22
|
| | 文件菜单增强 | 会话中文件链接的右键菜单新增“默认应用打开”“打开所在目录” |
|
|
25
|
-
| |
|
|
26
|
-
| | 插件界面沙箱回收 | 插件卡片沙箱数量达到上限时释放最早创建的(正在查看的排最后),避免 64
|
|
23
|
+
| | 图片右键复制 | 右键会话中的图片或放大的预览图,复制到剪贴板 |
|
|
24
|
+
| | 插件界面沙箱回收 | 插件卡片沙箱数量达到上限时释放最早创建的(正在查看的排最后),避免 64 个名额耗尽后新卡片打不开;被释放的旧卡片重新打开所在会话即恢复 |
|
|
27
25
|
| | 插件卡片自动重试 | 名额腾出后自动补挂因 64 上限失败的插件卡片(自动点“重新加载”) |
|
|
28
|
-
| | 折叠时任务运行中提示 |
|
|
26
|
+
| | 折叠时任务运行中提示 | 有会话在运行时,折叠的项目行与“项目”“任务”“已置顶”分区头显示与任务运行中同款的加载图标,全部结束后消失 |
|
|
27
|
+
| | 子代理运行中提示 | 任务行在后台子代理运行时显示机器人图标、后台终端命令运行时显示终端图标(同时运行机器人优先);未读圆点让位到行尾常显;会话运行中始终显示转圈图标;项目未读徽标忽略错误行 |
|
|
29
28
|
| | 新标签页插件面板入口 | 官方“新标签页”只列官方面板与推荐的官方插件;本功能把第三方市场插件(headroom、rtk 等)的面板卡片加进去,点击在侧边面板打开 |
|
|
30
29
|
| | 复制表格 | 回答内容表格的工具条新增“复制表格”按钮:以富文本写入剪贴板,粘贴进 Excel / 富文本编辑器即被识别为表格(分列成格、不带边框与背景色);纯文本场景自动降级为 Tab 分列 |
|
|
31
30
|
| | 会话 ID 显示为任务名链接 | 提问与回答里出现的会话 ID(`sess_` / `session_` 开头)显示为任务名,点击切换到该会话,悬停显示原 ID;代码块里的 ID 不处理 |
|
|
31
|
+
| | 模型名显示供应商 | 输入框的模型名前显示供应商名(如 BigModel-Max1 / glm-5.3),区分同名模型 |
|
|
32
|
+
| | 编辑时保持当前模型 | 编辑上一条消息时保持你点编辑前选的模型,不换成这条消息当时用的模型;进入编辑后仍可再换 |
|
|
32
33
|
| | 导入会话 | 把 Codex、Claude Code、dsh、pi 的历史会话复制成 ZCode 任务:按来源分标签,可搜索、按项目筛选、多选导入;导入是快照,保留文字、思考、工具调用和图片,不改变源会话 |
|
|
33
|
-
| |
|
|
34
|
+
| | 插件自动更新 | 一键检查并更新 zcode-plugins 市场插件,可设为打开设置时自动更新 |
|
|
34
35
|
| 快捷键 | 会话快捷键自定义 | 会话快捷切换的五个入口键(默认 `alt+z` / `x` / `c` / `e` / `r`)逐个修改:点“修改”后按下新键位(字母/数字)即生效,键位冲突会提示;可一键重置为默认 |
|
|
35
|
-
| 行为 | ZCode CLI | 技能清单检查:统计完整清单字符数并对照注入预算,超出时提示清单被降级为只剩技能名和路径并给出建议预算;可配置技能系统、清单预算、额外技能目录与功能开关;工作区记忆仍在官方 设置 → Agent 能力 → 记忆 中配置,改动新会话起生效 |
|
|
36
|
-
| | 全局提示词 | 编辑所有项目共享的默认指令,新会话起生效 |
|
|
37
|
-
| | 自动重命名 | 新会话开始作答时按所选供应商与提示词生成任务名(默认跟随当前会话、glm-5.3-flash,提问阶段的多条消息都计入),生成结果按手动重命名保存,官方自动标题不再覆盖;可在设置中选供应商、模型并编辑提示词,附测试按钮;任务行悬浮按钮与右键菜单“重命名任务”下可按最近问答手动重命名,入口开关与问答数在设置里 |
|
|
36
|
+
| 行为 · ZCode CLI | ZCode CLI | 技能清单检查:统计完整清单字符数并对照注入预算,超出时提示清单被降级为只剩技能名和路径并给出建议预算;可配置技能系统、清单预算、额外技能目录与功能开关;工作区记忆仍在官方 设置 → Agent 能力 → 记忆 中配置,改动新会话起生效 |
|
|
37
|
+
| 行为 · 全局提示词 | 全局提示词 | 编辑所有项目共享的默认指令,新会话起生效 |
|
|
38
|
+
| 行为 · 自动重命名 | 自动重命名 | 新会话开始作答时按所选供应商与提示词生成任务名(默认跟随当前会话、glm-5.3-flash,提问阶段的多条消息都计入),生成结果按手动重命名保存,官方自动标题不再覆盖;可在设置中选供应商、模型并编辑提示词,附测试按钮;任务行悬浮按钮与右键菜单“重命名任务”下可按最近问答手动重命名,入口开关与问答数在设置里 |
|
|
38
39
|
| 外观 · 样式 | 侧栏菜单并入顶栏 | “新建任务 / 搜索 / 自动化 / 插件市场”收成顶部导航栏的图标按钮,对应界面打开时高亮 |
|
|
39
40
|
| | 字体调整 | 自定义界面字体(除终端外全部界面文字)、提问字体与回答字体 |
|
|
40
41
|
| | 侧栏间距调整 | 微调侧边栏项目间距与任务间距 |
|
|
41
42
|
| | 界面样式调整 | 微调段落间距、内容宽度、各类行高、列表/引用块/表格间距与单元格边距;聚焦输入框时高亮预览受影响区域 |
|
|
42
|
-
| 外观 · 状态栏 | 状态栏统计 |
|
|
43
|
+
| 外观 · 状态栏 | 状态栏统计 | 提问输入框右下角显示统计项:最近输出 tokens/s(流式生成中按文本增长估算并标 ≈,调用完成后切到官方 60 秒窗口值,回答结束后停留在最后速率)、平均缓存命中率、累计输入/输出、上下文占用(占用高时变色)、主请求数、今日/累计 token、任务总数,以官方数据为主;各项的顺序与显隐在 设置 → 外观 → 状态栏 调整。速率与每轮用量按会话记录统计,子代理是独立的会话记录、不计入 |
|
|
43
44
|
| | 每轮回答 token 用量 | 在每条回答末尾操作按钮的时间后面显示该轮的输入/输出 token 与缓存命中率(本地记录只保留最近一段,更早的回答不标注) |
|
|
44
45
|
| 外观 · 主题 | 界面皮肤 | 内置 11 套知名编辑器主题配色(Dracula / Nord / Tokyo Night / Catppuccin / Gruvbox / One Dark / Solarized / Rosé Pine / Everforest / Night Owl / Kanagawa),自动匹配 ZCode 的浅色 / 深色模式;另可自定义主题:浅色、深色各选 5 个颜色生成整套配色,改色实时生效 |
|
|
45
46
|
| 外观 · 壁纸 | 壁纸 | 整窗铺背景,五种来源:无背景 / 本地图库(可传多张、点选当前、可单删)/ 文件夹(原地读取,按间隔定时轮换,可选随机或按文件名顺序)/ 网址(可按间隔定时刷新,配合随机图 API)/ 网页(沙箱 iframe 铺在后方);左栏 / 中栏 / 右栏可分区独立设置(仅静态图,缩放与遮罩可单独调、可跟随全局);遮罩不透明度(图片向主题背景色淡化程度)、图片模糊、面板不透明度(左栏、中栏与右栏的不透明程度)、插件卡片遮罩(插件卡片透出壁纸时垫在卡片底下的主题色遮罩)四个滑杆调节,另有转场方式、视频音量/倍速/帧率上限与暂停条件;设置弹窗默认磨砂透出壁纸(可在该页关掉),菜单等浮层保持不透明保可读;图库随 WebDAV 同步的 zcode-pro 组一起上传(覆盖式,不留历史版本) |
|
|
46
47
|
| 性能 | 空闲项目内存回收 | 长时间未使用且无任务运行的项目自动释放其占用的内存,启动后也会自动回收一次未使用的项目;会话记录不受影响,再次打开时自动恢复(时长可调) |
|
|
47
|
-
| 代理 | 软件代理 |
|
|
48
|
+
| 代理 | 软件代理 | 为插件市场更新安装、headroom 与 rtk 的安装升级设置 HTTP 代理(WebDAV 同步可选走代理,默认关),附连通性检测 |
|
|
48
49
|
| 同步 | 设置同步 | 手动把 ZCode Pro 设置与模型设置备份到 WebDAV,或在新电脑上恢复;仅在点击时传输 |
|
|
49
50
|
| Vision | 视觉代理 | 主模型不识图时自动交给视觉模型识别图片,识别描述带给主模型;可视化编辑代理链(zcode-vision 插件) |
|
|
50
51
|
| Headroom | Headroom 压缩 | 管理压缩设备、省电切换与代理运行状态,headroom 本体检查更新与升级(headroom 插件) |
|
|
51
52
|
| rtk | rtk 压缩 | 管理改写提醒与命令白名单,rtk 本体检查更新与一键升级(rtk 插件) |
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
各项功能均可在设置弹窗中开关或调整;建议使用最新版 ZCode,旧版本部分功能可能不可用。
|
|
54
55
|
|
|
55
56
|
## 🎛 设置界面
|
|
56
57
|
|
|
57
58
|
右键点击 ZCode 侧边栏底部的设置按钮(齿轮)即可打开设置窗口,主要标签页如下:
|
|
58
59
|
|
|
59
|
-
| 功能 |
|
|
60
|
+
| 功能 | 外观 · 壁纸 | 外观 · 主题 |
|
|
60
61
|
| --- | --- | --- |
|
|
61
|
-
| <img src="docs/settings/01-features.png" width="280"> | <img src="docs/settings/02-
|
|
62
|
+
| <img src="docs/settings/01-features.png" width="280"> | <img src="docs/settings/02-appearance-wallpaper.png" width="280"> | <img src="docs/settings/03-appearance-theme.png" width="280"> |
|
|
62
63
|
|
|
63
|
-
|
|
|
64
|
+
| 外观 · 样式 | 外观 · 状态栏 | 行为 · ZCode CLI |
|
|
64
65
|
| --- | --- | --- |
|
|
65
|
-
| <img src="docs/settings/04-
|
|
66
|
+
| <img src="docs/settings/04-appearance-styles.png" width="280"> | <img src="docs/settings/05-appearance-status-bar.png" width="280"> | <img src="docs/settings/06-behavior-zcode-cli.png" width="280"> |
|
|
66
67
|
|
|
67
|
-
|
|
|
68
|
+
| 行为 · 全局提示词 | 行为 · 自动重命名 | 性能 |
|
|
68
69
|
| --- | --- | --- |
|
|
69
|
-
| <img src="docs/settings/07-
|
|
70
|
+
| <img src="docs/settings/07-behavior-global-prompt.png" width="280"> | <img src="docs/settings/08-behavior-auto-rename.png" width="280"> | <img src="docs/settings/09-performance.png" width="280"> |
|
|
70
71
|
|
|
71
|
-
|
|
|
72
|
+
| 快捷键 | 代理 | 同步 |
|
|
72
73
|
| --- | --- | --- |
|
|
73
|
-
| <img src="docs/settings/10-
|
|
74
|
+
| <img src="docs/settings/10-shortcuts.png" width="280"> | <img src="docs/settings/11-proxy.png" width="280"> | <img src="docs/settings/12-sync.png" width="280"> |
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
| 导入会话 | Vision | Headroom |
|
|
77
|
+
| --- | --- | --- |
|
|
78
|
+
| <img src="docs/settings/13-session-import.png" width="280"> | <img src="docs/settings/14-vision.png" width="280"> | <img src="docs/settings/15-headroom.png" width="280"> |
|
|
79
|
+
|
|
80
|
+
| rtk |
|
|
81
|
+
| --- |
|
|
82
|
+
| <img src="docs/settings/16-rtk.png" width="280"> |
|
|
83
|
+
|
|
84
|
+
> Vision / Headroom / rtk 三个标签页来自同名插件,未安装时显示一键安装卡,装好后恢复完整设置。
|
|
76
85
|
|
|
77
86
|
## 📦 安装与使用
|
|
78
87
|
|
|
79
|
-
>
|
|
88
|
+
> **版本建议**:推荐使用最新版 ZCode,旧版本部分功能可能不可用。
|
|
80
89
|
|
|
81
90
|
安装后,通过应用菜单 / 开始菜单中的“ZCode Pro”快捷方式或终端命令 `zcode-pro` 启动 ZCode,增强在该方式下自动生效;使用原有 ZCode 入口启动时不加载增强。
|
|
82
91
|
|
|
@@ -149,7 +158,7 @@ git clone https://aur.archlinux.org/zcode-pro.git && cd zcode-pro && makepkg -si
|
|
|
149
158
|
|
|
150
159
|
### 🚀 手动运行(不安装)
|
|
151
160
|
|
|
152
|
-
无需单独安装 Node.js:优先使用 ZCode
|
|
161
|
+
无需单独安装 Node.js:优先使用 ZCode 内置运行时;ZCode 装在默认或自定义目录均可(自动探测)。
|
|
153
162
|
|
|
154
163
|
```bash
|
|
155
164
|
git clone https://github.com/duanluan/zcode-pro.git && cd zcode-pro
|
|
@@ -168,7 +177,7 @@ bin\zcode-pro.cmd setup
|
|
|
168
177
|
|
|
169
178
|
- 启动器会以 `--remote-debugging-port`(默认 9333)拉起 ZCode,靠这个调试端口注入增强脚本。该端口没有鉴权,本机任何进程(含其他系统用户)连上后可以在 ZCode 页面里执行任意脚本,只适合在个人电脑上使用;可用 `--cdp-port <端口>` 或环境变量 ZCODEPRO_CDP_PORT 换端口(挡得住随手扫描,挡不住有心的本机进程)。
|
|
170
179
|
- 本机服务只监听 127.0.0.1:47889,所有接口都要随机 token 才能调用;壁纸等媒体文件的直链上也带着同一个 token,外部网页读不走图库文件。
|
|
171
|
-
- WebDAV
|
|
180
|
+
- WebDAV 密码与自动重命名用的 API Key 明文存在本机配置文件里(文件权限限本人读写),同步上传时这两项只留本机;自定义模型供应商的 API Key 会随“模型设置”组上传到你自己的 WebDAV(这是同步模型配置本身需要的)。
|
|
172
181
|
|
|
173
182
|
## 📖 参考
|
|
174
183
|
|
|
@@ -179,21 +188,22 @@ bin\zcode-pro.cmd setup
|
|
|
179
188
|
| `--cdp-port` | 调试端口,默认 9333 |
|
|
180
189
|
| `--helper-port` | 本地辅助服务端口,默认 47889 |
|
|
181
190
|
| `--zcode-path` | 显式指定 ZCode 可执行文件 |
|
|
182
|
-
| `--inject-only
|
|
183
|
-
| `--verbose` | 详细日志 |
|
|
191
|
+
| `--inject-only`(别名 `--no-launch`) | 只接管已在运行的实例,不启动新实例 |
|
|
192
|
+
| `--verbose`、`-v` | 详细日志 |
|
|
184
193
|
| `setup [--desktop] [--uninstall]` | 安装/撤销本机快捷方式(`--desktop` 同时加桌面) |
|
|
185
194
|
| `wallpaper <操作>` | 壁纸命令行:list / set / rotate / params / upload / delete(`wallpaper -h` 看详细用法) |
|
|
186
195
|
|
|
187
|
-
仅 `--cdp-port`、`--helper-port`、`--zcode-path` 三个选项另有对应环境变量 `ZCODEPRO_CDP_PORT`、`ZCODEPRO_HELPER_PORT`、`ZCODEPRO_ZCODE_PATH
|
|
196
|
+
仅 `--cdp-port`、`--helper-port`、`--zcode-path` 三个选项另有对应环境变量 `ZCODEPRO_CDP_PORT`、`ZCODEPRO_HELPER_PORT`、`ZCODEPRO_ZCODE_PATH`,命令行参数优先。另有 `ZCODE_DATA_BASE_DIR`(ZCode 数据根目录)、`RTK_DIR`(rtk 状态目录)等环境变量,完整列表见 `zcode-pro --help`。
|
|
188
197
|
|
|
189
198
|
配置与数据位置:
|
|
190
199
|
|
|
191
200
|
| 内容 | 位置 |
|
|
192
201
|
| --- | --- |
|
|
193
|
-
|
|
|
194
|
-
|
|
|
202
|
+
| 功能开关、外观(主题/壁纸/样式)、快捷键、代理与同步配置 | `~/.zcode/zcodepro.json` |
|
|
203
|
+
| 启动诊断日志 | `~/.zcode/zcodepro.log` |
|
|
195
204
|
| 全局提示词 | `~/.zcode/AGENTS.md` |
|
|
196
205
|
| ZCode 行为配置(技能清单预算等) | `~/.zcode/cli/config.json` |
|
|
206
|
+
| 壁纸图库 | `~/.zcode/backgrounds/` |
|
|
197
207
|
| 视觉代理(zcode-vision 插件) | `~/.zcode/zcode-vision.json` |
|
|
198
208
|
| rtk 压缩(rtk 插件) | `~/.zcode-rtk/` |
|
|
199
209
|
| Headroom(headroom 插件) | `~/.zcode/headroom.json` |
|