mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 13:04:11 +00:00
wip(foundry): continue actor refactor
This commit is contained in:
parent
e97c502d28
commit
6f85b59f31
7 changed files with 236 additions and 200 deletions
|
|
@ -246,7 +246,6 @@ export function createMockBackendClient(defaultOrganizationId = "default"): Back
|
|||
};
|
||||
}),
|
||||
taskSummaries,
|
||||
openPullRequests: [],
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -464,7 +463,7 @@ export function createMockBackendClient(defaultOrganizationId = "default"): Back
|
|||
async getRepoOverview(_organizationId: string, _repoId: string): Promise<RepoOverview> {
|
||||
notSupported("getRepoOverview");
|
||||
},
|
||||
async getTask(_organizationId: string, taskId: string): Promise<TaskRecord> {
|
||||
async getTask(_organizationId: string, _repoId: string, taskId: string): Promise<TaskRecord> {
|
||||
return buildTaskRecord(taskId);
|
||||
},
|
||||
|
||||
|
|
@ -472,7 +471,7 @@ export function createMockBackendClient(defaultOrganizationId = "default"): Back
|
|||
return [];
|
||||
},
|
||||
|
||||
async switchTask(_organizationId: string, taskId: string): Promise<SwitchResult> {
|
||||
async switchTask(_organizationId: string, _repoId: string, taskId: string): Promise<SwitchResult> {
|
||||
return {
|
||||
organizationId: defaultOrganizationId,
|
||||
taskId,
|
||||
|
|
@ -481,14 +480,14 @@ export function createMockBackendClient(defaultOrganizationId = "default"): Back
|
|||
};
|
||||
},
|
||||
|
||||
async attachTask(_organizationId: string, taskId: string): Promise<{ target: string; sessionId: string | null }> {
|
||||
async attachTask(_organizationId: string, _repoId: string, taskId: string): Promise<{ target: string; sessionId: string | null }> {
|
||||
return {
|
||||
target: `mock://${taskId}`,
|
||||
sessionId: requireTask(taskId).sessions[0]?.sessionId ?? null,
|
||||
};
|
||||
},
|
||||
|
||||
async runAction(_organizationId: string, _taskId: string): Promise<void> {
|
||||
async runAction(_organizationId: string, _repoId: string, _taskId: string): Promise<void> {
|
||||
notSupported("runAction");
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue