@napuketto/kernel 0.16.2 → 0.16.3

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/dist/index.d.mts CHANGED
@@ -2752,6 +2752,8 @@ export declare function createLogger(opts?: LoggerOptions): pino.Logger;
2752
2752
  export declare const DEFAULT_DATA_ROOT_NAME = ".napuketto";
2753
2753
  /** 全局配置文件名。 */
2754
2754
  export declare const MAIN_CONFIG_FILE = "napuketto.toml";
2755
+ /** Check an actual write destination when the development launcher has set a boundary. */
2756
+ export declare function resolveSandboxWritePath(path: string, field: string): string;
2755
2757
  interface PathOptions {
2756
2758
  /** 显式数据根(cli `--data-dir` 传入,优先级最高)。 */
2757
2759
  dataRoot?: string | undefined;
@@ -2824,7 +2826,7 @@ export declare function sleep(ms: number): Promise<void>;
2824
2826
  export declare function electronProcessType(): string | undefined;
2825
2827
  /** `resolveQqUserDataRoot` 选项(平台覆盖供测试/联调,缺省按 `process.platform` 探测)。 */
2826
2828
  interface QqDataRootOptions {
2827
- /** 数据根(`NAPKETTO_DATA` / `--data-dir` 解析结果)。Linux 下 QQ 数据落 `<dataRoot>/nt_qq`。 */
2829
+ /** 数据根(`NAPKETTO_DATA` / `--data-dir` 解析结果)。Linux 和调试沙箱在此存放 QQ 数据。 */
2828
2830
  dataRoot?: string | undefined;
2829
2831
  /** 平台覆盖(缺省 `detectPlatformType()`)。 */
2830
2832
  platform?: PlatformType | undefined;
@@ -2841,7 +2843,8 @@ interface QqDataRootOptions {
2841
2843
  *
2842
2844
  * 平台分流(2026-11-09 Stage 1 E2E):Linux(KLINUX)自建宿主持有 QQ 数据,直接
2843
2845
  * 用数据根(`<数据根>/nt_qq`),不读 `$HOME`——否则换机器/换用户读不到历史账号,
2844
- * 还会把 QQ 崩溃目录等写进用户主目录。Windows 保持官方 API + 默认位置兜底。
2846
+ * 还会把 QQ 崩溃目录等写进用户主目录。Windows 调试沙箱也使用传入的数据根,
2847
+ * 其余 Windows 场景走官方 API + 默认位置兜底。
2845
2848
  */
2846
2849
  export declare function resolveQqUserDataRoot(exports: WrapperNodeApi, opts?: QqDataRootOptions): string | null;
2847
2850
  /** QQ 版本信息(登录握手用)。 */
@@ -2919,7 +2922,7 @@ interface BootEnv {
2919
2922
  qqVersion?: string | undefined;
2920
2923
  /** 用户数据目录(cfgDir 的父级,用于 desktopPathConfig)。 */
2921
2924
  dataDir?: string | undefined;
2922
- /** 数据根(Linux 下 QQ 数据根 = `<dataRoot>/nt_qq`;Windows 忽略)。 */
2925
+ /** 数据根(Linux 和调试沙箱下 QQ 数据存放在 `<dataRoot>/nt_qq`)。 */
2923
2926
  dataRoot?: string | undefined;
2924
2927
  /** 账号 uin(可选,提供则一步 init+start)。 */
2925
2928
  selfUin?: string | undefined;
@@ -3594,5 +3597,4 @@ interface QqVersionInfo {
3594
3597
  }
3595
3598
  /** @deprecated 使用 `QqVersionInfo`(缩写大小写统一为 `Qq`)。 */
3596
3599
  type QQVersionInfo = QqVersionInfo;
3597
- export { type BootEnv, type BuddyCacheEventChannel, type BuddyCacheListener, type BuddyCacheOptions, type BuddyCategory, type BuddyCoreInfo, type BuddyEventChannel, type BuddyListEntry, type BuddyListener, type BuddyProfileLikeResult, type BuddyReq, type CanonicalElement, type ConfigFormat, type ConfigOptions, type ConfigPathOptions, type ConfigSchema, type ConsoleFormatStreamOptions, type CoreContext, type CoreContextOptions, type CoreLoginOptions, type DesktopPathConfig, type DeviceInfo, type DoubtBuddyReq, type DoubtFriendRequestInfo, type EnginInitDesktopConfig, type EssenceAddedItem, type EssenceCacheEntry, type EssenceDiffResult, type EssenceListSyncDeps, type EssenceMsgItem, type FaceElement, type FileElement, type FlashTransferFileSet, type FlashTransferFileStatus, type FlashTransferPermission, type FlashTransferTarget, type FlashTransferTaskInfo, type FlashTransferUploadListener, type FlashTransferUploadOptions, type FlashTransferUploadResult, type ForceFetchClientKeyRetType, type Friend, type FriendApiOptions, type FriendCategory, type GeneralCallResult, type GetFileListParam, type GrayTipElement, type GrayTipRevokeElement, type Group, type GroupBulletin, type GroupCacheOptions, type GroupDetailInfo, type GroupEventChannel, type GroupFileItemInfo, type GroupFileListItem, type GroupFileSystemInfo, type GroupFolderInfo, type GroupHonorWebInfo, type GroupListener, type GroupMember, type GroupMemberListChange, type GroupNotify, type GroupRemainAtTimes, type GroupSpaceInfo, type HonorListItem, type IKernelLoginListener, type KernelErrorCode, type KernelLoginListener, type KernelRuntime, type KernelRuntimeOptions, type KickMemberInfo, type KickMemberV2Req, type ListenerEvents, type ListenerRecordEvent, type ListenerRecordingResult, type LogConfig, type LogEnvSource, type LogFileConfig, type LogFormat, type LogLevel, type LogModuleName, type LoggerOptions, type LoginAccountInfo, type LoginEventChannel, type LoginListItem, type LoginListener, type LoginProgress, type LoginResult, type LoginState, type MsgEventChannel, type MsgListener, type MsgReadReportItem, type MsgReceipt, type NapukettoCoreOptions, type NodeIDependsAdapter, type NodeIDispatcherAdapter, type NodeIGlobalAdapter, type NodeIKernelBuddyService, type NodeIKernelGroupService, type NodeIKernelLoginService, type NodeIKernelMsgService, type NodeIKernelProfileLikeService, type NodeIKernelProfileService, type NodeIKernelRecentContactService, type NodeIKernelRichMediaService, type NodeIKernelSessionListener, type NodeIKernelTicketService, type NodeIQQNTStartupSessionWrapper, type NodeIQQNTWrapperEngine, type NodeIQQNTWrapperSession, type NodeQQNTWrapperUtil, type NudgeParam, type PathOptions, type Peer, type PicElement, type PinnedContact, type PlatformType, type PttElement, type QQVersionContext, type QQVersionInfo, type QqDataRootOptions, type QqVersionContext, type QqVersionInfo, type QrCodeData, type QuickLoginOptions, type RDeliveryConfig, type RawElement, type RawMessage, type RecentContact, type RecentContactEventChannel, type RecentContactFetchParam, type RecentContactListChanged, type RecentContactListener, type ReplyElement, type SelfInfo, type SendMessageElement, type SessionConfigOptions, type SessionListenerOptions, type ShutUpGroupMember, type StartNapukettoOptions, type StrangerInfo, type TextElement, type TimestampMode, type TipAioOpGrayTipElement, type TipGroupElement, type UserDetailInfoByUin, type VendorType, type VideoElement, type WrapperContext, type WrapperNodeApi, type WrapperSessionInitConfig, createSessionListener as createLifecycleSessionListener };
3598
- //# sourceMappingURL=index.d.mts.map
3600
+ export { type BootEnv, type BuddyCacheEventChannel, type BuddyCacheListener, type BuddyCacheOptions, type BuddyCategory, type BuddyCoreInfo, type BuddyEventChannel, type BuddyListEntry, type BuddyListener, type BuddyProfileLikeResult, type BuddyReq, type CanonicalElement, type ConfigFormat, type ConfigOptions, type ConfigPathOptions, type ConfigSchema, type ConsoleFormatStreamOptions, type CoreContext, type CoreContextOptions, type CoreLoginOptions, type DesktopPathConfig, type DeviceInfo, type DoubtBuddyReq, type DoubtFriendRequestInfo, type EnginInitDesktopConfig, type EssenceAddedItem, type EssenceCacheEntry, type EssenceDiffResult, type EssenceListSyncDeps, type EssenceMsgItem, type FaceElement, type FileElement, type FlashTransferFileSet, type FlashTransferFileStatus, type FlashTransferPermission, type FlashTransferTarget, type FlashTransferTaskInfo, type FlashTransferUploadListener, type FlashTransferUploadOptions, type FlashTransferUploadResult, type ForceFetchClientKeyRetType, type Friend, type FriendApiOptions, type FriendCategory, type GeneralCallResult, type GetFileListParam, type GrayTipElement, type GrayTipRevokeElement, type Group, type GroupBulletin, type GroupCacheOptions, type GroupDetailInfo, type GroupEventChannel, type GroupFileItemInfo, type GroupFileListItem, type GroupFileSystemInfo, type GroupFolderInfo, type GroupHonorWebInfo, type GroupListener, type GroupMember, type GroupMemberListChange, type GroupNotify, type GroupRemainAtTimes, type GroupSpaceInfo, type HonorListItem, type IKernelLoginListener, type KernelErrorCode, type KernelLoginListener, type KernelRuntime, type KernelRuntimeOptions, type KickMemberInfo, type KickMemberV2Req, type ListenerEvents, type ListenerRecordEvent, type ListenerRecordingResult, type LogConfig, type LogEnvSource, type LogFileConfig, type LogFormat, type LogLevel, type LogModuleName, type LoggerOptions, type LoginAccountInfo, type LoginEventChannel, type LoginListItem, type LoginListener, type LoginProgress, type LoginResult, type LoginState, type MsgEventChannel, type MsgListener, type MsgReadReportItem, type MsgReceipt, type NapukettoCoreOptions, type NodeIDependsAdapter, type NodeIDispatcherAdapter, type NodeIGlobalAdapter, type NodeIKernelBuddyService, type NodeIKernelGroupService, type NodeIKernelLoginService, type NodeIKernelMsgService, type NodeIKernelProfileLikeService, type NodeIKernelProfileService, type NodeIKernelRecentContactService, type NodeIKernelRichMediaService, type NodeIKernelSessionListener, type NodeIKernelTicketService, type NodeIQQNTStartupSessionWrapper, type NodeIQQNTWrapperEngine, type NodeIQQNTWrapperSession, type NodeQQNTWrapperUtil, type NudgeParam, type PathOptions, type Peer, type PicElement, type PinnedContact, type PlatformType, type PttElement, type QQVersionContext, type QQVersionInfo, type QqDataRootOptions, type QqVersionContext, type QqVersionInfo, type QrCodeData, type QuickLoginOptions, type RDeliveryConfig, type RawElement, type RawMessage, type RecentContact, type RecentContactEventChannel, type RecentContactFetchParam, type RecentContactListChanged, type RecentContactListener, type ReplyElement, type SelfInfo, type SendMessageElement, type SessionConfigOptions, type SessionListenerOptions, type ShutUpGroupMember, type StartNapukettoOptions, type StrangerInfo, type TextElement, type TimestampMode, type TipAioOpGrayTipElement, type TipGroupElement, type UserDetailInfoByUin, type VendorType, type VideoElement, type WrapperContext, type WrapperNodeApi, type WrapperSessionInitConfig, createSessionListener as createLifecycleSessionListener };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createHash, randomUUID } from "node:crypto";
2
- import { appendFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
2
+ import { appendFileSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
3
3
  import { open, readFile, rename, rm, stat } from "node:fs/promises";
4
- import { basename, dirname, extname, join, resolve } from "node:path";
4
+ import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
5
5
  import process from "node:process";
6
6
  import { parse, stringify } from "smol-toml";
7
7
  import pino from "pino";
@@ -780,107 +780,22 @@ function redactLogLine(chunk) {
780
780
  throw kernelError("日志结构化脱敏失败", "INVALID_STATE");
781
781
  }
782
782
  }
783
- // src/infra/logger.ts
784
- /**
785
- * pino 日志封装(ADR-007)
786
- *
787
- * - console(pretty 可读输出 / single-line / json 结构化)+ 可选文件双目的地
788
- * - 统一 level 控制(控制台与文件可分别设级,2026-10-25 日志可配置化)
789
- * - 内置 redact(token / 票据等敏感字段不打日志),可追加
790
- * - 无全局单例(ADR-015 推论):每进程实例化一份,由装配层持有
791
- * - 三种控制台格式全部由 log-format 自渲染(2026-11-03 起不再依赖 pino-pretty)
792
- *
793
- * 时间源(2026-10-25 修复):QQNT 原生层会在 onRecvSysMsg 回调窗口内篡改进程
794
- * Date(实测记录时间冻结为假值、回调外恢复),故时间戳统一取
795
- * performance.timeOrigin + performance.now() 单调派生墙钟,不受 Date 篡改影响。
796
- */
797
- /** 级别数值序(求多目的地最低级别用)。 */
798
- const LEVEL_ORDER = [
799
- "trace",
800
- "debug",
801
- "info",
802
- "warn",
803
- "error",
804
- "fatal",
805
- "silent"
806
- ];
807
- /** 取两级别中更低(更宽容)的一个。 */
808
- function minLevel(a, b) {
809
- return LEVEL_ORDER.indexOf(a) <= LEVEL_ORDER.indexOf(b) ? a : b;
810
- }
811
- /** 单调墙钟毫秒(timeOrigin 为进程启动真实 Unix 时间,不受进程内 Date 篡改影响)。 */
812
- function wallMs() {
813
- return performance.timeOrigin + performance.now();
814
- }
815
- function toSingle(streams) {
816
- const [only] = streams;
817
- if (only === void 0) throw kernelError("logger 内部错误:目的地列表为空", "UNKNOWN");
818
- return only.stream;
819
- }
820
- /** 控制台目的地(console=false 返回 null)。 */
821
- function buildConsoleTarget(opts, render, destination) {
822
- if ((opts.console ?? true) !== true) return null;
823
- return {
824
- stream: createConsoleFormatStream({
825
- ...render,
826
- destination
827
- }),
828
- level: opts.level ?? "info"
829
- };
830
- }
831
- /** 文件目的地(未配置 file 返回 null;同步写入,父目录自动创建)。 */
832
- function buildFileTarget(opts, level) {
833
- const { file } = opts;
834
- if (file === void 0) return null;
835
- mkdirSync(dirname(file), { recursive: true });
836
- return {
837
- stream: pino.destination({
838
- dest: file,
839
- sync: true
840
- }),
841
- level
842
- };
843
- }
844
- /** 记录产生门槛 = 全部目的地中最低级别(multistream 再按各自级别分发过滤)。 */
845
- function gateLevel(targets) {
846
- let gate = "fatal";
847
- for (const target of targets) gate = minLevel(gate, target.level);
848
- return gate;
783
+ // src/infra/path-boundary.ts
784
+ /** Resolve existing symlinks and junctions, including those above a missing destination. */
785
+ function resolveExistingPath(path) {
786
+ let existing = resolve(path);
787
+ const missing = [];
788
+ while (lstatSync(existing, { throwIfNoEntry: false }) === void 0) {
789
+ const parent = dirname(existing);
790
+ if (parent === existing) throw new Error(`找不到路径的真实祖先: ${path}`);
791
+ missing.push(basename(existing));
792
+ existing = parent;
793
+ }
794
+ return join(realpathSync(existing), ...missing.reverse());
849
795
  }
850
- /** 单目的地直连(避免 multistream 包装),多目的地走 multistream。 */
851
- function mergeTargets(targets) {
852
- return targets.length === 1 ? toSingle(targets) : pino.multistream(targets);
853
- }
854
- /**
855
- * 创建 pino logger:console(pretty/single-line/json)+ 可选文件,统一 level / redact。
856
- *
857
- * 文件目的地用同步写入(`sync: true`):日志量级下性能可接受,且进程退出不丢日志,
858
- * 无需额外的 flush 步骤(对比异步 SonicBoom 的 flushSync 时序陷阱)。
859
- * 文件目的地恒为 JSON 行(数值时间戳),格式/时间戳渲染仅作用于控制台目的地。
860
- */
861
- function createLogger(opts = {}) {
862
- const consoleLevel = opts.level ?? "info";
863
- const destination = opts.destination ?? process.stdout;
864
- const isTty = destination.isTTY === true;
865
- const format = opts.format ?? (isTty ? "pretty" : "single-line");
866
- const targets = [buildConsoleTarget(opts, {
867
- format,
868
- timestamp: opts.timestamp ?? "local",
869
- colorize: opts.colorize ?? (format === "pretty" && isTty)
870
- }, destination), buildFileTarget(opts, opts.fileLevel ?? consoleLevel)].filter((target) => target !== null);
871
- if (targets.length === 0) throw kernelError("logger 至少需要一个输出目标:console 或 file", "INVALID_PARAM");
872
- const pinoOptions = {
873
- level: gateLevel(targets),
874
- redact: opts.redact ?? [],
875
- serializers: { err: pino.stdSerializers.errWithCause },
876
- hooks: { streamWrite: redactLogLine },
877
- timestamp: () => `,"time":${wallMs()}`,
878
- ...opts.base === void 0 ? {} : { base: {
879
- pid: process.pid,
880
- ...opts.base
881
- } }
882
- };
883
- return pino(pinoOptions, mergeTargets(targets));
796
+ function isPathWithin(root, path) {
797
+ const fromRoot = relative(root, path);
798
+ return fromRoot !== ".." && !fromRoot.startsWith(`..${sep}`) && !isAbsolute(fromRoot);
884
799
  }
885
800
  // src/infra/paths.ts
886
801
  /**
@@ -904,6 +819,21 @@ function createLogger(opts = {}) {
904
819
  const DEFAULT_DATA_ROOT_NAME = ".napuketto";
905
820
  /** 全局配置文件名。 */
906
821
  const MAIN_CONFIG_FILE = "napuketto.toml";
822
+ /** Check an actual write destination when the development launcher has set a boundary. */
823
+ function resolveSandboxWritePath(path, field) {
824
+ const sandbox = process.env["NAPUKETTO_SANDBOX_ROOT"];
825
+ if (!sandbox) return path;
826
+ const target = resolve(path);
827
+ if (!isPathWithin(sandbox, target)) throw configError(`${field} 必须位于调试沙箱内: ${target}`);
828
+ let realTarget;
829
+ try {
830
+ realTarget = resolveExistingPath(target);
831
+ } catch (err) {
832
+ throw configError(`无法解析沙箱内的 ${field}: ${target}`, { cause: err });
833
+ }
834
+ if (!isPathWithin(sandbox, realTarget)) throw configError(`${field} 必须位于调试沙箱内: ${target}`);
835
+ return target;
836
+ }
907
837
  /** `~` 前缀展开为用户主目录(跨平台配置文件写法 `dataDir = "~/.napuketto"`)。 */
908
838
  function expandTilde(p) {
909
839
  if (p === "~") return homedir();
@@ -926,7 +856,9 @@ function resolveProjectRoot() {
926
856
  */
927
857
  function resolveDataRoot(dataRoot) {
928
858
  const explicit = dataRoot ?? process.env["NAPUKETTO_DATA"] ?? process.env["NAPKETTO_DATA"];
929
- if (explicit !== void 0 && explicit !== "") return resolve(expandTilde(explicit));
859
+ if (explicit !== void 0 && explicit !== "") return resolveSandboxWritePath(resolve(expandTilde(explicit)), "数据目录");
860
+ const sandbox = process.env["NAPUKETTO_SANDBOX_ROOT"];
861
+ if (sandbox) return resolveSandboxWritePath(join(sandbox, DEFAULT_DATA_ROOT_NAME), "数据目录");
930
862
  const projectRoot = resolveProjectRoot();
931
863
  if (projectRoot !== void 0) return join(projectRoot, DEFAULT_DATA_ROOT_NAME);
932
864
  return join(homedir(), DEFAULT_DATA_ROOT_NAME);
@@ -954,7 +886,9 @@ function findProjectRoot(startDir, marker) {
954
886
  */
955
887
  function resolveConfigPath(opts = {}) {
956
888
  const explicit = process.env["NAPUKETTO_CONFIG"] ?? process.env["NAPKETTO_CONFIG"];
957
- if (explicit !== void 0 && explicit !== "") return resolve(explicit);
889
+ if (explicit !== void 0 && explicit !== "") return resolveSandboxWritePath(resolve(explicit), "配置文件");
890
+ const sandbox = process.env["NAPUKETTO_SANDBOX_ROOT"];
891
+ if (sandbox) return resolveSandboxWritePath(join(sandbox, MAIN_CONFIG_FILE), "配置文件");
958
892
  const projectRoot = resolveProjectRoot();
959
893
  if (projectRoot !== void 0) return join(projectRoot, MAIN_CONFIG_FILE);
960
894
  return join(opts.dataRoot ?? resolveDataRoot(), MAIN_CONFIG_FILE);
@@ -1012,6 +946,108 @@ var PathWrapper = class {
1012
946
  });
1013
947
  }
1014
948
  };
949
+ // src/infra/logger.ts
950
+ /**
951
+ * pino 日志封装(ADR-007)
952
+ *
953
+ * - console(pretty 可读输出 / single-line / json 结构化)+ 可选文件双目的地
954
+ * - 统一 level 控制(控制台与文件可分别设级,2026-10-25 日志可配置化)
955
+ * - 内置 redact(token / 票据等敏感字段不打日志),可追加
956
+ * - 无全局单例(ADR-015 推论):每进程实例化一份,由装配层持有
957
+ * - 三种控制台格式全部由 log-format 自渲染(2026-11-03 起不再依赖 pino-pretty)
958
+ *
959
+ * 时间源(2026-10-25 修复):QQNT 原生层会在 onRecvSysMsg 回调窗口内篡改进程
960
+ * Date(实测记录时间冻结为假值、回调外恢复),故时间戳统一取
961
+ * performance.timeOrigin + performance.now() 单调派生墙钟,不受 Date 篡改影响。
962
+ */
963
+ /** 级别数值序(求多目的地最低级别用)。 */
964
+ const LEVEL_ORDER = [
965
+ "trace",
966
+ "debug",
967
+ "info",
968
+ "warn",
969
+ "error",
970
+ "fatal",
971
+ "silent"
972
+ ];
973
+ /** 取两级别中更低(更宽容)的一个。 */
974
+ function minLevel(a, b) {
975
+ return LEVEL_ORDER.indexOf(a) <= LEVEL_ORDER.indexOf(b) ? a : b;
976
+ }
977
+ /** 单调墙钟毫秒(timeOrigin 为进程启动真实 Unix 时间,不受进程内 Date 篡改影响)。 */
978
+ function wallMs() {
979
+ return performance.timeOrigin + performance.now();
980
+ }
981
+ function toSingle(streams) {
982
+ const [only] = streams;
983
+ if (only === void 0) throw kernelError("logger 内部错误:目的地列表为空", "UNKNOWN");
984
+ return only.stream;
985
+ }
986
+ /** 控制台目的地(console=false 返回 null)。 */
987
+ function buildConsoleTarget(opts, render, destination) {
988
+ if ((opts.console ?? true) !== true) return null;
989
+ return {
990
+ stream: createConsoleFormatStream({
991
+ ...render,
992
+ destination
993
+ }),
994
+ level: opts.level ?? "info"
995
+ };
996
+ }
997
+ /** 文件目的地(未配置 file 返回 null;同步写入,父目录自动创建)。 */
998
+ function buildFileTarget(opts, level) {
999
+ if (opts.file === void 0) return null;
1000
+ const file = resolveSandboxWritePath(opts.file, "log.file.path");
1001
+ mkdirSync(dirname(file), { recursive: true });
1002
+ return {
1003
+ stream: pino.destination({
1004
+ dest: file,
1005
+ sync: true
1006
+ }),
1007
+ level
1008
+ };
1009
+ }
1010
+ /** 记录产生门槛 = 全部目的地中最低级别(multistream 再按各自级别分发过滤)。 */
1011
+ function gateLevel(targets) {
1012
+ let gate = "fatal";
1013
+ for (const target of targets) gate = minLevel(gate, target.level);
1014
+ return gate;
1015
+ }
1016
+ /** 单目的地直连(避免 multistream 包装),多目的地走 multistream。 */
1017
+ function mergeTargets(targets) {
1018
+ return targets.length === 1 ? toSingle(targets) : pino.multistream(targets);
1019
+ }
1020
+ /**
1021
+ * 创建 pino logger:console(pretty/single-line/json)+ 可选文件,统一 level / redact。
1022
+ *
1023
+ * 文件目的地用同步写入(`sync: true`):日志量级下性能可接受,且进程退出不丢日志,
1024
+ * 无需额外的 flush 步骤(对比异步 SonicBoom 的 flushSync 时序陷阱)。
1025
+ * 文件目的地恒为 JSON 行(数值时间戳),格式/时间戳渲染仅作用于控制台目的地。
1026
+ */
1027
+ function createLogger(opts = {}) {
1028
+ const consoleLevel = opts.level ?? "info";
1029
+ const destination = opts.destination ?? process.stdout;
1030
+ const isTty = destination.isTTY === true;
1031
+ const format = opts.format ?? (isTty ? "pretty" : "single-line");
1032
+ const targets = [buildConsoleTarget(opts, {
1033
+ format,
1034
+ timestamp: opts.timestamp ?? "local",
1035
+ colorize: opts.colorize ?? (format === "pretty" && isTty)
1036
+ }, destination), buildFileTarget(opts, opts.fileLevel ?? consoleLevel)].filter((target) => target !== null);
1037
+ if (targets.length === 0) throw kernelError("logger 至少需要一个输出目标:console 或 file", "INVALID_PARAM");
1038
+ const pinoOptions = {
1039
+ level: gateLevel(targets),
1040
+ redact: opts.redact ?? [],
1041
+ serializers: { err: pino.stdSerializers.errWithCause },
1042
+ hooks: { streamWrite: redactLogLine },
1043
+ timestamp: () => `,"time":${wallMs()}`,
1044
+ ...opts.base === void 0 ? {} : { base: {
1045
+ pid: process.pid,
1046
+ ...opts.base
1047
+ } }
1048
+ };
1049
+ return pino(pinoOptions, mergeTargets(targets));
1050
+ }
1015
1051
  // src/infra/wait.ts
1016
1052
  /**
1017
1053
  * 等待/延迟工具(通用底层原语,2026-08-08 克隆合并;2026-11 下沉至 infra)
@@ -5511,9 +5547,15 @@ function electronProcessType() {
5511
5547
  *
5512
5548
  * 平台分流(2026-11-09 Stage 1 E2E):Linux(KLINUX)自建宿主持有 QQ 数据,直接
5513
5549
  * 用数据根(`<数据根>/nt_qq`),不读 `$HOME`——否则换机器/换用户读不到历史账号,
5514
- * 还会把 QQ 崩溃目录等写进用户主目录。Windows 保持官方 API + 默认位置兜底。
5550
+ * 还会把 QQ 崩溃目录等写进用户主目录。Windows 调试沙箱也使用传入的数据根,
5551
+ * 其余 Windows 场景走官方 API + 默认位置兜底。
5515
5552
  */
5516
5553
  function resolveQqUserDataRoot(exports, opts = {}) {
5554
+ if (process.env["NAPUKETTO_SANDBOX_ROOT"]) {
5555
+ const dataRoot = resolveDataRoot(opts.dataRoot || process.env["NAPUKETTO_DATA_ROOT"] || process.env["NAPUTO_DATA_ROOT"]);
5556
+ resolveSandboxWritePath(resolveQqGlobalPath(dataRoot), "QQ 数据目录");
5557
+ return dataRoot;
5558
+ }
5517
5559
  if ((opts.platform ?? detectPlatformType()) === PlatformType.KLINUX) {
5518
5560
  const dataRoot = opts.dataRoot ?? process.env["NAPUKETTO_DATA_ROOT"] ?? process.env["NAPUTO_DATA_ROOT"] ?? process.env["NAPUKETTO_DATA"] ?? process.env["NAPKETTO_DATA"] ?? "";
5519
5561
  if (dataRoot !== "") return dataRoot;
@@ -5695,7 +5737,7 @@ function captureSession(ctx, qqSession) {
5695
5737
  * (P2-1 实测 2026-08-06;getLoginList 空)。QQ 主进程(V1)QQ 自己已配置
5696
5738
  * engine,无需解析。
5697
5739
  *
5698
- * `dataRoot` 仅 Linux 生效(`resolveQqUserDataRoot` 平台分流):loader 由
5740
+ * `dataRoot` 在 Linux 和调试沙箱生效(`resolveQqUserDataRoot` 平台分流):loader 由
5699
5741
  * `NAPUTO_DATA_ROOT` 注入,QQ 数据固定落 `<数据根>/nt_qq/global`。
5700
5742
  */
5701
5743
  function resolveBootQqGlobalPath(ctx, dataRoot) {
@@ -6971,6 +7013,4 @@ function listQQVersions(installDir) {
6971
7013
  return statSync(full).isDirectory() && existsSync(join(full, "resources", "app", "wrapper.node"));
6972
7014
  }).sort().reverse();
6973
7015
  }
6974
- export { BuddyCache, CONFIG_FILE_MODE, ChatType, ConfigBase, ConfigError, DEFAULT_DATA_ROOT_NAME, DependsAdapter, DispatcherAdapter, EXIT_CONFIG_INVALID, ElementType, EssenceListSync, FlashTransferApi, FriendApi, FriendBridge, GlobalAdapter, GrayTipSubType, GroupApi, GroupBridge, GroupCache, GroupListUpdateType, GroupMemberDataSource, GroupNotifyApi, GroupNotifyMsgStatus, GroupNotifyMsgType, KERNEL_ERROR_CODES, KernelError, LoginBridge, MAIN_CONFIG_FILE, MsgApi, MsgBridge, NTEventChannel, NTGroupMemberRole, NTGroupRequestOperateTypes, NapukettoCore, PathWrapper, ProfileApi, ProfileLikeApi, QrLoginSession, RecentContactApi, RecentContactBridge, RichMediaApi, TicketApi, TipGroupElementType, VIDEO_THUMB_KEY, WebApi, WebHonorType, activateO3MiscService, buildEngineConfig, buildLoginConfig, buildSessionConfig, configError, createConsoleFormatStream, createCoreContext, createKernelRuntime, createSessionListener as createLifecycleSessionListener, createSessionListener, createLogger, createLoginListener, createRecordingListener, createSession, createWrapper, diffEssenceList, dlopenWrapper, electronProcessType, errorMessage, getErrorCode, getErrorMessage, getExistingSession, getMainSession, getOwnProp, hasBooleanProp, hasCallableProp, hasFunctionProp, hasMethodSurface, hasNumberProp, hasStaticCreator, hasStaticGetter, hasStringProp, initAndStartSession, initEngine, initSession, isCallable, isKernelError, isPromiseLike, isRecord, kernelError, listLoginAccounts, listQQVersions, narrowBuddyCategories, narrowEssenceGroupArg, parseAppidFromMajor, parseJsonWithGuard, parseLogConfig, parseToml, probeRuntime, quickLogin, readMachineGuid, requireKernelService, resolveAppidQua, resolveConfigPath, resolveDataRoot, resolveQQVersion, resolveQqGlobalPath, resolveQqUserDataRoot, resolveWrapperPath, sleep, startListenerRecording, startNapuketto, startSession, stringifyToml, toCanonicalElements, toSendElements, waitFor, waitForNetworkConnection, waitSessionReady };
6975
-
6976
- //# sourceMappingURL=index.mjs.map
7016
+ export { BuddyCache, CONFIG_FILE_MODE, ChatType, ConfigBase, ConfigError, DEFAULT_DATA_ROOT_NAME, DependsAdapter, DispatcherAdapter, EXIT_CONFIG_INVALID, ElementType, EssenceListSync, FlashTransferApi, FriendApi, FriendBridge, GlobalAdapter, GrayTipSubType, GroupApi, GroupBridge, GroupCache, GroupListUpdateType, GroupMemberDataSource, GroupNotifyApi, GroupNotifyMsgStatus, GroupNotifyMsgType, KERNEL_ERROR_CODES, KernelError, LoginBridge, MAIN_CONFIG_FILE, MsgApi, MsgBridge, NTEventChannel, NTGroupMemberRole, NTGroupRequestOperateTypes, NapukettoCore, PathWrapper, ProfileApi, ProfileLikeApi, QrLoginSession, RecentContactApi, RecentContactBridge, RichMediaApi, TicketApi, TipGroupElementType, VIDEO_THUMB_KEY, WebApi, WebHonorType, activateO3MiscService, buildEngineConfig, buildLoginConfig, buildSessionConfig, configError, createConsoleFormatStream, createCoreContext, createKernelRuntime, createSessionListener as createLifecycleSessionListener, createSessionListener, createLogger, createLoginListener, createRecordingListener, createSession, createWrapper, diffEssenceList, dlopenWrapper, electronProcessType, errorMessage, getErrorCode, getErrorMessage, getExistingSession, getMainSession, getOwnProp, hasBooleanProp, hasCallableProp, hasFunctionProp, hasMethodSurface, hasNumberProp, hasStaticCreator, hasStaticGetter, hasStringProp, initAndStartSession, initEngine, initSession, isCallable, isKernelError, isPromiseLike, isRecord, kernelError, listLoginAccounts, listQQVersions, narrowBuddyCategories, narrowEssenceGroupArg, parseAppidFromMajor, parseJsonWithGuard, parseLogConfig, parseToml, probeRuntime, quickLogin, readMachineGuid, requireKernelService, resolveAppidQua, resolveConfigPath, resolveDataRoot, resolveQQVersion, resolveQqGlobalPath, resolveQqUserDataRoot, resolveSandboxWritePath, resolveWrapperPath, sleep, startListenerRecording, startNapuketto, startSession, stringifyToml, toCanonicalElements, toSendElements, waitFor, waitForNetworkConnection, waitSessionReady };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@napuketto/kernel",
4
- "version": "0.16.2",
4
+ "version": "0.16.3",
5
5
  "type": "module",
6
6
  "description": "Core runtime kernel of NapukettoQQ",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":["PlatformTypeValue"],"sources":["../src/codec/message-element.ts","../src/types/entities.ts","../src/types/listeners/buddy.ts","../src/types/services/msg-service.ts","../src/types/services/buddy-service.ts","../src/types/services/flash-transfer-service.ts","../src/types/services/group-service.ts","../src/types/services/profile-like-service.ts","../src/types/services/profile-service.ts","../src/types/services/recent-contact-service.ts","../src/types/services/richmedia-service.ts","../src/types/services/ticket-service.ts","../src/types/listeners/group.ts","../src/types/listeners/login.ts","../src/types/listeners/msg.ts","../src/types/listeners/recent-contact.ts","../src/types/message-element.ts","../src/types/wrapper.ts","../src/apis/flash-transfer.ts","../src/apis/friend.ts","../src/apis/group.ts","../src/apis/group-notify.ts","../src/event-channel.ts","../src/bridge/friend-bridge.ts","../src/bridge/group-bridge.ts","../src/bridge/login-bridge.ts","../src/bridge/msg-bridge.ts","../src/bridge/recent-contact-bridge.ts","../src/apis/msg.ts","../src/apis/stranger-info.ts","../src/apis/profile.ts","../src/apis/profile-like.ts","../src/apis/recent-contact.ts","../src/apis/richmedia.ts","../src/apis/ticket.ts","../src/apis/webapi.ts","../src/cache/buddy-cache.ts","../src/cache/essence-cache.ts","../src/cache/group-cache.ts","../src/infra/config.ts","../src/infra/errors.ts","../src/infra/log-config.ts","../src/infra/log-format.ts","../src/infra/logger.ts","../src/infra/paths.ts","../src/infra/wait.ts","../src/wrapper/wrapper-loader.ts","../src/login/login-connect.ts","../src/login/lifecycle.ts","../src/login/login.ts","../src/context.ts","../src/runtime.ts","../src/core.ts","../src/utils/type-guards.ts","../src/wrapper/probe/probe.ts","../src/wrapper/probe/probe-listener.ts","../src/wrapper/qq-data-path.ts","../src/wrapper/session-resolver.ts","../src/wrapper/wrapper-adapters.ts","../src/wrapper/wrapper-config.ts","../src/wrapper/wrapper-version.ts"],"mappings":";;;;;;;;;;wBA+QgB,oBAAoB,KAAK,aAAa;;wBAqBtC,eAAe,UAAU,qBAAqB;;;;;;;;;;;;;;;qBCrRjD;WACT;WACA;WACA;WACA;WACA;;YAEQ,mBAAmB,uBAAuB;;UAGrC;EACb,UAAU;EACV;EACA;;;UAIa;EACb;EACA;EACA;;;UAIa;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIa;EACb;EACA;EACA;EACA;;EAEA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IAAsB;;EAEtB;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;;;UAIa;EACb;EACA;;;UAIa;EACb;EACA;EACA;EACA;EACA;;;qBAIS;;UAGI;EACb;EACA;EACA;EACA;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;EAQA,YAAY,sBAAsB;EAClC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;;UAIa;EACb;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;qBAIS;WACT;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;YAEQ,yBAAyB,6BAA6B;;qBAGrD;WACT;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;YAEQ,8BAA8B,kCAAkC;;UAG3D;EACb;EACA;EACA;EACA;EACA;;;UAIa;EACb;EACA;EACA;;;UAIa;EACb,OAAO;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACI;IACA;IACA;MACI;MACA;MACA;MACA;;IAEJ;MACI;MACA;MACA;MACA;;;;;UAMK;EACb,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,sBAAsB;EACtB;IAAe;IAAiB;IAAkB;;EAClD;IAAuB;IAAiB;;;;UAI3B;EACb;EACA;EACA,cAAc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8B,SAAS;EACvC,gCAAgC;IAC5B,SAAS;IACT;IACA;;EAEJ,6BAA6B,MAAM,4BAA4B;EAC/D,uBAAuB,MAAM;;;UAIhB;EACb,yBAAyB,UAAU;EACnC,4BAA4B,UAAU;;EAEtC,8BACI,UAAU,6BACV,UAAU;;EAGd,qBAAqB;IACjB,SAAS;IACT;MACA,QAAQ,qBAAqB;;;qBCrFxB;WACT;WACA;WACA;WACA;WACA;;YAEQ,4BAA4B,gCAAgC;;UAGvD;EACb;EACA;EACA;EACA;;;UAIa;EACb;EACA;EACA,UAAU;EACV;EACA;;;UAIa;EACb;EACA;EACA;EACA;EACA;;;qBAIS;WACT;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;YAEQ,6BAA6B,iCAAiC;;qBAG7D;WACT;WACA;WACA;WACA;WACA;;YAEQ,+BAA+B,mCAAmC;;qBAGjE;WACT;WACA;WACA;WACA;WACA;;YAEQ,qCACA,yCAAyC;;UAGpC;EACb;EACA,MAAM;EACN,QAAQ;EACR;IAAU;IAAmB;;EAC7B;IAAU;IAAa;;EACvB;IAAU;IAAa;;EACvB;EACA;EACA;;;UAIa;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIa;EACb;EACA;EACA;EACA;EACA;EACA;IAAiB;IAAmB;;EACpC;EACA;GACC;;;;UAKY;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;;;UAKY;EACb;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;;UAIY;;EAEb;;EAEA;;EAEA;;EAEA;;EAEA;IAAQ;IAAc;IAAgB;IAAiB;;GACtD;;;UAIY;EACb,uBAAuB;EACvB,0BAA0B;EAC1B,aAAa,iBAAiB,QAAQ;EACtC,mBAAmB,mBAAmB,0BAA0B,QAAQ;EACxE,iBACI,mBACA,sBACD;IACC;IACA;IACA;MACI,KAAK;QAAQ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