@qontinui/ui-bridge 0.18.0 → 0.19.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/{change-observer-DMXmff2q.d.mts → change-observer-BPtZll6d.d.mts} +1 -1
- package/dist/{change-observer-DWhgnunJ.d.ts → change-observer-D0aEcwCl.d.ts} +1 -1
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/injected/bundle.global.js +1 -1
- package/dist/{nextjs-C1cIi_zY.d.ts → nextjs-BLvmgmnW.d.ts} +1 -1
- package/dist/{nextjs-BN5L-0yi.d.mts → nextjs-qQe7vyS4.d.mts} +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +1 -1
- package/dist/server/express.d.mts +1 -1
- package/dist/server/express.d.ts +1 -1
- package/dist/server/express.js +5 -0
- package/dist/server/express.js.map +1 -1
- package/dist/server/express.mjs +5 -0
- package/dist/server/express.mjs.map +1 -1
- package/dist/server/handlers.d.mts +1 -1
- package/dist/server/handlers.d.ts +1 -1
- package/dist/server/handlers.js +6 -0
- package/dist/server/handlers.js.map +1 -1
- package/dist/server/handlers.mjs +6 -0
- package/dist/server/handlers.mjs.map +1 -1
- package/dist/server/index.d.mts +92 -9
- package/dist/server/index.d.ts +92 -9
- package/dist/server/index.js +33 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +33 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/nextjs.d.mts +2 -2
- package/dist/server/nextjs.d.ts +2 -2
- package/dist/server/nextjs.js +11 -0
- package/dist/server/nextjs.js.map +1 -1
- package/dist/server/nextjs.mjs +11 -0
- package/dist/server/nextjs.mjs.map +1 -1
- package/dist/server/standalone.d.mts +3 -3
- package/dist/server/standalone.d.ts +3 -3
- package/dist/server/standalone.js +5 -0
- package/dist/server/standalone.js.map +1 -1
- package/dist/server/standalone.mjs +5 -0
- package/dist/server/standalone.mjs.map +1 -1
- package/dist/{standalone-7VEHUTla.d.ts → standalone-SkUUJ8sc.d.ts} +2 -2
- package/dist/{standalone-DCGkT2Ad.d.mts → standalone-u-N_N3Wl.d.mts} +2 -2
- package/dist/{types-DTGf8Noz.d.mts → types-DNc31VlO.d.mts} +45 -1
- package/dist/{types-DP4N3eYZ.d.ts → types-DmMT2yMs.d.ts} +45 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ChangeObserver } from './change-observer-
|
|
1
|
+
import { C as ChangeObserver } from './change-observer-D0aEcwCl.js';
|
|
2
2
|
import { U as UIBridgeRegistry, e as BridgeEvent } from './types-Chf3cfrT.js';
|
|
3
|
-
import { a as UIBridgeServerHandlers, U as UIBridgeServerConfig, W as WebSocketMessage } from './types-
|
|
3
|
+
import { a as UIBridgeServerHandlers, U as UIBridgeServerConfig, W as WebSocketMessage } from './types-DmMT2yMs.js';
|
|
4
4
|
import { S as SSEManager } from './sse-handler-Bw_4h2AN.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ChangeObserver } from './change-observer-
|
|
1
|
+
import { C as ChangeObserver } from './change-observer-BPtZll6d.mjs';
|
|
2
2
|
import { U as UIBridgeRegistry, e as BridgeEvent } from './types-DnqZodFb.mjs';
|
|
3
|
-
import { a as UIBridgeServerHandlers, U as UIBridgeServerConfig, W as WebSocketMessage } from './types-
|
|
3
|
+
import { a as UIBridgeServerHandlers, U as UIBridgeServerConfig, W as WebSocketMessage } from './types-DNc31VlO.mjs';
|
|
4
4
|
import { S as SSEManager } from './sse-handler-BE5cyXF7.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -153,6 +153,28 @@ interface APIResponse<T = unknown> {
|
|
|
153
153
|
/**
|
|
154
154
|
* Render log query parameters
|
|
155
155
|
*/
|
|
156
|
+
/**
|
|
157
|
+
* One runner-owned webview window, as returned by `listWindows()`
|
|
158
|
+
* (`GET /control/runner-windows`). The wire shape mirrors the runner's
|
|
159
|
+
* `ui_bridge_list_runner_windows_handler` exactly — no field remapping.
|
|
160
|
+
*/
|
|
161
|
+
interface RunnerWindow {
|
|
162
|
+
/** The window's Tauri label — the value to pass as `windowLabel`. */
|
|
163
|
+
label: string;
|
|
164
|
+
/** `'main'` for the runner's primary window, `'secondary'` for a pop-out. */
|
|
165
|
+
kind: 'main' | 'secondary';
|
|
166
|
+
/** The window's title, or `null` if unavailable. */
|
|
167
|
+
title: string | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Response payload of `listWindows()` (`GET /control/runner-windows`).
|
|
171
|
+
*/
|
|
172
|
+
interface RunnerWindowsList {
|
|
173
|
+
/** Number of windows returned. */
|
|
174
|
+
count: number;
|
|
175
|
+
/** The runner process's own webview windows, sorted by `label`. */
|
|
176
|
+
windows: RunnerWindow[];
|
|
177
|
+
}
|
|
156
178
|
/**
|
|
157
179
|
* Request body for `POST /control/page/evaluate` (`pageEvaluate`).
|
|
158
180
|
*
|
|
@@ -375,6 +397,19 @@ interface UIBridgeServerHandlers {
|
|
|
375
397
|
*/
|
|
376
398
|
windowLabel?: string;
|
|
377
399
|
}, context?: HandlerContext) => Promise<APIResponse<ControlSnapshot['elements']>>;
|
|
400
|
+
/**
|
|
401
|
+
* Enumerate the runner process's OWN webview windows — the main window plus
|
|
402
|
+
* any pop-out terminal windows — so callers can discover valid `windowLabel`
|
|
403
|
+
* targets before issuing a window-scoped command. Maps to
|
|
404
|
+
* `GET /control/runner-windows`.
|
|
405
|
+
*
|
|
406
|
+
* **Runner-only.** This is answered by the qontinui-runner, which owns the
|
|
407
|
+
* Tauri webviews. Non-runner server contexts (a plain React-app server, the
|
|
408
|
+
* relay's browser-tab path) host no runner windows and return a
|
|
409
|
+
* `NOT_IMPLEMENTED` error — discover windows via direct HTTP to the runner.
|
|
410
|
+
* Distinct from `/control/windows`, which enumerates OS desktop windows.
|
|
411
|
+
*/
|
|
412
|
+
listWindows: (context?: HandlerContext) => Promise<APIResponse<RunnerWindowsList>>;
|
|
378
413
|
getElement: (id: string, options?: {
|
|
379
414
|
recency?: string;
|
|
380
415
|
}, context?: HandlerContext) => Promise<APIResponse<ControlSnapshot['elements'][0]>>;
|
|
@@ -889,6 +924,8 @@ interface UIBridgeServerHandlers {
|
|
|
889
924
|
text: string;
|
|
890
925
|
tag?: string;
|
|
891
926
|
exact?: boolean;
|
|
927
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
928
|
+
windowLabel?: string;
|
|
892
929
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
893
930
|
clicked: boolean;
|
|
894
931
|
element?: unknown;
|
|
@@ -896,6 +933,8 @@ interface UIBridgeServerHandlers {
|
|
|
896
933
|
clickBySelector: (request: {
|
|
897
934
|
selector: string;
|
|
898
935
|
index?: number;
|
|
936
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
937
|
+
windowLabel?: string;
|
|
899
938
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
900
939
|
clicked: boolean;
|
|
901
940
|
element?: unknown;
|
|
@@ -905,6 +944,8 @@ interface UIBridgeServerHandlers {
|
|
|
905
944
|
label?: string;
|
|
906
945
|
text: string;
|
|
907
946
|
clear?: boolean;
|
|
947
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
948
|
+
windowLabel?: string;
|
|
908
949
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
909
950
|
typed: boolean;
|
|
910
951
|
element?: unknown;
|
|
@@ -912,6 +953,8 @@ interface UIBridgeServerHandlers {
|
|
|
912
953
|
readValue: (request: {
|
|
913
954
|
selector: string;
|
|
914
955
|
index?: number;
|
|
956
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
957
|
+
windowLabel?: string;
|
|
915
958
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
916
959
|
value: string | null;
|
|
917
960
|
length: number;
|
|
@@ -920,6 +963,7 @@ interface UIBridgeServerHandlers {
|
|
|
920
963
|
text: string;
|
|
921
964
|
tag?: string;
|
|
922
965
|
exact?: boolean;
|
|
966
|
+
windowLabel?: string;
|
|
923
967
|
}, context?: HandlerContext) => Promise<APIResponse<Array<{
|
|
924
968
|
index: number;
|
|
925
969
|
tag: string;
|
|
@@ -1211,4 +1255,4 @@ interface WebSocketMessage<T = unknown> {
|
|
|
1211
1255
|
timestamp: number;
|
|
1212
1256
|
}
|
|
1213
1257
|
|
|
1214
|
-
export { type APIResponse as A, type BrowserEventsResponse as B, type CORSOptions as C, type DOMChangeEvent as D, type ElementConditionSelector as E, type HandlerContext as H, INTERACTION_RELAY_COMMAND_ACTIONS as I, type PageEvaluateRequest as P, type RateLimitOptions as R, type SpawnHeadlessRequest as S, type UIBridgeServerConfig as U, type WebSocketMessage as W, type UIBridgeServerHandlers as a, type CapabilitiesResponse as b, type ControlBatchRequest as c, type ControlBatchResponse as d, type ControlBatchStep as e, type ControlBatchStepResult as f, type ElementExpectRequest as g, type ElementExpectResponse as h, type EndpointCategory as i, type EndpointInfo as j, type InteractionRelayCommandAction as k, type RenderLogQuery as l, type RouteDefinition as m, type
|
|
1258
|
+
export { type APIResponse as A, type BrowserEventsResponse as B, type CORSOptions as C, type DOMChangeEvent as D, type ElementConditionSelector as E, type HandlerContext as H, INTERACTION_RELAY_COMMAND_ACTIONS as I, type PageEvaluateRequest as P, type RateLimitOptions as R, type SpawnHeadlessRequest as S, type UIBridgeServerConfig as U, type WebSocketMessage as W, type UIBridgeServerHandlers as a, type CapabilitiesResponse as b, type ControlBatchRequest as c, type ControlBatchResponse as d, type ControlBatchStep as e, type ControlBatchStepResult as f, type ElementExpectRequest as g, type ElementExpectResponse as h, type EndpointCategory as i, type EndpointInfo as j, type InteractionRelayCommandAction as k, type RenderLogQuery as l, type RouteDefinition as m, type RunnerWindow as n, type RunnerWindowsList as o, type SpawnHeadlessResponse as p, type StateSummary as q, UI_BRIDGE_ROUTES as r, type WaitForElementByConditionRequest as s, type WaitForElementByConditionResponse as t, type WaitForElementPredicate as u, type WaitForElementRequest as v, type WaitForElementSuccessResponse as w, type WaitForRouteChangeRequest as x, type WaitForRouteChangeResponse as y, type WebSocketMessageType as z };
|
|
@@ -153,6 +153,28 @@ interface APIResponse<T = unknown> {
|
|
|
153
153
|
/**
|
|
154
154
|
* Render log query parameters
|
|
155
155
|
*/
|
|
156
|
+
/**
|
|
157
|
+
* One runner-owned webview window, as returned by `listWindows()`
|
|
158
|
+
* (`GET /control/runner-windows`). The wire shape mirrors the runner's
|
|
159
|
+
* `ui_bridge_list_runner_windows_handler` exactly — no field remapping.
|
|
160
|
+
*/
|
|
161
|
+
interface RunnerWindow {
|
|
162
|
+
/** The window's Tauri label — the value to pass as `windowLabel`. */
|
|
163
|
+
label: string;
|
|
164
|
+
/** `'main'` for the runner's primary window, `'secondary'` for a pop-out. */
|
|
165
|
+
kind: 'main' | 'secondary';
|
|
166
|
+
/** The window's title, or `null` if unavailable. */
|
|
167
|
+
title: string | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Response payload of `listWindows()` (`GET /control/runner-windows`).
|
|
171
|
+
*/
|
|
172
|
+
interface RunnerWindowsList {
|
|
173
|
+
/** Number of windows returned. */
|
|
174
|
+
count: number;
|
|
175
|
+
/** The runner process's own webview windows, sorted by `label`. */
|
|
176
|
+
windows: RunnerWindow[];
|
|
177
|
+
}
|
|
156
178
|
/**
|
|
157
179
|
* Request body for `POST /control/page/evaluate` (`pageEvaluate`).
|
|
158
180
|
*
|
|
@@ -375,6 +397,19 @@ interface UIBridgeServerHandlers {
|
|
|
375
397
|
*/
|
|
376
398
|
windowLabel?: string;
|
|
377
399
|
}, context?: HandlerContext) => Promise<APIResponse<ControlSnapshot['elements']>>;
|
|
400
|
+
/**
|
|
401
|
+
* Enumerate the runner process's OWN webview windows — the main window plus
|
|
402
|
+
* any pop-out terminal windows — so callers can discover valid `windowLabel`
|
|
403
|
+
* targets before issuing a window-scoped command. Maps to
|
|
404
|
+
* `GET /control/runner-windows`.
|
|
405
|
+
*
|
|
406
|
+
* **Runner-only.** This is answered by the qontinui-runner, which owns the
|
|
407
|
+
* Tauri webviews. Non-runner server contexts (a plain React-app server, the
|
|
408
|
+
* relay's browser-tab path) host no runner windows and return a
|
|
409
|
+
* `NOT_IMPLEMENTED` error — discover windows via direct HTTP to the runner.
|
|
410
|
+
* Distinct from `/control/windows`, which enumerates OS desktop windows.
|
|
411
|
+
*/
|
|
412
|
+
listWindows: (context?: HandlerContext) => Promise<APIResponse<RunnerWindowsList>>;
|
|
378
413
|
getElement: (id: string, options?: {
|
|
379
414
|
recency?: string;
|
|
380
415
|
}, context?: HandlerContext) => Promise<APIResponse<ControlSnapshot['elements'][0]>>;
|
|
@@ -889,6 +924,8 @@ interface UIBridgeServerHandlers {
|
|
|
889
924
|
text: string;
|
|
890
925
|
tag?: string;
|
|
891
926
|
exact?: boolean;
|
|
927
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
928
|
+
windowLabel?: string;
|
|
892
929
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
893
930
|
clicked: boolean;
|
|
894
931
|
element?: unknown;
|
|
@@ -896,6 +933,8 @@ interface UIBridgeServerHandlers {
|
|
|
896
933
|
clickBySelector: (request: {
|
|
897
934
|
selector: string;
|
|
898
935
|
index?: number;
|
|
936
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
937
|
+
windowLabel?: string;
|
|
899
938
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
900
939
|
clicked: boolean;
|
|
901
940
|
element?: unknown;
|
|
@@ -905,6 +944,8 @@ interface UIBridgeServerHandlers {
|
|
|
905
944
|
label?: string;
|
|
906
945
|
text: string;
|
|
907
946
|
clear?: boolean;
|
|
947
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
948
|
+
windowLabel?: string;
|
|
908
949
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
909
950
|
typed: boolean;
|
|
910
951
|
element?: unknown;
|
|
@@ -912,6 +953,8 @@ interface UIBridgeServerHandlers {
|
|
|
912
953
|
readValue: (request: {
|
|
913
954
|
selector: string;
|
|
914
955
|
index?: number;
|
|
956
|
+
/** Target a runner pop-out window discoverable via `listWindows()`; omit → main window. Read from the body. */
|
|
957
|
+
windowLabel?: string;
|
|
915
958
|
}, context?: HandlerContext) => Promise<APIResponse<{
|
|
916
959
|
value: string | null;
|
|
917
960
|
length: number;
|
|
@@ -920,6 +963,7 @@ interface UIBridgeServerHandlers {
|
|
|
920
963
|
text: string;
|
|
921
964
|
tag?: string;
|
|
922
965
|
exact?: boolean;
|
|
966
|
+
windowLabel?: string;
|
|
923
967
|
}, context?: HandlerContext) => Promise<APIResponse<Array<{
|
|
924
968
|
index: number;
|
|
925
969
|
tag: string;
|
|
@@ -1211,4 +1255,4 @@ interface WebSocketMessage<T = unknown> {
|
|
|
1211
1255
|
timestamp: number;
|
|
1212
1256
|
}
|
|
1213
1257
|
|
|
1214
|
-
export { type APIResponse as A, type BrowserEventsResponse as B, type CORSOptions as C, type DOMChangeEvent as D, type ElementConditionSelector as E, type HandlerContext as H, INTERACTION_RELAY_COMMAND_ACTIONS as I, type PageEvaluateRequest as P, type RateLimitOptions as R, type SpawnHeadlessRequest as S, type UIBridgeServerConfig as U, type WebSocketMessage as W, type UIBridgeServerHandlers as a, type CapabilitiesResponse as b, type ControlBatchRequest as c, type ControlBatchResponse as d, type ControlBatchStep as e, type ControlBatchStepResult as f, type ElementExpectRequest as g, type ElementExpectResponse as h, type EndpointCategory as i, type EndpointInfo as j, type InteractionRelayCommandAction as k, type RenderLogQuery as l, type RouteDefinition as m, type
|
|
1258
|
+
export { type APIResponse as A, type BrowserEventsResponse as B, type CORSOptions as C, type DOMChangeEvent as D, type ElementConditionSelector as E, type HandlerContext as H, INTERACTION_RELAY_COMMAND_ACTIONS as I, type PageEvaluateRequest as P, type RateLimitOptions as R, type SpawnHeadlessRequest as S, type UIBridgeServerConfig as U, type WebSocketMessage as W, type UIBridgeServerHandlers as a, type CapabilitiesResponse as b, type ControlBatchRequest as c, type ControlBatchResponse as d, type ControlBatchStep as e, type ControlBatchStepResult as f, type ElementExpectRequest as g, type ElementExpectResponse as h, type EndpointCategory as i, type EndpointInfo as j, type InteractionRelayCommandAction as k, type RenderLogQuery as l, type RouteDefinition as m, type RunnerWindow as n, type RunnerWindowsList as o, type SpawnHeadlessResponse as p, type StateSummary as q, UI_BRIDGE_ROUTES as r, type WaitForElementByConditionRequest as s, type WaitForElementByConditionResponse as t, type WaitForElementPredicate as u, type WaitForElementRequest as v, type WaitForElementSuccessResponse as w, type WaitForRouteChangeRequest as x, type WaitForRouteChangeResponse as y, type WebSocketMessageType as z };
|
package/package.json
CHANGED