@qontinui/ui-bridge 0.1.1 → 0.3.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.
- package/dist/ai/index.d.mts +893 -0
- package/dist/ai/index.d.ts +893 -0
- package/dist/ai/index.js +3897 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/index.mjs +3839 -0
- package/dist/ai/index.mjs.map +1 -0
- package/dist/babel-plugin/index.js +515 -0
- package/dist/babel-plugin/index.js.map +1 -0
- package/dist/babel-plugin/index.mjs +499 -0
- package/dist/babel-plugin/index.mjs.map +1 -0
- package/dist/control/index.d.mts +5 -4
- package/dist/control/index.d.ts +5 -4
- package/dist/core/index.d.mts +115 -42
- package/dist/core/index.d.ts +115 -42
- package/dist/core/index.js +0 -983
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +1 -972
- package/dist/core/index.mjs.map +1 -1
- package/dist/debug/index.d.mts +3 -3
- package/dist/debug/index.d.ts +3 -3
- package/dist/index.d.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +8249 -4163
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8193 -4152
- package/dist/index.mjs.map +1 -1
- package/dist/{metrics-QCnK0EFw.d.ts → metrics-BfiT_rhZ.d.ts} +2 -2
- package/dist/{metrics-BCG7z7Aq.d.mts → metrics-DTA2bwG7.d.mts} +2 -2
- package/dist/native/control/index.js +453 -0
- package/dist/native/control/index.js.map +1 -0
- package/dist/native/control/index.mjs +450 -0
- package/dist/native/control/index.mjs.map +1 -0
- package/dist/native/core/index.js +486 -0
- package/dist/native/core/index.js.map +1 -0
- package/dist/native/core/index.mjs +475 -0
- package/dist/native/core/index.mjs.map +1 -0
- package/dist/native/debug/index.js +451 -0
- package/dist/native/debug/index.js.map +1 -0
- package/dist/native/debug/index.mjs +449 -0
- package/dist/native/debug/index.mjs.map +1 -0
- package/dist/native/index.js +2274 -0
- package/dist/native/index.js.map +1 -0
- package/dist/native/index.mjs +2246 -0
- package/dist/native/index.mjs.map +1 -0
- package/dist/native/react/index.js +1401 -0
- package/dist/native/react/index.js.map +1 -0
- package/dist/native/react/index.mjs +1389 -0
- package/dist/native/react/index.mjs.map +1 -0
- package/dist/native/server/index.js +415 -0
- package/dist/native/server/index.js.map +1 -0
- package/dist/native/server/index.mjs +410 -0
- package/dist/native/server/index.mjs.map +1 -0
- package/dist/react/index.d.mts +20 -6
- package/dist/react/index.d.ts +20 -6
- package/dist/react/index.js +629 -14
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +629 -14
- package/dist/react/index.mjs.map +1 -1
- package/dist/{registry-CT6BVVKr.d.mts → registry-BKLEm-yk.d.ts} +29 -14
- package/dist/{registry-D4mQ01B3.d.ts → registry-BmZgyCz8.d.mts} +29 -14
- package/dist/render-log/index.d.mts +1 -1
- package/dist/render-log/index.d.ts +1 -1
- package/dist/server/express.d.mts +36 -0
- package/dist/server/express.d.ts +36 -0
- package/dist/server/express.js +196 -0
- package/dist/server/express.js.map +1 -0
- package/dist/server/express.mjs +192 -0
- package/dist/server/express.mjs.map +1 -0
- package/dist/server/handlers.d.mts +93 -0
- package/dist/server/handlers.d.ts +93 -0
- package/dist/server/handlers.js +4278 -0
- package/dist/server/handlers.js.map +1 -0
- package/dist/server/handlers.mjs +4275 -0
- package/dist/server/handlers.mjs.map +1 -0
- package/dist/server/index.d.mts +10 -0
- package/dist/server/index.d.ts +10 -0
- package/dist/server/index.js +5352 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +5337 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/nextjs.d.mts +126 -0
- package/dist/server/nextjs.d.ts +126 -0
- package/dist/server/nextjs.js +287 -0
- package/dist/server/nextjs.js.map +1 -0
- package/dist/server/nextjs.mjs +282 -0
- package/dist/server/nextjs.mjs.map +1 -0
- package/dist/server/standalone.d.mts +6 -0
- package/dist/server/standalone.d.ts +6 -0
- package/dist/server/standalone.js +719 -0
- package/dist/server/standalone.js.map +1 -0
- package/dist/server/standalone.mjs +715 -0
- package/dist/server/standalone.mjs.map +1 -0
- package/dist/standalone-BURj8J3G.d.ts +212 -0
- package/dist/standalone-Dwmel29d.d.mts +212 -0
- package/dist/swc-plugin/index.d.mts +79 -0
- package/dist/swc-plugin/index.d.ts +79 -0
- package/dist/swc-plugin/index.js +15 -0
- package/dist/swc-plugin/index.js.map +1 -0
- package/dist/swc-plugin/index.mjs +9 -0
- package/dist/swc-plugin/index.mjs.map +1 -0
- package/dist/types-B5Q0GVo0.d.mts +646 -0
- package/dist/{types-DdJD9yw5.d.mts → types-B7J7noLK.d.mts} +1 -1
- package/dist/{types-BDkXy5si.d.ts → types-BkNRILUa.d.ts} +1 -1
- package/dist/types-CEQLnFMv.d.mts +156 -0
- package/dist/types-CHnlwiTK.d.ts +156 -0
- package/dist/types-DfPqwU-i.d.ts +646 -0
- package/dist/{types-BpvpStn3.d.mts → types-jKVgTI6_.d.mts} +364 -160
- package/dist/{types-BpvpStn3.d.ts → types-jKVgTI6_.d.ts} +364 -160
- package/package.json +111 -3
- package/swc-plugin-wasm/ui_bridge_swc_plugin.wasm +0 -0
- package/dist/websocket-client-B2LC9CYc.d.mts +0 -124
- package/dist/websocket-client-DupH0X7B.d.ts +0 -124
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qontinui/ui-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "UI Bridge Framework - React hooks and providers for UI observation, control, and debugging",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -35,10 +35,80 @@
|
|
|
35
35
|
"types": "./dist/debug/index.d.ts",
|
|
36
36
|
"import": "./dist/debug/index.mjs",
|
|
37
37
|
"require": "./dist/debug/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./ai": {
|
|
40
|
+
"types": "./dist/ai/index.d.ts",
|
|
41
|
+
"import": "./dist/ai/index.mjs",
|
|
42
|
+
"require": "./dist/ai/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./server": {
|
|
45
|
+
"types": "./dist/server/index.d.ts",
|
|
46
|
+
"import": "./dist/server/index.mjs",
|
|
47
|
+
"require": "./dist/server/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./server/express": {
|
|
50
|
+
"types": "./dist/server/express.d.ts",
|
|
51
|
+
"import": "./dist/server/express.mjs",
|
|
52
|
+
"require": "./dist/server/express.js"
|
|
53
|
+
},
|
|
54
|
+
"./server/nextjs": {
|
|
55
|
+
"types": "./dist/server/nextjs.d.ts",
|
|
56
|
+
"import": "./dist/server/nextjs.mjs",
|
|
57
|
+
"require": "./dist/server/nextjs.js"
|
|
58
|
+
},
|
|
59
|
+
"./server/standalone": {
|
|
60
|
+
"types": "./dist/server/standalone.d.ts",
|
|
61
|
+
"import": "./dist/server/standalone.mjs",
|
|
62
|
+
"require": "./dist/server/standalone.js"
|
|
63
|
+
},
|
|
64
|
+
"./server/handlers": {
|
|
65
|
+
"types": "./dist/server/handlers.d.ts",
|
|
66
|
+
"import": "./dist/server/handlers.mjs",
|
|
67
|
+
"require": "./dist/server/handlers.js"
|
|
68
|
+
},
|
|
69
|
+
"./babel-plugin": {
|
|
70
|
+
"import": "./dist/babel-plugin/index.mjs",
|
|
71
|
+
"require": "./dist/babel-plugin/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./swc-plugin": {
|
|
74
|
+
"types": "./dist/swc-plugin/index.d.ts",
|
|
75
|
+
"import": "./dist/swc-plugin/index.mjs",
|
|
76
|
+
"require": "./dist/swc-plugin/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./native": {
|
|
79
|
+
"types": "./dist/native/index.d.ts",
|
|
80
|
+
"import": "./dist/native/index.mjs",
|
|
81
|
+
"require": "./dist/native/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./native/core": {
|
|
84
|
+
"types": "./dist/native/core/index.d.ts",
|
|
85
|
+
"import": "./dist/native/core/index.mjs",
|
|
86
|
+
"require": "./dist/native/core/index.js"
|
|
87
|
+
},
|
|
88
|
+
"./native/react": {
|
|
89
|
+
"types": "./dist/native/react/index.d.ts",
|
|
90
|
+
"import": "./dist/native/react/index.mjs",
|
|
91
|
+
"require": "./dist/native/react/index.js"
|
|
92
|
+
},
|
|
93
|
+
"./native/control": {
|
|
94
|
+
"types": "./dist/native/control/index.d.ts",
|
|
95
|
+
"import": "./dist/native/control/index.mjs",
|
|
96
|
+
"require": "./dist/native/control/index.js"
|
|
97
|
+
},
|
|
98
|
+
"./native/server": {
|
|
99
|
+
"types": "./dist/native/server/index.d.ts",
|
|
100
|
+
"import": "./dist/native/server/index.mjs",
|
|
101
|
+
"require": "./dist/native/server/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./native/debug": {
|
|
104
|
+
"types": "./dist/native/debug/index.d.ts",
|
|
105
|
+
"import": "./dist/native/debug/index.mjs",
|
|
106
|
+
"require": "./dist/native/debug/index.js"
|
|
38
107
|
}
|
|
39
108
|
},
|
|
40
109
|
"files": [
|
|
41
110
|
"dist",
|
|
111
|
+
"swc-plugin-wasm/ui_bridge_swc_plugin.wasm",
|
|
42
112
|
"README.md"
|
|
43
113
|
],
|
|
44
114
|
"scripts": {
|
|
@@ -50,14 +120,48 @@
|
|
|
50
120
|
"lint": "eslint src --ext .ts,.tsx",
|
|
51
121
|
"format": "prettier --write \"src/**/*.{ts,tsx}\""
|
|
52
122
|
},
|
|
123
|
+
"dependencies": {
|
|
124
|
+
"@babel/helper-plugin-utils": "^7.22.0"
|
|
125
|
+
},
|
|
53
126
|
"peerDependencies": {
|
|
54
127
|
"react": "^18.0.0 || ^19.0.0",
|
|
55
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
128
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
129
|
+
"react-native": ">=0.70.0",
|
|
130
|
+
"express": "^4.18.0",
|
|
131
|
+
"next": ">=13.0.0",
|
|
132
|
+
"ws": "^8.0.0",
|
|
133
|
+
"@babel/core": "^7.0.0"
|
|
134
|
+
},
|
|
135
|
+
"peerDependenciesMeta": {
|
|
136
|
+
"react-dom": {
|
|
137
|
+
"optional": true
|
|
138
|
+
},
|
|
139
|
+
"react-native": {
|
|
140
|
+
"optional": true
|
|
141
|
+
},
|
|
142
|
+
"express": {
|
|
143
|
+
"optional": true
|
|
144
|
+
},
|
|
145
|
+
"next": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"ws": {
|
|
149
|
+
"optional": true
|
|
150
|
+
},
|
|
151
|
+
"@babel/core": {
|
|
152
|
+
"optional": true
|
|
153
|
+
}
|
|
56
154
|
},
|
|
57
155
|
"devDependencies": {
|
|
156
|
+
"@babel/core": "^7.23.0",
|
|
157
|
+
"@babel/types": "^7.23.0",
|
|
58
158
|
"@testing-library/react": "^14.1.0",
|
|
159
|
+
"@types/babel__core": "^7.20.0",
|
|
160
|
+
"@types/express": "^4.17.21",
|
|
161
|
+
"@types/node": "^20.10.0",
|
|
59
162
|
"@types/react": "^18.2.0",
|
|
60
163
|
"@types/react-dom": "^18.2.0",
|
|
164
|
+
"@types/ws": "^8.5.0",
|
|
61
165
|
"jsdom": "^23.0.0",
|
|
62
166
|
"react": "^18.2.0",
|
|
63
167
|
"react-dom": "^18.2.0",
|
|
@@ -78,6 +182,10 @@
|
|
|
78
182
|
"testing",
|
|
79
183
|
"ai",
|
|
80
184
|
"debugging",
|
|
81
|
-
"hooks"
|
|
185
|
+
"hooks",
|
|
186
|
+
"server",
|
|
187
|
+
"babel-plugin",
|
|
188
|
+
"swc-plugin",
|
|
189
|
+
"react-native"
|
|
82
190
|
]
|
|
83
191
|
}
|
|
Binary file
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { W as WSClientConfig, t as WSConnectionState, X as WSSubscriptionOptions, e as BridgeEventType, f as BridgeSnapshot, a as ActionRequest, b as ActionResponse, c as BridgeEvent } from './types-BpvpStn3.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* WebSocket Client for UI Bridge
|
|
5
|
-
*
|
|
6
|
-
* Provides real-time communication with UI Bridge server.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* WebSocket client for UI Bridge
|
|
11
|
-
*/
|
|
12
|
-
declare class UIBridgeWSClient {
|
|
13
|
-
private ws;
|
|
14
|
-
private config;
|
|
15
|
-
private state;
|
|
16
|
-
private clientId;
|
|
17
|
-
private reconnectAttempts;
|
|
18
|
-
private reconnectTimer;
|
|
19
|
-
private pingTimer;
|
|
20
|
-
private pendingRequests;
|
|
21
|
-
private connectionListeners;
|
|
22
|
-
private eventListeners;
|
|
23
|
-
private errorListeners;
|
|
24
|
-
private subscriptions;
|
|
25
|
-
constructor(config: WSClientConfig);
|
|
26
|
-
/**
|
|
27
|
-
* Get current connection state
|
|
28
|
-
*/
|
|
29
|
-
get connectionState(): WSConnectionState;
|
|
30
|
-
/**
|
|
31
|
-
* Get assigned client ID
|
|
32
|
-
*/
|
|
33
|
-
get id(): string | null;
|
|
34
|
-
/**
|
|
35
|
-
* Connect to the WebSocket server
|
|
36
|
-
*/
|
|
37
|
-
connect(): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Disconnect from the server
|
|
40
|
-
*/
|
|
41
|
-
disconnect(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Subscribe to events
|
|
44
|
-
*/
|
|
45
|
-
subscribe(options: WSSubscriptionOptions): Promise<BridgeEventType[]>;
|
|
46
|
-
/**
|
|
47
|
-
* Unsubscribe from events
|
|
48
|
-
*/
|
|
49
|
-
unsubscribe(events?: BridgeEventType[]): Promise<BridgeEventType[]>;
|
|
50
|
-
/**
|
|
51
|
-
* Find elements
|
|
52
|
-
*/
|
|
53
|
-
find(options?: {
|
|
54
|
-
interactiveOnly?: boolean;
|
|
55
|
-
includeState?: boolean;
|
|
56
|
-
selector?: string;
|
|
57
|
-
}): Promise<BridgeSnapshot['elements']>;
|
|
58
|
-
/**
|
|
59
|
-
* Discover elements
|
|
60
|
-
* @deprecated Use find() instead
|
|
61
|
-
*/
|
|
62
|
-
discover(options?: {
|
|
63
|
-
interactiveOnly?: boolean;
|
|
64
|
-
includeState?: boolean;
|
|
65
|
-
selector?: string;
|
|
66
|
-
}): Promise<BridgeSnapshot['elements']>;
|
|
67
|
-
/**
|
|
68
|
-
* Get element details
|
|
69
|
-
*/
|
|
70
|
-
getElement(elementId: string, includeState?: boolean): Promise<BridgeSnapshot['elements'][0] | null>;
|
|
71
|
-
/**
|
|
72
|
-
* Get full snapshot
|
|
73
|
-
*/
|
|
74
|
-
getSnapshot(): Promise<BridgeSnapshot>;
|
|
75
|
-
/**
|
|
76
|
-
* Execute action on an element
|
|
77
|
-
*/
|
|
78
|
-
executeAction(elementId: string, action: ActionRequest): Promise<ActionResponse>;
|
|
79
|
-
/**
|
|
80
|
-
* Execute component action
|
|
81
|
-
*/
|
|
82
|
-
executeComponentAction(componentId: string, action: string, params?: Record<string, unknown>): Promise<ActionResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Execute workflow with optional progress streaming
|
|
85
|
-
*/
|
|
86
|
-
executeWorkflow(workflowId: string, params?: Record<string, unknown>, onProgress?: (progress: {
|
|
87
|
-
currentStep: number;
|
|
88
|
-
totalSteps: number;
|
|
89
|
-
step: {
|
|
90
|
-
id: string;
|
|
91
|
-
status: string;
|
|
92
|
-
};
|
|
93
|
-
}) => void): Promise<{
|
|
94
|
-
success: boolean;
|
|
95
|
-
results: unknown[];
|
|
96
|
-
}>;
|
|
97
|
-
/**
|
|
98
|
-
* Add connection state listener
|
|
99
|
-
*/
|
|
100
|
-
onConnectionChange(listener: (state: WSConnectionState) => void): () => void;
|
|
101
|
-
/**
|
|
102
|
-
* Add event listener
|
|
103
|
-
*/
|
|
104
|
-
onEvent(eventType: BridgeEventType | '*', listener: (event: BridgeEvent) => void): () => void;
|
|
105
|
-
/**
|
|
106
|
-
* Add error listener
|
|
107
|
-
*/
|
|
108
|
-
onError(listener: (error: Error) => void): () => void;
|
|
109
|
-
private setState;
|
|
110
|
-
private handleMessage;
|
|
111
|
-
private handleResponse;
|
|
112
|
-
private notifyEvent;
|
|
113
|
-
private notifyError;
|
|
114
|
-
private sendRequest;
|
|
115
|
-
private scheduleReconnect;
|
|
116
|
-
private startPingInterval;
|
|
117
|
-
private stopPingInterval;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Create a WebSocket client instance
|
|
121
|
-
*/
|
|
122
|
-
declare function createWSClient(config: WSClientConfig): UIBridgeWSClient;
|
|
123
|
-
|
|
124
|
-
export { UIBridgeWSClient as U, createWSClient as c };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { W as WSClientConfig, t as WSConnectionState, X as WSSubscriptionOptions, e as BridgeEventType, f as BridgeSnapshot, a as ActionRequest, b as ActionResponse, c as BridgeEvent } from './types-BpvpStn3.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* WebSocket Client for UI Bridge
|
|
5
|
-
*
|
|
6
|
-
* Provides real-time communication with UI Bridge server.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* WebSocket client for UI Bridge
|
|
11
|
-
*/
|
|
12
|
-
declare class UIBridgeWSClient {
|
|
13
|
-
private ws;
|
|
14
|
-
private config;
|
|
15
|
-
private state;
|
|
16
|
-
private clientId;
|
|
17
|
-
private reconnectAttempts;
|
|
18
|
-
private reconnectTimer;
|
|
19
|
-
private pingTimer;
|
|
20
|
-
private pendingRequests;
|
|
21
|
-
private connectionListeners;
|
|
22
|
-
private eventListeners;
|
|
23
|
-
private errorListeners;
|
|
24
|
-
private subscriptions;
|
|
25
|
-
constructor(config: WSClientConfig);
|
|
26
|
-
/**
|
|
27
|
-
* Get current connection state
|
|
28
|
-
*/
|
|
29
|
-
get connectionState(): WSConnectionState;
|
|
30
|
-
/**
|
|
31
|
-
* Get assigned client ID
|
|
32
|
-
*/
|
|
33
|
-
get id(): string | null;
|
|
34
|
-
/**
|
|
35
|
-
* Connect to the WebSocket server
|
|
36
|
-
*/
|
|
37
|
-
connect(): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Disconnect from the server
|
|
40
|
-
*/
|
|
41
|
-
disconnect(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Subscribe to events
|
|
44
|
-
*/
|
|
45
|
-
subscribe(options: WSSubscriptionOptions): Promise<BridgeEventType[]>;
|
|
46
|
-
/**
|
|
47
|
-
* Unsubscribe from events
|
|
48
|
-
*/
|
|
49
|
-
unsubscribe(events?: BridgeEventType[]): Promise<BridgeEventType[]>;
|
|
50
|
-
/**
|
|
51
|
-
* Find elements
|
|
52
|
-
*/
|
|
53
|
-
find(options?: {
|
|
54
|
-
interactiveOnly?: boolean;
|
|
55
|
-
includeState?: boolean;
|
|
56
|
-
selector?: string;
|
|
57
|
-
}): Promise<BridgeSnapshot['elements']>;
|
|
58
|
-
/**
|
|
59
|
-
* Discover elements
|
|
60
|
-
* @deprecated Use find() instead
|
|
61
|
-
*/
|
|
62
|
-
discover(options?: {
|
|
63
|
-
interactiveOnly?: boolean;
|
|
64
|
-
includeState?: boolean;
|
|
65
|
-
selector?: string;
|
|
66
|
-
}): Promise<BridgeSnapshot['elements']>;
|
|
67
|
-
/**
|
|
68
|
-
* Get element details
|
|
69
|
-
*/
|
|
70
|
-
getElement(elementId: string, includeState?: boolean): Promise<BridgeSnapshot['elements'][0] | null>;
|
|
71
|
-
/**
|
|
72
|
-
* Get full snapshot
|
|
73
|
-
*/
|
|
74
|
-
getSnapshot(): Promise<BridgeSnapshot>;
|
|
75
|
-
/**
|
|
76
|
-
* Execute action on an element
|
|
77
|
-
*/
|
|
78
|
-
executeAction(elementId: string, action: ActionRequest): Promise<ActionResponse>;
|
|
79
|
-
/**
|
|
80
|
-
* Execute component action
|
|
81
|
-
*/
|
|
82
|
-
executeComponentAction(componentId: string, action: string, params?: Record<string, unknown>): Promise<ActionResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Execute workflow with optional progress streaming
|
|
85
|
-
*/
|
|
86
|
-
executeWorkflow(workflowId: string, params?: Record<string, unknown>, onProgress?: (progress: {
|
|
87
|
-
currentStep: number;
|
|
88
|
-
totalSteps: number;
|
|
89
|
-
step: {
|
|
90
|
-
id: string;
|
|
91
|
-
status: string;
|
|
92
|
-
};
|
|
93
|
-
}) => void): Promise<{
|
|
94
|
-
success: boolean;
|
|
95
|
-
results: unknown[];
|
|
96
|
-
}>;
|
|
97
|
-
/**
|
|
98
|
-
* Add connection state listener
|
|
99
|
-
*/
|
|
100
|
-
onConnectionChange(listener: (state: WSConnectionState) => void): () => void;
|
|
101
|
-
/**
|
|
102
|
-
* Add event listener
|
|
103
|
-
*/
|
|
104
|
-
onEvent(eventType: BridgeEventType | '*', listener: (event: BridgeEvent) => void): () => void;
|
|
105
|
-
/**
|
|
106
|
-
* Add error listener
|
|
107
|
-
*/
|
|
108
|
-
onError(listener: (error: Error) => void): () => void;
|
|
109
|
-
private setState;
|
|
110
|
-
private handleMessage;
|
|
111
|
-
private handleResponse;
|
|
112
|
-
private notifyEvent;
|
|
113
|
-
private notifyError;
|
|
114
|
-
private sendRequest;
|
|
115
|
-
private scheduleReconnect;
|
|
116
|
-
private startPingInterval;
|
|
117
|
-
private stopPingInterval;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Create a WebSocket client instance
|
|
121
|
-
*/
|
|
122
|
-
declare function createWSClient(config: WSClientConfig): UIBridgeWSClient;
|
|
123
|
-
|
|
124
|
-
export { UIBridgeWSClient as U, createWSClient as c };
|