@kevisual/cli 0.1.3 → 0.1.4
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/assistant-opencode.js +12 -15
- package/dist/assistant-server.js +12 -15
- package/dist/assistant.js +12 -15
- package/dist/envision.js +30 -3
- package/package.json +1 -1
|
@@ -72197,42 +72197,39 @@ class AssistantInit extends AssistantConfig {
|
|
|
72197
72197
|
create = true;
|
|
72198
72198
|
fs13.writeFileSync(packagePath, `{
|
|
72199
72199
|
"name": "assistant-app",
|
|
72200
|
-
"version": "1.0.
|
|
72200
|
+
"version": "1.0.1",
|
|
72201
72201
|
"description": "assistant-app package pnpm, node pkgs projects",
|
|
72202
72202
|
"type": "module",
|
|
72203
72203
|
"scripts": {
|
|
72204
72204
|
"start": "pm2 start apps/code-center/dist/app.mjs --name code-center",
|
|
72205
72205
|
"proxy": "pm2 start apps/page-proxy/dist/app.mjs --name page-proxy",
|
|
72206
|
-
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace asst server -s
|
|
72206
|
+
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace/kevisual asst server -s"
|
|
72207
72207
|
},
|
|
72208
72208
|
"keywords": [],
|
|
72209
72209
|
"author": "",
|
|
72210
72210
|
"license": "ISC",
|
|
72211
72211
|
"dependencies": {
|
|
72212
|
-
"@aws-sdk/client-s3": "^3.
|
|
72213
|
-
"@kevisual/oss": "^0.0.
|
|
72214
|
-
"@kevisual/query": "^0.0.
|
|
72212
|
+
"@aws-sdk/client-s3": "^3.990.0",
|
|
72213
|
+
"@kevisual/oss": "^0.0.19",
|
|
72214
|
+
"@kevisual/query": "^0.0.40",
|
|
72215
72215
|
"eventemitter3": "^5.0.4",
|
|
72216
|
-
"@kevisual/router": "^0.0.
|
|
72217
|
-
"@kevisual/use-config": "^1.0.
|
|
72218
|
-
"ioredis": "^5.9.
|
|
72219
|
-
"
|
|
72220
|
-
"pg": "^8.17.2",
|
|
72216
|
+
"@kevisual/router": "^0.0.70",
|
|
72217
|
+
"@kevisual/use-config": "^1.0.30",
|
|
72218
|
+
"ioredis": "^5.9.3",
|
|
72219
|
+
"pg": "^8.18.0",
|
|
72221
72220
|
"pm2": "^6.0.14",
|
|
72222
|
-
"sequelize": "^6.37.7",
|
|
72223
72221
|
"crypto-js": "^4.2.0",
|
|
72224
|
-
"better-sqlite3": "^12.6.2",
|
|
72225
72222
|
"unstorage": "^1.17.4",
|
|
72226
72223
|
"dayjs": "^1.11.19",
|
|
72227
72224
|
"es-toolkit": "^1.44.0",
|
|
72228
72225
|
"node-cron": "^4.2.1",
|
|
72229
|
-
"dotenv": "^17.
|
|
72226
|
+
"dotenv": "^17.3.1"
|
|
72230
72227
|
},
|
|
72231
72228
|
"devDependencies": {
|
|
72232
72229
|
"@kevisual/types": "^0.0.12",
|
|
72233
|
-
"@types/bun": "^1.3.
|
|
72230
|
+
"@types/bun": "^1.3.9",
|
|
72234
72231
|
"@types/crypto-js": "^4.2.2",
|
|
72235
|
-
"@types/node": "^25.
|
|
72232
|
+
"@types/node": "^25.2.3"
|
|
72236
72233
|
}
|
|
72237
72234
|
}
|
|
72238
72235
|
`);
|
package/dist/assistant-server.js
CHANGED
|
@@ -111735,42 +111735,39 @@ class AssistantInit extends AssistantConfig {
|
|
|
111735
111735
|
create = true;
|
|
111736
111736
|
fs15.writeFileSync(packagePath, `{
|
|
111737
111737
|
"name": "assistant-app",
|
|
111738
|
-
"version": "1.0.
|
|
111738
|
+
"version": "1.0.1",
|
|
111739
111739
|
"description": "assistant-app package pnpm, node pkgs projects",
|
|
111740
111740
|
"type": "module",
|
|
111741
111741
|
"scripts": {
|
|
111742
111742
|
"start": "pm2 start apps/code-center/dist/app.mjs --name code-center",
|
|
111743
111743
|
"proxy": "pm2 start apps/page-proxy/dist/app.mjs --name page-proxy",
|
|
111744
|
-
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace asst server -s
|
|
111744
|
+
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace/kevisual asst server -s"
|
|
111745
111745
|
},
|
|
111746
111746
|
"keywords": [],
|
|
111747
111747
|
"author": "",
|
|
111748
111748
|
"license": "ISC",
|
|
111749
111749
|
"dependencies": {
|
|
111750
|
-
"@aws-sdk/client-s3": "^3.
|
|
111751
|
-
"@kevisual/oss": "^0.0.
|
|
111752
|
-
"@kevisual/query": "^0.0.
|
|
111750
|
+
"@aws-sdk/client-s3": "^3.990.0",
|
|
111751
|
+
"@kevisual/oss": "^0.0.19",
|
|
111752
|
+
"@kevisual/query": "^0.0.40",
|
|
111753
111753
|
"eventemitter3": "^5.0.4",
|
|
111754
|
-
"@kevisual/router": "^0.0.
|
|
111755
|
-
"@kevisual/use-config": "^1.0.
|
|
111756
|
-
"ioredis": "^5.9.
|
|
111757
|
-
"
|
|
111758
|
-
"pg": "^8.17.2",
|
|
111754
|
+
"@kevisual/router": "^0.0.70",
|
|
111755
|
+
"@kevisual/use-config": "^1.0.30",
|
|
111756
|
+
"ioredis": "^5.9.3",
|
|
111757
|
+
"pg": "^8.18.0",
|
|
111759
111758
|
"pm2": "^6.0.14",
|
|
111760
|
-
"sequelize": "^6.37.7",
|
|
111761
111759
|
"crypto-js": "^4.2.0",
|
|
111762
|
-
"better-sqlite3": "^12.6.2",
|
|
111763
111760
|
"unstorage": "^1.17.4",
|
|
111764
111761
|
"dayjs": "^1.11.19",
|
|
111765
111762
|
"es-toolkit": "^1.44.0",
|
|
111766
111763
|
"node-cron": "^4.2.1",
|
|
111767
|
-
"dotenv": "^17.
|
|
111764
|
+
"dotenv": "^17.3.1"
|
|
111768
111765
|
},
|
|
111769
111766
|
"devDependencies": {
|
|
111770
111767
|
"@kevisual/types": "^0.0.12",
|
|
111771
|
-
"@types/bun": "^1.3.
|
|
111768
|
+
"@types/bun": "^1.3.9",
|
|
111772
111769
|
"@types/crypto-js": "^4.2.2",
|
|
111773
|
-
"@types/node": "^25.
|
|
111770
|
+
"@types/node": "^25.2.3"
|
|
111774
111771
|
}
|
|
111775
111772
|
}
|
|
111776
111773
|
`);
|
package/dist/assistant.js
CHANGED
|
@@ -57350,42 +57350,39 @@ class AssistantInit extends AssistantConfig {
|
|
|
57350
57350
|
create = true;
|
|
57351
57351
|
fs14.writeFileSync(packagePath, `{
|
|
57352
57352
|
"name": "assistant-app",
|
|
57353
|
-
"version": "1.0.
|
|
57353
|
+
"version": "1.0.1",
|
|
57354
57354
|
"description": "assistant-app package pnpm, node pkgs projects",
|
|
57355
57355
|
"type": "module",
|
|
57356
57356
|
"scripts": {
|
|
57357
57357
|
"start": "pm2 start apps/code-center/dist/app.mjs --name code-center",
|
|
57358
57358
|
"proxy": "pm2 start apps/page-proxy/dist/app.mjs --name page-proxy",
|
|
57359
|
-
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace asst server -s
|
|
57359
|
+
"preview": "pnpm i && ASSISTANT_CONFIG_DIR=/workspace/kevisual asst server -s"
|
|
57360
57360
|
},
|
|
57361
57361
|
"keywords": [],
|
|
57362
57362
|
"author": "",
|
|
57363
57363
|
"license": "ISC",
|
|
57364
57364
|
"dependencies": {
|
|
57365
|
-
"@aws-sdk/client-s3": "^3.
|
|
57366
|
-
"@kevisual/oss": "^0.0.
|
|
57367
|
-
"@kevisual/query": "^0.0.
|
|
57365
|
+
"@aws-sdk/client-s3": "^3.990.0",
|
|
57366
|
+
"@kevisual/oss": "^0.0.19",
|
|
57367
|
+
"@kevisual/query": "^0.0.40",
|
|
57368
57368
|
"eventemitter3": "^5.0.4",
|
|
57369
|
-
"@kevisual/router": "^0.0.
|
|
57370
|
-
"@kevisual/use-config": "^1.0.
|
|
57371
|
-
"ioredis": "^5.9.
|
|
57372
|
-
"
|
|
57373
|
-
"pg": "^8.17.2",
|
|
57369
|
+
"@kevisual/router": "^0.0.70",
|
|
57370
|
+
"@kevisual/use-config": "^1.0.30",
|
|
57371
|
+
"ioredis": "^5.9.3",
|
|
57372
|
+
"pg": "^8.18.0",
|
|
57374
57373
|
"pm2": "^6.0.14",
|
|
57375
|
-
"sequelize": "^6.37.7",
|
|
57376
57374
|
"crypto-js": "^4.2.0",
|
|
57377
|
-
"better-sqlite3": "^12.6.2",
|
|
57378
57375
|
"unstorage": "^1.17.4",
|
|
57379
57376
|
"dayjs": "^1.11.19",
|
|
57380
57377
|
"es-toolkit": "^1.44.0",
|
|
57381
57378
|
"node-cron": "^4.2.1",
|
|
57382
|
-
"dotenv": "^17.
|
|
57379
|
+
"dotenv": "^17.3.1"
|
|
57383
57380
|
},
|
|
57384
57381
|
"devDependencies": {
|
|
57385
57382
|
"@kevisual/types": "^0.0.12",
|
|
57386
|
-
"@types/bun": "^1.3.
|
|
57383
|
+
"@types/bun": "^1.3.9",
|
|
57387
57384
|
"@types/crypto-js": "^4.2.2",
|
|
57388
|
-
"@types/node": "^25.
|
|
57385
|
+
"@types/node": "^25.2.3"
|
|
57389
57386
|
}
|
|
57390
57387
|
}
|
|
57391
57388
|
`);
|
package/dist/envision.js
CHANGED
|
@@ -22309,8 +22309,8 @@ InitEnv.init();
|
|
|
22309
22309
|
var version = useContextKey("version", () => {
|
|
22310
22310
|
let version2 = "0.0.64";
|
|
22311
22311
|
try {
|
|
22312
|
-
if ("0.1.
|
|
22313
|
-
version2 = "0.1.
|
|
22312
|
+
if ("0.1.4")
|
|
22313
|
+
version2 = "0.1.4";
|
|
22314
22314
|
} catch (e) {}
|
|
22315
22315
|
return version2;
|
|
22316
22316
|
});
|
|
@@ -40463,7 +40463,12 @@ var cnbCmd = new Command("cnb").description("CNB 相关命令").action(async (op
|
|
|
40463
40463
|
});
|
|
40464
40464
|
var liveCmd = new Command("live").description("启动 CNB Keep Alive 服务").option("-j, --json <string>", "JSON数据").option("-c, --config <string>", "配置文件路径 (优先级高于 JSON 参数), 默认keep.json").action(async (opts) => {
|
|
40465
40465
|
let config2;
|
|
40466
|
-
|
|
40466
|
+
let configPath2 = opts.config || "keep.json";
|
|
40467
|
+
if (configPath2.startsWith("/")) {
|
|
40468
|
+
configPath2 = path17.resolve(configPath2);
|
|
40469
|
+
} else {
|
|
40470
|
+
configPath2 = path17.join(process.cwd(), configPath2);
|
|
40471
|
+
}
|
|
40467
40472
|
try {
|
|
40468
40473
|
let jsonString = opts.json;
|
|
40469
40474
|
if (!jsonString) {
|
|
@@ -40488,6 +40493,28 @@ var liveCmd = new Command("live").description("启动 CNB Keep Alive 服务").op
|
|
|
40488
40493
|
});
|
|
40489
40494
|
});
|
|
40490
40495
|
cnbCmd.addCommand(liveCmd);
|
|
40496
|
+
var workspaceCmd = new Command("workspace").alias("w").description("工作区live保活,默认执行 ev cnb live -c /workspace/live/keep.json").action(() => {
|
|
40497
|
+
try {
|
|
40498
|
+
const configPath2 = path17.join("/workspace/live/keep.json");
|
|
40499
|
+
const json = readFileSync2(configPath2, "utf-8").trim();
|
|
40500
|
+
let config2 = JSON.parse(json);
|
|
40501
|
+
if (!config2.wss || !config2.cookie) {
|
|
40502
|
+
console.error("配置错误: 必须包含 wss 和 cookie 字段");
|
|
40503
|
+
process.exit(1);
|
|
40504
|
+
}
|
|
40505
|
+
createKeepAlive({
|
|
40506
|
+
wsUrl: config2.wss,
|
|
40507
|
+
cookie: config2.cookie,
|
|
40508
|
+
onDisconnect: (code) => {
|
|
40509
|
+
console.log(`与 CNB 服务器断开连接,代码: ${code}`);
|
|
40510
|
+
},
|
|
40511
|
+
debug: true
|
|
40512
|
+
});
|
|
40513
|
+
} catch (e) {
|
|
40514
|
+
console.error("error", e);
|
|
40515
|
+
}
|
|
40516
|
+
});
|
|
40517
|
+
program.addCommand(workspaceCmd);
|
|
40491
40518
|
program.addCommand(cnbCmd);
|
|
40492
40519
|
|
|
40493
40520
|
// src/index.ts
|