| 56 | var Prism: unknown |
| 57 | |
| 58 | interface Window { |
| 59 | howcodeDevWebBridge?: boolean |
| 60 | piDesktop?: { |
| 61 | getAppUpdateState?: () => Promise<AppUpdateState> |
| 62 | checkAppUpdate?: () => Promise<AppUpdateState> |
| 63 | installAppUpdate?: () => Promise<AppUpdateState> |
| 64 | restartAppUpdate?: () => Promise<AppUpdateState> |
| 65 | clearClipboardImages?: () => Promise<{ clearedCount: number; clearFailedCount: number }> |
| 66 | getShellState: () => Promise<ShellState> |
| 67 | getProjectGitState?: (projectId: string) => Promise<ProjectGitState | null> |
| 68 | getProjectDiff?: ( |
| 69 | projectId: string, |
| 70 | baseline?: ProjectDiffBaseline | null, |
| 71 | ) => Promise<ProjectDiffResult | null> |
| 72 | getProjectDiffStats?: ( |
| 73 | projectId: string, |
| 74 | baseline?: ProjectDiffBaseline | null, |
| 75 | ) => Promise<ProjectDiffStatsResult | null> |
| 76 | captureProjectDiffBaseline?: ( |
| 77 | projectId: string, |
| 78 | ) => Promise<ProjectDiffResolvedBaseline | null> |
| 79 | listProjectCommits?: ( |
| 80 | projectId: string, |
| 81 | limit?: number | null | undefined, |
| 82 | ) => Promise<ProjectCommitEntry[]> |
| 83 | searchPiPackages?: (request?: { |
| 84 | query?: string | null | undefined |
| 85 | cursor?: number | null | undefined |
| 86 | pageSize?: number | null | undefined |
| 87 | }) => Promise<PiPackageCatalogPage> |
| 88 | getConfiguredPiPackages?: (request?: { |
| 89 | projectPath?: string | null | undefined |
| 90 | chat?: boolean | undefined |
| 91 | }) => Promise<PiConfiguredPackage[]> |
| 92 | installPiPackage?: (request: { |
| 93 | source: string |
| 94 | kind?: 'npm' | 'git' | undefined |
| 95 | local?: boolean | undefined |
| 96 | projectPath?: string | null | undefined |
| 97 | chat?: boolean | undefined |
| 98 | }) => Promise<PiPackageMutationResult> |
| 99 | removePiPackage?: (request: { |
| 100 | source: string |
| 101 | local?: boolean | undefined |
| 102 | projectPath?: string | null | undefined |
| 103 | chat?: boolean | undefined |
| 104 | }) => Promise<PiPackageMutationResult> |
| 105 | searchPiSkills?: (request?: { |
| 106 | query?: string | null | undefined |
| 107 | limit?: number | null | undefined |
| 108 | }) => Promise<PiSkillCatalogPage> |
| 109 | getConfiguredPiSkills?: (request?: { |
| 110 | projectPath?: string | null | undefined |
| 111 | chat?: boolean | undefined |
| 112 | }) => Promise<PiConfiguredSkill[]> |
| 113 | installPiSkill?: (request: { |
| 114 | source: string |
| 115 | local?: boolean | undefined |
nothing calls this directly
no outgoing calls
no test coverage detected