@zhin.js/adapter-milky 1.0.1 → 1.1.2

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 (99) hide show
  1. package/CHANGELOG.md +1046 -0
  2. package/{skills/milky/PERMITS.md → PERMITS.md} +2 -2
  3. package/README.md +60 -117
  4. package/adapters/milky/index.js +51 -0
  5. package/adapters/milky/index.ts +74 -0
  6. package/commands/milky/endpoint/add/[id]/index.js +3 -0
  7. package/commands/milky/endpoint/add/[id]/index.ts +3 -0
  8. package/commands/milky/endpoint/definition.js +19 -0
  9. package/commands/milky/endpoint/definition.ts +19 -0
  10. package/commands/milky/endpoint/list/index.js +3 -0
  11. package/commands/milky/endpoint/list/index.ts +3 -0
  12. package/commands/milky/endpoint/remove/[id]/index.js +3 -0
  13. package/commands/milky/endpoint/remove/[id]/index.ts +3 -0
  14. package/lib/client.d.ts +21 -0
  15. package/lib/client.js +33 -0
  16. package/lib/endpoint-management.d.ts +17 -0
  17. package/lib/endpoint-management.js +47 -0
  18. package/lib/endpoint.d.ts +7 -0
  19. package/lib/endpoint.js +6 -0
  20. package/lib/index.d.ts +6 -20
  21. package/lib/index.js +4 -35
  22. package/lib/milky-auth.d.ts +2 -0
  23. package/lib/milky-auth.js +16 -0
  24. package/lib/milky-runtime-state.d.ts +1 -0
  25. package/lib/milky-runtime-state.js +6 -0
  26. package/lib/protocol.d.ts +160 -0
  27. package/lib/protocol.js +491 -0
  28. package/lib/sse-client.d.ts +20 -0
  29. package/lib/sse-client.js +85 -0
  30. package/lib/sse-endpoint.d.ts +32 -0
  31. package/lib/sse-endpoint.js +207 -0
  32. package/lib/webhook-endpoint.d.ts +22 -0
  33. package/lib/webhook-endpoint.js +149 -0
  34. package/lib/ws-endpoint.d.ts +23 -0
  35. package/lib/ws-endpoint.js +233 -0
  36. package/lib/ws-types.d.ts +11 -0
  37. package/lib/ws-types.js +1 -0
  38. package/lib/wss-endpoint.d.ts +25 -0
  39. package/lib/wss-endpoint.js +199 -0
  40. package/package.json +78 -19
  41. package/plugin.js +14 -0
  42. package/schema.json +119 -0
  43. package/src/client.ts +80 -0
  44. package/src/endpoint-management.ts +74 -0
  45. package/src/endpoint.ts +26 -0
  46. package/src/index.ts +62 -47
  47. package/src/milky-auth.ts +14 -0
  48. package/src/milky-runtime-state.ts +7 -0
  49. package/src/protocol.ts +633 -0
  50. package/src/sse-client.ts +106 -0
  51. package/src/sse-endpoint.ts +258 -0
  52. package/src/webhook-endpoint.ts +196 -0
  53. package/src/ws-endpoint.ts +291 -0
  54. package/src/ws-types.ts +12 -0
  55. package/src/wss-endpoint.ts +241 -0
  56. package/lib/adapter.d.ts +0 -29
  57. package/lib/adapter.d.ts.map +0 -1
  58. package/lib/adapter.js +0 -91
  59. package/lib/adapter.js.map +0 -1
  60. package/lib/api.d.ts +0 -10
  61. package/lib/api.d.ts.map +0 -1
  62. package/lib/api.js +0 -48
  63. package/lib/api.js.map +0 -1
  64. package/lib/endpoint-sse.d.ts +0 -31
  65. package/lib/endpoint-sse.d.ts.map +0 -1
  66. package/lib/endpoint-sse.js +0 -195
  67. package/lib/endpoint-sse.js.map +0 -1
  68. package/lib/endpoint-webhook.d.ts +0 -34
  69. package/lib/endpoint-webhook.d.ts.map +0 -1
  70. package/lib/endpoint-webhook.js +0 -187
  71. package/lib/endpoint-webhook.js.map +0 -1
  72. package/lib/endpoint-ws.d.ts +0 -35
  73. package/lib/endpoint-ws.d.ts.map +0 -1
  74. package/lib/endpoint-ws.js +0 -262
  75. package/lib/endpoint-ws.js.map +0 -1
  76. package/lib/endpoint-wss.d.ts +0 -34
  77. package/lib/endpoint-wss.d.ts.map +0 -1
  78. package/lib/endpoint-wss.js +0 -225
  79. package/lib/endpoint-wss.js.map +0 -1
  80. package/lib/index.d.ts.map +0 -1
  81. package/lib/index.js.map +0 -1
  82. package/lib/types.d.ts +0 -75
  83. package/lib/types.d.ts.map +0 -1
  84. package/lib/types.js +0 -5
  85. package/lib/types.js.map +0 -1
  86. package/lib/utils.d.ts +0 -35
  87. package/lib/utils.d.ts.map +0 -1
  88. package/lib/utils.js +0 -165
  89. package/lib/utils.js.map +0 -1
  90. package/plugin.yml +0 -3
  91. package/skills/milky/SKILL.md +0 -65
  92. package/src/adapter.ts +0 -103
  93. package/src/api.ts +0 -63
  94. package/src/endpoint-sse.ts +0 -228
  95. package/src/endpoint-webhook.ts +0 -221
  96. package/src/endpoint-ws.ts +0 -296
  97. package/src/endpoint-wss.ts +0 -268
  98. package/src/types.ts +0 -73
  99. package/src/utils.ts +0 -181
