feat: update Makelore modules and conversations
This commit is contained in:
@@ -27,10 +27,10 @@ function context(overrides: Partial<ChatCommandContext> = {}): ChatCommandContex
|
||||
}
|
||||
|
||||
describe('chat command registry', () => {
|
||||
it('defines the twelve approved built-ins and aliases', () => {
|
||||
it('defines the approved built-ins and aliases', () => {
|
||||
expect(BUILTIN_CHAT_COMMANDS.map((command) => command.name)).toEqual([
|
||||
'share', 'rename', 'timeline', 'fork', 'compact', 'unshare',
|
||||
'undo', 'redo', 'timestamps', 'thinking', 'copy', 'export',
|
||||
'share', 'rename', 'timeline', 'compact', 'unshare',
|
||||
'undo', 'redo', 'timestamps', 'thinking', 'process', 'copy', 'export',
|
||||
]);
|
||||
const catalog = mergeChatCommandCatalog([]);
|
||||
expect(resolveCommandName('summarize', catalog)?.name).toBe('compact');
|
||||
@@ -131,6 +131,7 @@ describe('chat command registry', () => {
|
||||
expect(availability.timeline).toEqual({ enabled: true });
|
||||
expect(availability.timestamps).toEqual({ enabled: true });
|
||||
expect(availability.thinking).toEqual({ enabled: true });
|
||||
expect(availability.process).toEqual({ enabled: true });
|
||||
expect(availability.copy).toEqual({ enabled: true });
|
||||
expect(availability.export).toEqual({ enabled: true });
|
||||
expect(availability.rename).toEqual({ enabled: false, reason: 'OpenCode 运行时未启动' });
|
||||
@@ -159,10 +160,10 @@ describe('chat command registry', () => {
|
||||
buildCommandPaletteItems(catalog, context(overrides))
|
||||
.find((item) => item.inputName === name)?.computedAvailability;
|
||||
|
||||
for (const name of ['share', 'rename', 'timeline', 'undo', 'timestamps', 'thinking', 'copy', 'export']) {
|
||||
for (const name of ['share', 'rename', 'timeline', 'undo', 'timestamps', 'thinking', 'process', 'copy', 'export']) {
|
||||
expect(availabilityFor(name, { busy: true })?.enabled).toBe(true);
|
||||
}
|
||||
for (const name of ['fork', 'compact', 'redo', 'review']) {
|
||||
for (const name of ['compact', 'redo', 'review']) {
|
||||
expect(availabilityFor(name, {
|
||||
busy: true,
|
||||
...(name === 'redo' ? { reverted: true } : {}),
|
||||
|
||||
Reference in New Issue
Block a user