@zhin.js/adapter-icqq 1.1.5 → 1.1.6

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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @zhin.js/adapter-icqq
2
2
 
3
+ ## 1.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
9
+ 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.
10
+
11
+ 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.
12
+
13
+ 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.
14
+
15
+ - Updated dependencies [badcc1f]
16
+ - @zhin.js/core@1.1.41
17
+ - @zhin.js/feature-kit@1.1.3
18
+ - @zhin.js/adapter@1.1.17
19
+ - @zhin.js/agent-feature@1.1.4
20
+ - @zhin.js/skill@1.1.4
21
+ - @zhin.js/tool@1.1.4
22
+ - @zhin.js/permission@1.1.4
23
+
3
24
  ## 1.1.5
4
25
 
5
26
  ### Patch Changes
@@ -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 value = reply?.data?.message_id ?? reply?.data?.id;
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.5",
3
+ "version": "1.1.6",
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.16",
38
- "@zhin.js/agent-feature": "1.1.3",
39
- "@zhin.js/core": "1.1.40",
40
- "@zhin.js/feature-kit": "1.1.2",
37
+ "@zhin.js/adapter": "1.1.17",
38
+ "@zhin.js/agent-feature": "1.1.4",
39
+ "@zhin.js/core": "1.1.41",
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.3",
44
- "@zhin.js/skill": "1.1.3",
45
- "@zhin.js/tool": "1.1.3"
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.16",
51
- "@zhin.js/command": "^1.1.4",
52
- "@zhin.js/core": "^1.1.40",
53
- "@zhin.js/prompt-section": "^1.1.2",
54
- "zhin.js": "^1.1.5"
50
+ "@zhin.js/adapter": "^1.1.17",
51
+ "@zhin.js/command": "^1.1.5",
52
+ "@zhin.js/core": "^1.1.41",
53
+ "@zhin.js/prompt-section": "^1.1.3",
54
+ "zhin.js": "^1.1.6"
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.2",
80
- "zhin.js": "1.1.5"
79
+ "@zhin.js/prompt-section": "1.1.3",
80
+ "zhin.js": "1.1.6"
81
81
  },
82
82
  "files": [
83
83
  "adapters",
@@ -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 value = reply?.data?.message_id ?? reply?.data?.id;
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