@iola_adm/iola-cli 0.1.107 → 0.1.108
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/package.json +1 -1
- package/src/cli.js +3 -3
- package/test/smoke-test.js +3 -0
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -611,7 +611,7 @@ Usage:
|
|
|
611
611
|
iola ai models iola|ollama|openai|openrouter|codex [--search TEXT]
|
|
612
612
|
iola ai doctor [--json]
|
|
613
613
|
iola ai setup
|
|
614
|
-
iola ai setup iola [--yes]
|
|
614
|
+
iola ai setup iola [--yes] [--force]
|
|
615
615
|
iola ai setup ollama [--yes] [--model MODEL]
|
|
616
616
|
iola health [--json]
|
|
617
617
|
iola layers [--json]
|
|
@@ -2053,7 +2053,7 @@ async function handleAi(args) {
|
|
|
2053
2053
|
iola ai models iola|ollama|openai|openrouter|codex [--search TEXT]
|
|
2054
2054
|
iola ai doctor [--json]
|
|
2055
2055
|
iola ai setup
|
|
2056
|
-
iola ai setup iola [--yes]
|
|
2056
|
+
iola ai setup iola [--yes] [--force]
|
|
2057
2057
|
iola ai setup ollama [--yes] [--model MODEL]
|
|
2058
2058
|
iola ai setup openai [--model MODEL]
|
|
2059
2059
|
iola ai setup openrouter [--model MODEL]
|
|
@@ -6239,7 +6239,7 @@ async function setupIolaLocal(args) {
|
|
|
6239
6239
|
ggufFile,
|
|
6240
6240
|
modelDir,
|
|
6241
6241
|
model,
|
|
6242
|
-
force:
|
|
6242
|
+
force: Boolean(options.force),
|
|
6243
6243
|
quiet: Boolean(options.quiet),
|
|
6244
6244
|
});
|
|
6245
6245
|
} catch (error) {
|
package/test/smoke-test.js
CHANGED
|
@@ -6,6 +6,7 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
const rootDir = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
7
7
|
const binPath = resolve(rootDir, "bin", "iola.js");
|
|
8
8
|
const packageJson = JSON.parse(await readFile(resolve(rootDir, "package.json"), "utf8"));
|
|
9
|
+
const cliSource = await readFile(resolve(rootDir, "src", "cli.js"), "utf8");
|
|
9
10
|
|
|
10
11
|
function runCli(args) {
|
|
11
12
|
return new Promise((resolvePromise, reject) => {
|
|
@@ -45,6 +46,8 @@ const help = await runCli(["--help"]);
|
|
|
45
46
|
assertIncludes(help, "iola master", "help");
|
|
46
47
|
assertIncludes(help, "iola ask", "help");
|
|
47
48
|
|
|
49
|
+
assertIncludes(cliSource, "force: Boolean(options.force)", "IOLA setup should not force model reinstall by default");
|
|
50
|
+
|
|
48
51
|
const commands = await runCli(["commands"]);
|
|
49
52
|
assertIncludes(commands, "iola browser status|install|open|text|html|screenshot|pdf|click|type|eval", "commands");
|
|
50
53
|
assertIncludes(commands, "iola mcp list|status|install|remove|serve [--stdio]", "commands");
|