Compare commits

..
Author SHA1 Message Date
bendtherules b3a9ccc848 chore(release): 0.2.1 2026-03-23 17:09:04 +05:30
bendtherules 2558d44ea2 feat: display last used models as list
- Imported `chalk` for terminal color support.
- Constructed a formatted list of previously used models, applying cyan coloring.
- Updated user prompt to include the colored model list for clearer visibility.
2026-03-23 17:08:53 +05:30
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "opencode-multi-model", "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", "description": "Launch multiple AI models in tmux sessions - OpenCode Plugin, CLI, and Project Tool",
"type": "module", "type": "module",
"main": "./dist/index.js", "main": "./dist/index.js",
+5 -1
View File
@@ -5,6 +5,7 @@ import { cleanupMultiModel } from "./core/cleanup";
import { closeMultiModel } from "./core/close"; import { closeMultiModel } from "./core/close";
import { openMultiModel } from "./core/open"; import { openMultiModel } from "./core/open";
import { getBinaryName, loadSettings, promptUser } from "./core/utils"; import { getBinaryName, loadSettings, promptUser } from "./core/utils";
import chalk from "chalk";
const program = new Command(); const program = new Command();
@@ -39,8 +40,11 @@ program
const settings = await loadSettings(); const settings = await loadSettings();
if (settings.lastModels.length > 0) { if (settings.lastModels.length > 0) {
if (!options.force) { if (!options.force) {
const modelList = settings.lastModels
.map((m) => ` - ${chalk.cyan(m)}`)
.join("\n");
const answer = await promptUser( 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") { if (answer.toLowerCase() === "y" || answer.toLowerCase() === "yes") {
models = settings.lastModels; models = settings.lastModels;