node-karin 1.11.4 → 1.11.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,25 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.11.6](https://github.com/KarinJS/Karin/compare/core-v1.11.5...core-v1.11.6) (2025-10-13)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * improve OneBot adapter compatibility for sub_type=normal in private messages ([#555](https://github.com/KarinJS/Karin/issues/555)) ([bc46fa5](https://github.com/KarinJS/Karin/commit/bc46fa5526d34dc608787c07a318334cc8b5e5a1))
9
+ * 修复setGgroupHighlights的命名为setGroupHighlights ([#562](https://github.com/KarinJS/Karin/issues/562)) ([8f149a6](https://github.com/KarinJS/Karin/commit/8f149a6678eec390b3897be1a01de0af4abcc301))
10
+
11
+
12
+ ### 📝 Documentation
13
+
14
+ * 添加构建文档脚本 ([#559](https://github.com/KarinJS/Karin/issues/559)) ([8cca251](https://github.com/KarinJS/Karin/commit/8cca2516bb2711775431376bca7a44945f652be2))
15
+
16
+ ## [1.11.5](https://github.com/KarinJS/Karin/compare/core-v1.11.4...core-v1.11.5) (2025-10-08)
17
+
18
+
19
+ ### 🐛 Bug Fixes
20
+
21
+ * Display description text for checkbox component options ([#552](https://github.com/KarinJS/Karin/issues/552)) ([85eb323](https://github.com/KarinJS/Karin/commit/85eb323526dfc6188e3eaedafa1e61c6424eae39))
22
+
3
23
  ## [1.11.4](https://github.com/KarinJS/Karin/compare/core-v1.11.3...core-v1.11.4) (2025-10-08)
4
24
 
5
25
 
package/dist/index.d.ts CHANGED
@@ -7045,7 +7045,7 @@ declare interface ScreenshotOptions {
7045
7045
  /**
7046
7046
  * 图像的编码方式。
7047
7047
  *
7048
- * @deprecated 这是无效选项,强制性返回string<base64>
7048
+ * @deprecated 这是无效选项,强制性返回base64编码的字符串
7049
7049
  */
7050
7050
  encoding?: 'base64' | 'binary';
7051
7051
  /**
@@ -10799,7 +10799,9 @@ declare enum MessageSubType {
10799
10799
  /** 群临时会话 */
10800
10800
  Group = "group",
10801
10801
  /** 其他 */
10802
- Other = "other"
10802
+ Other = "other",
10803
+ /** 普通消息 (非标准,兼容某些实现) */
10804
+ Normal = "normal"
10803
10805
  }
10804
10806
  /**
10805
10807
  * 私聊消息事件类型
@@ -10810,7 +10812,7 @@ interface MessagePrivateEvent extends EventBase {
10810
10812
  /** 消息类型 */
10811
10813
  message_type: MessageType.Private;
10812
10814
  /** 消息子类型 */
10813
- sub_type: MessageSubType.Friend | MessageSubType.Other;
10815
+ sub_type: MessageSubType.Friend | MessageSubType.Other | MessageSubType.Normal;
10814
10816
  /** 消息 ID */
10815
10817
  message_id: number;
10816
10818
  /** 发送者 QQ 号 */
@@ -16494,7 +16496,7 @@ declare class AdapterOneBot<T extends OneBotType> extends AdapterBase {
16494
16496
  * @param messageId 群消息ID
16495
16497
  * @param create true为添加精华消息,false为删除精华消息 默认为true
16496
16498
  */
16497
- setGgroupHighlights(_: string, messageId: string, create: boolean): Promise<void>;
16499
+ setGroupHighlights(_: string, messageId: string, create: boolean): Promise<void>;
16498
16500
  PokeMember(_: string, __: string): Promise<void>;
16499
16501
  /**
16500
16502
  * 设置好友请求结果
package/dist/index.mjs CHANGED
@@ -16350,7 +16350,7 @@ var init_message5 = __esm({
16350
16350
  createMessage = async (event, bot) => {
16351
16351
  const time2 = event.time;
16352
16352
  if (event.message_type === "private") {
16353
- if (event.sub_type === "friend" || event.sub_type === "other") {
16353
+ if (event.sub_type === "friend" || event.sub_type === "other" || event.sub_type === "normal") {
16354
16354
  const userId = event.sender.user_id + "";
16355
16355
  const contact3 = contactFriend(userId);
16356
16356
  const sender2 = senderFriend(
@@ -18567,7 +18567,7 @@ var init_core = __esm({
18567
18567
  * @param messageId 群消息ID
18568
18568
  * @param create true为添加精华消息,false为删除精华消息 默认为true
18569
18569
  */
18570
- async setGgroupHighlights(_, messageId, create2) {
18570
+ async setGroupHighlights(_, messageId, create2) {
18571
18571
  if (create2) {
18572
18572
  await this._onebot.setEssenceMsg(+messageId);
18573
18573
  } else {
@@ -0,0 +1 @@
1
+ import{j as t}from"./vendor-react-W5gQf126.js";import{P as r}from"./components-Bnb0aZZx.js";import"./vendor-others-B7c2cg4c.js";import"./vendor-editor-BmqYP7lh.js";import"./vendor-ui-utils-Bb93SeY3.js";import"./vendor-heroui-B7gX19Ja.js";import"./page-dashboard-B5zDF_Ic.js";import"./utils-D4jz_VB_.js";import"./hooks-CCcR80FA.js";import"./vendor-visual-C6q6nRmW.js";const x=()=>t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx(r,{})});export{x as default};
@@ -1,2 +1,2 @@
1
- import{V as p}from"./vendor-react-W5gQf126.js";import{a5 as g}from"./components-PXvhEdJk.js";const u=async(e,a,n,t)=>{const{setIsLogModalOpen:c,setTaskId:i,setTaskLogs:o,setTaskName:f}=a;f("更新插件");const r=["开始创建更新任务...",`options: ${JSON.stringify(e)}`];o(r);try{const s=await g(e);if(s.success&&s.taskId)i(s.taskId),o([...r,`
1
+ import{V as p}from"./vendor-react-W5gQf126.js";import{a5 as g}from"./components-Bnb0aZZx.js";const u=async(e,a,n,t)=>{const{setIsLogModalOpen:c,setTaskId:i,setTaskLogs:o,setTaskName:f}=a;f("更新插件");const r=["开始创建更新任务...",`options: ${JSON.stringify(e)}`];o(r);try{const s=await g(e);if(s.success&&s.taskId)i(s.taskId),o([...r,`
2
2
  任务创建成功!`,`任务ID: ${s.taskId}`,"正在连接任务执行日志..."]),c(!0),typeof t=="function"&&t();else throw new Error(s.message||"未知错误")}catch(s){console.error("更新失败:",s),p.error(`更新失败: ${s.message}`)}};export{u as c};
@@ -14,21 +14,21 @@
14
14
  content="viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
15
15
  name="viewport" />
16
16
  <link href="/web/assets/ico/favicon-BoqZd694.ico" rel="icon" />
17
- <script type="module" crossorigin src="/web/assets/js/entry-5NUBpo7O.js"></script>
17
+ <script type="module" crossorigin src="/web/assets/js/entry-Cb8GauWy.js"></script>
18
18
  <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-editor-BmqYP7lh.js">
19
19
  <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-others-B7c2cg4c.js">
20
20
  <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-ui-utils-Bb93SeY3.js">
21
21
  <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-react-W5gQf126.js">
22
- <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-heroui-BOZloQyh.js">
23
- <link rel="modulepreload" crossorigin href="/web/assets/js/hooks-Bt4r9DmE.js">
22
+ <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-heroui-B7gX19Ja.js">
23
+ <link rel="modulepreload" crossorigin href="/web/assets/js/hooks-CCcR80FA.js">
24
24
  <link rel="modulepreload" crossorigin href="/web/assets/js/vendor-visual-C6q6nRmW.js">
25
- <link rel="modulepreload" crossorigin href="/web/assets/js/components-PXvhEdJk.js">
26
- <link rel="modulepreload" crossorigin href="/web/assets/js/utils-a84QdqOb.js">
27
- <link rel="modulepreload" crossorigin href="/web/assets/js/page-dashboard-BjLuiRij.js">
25
+ <link rel="modulepreload" crossorigin href="/web/assets/js/components-Bnb0aZZx.js">
26
+ <link rel="modulepreload" crossorigin href="/web/assets/js/utils-D4jz_VB_.js">
27
+ <link rel="modulepreload" crossorigin href="/web/assets/js/page-dashboard-B5zDF_Ic.js">
28
28
  <link rel="stylesheet" crossorigin href="/web/assets/css/vendor-editor-CFbL2ovg.css">
29
29
  <link rel="stylesheet" crossorigin href="/web/assets/css/vendor-others-ZgkIHsf0.css">
30
30
  <link rel="stylesheet" crossorigin href="/web/assets/css/components-ep7vm38G.css">
31
- <link rel="stylesheet" crossorigin href="/web/assets/css/index-C9_Eu3dq.css">
31
+ <link rel="stylesheet" crossorigin href="/web/assets/css/index-BosCGu1v.css">
32
32
  </head>
33
33
 
34
34
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.11.4",
3
+ "version": "1.11.6",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",
@@ -156,7 +156,8 @@
156
156
  "pub": "npm publish --access public",
157
157
  "pub-beta": "npm publish --access public --tag beta",
158
158
  "sort": "sort-package-json && sort-json tsconfig.json",
159
- "sync": "curl -X PUT \"https://registry-direct.npmmirror.com/-/package/node-karin/syncs\""
159
+ "sync": "curl -X PUT \"https://registry-direct.npmmirror.com/-/package/node-karin/syncs\"",
160
+ "docs:build": "typedoc"
160
161
  },
161
162
  "dependencies": {
162
163
  "art-template": "npm:@karinjs/art-template@1.1.0",
@@ -191,5 +192,5 @@
191
192
  "access": "public",
192
193
  "registry": "https://registry.npmjs.org"
193
194
  },
194
- "time": "2025-09-06T07:20:30.000Z"
195
+ "time": "2025-10-08T06:35:20.000Z"
195
196
  }
@@ -1 +0,0 @@
1
- import{j as t}from"./vendor-react-W5gQf126.js";import{P as r}from"./components-PXvhEdJk.js";import"./vendor-others-B7c2cg4c.js";import"./vendor-editor-BmqYP7lh.js";import"./vendor-ui-utils-Bb93SeY3.js";import"./vendor-heroui-BOZloQyh.js";import"./page-dashboard-BjLuiRij.js";import"./utils-a84QdqOb.js";import"./hooks-Bt4r9DmE.js";import"./vendor-visual-C6q6nRmW.js";const x=()=>t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx(r,{})});export{x as default};