Skip to content

Commit 70eebca

Browse files
Sync public snapshot from freebuff-private
1 parent 32b1305 commit 70eebca

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎common/src/desktop-cloud/hosted-workspace.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ export type HostedNativeAgentsRequest = {
169169
harness?: 'claude-code' | 'codex'
170170
}
171171

172+
/** Folder paths stay in Electron; the hosted form receives only a scoped selection receipt. */
173+
export type HostedLocalProjectInput = {
174+
id: string
175+
name: string
176+
folderId?: string
177+
templateId?: string
178+
}
179+
172180
export type HostedWorkspaceHost = {
173181
nativeAgents?(input: HostedNativeAgentsRequest): Promise<{ agents: HostedNativeAgent[] }>
174182
/** Answers only a native-issued quit request; never grants a generic IPC capability. */
@@ -259,6 +267,10 @@ export type HostedWorkspaceHost = {
259267
completeProjectSetup?(): Promise<void>
260268
/** A selected project may connect its known local folder; no other folder is enrolled. */
261269
status(projectId?: string, trigger?: 'startup' | 'project-selection' | 'automatic-retry' | 'manual-retry'): Promise<HostedWorkspaceStatus>
270+
localProjects?: {
271+
pickFolder(): Promise<{ id: string; name: string } | null>
272+
create(input: HostedLocalProjectInput): Promise<HostedWorkspaceConnection>
273+
}
262274
openLocalProject(): Promise<HostedWorkspaceConnection | null>
263275
disconnect(sessionId: string): Promise<void>
264276
/** Clears native credentials and the hosted browser session together. */

0 commit comments

Comments
 (0)