@rezti/dsh-rez-wechat 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 +12 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +15 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2026 ReZ-TI / 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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @rezti/dsh-rez-wechat
|
|
2
|
+
|
|
3
|
+
由 `@rezti/dsh-rez-suite` 一次装入。不要单独 `dsh plugin add`。
|
|
4
|
+
|
|
5
|
+
通道接入复用现成 MCP,不自写微信长连接。
|
|
6
|
+
|
|
7
|
+
| 能力 | 做法 |
|
|
8
|
+
|---|---|
|
|
9
|
+
| 发到群 | `wecom-mcp` + `REZ_WECHAT_WEBHOOK` |
|
|
10
|
+
| 收消息 / 模板到人 | **未接入**。下一阶段选现成 wecomcli / 企业微信应用 MCP |
|
|
11
|
+
|
|
12
|
+
「微信」在雷泽场景里按企业微信理解。个人微信不在范围内。
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const name = 'rez-wechat';
|
|
2
|
+
export const inject = ['systemPrompt'];
|
|
3
|
+
const GUIDANCE = [
|
|
4
|
+
'企业微信发送已通过官方 dsh-mcp-client + wecom-mcp 接入(mcp__wechat__*)。',
|
|
5
|
+
'密钥是 REZ_WECHAT_WEBHOOK(群机器人 webhook URL)。',
|
|
6
|
+
'对外发消息必须先征得用户批准。',
|
|
7
|
+
'接收消息 / 应用模板通知不走本包:复用现成 wecomcli 或应用 API MCP,不要自写 WebSocket。',
|
|
8
|
+
].join('');
|
|
9
|
+
export function apply(ctx) {
|
|
10
|
+
ctx.effect(() => ctx.systemPrompt.section({
|
|
11
|
+
name: 'plugin:dsh-rez-wechat',
|
|
12
|
+
order: 162,
|
|
13
|
+
text: GUIDANCE,
|
|
14
|
+
}), 'dsh-rez-wechat: prompt');
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rezti/dsh-rez-wechat",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "ReZ-TI WeCom bridge for DeepSeek Harness. Send path uses wecom-mcp; inbound is not a custom WebSocket client.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
8
|
+
},
|
|
9
|
+
"main": "lib/index.js",
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./lib/index.d.ts",
|
|
14
|
+
"default": "./lib/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"lib/**/*.js",
|
|
19
|
+
"lib/**/*.d.ts",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
25
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.6",
|
|
26
|
+
"@types/node": "^22.20.0",
|
|
27
|
+
"typescript": "~5.7.2"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/kelvinchen1119/deepseek-harness.git",
|
|
35
|
+
"directory": "packages/dsh-rez-wechat"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc -p tsconfig.build.json",
|
|
39
|
+
"typecheck": "tsc --noEmit"
|
|
40
|
+
}
|
|
41
|
+
}
|