@comfyorg/comfyui-desktop-bridge-types 0.2.0 → 0.2.1

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.
@@ -36,6 +36,10 @@ export type ComfyDesktop2TelemetryProperties = Record<
36
36
  string,
37
37
  ComfyDesktop2TelemetryValue | ComfyDesktop2TelemetryValue[]
38
38
  >
39
+ export interface ComfyDesktop2Error {
40
+ message: string
41
+ stack?: string
42
+ }
39
43
  export type ComfyDesktop2FirebaseAuthState =
40
44
  | {
41
45
  status: 'pending'
@@ -65,6 +69,8 @@ export interface ComfyDesktop2LogsBridge {
65
69
  }
66
70
  export interface ComfyDesktop2TelemetryBridge {
67
71
  capture(event: string, properties?: ComfyDesktop2TelemetryProperties): void
72
+ /** Capture a hosted-frontend exception through Desktop's privacy and release-context boundary. */
73
+ captureException?(error: ComfyDesktop2Error, properties?: ComfyDesktop2TelemetryProperties): void
68
74
  /** Report the hosted view's complete Firebase state for process-wide consensus. */
69
75
  reportFirebaseAuthState?(state: ComfyDesktop2FirebaseAuthState): void
70
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-desktop-bridge-types",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript definitions for the Comfy Desktop hosted frontend bridge",
5
5
  "type": "module",
6
6
  "main": "./index.js",