File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
172180export 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. */
You can’t perform that action at this time.
0 commit comments