feat(02-03): add 7 skill IPC channels with Zod schemas and register handlers
- Add importSkill, listSkills, getSkillDetail, deleteSkill, assignSkillToAgent, removeSkillFromAgent, checkSkillUpdate IPC channels - Add Zod validation schemas for all skill payloads in contracts.ts - Create ipc-skill-handlers.ts with company existence checks and domain-changed events on mutations - Add SkillRecord, SkillImportResult, SkillUpdateStatus types to shared/types.ts - Wire registerSkillHandlers into ipc-domain-handlers.ts - Add skillService to RegisterDomainHandlersDependencies interface
This commit is contained in:
1 parent
c9111d2f6d
commit
b5ad164338
5 files changed
+225
-1
No files matched your search
@@ -3,6 +3,7 @@ import { z } from "zod";
|
||||
import type { DesktopResult } from "@shared/contracts";
|
||||
import type { bootstrapOnboardingSchema } from "@shared/contracts";
|
||||
import type { AppDatabase } from "./database";
|
||||
import type { createSkillService } from "./skill-service";
|
||||
|
||||
export interface BrowserActionControl {
|
||||
clearSocialAccountData: (socialAccountId: string, screenshotPaths?: string[]) => Promise<void>;
|
||||
@@ -38,6 +39,7 @@ export interface RegisterDomainHandlersDependencies {
|
||||
bootstrapOnboarding: (input: z.infer<typeof bootstrapOnboardingSchema>) => unknown;
|
||||
getBrowserActions: () => BrowserActionControl | null;
|
||||
randomFallbackCompanyId: () => string;
|
||||
skillService: ReturnType<typeof createSkillService> | null;
|
||||
}
|
||||
|
||||
export function ok<T>(data: T): DesktopResult<T> {
|
||||
|
||||
Reference in new issue
Block a user