feat: integrate learning module
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-08-16 20:52:16 +08:00
parent 26b52d76e3
commit 01bee3188b
107 changed files with 6318 additions and 12063 deletions

View File

@@ -334,7 +334,6 @@ describe('AgentConversationSidebar', () => {
expect(await screen.findByLabelText('绑定技能:开发浏览器')).toBeInTheDocument();
expect(hostApiFetchMock).toHaveBeenCalledWith('/api/opencode/skills');
fireEvent.click(screen.getByLabelText('绑定技能:开发浏览器'));
fireEvent.change(screen.getByLabelText(/伙伴名称/), { target: { value: '小李' } });
fireEvent.change(screen.getByLabelText(/职责简述/), { target: { value: '负责整理资料。' } });
fireEvent.click(screen.getByRole('button', { name: '创建并开始对话' }));
@@ -344,7 +343,7 @@ describe('AgentConversationSidebar', () => {
})));
});
it('defaults only the planning Skills and leaves presentation optional', async () => {
it('defaults the browser and planning Skills and leaves presentation optional', async () => {
hostApiFetchMock.mockResolvedValue({
skills: [
{ name: 'agent-browser' },
@@ -365,7 +364,7 @@ describe('AgentConversationSidebar', () => {
expect(grilling).toBeChecked();
expect(planning).toBeChecked();
expect(slides).not.toBeChecked();
expect(browser).not.toBeChecked();
expect(browser).toBeChecked();
});
fireEvent.click(grilling);
expect(grilling).not.toBeChecked();
@@ -374,7 +373,7 @@ describe('AgentConversationSidebar', () => {
fireEvent.click(screen.getByRole('button', { name: '创建并开始对话' }));
await waitFor(() => expect(callbacks.onCreateAgent).toHaveBeenCalledWith(expect.objectContaining({
skillIds: ['planning-with-files'],
skillIds: ['agent-browser', 'planning-with-files'],
})));
});