mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Update workspace model ownership flows
This commit is contained in:
@@ -79,6 +79,7 @@ import type {
|
||||
SendAgentMessageRequest,
|
||||
PaseoConfigRaw,
|
||||
PaseoConfigRevision,
|
||||
WorkspaceCreateRequest,
|
||||
} from "@getpaseo/protocol/messages";
|
||||
import type {
|
||||
AgentPermissionRequest,
|
||||
@@ -3257,12 +3258,9 @@ export class DaemonClient {
|
||||
|
||||
async createWorkspace(
|
||||
input: {
|
||||
backing: "local" | "worktree";
|
||||
cwd?: string;
|
||||
projectId?: string;
|
||||
branch?: string;
|
||||
baseBranch?: string;
|
||||
source: WorkspaceCreateRequest["source"];
|
||||
title?: string;
|
||||
firstAgentContext?: WorkspaceCreateRequest["firstAgentContext"];
|
||||
},
|
||||
requestId?: string,
|
||||
): Promise<WorkspaceCreatePayload> {
|
||||
@@ -3270,12 +3268,11 @@ export class DaemonClient {
|
||||
requestId,
|
||||
message: {
|
||||
type: "workspace.create.request",
|
||||
backing: input.backing,
|
||||
...(input.cwd !== undefined ? { cwd: input.cwd } : {}),
|
||||
...(input.projectId !== undefined ? { projectId: input.projectId } : {}),
|
||||
...(input.branch !== undefined ? { branch: input.branch } : {}),
|
||||
...(input.baseBranch !== undefined ? { baseBranch: input.baseBranch } : {}),
|
||||
source: input.source,
|
||||
...(input.title !== undefined ? { title: input.title } : {}),
|
||||
...(input.firstAgentContext !== undefined
|
||||
? { firstAgentContext: input.firstAgentContext }
|
||||
: {}),
|
||||
},
|
||||
responseType: "workspace.create.response",
|
||||
timeout: 60000,
|
||||
|
||||
Reference in New Issue
Block a user