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 * 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
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user