feat: update Makelore modules and conversations
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user