@zhin.js/adapter-weixin-ilink 1.1.20 → 1.1.21
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 +25 -0
- package/lib/protocol.d.ts +2 -1
- package/package.json +13 -13
- package/schema.json +106 -1
- package/src/protocol.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @zhin.js/adapter-weixin-ilink
|
|
2
2
|
|
|
3
|
+
## 1.1.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- af8f803: Use the current Endpoint's platform profile for Agent account identity, with per-field configured fallbacks and scoped, identity-approved profile tools. Keep SOUL first-person and independent of account names. Profile ports preserve the source Client, cancellation, truthful update outcomes and private image authority.
|
|
8
|
+
|
|
9
|
+
Adapter Feature API 2.1 and Tool Feature API 1.1 describe the additive profile requirements; new Core, official adapters and generated plugins declare the corresponding floors. Existing compatible API-2.0/API-1.0 plugins remain accepted by the newer providers. npm releases remain patch.
|
|
10
|
+
|
|
11
|
+
Private IM assets now bind to the full canonical conversation and principal. Existing IM asset records that contain only the earlier lossy hash remain on disk until their original expiry, but cannot be safely rebound; recapture them. No automatic file deletion, platform profile mutation or workspace SOUL rewrite occurs during upgrade.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [b88e988]
|
|
14
|
+
- Updated dependencies [f78eb84]
|
|
15
|
+
- Updated dependencies [c15cef9]
|
|
16
|
+
- Updated dependencies [b0c02a2]
|
|
17
|
+
- Updated dependencies [af8f803]
|
|
18
|
+
- Updated dependencies [26fda97]
|
|
19
|
+
- Updated dependencies [976886c]
|
|
20
|
+
- Updated dependencies [032dc96]
|
|
21
|
+
- @zhin.js/adapter@1.1.27
|
|
22
|
+
- @zhin.js/client@1.1.23
|
|
23
|
+
- @zhin.js/im-contract@1.1.10
|
|
24
|
+
- @zhin.js/core@1.1.55
|
|
25
|
+
- @zhin.js/page@1.1.13
|
|
26
|
+
- @zhin.js/feature-kit@1.1.11
|
|
27
|
+
|
|
3
28
|
## 1.1.20
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/lib/protocol.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EndpointProfileConfiguration } from 'zhin.js/adapter';
|
|
1
2
|
/**
|
|
2
3
|
* Weixin iLink protocol helpers (no legacy Adapter/Endpoint / segment-mapper).
|
|
3
4
|
* Canonicalization is owned by gateway/core before endpoint.send.
|
|
@@ -5,7 +6,7 @@
|
|
|
5
6
|
import { type ConversationRef, type Segment } from '@zhin.js/im-contract';
|
|
6
7
|
import type { WeixinMessage } from './ilink-types.js';
|
|
7
8
|
/** One expanded Weixin iLink endpoint configuration produced by AdapterIndex. */
|
|
8
|
-
export interface WeixinIlinkEndpointConfig {
|
|
9
|
+
export interface WeixinIlinkEndpointConfig extends EndpointProfileConfiguration {
|
|
9
10
|
readonly id: string;
|
|
10
11
|
readonly botAgent?: string;
|
|
11
12
|
readonly baseUrl?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-weixin-ilink",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Zhin.js Weixin iLink (ClawBot) adapter for Plugin Runtime (long-poll)",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@zhin.js/
|
|
53
|
-
"@zhin.js/
|
|
54
|
-
"@zhin.js/core": "1.1.54",
|
|
55
|
-
"@zhin.js/feature-kit": "1.1.10",
|
|
52
|
+
"@zhin.js/adapter": "1.1.27",
|
|
53
|
+
"@zhin.js/client": "1.1.23",
|
|
56
54
|
"@zhin.js/console-contract": "1.1.3",
|
|
57
|
-
"@zhin.js/
|
|
55
|
+
"@zhin.js/core": "1.1.55",
|
|
56
|
+
"@zhin.js/feature-kit": "1.1.11",
|
|
57
|
+
"@zhin.js/im-contract": "1.1.10",
|
|
58
58
|
"@zhin.js/logger": "1.1.2",
|
|
59
|
-
"@zhin.js/page": "1.1.
|
|
59
|
+
"@zhin.js/page": "1.1.13"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@zhin.js/adapter": "^1.1.
|
|
63
|
-
"@zhin.js/command": "^1.1.
|
|
64
|
-
"zhin.js": "^1.1.
|
|
65
|
-
"
|
|
62
|
+
"@zhin.js/adapter": "^1.1.27",
|
|
63
|
+
"@zhin.js/command": "^1.1.13",
|
|
64
|
+
"@zhin.js/core": "^1.1.55",
|
|
65
|
+
"zhin.js": "^1.1.20"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@zhin.js/command": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/node": "^26.1.2",
|
|
77
77
|
"typescript": "^6.0.3",
|
|
78
78
|
"vitest": "^4.1.10",
|
|
79
|
-
"zhin.js": "1.1.
|
|
79
|
+
"zhin.js": "1.1.20"
|
|
80
80
|
},
|
|
81
81
|
"ilink_appid": "bot",
|
|
82
82
|
"engines": {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"features": [
|
|
92
92
|
{
|
|
93
93
|
"package": "@zhin.js/adapter",
|
|
94
|
-
"api": "^2.
|
|
94
|
+
"api": "^2.1.0"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"package": "@zhin.js/command",
|
package/schema.json
CHANGED
|
@@ -122,6 +122,27 @@
|
|
|
122
122
|
"description": "Command prefix for this endpoint."
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
},
|
|
126
|
+
"nickname": {
|
|
127
|
+
"type": [
|
|
128
|
+
"string",
|
|
129
|
+
"null"
|
|
130
|
+
],
|
|
131
|
+
"description": "账号昵称兜底",
|
|
132
|
+
"x-i18n": {
|
|
133
|
+
"en": {
|
|
134
|
+
"description": "Fallback account nickname"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"profile": {
|
|
139
|
+
"$ref": "#/$defs/selfProfileFallback",
|
|
140
|
+
"description": "账号资料兜底",
|
|
141
|
+
"x-i18n": {
|
|
142
|
+
"en": {
|
|
143
|
+
"description": "Fallback account profile"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
125
146
|
}
|
|
126
147
|
},
|
|
127
148
|
"required": [
|
|
@@ -143,9 +164,93 @@
|
|
|
143
164
|
"description": "Command prefix. The default empty string allows unprefixed commands; '/' requires a leading slash. Each endpoints[i] can override it."
|
|
144
165
|
}
|
|
145
166
|
}
|
|
167
|
+
},
|
|
168
|
+
"nickname": {
|
|
169
|
+
"type": [
|
|
170
|
+
"string",
|
|
171
|
+
"null"
|
|
172
|
+
],
|
|
173
|
+
"description": "账号昵称兜底",
|
|
174
|
+
"x-i18n": {
|
|
175
|
+
"en": {
|
|
176
|
+
"description": "Fallback account nickname"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"profile": {
|
|
181
|
+
"$ref": "#/$defs/selfProfileFallback",
|
|
182
|
+
"description": "账号资料兜底",
|
|
183
|
+
"x-i18n": {
|
|
184
|
+
"en": {
|
|
185
|
+
"description": "Fallback account profile"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
146
188
|
}
|
|
147
189
|
},
|
|
148
190
|
"required": [
|
|
149
191
|
"endpoints"
|
|
150
|
-
]
|
|
192
|
+
],
|
|
193
|
+
"$defs": {
|
|
194
|
+
"selfProfileFallback": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"properties": {
|
|
198
|
+
"gender": {
|
|
199
|
+
"type": [
|
|
200
|
+
"string",
|
|
201
|
+
"null"
|
|
202
|
+
],
|
|
203
|
+
"enum": [
|
|
204
|
+
"male",
|
|
205
|
+
"female",
|
|
206
|
+
"other",
|
|
207
|
+
"unknown",
|
|
208
|
+
null
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"age": {
|
|
212
|
+
"type": [
|
|
213
|
+
"integer",
|
|
214
|
+
"null"
|
|
215
|
+
],
|
|
216
|
+
"minimum": 0
|
|
217
|
+
},
|
|
218
|
+
"birthday": {
|
|
219
|
+
"type": [
|
|
220
|
+
"string",
|
|
221
|
+
"null"
|
|
222
|
+
],
|
|
223
|
+
"pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"
|
|
224
|
+
},
|
|
225
|
+
"signature": {
|
|
226
|
+
"type": [
|
|
227
|
+
"string",
|
|
228
|
+
"null"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"avatar": {
|
|
232
|
+
"type": [
|
|
233
|
+
"string",
|
|
234
|
+
"null"
|
|
235
|
+
],
|
|
236
|
+
"pattern": "^(https?://[^\\s/?#]+(?:[/?#].*)?|)$"
|
|
237
|
+
},
|
|
238
|
+
"interests": {
|
|
239
|
+
"type": [
|
|
240
|
+
"array",
|
|
241
|
+
"null"
|
|
242
|
+
],
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"bio": {
|
|
248
|
+
"type": [
|
|
249
|
+
"string",
|
|
250
|
+
"null"
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
151
256
|
}
|
package/src/protocol.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EndpointProfileConfiguration } from 'zhin.js/adapter';
|
|
1
2
|
/**
|
|
2
3
|
* Weixin iLink protocol helpers (no legacy Adapter/Endpoint / segment-mapper).
|
|
3
4
|
* Canonicalization is owned by gateway/core before endpoint.send.
|
|
@@ -9,7 +10,7 @@ import { DEFAULT_API_BASE_URL, DEFAULT_CDN_BASE_URL } from './ilink-meta.js';
|
|
|
9
10
|
import type { WeixinMessage } from './ilink-types.js';
|
|
10
11
|
|
|
11
12
|
/** One expanded Weixin iLink endpoint configuration produced by AdapterIndex. */
|
|
12
|
-
export interface WeixinIlinkEndpointConfig {
|
|
13
|
+
export interface WeixinIlinkEndpointConfig extends EndpointProfileConfiguration {
|
|
13
14
|
readonly id: string;
|
|
14
15
|
readonly botAgent?: string;
|
|
15
16
|
readonly baseUrl?: string;
|