@napuketto/loader 0.0.38 → 0.1.0
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/host/self-host.cjs +245 -23
- package/dist/index.cjs +135 -3
- package/dist/index.d.cts +53 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +53 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +128 -4
- package/dist/index.mjs.map +1 -1
- package/native/build/stub-test-env/NOTICE.md +32 -0
- package/native/build/stub-test-env/QQNT.dll +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# NOTICE — 本目录的 QQNT.dll 是自研符号转发 stub,非腾讯原始二进制
|
|
2
|
+
|
|
3
|
+
本文件(约 70 KB)由 NapukettoQQ 项目自研编译,用于「标准 Node + stub 转发」的自建宿主
|
|
4
|
+
模式:让 wrapper.node 在纯 Node 环境下经 process.dlopen 加载。它不是、也不包含腾讯 QQ
|
|
5
|
+
客户端的 QQNT.dll——官方组件为数十 MB 的完整客户端二进制,本目录不含任何腾讯代码字节。
|
|
6
|
+
|
|
7
|
+
## 成分
|
|
8
|
+
|
|
9
|
+
- 99 个导出中 97 个为 PE Export Forwarder,转发到 node.exe 的既有实现;符号名为
|
|
10
|
+
Node-API(`napi_*`)、libuv(`uv_*`)与 V8 的公开接口名(Node.js 为 OpenJS 基金会
|
|
11
|
+
MIT 许可项目),另含 1 个别名 `qq_magic_napi_register`(转发至 node.exe 的
|
|
12
|
+
`napi_module_register`)。
|
|
13
|
+
- 2 个自研空实现:`IsEnvironmentStopping` / `PerfTrace`(见本仓库 `stub/stub-qqnt.cpp`,
|
|
14
|
+
各数行)。
|
|
15
|
+
- 符号清单来自对 wrapper.node PE 导入表的分析(互操作接口事实)。文件命名为
|
|
16
|
+
`QQNT.dll` 是 Windows PE 加载器按导入表模块名解析的机械要求。
|
|
17
|
+
|
|
18
|
+
## 来源与边界
|
|
19
|
+
|
|
20
|
+
- 编译源为本仓库(闭源)`stub/stub-qqnt.cpp` + `stub/stub-qqnt.def`
|
|
21
|
+
(llvm-mingw:`clang++ -shared stub-qqnt.cpp stub-qqnt.def -o QQNT.dll`)。
|
|
22
|
+
- 运行形态:独立 DLL 置于 PATH 前置目录,不修改 QQ 安装目录任何文件、不注入官方进程。
|
|
23
|
+
- 本目录随 npm 包 `@napuketto/loader` 的 `files` 字段分发。
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
This directory ships a self-authored PE export-forwarding stub (≈70 KB) compiled by the
|
|
28
|
+
NapukettoQQ project. It is not, and contains no code from, Tencent's original QQNT.dll. 97 of
|
|
29
|
+
its 99 exports are forwarders to node.exe (Node-API / libuv / V8 public symbols); the
|
|
30
|
+
remaining 2 are trivial stubs written in this repository. The symbol list is derived from the
|
|
31
|
+
PE import table of wrapper.node (interoperability facts), and the file must be named
|
|
32
|
+
QQNT.dll to satisfy the Windows PE loader's module-name resolution.
|
|
Binary file
|