@qontinui/ui-bridge-native 0.8.0 → 0.11.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/README.md +50 -2
- package/dist/core/index.js +13 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +13 -3
- package/dist/core/index.mjs.map +1 -1
- package/dist/core/sha256.d.ts +29 -7
- package/dist/core/sha256.d.ts.map +1 -1
- package/dist/debug/index.js.map +1 -1
- package/dist/debug/index.mjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +996 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +986 -34
- package/dist/index.mjs.map +1 -1
- package/dist/observation/observation.d.ts +15 -1
- package/dist/observation/observation.d.ts.map +1 -1
- package/dist/react/UIBridgeNativeProvider.d.ts +25 -3
- package/dist/react/UIBridgeNativeProvider.d.ts.map +1 -1
- package/dist/react/index.js +967 -32
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +968 -33
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/http-server.d.ts +120 -2
- package/dist/server/http-server.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +934 -16
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +916 -17
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/pairing.d.ts +295 -0
- package/dist/server/pairing.d.ts.map +1 -0
- package/dist/server/types.d.ts +20 -0
- package/dist/server/types.d.ts.map +1 -1
- package/dist/transport/DeviceAnnouncer.d.ts +0 -2
- package/dist/transport/DeviceAnnouncer.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAC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AC,EAAE;IACP,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClF,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,iFAAiF;IACjF,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,MAAM;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5D,GACA,oBAAoB,CAiiCtB"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import type { NativeUIBridgeRegistry } from '../core/registry';
|
|
14
14
|
import type { NativeActionExecutor } from '../control/types';
|
|
15
15
|
import type { NativeServerConfig, NavigationProvider, RouteProvider, ScreenshotProvider, KeepAwakeProvider, APIResponse } from './types';
|
|
16
|
+
import { type ArmedPairingCode, type PairingState } from './pairing';
|
|
16
17
|
import type { WebSocketEventBridge } from './ws-event-bridge';
|
|
17
18
|
import type { JsonRpcRequest, JsonRpcResponse } from './ws-types';
|
|
18
19
|
/**
|
|
@@ -35,6 +36,19 @@ export interface HTTPRequest {
|
|
|
35
36
|
headers: Record<string, string>;
|
|
36
37
|
query: Record<string, string>;
|
|
37
38
|
body?: unknown;
|
|
39
|
+
/**
|
|
40
|
+
* The socket peer's address. Fill it from the accepted socket and never from a
|
|
41
|
+
* header. Absent reads as not loopback.
|
|
42
|
+
*/
|
|
43
|
+
remoteAddress?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The request target exactly as on the request line, `path?query`. A signature
|
|
46
|
+
* covers these bytes, which a parsed `path` and `query` cannot reproduce. A
|
|
47
|
+
* signed request with a query is refused without it.
|
|
48
|
+
*/
|
|
49
|
+
rawTarget?: string;
|
|
50
|
+
/** The body exactly as received. A signed request with a body is refused without it. */
|
|
51
|
+
rawBody?: string;
|
|
38
52
|
}
|
|
39
53
|
/**
|
|
40
54
|
* HTTP Response interface (library-agnostic)
|
|
@@ -69,6 +83,12 @@ export interface ServerAdapter {
|
|
|
69
83
|
* UI Bridge server handle message routing and event broadcasting.
|
|
70
84
|
*/
|
|
71
85
|
export interface WebSocketServerAdapter extends ServerAdapter {
|
|
86
|
+
/**
|
|
87
|
+
* Called BEFORE the 101 goes out. Answer `response` instead of upgrading when
|
|
88
|
+
* `admit` is false. JSON-RPC over the socket drives everything, so this is as
|
|
89
|
+
* much a door as any HTTP route, and only a trusted loopback caller gets through.
|
|
90
|
+
*/
|
|
91
|
+
onWebSocketUpgrade?: (req: HTTPRequest) => WebSocketUpgradeDecision;
|
|
72
92
|
/** Called when a JSON text frame is received from a WS client. Returns response string or null. */
|
|
73
93
|
onWebSocketMessage?: (connId: string, message: string) => Promise<string | null>;
|
|
74
94
|
/** Called when a new WS connection is established after the HTTP 101 upgrade. */
|
|
@@ -80,6 +100,13 @@ export interface WebSocketServerAdapter extends ServerAdapter {
|
|
|
80
100
|
/** Send a message to all connected WS clients. */
|
|
81
101
|
broadcast?: (message: string) => void;
|
|
82
102
|
}
|
|
103
|
+
/** What `onWebSocketUpgrade` decides. */
|
|
104
|
+
export type WebSocketUpgradeDecision = {
|
|
105
|
+
admit: true;
|
|
106
|
+
} | {
|
|
107
|
+
admit: false;
|
|
108
|
+
response: HTTPResponse;
|
|
109
|
+
};
|
|
83
110
|
/**
|
|
84
111
|
* Native UI Bridge HTTP Server
|
|
85
112
|
*/
|
|
@@ -87,6 +114,12 @@ export declare class NativeUIBridgeServer {
|
|
|
87
114
|
private registry;
|
|
88
115
|
private executor;
|
|
89
116
|
private config;
|
|
117
|
+
/** Absent when the app configured no store: non-loopback callers then have no way in. */
|
|
118
|
+
private pairing?;
|
|
119
|
+
/** Whether this run's adapter has called `onWebSocketUpgrade` at all. */
|
|
120
|
+
private upgradeGateSeen;
|
|
121
|
+
/** Warned once per run rather than per request, which would flood the error ring. */
|
|
122
|
+
private warnedMissingPeer;
|
|
90
123
|
private handlers;
|
|
91
124
|
private adapter?;
|
|
92
125
|
private running;
|
|
@@ -118,6 +151,12 @@ export declare class NativeUIBridgeServer {
|
|
|
118
151
|
* Set the server adapter
|
|
119
152
|
*/
|
|
120
153
|
setAdapter(adapter: ServerAdapter): void;
|
|
154
|
+
/**
|
|
155
|
+
* Set the device's stable id. An app usually loads it from storage after the
|
|
156
|
+
* server has started, and this spares it a restart that would drop every
|
|
157
|
+
* socket and any armed code.
|
|
158
|
+
*/
|
|
159
|
+
setDeviceId(deviceId: string | undefined): void;
|
|
121
160
|
/**
|
|
122
161
|
* Set a navigation provider for programmatic route navigation.
|
|
123
162
|
* This enables `control/page/navigate` and `control/page/back` on native.
|
|
@@ -165,6 +204,13 @@ export declare class NativeUIBridgeServer {
|
|
|
165
204
|
* Set the event bridge for WebSocket event broadcasting and subscriptions.
|
|
166
205
|
*/
|
|
167
206
|
setEventBridge(bridge: WebSocketEventBridge): void;
|
|
207
|
+
/**
|
|
208
|
+
* The entry a socket's messages come through. An adapter that never called
|
|
209
|
+
* `onWebSocketUpgrade` admitted the socket with no check, and a message carries
|
|
210
|
+
* no peer to check now, so it is refused: the same fail-closed reading as a
|
|
211
|
+
* missing peer address. An adapter that gates sees a call before its first socket.
|
|
212
|
+
*/
|
|
213
|
+
handleNetworkWebSocketMessage(connId: string, rawMessage: string): Promise<string | null>;
|
|
168
214
|
/**
|
|
169
215
|
* Handle a JSON-RPC message from a WebSocket client.
|
|
170
216
|
* Parses the message, routes to the appropriate handler, and returns
|
|
@@ -224,10 +270,78 @@ export declare class NativeUIBridgeServer {
|
|
|
224
270
|
*/
|
|
225
271
|
private routeMethodToHandler;
|
|
226
272
|
/**
|
|
227
|
-
*
|
|
273
|
+
* What `start()` hands the adapter: every request off the socket comes through
|
|
274
|
+
* here, and `handleRequest` sits behind it.
|
|
275
|
+
*
|
|
276
|
+
* | Caller | Admitted |
|
|
277
|
+
* |----------------------------------------------------------|----------|
|
|
278
|
+
* | Loopback peer, no web context, loopback `Host` | yes |
|
|
279
|
+
* | Anyone with a valid `X-UI-Bridge-Auth` signature | yes |
|
|
280
|
+
* | Anyone, `GET /ui-bridge/health` (trimmed) | yes |
|
|
281
|
+
* | Anyone with no web context, `POST /ui-bridge/pair` | yes |
|
|
282
|
+
* | A web page, `POST /ui-bridge/pair` | 403 `PAIRING_WEB_CALLER_REFUSED` |
|
|
283
|
+
* | Signature outside the window or below the floor | 401 `PAIRING_TIMESTAMP_REFUSED` |
|
|
284
|
+
* | Signed body over `SIGNED_BODY_MAX_CHARS` | 413 `PAIRING_BODY_TOO_LARGE` |
|
|
285
|
+
* | Signed method or target over its cap | 414 `PAIRING_TARGET_TOO_LONG` |
|
|
286
|
+
* | Everyone else | 401 `PAIRING_REQUIRED` |
|
|
287
|
+
* | No store configured, not loopback | 401 `PAIRING_UNCONFIGURED` |
|
|
288
|
+
* | Under `allowUnauthenticatedNetwork`, a web page or a rebindable `Host` | 403 `PAIRING_WEB_CALLER_REFUSED` |
|
|
289
|
+
*
|
|
290
|
+
* The gate is here rather than in `handleRequest` because `CloudRelayClient`
|
|
291
|
+
* calls that directly and must keep working: relay access already means the
|
|
292
|
+
* same user account, checked by the backend.
|
|
293
|
+
*/
|
|
294
|
+
handleNetworkRequest(request: HTTPRequest): Promise<HTTPResponse>;
|
|
295
|
+
/**
|
|
296
|
+
* The WebSocket door: trusted loopback or nothing, whatever else the request
|
|
297
|
+
* carries. A signature covers no upgrade intent, so one swallowed GET re-sent
|
|
298
|
+
* with `Upgrade: websocket` would become a permanent control socket, and a socket
|
|
299
|
+
* outlives the signature's window. `allowUnauthenticatedNetwork` opens HTTP only,
|
|
300
|
+
* and no runner dials a device's socket.
|
|
301
|
+
*/
|
|
302
|
+
handleWebSocketUpgrade(request: HTTPRequest): WebSocketUpgradeDecision;
|
|
303
|
+
private isTrustedLoopback;
|
|
304
|
+
private admit;
|
|
305
|
+
private corsHeaders;
|
|
306
|
+
/** No CORS header: a page must not be able to read what the gate says. */
|
|
307
|
+
private refusal;
|
|
308
|
+
/**
|
|
309
|
+
* Open health. An admitted caller gets the full answer. Anyone else gets what
|
|
310
|
+
* discovery needs and nothing about the app's contents, and that answer is
|
|
311
|
+
* built without going through `handleRequest`, whose keep-awake auto-arm is no
|
|
312
|
+
* business of an anonymous LAN probe. It carries no CORS header, so a web page
|
|
313
|
+
* cannot read the stable device id.
|
|
314
|
+
*/
|
|
315
|
+
private handleNetworkHealth;
|
|
316
|
+
/**
|
|
317
|
+
* `POST /ui-bridge/pair`, the only way to a token, and only ever from here.
|
|
318
|
+
* Its answer carries no CORS header, because no web page has any business
|
|
319
|
+
* reading a token, and it answers only after the store write has finished. A web
|
|
320
|
+
* page is refused first of all, so it cannot burn an attempt or the armed code.
|
|
321
|
+
*/
|
|
322
|
+
private handlePair;
|
|
323
|
+
/**
|
|
324
|
+
* Arm a 6-digit code for a LAN pairing. In memory and single use. It stops
|
|
325
|
+
* working after about 2 minutes, or after 5 wrong attempts from anyone. Rejects
|
|
326
|
+
* with a `PairingError` when no store is configured or it has not loaded.
|
|
327
|
+
*/
|
|
328
|
+
armPairingCode(): Promise<ArmedPairingCode>;
|
|
329
|
+
/** Cancel a live code. */
|
|
330
|
+
disarmPairingCode(): void;
|
|
331
|
+
/** What Settings shows, including the peer that consumed the last code. */
|
|
332
|
+
getPairingState(): PairingState;
|
|
333
|
+
/**
|
|
334
|
+
* Replace the token, so every signature made with the old one stops verifying.
|
|
335
|
+
* There are no network sockets to close, because none is ever admitted.
|
|
336
|
+
*/
|
|
337
|
+
revokePairing(): Promise<void>;
|
|
338
|
+
private requirePairing;
|
|
339
|
+
/**
|
|
340
|
+
* Handle incoming HTTP request, past the gate.
|
|
228
341
|
*
|
|
229
342
|
* Exposed as public so that CloudRelayClient can call it directly (without
|
|
230
|
-
* loopback TCP overhead) when processing tunneled requests.
|
|
343
|
+
* loopback TCP overhead) when processing tunneled requests. Anything reached
|
|
344
|
+
* from a socket goes through `handleNetworkRequest` first.
|
|
231
345
|
*/
|
|
232
346
|
handleRequest(request: HTTPRequest): Promise<HTTPResponse>;
|
|
233
347
|
/**
|
|
@@ -268,6 +382,10 @@ export declare function createNativeServer(registry: NativeUIBridgeRegistry, exe
|
|
|
268
382
|
* headers: request.headers || {},
|
|
269
383
|
* query: parseQuery(request.url),
|
|
270
384
|
* body: request.postData ? JSON.parse(request.postData) : undefined,
|
|
385
|
+
* // Pairing: without these, non-loopback callers cannot be admitted.
|
|
386
|
+
* remoteAddress: request.remoteAddress,
|
|
387
|
+
* rawTarget: request.url,
|
|
388
|
+
* rawBody: request.postData,
|
|
271
389
|
* });
|
|
272
390
|
* httpBridge.respond(
|
|
273
391
|
* request.requestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../../src/server/http-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAA0B,MAAM,kBAAkB,CAAC;AACrF,OAAO,KAAK,EACV,kBAAkB,EAElB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EAEZ,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../../src/server/http-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAA0B,MAAM,kBAAkB,CAAC;AACrF,OAAO,KAAK,EACV,kBAAkB,EAElB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EAEZ,MAAM,SAAS,CAAC;AAGjB,OAAO,EAWL,KAAK,gBAAgB,EACrB,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-handlers';
|
|
9
9
|
export * from './http-server';
|
|
10
|
+
export * from './pairing';
|
|
10
11
|
export * from './ws-protocol';
|
|
11
12
|
export * from './ws-types';
|
|
12
13
|
export { WebSocketConnection } from './ws-connection';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,8BAA8B,EAC9B,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACt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