@zhin.js/adapter-discord 1.0.86 → 1.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +863 -65
  2. package/README.md +61 -67
  3. package/adapters/discord.js +41 -0
  4. package/adapters/discord.ts +57 -0
  5. package/agent/PERMITS.md +25 -0
  6. package/{skills/discord/SKILL.md → agent/skills/discord.md} +1 -1
  7. package/agent/tools/add_role.ts +26 -0
  8. package/agent/tools/create_thread.ts +28 -0
  9. package/agent/tools/forum_post.ts +33 -0
  10. package/agent/tools/list_roles.ts +34 -0
  11. package/agent/tools/react.ts +24 -0
  12. package/agent/tools/remove_role.ts +26 -0
  13. package/agent/tools/send_embed.ts +38 -0
  14. package/commands/endpoint/add/[id].js +3 -0
  15. package/commands/endpoint/add/[id].ts +3 -0
  16. package/commands/endpoint/list.js +3 -0
  17. package/commands/endpoint/list.ts +3 -0
  18. package/commands/endpoint/remove/[id].js +3 -0
  19. package/commands/endpoint/remove/[id].ts +3 -0
  20. package/lib/client.d.ts +16 -0
  21. package/lib/client.js +8 -0
  22. package/lib/discord-endpoint-commands.d.ts +1 -0
  23. package/lib/discord-endpoint-commands.js +18 -0
  24. package/lib/discord-runtime-state.d.ts +1 -0
  25. package/lib/discord-runtime-state.js +6 -0
  26. package/lib/endpoint.d.ts +72 -0
  27. package/lib/endpoint.js +458 -0
  28. package/lib/gateway.d.ts +144 -0
  29. package/lib/gateway.js +303 -0
  30. package/lib/index.d.ts +6 -18
  31. package/lib/index.js +6 -323
  32. package/lib/platform-permit.d.ts +14 -0
  33. package/lib/platform-permit.js +42 -0
  34. package/lib/protocol.d.ts +162 -0
  35. package/lib/protocol.js +333 -0
  36. package/lib/side-event-dispatch.d.ts +8 -0
  37. package/lib/side-event-dispatch.js +24 -0
  38. package/lib/webhook.d.ts +14 -0
  39. package/lib/webhook.js +88 -0
  40. package/package.json +62 -29
  41. package/plugin.js +19 -0
  42. package/schema.json +141 -0
  43. package/src/client.ts +24 -0
  44. package/src/discord-endpoint-commands.ts +19 -0
  45. package/src/discord-runtime-state.ts +7 -0
  46. package/src/endpoint.ts +562 -0
  47. package/src/gateway.ts +426 -0
  48. package/src/index.ts +55 -323
  49. package/src/platform-permit.ts +57 -0
  50. package/src/protocol.ts +502 -0
  51. package/src/side-event-dispatch.ts +37 -0
  52. package/src/webhook.ts +123 -0
  53. package/client/Dashboard.tsx +0 -195
  54. package/client/index.tsx +0 -11
  55. package/client/tsconfig.json +0 -7
  56. package/client/utils/api.ts +0 -17
  57. package/dist/index.js +0 -29
  58. package/lib/adapter.d.ts +0 -19
  59. package/lib/adapter.d.ts.map +0 -1
  60. package/lib/adapter.js +0 -90
  61. package/lib/adapter.js.map +0 -1
  62. package/lib/bot-interactions.d.ts +0 -33
  63. package/lib/bot-interactions.d.ts.map +0 -1
  64. package/lib/bot-interactions.js +0 -278
  65. package/lib/bot-interactions.js.map +0 -1
  66. package/lib/bot.d.ts +0 -117
  67. package/lib/bot.d.ts.map +0 -1
  68. package/lib/bot.js +0 -904
  69. package/lib/bot.js.map +0 -1
  70. package/lib/index.d.ts.map +0 -1
  71. package/lib/index.js.map +0 -1
  72. package/lib/types.d.ts +0 -49
  73. package/lib/types.d.ts.map +0 -1
  74. package/lib/types.js +0 -2
  75. package/lib/types.js.map +0 -1
  76. package/plugin.yml +0 -3
  77. package/src/adapter.ts +0 -107
  78. package/src/bot-interactions.ts +0 -348
  79. package/src/bot.ts +0 -1037
  80. package/src/types.ts +0 -60
