This commit is contained in:
Nathan Flurry 2026-03-14 14:38:29 -07:00 committed by GitHub
parent 70d31f819c
commit 5ea9ec5e2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 2605 additions and 669 deletions

View file

@ -112,6 +112,10 @@ interface WorkspaceHandle {
closeWorkbenchSession(input: TaskWorkbenchTabInput): Promise<void>;
publishWorkbenchPr(input: TaskWorkbenchSelectInput): Promise<void>;
revertWorkbenchFile(input: TaskWorkbenchDiffInput): Promise<void>;
reloadGithubOrganization(): Promise<void>;
reloadGithubPullRequests(): Promise<void>;
reloadGithubRepository(input: { repoId: string }): Promise<void>;
reloadGithubPullRequest(input: { repoId: string; prNumber: number }): Promise<void>;
}
interface AppWorkspaceHandle {
@ -296,6 +300,10 @@ export interface BackendClient {
closeWorkbenchSession(workspaceId: string, input: TaskWorkbenchTabInput): Promise<void>;
publishWorkbenchPr(workspaceId: string, input: TaskWorkbenchSelectInput): Promise<void>;
revertWorkbenchFile(workspaceId: string, input: TaskWorkbenchDiffInput): Promise<void>;
reloadGithubOrganization(workspaceId: string): Promise<void>;
reloadGithubPullRequests(workspaceId: string): Promise<void>;
reloadGithubRepository(workspaceId: string, repoId: string): Promise<void>;
reloadGithubPullRequest(workspaceId: string, repoId: string, prNumber: number): Promise<void>;
health(): Promise<{ ok: true }>;
useWorkspace(workspaceId: string): Promise<{ workspaceId: string }>;
starSandboxAgentRepo(workspaceId: string): Promise<StarSandboxAgentRepoResult>;
@ -1182,6 +1190,22 @@ export function createBackendClient(options: BackendClientOptions): BackendClien
await (await workspace(workspaceId)).revertWorkbenchFile(input);
},
async reloadGithubOrganization(workspaceId: string): Promise<void> {
await (await workspace(workspaceId)).reloadGithubOrganization();
},
async reloadGithubPullRequests(workspaceId: string): Promise<void> {
await (await workspace(workspaceId)).reloadGithubPullRequests();
},
async reloadGithubRepository(workspaceId: string, repoId: string): Promise<void> {
await (await workspace(workspaceId)).reloadGithubRepository({ repoId });
},
async reloadGithubPullRequest(workspaceId: string, repoId: string, prNumber: number): Promise<void> {
await (await workspace(workspaceId)).reloadGithubPullRequest({ repoId, prNumber });
},
async health(): Promise<{ ok: true }> {
const workspaceId = options.defaultWorkspaceId;
if (!workspaceId) {