@dcrays/dcgchat-test 0.5.9 → 0.5.10

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.
@@ -3,28 +3,59 @@
3
3
  "channels": [
4
4
  "dcgchat-test"
5
5
  ],
6
- "description": "Gateway `event=cron` + `action=finished` 时:优先在 payload 中按 schemas/gateway-cron-finished.payload.json 提供 `attachments`;若缺省,插件在工作区规则下从 summary 回退提取路径并经 sendMedia 发送。",
6
+ "description": "书灵墨宝Channel插件",
7
7
  "hooks": {
8
8
  "allowConversationAccess": true
9
9
  },
10
10
  "channelConfigs": {
11
11
  "dcgchat-test": {
12
- "type": "object",
13
- "additionalProperties": false,
14
- "properties": {
15
- "allowedPaths": {
16
- "type": "array",
17
- "items": {
12
+ "schema": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "enabled": {
17
+ "type": "boolean"
18
+ },
19
+ "wsUrl": {
18
20
  "type": "string"
19
21
  },
20
- "description": "允许发送文件的额外路径列表"
21
- },
22
- "allowedAttachmentExtensions": {
23
- "type": "array",
24
- "items": {
22
+ "botToken": {
23
+ "type": "string"
24
+ },
25
+ "userId": {
26
+ "type": "string",
27
+ "description": "WebSocket 连接参数 _userId,与 dcgchat_message 工具的 target(dcgSessionKey)无关"
28
+ },
29
+ "appId": {
25
30
  "type": "string"
26
31
  },
27
- "description": "额外允许的附件后缀,如 [\".go\", \".rs\"]"
32
+ "domainId": {
33
+ "type": "string"
34
+ },
35
+ "capabilities": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ },
41
+ "strictMessageToolTarget": {
42
+ "type": "boolean",
43
+ "description": "默认 true:内置 message 工具的 target 须为 sessionKey 形态;设为 false 关闭此校验。"
44
+ },
45
+ "allowedPaths": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "description": "允许发送文件的额外路径列表"
51
+ },
52
+ "allowedAttachmentExtensions": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string"
56
+ },
57
+ "description": "额外允许的附件后缀,如 [\".go\", \".rs\"]"
58
+ }
28
59
  }
29
60
  }
30
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcrays/dcgchat-test",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "type": "module",
5
5
  "description": "书灵墨宝Channel插件",
6
6
  "main": "index.js",