@napuketto/loader 0.0.32 → 0.0.33

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.
@@ -1489,6 +1489,21 @@ async function createKernelServices(kernel, ctx, loginResult) {
1489
1489
  const groupApi = new kernel.GroupApi(session);
1490
1490
  const util = ctx.exports?.NodeQQNTWrapperUtil;
1491
1491
  const msgApi = new kernel.MsgApi(session, channel, util);
1492
+ try {
1493
+ await msgApi.setOnlineStatus({
1494
+ status: 10,
1495
+ extStatus: 0,
1496
+ batteryStatus: 0,
1497
+ customStatus: {
1498
+ faceId: "",
1499
+ wording: "",
1500
+ faceType: "1"
1501
+ }
1502
+ });
1503
+ log("bootstrap: 在线状态已注册(setStatus status=10)");
1504
+ } catch (statusErr) {
1505
+ log(`bootstrap: 在线状态注册失败(实时消息推送可能不可用): ${errMsg(statusErr)}`);
1506
+ }
1492
1507
  const friendApi = new kernel.FriendApi(session, { uidToUin: (uids) => groupApi.uidToUin(uids) });
1493
1508
  const groupChannel = new kernel.NTEventChannel("Group");
1494
1509
  const groupBridge = new kernel.GroupBridge(session, groupChannel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napuketto/loader",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "NapukettoQQ 引导组件:自建宿主(标准 Node + stub QQNT.dll)dlopen wrapper.node 并启动 kernel,不拉起 QQ / 不注入",
5
5
  "type": "module",
6
6
  "files": [