mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 16:04:03 +00:00
Wire up /compact and /autocompact slash commands
This commit is contained in:
parent
79731249eb
commit
bddb99fa7c
1 changed files with 12 additions and 0 deletions
|
|
@ -188,6 +188,16 @@ export class TuiRenderer {
|
|||
description: "Clear context and start a fresh session",
|
||||
};
|
||||
|
||||
const compactCommand: SlashCommand = {
|
||||
name: "compact",
|
||||
description: "Manually compact the session context",
|
||||
};
|
||||
|
||||
const autocompactCommand: SlashCommand = {
|
||||
name: "autocompact",
|
||||
description: "Toggle automatic context compaction",
|
||||
};
|
||||
|
||||
// Load file-based slash commands
|
||||
this.fileCommands = loadSlashCommands();
|
||||
|
||||
|
|
@ -211,6 +221,8 @@ export class TuiRenderer {
|
|||
logoutCommand,
|
||||
queueCommand,
|
||||
clearCommand,
|
||||
compactCommand,
|
||||
autocompactCommand,
|
||||
...fileSlashCommands,
|
||||
],
|
||||
process.cwd(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue