feat(tui): thread configPath and currentConfig into MinimalTuiConfig
This commit is contained in:
@@ -451,6 +451,8 @@ export function registerTuiCommand(program: Command): void {
|
||||
contextThresholdPct: config.compaction.threshold_pct,
|
||||
currentLocalProvider: config.models.local?.provider,
|
||||
onTransfer: transferSessionToTarget,
|
||||
configPath,
|
||||
currentConfig: config,
|
||||
onFullscreen: () => {
|
||||
switchingToFullscreen = true;
|
||||
tui.stop(true);
|
||||
|
||||
@@ -5,8 +5,9 @@ import type { ModelRouter } from '../../models/router.js';
|
||||
import type { NativeAgent, ToolUseEvent } from '../../backends/native/agent.js';
|
||||
import { parseCommand, getHelpText, resolveModelAlias, getCommandCompletions, getCommandTooltip, isToolInventoryQuery, type Command } from './commands.js';
|
||||
import { renderMarkdown } from './markdown.js';
|
||||
import type { ModelConfig, ModelProvider } from '../../config/schema.js';
|
||||
import type { Config, ModelConfig, ModelProvider } from '../../config/schema.js';
|
||||
import { MODEL_PROVIDERS } from '../../config/schema.js';
|
||||
import { persistConfig } from '../../config/persistence.js';
|
||||
import { OllamaClient, LlamaCppClient } from '../../models/index.js';
|
||||
import { createClientFromConfig } from '../../daemon/index.js';
|
||||
import {
|
||||
@@ -78,6 +79,8 @@ export interface MinimalTuiConfig {
|
||||
pairingManager?: PairingManager;
|
||||
hookEngine?: HookEngine;
|
||||
contextThresholdPct?: number;
|
||||
configPath?: string;
|
||||
currentConfig?: Config;
|
||||
}
|
||||
|
||||
export class MinimalTui {
|
||||
|
||||
Reference in New Issue
Block a user