@dcrays/dcgchat-test 0.5.11 → 0.5.13

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.
@@ -11,7 +11,6 @@
11
11
  "dcgchat-test": {
12
12
  "schema": {
13
13
  "type": "object",
14
- "additionalProperties": false,
15
14
  "properties": {
16
15
  "enabled": {
17
16
  "type": "boolean"
@@ -23,14 +22,23 @@
23
22
  "type": "string"
24
23
  },
25
24
  "userId": {
26
- "type": "string",
25
+ "type": [
26
+ "number",
27
+ "string"
28
+ ],
27
29
  "description": "WebSocket 连接参数 _userId,与 dcgchat_message 工具的 target(dcgSessionKey)无关"
28
30
  },
29
31
  "appId": {
30
- "type": "string"
32
+ "type": [
33
+ "number",
34
+ "string"
35
+ ]
31
36
  },
32
37
  "domainId": {
33
- "type": "string"
38
+ "type": [
39
+ "number",
40
+ "string"
41
+ ]
34
42
  },
35
43
  "capabilities": {
36
44
  "type": "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcrays/dcgchat-test",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "type": "module",
5
5
  "description": "书灵墨宝Channel插件",
6
6
  "main": "index.js",
@@ -1,39 +1,39 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://dcgchat.local/schemas/gateway-cron-finished.payload.json",
4
- "title": "Gateway WS event: cron finished (dcgchat contract)",
5
- "description": "网关下行 `event: \"cron\"` 且 `payload.action === \"finished\"` 时,书灵通道插件读取的约定字段。`attachments` 为首选:须为 Gateway 进程可读的绝对路径,经通道 sendMedia 发送。若宿主未提供 `attachments`,插件会回退为仅在工作区/挂载规则下从 `summary` 提取路径(与 dcgchat_message 一致),直至宿主实现本字段。",
6
- "type": "object",
7
- "properties": {
8
- "jobId": { "type": "string" },
9
- "action": { "const": "finished" },
10
- "status": { "type": "string" },
11
- "summary": { "type": "string" },
12
- "delivered": { "type": "boolean" },
13
- "deliveryStatus": { "type": "string" },
14
- "sessionId": { "type": "string" },
15
- "sessionKey": { "type": "string" },
16
- "attachments": {
17
- "type": "array",
18
- "description": "本轮定时任务产出的本地文件路径,按顺序经通道发送为附件",
19
- "items": {
20
- "oneOf": [
21
- {
22
- "type": "string",
23
- "minLength": 1,
24
- "description": "绝对路径"
25
- },
26
- {
27
- "type": "object",
28
- "additionalProperties": false,
29
- "properties": {
30
- "path": { "type": "string", "minLength": 1 },
31
- "file": { "type": "string", "minLength": 1 }
32
- },
33
- "description": "对象形式:优先读取 `path`,否则 `file`"
34
- }
35
- ]
36
- }
37
- }
38
- }
39
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://dcgchat.local/schemas/gateway-cron-finished.payload.json",
4
+ "title": "Gateway WS event: cron finished (dcgchat contract)",
5
+ "description": "网关下行 `event: \"cron\"` 且 `payload.action === \"finished\"` 时,书灵通道插件读取的约定字段。`attachments` 为首选:须为 Gateway 进程可读的绝对路径,经通道 sendMedia 发送。若宿主未提供 `attachments`,插件会回退为仅在工作区/挂载规则下从 `summary` 提取路径(与 dcgchat_message 一致),直至宿主实现本字段。",
6
+ "type": "object",
7
+ "properties": {
8
+ "jobId": { "type": "string" },
9
+ "action": { "const": "finished" },
10
+ "status": { "type": "string" },
11
+ "summary": { "type": "string" },
12
+ "delivered": { "type": "boolean" },
13
+ "deliveryStatus": { "type": "string" },
14
+ "sessionId": { "type": "string" },
15
+ "sessionKey": { "type": "string" },
16
+ "attachments": {
17
+ "type": "array",
18
+ "description": "本轮定时任务产出的本地文件路径,按顺序经通道发送为附件",
19
+ "items": {
20
+ "oneOf": [
21
+ {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "description": "绝对路径"
25
+ },
26
+ {
27
+ "type": "object",
28
+ "additionalProperties": false,
29
+ "properties": {
30
+ "path": { "type": "string", "minLength": 1 },
31
+ "file": { "type": "string", "minLength": 1 }
32
+ },
33
+ "description": "对象形式:优先读取 `path`,否则 `file`"
34
+ }
35
+ ]
36
+ }
37
+ }
38
+ }
39
+ }