mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 13:42:21 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3a9ccc848 | ||
|
|
2558d44ea2 |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "opencode-multi-model",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"description": "Launch multiple AI models in tmux sessions - OpenCode Plugin, CLI, and Project Tool",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
+5
-1
@@ -5,6 +5,7 @@ import { cleanupMultiModel } from "./core/cleanup";
|
||||
import { closeMultiModel } from "./core/close";
|
||||
import { openMultiModel } from "./core/open";
|
||||
import { getBinaryName, loadSettings, promptUser } from "./core/utils";
|
||||
import chalk from "chalk";
|
||||
|
||||
const program = new Command();
|
||||
|
||||
@@ -39,8 +40,11 @@ program
|
||||
const settings = await loadSettings();
|
||||
if (settings.lastModels.length > 0) {
|
||||
if (!options.force) {
|
||||
const modelList = settings.lastModels
|
||||
.map((m) => ` - ${chalk.cyan(m)}`)
|
||||
.join("\n");
|
||||
const answer = await promptUser(
|
||||
`Use models [${models.join(", ")}]? (Y/n): `,
|
||||
`Continue with last used models?\n${modelList}\n(Y/n): `,
|
||||
);
|
||||
if (answer.toLowerCase() === "y" || answer.toLowerCase() === "yes") {
|
||||
models = settings.lastModels;
|
||||
|
||||
Reference in New Issue
Block a user