@napuketto/cli 0.8.0 → 0.8.2
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/README.md +1 -1
- package/dist/index.mjs +10 -10
- package/package.json +9 -10
package/README.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -329,7 +329,7 @@ function validateSandboxConfigPaths(config, dataDir) {
|
|
|
329
329
|
*/
|
|
330
330
|
function configTemplate() {
|
|
331
331
|
return `# ============================================================
|
|
332
|
-
#
|
|
332
|
+
# Napuketto 全局配置文件
|
|
333
333
|
# ============================================================
|
|
334
334
|
# 本文件由 \`napuketto config init\` 生成(或首次启动自动生成)。
|
|
335
335
|
# 本机配置不入库(.gitignore);修改后重启生效。
|
|
@@ -476,7 +476,7 @@ port = 3001
|
|
|
476
476
|
# [accounts.kurobot]
|
|
477
477
|
# url = "ws://127.0.0.1:25580" # 必填:KuroBot 服务端地址(ws:// 或 wss://)
|
|
478
478
|
# # token = "" # 可选:鉴权 token(服务端配了则必填,错 token 拒连)
|
|
479
|
-
# # client = "
|
|
479
|
+
# # client = "napuketto" # 可选:自报身份(缺省 napuketto/<版本>)
|
|
480
480
|
# # commandPrefix = "/" # 可选:群命令前缀
|
|
481
481
|
# # pingIntervalMs = 15000 # 可选:应用层心跳间隔(毫秒,须 < 30000)
|
|
482
482
|
# # chatTemplate = "[{player}] {content}" # 游戏聊天渲染模板
|
|
@@ -2358,14 +2358,14 @@ function collectQq(value, prev) {
|
|
|
2358
2358
|
prev.push(value);
|
|
2359
2359
|
return prev;
|
|
2360
2360
|
}
|
|
2361
|
-
/** 启动字符画(
|
|
2361
|
+
/** 启动字符画(Napuketto 品牌标识,内嵌;art 含反引号/反斜杠,用数组逐行转义)。 */
|
|
2362
2362
|
const BANNER = [
|
|
2363
|
-
" _ __ __ __ __
|
|
2364
|
-
" / | / /___ _____ __ __/ /_____ / /_/ /_____
|
|
2365
|
-
" / |/ / __ `/ __ \\/ / / / //_/ _ \\/ __/ __/ __
|
|
2366
|
-
" / /| / /_/ / /_/ / /_/ / ,< / __/ /_/ /_/ /_/ /
|
|
2367
|
-
"/_/ |_/\\__,_/ .___/\\__,_/_/|_|\\___/\\__/\\__/\\____
|
|
2368
|
-
" /_/
|
|
2363
|
+
" _ __ __ __ __",
|
|
2364
|
+
" / | / /___ _____ __ __/ /_____ / /_/ /_____",
|
|
2365
|
+
" / |/ / __ `/ __ \\/ / / / //_/ _ \\/ __/ __/ __ \\",
|
|
2366
|
+
" / /| / /_/ / /_/ / /_/ / ,< / __/ /_/ /_/ /_/ /",
|
|
2367
|
+
"/_/ |_/\\__,_/ .___/\\__,_/_/|_|\\___/\\__/\\__/\\____/",
|
|
2368
|
+
" /_/"
|
|
2369
2369
|
].join("\n");
|
|
2370
2370
|
/** 读主命令已解析的 data-dir(-d 定义在主命令,子命令经此共享)。 */
|
|
2371
2371
|
function rootDataDir(program) {
|
|
@@ -2458,7 +2458,7 @@ function registerMainAction(program) {
|
|
|
2458
2458
|
/** 入口:注册全部子命令与主命令后解析。 */
|
|
2459
2459
|
function main() {
|
|
2460
2460
|
const program = new Command();
|
|
2461
|
-
program.name("napuketto").version(cliVersion()).description("
|
|
2461
|
+
program.name("napuketto").version(cliVersion()).description("Napuketto 机器人框架(OneBot 11 兼容)");
|
|
2462
2462
|
program.option("-q, --qq <uin>", "QQ 号(可重复;多个时 supervisor 拉起多账号子进程)", collectQq, []).option("-d, --data-dir <dir>", "数据根目录(缺省 <项目根>/.napuketto)").option("--qq-path <path>", "QQ 安装路径(联调覆盖)").option("--stub-dir <dir>", "stub QQNT.dll 目录(自建宿主 PATH 前置,缺省 loader/native/prebuilt/win32-x64,Git Submodule)");
|
|
2463
2463
|
program.hook("preAction", () => {
|
|
2464
2464
|
if (resolveCliLogConfig(rootDataDir(program).dataDir).banner) process$1.stdout.write(`${BANNER}\n`);
|
package/package.json
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@napuketto/cli",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.2",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "Command line interface for
|
|
6
|
+
"description": "Command line interface for Napuketto",
|
|
7
7
|
"keywords": [
|
|
8
|
-
"qq",
|
|
9
8
|
"bot",
|
|
10
9
|
"napuketto",
|
|
11
10
|
"cli",
|
|
12
11
|
"terminal"
|
|
13
12
|
],
|
|
14
|
-
"homepage": "https://github.com/NapukettoDev/
|
|
13
|
+
"homepage": "https://github.com/NapukettoDev/Napuketto/tree/main/apps/cli#readme",
|
|
15
14
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/NapukettoDev/
|
|
15
|
+
"url": "https://github.com/NapukettoDev/Napuketto/issues"
|
|
17
16
|
},
|
|
18
17
|
"repository": {
|
|
19
18
|
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/NapukettoDev/
|
|
19
|
+
"url": "git+https://github.com/NapukettoDev/Napuketto.git",
|
|
21
20
|
"directory": "apps/cli"
|
|
22
21
|
},
|
|
23
22
|
"license": "MIT",
|
|
@@ -53,10 +52,10 @@
|
|
|
53
52
|
"start": "node ./dist/index.mjs"
|
|
54
53
|
},
|
|
55
54
|
"dependencies": {
|
|
56
|
-
"@napuketto/adapter": "^0.
|
|
57
|
-
"@napuketto/kernel": "^0.19.
|
|
58
|
-
"@napuketto/loader": "^0.16.
|
|
59
|
-
"@napuketto/network": "^0.5.
|
|
55
|
+
"@napuketto/adapter": "^0.24.1",
|
|
56
|
+
"@napuketto/kernel": "^0.19.2",
|
|
57
|
+
"@napuketto/loader": "^0.16.1",
|
|
58
|
+
"@napuketto/network": "^0.5.1",
|
|
60
59
|
"commander": "^15.1.0",
|
|
61
60
|
"uqr": "^0.1.3"
|
|
62
61
|
},
|