@rezti/dsh-rez-suite 0.1.10 → 0.1.13

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  # dsh-rez-suite
2
2
 
3
- **员工入口。** 装这一个包即可启用 ReZ-TI 工作身份 + 公司 MCP。
3
+ **Legacy monolith.** New work goes into the split packages (`dsh-rez-sso`, `dsh-rez-odoo`, `dsh-rez-wechat`, …). This bundle still ships the Web GUI panel (including WeChat QR) and will be retired once the split packages cover the panel.
4
+
5
+ If you still `dsh plugin add @rezti/dsh-rez-suite`, do **not** also add the child packages — the suite patch already inserts them.
4
6
 
5
7
  ```bash
6
- dsh plugin --profile web add @rezti/dsh-rez-suite
8
+ dsh plugin --profile web add link:$(pwd)
7
9
  ```
8
10
 
9
- 组成见仓库根 README。子包不要单独 `dsh plugin add`。
10
-
11
- 配置在 **设置 → 插件 → 插件配置** 展开 **ReZ-TI**(同页还有独立的 ReZ-TI 标签)。Odoo / Nextcloud / WeCom / HA 的地址和密钥都在「配置」页。个人微信在卡片的「微信」页扫码,然后直接在微信里说话;消息进左侧「微信」文件夹并延续同一会话。状态页看的是本机已注册的 `mcp__odoo__*` 等工具,不是直接 ping 远端 MCP。
11
+ Personal WeChat scan-and-chat lives in `@rezti/dsh-rez-wechat`; the QR tab is still on this panel for now. See the repo root README for the three-layer product map.
package/README.zh.md CHANGED
@@ -1,13 +1,100 @@
1
1
  # dsh-rez-suite
2
2
 
3
- **员工入口。** 只装这一个包:工作身份(SSO)和 Odoo / Nextcloud / 企业微信 / Home Assistant 的官方 MCP 会一起启用。
3
+ **旧单体,将退役。** 新代码进 `dsh-rez-sso` / `dsh-rez-odoo` / `dsh-rez-wechat` 等拆分包。本包暂时保留 Web 面板(含个人微信扫码页)和自研 MCP Host。若仍 `plugin add` 本包,不要再单独 add 子包,会重复注册。
4
4
 
5
- ```bash
6
- dsh plugin --profile web add @rezti/dsh-rez-suite
7
- ```
5
+ DSH Web GUI 的「Rez Suite」插件包:在插件内部启动一个 MCP Host,支持 **stdio** 与 **streamable-http** 两种 MCP 连接;提供 Web 配置面板(连通性一键验证)、按角色动态筛选 MCP 工具的 Preset 加载器,以及 SQLite 本地 Token/审计账本。
8
6
 
9
- 密钥用环境变量或 dsh-credentials:`REZ_ODOO_TOKEN`、`REZ_NEXTCLOUD_PASSWORD`、`REZ_WECHAT_WEBHOOK`、`REZ_HA_TOKEN`。未配置时不拉起对应 MCP
7
+ ## 适配的 MCP 配置
10
8
 
11
- 配置在 **设置 → 插件 → 插件配置** 展开 **ReZ-TI**(同页还有独立的 ReZ-TI 标签)。Odoo / Nextcloud / 企微 / HA 的地址和密钥都在「配置」页。个人微信在卡片的「微信」页扫码,然后直接在微信里说话。消息进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认。状态页看的是本机已注册的 `mcp__odoo__*` 等工具,不是直接 ping 远端 MCP。
9
+ 插件默认直接适配下面这套服务器(也可在面板中增删改):
12
10
 
