@rezti/dsh-rez-suite 0.1.2 → 0.1.4
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.zh.md +1 -1
- package/cordis.patch.yml +3 -47
- package/lib/index.js +2 -1
- package/package.json +8 -8
- package/src/index.ts +2 -1
package/README.zh.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
dsh plugin --profile web add @rezti/dsh-rez-suite
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
密钥用环境变量或 dsh-credentials:`REZ_ODOO_TOKEN`、`REZ_NEXTCLOUD_PASSWORD`、`REZ_WECHAT_WEBHOOK`、`REZ_HA_TOKEN
|
|
9
|
+
密钥用环境变量或 dsh-credentials:`REZ_ODOO_TOKEN`、`REZ_NEXTCLOUD_PASSWORD`、`REZ_WECHAT_WEBHOOK`、`REZ_HA_TOKEN`。未配置时不拉起对应 MCP。
|
|
10
10
|
|
|
11
11
|
个人微信(QClaw/ClawBot)在 Rez 面板「微信」页扫码,然后直接在微信里说话。
|
|
12
12
|
|
package/cordis.patch.yml
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
# Subpackages are libraries resolved from this bundle's dependencies;
|
|
3
3
|
# they must not also be added as DSH bundles or MCP rows will duplicate.
|
|
4
4
|
#
|
|
5
|
-
#
|
|
5
|
+
# MCP rows are started by the domain plugins after rezSso resolves secrets.
|
|
6
|
+
# Do not list @deepseek-ai/dsh-mcp-client here: empty process.env would spawn
|
|
7
|
+
# nextcloud-mcp-server in a reconnect loop.
|
|
6
8
|
- insert:
|
|
7
9
|
- id: rez-sso
|
|
8
10
|
name: '@rezti/dsh-rez-sso'
|
|
@@ -12,57 +14,11 @@
|
|
|
12
14
|
name: '@rezti/dsh-rez-intent'
|
|
13
15
|
- id: rez-odoo
|
|
14
16
|
name: '@rezti/dsh-rez-odoo'
|
|
15
|
-
- id: rez-mcp-odoo
|
|
16
|
-
name: '@deepseek-ai/dsh-mcp-client'
|
|
17
|
-
config:
|
|
18
|
-
serverName: odoo
|
|
19
|
-
transport: streamable-http
|
|
20
|
-
url: https://www.rez-ti.com/mcp
|
|
21
|
-
headers:
|
|
22
|
-
Authorization: !!js '`Bearer ${process.env.REZ_ODOO_TOKEN ?? ""}`'
|
|
23
|
-
failOnStartupError: false
|
|
24
17
|
- id: rez-nextcloud
|
|
25
18
|
name: '@rezti/dsh-rez-nextcloud'
|
|
26
|
-
- id: rez-mcp-nextcloud
|
|
27
|
-
name: '@deepseek-ai/dsh-mcp-client'
|
|
28
|
-
config:
|
|
29
|
-
serverName: nextcloud
|
|
30
|
-
transport: stdio
|
|
31
|
-
command: uvx
|
|
32
|
-
args:
|
|
33
|
-
- nextcloud-mcp-server
|
|
34
|
-
- run
|
|
35
|
-
- --transport
|
|
36
|
-
- stdio
|
|
37
|
-
env:
|
|
38
|
-
NEXTCLOUD_HOST: https://cloud.rez-ti.com
|
|
39
|
-
NEXTCLOUD_USERNAME: rez-ti-2
|
|
40
|
-
NEXTCLOUD_PASSWORD: !!js process.env.REZ_NEXTCLOUD_PASSWORD ?? ''
|
|
41
|
-
failOnStartupError: false
|
|
42
19
|
- id: rez-wechat
|
|
43
20
|
name: '@rezti/dsh-rez-wechat'
|
|
44
|
-
- id: rez-mcp-wechat
|
|
45
|
-
name: '@deepseek-ai/dsh-mcp-client'
|
|
46
|
-
config:
|
|
47
|
-
serverName: wechat
|
|
48
|
-
transport: stdio
|
|
49
|
-
command: npx
|
|
50
|
-
args:
|
|
51
|
-
- -y
|
|
52
|
-
- wecom-mcp
|
|
53
|
-
env:
|
|
54
|
-
WECOM_WEBHOOK_URL: !!js process.env.REZ_WECHAT_WEBHOOK ?? ''
|
|
55
|
-
failOnStartupError: false
|
|
56
21
|
- id: rez-ha-bridge
|
|
57
22
|
name: '@rezti/dsh-rez-ha-bridge'
|
|
58
|
-
- id: rez-mcp-homeassistant
|
|
59
|
-
name: '@deepseek-ai/dsh-mcp-client'
|
|
60
|
-
config:
|
|
61
|
-
serverName: homeassistant
|
|
62
|
-
transport: streamable-http
|
|
63
|
-
url: http://homeassistant.local:8123/api/mcp
|
|
64
|
-
headers:
|
|
65
|
-
Authorization: !!js '`Bearer ${process.env.REZ_HA_TOKEN ?? ""}`'
|
|
66
|
-
failOnStartupError: false
|
|
67
23
|
- id: rez-suite
|
|
68
24
|
name: '@rezti/dsh-rez-suite'
|
package/lib/index.js
CHANGED
|
@@ -7601,7 +7601,8 @@ function apply(ctx, config) {
|
|
|
7601
7601
|
saveConfig(value);
|
|
7602
7602
|
current = () => value;
|
|
7603
7603
|
try {
|
|
7604
|
-
|
|
7604
|
+
const settings = ctx.get("settings");
|
|
7605
|
+
if (settings?.update !== void 0) await settings.update(REZ_SETTINGS_NAMESPACE, value);
|
|
7605
7606
|
} catch (error) {
|
|
7606
7607
|
console.warn("[dsh-rez-suite] settings update failed, using local store:", error);
|
|
7607
7608
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rezti/dsh-rez-suite",
|
|
3
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.
|
|
4
|
+
"version": "0.1.4",
|
|
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-
|
|
40
|
-
"@rezti/dsh-rez-odoo": "0.1.
|
|
41
|
-
"@rezti/dsh-rez-
|
|
42
|
-
"@rezti/dsh-rez-
|
|
43
|
-
"@rezti/dsh-rez-
|
|
44
|
-
"@rezti/dsh-rez-wechat": "0.1.
|
|
45
|
-
"@rezti/dsh-rez-
|
|
39
|
+
"@rezti/dsh-rez-ha-bridge": "0.1.4",
|
|
40
|
+
"@rezti/dsh-rez-odoo": "0.1.4",
|
|
41
|
+
"@rezti/dsh-rez-nextcloud": "0.1.4",
|
|
42
|
+
"@rezti/dsh-rez-token-manager": "0.1.3",
|
|
43
|
+
"@rezti/dsh-rez-sso": "0.1.4",
|
|
44
|
+
"@rezti/dsh-rez-wechat": "0.1.4",
|
|
45
|
+
"@rezti/dsh-rez-intent": "0.1.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "^18.2.0",
|
package/src/index.ts
CHANGED
|
@@ -110,7 +110,8 @@ export function apply(ctx: Context, config?: RezConfig): void {
|
|
|
110
110
|
saveConfig(value)
|
|
111
111
|
current = () => value
|
|
112
112
|
try {
|
|
113
|
-
|
|
113
|
+
const settings = ctx.get('settings') as { update?: (namespace: unknown, value: unknown) => Promise<void> } | undefined
|
|
114
|
+
if (settings?.update !== undefined) await settings.update(REZ_SETTINGS_NAMESPACE, value)
|
|
114
115
|
} catch (error) {
|
|
115
116
|
console.warn('[dsh-rez-suite] settings update failed, using local store:', error)
|
|
116
117
|
}
|