mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 13:42:21 +00:00
refactor(core): rename MultiModelOptions and MultiModelResult to OpenSessionOptions and OpenSessionResult
This commit is contained in:
+3
-3
@@ -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<MultiModelResult> {
|
||||
options: OpenSessionOptions,
|
||||
): Promise<OpenSessionResult> {
|
||||
const sessionName = options.sessionName.trim();
|
||||
const safeSessionName = sanitizeName(sessionName);
|
||||
const models = normalizeModels(options.models);
|
||||
|
||||
+2
-2
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user