feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -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 } : {}),