feat(tui): add compact command to mini (#38251)
This commit is contained in:
parent
ca6da05d07
commit
691a7d93c8
7 changed files with 109 additions and 6 deletions
|
|
@ -53,6 +53,11 @@ export function isNewCommand(input: string): boolean {
|
|||
return input.trim().toLowerCase() === "/new"
|
||||
}
|
||||
|
||||
export function isCompactCommand(input: string): boolean {
|
||||
const text = input.trim().toLowerCase()
|
||||
return text === "/compact" || text === "/summarize"
|
||||
}
|
||||
|
||||
export function createPromptHistory(items?: RunPrompt[]): PromptHistoryState {
|
||||
const list = (items ?? []).filter((item) => item.text.trim().length > 0).map(promptCopy)
|
||||
const next: RunPrompt[] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue