/
outbreak
/
kilocode
Обзор
Документация
Войти
/
outbreak
/
kilocode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cli/src/types/cli.ts
46 строк
1 KB
marius-kilocode
feat: add --yolo flag to CLI for auto-approving tool permissions (#4465)
15 дек 2025, 20:58
Не верифицирован
15 дек 2025, 20:58
5729f8b
Код
Авторство
О чём код?
import type { ModeConfig } from "./messages.js" export interface WelcomeMessageOptions { // Clear viewport before showing the message clearScreen?: boolean // Display options showInstructions?: boolean // Content customization instructions?: string[] // Custom instruction lines // Parallel mode branch name worktreeBranch?: string | undefined // Workspace directory workspace?: string | undefined } export interface CliMessage { id: string type: "user" | "assistant" | "system" | "error" | "welcome" | "empty" | "requestCheckpointRestoreApproval" content: string ts: number partial?: boolean | undefined metadata?: { welcomeOptions?: WelcomeMessageOptions | undefined } payload?: unknown } export interface CLIOptions { mode?: string workspace?: string ci?: boolean yolo?: boolean json?: boolean jsonInteractive?: boolean prompt?: string timeout?: number customModes?: ModeConfig[] parallel?: boolean worktreeBranch?: string | undefined continue?: boolean provider?: string model?: string session?: string fork?: string noSplash?: boolean }