package/CHANGELOG.md CHANGED
@@ -1,12 +1,810 @@
1
1
  # @zhin.js/adapter-discord
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1fc6270: Reset all 88 published official packages onto the owner-governed 1.1.x stable line. Packages whose historical 1.1.0 version is still available publish as 1.1.0; packages where npm permanently reserves that version use the next available 1.1.x patch. Historical higher version lines remain installable but are superseded, and routine releases after this reset are patch-only.
8
+
9
+ ### Patch Changes
10
+
11
+ - a34bf91: Publish internal peer dependencies as compatible caret ranges instead of exact versions, preventing compatible internal minor releases from forcing unrelated major bumps.
12
+ - Updated dependencies [1fc6270]
13
+ - @zhin.js/adapter@1.1.12
14
+ - @zhin.js/core@1.1.35
15
+ - @zhin.js/feature-kit@1.1.0
16
+ - @zhin.js/host-http@1.1.0
17
+ - @zhin.js/im-contract@1.1.0
18
+ - @zhin.js/logger@1.1.0
19
+ - @zhin.js/permission@1.1.0
20
+
21
+ ## 9.0.1
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [f7ee28d]
26
+ - @zhin.js/adapter@1.2.2
27
+ - @zhin.js/core@1.5.16
28
+ - zhin.js@7.0.1
29
+ - @zhin.js/agent@1.2.1
30
+
31
+ ## 9.0.0
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [12325e1]
36
+ - Updated dependencies [d19e976]
37
+ - @zhin.js/agent@1.2.0
38
+ - zhin.js@7.0.0
39
+
40
+ ## 8.0.8
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [a728a20]
45
+ - @zhin.js/host-http@1.0.17
46
+ - @zhin.js/agent@1.1.22
47
+ - zhin.js@6.0.15
48
+
49
+ ## 8.0.7
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [337fd05]
54
+ - @zhin.js/agent@1.1.21
55
+ - zhin.js@6.0.15
56
+
57
+ ## 8.0.6
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [fcbff21]
62
+ - @zhin.js/host-http@1.0.16
63
+ - zhin.js@6.0.15
64
+
65
+ ## 8.0.5
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [882a08a]
70
+ - @zhin.js/agent@1.1.20
71
+ - zhin.js@6.0.15
72
+ - @zhin.js/core@1.5.15
73
+
74
+ ## 8.0.4
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [d85eddd]
79
+ - @zhin.js/agent@1.1.19
80
+ - @zhin.js/host-http@1.0.15
81
+ - @zhin.js/core@1.5.15
82
+ - zhin.js@6.0.15
83
+
84
+ ## 8.0.3
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [a5ee497]
89
+ - Updated dependencies [a5ee497]
90
+ - Updated dependencies [ba7e17a]
91
+ - Updated dependencies [7108d0b]
92
+ - @zhin.js/agent@1.1.18
93
+ - @zhin.js/host-http@1.0.14
94
+ - @zhin.js/core@1.5.15
95
+ - zhin.js@6.0.15
96
+
97
+ ## 8.0.2
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [736fa04]
102
+ - @zhin.js/agent@1.1.17
103
+ - zhin.js@6.0.14
104
+
105
+ ## 8.0.1
106
+
107
+ ### Patch Changes
108
+
109
+ - 1fc78bc: Unify native platform Client access behind the literal `adapter` discriminant. Handlers infer both native events and Clients, while command, inbound/outbound middleware, and both Agent tool authoring surfaces expose the exact operation-scoped Client through a lazy `$client` getter. Definitions without `adapter` keep `$client` typed as `unknown`, and runtime dispatch rejects adapter mismatches before resolving the Client. Bundled platform tools now use this single path instead of model-provided endpoint ids and adapter-specific dependency wrappers. Every adapter registers one Client/EventMap contract, and protocol adapters including NapCat, Milky, OneBot and Satori now produce transport-independent Client objects rather than letting Endpoint instances impersonate Clients.
110
+ - Updated dependencies [e9c6a73]
111
+ - Updated dependencies [4e8117c]
112
+ - Updated dependencies [902fa35]
113
+ - Updated dependencies [54bfd6b]
114
+ - Updated dependencies [12025ee]
115
+ - Updated dependencies [09b14d6]
116
+ - Updated dependencies [1fc78bc]
117
+ - @zhin.js/agent@1.1.16
118
+ - @zhin.js/adapter@1.2.1
119
+ - @zhin.js/core@1.5.14
120
+ - @zhin.js/host-http@1.0.13
121
+ - @zhin.js/command@1.0.16
122
+ - @zhin.js/logger@1.0.77
123
+ - zhin.js@6.0.14
124
+ - @zhin.js/feature-kit@1.0.13
125
+ - @zhin.js/permission@1.0.4
126
+
127
+ ## 8.0.0
128
+
129
+ ### Patch Changes
130
+
131
+ - f2c532f: Expose exact per-Endpoint message operations through one validated Adapter capability model, route Core control calls through declared active capabilities, and connect existing recall, edit, reaction, and typing implementations across platform adapters.
132
+ - Updated dependencies [b10d058]
133
+ - Updated dependencies [f2c532f]
134
+ - Updated dependencies [3dbf990]
135
+ - @zhin.js/host-http@1.0.12
136
+ - @zhin.js/adapter@1.2.0
137
+ - @zhin.js/core@1.5.13
138
+ - @zhin.js/agent@1.1.15
139
+ - zhin.js@6.0.13
140
+
141
+ ## 7.0.14
142
+
143
+ ### Patch Changes
144
+
145
+ - 5969c5b: Remove legacy compound-string message targets and Endpoint control probing. Endpoint control and outbound Host operations now carry structured `MessageRef` identities. Endpoint send has one exact result contract (a platform message id), which IM Runtime projects into `DeliveryReceipt.message`; arbitrary result guessing is removed.
146
+ - 9a64283: Add canonical scoped Discord message resolution with structured attachment media references.
147
+ - 974772e: Replace the user-facing `Prompt` vocabulary with the `UserInteraction` authoring surface for input, confirmation, and selection. Commands and handlers now expose `interaction`; IM Runtime exposes `createInteraction`; schema-driven endpoint collection is named `SchemaInteraction`. The old prompt-named interaction types and properties are removed rather than aliased. User interactions render through one canonical Markdown and keyboard/list presentation module shared by commands and Agent `ask_user` turns.
148
+
149
+ Extract the transport-neutral interaction contract into `@zhin.js/interaction`. A discriminated `ask()` API supports text, number, confirmation, single-select, multi-select, and typed lists with structured `title`, `description`, and `tip` content. Typed `sequence()` interactions return one result object keyed by step id, render progress, and retry invalid replies without leaking invalid values to callers.
150
+
151
+ Preserve AI Markdown and card command actions through outbound publishing. QQ delivers Markdown with native command buttons; KOOK, Discord, Telegram, DingTalk, and Lark/Feishu now declare and encode their native Markdown dialects while retaining each adapter's interaction policy. Correct QQ callback button action encoding and button style mapping.
152
+
153
+ - 5969c5b: Add SideEventGateway so adapters forward notice/request/system into HandlerIndex. HandlerContext now exposes only generation-safe capabilities and prompt ports; live Endpoint escape hatches are removed.
154
+ - Updated dependencies [5969c5b]
155
+ - Updated dependencies [d336a3f]
156
+ - Updated dependencies [0c82a7e]
157
+ - Updated dependencies [b9217e4]
158
+ - Updated dependencies [5969c5b]
159
+ - Updated dependencies [5969c5b]
160
+ - Updated dependencies [974772e]
161
+ - Updated dependencies [5969c5b]
162
+ - Updated dependencies [5969c5b]
163
+ - Updated dependencies [2f786bd]
164
+ - Updated dependencies [63d89f9]
165
+ - Updated dependencies [71c7cdd]
166
+ - Updated dependencies [3cca0ea]
167
+ - Updated dependencies [1312ca0]
168
+ - Updated dependencies [985fa22]
169
+ - Updated dependencies [04b861d]
170
+ - Updated dependencies [a23d544]
171
+ - Updated dependencies [8cddabf]
172
+ - Updated dependencies [dbe5081]
173
+ - @zhin.js/im-contract@1.0.4
174
+ - @zhin.js/core@1.5.12
175
+ - @zhin.js/adapter@1.1.11
176
+ - @zhin.js/agent@1.1.14
177
+ - @zhin.js/host-http@1.0.11
178
+ - @zhin.js/command@1.0.15
179
+ - zhin.js@6.0.12
180
+ - @zhin.js/permission@1.0.3
181
+
182
+ ## 7.0.13
183
+
184
+ ### Patch Changes
185
+
186
+ - @zhin.js/core@1.5.11
187
+ - @zhin.js/agent@1.1.13
188
+ - zhin.js@6.0.11
189
+
190
+ ## 7.0.12
191
+
192
+ ### Patch Changes
193
+
194
+ - 3556601: Declare Stable Feature packages referenced by `zhin.features` as optional `peerDependencies` on official plugins/adapters (`@zhin.js/runtime` ≥1.0.12 requires features to be declared in deps/peers). Keeps authoring via `zhin.js` facades without installing Feature implementation packages into `dependencies`, and removes the need for consumer postinstall peer-patch scripts. `zhin new` scaffolds the same peer shape.
195
+ - @zhin.js/agent@1.1.12
196
+ - @zhin.js/core@1.5.10
197
+ - zhin.js@6.0.10
198
+
199
+ ## 7.0.11
200
+
201
+ ### Patch Changes
202
+
203
+ - eb84b77: fix: 更新文档,建立正确的依赖关系
204
+ - Updated dependencies [d3920e9]
205
+ - @zhin.js/core@1.5.10
206
+ - zhin.js@6.0.10
207
+ - @zhin.js/adapter@1.1.10
208
+ - @zhin.js/agent@1.1.11
209
+
210
+ ## 7.0.10
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [e4757a8]
215
+ - Updated dependencies [c3c0ebf]
216
+ - @zhin.js/command@1.0.13
217
+ - @zhin.js/host-http@1.0.10
218
+ - @zhin.js/agent@1.1.10
219
+ - @zhin.js/core@1.5.9
220
+ - @zhin.js/adapter@1.1.9
221
+ - zhin.js@6.0.9
222
+
223
+ ## 7.0.9
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [63253bb]
228
+ - Updated dependencies [6fb24dd]
229
+ - Updated dependencies [d162216]
230
+ - Updated dependencies [7427818]
231
+ - Updated dependencies [90da255]
232
+ - Updated dependencies [8e973dc]
233
+ - Updated dependencies [953cfe1]
234
+ - Updated dependencies [0e73866]
235
+ - @zhin.js/plugin-runtime@1.1.6
236
+ - @zhin.js/core@1.5.8
237
+ - @zhin.js/adapter@1.1.8
238
+ - @zhin.js/host-http@1.0.9
239
+ - @zhin.js/agent@1.1.9
240
+ - zhin.js@6.0.8
241
+ - @zhin.js/command@1.0.12
242
+ - @zhin.js/permission@1.0.2
243
+
244
+ ## 7.0.8
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies [36cb1ca]
249
+ - @zhin.js/core@1.5.7
250
+ - @zhin.js/agent@1.1.8
251
+ - zhin.js@6.0.7
252
+
253
+ ## 7.0.7
254
+
255
+ ### Patch Changes
256
+
257
+ - Updated dependencies [7945544]
258
+ - @zhin.js/command@1.0.11
259
+ - @zhin.js/agent@1.1.7
260
+ - @zhin.js/adapter@1.1.7
261
+ - @zhin.js/core@1.5.6
262
+ - zhin.js@6.0.6
263
+
264
+ ## 7.0.6
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [2d0a622]
269
+ - @zhin.js/command@1.0.10
270
+ - @zhin.js/adapter@1.1.7
271
+ - @zhin.js/core@1.5.5
272
+ - @zhin.js/agent@1.1.6
273
+ - zhin.js@6.0.5
274
+
275
+ ## 7.0.5
276
+
277
+ ### Patch Changes
278
+
279
+ - 51015d6: refactor(adapters): migrate platform-permit to PermissionSubject
280
+
281
+ All adapter platform-permit checkers now accept PermissionSubject
282
+ (duck-typed from Message/CommandSession) instead of Message directly.
283
+ registerPlatformPermitChecker is replaced by host.registerPlatform in
284
+ the adapter plugin setup. activity-feedback service updated for new
285
+ PermissionHost integration.
286
+
287
+ - Updated dependencies [6f9c366]
288
+ - Updated dependencies [373a56b]
289
+ - Updated dependencies [0de46a8]
290
+ - Updated dependencies [c106ecc]
291
+ - Updated dependencies [ca92e03]
292
+ - Updated dependencies [b0f37ae]
293
+ - Updated dependencies [ba08a2f]
294
+ - Updated dependencies [b08f7fe]
295
+ - Updated dependencies [daffd4c]
296
+ - Updated dependencies [36c7400]
297
+ - Updated dependencies [a9fa72e]
298
+ - Updated dependencies [c8de3ef]
299
+ - Updated dependencies [60f0fc8]
300
+ - Updated dependencies [574c990]
301
+ - Updated dependencies [d096f16]
302
+ - Updated dependencies [3f29623]
303
+ - Updated dependencies [2916852]
304
+ - Updated dependencies [d047869]
305
+ - Updated dependencies [162fa34]
306
+ - Updated dependencies [e62561e]
307
+ - Updated dependencies [3eeeb46]
308
+ - Updated dependencies [85d0f82]
309
+ - Updated dependencies [61bfc1c]
310
+ - Updated dependencies [04bad47]
311
+ - Updated dependencies [e40b048]
312
+ - Updated dependencies [5a5b1bb]
313
+ - Updated dependencies [f1708c3]
314
+ - Updated dependencies [d254a81]
315
+ - Updated dependencies [7123c47]
316
+ - Updated dependencies [05befc1]
317
+ - Updated dependencies [0663b6a]
318
+ - Updated dependencies [f28f9b3]
319
+ - Updated dependencies [9f340f7]
320
+ - Updated dependencies [e53444f]
321
+ - Updated dependencies [5eedd26]
322
+ - Updated dependencies [92b0dd7]
323
+ - Updated dependencies [f919b6f]
324
+ - Updated dependencies [098e411]
325
+ - Updated dependencies [e1b7c01]
326
+ - Updated dependencies [9b94f87]
327
+ - Updated dependencies [a7df753]
328
+ - @zhin.js/agent@1.1.5
329
+ - @zhin.js/host-http@1.0.8
330
+ - @zhin.js/permission@1.0.1
331
+ - @zhin.js/im-contract@1.0.3
332
+ - @zhin.js/adapter@1.1.7
333
+ - @zhin.js/plugin-runtime@1.1.5
334
+ - @zhin.js/command@1.0.9
335
+ - @zhin.js/core@1.5.4
336
+ - zhin.js@6.0.4
337
+
338
+ ## 7.0.4
339
+
340
+ ### Patch Changes
341
+
342
+ - f8c7a54: fix: im
343
+ - Updated dependencies [f8c7a54]
344
+ - @zhin.js/logger@1.0.76
345
+ - @zhin.js/host-http@1.0.7
346
+ - @zhin.js/adapter@1.1.6
347
+ - @zhin.js/agent@1.1.4
348
+ - @zhin.js/command@1.0.8
349
+ - @zhin.js/core@1.5.3
350
+ - @zhin.js/im-contract@1.0.2
351
+ - @zhin.js/plugin-runtime@1.1.4
352
+ - zhin.js@6.0.3
353
+
354
+ ## 7.0.3
355
+
356
+ ### Patch Changes
357
+
358
+ - Updated dependencies [afc0e66]
359
+ - Updated dependencies [2e41ad5]
360
+ - Updated dependencies [9f57124]
361
+ - @zhin.js/core@1.5.2
362
+ - @zhin.js/adapter@1.1.5
363
+ - @zhin.js/im-contract@1.0.1
364
+ - @zhin.js/plugin-runtime@1.1.3
365
+ - @zhin.js/command@1.0.7
366
+ - @zhin.js/host-http@1.0.6
367
+ - @zhin.js/agent@1.1.3
368
+ - zhin.js@6.0.2
369
+
370
+ ## 7.0.2
371
+
372
+ ### Patch Changes
373
+
374
+ - Updated dependencies [696ab1b]
375
+ - @zhin.js/agent@1.1.2
376
+ - zhin.js@6.0.1
377
+
378
+ ## 7.0.1
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies [c8f4d45]
383
+ - @zhin.js/plugin-runtime@1.1.2
384
+ - @zhin.js/host-http@1.0.5
385
+ - @zhin.js/adapter@1.1.4
386
+ - @zhin.js/agent@1.1.1
387
+ - @zhin.js/command@1.0.6
388
+ - @zhin.js/core@1.5.1
389
+ - zhin.js@6.0.1
390
+
391
+ ## 7.0.0
392
+
393
+ ### Patch Changes
394
+
395
+ - 4fbff5d: feat!: 多模态双向 Segment 一贯制(BREAKING,无兼容层)
396
+
397
+ 全框架唯一媒体表达统一为 canonical `Segment` + `MediaRef{kind: url|path|base64|file, value, mime_type?, file_name?, size?}`,新增 audio/video/file 段类型;所有第二形状(legacy `data.url/file/base64` 字段、`mediaRefFromLegacyData`/`mediaRefToLegacyFields` 桥、双写)全部删除。
398
+
399
+ - **core**:`SendContent` 一等支持 `Segment[]`;endpoint 出站载荷只含 canonical 段;`resolveOutboundMediaPolicy` 改为纯声明驱动(adapter definition `segments.outboundMedia`),内置策略表删除,未声明回退 `url-or-text`;`ImageContent` 旧桥删除。
400
+ - **ai**:新增 `MediaContentBlock`/`MediaBlockRef`(Segment 同构)与 `UserMessage.media`(当前 turn 媒体,**不持久化**——存储层自动剥离);`createUserMessage(text, media?)` 签名变更(`ImageContent` 删除);provider 边界序列化器 `filterMediaBlocksForProvider` + 能力表(缺省 image-only,不支持类型降级占位文本);ai-sdk 桥媒体块 → SDK image/file parts。
401
+ - **agent**:入站 turn 注入(`turn/inbound-media.ts`)——commMessage 媒体段 → 当前 turn `UserMessage.media`;图片 path 物化、音频默认 STT(`@zhin.js/speech` 可选,失败降级占位)、视频/文件占位;`publishOutboundElements` 产出 canonical Segment;`transcribeAudioPayload` 导出。
402
+ - **cli**:`bridgeRuntimeMessage` 回复链路媒体段透传,不再压平为文本(`$reply` 直达 normalize → adapter)。
403
+ - **全部 20 个平台适配器**:出站媒体只消费 `data.media`(url 直发 / base64 直发 / 平台上传 / 读盘),入站媒体产出 canonical `data.media`;`segments.outboundMedia` 声明与实际消费逐一核对修正;QQ 入站新增 canonical segments(image/audio/video/file/mention/face/reply),图片/语音/视频不再丢失。
404
+
405
+ 迁移:适配器/插件产媒体一律用 `{ type, data: { media: MediaRef } }`;发送 legacy `data.url/file/base64` 形状的段会被 warn 丢弃。
406
+
407
+ - Updated dependencies [7c1e63a]
408
+ - Updated dependencies [4fbff5d]
409
+ - Updated dependencies [5b94d9c]
410
+ - @zhin.js/command@1.0.5
411
+ - @zhin.js/adapter@1.1.3
412
+ - @zhin.js/core@1.5.0
413
+ - @zhin.js/agent@1.1.0
414
+ - zhin.js@6.0.0
415
+
416
+ ## 6.0.6
417
+
418
+ ### Patch Changes
419
+
420
+ - d52f3c5: fix: QQ 适配器群聊误识别为私聊、game-kit 启动崩溃、全面补齐 recallMessage
421
+
422
+ - fix(cli): `resolveChannelType` 增加 `metadata.channelKind` 检查,修复 QQ/Discord/KOOK 群聊消息被误分类为私聊
423
+ - fix(game-kit): `createHostGameDb` 改用延迟代理模型,避免数据库启动前解析模型导致崩溃
424
+ - feat(qq): 实现 `recallMessage`,解析复合 messageId 路由到对应 SDK 撤回方法;`normalizeQqMessage` 增加 `message_type` 缺失时的回退检测
425
+ - feat(slack): 实现 `recallMessage`,利用已有 compound ref 和 `chat.delete` API
426
+ - feat(onebot11): 两个 endpoint 类实现 `recallMessage`(`delete_msg`)
427
+ - feat(onebot12): 两个 endpoint 类实现 `recallMessage`(`delete_message`)
428
+ - feat(napcat): 三个 endpoint 类实现 `recallMessage`(`delete_msg`)
429
+ - feat(discord): 两个 endpoint 类实现 `recallMessage`;`send()` 改为返回 `channelId:snowflake` 复合 ID
430
+ - feat(telegram): 实现 `recallMessage`(`deleteMessage`);`send()` 改为返回 `chatId:messageId` 复合 ID
431
+ - feat(kook): 两个 endpoint 类实现 `recallMessage`,利用 kook-client `recallMsg` API
432
+ - feat(lark): 实现 `recallMessage`(`DELETE /im/v1/messages/{id}`)
433
+ - feat(wecom): 实现 `recallMessage`(`POST /cgi-bin/message/recall`)
434
+
435
+ ## 6.0.5
436
+
437
+ ### Patch Changes
438
+
439
+ - Updated dependencies [d8bf702]
440
+ - @zhin.js/host-http@1.0.4
441
+ - @zhin.js/agent@1.0.10
442
+ - @zhin.js/core@1.4.3
443
+ - zhin.js@5.0.3
444
+
445
+ ## 6.0.4
446
+
447
+ ### Patch Changes
448
+
449
+ - Updated dependencies [45b3256]
450
+ - @zhin.js/core@1.4.3
451
+ - @zhin.js/agent@1.0.9
452
+ - zhin.js@5.0.3
453
+
454
+ ## 6.0.3
455
+
456
+ ### Patch Changes
457
+
458
+ - Updated dependencies [f346346]
459
+ - @zhin.js/agent@1.0.8
460
+ - @zhin.js/core@1.4.2
461
+ - zhin.js@5.0.2
462
+
463
+ ## 6.0.2
464
+
465
+ ### Patch Changes
466
+
467
+ - d5cd4aa: Publish Plugin Runtime entry points and convention modules as JavaScript so
468
+ installed npm plugins load on Node without TypeScript stripping. Workspace
469
+ development continues to prefer TypeScript sources for local HMR.
470
+
471
+ Remove the unconsumed legacy game hub APIs from game-kit; game navigation and
472
+ records now use ordinary convention commands owned by the game hub plugin.
473
+
474
+ - Updated dependencies [d5cd4aa]
475
+ - @zhin.js/command@1.0.4
476
+ - zhin.js@5.0.2
477
+ - @zhin.js/adapter@1.1.2
478
+ - @zhin.js/core@1.4.2
479
+ - @zhin.js/agent@1.0.7
480
+
481
+ ## 6.0.1
482
+
483
+ ### Patch Changes
484
+
485
+ - 5691aba: 第二轮全量审计修复批(8 面 ~60 bug):
486
+
487
+ - **安全**:email 附件路径穿越修复(basename + downloadPath 约束);lark/telegram/satori webhook 鉴权(缺密钥告警、timingSafeEqual、±5min 时效窗、chat_type 修正);onebot wss/webhook 缺 token 告警;qq webhook 改原始字节验签;renderJsx/JSX 转义注入修复;console runtime token 401 死循环。
488
+ - **P0 功能**:sandbox 多 endpoint 解析 + WS 路径隔离;short-url expand(undici opaqueredirect)改 follow;AI 压缩摘要失败不再静默丢历史(熔断恢复生效);console-ui 实时推送事件名归一化 + IndexedDB schema 对齐;process-monitor 热重载不再误判崩溃。
489
+ - **生命周期**:email IMAP 断线重连 + 在飞锁;onebot11/12 start 失败清理;line replyToken TTL + push 兜底;wechat-mp token 过期重试 + MsgId 去重;weixin-ilink buf 推进/防抖写盘/媒体 TTL/QR abort;satori PONG 看门狗;退避自毁修复。
490
+ - **游戏**:text-adventure 终局 restart 复活 + requires 服务端校验;tic-tac-toe PvP 占用/restart/队列清理/TTL;idiom-chain/word-riddle 闲聊不扣失误;别名中间件不劫持普通聊天。
491
+ - **共享库**:schema falsy 默认值/date/tuple/union 修复;database parseCondition Date/未知操作符、sqlite TEXT 往返、query 分派、belongsToMany 方言、migration dry-run;schedule DST 回拨死循环、重复 id 去重、flush 串行化;game-kit fallback 编号/onboarding 提示/尾缀边界/活引用拷贝。
492
+ - **渲染语音**:fetch 全部超时 + 渲染并发闸;sanitizeHtml form 保文本;STT 扩展名映射 + 删临时文件;TTS 未知 provider 报错;emojiCache LRU 负缓存/fontCache style/clearFonts 恢复;register 错误分类收窄。
493
+
494
+ - 74b035c: endpoint 管理命令扩展至 18/20 适配器:kook / discord / github(private_key 支持内联文件路径)/ icqq(bindFlow 登记式 add + `icqq login` 引导)/ dingtalk / lark / line / satori / wechat-mp / wecom / weixin-ilink 接入 `endpoint list/add/remove`(字段对齐各自 schema,凭据写 `.env`)。email(smtp/imap 嵌套对象)与 sandbox(无凭据)暂不接。
495
+ - 09d4f25: Console 社交读取面(management 语义端口)多平台落地:napcat/onebot11/onebot12/milky(好友+群+群成员,OneBot 标准动作);discord/kook/satori(guild+频道+成员,分页聚合,id 保精度留字符串);slack(workspace 成员+public channels+conversations.members);line(群/room 成员分页+profile 回退);wechat-mp(followers openid);weixin-ilink(context_token 对端推导);lark(chats+members 全分页)。`EndpointFriend.user_id`/`EndpointGroup.group_id` 放宽为 `number | string`(雪花 id 不丢精度)。telegram/wecom/dingtalk/github/email/sandbox 注明平台无列表面暂不接。
496
+ - 6cb6152: 统一消息元素通道(UNI-Channel)落地:
497
+
498
+ - **入站契约**:`IncomingMessage.segments`(canonical Segment[],与 content 纯文本视图同源双轨),Message 透传;AI 兜底链路经 `collectSegmentMedia` 把图片/语音/视频/文件 MediaRef 写入会话 extra——多模态输入不再丢失。
499
+ - **出站协商**:`normalizeOutboundPayload` 升级全量 canonical 归一(复用 generic-segment-mapper),html→image 按端点 `segments.outboundMedia` 声明降级(base64 直发 / url-or-text / passthrough 自行物化);`MediaRef.kind` 新增 `'file'` 承载平台不透明引用(file_id/resource_id)。
500
+ - **能力声明**:`defineAdapter.segments` policy(outboundMedia / interactive),三道段门禁复活(探测点改 adapters/\*.ts,豁免名单渐进收敛)。
501
+ - **首批迁移**:icqq 全保真出入站(CQ ↔ canonical,quote→reply 段);milky/telegram/discord 入站媒体段恢复(附件/贴纸/callback action);napcat/onebot11/onebot12 出站 canonical→OneBot 数组段;wechat-mp/wecom `/cgi-bin/media/upload` 与 lark `/im/v1/images` 上传通路(base64/URL 图片不再静默丢图,失败降级文本)。
502
+
503
+ - Updated dependencies [cdf64e7]
504
+ - Updated dependencies [2d0a159]
505
+ - Updated dependencies [5691aba]
506
+ - Updated dependencies [078e3f7]
507
+ - Updated dependencies [50497a5]
508
+ - Updated dependencies [9c997b2]
509
+ - Updated dependencies [09d4f25]
510
+ - Updated dependencies [43485a9]
511
+ - Updated dependencies [f0ec5ab]
512
+ - Updated dependencies [3e925d0]
513
+ - Updated dependencies [fa66c4c]
514
+ - Updated dependencies [fa66c4c]
515
+ - Updated dependencies [6cb6152]
516
+ - @zhin.js/command@1.0.3
517
+ - @zhin.js/agent@1.0.6
518
+ - @zhin.js/plugin-runtime@1.1.1
519
+ - @zhin.js/host-http@1.0.3
520
+ - zhin.js@5.0.1
521
+ - @zhin.js/adapter@1.1.1
522
+ - @zhin.js/core@1.4.1
523
+
524
+ ## 6.0.0
525
+
526
+ ### Patch Changes
527
+
528
+ - 7db69c1: 命令前缀改为适配器配置项:`MessageDispatcher` 不再硬编码 `/`,默认按消息所属适配器实例 config 的 `commandPrefix` 解析(默认 `''` 无前缀,任意文本按命令匹配),`endpoints[i].commandPrefix` 逐项覆盖;`ImRuntime({ commandPrefix })` 仍可设全局静态前缀。全部 20 个平台适配器 schema 新增 `commandPrefix` 属性。
529
+
530
+ BREAKING(行为变化):未配置时命令不再需要 `/` 前缀——原 `/zt` 写法不再命中,直接发 `zt` 即可;需要斜杠风格的适配器请在配置里显式设 `commandPrefix: '/'`。
531
+
532
+ - 713445c: 适配器配置格式定稿(不兼容旧格式):`plugins.<adapter>` 顶层仅共享字段 + `commandPrefix`,`endpoints[i]` 携带 endpoint 级字段(`name` + 凭据,各 schema 已类型化),`endpoints` 为必填(icqq 另需顶层 `master`);icqq 新增 `trusted` 列表(顶层/逐项均可)。scaffold-wizard 全部字段式与自定义 configure() 产出改为新格式,examples(full-bot / qq-games-bot)与 20 个适配器 README 同步迁移。
533
+ - Updated dependencies [7db69c1]
534
+ - Updated dependencies [e5c84ed]
535
+ - Updated dependencies [3ea84a0]
536
+ - Updated dependencies [1ddcd70]
537
+ - Updated dependencies [ac9da66]
538
+ - @zhin.js/core@1.4.0
539
+ - @zhin.js/adapter@1.1.0
540
+ - @zhin.js/plugin-runtime@1.1.0
541
+ - @zhin.js/agent@1.0.5
542
+ - @zhin.js/host-http@1.0.2
543
+ - zhin.js@5.0.0
544
+
545
+ ## 5.0.3
546
+
547
+ ### Patch Changes
548
+
549
+ - cc5c94d: 约定式插件运行时迁移(breaking):插件与适配器由 `usePlugin()` / `extends Adapter` 迁移为 `definePlugin` / `defineAdapter` + `plugin.ts` + 约定目录(`adapters/`、`commands/`、`components/`、`tools/` 等)。
550
+
551
+ - 新增约定式运行时包:`@zhin.js/plugin-runtime`、`@zhin.js/adapter`、`@zhin.js/runtime`、`@zhin.js/host-http`(首版 1.0.0 走 init-publish,不在本 changeset 内 bump)。
552
+ - 全部 20 个平台适配器改为约定式 `defineAdapter`,旧 `usePlugin` / `extends Adapter` / `segment-mapper` 生产入口已删除;onebot11 反向 WSS、onebot12 webhook/wss、milky sse/webhook/wss、satori webhook、kook webhook、qq webhook/middleware 等 slice 1 推迟的连接模式已补齐。
553
+ - 游戏 / 工具 / 服务插件同步迁移到约定目录结构。
554
+ - CLI 增加 plugin-runtime host installer(http/database/outbound/schedule/console 等)。
555
+
556
+ 后续加固(同批):
557
+
558
+ - CLI:`zhin runtime start --daemon`(pidfile/崩溃拉起/风暴保护),orphan watchdog 防僵尸进程;legacy `zhin dev` / `zhin start` 已移除(含 `zhin restart`),`zhin stop` 兼容新 daemon。
559
+ - 安全:builtin 工具统一走 `security/policy-facade.ts` 的 `runToolPolicies`(声明式策略表,deny 优先);审计日志 close flush + 背压队列;`splitCompoundCommand` 引号感知、`extractCommandName` 去引号堵绕过。
560
+ - 日志:Logger 双堆栈修复、本地时区、`getLogger` 挂树(`setLevel` 递归生效)、第三方库(log4js/discord)桥接、启动人读总结。
561
+ - 结构:`plugins/games/shared` 迁为 `packages/game-kit`(`@zhin.js/game-kit`);死目录 `plugins/adapters/common` 删除。
562
+ - 脚手架:`create-zhin-app` / `zhin new` / scaffold-wizard 生成物改为 Plugin Runtime 形态(minimal-bot 同构,新配置格式)。
563
+ - Console:endpoint.list 真实名称与 phase、schema:get-all 按 instanceKey 映射、db:\* 接 DatabaseHost。
564
+
565
+ 注:按仓库发布惯例(见 1bb345dd2),本次 breaking 迁移统一使用 patch,避免 zhin.js 5.0 级联。
566
+
567
+ - 447f3e2: 迁移缺口修复(legacy 功能对齐):
568
+
569
+ - html 段出站规范化:经 `@zhin.js/html-renderer` 渲染为 image 段(sandbox 豁免、无渲染器时降级文本),修复真实平台 `[object Object]`。
570
+ - 群聊 @ 触发 AI:适配器入站标注 `metadata.mentioned`(icqq/qq/slack/onebot11/onebot12/napcat/milky/discord/telegram/kook/dingtalk/satori),`matchAiTrigger` 补齐 ignorePrefixes/respondToAt/respondToPrivate/keywords(默认值与 legacy 对齐)。
571
+ - im_transcripts 全量流水恢复写入(chat_history 工具可用);群聊旁听上下文回迁。
572
+ - `ai.trigger.timeout/thinkingMessage/errorTemplate` 生效;masters/trusted 角色解析对齐 legacy。
573
+ - `Message.sender` 统一为用户 ID(onebot11/12、napcat、milky 原误传显示名);quote_id 经 metadata 接入 AI 引用上下文。
574
+
575
+ - Updated dependencies [16ec4e8]
576
+ - Updated dependencies [cc5c94d]
577
+ - Updated dependencies [447f3e2]
578
+ - @zhin.js/core@1.3.5
579
+ - @zhin.js/agent@1.0.4
580
+ - @zhin.js/host-http@1.0.1
581
+ - zhin.js@4.1.3
582
+ - @zhin.js/logger@1.0.75
583
+ - @zhin.js/plugin-runtime@1.0.1
584
+ - @zhin.js/adapter@1.0.1
585
+
586
+ ## 5.0.2
587
+
588
+ ### Patch Changes
589
+
590
+ - 872c583: fix: 代码格式优化
591
+ - Updated dependencies [872c583]
592
+ - Updated dependencies [872c583]
593
+ - @zhin.js/agent@1.0.3
594
+ - @zhin.js/client@2.0.5
595
+ - @zhin.js/contract@1.0.3
596
+ - @zhin.js/host-api@2.0.5
597
+ - @zhin.js/host-router@2.0.3
598
+ - zhin.js@4.1.2
599
+
600
+ ## 5.0.1
601
+
602
+ ### Patch Changes
603
+
604
+ - 5cc9c03: fix: ai 优化
605
+ - b9b3881: fix: 增加游戏引擎以及部分游戏
606
+ - 7700903: fix: 游戏强化
607
+ - Updated dependencies [5cc9c03]
608
+ - Updated dependencies [7700903]
609
+ - @zhin.js/client@2.0.4
610
+ - @zhin.js/contract@1.0.2
611
+ - @zhin.js/host-api@2.0.4
612
+ - @zhin.js/host-router@2.0.2
613
+ - zhin.js@4.1.1
614
+
615
+ ## 5.0.0
616
+
617
+ ### Patch Changes
618
+
619
+ - c4575c9: fix: 输入输出优化,文档优化
620
+ - Updated dependencies [c4575c9]
621
+ - Updated dependencies [c4575c9]
622
+ - @zhin.js/host-router@2.0.1
623
+ - @zhin.js/host-api@2.0.3
624
+ - zhin.js@4.1.0
625
+
626
+ ## 4.0.2
627
+
628
+ ### Patch Changes
629
+
630
+ - Updated dependencies [384ea11]
631
+ - @zhin.js/host-api@2.0.2
632
+ - zhin.js@4.0.1
633
+
634
+ ## 4.0.1
635
+
636
+ ### Patch Changes
637
+
638
+ - Updated dependencies [93e58d9]
639
+ - Updated dependencies [ae5239c]
640
+ - @zhin.js/host-api@2.0.1
641
+ - zhin.js@4.0.1
642
+ - @zhin.js/host-router@2.0.0
643
+
644
+ ## 4.0.0
645
+
646
+ ### Patch Changes
647
+
648
+ - zhin.js@3.0.0
649
+ - @zhin.js/host-api@2.0.0
650
+ - @zhin.js/host-router@2.0.0
651
+
652
+ ## 3.0.1
653
+
654
+ ### Patch Changes
655
+
656
+ - d8def69: fix: 性能优化
657
+ - 2ef4896: fix: 更新概念 Bot=>Endpoint,已适配后续更多的业务场景;统一角色权限
658
+ - Updated dependencies [d8def69]
659
+ - Updated dependencies [2ef4896]
660
+ - @zhin.js/host-router@1.0.1
661
+ - @zhin.js/host-api@1.0.1
662
+ - zhin.js@2.0.1
663
+ - @zhin.js/client@2.0.3
664
+
665
+ ## 3.0.0
666
+
667
+ ### Patch Changes
668
+
669
+ - Updated dependencies [65f4b0a]
670
+ - @zhin.js/host-api@1.0.0
671
+ - zhin.js@2.0.0
672
+ - @zhin.js/host-router@1.0.0
673
+
674
+ ## 2.0.11
675
+
676
+ ### Patch Changes
677
+
678
+ - Updated dependencies [d8547d2]
679
+ - zhin.js@1.0.92
680
+ - @zhin.js/host-router@0.0.3
681
+
682
+ ## 2.0.10
683
+
684
+ ### Patch Changes
685
+
686
+ - Updated dependencies [3735e96]
687
+ - Updated dependencies [238de62]
688
+ - @zhin.js/host-api@0.0.4
689
+ - zhin.js@1.0.91
690
+ - @zhin.js/host-router@0.0.3
691
+
692
+ ## 2.0.9
693
+
694
+ ### Patch Changes
695
+
696
+ - c8f8207: fix: 修复内存泄露问题
697
+ - Updated dependencies [c8f8207]
698
+ - @zhin.js/client@2.0.2
699
+ - @zhin.js/contract@1.0.1
700
+ - @zhin.js/host-api@0.0.3
701
+ - @zhin.js/host-router@0.0.3
702
+ - zhin.js@1.0.90
703
+
704
+ ## 2.0.8
705
+
706
+ ### Patch Changes
707
+
708
+ - c78d2cd: fix: cli 更新,文档更新
709
+ - Updated dependencies [c78d2cd]
710
+ - @zhin.js/client@2.0.1
711
+ - @zhin.js/host-router@0.0.2
712
+ - zhin.js@1.0.89
713
+ - @zhin.js/host-api@0.0.2
714
+
715
+ ## 2.0.7
716
+
717
+ ### Patch Changes
718
+
719
+ - Updated dependencies [ccb6e24]
720
+ - zhin.js@1.0.88
721
+
722
+ ## 2.0.6
723
+
724
+ ### Patch Changes
725
+
726
+ - 90d9efd: fix: 处理包名
727
+ - zhin.js@1.0.87
728
+ - @zhin.js/host-api@0.0.1
729
+ - @zhin.js/host-router@0.0.1
730
+
731
+ ## 2.0.5
732
+
733
+ ### Patch Changes
734
+
735
+ - 7e14f8d: fix: 统一发个版,优化一些列安全问题
736
+ - Updated dependencies [7e14f8d]
737
+ - @zhin.js/client@1.1.4
738
+ - zhin.js@1.0.86
739
+ - @zhin.js/console@3.0.5
740
+ - @zhin.js/host-router@1.0.79
741
+
742
+ ## 2.0.4
743
+
744
+ ### Patch Changes
745
+
746
+ - zhin.js@1.0.85
747
+ - @zhin.js/console@3.0.4
748
+ - @zhin.js/host-router@1.0.78
749
+
750
+ ## 2.0.3
751
+
752
+ ### Patch Changes
753
+
754
+ - f19d2e0: fix: remove multiple runtime support
755
+ - Updated dependencies [0db9fed]
756
+ - Updated dependencies [f19d2e0]
757
+ - @zhin.js/console@3.0.3
758
+ - zhin.js@1.0.84
759
+ - @zhin.js/client@1.1.3
760
+ - @zhin.js/host-router@1.0.77
761
+
762
+ ## 2.0.2
763
+
764
+ ### Patch Changes
765
+
766
+ - 775427e: fix: edge 支持
767
+ - Updated dependencies [775427e]
768
+ - @zhin.js/console@3.0.2
769
+ - @zhin.js/host-router@1.0.76
770
+ - @zhin.js/client@1.1.2
771
+ - zhin.js@1.0.83
772
+
773
+ ## 2.0.1
774
+
775
+ ### Patch Changes
776
+
777
+ - 32049f5: fix: init publish
778
+ - Updated dependencies [32049f5]
779
+ - @zhin.js/console@3.0.1
780
+ - @zhin.js/host-router@1.0.75
781
+ - @zhin.js/client@1.1.1
782
+ - zhin.js@1.0.82
783
+
784
+ ## 2.0.0
785
+
786
+ ### Patch Changes
787
+
788
+ - Updated dependencies
789
+ - @zhin.js/client@1.1.0
790
+ - @zhin.js/console@3.0.0
791
+
792
+ ## 1.0.87
793
+
794
+ ### Patch Changes
795
+
796
+ - Updated dependencies [8086ccb]
797
+ - zhin.js@1.0.81
798
+ - @zhin.js/console@2.0.24
799
+ - @zhin.js/host-router@1.0.74
800
+
3
801
  ## 1.0.86