package/CHANGELOG.md ADDED
@@ -0,0 +1,1046 @@
1
+ # @zhin.js/adapter-milky
2
+
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a9e4a40: Derive Command user routes only from explicit `commands/**/*/index.ts(x)` entry paths instead of prepending the plugin owner. Child plugins can now publish top-level static or dynamic commands, while duplicate routes across owners fail during generation construction. Adapter endpoint commands move to explicit paths such as `commands/qq/endpoint/list/index.ts` and are invoked as `qq endpoint list`.
8
+ - 8740059: Standardize TypeScript capabilities on named module directories such as `commands/foo/index.ts`, `middlewares/audit/index.ts`, `handlers/message-receive/index.ts`, `pages/workroom/index.tsx`, and `mcps/filesystem/index.ts`. Only the fixed `index` entry is discovered; sibling files remain private helpers.
9
+
10
+ Command route segments come from directories, while `[name]`, `[[name]]`, `[...name]`, and `[[...name]]` directories declare dynamic parameters. Plugin owners do not enter the route unless their config explicitly sets `commandNamespace`; Endpoint `commandPrefix` remains platform-owned and defaults to an empty string.
11
+
12
+ Migrate the built-in adapters, plugins, examples, generators, migration tooling, hot reload classification, Agent authoring surfaces, documentation, and release artifacts to the explicit entry convention.
13
+
14
+ Make Tool ownership and progressive disclosure explicit across all four supported locations: plugin-public `tools/`, Agent-private `agents/<name>/tools/`, Skill-private `skills/<name>/tools/`, and Agent-Skill-private `agents/<name>/skills/<name>/tools/`. Move adapter and group-suite operations that require domain instructions into their owning Skills so `load_skill` is the only path that unlocks their schemas.
15
+
16
+ Remove the package-root `agent/` convention. Public capabilities now use named package-root directories, schedules use `schedules/<name>/index.ts` or `plugin.ts` injection, MCP connections use `mcps/<name>/index.ts`, Prompt Sections use `prompt-sections/<name>/index.ts`, Agent definitions use `agents/<name>/`, and permission vocabulary is published as `PERMITS.md`.
17
+
18
+ - 25a845a: Unify Skills on `skills/<name>/SKILL.md`, support Agent-private Skills and nested Skill-private Tools, publish and mount existing plugin Skills, add governed Skill metadata and Turn access filtering, unlock only already-admitted same-owner Tools, and make `on-risk` and `once` approval behavior precise.
19
+ - 4380cf9: Colocate adapter command definitions and Agent Skill handlers with their owning capabilities, and provide a shared validated platform permission constructor.
20
+ - 86087cf: Require one canonical expanded Milky endpoint configuration. The protocol no longer reinterprets nested `endpoints` or reads endpoint identity from `process.env`, and reverse WebSocket connection replacement, heartbeat, and cleanup now use the shared endpoint lifecycle.
21
+ - 5c3858e: Make `@zhin.js/im-contract` the explicit zero-dependency owner of transport identities, canonical segments, media guards, conversation facts, stores, and delivery contracts. Platform adapters now read media contracts from that foundation instead of reaching through Core.
22
+ - Updated dependencies [c861789]
23
+ - Updated dependencies [1414ccb]
24
+ - Updated dependencies [743d470]
25
+ - Updated dependencies [62dee52]
26
+ - Updated dependencies [cd54131]
27
+ - Updated dependencies [244e475]
28
+ - Updated dependencies [a9e4a40]
29
+ - Updated dependencies [5855db7]
30
+ - Updated dependencies [ec921d2]
31
+ - Updated dependencies [8740059]
32
+ - Updated dependencies [25a845a]
33
+ - Updated dependencies [103f2c3]
34
+ - Updated dependencies [9110ab8]
35
+ - Updated dependencies [cd2a888]
36
+ - Updated dependencies [eb3227a]
37
+ - Updated dependencies [b853dba]
38
+ - Updated dependencies [e561309]
39
+ - Updated dependencies [d4c6175]
40
+ - Updated dependencies [7a0e1ca]
41
+ - Updated dependencies [103b5d3]
42
+ - Updated dependencies [5a7a7f7]
43
+ - Updated dependencies [b076eae]
44
+ - Updated dependencies [73a24b7]
45
+ - Updated dependencies [2dbbc15]
46
+ - Updated dependencies [1cb1163]
47
+ - Updated dependencies [be3061e]
48
+ - Updated dependencies [75f8332]
49
+ - Updated dependencies [81935e2]
50
+ - Updated dependencies [f9ed01b]
51
+ - Updated dependencies [ac0ab50]
52
+ - Updated dependencies [5140ce1]
53
+ - Updated dependencies [522d75f]
54
+ - Updated dependencies [a7611b3]
55
+ - Updated dependencies [8823044]
56
+ - Updated dependencies [379439b]
57
+ - Updated dependencies [11c9352]
58
+ - Updated dependencies [6b70e46]
59
+ - Updated dependencies [135ac91]
60
+ - Updated dependencies [140cf0f]
61
+ - Updated dependencies [251e4d2]
62
+ - Updated dependencies [203ad34]
63
+ - Updated dependencies [e6c5113]
64
+ - Updated dependencies [e0f6478]
65
+ - Updated dependencies [baef56b]
66
+ - Updated dependencies [da0a8e3]
67
+ - Updated dependencies [2fd8017]
68
+ - Updated dependencies [5c3858e]
69
+ - Updated dependencies [507d602]
70
+ - Updated dependencies [df9f76b]
71
+ - @zhin.js/core@1.1.37
72
+ - @zhin.js/host-http@1.1.1
73
+ - @zhin.js/adapter@1.1.14
74
+ - @zhin.js/feature-kit@1.1.1
75
+ - @zhin.js/skill@1.1.1
76
+ - @zhin.js/logger@1.1.1
77
+ - @zhin.js/im-contract@1.1.1
78
+
79
+ ## 1.1.1
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [769e67f]
84
+ - @zhin.js/adapter@1.1.13
85
+ - @zhin.js/core@1.1.36
86
+
87
+ ## 1.1.0
88
+
89
+ ### Minor Changes
90
+
91
+ - 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.
92
+
93
+ ### Patch Changes
94
+
95
+ - a34bf91: Publish internal peer dependencies as compatible caret ranges instead of exact versions, preventing compatible internal minor releases from forcing unrelated major bumps.
96
+ - Updated dependencies [1fc6270]
97
+ - @zhin.js/adapter@1.1.12
98
+ - @zhin.js/core@1.1.35
99
+ - @zhin.js/feature-kit@1.1.0
100
+ - @zhin.js/host-http@1.1.0
101
+ - @zhin.js/im-contract@1.1.0
102
+ - @zhin.js/logger@1.1.0
103
+
104
+ ## 8.0.1
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [f7ee28d]
109
+ - @zhin.js/adapter@1.2.2
110
+ - @zhin.js/core@1.5.16
111
+ - zhin.js@7.0.1
112
+ - @zhin.js/agent@1.2.1
113
+
114
+ ## 8.0.0
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [12325e1]
119
+ - Updated dependencies [d19e976]
120
+ - @zhin.js/agent@1.2.0
121
+ - zhin.js@7.0.0
122
+
123
+ ## 7.0.8
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies [a728a20]
128
+ - @zhin.js/host-http@1.0.17
129
+ - @zhin.js/agent@1.1.22
130
+ - zhin.js@6.0.15
131
+
132
+ ## 7.0.7
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies [337fd05]
137
+ - @zhin.js/agent@1.1.21
138
+ - zhin.js@6.0.15
139
+
140
+ ## 7.0.6
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [fcbff21]
145
+ - @zhin.js/host-http@1.0.16
146
+ - zhin.js@6.0.15
147
+
148
+ ## 7.0.5
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [882a08a]
153
+ - @zhin.js/agent@1.1.20
154
+ - zhin.js@6.0.15
155
+ - @zhin.js/core@1.5.15
156
+
157
+ ## 7.0.4
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies [d85eddd]
162
+ - @zhin.js/agent@1.1.19
163
+ - @zhin.js/host-http@1.0.15
164
+ - @zhin.js/core@1.5.15
165
+ - zhin.js@6.0.15
166
+
167
+ ## 7.0.3
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [a5ee497]
172
+ - Updated dependencies [a5ee497]
173
+ - Updated dependencies [ba7e17a]
174
+ - Updated dependencies [7108d0b]
175
+ - @zhin.js/agent@1.1.18
176
+ - @zhin.js/host-http@1.0.14
177
+ - @zhin.js/core@1.5.15
178
+ - zhin.js@6.0.15
179
+
180
+ ## 7.0.2
181
+
182
+ ### Patch Changes
183
+
184
+ - Updated dependencies [736fa04]
185
+ - @zhin.js/agent@1.1.17
186
+ - zhin.js@6.0.14
187
+
188
+ ## 7.0.1
189
+
190
+ ### Patch Changes
191
+
192
+ - 4e8117c: Expose the published imhelper protocol Clients from every Endpoint, preserve native action responses, and route host-owned HTTP, WebSocket, and raw ingress through the Client APIs. Add the shared `ClientEndpoint` deep base so concrete transports inherit one open-gated Client event bridge, and move reverse WebSocket lifecycle and heartbeat cleanup onto the common lifecycle state machine.
193
+ - 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.
194
+ - 2ca9a52: Upgrade the protocol Clients to imhelper 1.0.7, keep receiver ownership exclusively in Endpoint through manual mode, expose structured protocol errors, and support canonical non-message Client events.
195
+ - Updated dependencies [e9c6a73]
196
+ - Updated dependencies [4e8117c]
197
+ - Updated dependencies [902fa35]
198
+ - Updated dependencies [54bfd6b]
199
+ - Updated dependencies [12025ee]
200
+ - Updated dependencies [09b14d6]
201
+ - Updated dependencies [1fc78bc]
202
+ - @zhin.js/agent@1.1.16
203
+ - @zhin.js/adapter@1.2.1
204
+ - @zhin.js/core@1.5.14
205
+ - @zhin.js/host-http@1.0.13
206
+ - @zhin.js/command@1.0.16
207
+ - @zhin.js/logger@1.0.77
208
+ - zhin.js@6.0.14
209
+ - @zhin.js/feature-kit@1.0.13
210
+
211
+ ## 7.0.0
212
+
213
+ ### Patch Changes
214
+
215
+ - 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.
216
+ - Updated dependencies [b10d058]
217
+ - Updated dependencies [f2c532f]
218
+ - Updated dependencies [3dbf990]
219
+ - @zhin.js/host-http@1.0.12
220
+ - @zhin.js/adapter@1.2.0
221
+ - @zhin.js/core@1.5.13
222
+ - @zhin.js/agent@1.1.15
223
+ - zhin.js@6.0.13
224
+
225
+ ## 6.0.14
226
+
227
+ ### Patch Changes
228
+
229
+ - 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.
230
+ - Updated dependencies [5969c5b]
231
+ - Updated dependencies [d336a3f]
232
+ - Updated dependencies [0c82a7e]
233
+ - Updated dependencies [b9217e4]
234
+ - Updated dependencies [5969c5b]
235
+ - Updated dependencies [5969c5b]
236
+ - Updated dependencies [974772e]
237
+ - Updated dependencies [5969c5b]
238
+ - Updated dependencies [5969c5b]
239
+ - Updated dependencies [2f786bd]
240
+ - Updated dependencies [63d89f9]
241
+ - Updated dependencies [71c7cdd]
242
+ - Updated dependencies [3cca0ea]
243
+ - Updated dependencies [1312ca0]
244
+ - Updated dependencies [985fa22]
245
+ - Updated dependencies [04b861d]
246
+ - Updated dependencies [a23d544]
247
+ - Updated dependencies [8cddabf]
248
+ - Updated dependencies [dbe5081]
249
+ - @zhin.js/im-contract@1.0.4
250
+ - @zhin.js/core@1.5.12
251
+ - @zhin.js/adapter@1.1.11
252
+ - @zhin.js/agent@1.1.14
253
+ - @zhin.js/host-http@1.0.11
254
+ - @zhin.js/command@1.0.15
255
+ - zhin.js@6.0.12
256
+
257
+ ## 6.0.13
258
+
259
+ ### Patch Changes
260
+
261
+ - @zhin.js/core@1.5.11
262
+ - @zhin.js/agent@1.1.13
263
+ - zhin.js@6.0.11
264
+
265
+ ## 6.0.12
266
+
267
+ ### Patch Changes
268
+
269
+ - 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.
270
+ - @zhin.js/agent@1.1.12
271
+ - @zhin.js/core@1.5.10
272
+ - zhin.js@6.0.10
273
+
274
+ ## 6.0.11
275
+
276
+ ### Patch Changes
277
+
278
+ - eb84b77: fix: 更新文档,建立正确的依赖关系
279
+ - Updated dependencies [d3920e9]
280
+ - @zhin.js/core@1.5.10
281
+ - zhin.js@6.0.10
282
+ - @zhin.js/adapter@1.1.10
283
+ - @zhin.js/agent@1.1.11
284
+
285
+ ## 6.0.10
286
+
287
+ ### Patch Changes
288
+
289
+ - Updated dependencies [e4757a8]
290
+ - Updated dependencies [c3c0ebf]
291
+ - @zhin.js/command@1.0.13
292
+ - @zhin.js/host-http@1.0.10
293
+ - @zhin.js/agent@1.1.10
294
+ - @zhin.js/core@1.5.9
295
+ - @zhin.js/adapter@1.1.9
296
+ - zhin.js@6.0.9
297
+
298
+ ## 6.0.9
299
+
300
+ ### Patch Changes
301
+
302
+ - Updated dependencies [63253bb]
303
+ - Updated dependencies [6fb24dd]
304
+ - Updated dependencies [d162216]
305
+ - Updated dependencies [7427818]
306
+ - Updated dependencies [90da255]
307
+ - Updated dependencies [8e973dc]
308
+ - Updated dependencies [953cfe1]
309
+ - Updated dependencies [0e73866]
310
+ - @zhin.js/plugin-runtime@1.1.6
311
+ - @zhin.js/core@1.5.8
312
+ - @zhin.js/adapter@1.1.8
313
+ - @zhin.js/host-http@1.0.9
314
+ - @zhin.js/agent@1.1.9
315
+ - zhin.js@6.0.8
316
+ - @zhin.js/command@1.0.12
317
+
318
+ ## 6.0.8
319
+
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [36cb1ca]
323
+ - @zhin.js/core@1.5.7
324
+ - @zhin.js/agent@1.1.8
325
+ - zhin.js@6.0.7
326
+
327
+ ## 6.0.7
328
+
329
+ ### Patch Changes
330
+
331
+ - Updated dependencies [7945544]
332
+ - @zhin.js/command@1.0.11
333
+ - @zhin.js/agent@1.1.7
334
+ - @zhin.js/adapter@1.1.7
335
+ - @zhin.js/core@1.5.6
336
+ - zhin.js@6.0.6
337
+
338
+ ## 6.0.6
339
+
340
+ ### Patch Changes
341
+
342
+ - Updated dependencies [2d0a622]
343
+ - @zhin.js/command@1.0.10
344
+ - @zhin.js/adapter@1.1.7
345
+ - @zhin.js/core@1.5.5
346
+ - @zhin.js/agent@1.1.6
347
+ - zhin.js@6.0.5
348
+
349
+ ## 6.0.5
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [6f9c366]
354
+ - Updated dependencies [373a56b]
355
+ - Updated dependencies [0de46a8]
356
+ - Updated dependencies [c106ecc]
357
+ - Updated dependencies [ca92e03]
358
+ - Updated dependencies [b0f37ae]
359
+ - Updated dependencies [ba08a2f]
360
+ - Updated dependencies [b08f7fe]
361
+ - Updated dependencies [daffd4c]
362
+ - Updated dependencies [36c7400]
363
+ - Updated dependencies [a9fa72e]
364
+ - Updated dependencies [c8de3ef]
365
+ - Updated dependencies [60f0fc8]
366
+ - Updated dependencies [574c990]
367
+ - Updated dependencies [d096f16]
368
+ - Updated dependencies [3f29623]
369
+ - Updated dependencies [2916852]
370
+ - Updated dependencies [d047869]
371
+ - Updated dependencies [162fa34]
372
+ - Updated dependencies [e62561e]
373
+ - Updated dependencies [3eeeb46]
374
+ - Updated dependencies [85d0f82]
375
+ - Updated dependencies [61bfc1c]
376
+ - Updated dependencies [04bad47]
377
+ - Updated dependencies [e40b048]
378
+ - Updated dependencies [5a5b1bb]
379
+ - Updated dependencies [f1708c3]
380
+ - Updated dependencies [d254a81]
381
+ - Updated dependencies [7123c47]
382
+ - Updated dependencies [05befc1]
383
+ - Updated dependencies [0663b6a]
384
+ - Updated dependencies [f28f9b3]
385
+ - Updated dependencies [9f340f7]
386
+ - Updated dependencies [e53444f]
387
+ - Updated dependencies [5eedd26]
388
+ - Updated dependencies [92b0dd7]
389
+ - Updated dependencies [f919b6f]
390
+ - Updated dependencies [098e411]
391
+ - Updated dependencies [e1b7c01]
392
+ - Updated dependencies [9b94f87]
393
+ - Updated dependencies [a7df753]
394
+ - @zhin.js/agent@1.1.5
395
+ - @zhin.js/host-http@1.0.8
396
+ - @zhin.js/im-contract@1.0.3
397
+ - @zhin.js/adapter@1.1.7
398
+ - @zhin.js/plugin-runtime@1.1.5
399
+ - @zhin.js/command@1.0.9
400
+ - @zhin.js/core@1.5.4
401
+ - zhin.js@6.0.4
402
+
403
+ ## 6.0.4
404
+
405
+ ### Patch Changes
406
+
407
+ - f8c7a54: fix: im
408
+ - Updated dependencies [f8c7a54]
409
+ - @zhin.js/logger@1.0.76
410
+ - @zhin.js/host-http@1.0.7
411
+ - @zhin.js/adapter@1.1.6
412
+ - @zhin.js/agent@1.1.4
413
+ - @zhin.js/command@1.0.8
414
+ - @zhin.js/core@1.5.3
415
+ - @zhin.js/im-contract@1.0.2
416
+ - @zhin.js/plugin-runtime@1.1.4
417
+ - zhin.js@6.0.3
418
+
419
+ ## 6.0.3
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies [afc0e66]
424
+ - Updated dependencies [2e41ad5]
425
+ - Updated dependencies [9f57124]
426
+ - @zhin.js/core@1.5.2
427
+ - @zhin.js/adapter@1.1.5
428
+ - @zhin.js/im-contract@1.0.1
429
+ - @zhin.js/plugin-runtime@1.1.3
430
+ - @zhin.js/command@1.0.7
431
+ - @zhin.js/host-http@1.0.6
432
+ - @zhin.js/agent@1.1.3
433
+ - zhin.js@6.0.2
434
+
435
+ ## 6.0.2
436
+
437
+ ### Patch Changes
438
+
439
+ - Updated dependencies [696ab1b]
440
+ - @zhin.js/agent@1.1.2
441
+ - zhin.js@6.0.1
442
+
443
+ ## 6.0.1
444
+
445
+ ### Patch Changes
446
+
447
+ - Updated dependencies [c8f4d45]
448
+ - @zhin.js/plugin-runtime@1.1.2
449
+ - @zhin.js/host-http@1.0.5
450
+ - @zhin.js/adapter@1.1.4
451
+ - @zhin.js/agent@1.1.1
452
+ - @zhin.js/command@1.0.6
453
+ - @zhin.js/core@1.5.1
454
+ - zhin.js@6.0.1
455
+
456
+ ## 6.0.0
457
+
458
+ ### Patch Changes
459
+
460
+ - 4fbff5d: feat!: 多模态双向 Segment 一贯制(BREAKING,无兼容层)
461
+
462
+ 全框架唯一媒体表达统一为 canonical `Segment` + `MediaRef{kind: url|path|base64|file, value, mime_type?, file_name?, size?}`,新增 audio/video/file 段类型;所有第二形状(legacy `data.url/file/base64` 字段、`mediaRefFromLegacyData`/`mediaRefToLegacyFields` 桥、双写)全部删除。
463
+
464
+ - **core**:`SendContent` 一等支持 `Segment[]`;endpoint 出站载荷只含 canonical 段;`resolveOutboundMediaPolicy` 改为纯声明驱动(adapter definition `segments.outboundMedia`),内置策略表删除,未声明回退 `url-or-text`;`ImageContent` 旧桥删除。
465
+ - **ai**:新增 `MediaContentBlock`/`MediaBlockRef`(Segment 同构)与 `UserMessage.media`(当前 turn 媒体,**不持久化**——存储层自动剥离);`createUserMessage(text, media?)` 签名变更(`ImageContent` 删除);provider 边界序列化器 `filterMediaBlocksForProvider` + 能力表(缺省 image-only,不支持类型降级占位文本);ai-sdk 桥媒体块 → SDK image/file parts。
466
+ - **agent**:入站 turn 注入(`turn/inbound-media.ts`)——commMessage 媒体段 → 当前 turn `UserMessage.media`;图片 path 物化、音频默认 STT(`@zhin.js/speech` 可选,失败降级占位)、视频/文件占位;`publishOutboundElements` 产出 canonical Segment;`transcribeAudioPayload` 导出。
467
+ - **cli**:`bridgeRuntimeMessage` 回复链路媒体段透传,不再压平为文本(`$reply` 直达 normalize → adapter)。
468
+ - **全部 20 个平台适配器**:出站媒体只消费 `data.media`(url 直发 / base64 直发 / 平台上传 / 读盘),入站媒体产出 canonical `data.media`;`segments.outboundMedia` 声明与实际消费逐一核对修正;QQ 入站新增 canonical segments(image/audio/video/file/mention/face/reply),图片/语音/视频不再丢失。
469
+
470
+ 迁移:适配器/插件产媒体一律用 `{ type, data: { media: MediaRef } }`;发送 legacy `data.url/file/base64` 形状的段会被 warn 丢弃。
471
+
472
+ - Updated dependencies [7c1e63a]
473
+ - Updated dependencies [4fbff5d]
474
+ - Updated dependencies [5b94d9c]
475
+ - @zhin.js/command@1.0.5
476
+ - @zhin.js/adapter@1.1.3
477
+ - @zhin.js/core@1.5.0
478
+ - @zhin.js/agent@1.1.0
479
+ - zhin.js@6.0.0
480
+
481
+ ## 5.0.5
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [d8bf702]
486
+ - @zhin.js/host-http@1.0.4
487
+ - @zhin.js/agent@1.0.10
488
+ - @zhin.js/core@1.4.3
489
+ - zhin.js@5.0.3
490
+
491
+ ## 5.0.4
492
+
493
+ ### Patch Changes
494
+
495
+ - Updated dependencies [45b3256]
496
+ - @zhin.js/core@1.4.3
497
+ - @zhin.js/agent@1.0.9
498
+ - zhin.js@5.0.3
499
+
500
+ ## 5.0.3
501
+
502
+ ### Patch Changes
503
+
504
+ - Updated dependencies [f346346]
505
+ - @zhin.js/agent@1.0.8
506
+ - @zhin.js/core@1.4.2
507
+ - zhin.js@5.0.2
508
+
509
+ ## 5.0.2
510
+
511
+ ### Patch Changes
512
+
513
+ - d5cd4aa: Publish Plugin Runtime entry points and convention modules as JavaScript so
514
+ installed npm plugins load on Node without TypeScript stripping. Workspace
515
+ development continues to prefer TypeScript sources for local HMR.
516
+
517
+ Remove the unconsumed legacy game hub APIs from game-kit; game navigation and
518
+ records now use ordinary convention commands owned by the game hub plugin.
519
+
520
+ - Updated dependencies [d5cd4aa]
521
+ - @zhin.js/command@1.0.4
522
+ - zhin.js@5.0.2
523
+ - @zhin.js/adapter@1.1.2
524
+ - @zhin.js/core@1.4.2
525
+ - @zhin.js/agent@1.0.7
526
+
527
+ ## 5.0.1
528
+
529
+ ### Patch Changes
530
+
531
+ - cdf64e7: 多方向审计修复批(8 面 30+ bug):
532
+
533
+ - **安全**:钉钉 webhook 验签绕过修复(缺 timestamp/sign 一律 403 + ±1h 防重放);exec-policy fail-closed(换行/`$(`/反引号拒绝、管道逐段过白名单、env dump 复合拆段);wecom 验签改 timingSafeEqual;config:set 拒绝 `__proto__` 等魔术键、host 键优先防覆写。
534
+ - **P0 功能**:`zhin packages` scoped 包名解析为空导致 rm -rf 风险;命令数字参数解析失败炸断消息链路(dispatch 捕获 continue);TaskQueue 监听器首个事件自摘除导致 assistant 队列挂死(+超时后完成不覆盖终态);DatabaseHost 跨世代共享崩溃(define 幂等 + stop 改进程级);rss 按不存在 id 列删除改业务键。
535
+ - **Runtime/HMR**:native watcher 过滤忽略目录(lib/.zhin 不再触发重载风暴);host 段配置 patch(http.port 等)存在 installResources 时全量重建;capability 目录非 entry 支持文件升级进程重启;documentTransaction 失败回滚。
536
+ - **CLI 写侧**:config/setup 对 toml 静默假成功改统一 config-file(不支持格式报错);doctor/onboard 默认配置改新形态 plugins 映射;schedule add 改 --prompt;migrate engines/中文模板误伤/覆盖前备份。
537
+ - **适配器生命周期**:napcat/milky start 失败竞态与僵尸连接、心跳 close 清理、stop-during-connect settle;slack webhook 二次 writeHead + messageChannelMap LRU。
538
+ - **Host/向导**:logs/stats 与 inbox 查询改 DB 侧 count/orderBy/limit 下推;save-yaml 写入前校验;zhipu/moonshot baseUrl 必填预填;.env 写入转义 + 幂等合并;setup 数据库密码不再明文落 config;60s fetch 超时与 JSON 守卫。
539
+
540
+ - 2d0a159: 审计尾账清零(P2 批):
541
+
542
+ - Runtime:reload 前重读配置文档消除陈旧快照;组合式根 schema 显式报错(不再静默空 view);ConfigPatch 支持数组数字索引(`endpoints.0.url`);console 配置读写单一数据源 + 写入串行化;watch tick 防重叠 + fetch 超时。
543
+ - Host/MCP:MCP client stop 成功才标记 + handoff 补 quiescePrevious/resumePrevious(独占端口不再新旧并存);readJsonBody 超限保留连接回 413;dispatchHttp 统一 HttpBodyError 状态码;inbox endpoint 名仅命中才缓存;create_plugin 工具生成物改 definePlugin 新格式。
544
+ - Agent:CapabilityIngress 按 projection 归属记账(key 振荡不再泄漏/误 purge);敏感目录 `data` 锚定工作区根(src/data 不再误伤);passive-group-buffer 死 key 清扫;tool scopes 数组校验。
545
+ - 插件:blackjack 终局「回复 1」复活(getLatestForUser);60s apiBase 改运行时求值(弃 process.env);rss \_db lifecycle 清理;group-suite flush 不丢计数 + checkin 串行化防双签;milky SSE start 失败复位。
546
+ - 工具链:applyAdaptersToConfig 改合并(重跑 wizard 不丢手工 endpoint);html-renderer 提示识别 plugins 映射;create-zhin CLI 项目名校验 + task XML/NSSM 修复;setup --ai 补 @zhin.js/tool;layout 发现支持 .ts。
547
+
548
+ - 078e3f7: 架构统一批(AURA):
549
+
550
+ - **EndpointLifecycle 基座**(@zhin.js/adapter 新增 `createEndpointLifecycle`):WS/SSE 端点的 start 失败复位、仅曾 open 才退避重连(指数+jitter 可配)、stop 不重连、PONG 看门狗、定时器集中清理、陈旧事件防叠套;napcat/milky/onebot11/onebot12/satori 已迁移(删除各自手写状态机),从此同类竞态在结构上不可能再犯。
551
+ - **Generation-store**(@zhin.js/plugin-runtime 新增 `createGenerationStore`):模块级运行时状态的一等能力,provide 自动挂 lifecycle 反注册(代际结束自动清理);lottery deps 与 rss db 已迁移,公开 API 兼容。
552
+ - **Resolver 管线收敛**(@zhin.js/runtime):解析规则统一为 local path → workspace → node_modules 单管线;optional 引用对所有 PackageResolutionError 容错(消除 message 前缀补丁)。
553
+ - **工具目录准入统一**(@zhin.js/agent):RegisteredToolSource 与 ExternalToolSource 共用同一 `canAccessTool` 准入(platforms/scopes/permissions/hidden 四元组全链路透传),同名覆盖 warn;AgentToolRegistration 补 platforms/scopes。两条注册通道(静态约定 vs 动态注册)职责边界已文档化。
554
+
555
+ - 9c997b2: 通用 endpoint 管理命令套件:`@zhin.js/adapter` 新增 `createEndpointCommands(spec, defineCommand)`——`<adapter> endpoint list / add <name> key=value... / remove <name>` 三件套,含 kv 解析、`.env` 凭据派生(`<ADAPTER>_<NAME>_<FIELD>`)、yaml 写回保留注释、master 权限门禁(通用 `isEndpointOperator`)、自定义 bindFlow 钩子。QQ 迁移至套件(行为与扫码绑定流程不变);napcat / onebot11 / onebot12 / milky / slack / telegram 接入(字段对齐各自 schema,features 补 @zhin.js/command)。
556
+ - 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 注明平台无列表面暂不接。
557
+ - 6cb6152: 统一消息元素通道(UNI-Channel)落地:
558
+
559
+ - **入站契约**:`IncomingMessage.segments`(canonical Segment[],与 content 纯文本视图同源双轨),Message 透传;AI 兜底链路经 `collectSegmentMedia` 把图片/语音/视频/文件 MediaRef 写入会话 extra——多模态输入不再丢失。
560
+ - **出站协商**:`normalizeOutboundPayload` 升级全量 canonical 归一(复用 generic-segment-mapper),html→image 按端点 `segments.outboundMedia` 声明降级(base64 直发 / url-or-text / passthrough 自行物化);`MediaRef.kind` 新增 `'file'` 承载平台不透明引用(file_id/resource_id)。
561
+ - **能力声明**:`defineAdapter.segments` policy(outboundMedia / interactive),三道段门禁复活(探测点改 adapters/\*.ts,豁免名单渐进收敛)。
562
+ - **首批迁移**: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 图片不再静默丢图,失败降级文本)。
563
+
564
+ - Updated dependencies [cdf64e7]
565
+ - Updated dependencies [2d0a159]
566
+ - Updated dependencies [5691aba]
567
+ - Updated dependencies [078e3f7]
568
+ - Updated dependencies [50497a5]
569
+ - Updated dependencies [9c997b2]
570
+ - Updated dependencies [09d4f25]
571
+ - Updated dependencies [43485a9]
572
+ - Updated dependencies [f0ec5ab]
573
+ - Updated dependencies [3e925d0]
574
+ - Updated dependencies [fa66c4c]
575
+ - Updated dependencies [fa66c4c]
576
+ - Updated dependencies [6cb6152]
577
+ - @zhin.js/command@1.0.3
578
+ - @zhin.js/agent@1.0.6
579
+ - @zhin.js/plugin-runtime@1.1.1
580
+ - @zhin.js/host-http@1.0.3
581
+ - zhin.js@5.0.1
582
+ - @zhin.js/adapter@1.1.1
583
+ - @zhin.js/core@1.4.1
584
+
585
+ ## 5.0.0
586
+
587
+ ### Patch Changes
588
+
589
+ - 7db69c1: 命令前缀改为适配器配置项:`MessageDispatcher` 不再硬编码 `/`,默认按消息所属适配器实例 config 的 `commandPrefix` 解析(默认 `''` 无前缀,任意文本按命令匹配),`endpoints[i].commandPrefix` 逐项覆盖;`ImRuntime({ commandPrefix })` 仍可设全局静态前缀。全部 20 个平台适配器 schema 新增 `commandPrefix` 属性。
590
+
591
+ BREAKING(行为变化):未配置时命令不再需要 `/` 前缀——原 `/zt` 写法不再命中,直接发 `zt` 即可;需要斜杠风格的适配器请在配置里显式设 `commandPrefix: '/'`。
592
+
593
+ - 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 同步迁移。
594
+ - Updated dependencies [7db69c1]
595
+ - Updated dependencies [e5c84ed]
596
+ - Updated dependencies [3ea84a0]
597
+ - Updated dependencies [1ddcd70]
598
+ - Updated dependencies [ac9da66]
599
+ - @zhin.js/core@1.4.0
600
+ - @zhin.js/adapter@1.1.0
601
+ - @zhin.js/plugin-runtime@1.1.0
602
+ - @zhin.js/agent@1.0.5
603
+ - @zhin.js/host-http@1.0.2
604
+ - zhin.js@5.0.0
605
+
606
+ ## 4.0.1
607
+
608
+ ### Patch Changes
609
+
610
+ - cc5c94d: 约定式插件运行时迁移(breaking):插件与适配器由 `usePlugin()` / `extends Adapter` 迁移为 `definePlugin` / `defineAdapter` + `plugin.ts` + 约定目录(`adapters/`、`commands/`、`components/`、`tools/` 等)。
611
+
612
+ - 新增约定式运行时包:`@zhin.js/plugin-runtime`、`@zhin.js/adapter`、`@zhin.js/runtime`、`@zhin.js/host-http`(首版 1.0.0 走 init-publish,不在本 changeset 内 bump)。
613
+ - 全部 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 推迟的连接模式已补齐。
614
+ - 游戏 / 工具 / 服务插件同步迁移到约定目录结构。
615
+ - CLI 增加 plugin-runtime host installer(http/database/outbound/schedule/console 等)。
616
+
617
+ 后续加固(同批):
618
+
619
+ - CLI:`zhin runtime start --daemon`(pidfile/崩溃拉起/风暴保护),orphan watchdog 防僵尸进程;legacy `zhin dev` / `zhin start` 已移除(含 `zhin restart`),`zhin stop` 兼容新 daemon。
620
+ - 安全:builtin 工具统一走 `security/policy-facade.ts` 的 `runToolPolicies`(声明式策略表,deny 优先);审计日志 close flush + 背压队列;`splitCompoundCommand` 引号感知、`extractCommandName` 去引号堵绕过。
621
+ - 日志:Logger 双堆栈修复、本地时区、`getLogger` 挂树(`setLevel` 递归生效)、第三方库(log4js/discord)桥接、启动人读总结。
622
+ - 结构:`plugins/games/shared` 迁为 `packages/game-kit`(`@zhin.js/game-kit`);死目录 `plugins/adapters/common` 删除。
623
+ - 脚手架:`create-zhin-app` / `zhin new` / scaffold-wizard 生成物改为 Plugin Runtime 形态(minimal-bot 同构,新配置格式)。
624
+ - Console:endpoint.list 真实名称与 phase、schema:get-all 按 instanceKey 映射、db:\* 接 DatabaseHost。
625
+
626
+ 注:按仓库发布惯例(见 1bb345dd2),本次 breaking 迁移统一使用 patch,避免 zhin.js 5.0 级联。
627
+
628
+ - 447f3e2: 迁移缺口修复(legacy 功能对齐):
629
+
630
+ - html 段出站规范化:经 `@zhin.js/html-renderer` 渲染为 image 段(sandbox 豁免、无渲染器时降级文本),修复真实平台 `[object Object]`。
631
+ - 群聊 @ 触发 AI:适配器入站标注 `metadata.mentioned`(icqq/qq/slack/onebot11/onebot12/napcat/milky/discord/telegram/kook/dingtalk/satori),`matchAiTrigger` 补齐 ignorePrefixes/respondToAt/respondToPrivate/keywords(默认值与 legacy 对齐)。
632
+ - im_transcripts 全量流水恢复写入(chat_history 工具可用);群聊旁听上下文回迁。
633
+ - `ai.trigger.timeout/thinkingMessage/errorTemplate` 生效;masters/trusted 角色解析对齐 legacy。
634
+ - `Message.sender` 统一为用户 ID(onebot11/12、napcat、milky 原误传显示名);quote_id 经 metadata 接入 AI 引用上下文。
635
+
636
+ - Updated dependencies [16ec4e8]
637
+ - Updated dependencies [cc5c94d]
638
+ - Updated dependencies [447f3e2]
639
+ - @zhin.js/core@1.3.5
640
+ - @zhin.js/agent@1.0.4
641
+ - @zhin.js/host-http@1.0.1
642
+ - zhin.js@4.1.3
643
+ - @zhin.js/logger@1.0.75
644
+ - @zhin.js/plugin-runtime@1.0.1
645
+ - @zhin.js/adapter@1.0.1
646
+
647
+ ## 3.0.2
648
+
649
+ ### Patch Changes
650
+
651
+ - 872c583: fix: 代码格式优化
652
+ - Updated dependencies [872c583]
653
+ - Updated dependencies [872c583]
654
+ - @zhin.js/agent@1.0.3
655
+ - @zhin.js/host-router@2.0.3
656
+ - zhin.js@4.1.2
657
+
658
+ ## 3.0.1
659
+
660
+ ### Patch Changes
661
+
662
+ - 5cc9c03: fix: ai 优化
663
+ - b9b3881: fix: 增加游戏引擎以及部分游戏
664
+ - Updated dependencies [5cc9c03]
665
+ - Updated dependencies [7700903]
666
+ - @zhin.js/host-router@2.0.2
667
+ - zhin.js@4.1.1
668
+
669
+ ## 3.0.0
670
+
671
+ ### Patch Changes
672
+
673
+ - c4575c9: fix: 输入输出优化,文档优化
674
+ - Updated dependencies [c4575c9]
675
+ - Updated dependencies [c4575c9]
676
+ - @zhin.js/host-router@2.0.1
677
+ - zhin.js@4.1.0
678
+
679
+ ## 2.0.1
680
+
681
+ ### Patch Changes
682
+
683
+ - Updated dependencies [ae5239c]
684
+ - zhin.js@4.0.1
685
+ - @zhin.js/host-router@2.0.0
686
+
687
+ ## 2.0.0
688
+
689
+ ### Patch Changes
690
+
691
+ - zhin.js@3.0.0
692
+ - @zhin.js/host-router@2.0.0
693
+
694
+ ## 1.0.1
695
+
696
+ ### Patch Changes
697
+
698
+ - d8def69: fix: 性能优化
699
+ - 2ef4896: fix: 更新概念 Bot=>Endpoint,已适配后续更多的业务场景;统一角色权限
700
+ - Updated dependencies [d8def69]
701
+ - Updated dependencies [2ef4896]
702
+ - @zhin.js/host-router@1.0.1
703
+ - zhin.js@2.0.1
704
+
705
+ ## 1.0.0
706
+
707
+ ### Patch Changes
708
+
709
+ - zhin.js@2.0.0
710
+ - @zhin.js/host-router@1.0.0
711
+
712
+ ## 0.0.42
713
+
714
+ ### Patch Changes
715
+
716
+ - Updated dependencies [d8547d2]
717
+ - zhin.js@1.0.92
718
+ - @zhin.js/host-router@0.0.3
719
+
720
+ ## 0.0.41
721
+
722
+ ### Patch Changes
723
+
724
+ - Updated dependencies [3735e96]
725
+ - zhin.js@1.0.91
726
+ - @zhin.js/host-router@0.0.3
727
+
728
+ ## 0.0.40
729
+
730
+ ### Patch Changes
731
+
732
+ - c8f8207: fix: 修复内存泄露问题
733
+ - Updated dependencies [c8f8207]
734
+ - @zhin.js/host-router@0.0.3
735
+ - zhin.js@1.0.90
736
+
737
+ ## 0.0.39
738
+
739
+ ### Patch Changes
740
+
741
+ - Updated dependencies [c78d2cd]
742
+ - @zhin.js/host-router@0.0.2
743
+ - zhin.js@1.0.89
744
+
745
+ ## 0.0.38
746
+
747
+ ### Patch Changes
748
+
749
+ - Updated dependencies [ccb6e24]
750
+ - zhin.js@1.0.88
751
+
752
+ ## 0.0.37
753
+
754
+ ### Patch Changes
755
+
756
+ - 90d9efd: fix: 处理包名
757
+ - zhin.js@1.0.87
758
+ - @zhin.js/host-router@0.0.1
759
+
760
+ ## 0.0.36
761
+
762
+ ### Patch Changes
763
+
764
+ - 7e14f8d: fix: 统一发个版,优化一些列安全问题
765
+ - Updated dependencies [7e14f8d]
766
+ - zhin.js@1.0.86
767
+ - @zhin.js/host-router@1.0.79
768
+
769
+ ## 0.0.35
770
+
771
+ ### Patch Changes
772
+
773
+ - zhin.js@1.0.85
774
+ - @zhin.js/host-router@1.0.78
775
+
776
+ ## 0.0.34
777
+
778
+ ### Patch Changes
779
+
780
+ - 0db9fed: fix: deno deploy
781
+ - f19d2e0: fix: remove multiple runtime support
782
+ - Updated dependencies [0db9fed]
783
+ - Updated dependencies [f19d2e0]
784
+ - zhin.js@1.0.84
785
+ - @zhin.js/host-router@1.0.77
786
+
787
+ ## 0.0.33
788
+
789
+ ### Patch Changes
790
+
791
+ - 775427e: fix: edge 支持
792
+ - Updated dependencies [775427e]
793
+ - @zhin.js/host-router@1.0.76
794
+ - zhin.js@1.0.83
795
+
796
+ ## 0.0.32
797
+
798
+ ### Patch Changes
799
+
800
+ - 32049f5: fix: init publish
801
+ - Updated dependencies [32049f5]
802
+ - @zhin.js/host-router@1.0.75
803
+ - zhin.js@1.0.82
804
+
805
+ ## 0.0.31
806
+
807
+ ### Patch Changes
808
+
809
+ - Updated dependencies [8086ccb]
810
+ - zhin.js@1.0.81
811
+ - @zhin.js/host-router@1.0.74
812
+
813
+ ## 0.0.30
814
+
815
+ ### Patch Changes
816
+
817
+ - zhin.js@1.0.80
818
+ - @zhin.js/host-router@1.0.73
819
+
820
+ ## 0.0.29
821
+
822
+ ### Patch Changes
823
+
824
+ - zhin.js@1.0.79
825
+ - @zhin.js/host-router@1.0.72
826
+
827
+ ## 0.0.28
828
+
829
+ ### Patch Changes
830
+
831
+ - zhin.js@1.0.78
832
+ - @zhin.js/host-router@1.0.71
833
+
834
+ ## 0.0.27
835
+
836
+ ### Patch Changes
837
+
838
+ - zhin.js@1.0.77
839
+ - @zhin.js/host-router@1.0.70
840
+
841
+ ## 0.0.26
842
+
843
+ ### Patch Changes
844
+
845
+ - Updated dependencies [cb9fbf1]
846
+ - zhin.js@1.0.76
847
+ - @zhin.js/host-router@1.0.69
848
+
849
+ ## 0.0.25
850
+
851
+ ### Patch Changes
852
+
853
+ - zhin.js@1.0.75
854
+ - @zhin.js/host-router@1.0.68
855
+
856
+ ## 0.0.24
857
+
858
+ ### Patch Changes
859
+
860
+ - Updated dependencies [c9dec38]
861
+ - zhin.js@1.0.74
862
+ - @zhin.js/host-router@1.0.67
863
+
864
+ ## 0.0.23
865
+
866
+ ### Patch Changes
867
+
868
+ - f1e9a76: fix: 提高 skill 质量
869
+ - zhin.js@1.0.73
870
+ - @zhin.js/host-router@1.0.66
871
+
872
+ ## 0.0.22
873
+
874
+ ### Patch Changes
875
+
876
+ - abc75a4: fix: 优化,客户端构建优化
877
+
878
+ ## 0.0.21
879
+
880
+ ### Patch Changes
881
+
882
+ - e28fd7c: fix: 重新发版
883
+ - Updated dependencies [e28fd7c]
884
+ - zhin.js@1.0.72
885
+ - @zhin.js/host-router@1.0.65
886
+
887
+ ## 0.0.20
888
+
889
+ ### Patch Changes
890
+
891
+ - 4304825: fix: 重新发版
892
+ - Updated dependencies [4304825]
893
+ - zhin.js@1.0.71
894
+ - @zhin.js/host-router@1.0.64
895
+
896
+ ## 0.0.19
897
+
898
+ ### Patch Changes
899
+
900
+ - zhin.js@1.0.68
901
+ - @zhin.js/host-router@1.0.63
902
+
903
+ ## 0.0.18
904
+
905
+ ### Patch Changes
906
+
907
+ - Updated dependencies [0eba6d6]
908
+ - @zhin.js/host-router@1.0.62
909
+ - zhin.js@1.0.67
910
+
911
+ ## 0.0.17
912
+
913
+ ### Patch Changes
914
+
915
+ - zhin.js@1.0.66
916
+ - @zhin.js/host-router@1.0.61
917
+
918
+ ## 0.0.16
919
+
920
+ ### Patch Changes
921
+
922
+ - zhin.js@1.0.65
923
+ - @zhin.js/host-router@1.0.60
924
+
925
+ ## 0.0.15
926
+
927
+ ### Patch Changes
928
+
929
+ - 9577eba: fix: tool 收集 bug,升级 ts 到 6.0.2
930
+ - Updated dependencies [9577eba]
931
+ - zhin.js@1.0.64
932
+ - @zhin.js/host-router@1.0.59
933
+
934
+ ## 0.0.14
935
+
936
+ ### Patch Changes
937
+
938
+ - Updated dependencies [ba30934]
939
+ - @zhin.js/host-router@1.0.58
940
+ - zhin.js@1.0.63
941
+
942
+ ## 0.0.13
943
+
944
+ ### Patch Changes
945
+
946
+ - zhin.js@1.0.62
947
+ - @zhin.js/host-router@1.0.57
948
+
949
+ ## 0.0.12
950
+
951
+ ### Patch Changes
952
+
953
+ - zhin.js@1.0.61
954
+ - @zhin.js/host-router@1.0.56
955
+
956
+ ## 0.0.11
957
+
958
+ ### Patch Changes
959
+
960
+ - 5073d4c: chore: chore: update TypeScript version to ^5.9.3 across all plugins and packages
961
+ feat: enhance ai-text-as-image output registration with off handler for cleanup
962
+ fix: remove unnecessary logging in ensureBuiltinFontsCached function
963
+ refactor: simplify action handlers in html-renderer tools
964
+ chore: add README files for queue-sandbox-poc and event-delivery packages
965
+ chore: adjust pnpm workspace configuration to exclude games directory
966
+ chore: update tsconfig to include plugins directory for TypeScript compilation
967
+ - Updated dependencies [5073d4c]
968
+ - zhin.js@1.0.60
969
+ - @zhin.js/host-router@1.0.55
970
+
971
+ ## 0.0.10
972
+
973
+ ### Patch Changes
974
+
975
+ - c212bf7: fix: 适配器优化
976
+ - Updated dependencies [c212bf7]
977
+ - zhin.js@1.0.59
978
+ - @zhin.js/host-router@1.0.54
979
+
980
+ ## 0.0.9
981
+
982
+ ### Patch Changes
983
+
984
+ - zhin.js@1.0.58
985
+ - @zhin.js/host-router@1.0.53
986
+
987
+ ## 0.0.8
988
+
989
+ ### Patch Changes
990
+
991
+ - zhin.js@1.0.57
992
+ - @zhin.js/host-router@1.0.52
993
+
994
+ ## 0.0.7
995
+
996
+ ### Patch Changes
997
+
998
+ - zhin.js@1.0.56
999
+ - @zhin.js/host-router@1.0.51
1000
+
1001
+ ## 0.0.6
1002
+
1003
+ ### Patch Changes
1004
+
1005
+ - zhin.js@1.0.55
1006
+ - @zhin.js/host-router@1.0.50
1007
+
1008
+ ## 0.0.5
1009
+
1010
+ ### Patch Changes
1011
+
1012
+ - 16c8f92: fix: 统一发一次版
1013
+ - Updated dependencies [16c8f92]
1014
+ - zhin.js@1.0.54
1015
+ - @zhin.js/host-router@1.0.49
1016
+
1017
+ ## 0.0.4
1018
+
1019
+ ### Patch Changes
1020
+
1021
+ - zhin.js@1.0.53
1022
+ - @zhin.js/host-router@1.0.48
1023
+
1024
+ ## 0.0.3
1025
+
1026
+ ### Patch Changes
1027
+
1028
+ - a3511a0: 各包内 Agent 技能说明已固定为随包发布的 `skills/*/SKILL.md`(替代已移除的运行时 `declareSkill`)。本批为 registry / 分发侧对齐的 **patch** 版本递增。
1029
+ - Updated dependencies [a3511a0]
1030
+ - @zhin.js/host-router@1.0.47
1031
+
1032
+ ## 0.0.2
1033
+
1034
+ ### Patch Changes
1035
+
1036
+ - Updated dependencies [bb6bfa8]
1037
+ - Updated dependencies [bb6bfa8]
1038
+ - zhin.js@1.0.52
1039
+ - @zhin.js/host-router@1.0.46
1040
+
1041
+ ## 0.0.1
1042
+
1043
+ ### Patch Changes
1044
+
1045
+ - zhin.js@1.0.51
1046
+ - @zhin.js/host-router@1.0.45