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

@@ -74,22 +74,22 @@ describe('user sync contract sanitizers', () => {
it('keeps global partner metadata but excludes project runtime fields', () => {
const result = toUserSyncPartner({
id: 'nitu-pm-test',
id: 'makelore-pm-test',
displayName: 'PM',
templateRoleId: 'pm',
templateRoleId: 'custom',
description: 'Reusable partner',
prompt: 'Reusable prompt',
skillIds: ['pm-project-plan'],
filePath: 'D:/repo/.opencode/agent/nitu-pm-test.md',
filePath: 'D:/repo/.opencode/agent/makelore-pm-test.md',
projectRuntimeConfigsByProjectId: { prj_1: { filePath: 'D:/repo/file.md' } },
createdAt: '2026-07-04T00:00:00.000Z',
updatedAt: '2026-07-04T00:00:00.000Z',
} as never);
expect(result).toEqual({
id: 'nitu-pm-test',
id: 'makelore-pm-test',
displayName: 'PM',
templateRoleId: 'pm',
templateRoleId: 'custom',
description: 'Reusable partner',
prompt: 'Reusable prompt',
skillIds: ['pm-project-plan'],
@@ -119,11 +119,11 @@ describe('user sync contract sanitizers', () => {
updated_at: '2026-07-04T00:00:00.000Z',
}],
partners: [{
id: 'nitu-pm-test',
id: 'makelore-pm-test',
display_name: 'PM',
template_role_id: 'pm',
template_role_id: 'custom',
skill_ids: ['pm-project-plan'],
file_path: 'D:/repo/.opencode/agent/nitu-pm-test.md',
file_path: 'D:/repo/.opencode/agent/makelore-pm-test.md',
created_at: '2026-07-04T00:00:00.000Z',
updated_at: '2026-07-04T00:00:00.000Z',
}],
@@ -145,9 +145,9 @@ describe('user sync contract sanitizers', () => {
updatedAt: '2026-07-04T00:00:00.000Z',
}]);
expect(result.partners).toEqual([{
id: 'nitu-pm-test',
id: 'makelore-pm-test',
displayName: 'PM',
templateRoleId: 'pm',
templateRoleId: 'custom',
skillIds: ['pm-project-plan'],
createdAt: '2026-07-04T00:00:00.000Z',
updatedAt: '2026-07-04T00:00:00.000Z',
@@ -183,16 +183,16 @@ describe('user sync contract sanitizers', () => {
});
expect(toServerUserSyncPartner({
id: 'nitu-pm-test',
id: 'makelore-pm-test',
displayName: 'PM',
templateRoleId: 'pm',
templateRoleId: 'custom',
skillIds: ['pm-project-plan'],
createdAt: '2026-07-04T00:00:00.000Z',
updatedAt: '2026-07-04T00:00:00.000Z',
})).toEqual({
id: 'nitu-pm-test',
id: 'makelore-pm-test',
display_name: 'PM',
template_role_id: 'pm',
template_role_id: 'custom',
skill_ids: ['pm-project-plan'],
created_at: '2026-07-04T00:00:00.000Z',
updated_at: '2026-07-04T00:00:00.000Z',