4
802
 
5
803
  ### Patch Changes
6
804
 
7
805
  - zhin.js@1.0.80
8
806
  - @zhin.js/console@2.0.23
9
- - @zhin.js/http@1.0.73
807
+ - @zhin.js/host-router@1.0.73
10
808
 
11
809
  ## 1.0.85
12
810
 
@@ -14,7 +812,7 @@
14
812
 
15
813
  - zhin.js@1.0.79
16
814
  - @zhin.js/console@2.0.22
17
- - @zhin.js/http@1.0.72
815
+ - @zhin.js/host-router@1.0.72
18
816
 
19
817
  ## 1.0.84
20
818
 
@@ -23,7 +821,7 @@
23
821
  - Updated dependencies [88caeb2]
24
822
  - @zhin.js/console@2.0.21
25
823
  - zhin.js@1.0.78
26
- - @zhin.js/http@1.0.71
824
+ - @zhin.js/host-router@1.0.71
27
825
 
28
826
  ## 1.0.83
29
827
 
@@ -31,7 +829,7 @@
31
829
 
32
830
  - zhin.js@1.0.77
33
831
  - @zhin.js/console@2.0.20
34
- - @zhin.js/http@1.0.70
832
+ - @zhin.js/host-router@1.0.70
35
833
 
36
834
  ## 1.0.82
