mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
feat(cli): add /compact alias for /compress command (#21711)
This commit is contained in:
@@ -131,4 +131,12 @@ describe('compressCommand', () => {
|
|||||||
await compressCommand.action!(context, '');
|
await compressCommand.action!(context, '');
|
||||||
expect(context.ui.setPendingItem).toHaveBeenCalledWith(null);
|
expect(context.ui.setPendingItem).toHaveBeenCalledWith(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('metadata', () => {
|
||||||
|
it('should have the correct name and aliases', () => {
|
||||||
|
expect(compressCommand.name).toBe('compress');
|
||||||
|
expect(compressCommand.altNames).toContain('summarize');
|
||||||
|
expect(compressCommand.altNames).toContain('compact');
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { CommandKind } from './types.js';
|
|||||||
|
|
||||||
export const compressCommand: SlashCommand = {
|
export const compressCommand: SlashCommand = {
|
||||||
name: 'compress',
|
name: 'compress',
|
||||||
altNames: ['summarize'],
|
altNames: ['summarize', 'compact'],
|
||||||
description: 'Compresses the context by replacing it with a summary',
|
description: 'Compresses the context by replacing it with a summary',
|
||||||
kind: CommandKind.BUILT_IN,
|
kind: CommandKind.BUILT_IN,
|
||||||
autoExecute: true,
|
autoExecute: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user