@zhin.js/adapter-discord 1.0.87 → 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 +855 -66
  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,5 +1,794 @@
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
+
3
792
  ## 1.0.87
4
793
 
5
794
  ### Patch Changes
@@ -7,7 +796,7 @@
7
796
  - Updated dependencies [8086ccb]
8
797
  - zhin.js@1.0.81
9
798
  - @zhin.js/console@2.0.24
10
- - @zhin.js/http@1.0.74
799
+ - @zhin.js/host-router@1.0.74
11
800
 
12
801
  ## 1.0.86
13
802
 
@@ -15,7 +804,7 @@
15
804
 
16
805
  - zhin.js@1.0.80
17
806
  - @zhin.js/console@2.0.23
18
- - @zhin.js/http@1.0.73
807
+ - @zhin.js/host-router@1.0.73
19
808
 
20
809
  ## 1.0.85
21
810
 
@@ -23,7 +812,7 @@
23
812
 
24
813
  - zhin.js@1.0.79
25
814
  - @zhin.js/console@2.0.22
26
- - @zhin.js/http@1.0.72
815
+ - @zhin.js/host-router@1.0.72
27
816
 
28
817
  ## 1.0.84
29
818
 
@@ -32,7 +821,7 @@
32
821
  - Updated dependencies [88caeb2]
33
822
  - @zhin.js/console@2.0.21
34
823
  - zhin.js@1.0.78
35
- - @zhin.js/http@1.0.71
824
+ - @zhin.js/host-router@1.0.71
36
825
 
37
826
  ## 1.0.83
38
827
 
@@ -40,7 +829,7 @@
40
829
 
41
830
  - zhin.js@1.0.77
42
831
  - @zhin.js/console@2.0.20
43
- - @zhin.js/http@1.0.70
832
+ - @zhin.js/host-router@1.0.70
44
833
 
45
834
  ## 1.0.82
46
835
 
@@ -49,7 +838,7 @@
49
838
  - Updated dependencies [cb9fbf1]
50
839
  - zhin.js@1.0.76
51
840
  - @zhin.js/console@2.0.19
52
- - @zhin.js/http@1.0.69
841
+ - @zhin.js/host-router@1.0.69
53
842
 
54
843
  ## 1.0.81
55
844
 
@@ -57,7 +846,7 @@
57
846
 
58
847
  - zhin.js@1.0.75
59
848
  - @zhin.js/console@2.0.18
60
- - @zhin.js/http@1.0.68
849
+ - @zhin.js/host-router@1.0.68
61
850
 
62
851
  ## 1.0.80
63
852
 
@@ -66,7 +855,7 @@
66
855
  - Updated dependencies [c9dec38]
67
856
  - zhin.js@1.0.74
68
857
  - @zhin.js/console@2.0.17
69
- - @zhin.js/http@1.0.67
858
+ - @zhin.js/host-router@1.0.67
70
859
 
71
860
  ## 1.0.79
72
861
 
@@ -75,7 +864,7 @@
75
864
  - f1e9a76: fix: 提高 skill 质量
76
865
  - zhin.js@1.0.73
77
866
  - @zhin.js/console@2.0.16
78
- - @zhin.js/http@1.0.66
867
+ - @zhin.js/host-router@1.0.66
79
868
 
80
869
  ## 1.0.78
81
870
 
@@ -101,7 +890,7 @@
101
890
  - @zhin.js/client@1.0.18
102
891
  - zhin.js@1.0.72
103
892
  - @zhin.js/console@2.0.13
104
- - @zhin.js/http@1.0.65
893
+ - @zhin.js/host-router@1.0.65
105
894
 
106
895
  ## 1.0.75
107
896
 
@@ -119,7 +908,7 @@
119
908
  - @zhin.js/client@1.0.17
120
909
  - zhin.js@1.0.71
121
910
  - @zhin.js/console@2.0.11
122
- - @zhin.js/http@1.0.64
911
+ - @zhin.js/host-router@1.0.64
123
912
 
124
913
  ## 1.0.73
125
914
 
@@ -127,14 +916,14 @@
127
916
 
128
917
  - zhin.js@1.0.68
129
918
  - @zhin.js/console@2.0.10
130
- - @zhin.js/http@1.0.63
919
+ - @zhin.js/host-router@1.0.63
131
920
 
132
921
  ## 1.0.72
133
922
 
134
923
  ### Patch Changes
135
924
 
