This commit is contained in:
ZacharyZhang-NY committed 2026-04-04 17:01:26 -04:00
1 parent 67c757f481
commit b8dda3c8d0
77 files changed
+1577 -2808

No files matched your search

+5 -7
View File
@@ -17,6 +17,10 @@ interface BrowserActionControl {
screenshotPath: string | null;
error: string | null;
}>;
extractProfileFromSession: (socialAccountId: string, platform: string) => Promise<{
accountName: string;
displayName: string;
}>;
}
export interface RegisterDomainHandlersDependencies {
@@ -48,10 +52,4 @@ export interface RegisterDomainHandlersDependencies {
onHumanMessage?: (companyId: string, toAgentId?: string | null, threadId?: string | null, waitStateId?: string | null) => void;
}
export function ok<T>(data: T): DesktopResult<T> {
return { ok: true, data };
}
export function fail(code: string, message: string): DesktopResult<never> {
return { ok: false, error: { code, message } };
}
export { ok, fail } from "./ipc-core-common";