37
835
 
@@ -40,7 +838,7 @@
40
838
  - Updated dependencies [cb9fbf1]
41
839
  - zhin.js@1.0.76
42
840
  - @zhin.js/console@2.0.19
43
- - @zhin.js/http@1.0.69
841
+ - @zhin.js/host-router@1.0.69
44
842
 
45
843
  ## 1.0.81
46
844
 
@@ -48,7 +846,7 @@
48
846
 
49
847
  - zhin.js@1.0.75
50
848
  - @zhin.js/console@2.0.18
51
- - @zhin.js/http@1.0.68
849
+ - @zhin.js/host-router@1.0.68
52
850
 
53
851
  ## 1.0.80
54
852
 
@@ -57,7 +855,7 @@
57
855
  - Updated dependencies [c9dec38]
58
856
  - zhin.js@1.0.74
59
857
  - @zhin.js/console@2.0.17
60
- - @zhin.js/http@1.0.67
858
+ - @zhin.js/host-router@1.0.67
61
859
 
62
860
  ## 1.0.79
63
861
 
@@ -66,7 +864,7 @@
66
864
  - f1e9a76: fix: 提高 skill 质量
67
865
  - zhin.js@1.0.73
68
866
  - @zhin.js/console@2.0.16
69
- - @zhin.js/http@1.0.66
867
+ - @zhin.js/host-router@1.0.66
70
868
 