136
925
  - Updated dependencies [0eba6d6]
137
- - @zhin.js/http@1.0.62
926
+ - @zhin.js/host-router@1.0.62
138
927
  - zhin.js@1.0.67
139
928
  - @zhin.js/console@2.0.9
140
929
 
@@ -144,7 +933,7 @@
144
933
 
145
934
  - zhin.js@1.0.66
146
935
  - @zhin.js/console@2.0.8
147
- - @zhin.js/http@1.0.61
936
+ - @zhin.js/host-router@1.0.61
148
937
 
149
938
  ## 1.0.70
150
939
 
@@ -152,7 +941,7 @@
152
941
 
153
942
  - zhin.js@1.0.65
154
943
  - @zhin.js/console@2.0.7
155
- - @zhin.js/http@1.0.60
944
+ - @zhin.js/host-router@1.0.60
156
945
 
157
946
  ## 1.0.69
158
947
 
@@ -163,7 +952,7 @@
163
952
  - @zhin.js/client@1.0.16
164
953
  - zhin.js@1.0.64
165
954
  - @zhin.js/console@2.0.6
166
- - @zhin.js/http@1.0.59
955
+ - @zhin.js/host-router@1.0.59
167
956
 
168
957
  ## 1.0.68
169
958
 
@@ -172,7 +961,7 @@
172
961
  - ba30934: fix: web 优化
173
962
  - Updated dependencies [ba30934]
174
963
  - @zhin.js/console@2.0.5
175
- - @zhin.js/http@1.0.58
964
+ - @zhin.js/host-router@1.0.58
176
965
  - zhin.js@1.0.63
177
966
 
178
967
  ## 1.0.67
@@ -180,14 +969,14 @@
180
969
  ### Patch Changes
181
970
 
182
971
  - zhin.js@1.0.62
183
- - @zhin.js/http@1.0.57
972
+ - @zhin.js/host-router@1.0.57
184
973
 
185
974
  ## 1.0.66
186
975
 
187
976
  ### Patch Changes
188
977
 
189
978
  - zhin.js@1.0.61
190
- - @zhin.js/http@1.0.56
979
+ - @zhin.js/host-router@1.0.56
191
980
 
192
981
  ## 1.0.65
193
982
 
@@ -202,7 +991,7 @@
202
991
  chore: update tsconfig to include plugins directory for TypeScript compilation
203
992
  - Updated dependencies [5073d4c]
204
993
  - zhin.js@1.0.60
205
- - @zhin.js/http@1.0.55
994
+ - @zhin.js/host-router@1.0.55
206
995
 
207
996
  ## 1.0.64
208
997
 
@@ -211,35 +1000,35 @@
211
1000
  - c212bf7: fix: 适配器优化
212
1001
  - Updated dependencies [c212bf7]
213
1002
  - zhin.js@1.0.59
214
- - @zhin.js/http@1.0.54
1003
+ - @zhin.js/host-router@1.0.54
215
1004
 
216
1005
  ## 1.0.63
217
1006
 
218
1007
  ### Patch Changes
219
1008
 
220
1009
  - zhin.js@1.0.58
221
- - @zhin.js/http@1.0.53
1010
+ - @zhin.js/host-router@1.0.53
222
1011
 
223
1012
  ## 1.0.62
224
1013
 
225
1014
  ### Patch Changes
226
1015
 
227
1016
  - zhin.js@1.0.57
228
- - @zhin.js/http@1.0.52
1017
+ - @zhin.js/host-router@1.0.52
229
1018
 
230
1019
  ## 1.0.61
231
1020
 
232
1021
  ### Patch Changes
233
1022
 
234
1023
  - zhin.js@1.0.56
235
- - @zhin.js/http@1.0.51
1024
+ - @zhin.js/host-router@1.0.51
236
1025
 
237
1026
  ## 1.0.60
238
1027
 
239
1028
  ### Patch Changes
240
1029
 
241
1030
  - zhin.js@1.0.55
242
- - @zhin.js/http@1.0.50
1031
+ - @zhin.js/host-router@1.0.50
243
1032
 
244
1033
  ## 1.0.59
245
1034
 
@@ -248,14 +1037,14 @@
248
1037
  - 16c8f92: fix: 统一发一次版
249
1038
  - Updated dependencies [16c8f92]
250
1039
  - zhin.js@1.0.54
251
- - @zhin.js/http@1.0.49
1040
+ - @zhin.js/host-router@1.0.49
252
1041
 
