MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / Window

Interface Window

ai-code-studio/src/electron.d.ts:4–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3declare global {
4 interface Window {
5 clawDesktop?: {
6 getBootstrap: () => Promise<{
7 isDesktop: boolean
8 upstreamApiKey: string
9 encryptionAvailable: boolean
10 appInfo?: {
11 productName: string
12 version: string
13 description: string
14 electronVersion: string
15 nodeVersion: string
16 chromeVersion: string
17 platform: string
18 launcherUrl: string
19 userDataPath?: string
20 } | null
21 }>
22 setSecret: (key: string, value: string) => Promise<{ ok: boolean }>
23 pickDirectory: () => Promise<string | null>
24 pickFile: (filters?: Array<{ name: string; extensions: string[] }>) => Promise<string | null>
25 saveTextFile: (payload: {
26 defaultPath?: string
27 content: string
28 filters?: Array<{ name: string; extensions: string[] }>
29 }) => Promise<{ ok: boolean; canceled?: boolean; filePath?: string }>
30 restartLauncher: () => Promise<{ ok: boolean; url: string }>
31 onCommand: (
32 callback: (payload: { type: string; command?: string }) => void,
33 ) => (() => void) | void
34 onHostStatus: (
35 callback: (payload: { type: string; message?: string }) => void,
36 ) => (() => void) | void
37 }
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected