@zhin.js/adapter-wechat-mp 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.
- package/CHANGELOG.md +551 -0
- package/README.md +41 -88
- package/adapters/wechat-mp/index.js +32 -0
- package/adapters/wechat-mp/index.ts +38 -0
- package/commands/wechat-mp/endpoint/add/[id]/index.js +3 -0
- package/commands/wechat-mp/endpoint/add/[id]/index.ts +3 -0
- package/commands/wechat-mp/endpoint/definition.js +20 -0
- package/commands/wechat-mp/endpoint/definition.ts +20 -0
- package/commands/wechat-mp/endpoint/list/index.js +3 -0
- package/commands/wechat-mp/endpoint/list/index.ts +3 -0
- package/commands/wechat-mp/endpoint/remove/[id]/index.js +3 -0
- package/commands/wechat-mp/endpoint/remove/[id]/index.ts +3 -0
- package/lib/client.d.ts +32 -0
- package/lib/client.js +70 -0
- package/lib/endpoint.d.ts +31 -72
- package/lib/endpoint.js +226 -747
- package/lib/index.d.ts +6 -15
- package/lib/index.js +6 -25
- package/lib/media-upload.d.ts +22 -0
- package/lib/media-upload.js +64 -0
- package/lib/passive-reply.d.ts +0 -1
- package/lib/passive-reply.js +0 -1
- package/lib/protocol.d.ts +126 -0
- package/lib/protocol.js +350 -0
- package/lib/side-event-dispatch.d.ts +4 -0
- package/lib/side-event-dispatch.js +38 -0
- package/lib/webhook.d.ts +20 -0
- package/lib/webhook.js +152 -0
- package/lib/wechat-mp-runtime-state.d.ts +1 -0
- package/lib/wechat-mp-runtime-state.js +6 -0
- package/package.json +57 -12
- package/plugin.js +14 -0
- package/schema.json +144 -0
- package/src/client.ts +121 -0
- package/src/endpoint.ts +276 -902
- package/src/index.ts +56 -35
- package/src/media-upload.ts +82 -0
- package/src/protocol.ts +508 -0
- package/src/side-event-dispatch.ts +45 -0
- package/src/webhook.ts +237 -0
- package/src/wechat-mp-runtime-state.ts +7 -0
- package/lib/adapter.d.ts +0 -14
- package/lib/adapter.d.ts.map +0 -1
- package/lib/adapter.js +0 -17
- package/lib/adapter.js.map +0 -1
- package/lib/endpoint.d.ts.map +0 -1
- package/lib/endpoint.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/passive-reply.d.ts.map +0 -1
- package/lib/passive-reply.js.map +0 -1
- package/lib/types.d.ts +0 -58
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/skills/wechat-mp/SKILL.md +0 -33
- package/src/adapter.ts +0 -22
- package/src/types.ts +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,556 @@
|
|
|
1
1
|
# @zhin.js/adapter-wechat-mp
|
|
2
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
|
+
- 224f267: Require one canonical expanded WeChat MP endpoint configuration. The protocol no longer reinterprets nested `endpoints` or reads endpoint identity and credentials from `process.env`.
|
|
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
|
+
## 7.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
|
+
|
|
113
|
+
## 7.0.0
|
|
114
|
+
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- zhin.js@7.0.0
|
|
118
|
+
|
|
119
|
+
## 6.0.5
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- Updated dependencies [a728a20]
|
|
124
|
+
- @zhin.js/host-http@1.0.17
|
|
125
|
+
- zhin.js@6.0.15
|
|
126
|
+
|
|
127
|
+
## 6.0.4
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- Updated dependencies [fcbff21]
|
|
132
|
+
- @zhin.js/host-http@1.0.16
|
|
133
|
+
- zhin.js@6.0.15
|
|
134
|
+
|
|
135
|
+
## 6.0.3
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- Updated dependencies [d85eddd]
|
|
140
|
+
- @zhin.js/host-http@1.0.15
|
|
141
|
+
- @zhin.js/core@1.5.15
|
|
142
|
+
- zhin.js@6.0.15
|
|
143
|
+
|
|
144
|
+
## 6.0.2
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- Updated dependencies [a5ee497]
|
|
149
|
+
- Updated dependencies [ba7e17a]
|
|
150
|
+
- Updated dependencies [7108d0b]
|
|
151
|
+
- @zhin.js/host-http@1.0.14
|
|
152
|
+
- @zhin.js/core@1.5.15
|
|
153
|
+
- zhin.js@6.0.15
|
|
154
|
+
|
|
155
|
+
## 6.0.1
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- 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.
|
|
160
|
+
- Updated dependencies [4e8117c]
|
|
161
|
+
- Updated dependencies [54bfd6b]
|
|
162
|
+
- Updated dependencies [12025ee]
|
|
163
|
+
- Updated dependencies [09b14d6]
|
|
164
|
+
- Updated dependencies [1fc78bc]
|
|
165
|
+
- @zhin.js/adapter@1.2.1
|
|
166
|
+
- @zhin.js/core@1.5.14
|
|
167
|
+
- @zhin.js/host-http@1.0.13
|
|
168
|
+
- @zhin.js/command@1.0.16
|
|
169
|
+
- @zhin.js/logger@1.0.77
|
|
170
|
+
- zhin.js@6.0.14
|
|
171
|
+
- @zhin.js/feature-kit@1.0.13
|
|
172
|
+
|
|
173
|
+
## 6.0.0
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- Updated dependencies [b10d058]
|
|
178
|
+
- Updated dependencies [f2c532f]
|
|
179
|
+
- @zhin.js/host-http@1.0.12
|
|
180
|
+
- @zhin.js/adapter@1.2.0
|
|
181
|
+
- @zhin.js/core@1.5.13
|
|
182
|
+
- zhin.js@6.0.13
|
|
183
|
+
|
|
184
|
+
## 5.0.13
|
|
185
|
+
|
|
186
|
+
### Patch Changes
|
|
187
|
+
|
|
188
|
+
- 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.
|
|
189
|
+
- Updated dependencies [5969c5b]
|
|
190
|
+
- Updated dependencies [d336a3f]
|
|
191
|
+
- Updated dependencies [5969c5b]
|
|
192
|
+
- Updated dependencies [5969c5b]
|
|
193
|
+
- Updated dependencies [974772e]
|
|
194
|
+
- Updated dependencies [5969c5b]
|
|
195
|
+
- Updated dependencies [2f786bd]
|
|
196
|
+
- Updated dependencies [1312ca0]
|
|
197
|
+
- Updated dependencies [985fa22]
|
|
198
|
+
- @zhin.js/im-contract@1.0.4
|
|
199
|
+
- @zhin.js/core@1.5.12
|
|
200
|
+
- @zhin.js/adapter@1.1.11
|
|
201
|
+
- @zhin.js/host-http@1.0.11
|
|
202
|
+
- @zhin.js/command@1.0.15
|
|
203
|
+
- zhin.js@6.0.12
|
|
204
|
+
|
|
205
|
+
## 5.0.12
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- @zhin.js/core@1.5.11
|
|
210
|
+
- zhin.js@6.0.11
|
|
211
|
+
|
|
212
|
+
## 5.0.11
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- 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.
|
|
217
|
+
- @zhin.js/core@1.5.10
|
|
218
|
+
- zhin.js@6.0.10
|
|
219
|
+
|
|
220
|
+
## 5.0.10
|
|
221
|
+
|
|
222
|
+
### Patch Changes
|
|
223
|
+
|
|
224
|
+
- eb84b77: fix: 更新文档,建立正确的依赖关系
|
|
225
|
+
- Updated dependencies [d3920e9]
|
|
226
|
+
- @zhin.js/core@1.5.10
|
|
227
|
+
- zhin.js@6.0.10
|
|
228
|
+
- @zhin.js/adapter@1.1.10
|
|
229
|
+
|
|
230
|
+
## 5.0.9
|
|
231
|
+
|
|
232
|
+
### Patch Changes
|
|
233
|
+
|
|
234
|
+
- Updated dependencies [e4757a8]
|
|
235
|
+
- Updated dependencies [c3c0ebf]
|
|
236
|
+
- @zhin.js/command@1.0.13
|
|
237
|
+
- @zhin.js/host-http@1.0.10
|
|
238
|
+
- @zhin.js/core@1.5.9
|
|
239
|
+
- @zhin.js/adapter@1.1.9
|
|
240
|
+
- zhin.js@6.0.9
|
|
241
|
+
|
|
242
|
+
## 5.0.8
|
|
243
|
+
|
|
244
|
+
### Patch Changes
|
|
245
|
+
|
|
246
|
+
- Updated dependencies [63253bb]
|
|
247
|
+
- Updated dependencies [8e973dc]
|
|
248
|
+
- Updated dependencies [953cfe1]
|
|
249
|
+
- Updated dependencies [0e73866]
|
|
250
|
+
- @zhin.js/plugin-runtime@1.1.6
|
|
251
|
+
- @zhin.js/core@1.5.8
|
|
252
|
+
- @zhin.js/adapter@1.1.8
|
|
253
|
+
- @zhin.js/host-http@1.0.9
|
|
254
|
+
- zhin.js@6.0.8
|
|
255
|
+
- @zhin.js/command@1.0.12
|
|
256
|
+
|
|
257
|
+
## 5.0.7
|
|
258
|
+
|
|
259
|
+
### Patch Changes
|
|
260
|
+
|
|
261
|
+
- Updated dependencies [36cb1ca]
|
|
262
|
+
- @zhin.js/core@1.5.7
|
|
263
|
+
- zhin.js@6.0.7
|
|
264
|
+
|
|
265
|
+
## 5.0.6
|
|
266
|
+
|
|
267
|
+
### Patch Changes
|
|
268
|
+
|
|
269
|
+
- Updated dependencies [7945544]
|
|
270
|
+
- @zhin.js/command@1.0.11
|
|
271
|
+
- @zhin.js/adapter@1.1.7
|
|
272
|
+
- @zhin.js/core@1.5.6
|
|
273
|
+
- zhin.js@6.0.6
|
|
274
|
+
|
|
275
|
+
## 5.0.5
|
|
276
|
+
|
|
277
|
+
### Patch Changes
|
|
278
|
+
|
|
279
|
+
- Updated dependencies [2d0a622]
|
|
280
|
+
- @zhin.js/command@1.0.10
|
|
281
|
+
- @zhin.js/adapter@1.1.7
|
|
282
|
+
- @zhin.js/core@1.5.5
|
|
283
|
+
- zhin.js@6.0.5
|
|
284
|
+
|
|
285
|
+
## 5.0.4
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- Updated dependencies [0de46a8]
|
|
290
|
+
- Updated dependencies [c106ecc]
|
|
291
|
+
- Updated dependencies [ca92e03]
|
|
292
|
+
- Updated dependencies [b0f37ae]
|
|
293
|
+
- Updated dependencies [ba08a2f]
|
|
294
|
+
- Updated dependencies [daffd4c]
|
|
295
|
+
- Updated dependencies [36c7400]
|
|
296
|
+
- Updated dependencies [162fa34]
|
|
297
|
+
- Updated dependencies [e40b048]
|
|
298
|
+
- Updated dependencies [f1708c3]
|
|
299
|
+
- Updated dependencies [e53444f]
|
|
300
|
+
- Updated dependencies [92b0dd7]
|
|
301
|
+
- Updated dependencies [a7df753]
|
|
302
|
+
- @zhin.js/host-http@1.0.8
|
|
303
|
+
- @zhin.js/im-contract@1.0.3
|
|
304
|
+
- @zhin.js/adapter@1.1.7
|
|
305
|
+
- @zhin.js/plugin-runtime@1.1.5
|
|
306
|
+
- @zhin.js/command@1.0.9
|
|
307
|
+
- @zhin.js/core@1.5.4
|
|
308
|
+
- zhin.js@6.0.4
|
|
309
|
+
|
|
310
|
+
## 5.0.3
|
|
311
|
+
|
|
312
|
+
### Patch Changes
|
|
313
|
+
|
|
314
|
+
- f8c7a54: fix: im
|
|
315
|
+
- Updated dependencies [f8c7a54]
|
|
316
|
+
- @zhin.js/logger@1.0.76
|
|
317
|
+
- @zhin.js/host-http@1.0.7
|
|
318
|
+
- @zhin.js/adapter@1.1.6
|
|
319
|
+
- @zhin.js/command@1.0.8
|
|
320
|
+
- @zhin.js/core@1.5.3
|
|
321
|
+
- @zhin.js/im-contract@1.0.2
|
|
322
|
+
- @zhin.js/plugin-runtime@1.1.4
|
|
323
|
+
- zhin.js@6.0.3
|
|
324
|
+
|
|
325
|
+
## 5.0.2
|
|
326
|
+
|
|
327
|
+
### Patch Changes
|
|
328
|
+
|
|
329
|
+
- Updated dependencies [afc0e66]
|
|
330
|
+
- Updated dependencies [2e41ad5]
|
|
331
|
+
- Updated dependencies [9f57124]
|
|
332
|
+
- @zhin.js/core@1.5.2
|
|
333
|
+
- @zhin.js/adapter@1.1.5
|
|
334
|
+
- @zhin.js/im-contract@1.0.1
|
|
335
|
+
- @zhin.js/plugin-runtime@1.1.3
|
|
336
|
+
- @zhin.js/command@1.0.7
|
|
337
|
+
- @zhin.js/host-http@1.0.6
|
|
338
|
+
- zhin.js@6.0.2
|
|
339
|
+
|
|
340
|
+
## 5.0.1
|
|
341
|
+
|
|
342
|
+
### Patch Changes
|
|
343
|
+
|
|
344
|
+
- Updated dependencies [c8f4d45]
|
|
345
|
+
- @zhin.js/plugin-runtime@1.1.2
|
|
346
|
+
- @zhin.js/host-http@1.0.5
|
|
347
|
+
- @zhin.js/adapter@1.1.4
|
|
348
|
+
- @zhin.js/command@1.0.6
|
|
349
|
+
- @zhin.js/core@1.5.1
|
|
350
|
+
- zhin.js@6.0.1
|
|
351
|
+
|
|
352
|
+
## 5.0.0
|
|
353
|
+
|
|
354
|
+
### Patch Changes
|
|
355
|
+
|
|
356
|
+
- 4fbff5d: feat!: 多模态双向 Segment 一贯制(BREAKING,无兼容层)
|
|
357
|
+
|
|
358
|
+
全框架唯一媒体表达统一为 canonical `Segment` + `MediaRef{kind: url|path|base64|file, value, mime_type?, file_name?, size?}`,新增 audio/video/file 段类型;所有第二形状(legacy `data.url/file/base64` 字段、`mediaRefFromLegacyData`/`mediaRefToLegacyFields` 桥、双写)全部删除。
|
|
359
|
+
|
|
360
|
+
- **core**:`SendContent` 一等支持 `Segment[]`;endpoint 出站载荷只含 canonical 段;`resolveOutboundMediaPolicy` 改为纯声明驱动(adapter definition `segments.outboundMedia`),内置策略表删除,未声明回退 `url-or-text`;`ImageContent` 旧桥删除。
|
|
361
|
+
- **ai**:新增 `MediaContentBlock`/`MediaBlockRef`(Segment 同构)与 `UserMessage.media`(当前 turn 媒体,**不持久化**——存储层自动剥离);`createUserMessage(text, media?)` 签名变更(`ImageContent` 删除);provider 边界序列化器 `filterMediaBlocksForProvider` + 能力表(缺省 image-only,不支持类型降级占位文本);ai-sdk 桥媒体块 → SDK image/file parts。
|
|
362
|
+
- **agent**:入站 turn 注入(`turn/inbound-media.ts`)——commMessage 媒体段 → 当前 turn `UserMessage.media`;图片 path 物化、音频默认 STT(`@zhin.js/speech` 可选,失败降级占位)、视频/文件占位;`publishOutboundElements` 产出 canonical Segment;`transcribeAudioPayload` 导出。
|
|
363
|
+
- **cli**:`bridgeRuntimeMessage` 回复链路媒体段透传,不再压平为文本(`$reply` 直达 normalize → adapter)。
|
|
364
|
+
- **全部 20 个平台适配器**:出站媒体只消费 `data.media`(url 直发 / base64 直发 / 平台上传 / 读盘),入站媒体产出 canonical `data.media`;`segments.outboundMedia` 声明与实际消费逐一核对修正;QQ 入站新增 canonical segments(image/audio/video/file/mention/face/reply),图片/语音/视频不再丢失。
|
|
365
|
+
|
|
366
|
+
迁移:适配器/插件产媒体一律用 `{ type, data: { media: MediaRef } }`;发送 legacy `data.url/file/base64` 形状的段会被 warn 丢弃。
|
|
367
|
+
|
|
368
|
+
- Updated dependencies [7c1e63a]
|
|
369
|
+
- Updated dependencies [4fbff5d]
|
|
370
|
+
- Updated dependencies [5b94d9c]
|
|
371
|
+
- @zhin.js/command@1.0.5
|
|
372
|
+
- @zhin.js/adapter@1.1.3
|
|
373
|
+
- @zhin.js/core@1.5.0
|
|
374
|
+
- zhin.js@6.0.0
|
|
375
|
+
|
|
376
|
+
## 4.0.4
|
|
377
|
+
|
|
378
|
+
### Patch Changes
|
|
379
|
+
|
|
380
|
+
- Updated dependencies [d8bf702]
|
|
381
|
+
- @zhin.js/host-http@1.0.4
|
|
382
|
+
- @zhin.js/core@1.4.3
|
|
383
|
+
- zhin.js@5.0.3
|
|
384
|
+
|
|
385
|
+
## 4.0.3
|
|
386
|
+
|
|
387
|
+
### Patch Changes
|
|
388
|
+
|
|
389
|
+
- Updated dependencies [45b3256]
|
|
390
|
+
- @zhin.js/core@1.4.3
|
|
391
|
+
- zhin.js@5.0.3
|
|
392
|
+
|
|
393
|
+
## 4.0.2
|
|
394
|
+
|
|
395
|
+
### Patch Changes
|
|
396
|
+
|
|
397
|
+
- d5cd4aa: Publish Plugin Runtime entry points and convention modules as JavaScript so
|
|
398
|
+
installed npm plugins load on Node without TypeScript stripping. Workspace
|
|
399
|
+
development continues to prefer TypeScript sources for local HMR.
|
|
400
|
+
|
|
401
|
+
Remove the unconsumed legacy game hub APIs from game-kit; game navigation and
|
|
402
|
+
records now use ordinary convention commands owned by the game hub plugin.
|
|
403
|
+
|
|
404
|
+
- Updated dependencies [d5cd4aa]
|
|
405
|
+
- @zhin.js/command@1.0.4
|
|
406
|
+
- zhin.js@5.0.2
|
|
407
|
+
- @zhin.js/adapter@1.1.2
|
|
408
|
+
- @zhin.js/core@1.4.2
|
|
409
|
+
|
|
410
|
+
## 4.0.1
|
|
411
|
+
|
|
412
|
+
### Patch Changes
|
|
413
|
+
|
|
414
|
+
- 5691aba: 第二轮全量审计修复批(8 面 ~60 bug):
|
|
415
|
+
|
|
416
|
+
- **安全**:email 附件路径穿越修复(basename + downloadPath 约束);lark/telegram/satori webhook 鉴权(缺密钥告警、timingSafeEqual、±5min 时效窗、chat_type 修正);onebot wss/webhook 缺 token 告警;qq webhook 改原始字节验签;renderJsx/JSX 转义注入修复;console runtime token 401 死循环。
|
|
417
|
+
- **P0 功能**:sandbox 多 endpoint 解析 + WS 路径隔离;short-url expand(undici opaqueredirect)改 follow;AI 压缩摘要失败不再静默丢历史(熔断恢复生效);console-ui 实时推送事件名归一化 + IndexedDB schema 对齐;process-monitor 热重载不再误判崩溃。
|
|
418
|
+
- **生命周期**:email IMAP 断线重连 + 在飞锁;onebot11/12 start 失败清理;line replyToken TTL + push 兜底;wechat-mp token 过期重试 + MsgId 去重;weixin-ilink buf 推进/防抖写盘/媒体 TTL/QR abort;satori PONG 看门狗;退避自毁修复。
|
|
419
|
+
- **游戏**:text-adventure 终局 restart 复活 + requires 服务端校验;tic-tac-toe PvP 占用/restart/队列清理/TTL;idiom-chain/word-riddle 闲聊不扣失误;别名中间件不劫持普通聊天。
|
|
420
|
+
- **共享库**:schema falsy 默认值/date/tuple/union 修复;database parseCondition Date/未知操作符、sqlite TEXT 往返、query 分派、belongsToMany 方言、migration dry-run;schedule DST 回拨死循环、重复 id 去重、flush 串行化;game-kit fallback 编号/onboarding 提示/尾缀边界/活引用拷贝。
|
|
421
|
+
- **渲染语音**:fetch 全部超时 + 渲染并发闸;sanitizeHtml form 保文本;STT 扩展名映射 + 删临时文件;TTS 未知 provider 报错;emojiCache LRU 负缓存/fontCache style/clearFonts 恢复;register 错误分类收窄。
|
|
422
|
+
|
|
423
|
+
- 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(无凭据)暂不接。
|
|
424
|
+
- 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 注明平台无列表面暂不接。
|
|
425
|
+
- 6cb6152: 统一消息元素通道(UNI-Channel)落地:
|
|
426
|
+
|
|
427
|
+
- **入站契约**:`IncomingMessage.segments`(canonical Segment[],与 content 纯文本视图同源双轨),Message 透传;AI 兜底链路经 `collectSegmentMedia` 把图片/语音/视频/文件 MediaRef 写入会话 extra——多模态输入不再丢失。
|
|
428
|
+
- **出站协商**:`normalizeOutboundPayload` 升级全量 canonical 归一(复用 generic-segment-mapper),html→image 按端点 `segments.outboundMedia` 声明降级(base64 直发 / url-or-text / passthrough 自行物化);`MediaRef.kind` 新增 `'file'` 承载平台不透明引用(file_id/resource_id)。
|
|
429
|
+
- **能力声明**:`defineAdapter.segments` policy(outboundMedia / interactive),三道段门禁复活(探测点改 adapters/\*.ts,豁免名单渐进收敛)。
|
|
430
|
+
- **首批迁移**: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 图片不再静默丢图,失败降级文本)。
|
|
431
|
+
|
|
432
|
+
- Updated dependencies [cdf64e7]
|
|
433
|
+
- Updated dependencies [2d0a159]
|
|
434
|
+
- Updated dependencies [5691aba]
|
|
435
|
+
- Updated dependencies [078e3f7]
|
|
436
|
+
- Updated dependencies [50497a5]
|
|
437
|
+
- Updated dependencies [9c997b2]
|
|
438
|
+
- Updated dependencies [09d4f25]
|
|
439
|
+
- Updated dependencies [43485a9]
|
|
440
|
+
- Updated dependencies [f0ec5ab]
|
|
441
|
+
- Updated dependencies [3e925d0]
|
|
442
|
+
- Updated dependencies [fa66c4c]
|
|
443
|
+
- Updated dependencies [fa66c4c]
|
|
444
|
+
- Updated dependencies [6cb6152]
|
|
445
|
+
- @zhin.js/command@1.0.3
|
|
446
|
+
- @zhin.js/plugin-runtime@1.1.1
|
|
447
|
+
- @zhin.js/host-http@1.0.3
|
|
448
|
+
- zhin.js@5.0.1
|
|
449
|
+
- @zhin.js/adapter@1.1.1
|
|
450
|
+
- @zhin.js/core@1.4.1
|
|
451
|
+
|
|
452
|
+
## 4.0.0
|
|
453
|
+
|
|
454
|
+
### Patch Changes
|
|
455
|
+
|
|
456
|
+
- 7db69c1: 命令前缀改为适配器配置项:`MessageDispatcher` 不再硬编码 `/`,默认按消息所属适配器实例 config 的 `commandPrefix` 解析(默认 `''` 无前缀,任意文本按命令匹配),`endpoints[i].commandPrefix` 逐项覆盖;`ImRuntime({ commandPrefix })` 仍可设全局静态前缀。全部 20 个平台适配器 schema 新增 `commandPrefix` 属性。
|
|
457
|
+
|
|
458
|
+
BREAKING(行为变化):未配置时命令不再需要 `/` 前缀——原 `/zt` 写法不再命中,直接发 `zt` 即可;需要斜杠风格的适配器请在配置里显式设 `commandPrefix: '/'`。
|
|
459
|
+
|
|
460
|
+
- 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 同步迁移。
|
|
461
|
+
- Updated dependencies [7db69c1]
|
|
462
|
+
- Updated dependencies [e5c84ed]
|
|
463
|
+
- Updated dependencies [3ea84a0]
|
|
464
|
+
- Updated dependencies [1ddcd70]
|
|
465
|
+
- Updated dependencies [ac9da66]
|
|
466
|
+
- @zhin.js/core@1.4.0
|
|
467
|
+
- @zhin.js/adapter@1.1.0
|
|
468
|
+
- @zhin.js/plugin-runtime@1.1.0
|
|
469
|
+
- @zhin.js/host-http@1.0.2
|
|
470
|
+
- zhin.js@5.0.0
|
|
471
|
+
|
|
472
|
+
## 3.0.3
|
|
473
|
+
|
|
474
|
+
### Patch Changes
|
|
475
|
+
|
|
476
|
+
- cc5c94d: 约定式插件运行时迁移(breaking):插件与适配器由 `usePlugin()` / `extends Adapter` 迁移为 `definePlugin` / `defineAdapter` + `plugin.ts` + 约定目录(`adapters/`、`commands/`、`components/`、`tools/` 等)。
|
|
477
|
+
|
|
478
|
+
- 新增约定式运行时包:`@zhin.js/plugin-runtime`、`@zhin.js/adapter`、`@zhin.js/runtime`、`@zhin.js/host-http`(首版 1.0.0 走 init-publish,不在本 changeset 内 bump)。
|
|
479
|
+
- 全部 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 推迟的连接模式已补齐。
|
|
480
|
+
- 游戏 / 工具 / 服务插件同步迁移到约定目录结构。
|
|
481
|
+
- CLI 增加 plugin-runtime host installer(http/database/outbound/schedule/console 等)。
|
|
482
|
+
|
|
483
|
+
后续加固(同批):
|
|
484
|
+
|
|
485
|
+
- CLI:`zhin runtime start --daemon`(pidfile/崩溃拉起/风暴保护),orphan watchdog 防僵尸进程;legacy `zhin dev` / `zhin start` 已移除(含 `zhin restart`),`zhin stop` 兼容新 daemon。
|
|
486
|
+
- 安全:builtin 工具统一走 `security/policy-facade.ts` 的 `runToolPolicies`(声明式策略表,deny 优先);审计日志 close flush + 背压队列;`splitCompoundCommand` 引号感知、`extractCommandName` 去引号堵绕过。
|
|
487
|
+
- 日志:Logger 双堆栈修复、本地时区、`getLogger` 挂树(`setLevel` 递归生效)、第三方库(log4js/discord)桥接、启动人读总结。
|
|
488
|
+
- 结构:`plugins/games/shared` 迁为 `packages/game-kit`(`@zhin.js/game-kit`);死目录 `plugins/adapters/common` 删除。
|
|
489
|
+
- 脚手架:`create-zhin-app` / `zhin new` / scaffold-wizard 生成物改为 Plugin Runtime 形态(minimal-bot 同构,新配置格式)。
|
|
490
|
+
- Console:endpoint.list 真实名称与 phase、schema:get-all 按 instanceKey 映射、db:\* 接 DatabaseHost。
|
|
491
|
+
|
|
492
|
+
注:按仓库发布惯例(见 1bb345dd2),本次 breaking 迁移统一使用 patch,避免 zhin.js 5.0 级联。
|
|
493
|
+
|
|
494
|
+
- Updated dependencies [16ec4e8]
|
|
495
|
+
- Updated dependencies [cc5c94d]
|
|
496
|
+
- Updated dependencies [447f3e2]
|
|
497
|
+
- @zhin.js/core@1.3.5
|
|
498
|
+
- @zhin.js/host-http@1.0.1
|
|
499
|
+
- zhin.js@4.1.3
|
|
500
|
+
- @zhin.js/logger@1.0.75
|
|
501
|
+
- @zhin.js/plugin-runtime@1.0.1
|
|
502
|
+
- @zhin.js/adapter@1.0.1
|
|
503
|
+
|
|
504
|
+
## 3.0.2
|
|
505
|
+
|
|
506
|
+
### Patch Changes
|
|
507
|
+
|
|
508
|
+
- 872c583: Slack 适配器 Phase 1/2:mrkdwn 出站、长消息切分、斜杠/按钮 ephemeral 反馈、入站 mrkdwn→Markdown、editMessage 对齐 core。
|
|
509
|
+
|
|
510
|
+
Logger 表格日志与 string-width 列宽;Agent AI Handler 框线表格与 introspection/MCP 导出;Core side-event 归一化;Schedule 时区规划;多适配器 side-event 与 API surface 更新。
|
|
511
|
+
|
|
512
|
+
- 872c583: fix: 代码格式优化
|
|
513
|
+
- Updated dependencies [872c583]
|
|
514
|
+
- Updated dependencies [872c583]
|
|
515
|
+
- @zhin.js/host-router@2.0.3
|
|
516
|
+
- zhin.js@4.1.2
|
|
517
|
+
|
|
518
|
+
## 3.0.1
|
|
519
|
+
|
|
520
|
+
### Patch Changes
|
|
521
|
+
|
|
522
|
+
- 5cc9c03: fix: ai 优化
|
|
523
|
+
- b9b3881: fix: 增加游戏引擎以及部分游戏
|
|
524
|
+
- Updated dependencies [5cc9c03]
|
|
525
|
+
- Updated dependencies [7700903]
|
|
526
|
+
- @zhin.js/host-router@2.0.2
|
|
527
|
+
- zhin.js@4.1.1
|
|
528
|
+
|
|
529
|
+
## 3.0.0
|
|
530
|
+
|
|
531
|
+
### Patch Changes
|
|
532
|
+
|
|
533
|
+
- c4575c9: fix: 输入输出优化,文档优化
|
|
534
|
+
- Updated dependencies [c4575c9]
|
|
535
|
+
- Updated dependencies [c4575c9]
|
|
536
|
+
- @zhin.js/host-router@2.0.1
|
|
537
|
+
- zhin.js@4.1.0
|
|
538
|
+
|
|
539
|
+
## 2.0.1
|
|
540
|
+
|
|
541
|
+
### Patch Changes
|
|
542
|
+
|
|
543
|
+
- Updated dependencies [ae5239c]
|
|
544
|
+
- zhin.js@4.0.1
|
|
545
|
+
- @zhin.js/host-router@2.0.0
|
|
546
|
+
|
|
547
|
+
## 2.0.0
|
|
548
|
+
|
|
549
|
+
### Patch Changes
|
|
550
|
+
|
|
551
|
+
- zhin.js@3.0.0
|
|
552
|
+
- @zhin.js/host-router@2.0.0
|
|
553
|
+
|
|
3
554
|
## 1.0.1
|
|
4
555
|
|
|
5
556
|
### Patch Changes
|