253
1042
  ## 1.0.58
254
1043
 
255
1044
  ### Patch Changes
256
1045
 
257
1046
  - zhin.js@1.0.53
258
- - @zhin.js/http@1.0.48
1047
+ - @zhin.js/host-router@1.0.48
259
1048
 
260
1049
  ## 1.0.57
261
1050
 
@@ -263,7 +1052,7 @@
263
1052
 
264
1053
  - a3511a0: 各包内 Agent 技能说明已固定为随包发布的 `skills/*/SKILL.md`(替代已移除的运行时 `declareSkill`)。本批为 registry / 分发侧对齐的 **patch** 版本递增。
265
1054
  - Updated dependencies [a3511a0]
266
- - @zhin.js/http@1.0.47
1055
+ - @zhin.js/host-router@1.0.47
267
1056
 
268
1057
  ## 1.0.56
269
1058
 
@@ -272,35 +1061,35 @@
272
1061
  - Updated dependencies [bb6bfa8]
273
1062
  - Updated dependencies [bb6bfa8]
274
1063
  - zhin.js@1.0.52
275
- - @zhin.js/http@1.0.46
1064
+ - @zhin.js/host-router@1.0.46
276
1065
 
277
1066
  ## 1.0.55
278
1067
 
279
1068
  ### Patch Changes
280
1069
 
281
1070
  - zhin.js@1.0.51
282
- - @zhin.js/http@1.0.45
1071
+ - @zhin.js/host-router@1.0.45
283
1072
 
284
1073
  ## 1.0.54
285
1074
 
286
1075
  ### Patch Changes
287
1076
 
288
1077
  - zhin.js@1.0.50
289
- - @zhin.js/http@1.0.44
1078
+ - @zhin.js/host-router@1.0.44
290
1079
 
291
1080
  ## 1.0.53
292
1081
 
293
1082
  ### Patch Changes
294
1083
 
295
1084
  - zhin.js@1.0.49
296
- - @zhin.js/http@1.0.43
1085
+ - @zhin.js/host-router@1.0.43
297
1086
 
298
1087
  ## 1.0.52
299
1088
 
300
1089
  ### Patch Changes
301
1090
 
302
1091
  - zhin.js@1.0.48
303
- - @zhin.js/http@1.0.42
1092
+ - @zhin.js/host-router@1.0.42
304
1093
 
305
1094
  ## 1.0.51
306
1095
 
@@ -308,7 +1097,7 @@
308
1097
 
309
1098
  - Updated dependencies [de3e352]
310
1099
  - zhin.js@1.0.47
311
- - @zhin.js/http@1.0.41
1100
+ - @zhin.js/host-router@1.0.41
312
1101
 
313
1102
  ## 1.0.50
314
1103
 
@@ -316,28 +1105,28 @@
316
1105
 
317
1106
  - Updated dependencies [7394603]
318
1107
  - zhin.js@1.0.46
319
- - @zhin.js/http@1.0.40
1108
+ - @zhin.js/host-router@1.0.40
320
1109
 
321
1110
  ## 1.0.49
322
1111
 
323
1112
  ### Patch Changes
324
1113
 
325
1114
  - zhin.js@1.0.45
326
- - @zhin.js/http@1.0.39
1115
+ - @zhin.js/host-router@1.0.39
327
1116
 
328
1117
  ## 1.0.48
329
1118
 
330
1119
  ### Patch Changes
331
1120
 
332
1121
  - zhin.js@1.0.44
333
- - @zhin.js/http@1.0.38
1122
+ - @zhin.js/host-router@1.0.38
334
1123
 
335
1124
  ## 1.0.47
336
1125
 
337
1126
  ### Patch Changes
338
1127
 
339
1128
  - Updated dependencies [72ec4ba]
340
- - @zhin.js/http@1.0.37
1129
+ - @zhin.js/host-router@1.0.37
341
1130
  - zhin.js@1.0.43
342
1131
 
343
1132
  ## 1.0.46
@@ -345,14 +1134,14 @@
345
1134
  ### Patch Changes
346
1135
 
347
1136
  - zhin.js@1.0.42
348
- - @zhin.js/http@1.0.36
1137
+ - @zhin.js/host-router@1.0.36
349
1138
 
350
1139
  ## 1.0.45
351
1140
 
352
1141
  ### Patch Changes
353
1142
 
