From 2cc01f5faa3a7438446fa2082a725d44e45162d4 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Mon, 23 Mar 2026 18:59:44 +0530 Subject: [PATCH] refactor(core): rename MultiModelOptions and MultiModelResult to OpenSessionOptions and OpenSessionResult --- src/core/open.ts | 6 +++--- src/types.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/open.ts b/src/core/open.ts index 106551a..ddd28a9 100644 --- a/src/core/open.ts +++ b/src/core/open.ts @@ -1,6 +1,6 @@ import * as fs from "node:fs"; import chalk from "chalk"; -import type { MultiModelOptions, MultiModelResult } from "../types"; +import type { OpenSessionOptions, OpenSessionResult } from "../types"; import { createWindowPlans, findDuplicates, @@ -36,8 +36,8 @@ import { * ``` */ export async function openMultiModel( - options: MultiModelOptions, -): Promise { + options: OpenSessionOptions, +): Promise { const sessionName = options.sessionName.trim(); const safeSessionName = sanitizeName(sessionName); const models = normalizeModels(options.models); diff --git a/src/types.ts b/src/types.ts index e18f6a9..78644c6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -8,7 +8,7 @@ export interface MultiModelSettings { /** * Options for launching a multi-model tmux session. */ -export interface MultiModelOptions { +export interface OpenSessionOptions { /** Name for the tmux session. */ sessionName: string; /** List of model ids to launch. */ @@ -24,7 +24,7 @@ export interface MultiModelOptions { /** * Result returned after attempting to launch a multi-model session. */ -export interface MultiModelResult { +export interface OpenSessionResult { /** Whether the launch succeeded. */ success: boolean; /** The session name used. */