@rezti/dsh-rez-suite 0.1.0 → 0.1.1
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 +2 -0
- package/README.zh.md +2 -0
- package/cordis.patch.yml +12 -0
- package/lib/index.js +4 -3
- package/package.json +7 -7
- package/src/index.ts +4 -4
- package/src/presets.ts +5 -0
package/README.md
CHANGED
package/README.zh.md
CHANGED
|
@@ -8,4 +8,6 @@ dsh plugin --profile web add @rezti/dsh-rez-suite
|
|
|
8
8
|
|
|
9
9
|
密钥用环境变量或 dsh-credentials:`REZ_ODOO_TOKEN`、`REZ_NEXTCLOUD_PASSWORD`、`REZ_WECHAT_WEBHOOK`、`REZ_HA_TOKEN`。
|
|
10
10
|
|
|
11
|
+
个人微信(QClaw/ClawBot)另外扫码一次:`npx weixin-mcp login`。工具名 `mcp__weixin__*`。
|
|
12
|
+
|
|
11
13
|
子包不要再单独 `dsh plugin add`,否则会重复注册 MCP。
|
package/cordis.patch.yml
CHANGED
|
@@ -53,6 +53,18 @@
|
|
|
53
53
|
env:
|
|
54
54
|
WECOM_WEBHOOK_URL: !!js process.env.REZ_WECHAT_WEBHOOK ?? ''
|
|
55
55
|
failOnStartupError: false
|
|
56
|
+
# Personal WeChat (QClaw / ClawBot): reuse weixin-mcp, do not write a WebSocket client.
|
|
57
|
+
# Employee login once: npx weixin-mcp login (微信 → 发现 → 小程序 → ClawBot)
|
|
58
|
+
- id: rez-mcp-weixin
|
|
59
|
+
name: '@deepseek-ai/dsh-mcp-client'
|
|
60
|
+
config:
|
|
61
|
+
serverName: weixin
|
|
62
|
+
transport: stdio
|
|
63
|
+
command: npx
|
|
64
|
+
args:
|
|
65
|
+
- -y
|
|
66
|
+
- weixin-mcp
|
|
67
|
+
failOnStartupError: false
|
|
56
68
|
- id: rez-ha-bridge
|
|
57
69
|
name: '@rezti/dsh-rez-ha-bridge'
|
|
58
70
|
- id: rez-mcp-homeassistant
|
package/lib/index.js
CHANGED
|
@@ -7550,12 +7550,13 @@ const COMPOSED_SERVERS = [
|
|
|
7550
7550
|
"odoo",
|
|
7551
7551
|
"nextcloud",
|
|
7552
7552
|
"wechat",
|
|
7553
|
+
"weixin",
|
|
7553
7554
|
"homeassistant"
|
|
7554
7555
|
];
|
|
7555
7556
|
const REZ_GUIDANCE = [
|
|
7556
|
-
"本机已安装 ReZ-TI 套件(一次安装):工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / Home Assistant。",
|
|
7557
|
-
"工具名 mcp__odoo__*、mcp__nextcloud__*、mcp__wechat__*、mcp__homeassistant__*。",
|
|
7558
|
-
"
|
|
7557
|
+
"本机已安装 ReZ-TI 套件(一次安装):工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / 个人微信(QClaw/ClawBot) / Home Assistant。",
|
|
7558
|
+
"工具名 mcp__odoo__*、mcp__nextcloud__*、mcp__wechat__*、mcp__weixin__*、mcp__homeassistant__*。",
|
|
7559
|
+
"密钥:REZ_ODOO_TOKEN、REZ_NEXTCLOUD_PASSWORD、REZ_WECHAT_WEBHOOK、REZ_HA_TOKEN。个人微信先 npx weixin-mcp login(ClawBot 扫码),不要自写 WebSocket。",
|
|
7559
7560
|
"意图用 rez_set_intent(erp/files/chat/home/auto)。审计用 rez_audit。",
|
|
7560
7561
|
"涉及资金、对外发送、设备控制、生产写入时先征得用户批准。"
|
|
7561
7562
|
].join("");
|
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 / Home Assistant) and work identity.",
|
|
4
|
-
"version": "0.1.
|
|
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.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^22.19.0 || >=24.0.0"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
|
-
"@rezti/dsh-rez-intent": "0.1.0",
|
|
40
39
|
"@rezti/dsh-rez-ha-bridge": "0.1.0",
|
|
41
|
-
"@rezti/dsh-rez-
|
|
42
|
-
"@rezti/dsh-rez-odoo": "0.1.0",
|
|
43
|
-
"@rezti/dsh-rez-sso": "0.1.0",
|
|
40
|
+
"@rezti/dsh-rez-sso": "0.1.1",
|
|
44
41
|
"@rezti/dsh-rez-token-manager": "0.1.0",
|
|
45
|
-
"@rezti/dsh-rez-wechat": "0.1.
|
|
42
|
+
"@rezti/dsh-rez-wechat": "0.1.1",
|
|
43
|
+
"@rezti/dsh-rez-intent": "0.1.1",
|
|
44
|
+
"@rezti/dsh-rez-nextcloud": "0.1.0",
|
|
45
|
+
"@rezti/dsh-rez-odoo": "0.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "^18.2.0",
|
package/src/index.ts
CHANGED
|
@@ -54,12 +54,12 @@ export const Config: z<RezConfig> = z.object({
|
|
|
54
54
|
|
|
55
55
|
const SECTION_ORDER = 150
|
|
56
56
|
|
|
57
|
-
const COMPOSED_SERVERS = ['odoo', 'nextcloud', 'wechat', 'homeassistant'] as const
|
|
57
|
+
const COMPOSED_SERVERS = ['odoo', 'nextcloud', 'wechat', 'weixin', 'homeassistant'] as const
|
|
58
58
|
|
|
59
59
|
export const REZ_GUIDANCE = [
|
|
60
|
-
'本机已安装 ReZ-TI 套件(一次安装):工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / Home Assistant。',
|
|
61
|
-
'工具名 mcp__odoo__*、mcp__nextcloud__*、mcp__wechat__*、mcp__homeassistant__*。',
|
|
62
|
-
'
|
|
60
|
+
'本机已安装 ReZ-TI 套件(一次安装):工作身份由 dsh-rez-sso 提供,MCP 由官方 dsh-mcp-client 接入 Odoo / Nextcloud / 企业微信 / 个人微信(QClaw/ClawBot) / Home Assistant。',
|
|
61
|
+
'工具名 mcp__odoo__*、mcp__nextcloud__*、mcp__wechat__*、mcp__weixin__*、mcp__homeassistant__*。',
|
|
62
|
+
'密钥:REZ_ODOO_TOKEN、REZ_NEXTCLOUD_PASSWORD、REZ_WECHAT_WEBHOOK、REZ_HA_TOKEN。个人微信先 npx weixin-mcp login(ClawBot 扫码),不要自写 WebSocket。',
|
|
63
63
|
'意图用 rez_set_intent(erp/files/chat/home/auto)。审计用 rez_audit。',
|
|
64
64
|
'涉及资金、对外发送、设备控制、生产写入时先征得用户批准。',
|
|
65
65
|
].join('')
|
package/src/presets.ts
CHANGED
|
@@ -60,6 +60,9 @@ const RULES: Record<Exclude<RezRoleId, 'all'>, RoleRule[]> = {
|
|
|
60
60
|
// WeCom one-to-one / group sends.
|
|
61
61
|
{ server: 'wecom', pattern: '*send*' },
|
|
62
62
|
{ server: 'wecom', pattern: '*message*' },
|
|
63
|
+
{ server: 'wechat', pattern: '*send*' },
|
|
64
|
+
{ server: 'weixin', pattern: '*send*' },
|
|
65
|
+
{ server: 'weixin', pattern: '*poll*' },
|
|
63
66
|
],
|
|
64
67
|
operations: [
|
|
65
68
|
// Odoo reporting and fulfilment.
|
|
@@ -89,6 +92,8 @@ const RULES: Record<Exclude<RezRoleId, 'all'>, RoleRule[]> = {
|
|
|
89
92
|
// WeCom broadcasts.
|
|
90
93
|
{ server: 'wecom', pattern: '*broadcast*' },
|
|
91
94
|
{ server: 'wecom', pattern: '*send*' },
|
|
95
|
+
{ server: 'wechat', pattern: '*send*' },
|
|
96
|
+
{ server: 'weixin', pattern: '*send*' },
|
|
92
97
|
// Local audit cache.
|
|
93
98
|
{ server: 'sqlite', pattern: '*query*' },
|
|
94
99
|
{ server: 'sqlite', pattern: '*maintenance*' },
|