autoglm.js 0.0.3 → 0.0.5
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.mjs +5 -5
- package/package.json +4 -2
package/dist/cli.mjs
CHANGED
|
@@ -178,7 +178,7 @@ var require_minimist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region package.json
|
|
180
180
|
var import_minimist = /* @__PURE__ */ __toESM(require_minimist(), 1);
|
|
181
|
-
var version = "0.0.
|
|
181
|
+
var version = "0.0.5";
|
|
182
182
|
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region src/cli/helpMessage.ts
|
|
@@ -331,17 +331,17 @@ async function getConfig() {
|
|
|
331
331
|
*/
|
|
332
332
|
async function main() {
|
|
333
333
|
printBanner();
|
|
334
|
-
const
|
|
334
|
+
const _config = commandAction((0, import_minimist.default)(process.argv.slice(2), { alias: {
|
|
335
335
|
help: "h",
|
|
336
336
|
config: "c"
|
|
337
|
-
} }))
|
|
337
|
+
} }));
|
|
338
338
|
setAgentConfig({
|
|
339
|
-
...
|
|
339
|
+
..._config || await getConfig(),
|
|
340
340
|
mode: "cli"
|
|
341
341
|
});
|
|
342
342
|
await checkSystemRequirements();
|
|
343
343
|
await checkModelApi();
|
|
344
|
-
if (!
|
|
344
|
+
if (!_config) {
|
|
345
345
|
spinner_default.stop($t("prompt.checking"));
|
|
346
346
|
Se($t("prompt.done"));
|
|
347
347
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autoglm.js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "AutoGLM.js is a JavaScript library for Open-AutoGLM",
|
|
7
7
|
"author": "FliPPeDround <flippedround@qq.com>",
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
"dist",
|
|
39
39
|
"schema"
|
|
40
40
|
],
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"cfonts": "^3.3.1"
|
|
43
|
+
},
|
|
41
44
|
"devDependencies": {
|
|
42
45
|
"@antfu/eslint-config": "^6.6.1",
|
|
43
46
|
"@antfu/utils": "^9.3.0",
|
|
@@ -48,7 +51,6 @@
|
|
|
48
51
|
"acorn-loose": "^8.5.2",
|
|
49
52
|
"bumpp": "^10.3.2",
|
|
50
53
|
"cac": "^6.7.14",
|
|
51
|
-
"cfonts": "^3.3.1",
|
|
52
54
|
"consola": "^3.4.2",
|
|
53
55
|
"dayjs": "^1.11.19",
|
|
54
56
|
"eslint": "^9.39.2",
|