354
1143
  - zhin.js@1.0.41
355
- - @zhin.js/http@1.0.35
1144
+ - @zhin.js/host-router@1.0.35
356
1145
 
357
1146
  ## 1.0.44
358
1147
 
@@ -361,14 +1150,14 @@
361
1150
  - 7ef9057: fix: 架构调整优化
362
1151
  - Updated dependencies [7ef9057]
363
1152
  - zhin.js@1.0.40
364
- - @zhin.js/http@1.0.34
1153
+ - @zhin.js/host-router@1.0.34
365
1154
 
366
1155
  ## 1.0.43
367
1156
 
368
1157
  ### Patch Changes
369
1158
 
370
1159
  - zhin.js@1.0.39
371
- - @zhin.js/http@1.0.33
1160
+ - @zhin.js/host-router@1.0.33
372
1161
 
373
1162
  ## 1.0.42
374
1163
 
@@ -377,14 +1166,14 @@
377
1166
  - ab5c54a: fix: ai 架构优化
378
1167
  - Updated dependencies [ab5c54a]
379
1168
  - zhin.js@1.0.38
380
- - @zhin.js/http@1.0.32
1169
+ - @zhin.js/host-router@1.0.32
381
1170
 
382
1171
  ## 1.0.41
383
1172
 
384
1173
  ### Patch Changes
385
1174
 
386
1175
  - Updated dependencies [631da6e]
387
- - @zhin.js/http@1.0.31
1176
+ - @zhin.js/host-router@1.0.31
388
1177
 
389
1178
  ## 1.0.40
390
1179
 
@@ -397,7 +1186,7 @@
397
1186
  ### Patch Changes
398
1187
 
399
1188
  - zhin.js@1.0.37
400
- - @zhin.js/http@1.0.30
1189
+ - @zhin.js/host-router@1.0.30
401
1190
 
402
1191
  ## 1.0.38
403
1192
 
@@ -405,7 +1194,7 @@
405
1194
 
406
1195
  - Updated dependencies [432d0a5]
407
1196
  - Updated dependencies [6d94111]
408
- - @zhin.js/http@1.0.29
1197
+ - @zhin.js/host-router@1.0.29
409
1198
  - zhin.js@1.0.36
410
1199
 
411
1200
  ## 1.0.37
@@ -413,42 +1202,42 @@
413
1202
  ### Patch Changes
414
1203
 
415
1204
  - zhin.js@1.0.35
416
- - @zhin.js/http@1.0.28
1205
+ - @zhin.js/host-router@1.0.28
417
1206
 
418
1207
  ## 1.0.36
419
1208
 
420
1209
  ### Patch Changes
421
1210
 
422
1211
  - zhin.js@1.0.34
423
- - @zhin.js/http@1.0.27
1212
+ - @zhin.js/host-router@1.0.27
424
1213
 
425
1214
  ## 1.0.35
426
1215
 
427
1216
  ### Patch Changes
428
1217
 
429
1218
  - zhin.js@1.0.33
430
- - @zhin.js/http@1.0.26
1219
+ - @zhin.js/host-router@1.0.26
431
1220
 
432
1221
  ## 1.0.34
433
1222
 
434
1223
  ### Patch Changes
435
1224
 
436
1225
  - Updated dependencies [48481a8]
437
- - @zhin.js/http@1.0.25
1226
+ - @zhin.js/host-router@1.0.25
438
1227
 
439
1228
  ## 1.0.33
440
1229
 
441
1230
  ### Patch Changes
442
1231
 
443
1232
  - zhin.js@1.0.32
444
- - @zhin.js/http@1.0.24
1233
+ - @zhin.js/host-router@1.0.24
445
1234
 
446
1235
  ## 1.0.32
447
1236
 
448
1237
  ### Patch Changes
449
1238
 
450
1239
  - zhin.js@1.0.31
451
- - @zhin.js/http@1.0.23
1240
+ - @zhin.js/host-router@1.0.23
452
1241
 
453
1242
  ## 1.0.31
454
1243
 
@@ -456,21 +1245,21 @@
456
1245
 
457
1246
  - Updated dependencies [460a6c6]
458
1247
  - zhin.js@1.0.30
459
- - @zhin.js/http@1.0.22
1248
+ - @zhin.js/host-router@1.0.22
460
1249
 
461
1250
  ## 1.0.30
462
1251
 
463
1252
  ### Patch Changes
464
1253
 
