@rezti/dsh-rez-suite 0.1.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/LICENSE +13 -0
- package/README.md +9 -0
- package/README.zh.md +11 -0
- package/cordis.patch.yml +68 -0
- package/lib/client.d.ts +7479 -0
- package/lib/client.js +1190 -0
- package/lib/index.d.ts +1726 -0
- package/lib/index.js +7659 -0
- package/lib/style.css +309 -0
- package/package.json +103 -0
- package/servers/fs-mcp-server.mjs +71 -0
- package/servers/sqlite-mcp-server.mjs +50 -0
- package/src/client/api.ts +75 -0
- package/src/client/css-modules.d.ts +4 -0
- package/src/client/index.ts +45 -0
- package/src/client/locales.ts +176 -0
- package/src/client/mount.tsx +97 -0
- package/src/client/panel/AuditTab.tsx +87 -0
- package/src/client/panel/ConfigTab.tsx +223 -0
- package/src/client/panel/RezPanel.tsx +50 -0
- package/src/client/panel/StatusTab.tsx +66 -0
- package/src/client/panel/controller.ts +42 -0
- package/src/client/panel/helpers.ts +21 -0
- package/src/client/panel/panel.module.css +316 -0
- package/src/client/sidebar-entry.ts +80 -0
- package/src/index.ts +166 -0
- package/src/mcp-host.ts +418 -0
- package/src/presets.ts +125 -0
- package/src/protocol.ts +133 -0
- package/src/routes.ts +191 -0
- package/src/store.ts +152 -0
- package/src/token-manager.ts +252 -0
- package/src/tools.ts +167 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2026 dsh-rez-suite contributors
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
package/README.zh.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# dsh-rez-suite
|
|
2
|
+
|
|
3
|
+
**员工入口。** 只装这一个包:工作身份(SSO)和 Odoo / Nextcloud / 企业微信 / Home Assistant 的官方 MCP 会一起启用。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
dsh plugin --profile web add @rezti/dsh-rez-suite
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
密钥用环境变量或 dsh-credentials:`REZ_ODOO_TOKEN`、`REZ_NEXTCLOUD_PASSWORD`、`REZ_WECHAT_WEBHOOK`、`REZ_HA_TOKEN`。
|
|
10
|
+
|
|
11
|
+
子包不要再单独 `dsh plugin add`,否则会重复注册 MCP。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
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.
|
|
4
|
+
#
|
|
5
|
+
# Order: identity → audit → intent → domain prompts → official MCP clients → panel.
|
|
6
|
+
- insert:
|
|
7
|
+
- id: rez-sso
|
|
8
|
+
name: '@rezti/dsh-rez-sso'
|
|
9
|
+
- id: rez-token-manager
|
|
10
|
+
name: '@rezti/dsh-rez-token-manager'
|
|
11
|
+
- id: rez-intent
|
|
12
|
+
name: '@rezti/dsh-rez-intent'
|
|
13
|
+
- id: rez-odoo
|
|
14
|
+
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
|
+
- id: rez-nextcloud
|
|
25
|
+
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
|
+
- id: rez-wechat
|
|
43
|
+
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
|
+
- id: rez-ha-bridge
|
|
57
|
+
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
|
+
- id: rez-suite
|
|
68
|
+
name: '@rezti/dsh-rez-suite'
|