feat: workspace frontend integration (PR-4)

- Add workspace_id parameter to createInstance API client
- Wire WorkspacesPage 'Start Tool' modal to createInstance + startInstance
- Pass workspace_id when creating instance from workspace page
- TypeScript + eslint clean
This commit is contained in:
2026-05-31 23:30:09 +02:00
parent 986091ac56
commit 5bba2bbd92
2 changed files with 23 additions and 4 deletions
+3 -1
View File
@@ -54,13 +54,15 @@ export async function createInstance(
branch?: string,
newBranch?: string,
configProfileId?: string,
sshKeyIds?: string[]
sshKeyIds?: string[],
workspaceId?: string
): Promise<ToolInstance> {
const response = await apiClient.post(
`/projects/${projectId}/repositories/${repoId}/instances`,
{
tool_type_id: toolTypeId,
display_name: displayName,
workspace_id: workspaceId || undefined,
clone_mode: cloneMode || "mount",
branch: branch || undefined,
new_branch: newBranch || undefined,