71
869
  ## 1.0.78
72
870
 
@@ -92,7 +890,7 @@
92
890
  - @zhin.js/client@1.0.18
93
891
  - zhin.js@1.0.72
94
892
  - @zhin.js/console@2.0.13
95
- - @zhin.js/http@1.0.65
893
+ - @zhin.js/host-router@1.0.65
96
894
 
97
895
  ## 1.0.75
98
896
 
@@ -110,7 +908,7 @@
110
908
  - @zhin.js/client@1.0.17
111
909
  - zhin.js@1.0.71
112
910
  - @zhin.js/console@2.0.11
113
- - @zhin.js/http@1.0.64
911
+ - @zhin.js/host-router@1.0.64
114
912
 
115
913
  ## 1.0.73
116
914
 
@@ -118,14 +916,14 @@
118
916
 
119
917
  - zhin.js@1.0.68
120
918
  - @zhin.js/console@2.0.10
121
- - @zhin.js/http@1.0.63
919
+ - @zhin.js/host-router@1.0.63
122
920
 
123
921
  ## 1.0.72
124
922
 
125
923
  ### Patch Changes
126
924
 
127
925
  - Updated dependencies [0eba6d6]
128
- - @zhin.js/http@1.0.62
926
+ - @zhin.js/host-router@1.0.62
129
927
  - zhin.js@1.0.67
