mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
Wire up /compact and /autocompact slash commands
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user