fix: satisfy skill sync type checks

This commit is contained in:
Danny Avila 2026-06-07 21:59:51 -04:00
parent bd9b648034
commit 0799bcd791
2 changed files with 11 additions and 2 deletions

View file

@ -172,7 +172,7 @@ function createDeps(
}),
getCredentialToken: jest.fn(async () => 'github_pat_secret'),
getCredentialSummary: jest.fn(async () => ({
provider: 'github',
provider: 'github' as const,
credentialKey: 'github-skills-prod',
credentialPresent: true,
tokenFingerprint: 'abc123',
@ -1512,7 +1512,7 @@ describe('createGitHubSkillSyncRunner', () => {
tryAcquireLock: jest.fn(async () => false),
listCredentials: jest.fn(async () => [
{
provider: 'github',
provider: 'github' as const,
credentialKey: 'github-skills-prod',
credentialPresent: true,
tokenFingerprint: 'abc123',

View file

@ -905,6 +905,15 @@ export function createSkillMethods(
}) => Promise<UpdateSkillResult>;
deleteSkill: (id: string) => Promise<{ deleted: boolean }>;
deleteUserSkills: (userId: Types.ObjectId | string) => Promise<number>;
findSkillBySourceIdentity: (params: {
source: 'github' | 'notion';
upstreamId: string;
tenantId?: string;
}) => Promise<(ISkill & { _id: Types.ObjectId }) | null>;
listSkillsBySource: (params: {
source: 'github' | 'notion';
sourceId: string;
}) => Promise<Array<ISkill & { _id: Types.ObjectId }>>;
listSkillFiles: (
skillId: Types.ObjectId | string,
) => Promise<Array<ISkillFile & { _id: Types.ObjectId }>>;