@comfyorg/comfyui-desktop-bridge-types 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,6 +135,9 @@ export interface ComfyDesktop2AuthBridge {
135
135
  /** Signs Desktop out of its account (every view follows) and resolves with
136
136
  * the resulting state; Desktop may keep the session if an install needs it. */
137
137
  signOut(): Promise<ComfyDesktop2AuthState>
138
+ /** Re-scopes Desktop's session to `workspaceId` (browser consent the first
139
+ * time) and resolves with the resulting state; every view follows. */
140
+ switchWorkspace(workspaceId: string): Promise<ComfyDesktop2AuthState>
138
141
  /** Fires when Desktop signs in, signs out or switches workspace. */
139
142
  onChanged(callback: (state: ComfyDesktop2AuthState) => void): () => void
140
143
  }
@@ -166,7 +169,6 @@ export interface ComfyDesktop2Bridge {
166
169
  * Optional: desktop builds predating it are still in the wild. */
167
170
  isRemote?(): boolean
168
171
  openTerminal?: () => Promise<boolean>
169
- openMcpSetup?: () => Promise<boolean>
170
172
  /** Opens a model provider access page in the hosted frontend's browser session.
171
173
  * Resolves `true` when the host has taken ownership of the request.
172
174
  * On `false` or rejection the frontend falls back to opening a new tab. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-desktop-bridge-types",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "TypeScript definitions for the Comfy Desktop hosted frontend bridge",
5
5
  "type": "module",
6
6
  "main": "./index.js",