mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 20:01:06 +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",
|
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
|
// Load file-based slash commands
|
||||||
this.fileCommands = loadSlashCommands();
|
this.fileCommands = loadSlashCommands();
|
||||||
|
|
||||||
|
|
@ -211,6 +221,8 @@ export class TuiRenderer {
|
||||||
logoutCommand,
|
logoutCommand,
|
||||||
queueCommand,
|
queueCommand,
|
||||||
clearCommand,
|
clearCommand,
|
||||||
|
compactCommand,
|
||||||
|
autocompactCommand,
|
||||||
...fileSlashCommands,
|
...fileSlashCommands,
|
||||||
],
|
],
|
||||||
process.cwd(),
|
process.cwd(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue