ezllm 0.0.1 → 0.0.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/cli.js +8 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -27247,7 +27247,7 @@ async function waitServiceOnline(appDir, timeoutMs = 15e3) {
|
|
|
27247
27247
|
}
|
|
27248
27248
|
}
|
|
27249
27249
|
async function doStart(opts) {
|
|
27250
|
-
say("\u6B63\u5728\u542F\u52A8
|
|
27250
|
+
say("\u6B63\u5728\u542F\u52A8 ezllm\uFF08\u5185\u7F6E\u8FDB\u7A0B\u7BA1\u7406\uFF0C\u540E\u53F0\u5E38\u9A7B\uFF09...", ICONS.rocket);
|
|
27251
27251
|
const appDir = resolveAppDir(opts.workingDir);
|
|
27252
27252
|
const legacyNotice = legacyAppDirNotice(appDir);
|
|
27253
27253
|
if (legacyNotice) warn(legacyNotice);
|
|
@@ -27255,7 +27255,7 @@ async function doStart(opts) {
|
|
|
27255
27255
|
const existing = readRunInfo(appDir);
|
|
27256
27256
|
if (existing && isPidAlive(existing.pid)) {
|
|
27257
27257
|
throw new Error(
|
|
27258
|
-
`\u5DF2\u5728\u8FD0\u884C\uFF08pid ${String(existing.pid)}\uFF09\u3002\u8BF7\u5148\u505C\u6B62:
|
|
27258
|
+
`\u5DF2\u5728\u8FD0\u884C\uFF08pid ${String(existing.pid)}\uFF09\u3002\u8BF7\u5148\u505C\u6B62: ezllm stop`
|
|
27259
27259
|
);
|
|
27260
27260
|
}
|
|
27261
27261
|
if (existing) clearRunInfo(appDir, existing.pid);
|
|
@@ -27461,7 +27461,7 @@ function buildCli() {
|
|
|
27461
27461
|
).action((action) => {
|
|
27462
27462
|
if (action !== "on" && action !== "off") {
|
|
27463
27463
|
console.error(
|
|
27464
|
-
`\u672A\u77E5\u53C2\u6570: ${action}\uFF08\u7528\u6CD5:
|
|
27464
|
+
`\u672A\u77E5\u53C2\u6570: ${action}\uFF08\u7528\u6CD5: ${APP_NAME} autostart on|off\uFF09`
|
|
27465
27465
|
);
|
|
27466
27466
|
process.exit(1);
|
|
27467
27467
|
}
|
|
@@ -27476,7 +27476,7 @@ function buildCli() {
|
|
|
27476
27476
|
});
|
|
27477
27477
|
console.log("\u5F00\u673A\u81EA\u542F\u5DF2\u5F00\u542F\uFF08\u767B\u5F55\u65F6\u89E6\u53D1\uFF09\uFF1A");
|
|
27478
27478
|
console.log(` \u81EA\u542F\u9879 : ${itemPath}\uFF08\u767B\u5F55\u65F6\u65E0\u7A97\u53E3\u540E\u53F0\u542F\u52A8\uFF09`);
|
|
27479
|
-
console.log(
|
|
27479
|
+
console.log(` \u7981\u7528\u65B9\u5F0F : ${APP_NAME} autostart off`);
|
|
27480
27480
|
} else {
|
|
27481
27481
|
const { removed } = await disableAutostart({ appDir });
|
|
27482
27482
|
if (!removed) {
|
|
@@ -27573,7 +27573,7 @@ ${generated}
|
|
|
27573
27573
|
"\u5F53\u524D\u672A\u8BBE\u7F6E\u4E3B\u5BC6\u94A5\uFF1A/v1/* \u514D\u9274\u6743\uFF08\u672C\u5730\u4E2A\u4EBA\u4F7F\u7528\u6A21\u5F0F\uFF09\u3002"
|
|
27574
27574
|
);
|
|
27575
27575
|
console.log(
|
|
27576
|
-
`\u8BBE\u7F6E\u65B9\u5F0F\
|
|
27576
|
+
`\u8BBE\u7F6E\u65B9\u5F0F\uFF1A${APP_NAME} master-key <key>\uFF08\u2265${String(MIN_MASTER_KEY)} \u4F4D\uFF09\u6216 --random`
|
|
27577
27577
|
);
|
|
27578
27578
|
} else {
|
|
27579
27579
|
console.log(`\u5F53\u524D\u4E3B\u5BC6\u94A5: ${current}`);
|
|
@@ -27634,13 +27634,13 @@ ${generated}
|
|
|
27634
27634
|
if (name === "") {
|
|
27635
27635
|
console.log("\u5F53\u524D\u672A\u8BBE\u7F6E\u8D26\u53F7\uFF1A\u7BA1\u7406\u53F0\u514D\u767B\u5F55\u8BBF\u95EE\uFF08\u7EAF\u672C\u673A\u4F7F\u7528\uFF09\u3002");
|
|
27636
27636
|
console.log(
|
|
27637
|
-
|
|
27637
|
+
`\u542F\u7528\u767B\u5F55\uFF1A${APP_NAME} account <username> <password>\uFF0C\u6216\u8BBE\u7F6E WEBUI_USERNAME/WEBUI_PASSWORD \u73AF\u5883\u53D8\u91CF\u3002`
|
|
27638
27638
|
);
|
|
27639
27639
|
} else {
|
|
27640
27640
|
console.log(`\u5F53\u524D\u8D26\u53F7: ${name}`);
|
|
27641
27641
|
console.log(`\u5F53\u524D\u5BC6\u7801: ${String(info["password"])}`);
|
|
27642
27642
|
}
|
|
27643
|
-
console.log(
|
|
27643
|
+
console.log(`\u6E05\u9664\u8D26\u53F7\uFF08\u8F6C\u514D\u767B\u5F55\uFF09\uFF1A${APP_NAME} account --reset`);
|
|
27644
27644
|
}
|
|
27645
27645
|
console.log(`\u914D\u7F6E\u6587\u4EF6: ${path}\uFF08\u540E\u7AEF\u52A8\u6001\u8BFB\u53D6\uFF0C\u65E0\u9700\u91CD\u542F\u5373\u65F6\u751F\u6548\uFF09`);
|
|
27646
27646
|
})
|
|
@@ -27653,7 +27653,7 @@ ${generated}
|
|
|
27653
27653
|
"pm2 \u6258\u7BA1\u5DF2\u9000\u5F79\uFF1A\u670D\u52A1\u73B0\u7531\u5185\u7F6E\u8FDB\u7A0B\u7BA1\u7406\u6258\u7BA1\uFF08\u540E\u53F0\u5E38\u9A7B + \u5D29\u6E83\u81EA\u6108 + \u5F00\u673A\u81EA\u542F\uFF09\u3002"
|
|
27654
27654
|
);
|
|
27655
27655
|
console.log(
|
|
27656
|
-
|
|
27656
|
+
`\u7B49\u4EF7\u547D\u4EE4\uFF1A${APP_NAME} start / stop / restart\uFF1B\u67E5\u770B\u72B6\u6001\u76F4\u63A5\u8FD0\u884C ${APP_NAME}\uFF08\u65E0\u53C2\u6570\uFF09\u3002`
|
|
27657
27657
|
);
|
|
27658
27658
|
console.log("\u65E7\u7248 pm2 \u6B8B\u7559\u8FDB\u7A0B\u4F1A\u5728\u4E0B\u6B21 start/stop \u65F6\u81EA\u52A8\u6E05\u7406\u3002");
|
|
27659
27659
|
});
|