130
928
  - @zhin.js/console@2.0.9
131
929
 
@@ -135,7 +933,7 @@
135
933
 
136
934
  - zhin.js@1.0.66
137
935
  - @zhin.js/console@2.0.8
138
- - @zhin.js/http@1.0.61
936
+ - @zhin.js/host-router@1.0.61
139
937
 
140
938
  ## 1.0.70
141
939
 
@@ -143,7 +941,7 @@
143
941
 
144
942
  - zhin.js@1.0.65
145
943
  - @zhin.js/console@2.0.7
146
- - @zhin.js/http@1.0.60
944
+ - @zhin.js/host-router@1.0.60
147
945
 
148
946
  ## 1.0.69
149
947
 
@@ -154,7 +952,7 @@
154
952
  - @zhin.js/client@1.0.16
155
953
  - zhin.js@1.0.64
156
954
  - @zhin.js/console@2.0.6
157
- - @zhin.js/http@1.0.59
955
+ - @zhin.js/host-router@1.0.59
158
956
 
159
957
  ## 1.0.68
160
958
 
@@ -163,7 +961,7 @@
163
961
  - ba30934: fix: web 优化
164
962
  - Updated dependencies [ba30934]
165
963
  - @zhin.js/console@2.0.5
166
- - @zhin.js/http@1.0.58
964
+ - @zhin.js/host-router@1.0.58
167
965
  - zhin.js@1.0.63
