@zhin.js/adapter-icqq 1.1.5 → 1.1.7
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 +28 -0
- package/lib/icqq-inbound.js +2 -1
- package/package.json +15 -15
- package/src/icqq-inbound.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @zhin.js/adapter-icqq
|
|
2
2
|
|
|
3
|
+
## 1.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5ab6307]
|
|
8
|
+
- @zhin.js/core@1.1.42
|
|
9
|
+
|
|
10
|
+
## 1.1.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- badcc1f: Unify lazy JSX and HTML delivery across commands, inbound middleware and registered components. Remove the former JSX/template component runtimes, respect declared adapter HTML policies, and preserve author/generation ownership for automatic and explicit replies.
|
|
15
|
+
|
|
16
|
+
Add the optional @zhin.js/components library with composable JSXRenderable display props, shared themes, symmetric spacing and local style/text overrides. Include tables, lists, Markdown with highlighted code blocks, and display-only checkbox, radio, switch and button states; provide a reusable preview gallery. Update scaffolds, examples and public authoring documentation together.
|
|
17
|
+
|
|
18
|
+
Add optional official Tailwind static-utility compilation to inline styles. Consolidate raster rendering on @pixel.js/shotium, remove the Satori image toolkit, and align raster format contracts with actual PNG/JPEG/WebP results.
|
|
19
|
+
|
|
20
|
+
Reject cascade-dependent Tailwind values including unset, track the installed Tailwind version in the bundled theme provenance, and preserve both repository and upstream MIT attribution. Keep optional gallery dependency failures visible and document asynchronous Tailwind initialization.
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [badcc1f]
|
|
23
|
+
- @zhin.js/core@1.1.41
|
|
24
|
+
- @zhin.js/feature-kit@1.1.3
|
|
25
|
+
- @zhin.js/adapter@1.1.17
|
|
26
|
+
- @zhin.js/agent-feature@1.1.4
|
|
27
|
+
- @zhin.js/skill@1.1.4
|
|
28
|
+
- @zhin.js/tool@1.1.4
|
|
29
|
+
- @zhin.js/permission@1.1.4
|
|
30
|
+
|
|
3
31
|
## 1.1.5
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/lib/icqq-inbound.js
CHANGED
|
@@ -624,7 +624,8 @@ function mergeReplyFromSource(content, data) {
|
|
|
624
624
|
}
|
|
625
625
|
function quoteIdFromSegments(content) {
|
|
626
626
|
const reply = content.find((item) => item.type === 'reply');
|
|
627
|
-
const
|
|
627
|
+
const data = reply?.data;
|
|
628
|
+
const value = data?.message_id ?? data?.id;
|
|
628
629
|
return value == null || !String(value).trim() ? undefined : String(value).trim();
|
|
629
630
|
}
|
|
630
631
|
export function resolveInboundContent(data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-icqq",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Zhin.js ICQQ adapter — direct connection to @icqqjs/icqq",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"directory": "plugins/adapters/icqq"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@zhin.js/adapter": "1.1.
|
|
38
|
-
"@zhin.js/agent-feature": "1.1.
|
|
39
|
-
"@zhin.js/core": "1.1.
|
|
40
|
-
"@zhin.js/feature-kit": "1.1.
|
|
37
|
+
"@zhin.js/adapter": "1.1.17",
|
|
38
|
+
"@zhin.js/agent-feature": "1.1.4",
|
|
39
|
+
"@zhin.js/core": "1.1.42",
|
|
40
|
+
"@zhin.js/feature-kit": "1.1.3",
|
|
41
41
|
"@zhin.js/im-contract": "1.1.3",
|
|
42
42
|
"@zhin.js/logger": "1.1.1",
|
|
43
|
-
"@zhin.js/permission": "1.1.
|
|
44
|
-
"@zhin.js/skill": "1.1.
|
|
45
|
-
"@zhin.js/tool": "1.1.
|
|
43
|
+
"@zhin.js/permission": "1.1.4",
|
|
44
|
+
"@zhin.js/skill": "1.1.4",
|
|
45
|
+
"@zhin.js/tool": "1.1.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@icqqjs/icqq": "^1.12.2",
|
|
49
49
|
"zod": "^4.0.0",
|
|
50
|
-
"@zhin.js/adapter": "^1.1.
|
|
51
|
-
"@zhin.js/command": "^1.1.
|
|
52
|
-
"@zhin.js/core": "^1.1.
|
|
53
|
-
"@zhin.js/prompt-section": "^1.1.
|
|
54
|
-
"zhin.js": "^1.1.
|
|
50
|
+
"@zhin.js/adapter": "^1.1.17",
|
|
51
|
+
"@zhin.js/command": "^1.1.5",
|
|
52
|
+
"@zhin.js/core": "^1.1.42",
|
|
53
|
+
"@zhin.js/prompt-section": "^1.1.3",
|
|
54
|
+
"zhin.js": "^1.1.7"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"@icqqjs/icqq": {
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"typescript": "^6.0.3",
|
|
77
77
|
"vitest": "^4.1.10",
|
|
78
78
|
"zod": "^4.4.3",
|
|
79
|
-
"@zhin.js/prompt-section": "1.1.
|
|
80
|
-
"zhin.js": "1.1.
|
|
79
|
+
"@zhin.js/prompt-section": "1.1.3",
|
|
80
|
+
"zhin.js": "1.1.7"
|
|
81
81
|
},
|
|
82
82
|
"files": [
|
|
83
83
|
"adapters",
|
package/src/icqq-inbound.ts
CHANGED
|
@@ -781,7 +781,8 @@ function mergeReplyFromSource(
|
|
|
781
781
|
|
|
782
782
|
function quoteIdFromSegments(content: readonly MessageSegment[]): string | undefined {
|
|
783
783
|
const reply = content.find((item) => item.type === 'reply');
|
|
784
|
-
const
|
|
784
|
+
const data = reply?.data as Readonly<Record<string, unknown>> | undefined;
|
|
785
|
+
const value = data?.message_id ?? data?.id;
|
|
785
786
|
return value == null || !String(value).trim() ? undefined : String(value).trim();
|
|
786
787
|
}
|
|
787
788
|
|