refactor(core): rename MultiModelOptions and MultiModelResult to OpenSessionOptions and OpenSessionResult

This commit is contained in:
2026-03-23 18:59:44 +05:30
parent b3a9ccc848
commit 2cc01f5faa
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import * as fs from "node:fs"; import * as fs from "node:fs";
import chalk from "chalk"; import chalk from "chalk";
import type { MultiModelOptions, MultiModelResult } from "../types"; import type { OpenSessionOptions, OpenSessionResult } from "../types";
import { import {
createWindowPlans, createWindowPlans,
findDuplicates, findDuplicates,
@@ -36,8 +36,8 @@ import {
* ``` * ```
*/ */
export async function openMultiModel( export async function openMultiModel(
options: MultiModelOptions, options: OpenSessionOptions,
): Promise<MultiModelResult> { ): Promise<OpenSessionResult> {
const sessionName = options.sessionName.trim(); const sessionName = options.sessionName.trim();
const safeSessionName = sanitizeName(sessionName); const safeSessionName = sanitizeName(sessionName);
const models = normalizeModels(options.models); const models = normalizeModels(options.models);
+2 -2
View File
@@ -8,7 +8,7 @@ export interface MultiModelSettings {
/** /**
* Options for launching a multi-model tmux session. * Options for launching a multi-model tmux session.
*/ */
export interface MultiModelOptions { export interface OpenSessionOptions {
/** Name for the tmux session. */ /** Name for the tmux session. */
sessionName: string; sessionName: string;
/** List of model ids to launch. */ /** List of model ids to launch. */
@@ -24,7 +24,7 @@ export interface MultiModelOptions {
/** /**
* Result returned after attempting to launch a multi-model session. * Result returned after attempting to launch a multi-model session.
*/ */
export interface MultiModelResult { export interface OpenSessionResult {
/** Whether the launch succeeded. */ /** Whether the launch succeeded. */
success: boolean; success: boolean;
/** The session name used. */ /** The session name used. */