13
- 子包不要再单独 `dsh plugin add`,否则会重复注册 MCP。
11
+ \`\`\`json
12
+ {
13
+ "homeassistant": {
14
+ "enabled": false,
15
+ "transport": "streamable-http",
16
+ "url": "http://homeassistant.local:8123/api/mcp",
17
+ "headers": { "Authorization": "Bearer <token>" }
18
+ },
19
+ "odoo": {
20
+ "enabled": false,
21
+ "transport": "streamable-http",
22
+ "url": "https://www.rez-ti.com/mcp",
23
+ "headers": { "Authorization": "Bearer <token>" }
24
+ },
25
+ "nextcloud": {
26
+ "enabled": false,
27
+ "transport": "stdio",
28
+ "command": "uvx",
29
+ "args": ["nextcloud-mcp-server", "run", "--transport", "stdio"],
30
+ "env": {
31
+ "NEXTCLOUD_HOST": "https://cloud.rez-ti.com",
32
+ "NEXTCLOUD_USERNAME": "rez-ti-2",
33
+ "NEXTCLOUD_PASSWORD": "<password>"
34
+ }
35
+ },
36
+ "tapd": {
37
+ "enabled": false,
38
+ "transport": "stdio",
39
+ "command": "npx",
40
+ "args": ["-y", "@xihe-lab/tapd-mcp-server"],
41
+ "env": {
42
+ "TAPD_ACCESS_TOKEN": "<token>",
43
+ "TAPD_DEFAULT_WORKSPACE_ID": "54488930",
44
+ "TAPD_NICK_NAME": "凯文智能家居"
45
+ }
46
+ },
47
+ "dify": {
48
+ "enabled": false,
49
+ "transport": "stdio",
50
+ "command": "/opt/homebrew/bin/dify-mcp-server",
51
+ "env": {
52
+ "DIFY_BASE_URL": "https://dify.rez-ti.com",
53
+ "DIFY_EMAIL": "kelvin@rez-ti.com",
54
+ "DIFY_PASSWORD": "<password>"
55
+ }
56
+ }
57
+ }
58
+ \`\`\`
59
+
60
+ 插件另外内置两个本地 stdio MCP Server(默认启用):
61
+
62
+ - \`fs\` → \`servers/fs-mcp-server.mjs\`,根目录 \`~/.dsh/dsh-rez-suite/fs\`
63
+ - \`sqlite\` → \`servers/sqlite-mcp-server.mjs\`,数据库 \`~/.dsh/dsh-rez-suite.sqlite\`
64
+
65
+ ## 与标准 MCP 配置的差异
66
+
67
+ 你的标准 MCP 配置是「一个 JSON 文件」,插件内部统一转换为 \`config.servers\` 记录,字段一一对应:
68
+
69
+ | 标准 MCP 字段 | 插件字段 |
70
+ |---|---|
71
+ | \`url\` | \`transport: "streamable-http"\` + \`url\` |
72
+ | \`headers\` | \`headers\` |
73
+ | \`command\` | \`transport: "stdio"\` + \`command\` |
74
+ | \`args\` | \`args\` |
75
+ | \`env\` | \`env\` |
76
+
77
+ 面板读取配置时,所有 \`env\` / \`headers\` 值都会掩码为 \`********\`;保存时只做路径级更新,不会把掩码写回真实密钥。
78
+
79
+ ## 安装
80
+
81
+ \`\`\`bash
82
+ cd /path/to/dsh-rez-suite
83
+ pnpm install
84
+ pnpm build
85
+ dsh plugin --profile web add link:$(pwd)
86
+ \`\`\`
87
+
88
+ 刷新 \`http://127.0.0.1:3080\` 后,左侧出现「Rez」入口。
89
+
90
+ ## 角色工具筛选
91
+
92
+ MCP 工具按 \`mcp__<server>__<rawName>\` 注册,Preset 加载器用通配符匹配 \`server + 工具名\`。规则位于 \`src/presets.ts\`,可按团队实际工具名调整;\`role: all\` 注册全部工具。
93
+
94
+ - \`engineer\`:odoo 检索/读取、homeassistant 状态读取、tapd/dify 查询、fs/sqlite 读取
95
+ - \`sales\`:odoo CRM/销售、nextcloud 上传、wecom 发送
96
+ - \`operations\`:odoo 报表/库存/采购、homeassistant 控制、tapd 增删改、dify workflow、nextcloud 管理、wecom 群发
97
+
98
+ ## Token / 审计
99
+
100
+ 插件监听 MCP 工具调用,写入 \`~/.dsh/dsh-rez-suite.sqlite\`。Token 按参数/输出文本长度估算(4 字符 ≈ 1 token),费用按面板单价计算,月预算超限仅在面板告警、不阻断调用。
package/cordis.patch.yml CHANGED
@@ -1,6 +1,6 @@
1
- # Employee-facing composition. `dsh plugin add` this package once.
2
- # Subpackages are libraries resolved from this bundle's dependencies;
3
- # they must not also be added as DSH bundles or MCP rows will duplicate.
1
+ # Legacy composition: `dsh plugin add` this package still inserts the split
2
+ # bundles. New installs should `plugin add` sso / odoo / wechat separately.
3
+ # Do not also add the child packages or MCP rows will duplicate.
4
4
  #
5
5
  # MCP rows are started by the domain plugins after rezSso resolves secrets.
6
6
  # Do not list @deepseek-ai/dsh-mcp-client here: empty process.env would spawn
package/lib/client.d.ts CHANGED
@@ -7338,14 +7338,15 @@ declare const zh: {
7338
7338
  readonly 'common.loading': "加载中…";
7339
7339
  readonly 'common.error': "出错:{error}";
7340
7340
  readonly 'common.refresh': "刷新";
7341
- readonly 'weixin.intro': "和 QClaw 一样:扫一次码,然后直接在微信里说话。消息会进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认(选了 Kimi 就走 Kimi)。网页端要开着。";
7341
+ readonly 'weixin.intro': "和 QClaw 一样:扫一次码,然后直接在微信里说话。消息会进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认(选了 Kimi 就走 Kimi)。网页端要开着。归档了的会话再从微信说话会自动回到侧栏。发「重启对话」会新开一条可见会话。";
7342
7342
  readonly 'weixin.login': "扫码登录";
7343
+ readonly 'weixin.reconnect': "重新连接";
7343
7344
  readonly 'weixin.logout': "退出微信";
7344
7345
  readonly 'weixin.verify': "提交配对码";
7345
7346
  readonly 'weixin.verifyPlaceholder': "手机上显示的数字";
7346
7347
  readonly 'weixin.qrAlt': "微信登录二维码";
7347
7348
  readonly 'weixin.listening': "通道在听:微信 → 网页「微信」会话(同一条,不另开窗口)→ 回微信。";
7348
- readonly 'weixin.loggedIn': "已登录,通道未在听。再点扫码登录即可拉起。";
7349
+ readonly 'weixin.loggedIn': "已登录,通道未在听。点「重新连接」即可拉起,不必再扫码。";
7349
7350
  readonly 'weixin.loggedOut': "尚未登录。";
7350
7351
  };
7351
7352
  type RezKey = keyof typeof zh;
package/lib/client.js CHANGED
@@ -4,7 +4,7 @@ window.__ModuleLoader__.load({
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
- (function(){var id="dsh-rez-suite-css";if(typeof document==="undefined"||document.getElementById(id))return;var s=document.createElement("style");s.id=id;s.textContent=".WRGRRW_shell {\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n display: flex;\n}\n\n.WRGRRW_card {\n border: 1px solid var(--dsw-alias-border-l2);\n background: var(--dsw-alias-bg-layer-3);\n border-radius: 12px;\n list-style: none;\n transition: border-color .16s, background .16s;\n}\n\n.WRGRRW_card:hover {\n border-color: var(--dsw-alias-label-dimmed);\n}\n\n.WRGRRW_cardOpen {\n background: var(--dsw-alias-bg-layer-2);\n border-color: var(--dsw-alias-label-dimmed);\n}\n\n.WRGRRW_header {\n appearance: none;\n width: 100%;\n font: inherit;\n color: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 12px;\n align-items: center;\n gap: 12px;\n padding: 14px 16px;\n display: flex;\n}\n\n.WRGRRW_header:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary);\n outline-offset: -2px;\n}\n\n.WRGRRW_headText {\n flex-direction: column;\n flex: 1;\n gap: 4px;\n min-width: 0;\n display: flex;\n}\n\n.WRGRRW_name {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n line-height: 1.4;\n}\n\n.WRGRRW_description {\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 1.5;\n}\n\n.WRGRRW_chevron {\n color: var(--dsw-alias-label-tertiary);\n flex: none;\n transition: transform .16s;\n}\n\n.WRGRRW_chevronOpen {\n transform: rotate(180deg);\n}\n\n.WRGRRW_body {\n border-top: 1px solid var(--dsw-alias-border-l2);\n margin: 0 16px 12px;\n padding-top: 8px;\n}\n\n.WRGRRW_tabBar {\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n flex: none;\n gap: 2px;\n display: flex;\n}\n\n.WRGRRW_tab {\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n background: none;\n border: none;\n border-bottom: 2px solid #0000;\n border-radius: 6px 6px 0 0;\n padding: 7px 14px;\n font-size: 13px;\n}\n\n.WRGRRW_tab:hover {\n color: var(--dsw-alias-label-primary);\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.WRGRRW_tab[data-active] {\n color: var(--dsw-alias-label-primary);\n border-bottom-color: var(--dsw-alias-state-business-primary);\n font-weight: 600;\n}\n\n.WRGRRW_tabBody {\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n padding: 12px 0 4px;\n display: flex;\n}\n\n.WRGRRW_section {\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-bg-base));\n border-radius: 10px;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n display: flex;\n}\n\n.WRGRRW_sectionTitle {\n color: var(--dsw-alias-label-primary);\n margin: 0;\n font-size: 13px;\n font-weight: 600;\n}\n\n.WRGRRW_field {\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n display: flex;\n}\n\n.WRGRRW_label {\n color: var(--dsw-alias-label-secondary);\n font-size: 12.5px;\n}\n\n.WRGRRW_input, .WRGRRW_select {\n color: var(--dsw-alias-label-primary);\n background: var(--dsw-specific-input-major, var(--dsw-alias-bg-layer-3));\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n outline: none;\n padding: 6px 8px;\n font-size: 13px;\n}\n\n.WRGRRW_checkbox {\n justify-self: start;\n width: 15px;\n height: 15px;\n}\n\n.WRGRRW_toolbar {\n flex-wrap: wrap;\n flex: none;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.WRGRRW_button {\n border: 1px solid var(--dsw-alias-border-l2);\n background: var(--dsw-specific-input-major, var(--dsw-alias-bg-layer-3));\n color: var(--dsw-alias-label-primary);\n cursor: pointer;\n border-radius: 8px;\n padding: 7px 12px;\n font-size: 13px;\n}\n\n.WRGRRW_button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.WRGRRW_button:disabled {\n opacity: .4;\n cursor: default;\n}\n\n.WRGRRW_primaryButton {\n background: var(--dsw-alias-label-primary);\n border-color: var(--dsw-alias-label-primary);\n color: var(--dsw-alias-bg-layer-3);\n}\n\n.WRGRRW_dangerButton {\n background: var(--dsw-alias-state-danger, #c62828);\n border-color: var(--dsw-alias-state-danger, #c62828);\n color: #fff;\n}\n\n.WRGRRW_qr {\n background: #fff;\n border-radius: 8px;\n width: 200px;\n height: 200px;\n margin: 8px 0;\n display: block;\n}\n\n.WRGRRW_message {\n color: var(--dsw-alias-label-secondary);\n margin: 0;\n font-size: 12.5px;\n line-height: 1.5;\n}\n\n.WRGRRW_error {\n color: var(--dsw-alias-state-danger, #c62828);\n}\n\n.WRGRRW_tableWrap {\n border: 1px solid var(--dsw-alias-border-l1);\n border-radius: 10px;\n overflow: auto;\n}\n\n.WRGRRW_table {\n border-collapse: collapse;\n width: 100%;\n font-size: 12.5px;\n}\n\n.WRGRRW_table th {\n z-index: 1;\n text-align: left;\n background: var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1));\n padding: 8px 10px;\n position: sticky;\n top: 0;\n}\n\n.WRGRRW_table td {\n border-top: 1px solid var(--dsw-alias-border-l1);\n vertical-align: top;\n padding: 8px 10px;\n}\n\n.WRGRRW_badge {\n border-radius: 999px;\n padding: 2px 8px;\n font-size: 11px;\n display: inline-block;\n}\n\n.WRGRRW_badgeOk {\n color: #229a55;\n background: #229a5524;\n}\n\n.WRGRRW_badgeFail {\n color: #c62828;\n background: #c6282824;\n}\n\n.WRGRRW_cards {\n grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));\n gap: 8px;\n display: grid;\n}\n\n.WRGRRW_stat {\n border: 1px solid var(--dsw-alias-border-l1);\n border-radius: 10px;\n padding: 10px;\n}\n\n.WRGRRW_cardLabel {\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n}\n\n.WRGRRW_cardValue {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n}\n";document.head.appendChild(s);})();
7
+ (function(){var id="dsh-rez-suite-css";if(typeof document==="undefined"||document.getElementById(id))return;var s=document.createElement("style");s.id=id;s.textContent=".LOjPTW_shell {\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n display: flex;\n}\n\n.LOjPTW_card {\n border: 1px solid var(--dsw-alias-border-l2);\n background: var(--dsw-alias-bg-layer-3);\n border-radius: 12px;\n list-style: none;\n transition: border-color .16s, background .16s;\n}\n\n.LOjPTW_card:hover {\n border-color: var(--dsw-alias-label-dimmed);\n}\n\n.LOjPTW_cardOpen {\n background: var(--dsw-alias-bg-layer-2);\n border-color: var(--dsw-alias-label-dimmed);\n}\n\n.LOjPTW_header {\n appearance: none;\n width: 100%;\n font: inherit;\n color: inherit;\n text-align: left;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: 12px;\n align-items: center;\n gap: 12px;\n padding: 14px 16px;\n display: flex;\n}\n\n.LOjPTW_header:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary);\n outline-offset: -2px;\n}\n\n.LOjPTW_headText {\n flex-direction: column;\n flex: 1;\n gap: 4px;\n min-width: 0;\n display: flex;\n}\n\n.LOjPTW_name {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n line-height: 1.4;\n}\n\n.LOjPTW_description {\n color: var(--dsw-alias-label-tertiary);\n font-size: 13px;\n line-height: 1.5;\n}\n\n.LOjPTW_chevron {\n color: var(--dsw-alias-label-tertiary);\n flex: none;\n transition: transform .16s;\n}\n\n.LOjPTW_chevronOpen {\n transform: rotate(180deg);\n}\n\n.LOjPTW_body {\n border-top: 1px solid var(--dsw-alias-border-l2);\n margin: 0 16px 12px;\n padding-top: 8px;\n}\n\n.LOjPTW_tabBar {\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n flex: none;\n gap: 2px;\n display: flex;\n}\n\n.LOjPTW_tab {\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n background: none;\n border: none;\n border-bottom: 2px solid #0000;\n border-radius: 6px 6px 0 0;\n padding: 7px 14px;\n font-size: 13px;\n}\n\n.LOjPTW_tab:hover {\n color: var(--dsw-alias-label-primary);\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.LOjPTW_tab[data-active] {\n color: var(--dsw-alias-label-primary);\n border-bottom-color: var(--dsw-alias-state-business-primary);\n font-weight: 600;\n}\n\n.LOjPTW_tabBody {\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n padding: 12px 0 4px;\n display: flex;\n}\n\n.LOjPTW_section {\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-bg-base));\n border-radius: 10px;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n display: flex;\n}\n\n.LOjPTW_sectionTitle {\n color: var(--dsw-alias-label-primary);\n margin: 0;\n font-size: 13px;\n font-weight: 600;\n}\n\n.LOjPTW_field {\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n display: flex;\n}\n\n.LOjPTW_label {\n color: var(--dsw-alias-label-secondary);\n font-size: 12.5px;\n}\n\n.LOjPTW_input, .LOjPTW_select {\n color: var(--dsw-alias-label-primary);\n background: var(--dsw-specific-input-major, var(--dsw-alias-bg-layer-3));\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 8px;\n outline: none;\n padding: 6px 8px;\n font-size: 13px;\n}\n\n.LOjPTW_checkbox {\n justify-self: start;\n width: 15px;\n height: 15px;\n}\n\n.LOjPTW_toolbar {\n flex-wrap: wrap;\n flex: none;\n align-items: center;\n gap: 8px;\n display: flex;\n}\n\n.LOjPTW_button {\n border: 1px solid var(--dsw-alias-border-l2);\n background: var(--dsw-specific-input-major, var(--dsw-alias-bg-layer-3));\n color: var(--dsw-alias-label-primary);\n cursor: pointer;\n border-radius: 8px;\n padding: 7px 12px;\n font-size: 13px;\n}\n\n.LOjPTW_button:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.LOjPTW_button:disabled {\n opacity: .4;\n cursor: default;\n}\n\n.LOjPTW_primaryButton {\n background: var(--dsw-alias-label-primary);\n border-color: var(--dsw-alias-label-primary);\n color: var(--dsw-alias-bg-layer-3);\n}\n\n.LOjPTW_dangerButton {\n background: var(--dsw-alias-state-danger, #c62828);\n border-color: var(--dsw-alias-state-danger, #c62828);\n color: #fff;\n}\n\n.LOjPTW_qr {\n background: #fff;\n border-radius: 8px;\n width: 200px;\n height: 200px;\n margin: 8px 0;\n display: block;\n}\n\n.LOjPTW_message {\n color: var(--dsw-alias-label-secondary);\n margin: 0;\n font-size: 12.5px;\n line-height: 1.5;\n}\n\n.LOjPTW_error {\n color: var(--dsw-alias-state-danger, #c62828);\n}\n\n.LOjPTW_tableWrap {\n border: 1px solid var(--dsw-alias-border-l1);\n border-radius: 10px;\n overflow: auto;\n}\n\n.LOjPTW_table {\n border-collapse: collapse;\n width: 100%;\n font-size: 12.5px;\n}\n\n.LOjPTW_table th {\n z-index: 1;\n text-align: left;\n background: var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1));\n padding: 8px 10px;\n position: sticky;\n top: 0;\n}\n\n.LOjPTW_table td {\n border-top: 1px solid var(--dsw-alias-border-l1);\n vertical-align: top;\n padding: 8px 10px;\n}\n\n.LOjPTW_badge {\n border-radius: 999px;\n padding: 2px 8px;\n font-size: 11px;\n display: inline-block;\n}\n\n.LOjPTW_badgeOk {\n color: #229a55;\n background: #229a5524;\n}\n\n.LOjPTW_badgeFail {\n color: #c62828;\n background: #c6282824;\n}\n\n.LOjPTW_cards {\n grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));\n gap: 8px;\n display: grid;\n}\n\n.LOjPTW_stat {\n border: 1px solid var(--dsw-alias-border-l1);\n border-radius: 10px;\n padding: 10px;\n}\n\n.LOjPTW_cardLabel {\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n}\n\n.LOjPTW_cardValue {\n color: var(--dsw-alias-label-primary);\n font-size: 15px;\n font-weight: 600;\n}\n";document.head.appendChild(s);})();
8
8
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
9
9
  let react = require("react");
10
10
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -99,14 +99,15 @@ const zh = {
99
99
  "common.loading": "加载中…",
100
100
  "common.error": "出错:{error}",
101
101
  "common.refresh": "刷新",
102
- "weixin.intro": "和 QClaw 一样:扫一次码,然后直接在微信里说话。消息会进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认(选了 Kimi 就走 Kimi)。网页端要开着。",
102
+ "weixin.intro": "和 QClaw 一样:扫一次码,然后直接在微信里说话。消息会进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认(选了 Kimi 就走 Kimi)。网页端要开着。归档了的会话再从微信说话会自动回到侧栏。发「重启对话」会新开一条可见会话。",
103
103
  "weixin.login": "扫码登录",
104
+ "weixin.reconnect": "重新连接",
104
105
  "weixin.logout": "退出微信",
105
106
  "weixin.verify": "提交配对码",
106
107
  "weixin.verifyPlaceholder": "手机上显示的数字",
107
108
  "weixin.qrAlt": "微信登录二维码",
108
109
  "weixin.listening": "通道在听:微信 → 网页「微信」会话(同一条,不另开窗口)→ 回微信。",
109
- "weixin.loggedIn": "已登录,通道未在听。再点扫码登录即可拉起。",
110
+ "weixin.loggedIn": "已登录,通道未在听。点「重新连接」即可拉起,不必再扫码。",
110
111
  "weixin.loggedOut": "尚未登录。"
111
112
  };
112
113
  const en = {
@@ -196,14 +197,15 @@ const en = {
196
197
  "common.loading": "Loading…",
197
198
  "common.error": "Error: {error}",
198
199
  "common.refresh": "Refresh",
199
- "weixin.intro": "Same as QClaw: scan once, then talk in WeChat. Messages keep one session under the WeChat folder on the left, using the web default model (Kimi if that is selected). Keep the web UI running.",
200
+ "weixin.intro": "Same as QClaw: scan once, then talk in WeChat. Messages keep one session under the WeChat folder on the left, using the web default model (Kimi if that is selected). Keep the web UI running. Talking in WeChat restores an archived session to the sidebar. Send 重启对话 to start a visible new web session.",
200
201
  "weixin.login": "Scan to log in",
202
+ "weixin.reconnect": "Reconnect",
201
203
  "weixin.logout": "Log out",
202
204
  "weixin.verify": "Submit pairing code",
203
205
  "weixin.verifyPlaceholder": "Digits shown on the phone",
204
206
  "weixin.qrAlt": "WeChat login QR",
205
207
  "weixin.listening": "Channel is live: WeChat → the WeChat folder session on the left → WeChat.",
206
- "weixin.loggedIn": "Logged in, listener idle. Scan again to start it.",
208
+ "weixin.loggedIn": "Logged in, listener idle. Click Reconnect — no need to scan again.",
207
209
  "weixin.loggedOut": "Not logged in."
208
210
  };
209
211
  /** Minimal {name} interpolator shared by the panel helpers. */
@@ -302,42 +304,42 @@ function errorMessage(error) {
302
304
  //#endregion
303
305
  //#region src/client/panel/panel.module.css
304
306
  var panel_module_default = {
305
- "badge": "WRGRRW_badge",
306
- "badgeFail": "WRGRRW_badgeFail",
307
- "badgeOk": "WRGRRW_badgeOk",
308
- "body": "WRGRRW_body",
309
- "button": "WRGRRW_button",
310
- "card": "WRGRRW_card",
311
- "cardLabel": "WRGRRW_cardLabel",
312
- "cardOpen": "WRGRRW_cardOpen",
313
- "cards": "WRGRRW_cards",
314
- "cardValue": "WRGRRW_cardValue",
315
- "checkbox": "WRGRRW_checkbox",
316
- "chevron": "WRGRRW_chevron",
317
- "chevronOpen": "WRGRRW_chevronOpen",
318
- "dangerButton": "WRGRRW_dangerButton",
319
- "description": "WRGRRW_description",
320
- "error": "WRGRRW_error",
321
- "field": "WRGRRW_field",
322
- "header": "WRGRRW_header",
323
- "headText": "WRGRRW_headText",
324
- "input": "WRGRRW_input",
325
- "label": "WRGRRW_label",
326
- "message": "WRGRRW_message",
327
- "name": "WRGRRW_name",
328
- "primaryButton": "WRGRRW_primaryButton",
329
- "qr": "WRGRRW_qr",
330
- "section": "WRGRRW_section",
331
- "sectionTitle": "WRGRRW_sectionTitle",
332
- "select": "WRGRRW_select",
333
- "shell": "WRGRRW_shell",
334
- "stat": "WRGRRW_stat",
335
- "tab": "WRGRRW_tab",
336
- "tabBar": "WRGRRW_tabBar",
337
- "tabBody": "WRGRRW_tabBody",
338
- "table": "WRGRRW_table",
339
- "tableWrap": "WRGRRW_tableWrap",
340
- "toolbar": "WRGRRW_toolbar"
307
+ "badge": "LOjPTW_badge",
308
+ "badgeFail": "LOjPTW_badgeFail",
309
+ "badgeOk": "LOjPTW_badgeOk",
310
+ "body": "LOjPTW_body",
311
+ "button": "LOjPTW_button",
312
+ "card": "LOjPTW_card",
313
+ "cardLabel": "LOjPTW_cardLabel",
314
+ "cardOpen": "LOjPTW_cardOpen",
315
+ "cards": "LOjPTW_cards",
316
+ "cardValue": "LOjPTW_cardValue",
317
+ "checkbox": "LOjPTW_checkbox",
318
+ "chevron": "LOjPTW_chevron",
319
+ "chevronOpen": "LOjPTW_chevronOpen",
320
+ "dangerButton": "LOjPTW_dangerButton",
321
+ "description": "LOjPTW_description",
322
+ "error": "LOjPTW_error",
323
+ "field": "LOjPTW_field",
324
+ "header": "LOjPTW_header",
325
+ "headText": "LOjPTW_headText",
326
+ "input": "LOjPTW_input",
327
+ "label": "LOjPTW_label",
328
+ "message": "LOjPTW_message",
329
+ "name": "LOjPTW_name",
330
+ "primaryButton": "LOjPTW_primaryButton",
331
+ "qr": "LOjPTW_qr",
332
+ "section": "LOjPTW_section",
333
+ "sectionTitle": "LOjPTW_sectionTitle",
334
+ "select": "LOjPTW_select",
335
+ "shell": "LOjPTW_shell",
336
+ "stat": "LOjPTW_stat",
337
+ "tab": "LOjPTW_tab",
338
+ "tabBar": "LOjPTW_tabBar",
339
+ "tabBody": "LOjPTW_tabBody",
340
+ "table": "LOjPTW_table",
341
+ "tableWrap": "LOjPTW_tableWrap",
342
+ "toolbar": "LOjPTW_toolbar"
341
343
  };
342
344
  //#endregion
343
345
  //#region src/client/panel/AuditTab.tsx
@@ -1130,7 +1132,7 @@ function WeixinTab({ api }) {
1130
1132
  onClick: () => {
1131
1133
  login();
1132
1134
  },
1133
- children: tt("weixin.login")
1135
+ children: status?.loggedIn === true ? tt("weixin.reconnect") : tt("weixin.login")
1134
1136
  }), status?.loggedIn === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1135
1137
  type: "button",
1136
1138
  className: panel_module_default.button,
package/lib/index.js CHANGED
@@ -7711,10 +7711,10 @@ const Config = Schema.object({
7711
7711
  });
7712
7712
  const SECTION_ORDER = 150;
7713
7713
  const REZ_GUIDANCE = [
7714
- "本机已安装 ReZ-TI 套件(一次安装):工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / Home Assistant。",
7714
+ "本机已安装 ReZ-TI 拆分包:工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / Home Assistant。",
7715
7715
  "工具名 mcp__odoo__*、mcp__nextcloud__*、mcp__wechat__*、mcp__homeassistant__*。",
7716
7716
  "密钥:REZ_ODOO_TOKEN、REZ_NEXTCLOUD_PASSWORD、REZ_WECHAT_WEBHOOK、REZ_HA_TOKEN。",
7717
- "个人微信(QClaw/ClawBot):打开 设置 → 插件 → ReZ-TI → 微信 扫码,然后直接在微信里说话。消息进入网页左侧「微信」文件夹并延续同一会话,模型跟网页默认。网页端必须开着。不必再跑命令、也不要调用微信 MCP 工具。",
7717
+ "个人微信(QClaw/ClawBot):打开 设置 → 插件 → ReZ-TI → 微信 扫码,然后直接在微信里说话。消息进入网页左侧「微信」文件夹并延续同一会话,模型跟网页默认。网页归档了再从微信说话会自动恢复到侧栏。发「重启对话」会新开一条可见会话并把旧会话归档。网页端必须开着。不必再跑命令、也不要调用微信 MCP 工具。",
7718
7718
  "意图用 rez_set_intent(erp/files/chat/home/auto)。审计用 rez_audit。",
7719
7719
  "涉及资金、对外发送、设备控制、生产写入时先征得用户批准。"
7720
7720
  ].join("");
package/lib/style.css CHANGED
@@ -1,11 +1,11 @@
1
- .WRGRRW_shell {
1
+ .LOjPTW_shell {
2
2
  flex-direction: column;
3
3
  gap: 12px;
4
4
  min-width: 0;
5
5
  display: flex;
6
6
  }
7
7
 
8
- .WRGRRW_card {
8
+ .LOjPTW_card {
9
9
  border: 1px solid var(--dsw-alias-border-l2);
10
10
  background: var(--dsw-alias-bg-layer-3);
11
11
  border-radius: 12px;
@@ -13,16 +13,16 @@
13
13
  transition: border-color .16s, background .16s;
14
14
  }
15
15
 
16
- .WRGRRW_card:hover {
16
+ .LOjPTW_card:hover {
17
17
  border-color: var(--dsw-alias-label-dimmed);
18
18
  }
19
19
 
20
- .WRGRRW_cardOpen {
20
+ .LOjPTW_cardOpen {
21
21
  background: var(--dsw-alias-bg-layer-2);
22
22
  border-color: var(--dsw-alias-label-dimmed);
23
23
  }
24
24
 
25
- .WRGRRW_header {
25
+ .LOjPTW_header {
26
26
  appearance: none;
27
27
  width: 100%;
28
28
  font: inherit;
@@ -38,12 +38,12 @@
38
38
  display: flex;
39
39
  }
40
40
 
41
- .WRGRRW_header:focus-visible {
41
+ .LOjPTW_header:focus-visible {
42
42
  outline: 2px solid var(--dsw-alias-brand-primary);
43
43
  outline-offset: -2px;
44
44
  }
45
45
 
46
- .WRGRRW_headText {
46
+ .LOjPTW_headText {
47
47
  flex-direction: column;
48
48
  flex: 1;
49
49
  gap: 4px;
@@ -51,43 +51,43 @@
51
51
  display: flex;
52
52
  }
53
53
 
54
- .WRGRRW_name {
54
+ .LOjPTW_name {
55
55
  color: var(--dsw-alias-label-primary);
56
56
  font-size: 15px;
57
57
  font-weight: 600;
58
58
  line-height: 1.4;
59
59
  }
60
60
 
61
- .WRGRRW_description {
61
+ .LOjPTW_description {
62
62
  color: var(--dsw-alias-label-tertiary);
63
63
  font-size: 13px;
64
64
  line-height: 1.5;
65
65
  }
66
66
 
67
- .WRGRRW_chevron {
67
+ .LOjPTW_chevron {
68
68
  color: var(--dsw-alias-label-tertiary);
69
69
  flex: none;
70
70
  transition: transform .16s;
71
71
  }
72
72
 
73
- .WRGRRW_chevronOpen {
73
+ .LOjPTW_chevronOpen {
74
74
  transform: rotate(180deg);
75
75
  }
76
76
 
77
- .WRGRRW_body {
77
+ .LOjPTW_body {
78
78
  border-top: 1px solid var(--dsw-alias-border-l2);
79
79
  margin: 0 16px 12px;
80
80
  padding-top: 8px;
81
81
  }
82
82
 
83
- .WRGRRW_tabBar {
83
+ .LOjPTW_tabBar {
84
84
  border-bottom: 1px solid var(--dsw-alias-border-l1);
85
85
  flex: none;
86
86
  gap: 2px;
87
87
  display: flex;
88
88
  }
89
89
 
90
- .WRGRRW_tab {
90
+ .LOjPTW_tab {
91
91
  color: var(--dsw-alias-label-secondary);
92
92
  cursor: pointer;
93
93
  background: none;
@@ -98,18 +98,18 @@
98
98
  font-size: 13px;
99
99
  }
100
100
 
101
- .WRGRRW_tab:hover {
101
+ .LOjPTW_tab:hover {
102
102
  color: var(--dsw-alias-label-primary);
103
103
  background: var(--dsw-alias-interactive-bg-hover);
104
104
  }
105
105
 
106
- .WRGRRW_tab[data-active] {
106
+ .LOjPTW_tab[data-active] {
107
107
  color: var(--dsw-alias-label-primary);
108
108
  border-bottom-color: var(--dsw-alias-state-business-primary);
109
109
  font-weight: 600;
110
110
  }
111
111
 
112
- .WRGRRW_tabBody {
112
+ .LOjPTW_tabBody {
113
113
  flex-direction: column;
114
114
  gap: 12px;
115
115
  min-width: 0;
@@ -117,7 +117,7 @@
117
117
  display: flex;
118
118
  }
119
119
 
120
- .WRGRRW_section {
120
+ .LOjPTW_section {
121
121
  border: 1px solid var(--dsw-alias-border-l1);
122
122
  background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-bg-base));
123
123
  border-radius: 10px;
@@ -127,26 +127,26 @@
127
127
  display: flex;
128
128
  }
129
129
 
130
- .WRGRRW_sectionTitle {
130
+ .LOjPTW_sectionTitle {
131
131
  color: var(--dsw-alias-label-primary);
132
132
  margin: 0;
133
133
  font-size: 13px;
134
134
  font-weight: 600;
135
135
  }
136
136
 
137
- .WRGRRW_field {
137
+ .LOjPTW_field {
138
138
  flex-direction: column;
139
139
  align-items: stretch;
140
140
  gap: 4px;
141
141
  display: flex;
142
142
  }
143
143
 
144
- .WRGRRW_label {
144
+ .LOjPTW_label {
145
145
  color: var(--dsw-alias-label-secondary);
146
146
  font-size: 12.5px;
147
147
  }
148
148
 
149
- .WRGRRW_input, .WRGRRW_select {
149
+ .LOjPTW_input, .LOjPTW_select {
150
150
  color: var(--dsw-alias-label-primary);
151
151
  background: var(--dsw-specific-input-major, var(--dsw-alias-bg-layer-3));
152
152
  border: 1px solid var(--dsw-alias-border-l2);
@@ -156,13 +156,13 @@
156
156
  font-size: 13px;
157
157
  }
158
158
 
159
- .WRGRRW_checkbox {
159
+ .LOjPTW_checkbox {
160
160
  justify-self: start;
161
161
  width: 15px;
162
162
  height: 15px;
163
163
  }
164
164
 
165
- .WRGRRW_toolbar {
165
+ .LOjPTW_toolbar {
166
166
  flex-wrap: wrap;
167
167
  flex: none;
168
168
  align-items: center;
@@ -170,7 +170,7 @@
170
170
  display: flex;
171
171
  }
172
172
 
173
- .WRGRRW_button {
173
+ .LOjPTW_button {
174
174
  border: 1px solid var(--dsw-alias-border-l2);
175
175
  background: var(--dsw-specific-input-major, var(--dsw-alias-bg-layer-3));
176
176
  color: var(--dsw-alias-label-primary);
@@ -180,28 +180,28 @@
180
180
  font-size: 13px;
181
181
  }
182
182
 
183
- .WRGRRW_button:hover:not(:disabled) {
183
+ .LOjPTW_button:hover:not(:disabled) {
184
184
  background: var(--dsw-alias-interactive-bg-hover);
185
185
  }
186
186
 
187
- .WRGRRW_button:disabled {
187
+ .LOjPTW_button:disabled {
188
188
  opacity: .4;
189
189
  cursor: default;
190
190
  }
191
191
 
192
- .WRGRRW_primaryButton {
192
+ .LOjPTW_primaryButton {
193
193
  background: var(--dsw-alias-label-primary);
194
194
  border-color: var(--dsw-alias-label-primary);
195
195
  color: var(--dsw-alias-bg-layer-3);
196
196
  }
197
197
 
198
- .WRGRRW_dangerButton {
198
+ .LOjPTW_dangerButton {
199
199
  background: var(--dsw-alias-state-danger, #c62828);
200
200
  border-color: var(--dsw-alias-state-danger, #c62828);
201
201
  color: #fff;
202
202
  }
203
203
 
204
- .WRGRRW_qr {
204
+ .LOjPTW_qr {
205
205
  background: #fff;
206
206
  border-radius: 8px;
207
207
  width: 200px;
@@ -210,30 +210,30 @@
210
210
  display: block;
211
211
  }
212
212
 
213
- .WRGRRW_message {
213
+ .LOjPTW_message {
214
214
  color: var(--dsw-alias-label-secondary);
215
215
  margin: 0;
216
216
  font-size: 12.5px;
217
217
  line-height: 1.5;
218
218
  }
219
219
 
220
- .WRGRRW_error {
220
+ .LOjPTW_error {
221
221
  color: var(--dsw-alias-state-danger, #c62828);
222
222
  }
223
223
 
224
- .WRGRRW_tableWrap {
224
+ .LOjPTW_tableWrap {
225
225
  border: 1px solid var(--dsw-alias-border-l1);
226
226
  border-radius: 10px;
227
227
  overflow: auto;
228
228
  }
229
229
 
230
- .WRGRRW_table {
230
+ .LOjPTW_table {
231
231
  border-collapse: collapse;
232
232
  width: 100%;
233
233
  font-size: 12.5px;
234
234
  }
235
235
 
236
- .WRGRRW_table th {
236
+ .LOjPTW_table th {
237
237
  z-index: 1;
238
238
  text-align: left;
239
239
  background: var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1));
@@ -242,47 +242,47 @@
242
242
  top: 0;
243
243
  }
244
244
 
245
- .WRGRRW_table td {
245
+ .LOjPTW_table td {
246
246
  border-top: 1px solid var(--dsw-alias-border-l1);
247
247
  vertical-align: top;
248
248
  padding: 8px 10px;
249
249
  }
250
250
 
251
- .WRGRRW_badge {
251
+ .LOjPTW_badge {
252
252
  border-radius: 999px;
253
253
  padding: 2px 8px;
254
254
  font-size: 11px;
255
255
  display: inline-block;
256
256
  }
257
257
 
258
- .WRGRRW_badgeOk {
258
+ .LOjPTW_badgeOk {
259
259
  color: #229a55;
260
260
  background: #229a5524;
261
261
  }
262
262
 
263
- .WRGRRW_badgeFail {
263
+ .LOjPTW_badgeFail {
264
264
  color: #c62828;
265
265
  background: #c6282824;
266
266
  }
267
267
 
268
- .WRGRRW_cards {
268
+ .LOjPTW_cards {
269
269
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
270
270
  gap: 8px;
271
271
  display: grid;
272
272
  }
273
273
 
274
- .WRGRRW_stat {
274
+ .LOjPTW_stat {
275
275
  border: 1px solid var(--dsw-alias-border-l1);
276
276
  border-radius: 10px;
277
277
  padding: 10px;
278
278
  }
279
279
 
280
- .WRGRRW_cardLabel {
280
+ .LOjPTW_cardLabel {
281
281
  color: var(--dsw-alias-label-tertiary);
282
282
  font-size: 11px;
283
283
  }
284
284
 
285
- .WRGRRW_cardValue {
285
+ .LOjPTW_cardValue {
286
286
  color: var(--dsw-alias-label-primary);
287
287
  font-size: 15px;
288
288
  font-weight: 600;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rezti/dsh-rez-suite",
3
- "description": "ReZ-TI employee plugin for DeepSeek Harness: one install enables company MCP (Odoo / Nextcloud / WeCom / Weixin-ClawBot / Home Assistant) and work identity.",
4
- "version": "0.1.10",
3
+ "description": "Legacy Rez Suite Web panel for DeepSeek Harness. New work goes in the split packages; this bundle still hosts the settings UI including WeChat QR.",
4
+ "version": "0.1.13",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": "^22.19.0 || >=24.0.0"
@@ -38,13 +38,13 @@
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/sdk": "^1.30.0",
40
40
  "zod": "^4.4.3",
41
- "@rezti/dsh-rez-ha-bridge": "0.1.6",
42
- "@rezti/dsh-rez-nextcloud": "0.1.6",
43
- "@rezti/dsh-rez-sso": "0.1.6",
44
- "@rezti/dsh-rez-intent": "0.1.3",
45
- "@rezti/dsh-rez-odoo": "0.1.6",
46
- "@rezti/dsh-rez-wechat": "0.1.8",
47
- "@rezti/dsh-rez-token-manager": "0.1.3"
41
+ "@rezti/dsh-rez-intent": "0.1.4",
42
+ "@rezti/dsh-rez-ha-bridge": "0.1.7",
43
+ "@rezti/dsh-rez-nextcloud": "0.1.7",
44
+ "@rezti/dsh-rez-wechat": "0.1.11",
45
+ "@rezti/dsh-rez-odoo": "0.1.7",
46
+ "@rezti/dsh-rez-sso": "0.1.7",
47
+ "@rezti/dsh-rez-token-manager": "0.1.4"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18.2.0",
@@ -92,7 +92,7 @@
92
92
  },
93
93
  "repository": {
94
94
  "type": "git",
95
- "url": "git+https://github.com/kelvinchen1119/deepseek-harness.git",
95
+ "url": "git+https://github.com/ReZ-TI/deepseek-harness.git",
96
96
  "directory": "packages/dsh-rez-suite"
97
97
  },
98
98
  "scripts": {
@@ -93,14 +93,15 @@ export const zh = {
93
93
  'common.loading': '加载中…',
94
94
  'common.error': '出错:{error}',
95
95
  'common.refresh': '刷新',
96
- 'weixin.intro': '和 QClaw 一样:扫一次码,然后直接在微信里说话。消息会进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认(选了 Kimi 就走 Kimi)。网页端要开着。',
96
+ 'weixin.intro': '和 QClaw 一样:扫一次码,然后直接在微信里说话。消息会进网页左侧「微信」文件夹并延续同一会话,模型跟网页默认(选了 Kimi 就走 Kimi)。网页端要开着。归档了的会话再从微信说话会自动回到侧栏。发「重启对话」会新开一条可见会话。',
97
97
  'weixin.login': '扫码登录',
98
+ 'weixin.reconnect': '重新连接',
98
99
  'weixin.logout': '退出微信',
99
100
  'weixin.verify': '提交配对码',
100
101
  'weixin.verifyPlaceholder': '手机上显示的数字',
101
102
  'weixin.qrAlt': '微信登录二维码',
102
103
  'weixin.listening': '通道在听:微信 → 网页「微信」会话(同一条,不另开窗口)→ 回微信。',
103
- 'weixin.loggedIn': '已登录,通道未在听。再点扫码登录即可拉起。',
104
+ 'weixin.loggedIn': '已登录,通道未在听。点「重新连接」即可拉起,不必再扫码。',
104
105
  'weixin.loggedOut': '尚未登录。',
105
106
  } as const
106
107
 
@@ -193,14 +194,15 @@ export const en: Record<RezKey, string> = {
193
194
  'common.loading': 'Loading…',
194
195
  'common.error': 'Error: {error}',
195
196
  'common.refresh': 'Refresh',
196
- 'weixin.intro': 'Same as QClaw: scan once, then talk in WeChat. Messages keep one session under the WeChat folder on the left, using the web default model (Kimi if that is selected). Keep the web UI running.',
197
+ 'weixin.intro': 'Same as QClaw: scan once, then talk in WeChat. Messages keep one session under the WeChat folder on the left, using the web default model (Kimi if that is selected). Keep the web UI running. Talking in WeChat restores an archived session to the sidebar. Send 重启对话 to start a visible new web session.',
197
198
  'weixin.login': 'Scan to log in',
199
+ 'weixin.reconnect': 'Reconnect',
198
200
  'weixin.logout': 'Log out',
199
201
  'weixin.verify': 'Submit pairing code',
200
202
  'weixin.verifyPlaceholder': 'Digits shown on the phone',
201
203
  'weixin.qrAlt': 'WeChat login QR',
202
204
  'weixin.listening': 'Channel is live: WeChat → the WeChat folder session on the left → WeChat.',
203
- 'weixin.loggedIn': 'Logged in, listener idle. Scan again to start it.',
205
+ 'weixin.loggedIn': 'Logged in, listener idle. Click Reconnect — no need to scan again.',
204
206
  'weixin.loggedOut': 'Not logged in.',
205
207
  }
206
208
 
@@ -84,7 +84,9 @@ export function WeixinTab({ api }: { api: RezApi }) {
84
84
  </div>
85
85
  )}
86
86
  <div className={css.toolbar}>
87
- <button type="button" className={css.button} disabled={busy} onClick={() => { void login() }}>{tt('weixin.login')}</button>
87
+ <button type="button" className={css.button} disabled={busy} onClick={() => { void login() }}>
88
+ {status?.loggedIn === true ? tt('weixin.reconnect') : tt('weixin.login')}
89
+ </button>
88
90
  {status?.loggedIn === true && (
89
91
  <button type="button" className={css.button} disabled={busy} onClick={() => { void logout() }}>{tt('weixin.logout')}</button>
90
92
  )}
package/src/index.ts CHANGED
@@ -79,10 +79,10 @@ export const Config: z<RezConfig> = z.object({
79
79
  const SECTION_ORDER = 150
80
80
 
81
81
  export const REZ_GUIDANCE = [
82
- '本机已安装 ReZ-TI 套件(一次安装):工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / Home Assistant。',
82
+ '本机已安装 ReZ-TI 拆分包:工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / Home Assistant。',
83
83
  '工具名 mcp__odoo__*、mcp__nextcloud__*、mcp__wechat__*、mcp__homeassistant__*。',
84
84
  '密钥:REZ_ODOO_TOKEN、REZ_NEXTCLOUD_PASSWORD、REZ_WECHAT_WEBHOOK、REZ_HA_TOKEN。',
85
- '个人微信(QClaw/ClawBot):打开 设置 → 插件 → ReZ-TI → 微信 扫码,然后直接在微信里说话。消息进入网页左侧「微信」文件夹并延续同一会话,模型跟网页默认。网页端必须开着。不必再跑命令、也不要调用微信 MCP 工具。',
85
+ '个人微信(QClaw/ClawBot):打开 设置 → 插件 → ReZ-TI → 微信 扫码,然后直接在微信里说话。消息进入网页左侧「微信」文件夹并延续同一会话,模型跟网页默认。网页归档了再从微信说话会自动恢复到侧栏。发「重启对话」会新开一条可见会话并把旧会话归档。网页端必须开着。不必再跑命令、也不要调用微信 MCP 工具。',
86
86
  '意图用 rez_set_intent(erp/files/chat/home/auto)。审计用 rez_audit。',
87
87
  '涉及资金、对外发送、设备控制、生产写入时先征得用户批准。',
88
88
  ].join('')