168
966
 
169
967
  ## 1.0.67
@@ -171,14 +969,14 @@
171
969
  ### Patch Changes
172
970
 
173
971
  - zhin.js@1.0.62
174
- - @zhin.js/http@1.0.57
972
+ - @zhin.js/host-router@1.0.57
175
973
 
176
974
  ## 1.0.66
177
975
 
178
976
  ### Patch Changes
179
977
 
180
978
  - zhin.js@1.0.61
181
- - @zhin.js/http@1.0.56
979
+ - @zhin.js/host-router@1.0.56
182
980
 
183
981
  ## 1.0.65
184
982
 
@@ -193,7 +991,7 @@
193
991
  chore: update tsconfig to include plugins directory for TypeScript compilation
194
992
  - Updated dependencies [5073d4c]
195
993
  - zhin.js@1.0.60
196
- - @zhin.js/http@1.0.55
994
+ - @zhin.js/host-router@1.0.55
197
995
 
198
996
  ## 1.0.64
199
997
 
@@ -202,35 +1000,35 @@
202
1000
  - c212bf7: fix: 适配器优化
203
1001
  - Updated dependencies [c212bf7]
204
1002
  - zhin.js@1.0.59
205
- - @zhin.js/http@1.0.54
1003
+ - @zhin.js/host-router@1.0.54
206
1004
 
207
1005
  ## 1.0.63
208
1006
 
209
1007
  ### Patch Changes
210
1008
 
211
1009
  - zhin.js@1.0.58
212
- - @zhin.js/http@1.0.53
1010
+ - @zhin.js/host-router@1.0.53
213
1011
 
214
1012
  ## 1.0.62
215
1013
 
216
1014
  ### Patch Changes
217
1015
 
218
1016
  - zhin.js@1.0.57
219
- - @zhin.js/http@1.0.52
1017
+ - @zhin.js/host-router@1.0.52
220
1018
 
221
1019
  ## 1.0.61
222
1020
 
223
1021
  ### Patch Changes
224
1022
 
225
1023
  - zhin.js@1.0.56
226
- - @zhin.js/http@1.0.51
1024
+ - @zhin.js/host-router@1.0.51
227
1025
 
228
1026
  ## 1.0.60
229
1027
 
230
1028
  ### Patch Changes
231
1029
 
232
1030
  - zhin.js@1.0.55
233
- - @zhin.js/http@1.0.50
1031
+ - @zhin.js/host-router@1.0.50
234
1032
 
235
1033
  ## 1.0.59
236
1034
 
@@ -239,14 +1037,14 @@
239
1037
  - 16c8f92: fix: 统一发一次版
240
1038
  - Updated dependencies [16c8f92]
241
1039
  - zhin.js@1.0.54
242
- - @zhin.js/http@1.0.49
1040
+ - @zhin.js/host-router@1.0.49
243
1041
 
244
1042
  ## 1.0.58
245
1043
 
246
1044
  ### Patch Changes
247
1045
 
248
1046
  - zhin.js@1.0.53
249
- - @zhin.js/http@1.0.48
1047
+ - @zhin.js/host-router@1.0.48
250
1048
 
251
1049
  ## 1.0.57
252
1050
 
@@ -254,7 +1052,7 @@
254
1052
 
255
1053
  - a3511a0: 各包内 Agent 技能说明已固定为随包发布的 `skills/*/SKILL.md`(替代已移除的运行时 `declareSkill`)。本批为 registry / 分发侧对齐的 **patch** 版本递增。
256
1054
  - Updated dependencies [a3511a0]
257
- - @zhin.js/http@1.0.47
1055
+ - @zhin.js/host-router@1.0.47
258
1056
 
259
1057
  ## 1.0.56
260
1058
 
@@ -263,35 +1061,35 @@
263
1061
  - Updated dependencies [bb6bfa8]
264
1062
  - Updated dependencies [bb6bfa8]
265
1063
  - zhin.js@1.0.52
266
- - @zhin.js/http@1.0.46
1064
+ - @zhin.js/host-router@1.0.46
267
1065
 
268
1066
  ## 1.0.55
269
1067
 
270
1068
  ### Patch Changes
271
1069
 
272
1070
  - zhin.js@1.0.51
273
- - @zhin.js/http@1.0.45
1071
+ - @zhin.js/host-router@1.0.45
274
1072
 
275
1073
  ## 1.0.54
276
1074
 
277
1075
  ### Patch Changes
278
1076
 
279
1077
  - zhin.js@1.0.50
280
- - @zhin.js/http@1.0.44
1078
+ - @zhin.js/host-router@1.0.44
281
1079
 
282
1080
  ## 1.0.53
283
1081
 
284
1082
  ### Patch Changes
285
1083
 
286
1084
  - zhin.js@1.0.49
287
- - @zhin.js/http@1.0.43
1085
+ - @zhin.js/host-router@1.0.43
288
1086
 
289
1087
  ## 1.0.52
290
1088
 
291
1089
  ### Patch Changes
292
1090
 
293
1091
  - zhin.js@1.0.48
294
- - @zhin.js/http@1.0.42
1092
+ - @zhin.js/host-router@1.0.42
295
1093
 
296
1094
  ## 1.0.51
297
1095
 
@@ -299,7 +1097,7 @@
299
1097
 
300
1098
  - Updated dependencies [de3e352]
301
1099
  - zhin.js@1.0.47
302
- - @zhin.js/http@1.0.41
1100
+ - @zhin.js/host-router@1.0.41
303
1101
 
304
1102
  ## 1.0.50
305
1103
 
@@ -307,28 +1105,28 @@
307
1105
 
308
1106
  - Updated dependencies [7394603]
309
1107
  - zhin.js@1.0.46
310
- - @zhin.js/http@1.0.40
1108
+ - @zhin.js/host-router@1.0.40
311
1109
 
312
1110
  ## 1.0.49
313
1111
 
314
1112
  ### Patch Changes
315
1113
 
316
1114
  - zhin.js@1.0.45
317
- - @zhin.js/http@1.0.39
1115
+ - @zhin.js/host-router@1.0.39
318
1116
 
319
1117
  ## 1.0.48
320
1118
 
321
1119
  ### Patch Changes
322
1120
 
323
1121
  - zhin.js@1.0.44
324
- - @zhin.js/http@1.0.38
1122
+ - @zhin.js/host-router@1.0.38
325
1123
 
326
1124
  ## 1.0.47
327
1125
 
328
1126
  ### Patch Changes
329
1127
 
330
1128
  - Updated dependencies [72ec4ba]
331
- - @zhin.js/http@1.0.37
1129
+ - @zhin.js/host-router@1.0.37
332
1130
  - zhin.js@1.0.43
333
1131
 
334
1132
  ## 1.0.46
@@ -336,14 +1134,14 @@
336
1134
  ### Patch Changes
337
1135
 
338
1136
  - zhin.js@1.0.42
339
- - @zhin.js/http@1.0.36
1137
+ - @zhin.js/host-router@1.0.36
340
1138
 
341
1139
  ## 1.0.45
342
1140
 
343
1141
  ### Patch Changes
344
1142
 
345
1143
  - zhin.js@1.0.41
346
- - @zhin.js/http@1.0.35
1144
+ - @zhin.js/host-router@1.0.35
347
1145
 