465
1254
  - zhin.js@1.0.29
466
- - @zhin.js/http@1.0.21
1255
+ - @zhin.js/host-router@1.0.21
467
1256
 
468
1257
  ## 1.0.29
469
1258
 
470
1259
  ### Patch Changes
471
1260
 
472
1261
  - Updated dependencies [05a514d]
473
- - @zhin.js/http@1.0.20
1262
+ - @zhin.js/host-router@1.0.20
474
1263
  - zhin.js@1.0.28
475
1264
 
476
1265
  ## 1.0.28
@@ -478,14 +1267,14 @@
478
1267
  ### Patch Changes
479
1268
 
480
1269
  - Updated dependencies [2b44e18]
481
- - @zhin.js/http@1.0.19
1270
+ - @zhin.js/host-router@1.0.19
482
1271
 
483
1272
  ## 1.0.27
484
1273
 
485
1274
  ### Patch Changes
486
1275
 
487
1276
  - Updated dependencies [b27e633]
488
- - @zhin.js/http@1.0.18
1277
+ - @zhin.js/host-router@1.0.18
489
1278
  - zhin.js@1.0.27
490
1279
 
491
1280
  ## 1.0.26
@@ -494,7 +1283,7 @@
494
1283
 
495
1284
  - 106d357: fix: ai
496
1285
  - Updated dependencies [106d357]
497
- - @zhin.js/http@1.0.17
1286
+ - @zhin.js/host-router@1.0.17
498
1287
  - zhin.js@1.0.26
499
1288
 
500
1289
  ## 1.0.25
@@ -506,14 +1295,14 @@
506
1295
  - Updated dependencies [26d2942]
507
1296
  - Updated dependencies [6b02c41]
508
1297
  - zhin.js@1.0.25
509
- - @zhin.js/http@1.0.16
1298
+ - @zhin.js/host-router@1.0.16
510
1299
 
511
1300
  ## 1.0.24
512
1301
 
513
1302
  ### Patch Changes
514
1303
 
515
1304
  - zhin.js@1.0.24
516
- - @zhin.js/http@1.0.15
1305
+ - @zhin.js/host-router@1.0.15
517
1306
 
518
1307
  ## 1.0.23
519
1308
 
@@ -522,7 +1311,7 @@
522
1311
  - 52ae08a: fix: 更新消息处理流程
523
1312
  - Updated dependencies [52ae08a]
524
1313
  - zhin.js@1.0.23
525
- - @zhin.js/http@1.0.14
1314
+ - @zhin.js/host-router@1.0.14
526
1315
 
527
1316
  ## 1.0.22
528
1317
 
@@ -530,14 +1319,14 @@
530
1319
 
531
1320
  - Updated dependencies [26aba27]
532
1321
  - zhin.js@1.0.22
533
- - @zhin.js/http@1.0.13
1322
+ - @zhin.js/host-router@1.0.13
534
1323
 
535
1324
  ## 1.0.21
536
1325
 
537
1326
  ### Patch Changes
538
1327
 
539
1328
  - zhin.js@1.0.21
540
- - @zhin.js/http@1.0.12
1329
+ - @zhin.js/host-router@1.0.12
541
1330
 
542
1331
  ## 1.0.20
543
1332
 
@@ -547,7 +1336,7 @@
547
1336
  - 5141137: fix: 修复适配器读取配置 bug
548
1337
  - Updated dependencies [a3b7673]
549
1338
  - Updated dependencies [5141137]
550
- - @zhin.js/http@1.0.11
1339
+ - @zhin.js/host-router@1.0.11
551
1340
  - zhin.js@1.0.20
552
1341
 
553
1342
  ## 1.0.19
@@ -557,7 +1346,7 @@
557
1346
  - f9faa1d: fix: test release
558
1347
  - Updated dependencies [f9faa1d]
559
1348
  - zhin.js@1.0.19
560
- - @zhin.js/http@1.0.10
1349
+ - @zhin.js/host-router@1.0.10
561
1350
 
562
1351
  ## 1.0.18
563
1352
 
@@ -566,7 +1355,7 @@
566
1355
  - d16a69c: fix: test trust publish
567
1356
  - Updated dependencies [d16a69c]
568
1357
  - zhin.js@1.0.18
569
- - @zhin.js/http@1.0.9
1358
+ - @zhin.js/host-router@1.0.9
570
1359
 
571
1360
  ## 1.0.17
572
1361