348
1146
  ## 1.0.44
349
1147
 
@@ -352,14 +1150,14 @@
352
1150
  - 7ef9057: fix: 架构调整优化
353
1151
  - Updated dependencies [7ef9057]
354
1152
  - zhin.js@1.0.40
355
- - @zhin.js/http@1.0.34
1153
+ - @zhin.js/host-router@1.0.34
356
1154
 
357
1155
  ## 1.0.43
358
1156
 
359
1157
  ### Patch Changes
360
1158
 
361
1159
  - zhin.js@1.0.39
362
- - @zhin.js/http@1.0.33
1160
+ - @zhin.js/host-router@1.0.33
363
1161
 
364
1162
  ## 1.0.42
365
1163
 
@@ -368,14 +1166,14 @@
368
1166
  - ab5c54a: fix: ai 架构优化
369
1167
  - Updated dependencies [ab5c54a]
370
1168
  - zhin.js@1.0.38
371
- - @zhin.js/http@1.0.32
1169
+ - @zhin.js/host-router@1.0.32
372
1170
 
373
1171
  ## 1.0.41
374
1172
 
375
1173
  ### Patch Changes
376
1174
 
377
1175
  - Updated dependencies [631da6e]
378
- - @zhin.js/http@1.0.31
1176
+ - @zhin.js/host-router@1.0.31
379
1177
 
380
1178
  ## 1.0.40
381
1179
 
@@ -388,7 +1186,7 @@
388
1186
  ### Patch Changes
389
1187
 
390
1188
  - zhin.js@1.0.37
391
- - @zhin.js/http@1.0.30
1189
+ - @zhin.js/host-router@1.0.30
392
1190
 
393
1191
  ## 1.0.38
394
1192
 
@@ -396,7 +1194,7 @@
396
1194
 
397
1195
  - Updated dependencies [432d0a5]
398
1196
  - Updated dependencies [6d94111]
399
- - @zhin.js/http@1.0.29
1197
+ - @zhin.js/host-router@1.0.29
400
1198
  - zhin.js@1.0.36
401
1199
 
402
1200
  ## 1.0.37
@@ -404,42 +1202,42 @@
404
1202
  ### Patch Changes
405
1203
 
406
1204
  - zhin.js@1.0.35
407
- - @zhin.js/http@1.0.28
1205
+ - @zhin.js/host-router@1.0.28
408
1206
 
409
1207
  ## 1.0.36
410
1208
 
411
1209
  ### Patch Changes
412
1210
 
413
1211
  - zhin.js@1.0.34
414
- - @zhin.js/http@1.0.27
1212
+ - @zhin.js/host-router@1.0.27
415
1213
 
416
1214
  ## 1.0.35
417
1215
 
418
1216
  ### Patch Changes
419
1217
 
420
1218
  - zhin.js@1.0.33
421
- - @zhin.js/http@1.0.26
1219
+ - @zhin.js/host-router@1.0.26
422
1220
 
423
1221
  ## 1.0.34
424
1222
 
425
1223
  ### Patch Changes
426
1224
 
427
1225
  - Updated dependencies [48481a8]
428
- - @zhin.js/http@1.0.25
1226
+ - @zhin.js/host-router@1.0.25
429
1227
 
430
1228
  ## 1.0.33
431
1229
 
432
1230
  ### Patch Changes
433
1231
 
434
1232
  - zhin.js@1.0.32
435
- - @zhin.js/http@1.0.24
1233
+ - @zhin.js/host-router@1.0.24
436
1234
 
437
1235
  ## 1.0.32
438
1236
 
439
1237
  ### Patch Changes
440
1238
 
441
1239
  - zhin.js@1.0.31
442
- - @zhin.js/http@1.0.23
1240
+ - @zhin.js/host-router@1.0.23
443
1241
 
444
1242
  ## 1.0.31
445
1243
 
@@ -447,21 +1245,21 @@
447
1245
 
448
1246
  - Updated dependencies [460a6c6]
449
1247
  - zhin.js@1.0.30
450
- - @zhin.js/http@1.0.22
1248
+ - @zhin.js/host-router@1.0.22
451
1249
 
452
1250
  ## 1.0.30
453
1251
 
454
1252
  ### Patch Changes
455
1253
 
456
1254
  - zhin.js@1.0.29
457
- - @zhin.js/http@1.0.21
1255
+ - @zhin.js/host-router@1.0.21
458
1256
 
459
1257
  ## 1.0.29
460
1258
 
461
1259
  ### Patch Changes
462
1260
 
463
1261
  - Updated dependencies [05a514d]
464
- - @zhin.js/http@1.0.20
1262
+ - @zhin.js/host-router@1.0.20
465
1263
  - zhin.js@1.0.28
466
1264
 
467
1265
  ## 1.0.28
@@ -469,14 +1267,14 @@
469
1267
  ### Patch Changes
470
1268
 
471
1269
  - Updated dependencies [2b44e18]
472
- - @zhin.js/http@1.0.19
1270
+ - @zhin.js/host-router@1.0.19
473
1271
 
474
1272
  ## 1.0.27
475
1273
 
476
1274
  ### Patch Changes
477
1275
 
478
1276
  - Updated dependencies [b27e633]
479
- - @zhin.js/http@1.0.18
1277
+ - @zhin.js/host-router@1.0.18
480
1278
  - zhin.js@1.0.27
481
1279
 
482
1280
  ## 1.0.26
@@ -485,7 +1283,7 @@
485
1283
 
486
1284
  - 106d357: fix: ai
487
1285
  - Updated dependencies [106d357]
488
- - @zhin.js/http@1.0.17
1286
+ - @zhin.js/host-router@1.0.17
489
1287
  - zhin.js@1.0.26
490
1288
 
491
1289
  ## 1.0.25
@@ -497,14 +1295,14 @@
497
1295
  - Updated dependencies [26d2942]
498
1296
  - Updated dependencies [6b02c41]
499
1297
  - zhin.js@1.0.25
500
- - @zhin.js/http@1.0.16
1298
+ - @zhin.js/host-router@1.0.16
501
1299
 
502
1300
  ## 1.0.24
503
1301
 
504
1302
  ### Patch Changes
505
1303
 
506
1304
  - zhin.js@1.0.24
507
- - @zhin.js/http@1.0.15
1305
+ - @zhin.js/host-router@1.0.15
508
1306
 
509
1307
  ## 1.0.23
510
1308
 
@@ -513,7 +1311,7 @@
513
1311
  - 52ae08a: fix: 更新消息处理流程
514
1312
  - Updated dependencies [52ae08a]
515
1313
  - zhin.js@1.0.23
516
- - @zhin.js/http@1.0.14
1314
+ - @zhin.js/host-router@1.0.14
517
1315
 
518
1316
  ## 1.0.22
519
1317
 
@@ -521,14 +1319,14 @@
521
1319
 
522
1320
  - Updated dependencies [26aba27]
523
1321
  - zhin.js@1.0.22
524
- - @zhin.js/http@1.0.13
1322
+ - @zhin.js/host-router@1.0.13
525
1323
 
526
1324
  ## 1.0.21
527
1325
 
528
1326
  ### Patch Changes
529
1327
 
530
1328
  - zhin.js@1.0.21
531
- - @zhin.js/http@1.0.12
1329
+ - @zhin.js/host-router@1.0.12
532
1330
 
533
1331
  ## 1.0.20
534
1332
 
@@ -538,7 +1336,7 @@
538
1336
  - 5141137: fix: 修复适配器读取配置 bug
539
1337
  - Updated dependencies [a3b7673]
540
1338
  - Updated dependencies [5141137]
541
- - @zhin.js/http@1.0.11
1339
+ - @zhin.js/host-router@1.0.11
542
1340
  - zhin.js@1.0.20
543
1341
 
544
1342
  ## 1.0.19
@@ -548,7 +1346,7 @@
548
1346
  - f9faa1d: fix: test release
549
1347
  - Updated dependencies [f9faa1d]
550
1348
  - zhin.js@1.0.19
551
- - @zhin.js/http@1.0.10
1349
+ - @zhin.js/host-router@1.0.10
552
1350
 
553
1351
  ## 1.0.18
554
1352
 
@@ -557,7 +1355,7 @@
557
1355
  - d16a69c: fix: test trust publish
558
1356
  - Updated dependencies [d16a69c]
559
1357
  - zhin.js@1.0.18
560
- - @zhin.js/http@1.0.9
1358
+ - @zhin.js/host-router@1.0.9
561
1359
 
562
1360
  ## 1.0.17
563
1361