@qontinui/ui-bridge-native 0.6.11 → 0.6.13
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 +36 -16
- package/dist/control/action-executor.d.ts +42 -2
- package/dist/control/action-executor.d.ts.map +1 -1
- package/dist/control/index.js +723 -4
- package/dist/control/index.js.map +1 -1
- package/dist/control/index.mjs +723 -5
- package/dist/control/index.mjs.map +1 -1
- package/dist/control/types.d.ts +82 -1
- package/dist/control/types.d.ts.map +1 -1
- package/dist/core/abortable.d.ts +151 -0
- package/dist/core/abortable.d.ts.map +1 -0
- package/dist/core/action-effect.d.ts +74 -0
- package/dist/core/action-effect.d.ts.map +1 -0
- package/dist/core/element-actions.d.ts +38 -0
- package/dist/core/element-actions.d.ts.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +853 -15
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +835 -16
- package/dist/core/index.mjs.map +1 -1
- package/dist/core/param-schema.d.ts +282 -0
- package/dist/core/param-schema.d.ts.map +1 -0
- package/dist/core/registry.d.ts +317 -2
- package/dist/core/registry.d.ts.map +1 -1
- package/dist/core/types.d.ts +231 -32
- package/dist/core/types.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 +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1603 -118
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1585 -119
- package/dist/index.mjs.map +1 -1
- package/dist/react/UIBridgeNativeProvider.d.ts +1 -23
- package/dist/react/UIBridgeNativeProvider.d.ts.map +1 -1
- package/dist/react/index.js +1420 -113
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +1420 -113
- package/dist/react/index.mjs.map +1 -1
- package/dist/react/useUIBridge.d.ts +19 -22
- package/dist/react/useUIBridge.d.ts.map +1 -1
- package/dist/react/useUIComponent.d.ts +113 -8
- package/dist/react/useUIComponent.d.ts.map +1 -1
- package/dist/react/useUIElement.d.ts +34 -8
- package/dist/react/useUIElement.d.ts.map +1 -1
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/http-server.d.ts +15 -2
- package/dist/server/http-server.d.ts.map +1 -1
- package/dist/server/index.js +348 -43
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +348 -44
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/observability.d.ts +40 -0
- package/dist/server/observability.d.ts.map +1 -1
- package/dist/server/types.d.ts +57 -1
- package/dist/server/types.d.ts.map +1 -1
- package/dist/transport/CloudRelayClient.d.ts.map +1 -1
- package/dist/transport/DeviceAnnouncer.d.ts.map +1 -1
- package/dist/transport/relay-logging.d.ts +50 -0
- package/dist/transport/relay-logging.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -4,30 +4,27 @@
|
|
|
4
4
|
* Provides a simplified interface for common UI Bridge operations.
|
|
5
5
|
*/
|
|
6
6
|
import type { NativeActionRequest, NativeActionResponse, NativeFindRequest, NativeFindResponse, NativeBridgeSnapshot, RegisteredNativeElement, RegisteredNativeComponent, Workflow } from '../core/types';
|
|
7
|
+
import type { ComponentActionRequest, ComponentActionResponse } from '../control/types';
|
|
7
8
|
/**
|
|
8
|
-
* Component action request
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
9
|
+
* Component action request / response.
|
|
10
|
+
*
|
|
11
|
+
* Re-exported from `../control/types` rather than re-declared. These were a
|
|
12
|
+
* fifth and sixth copy of a shape that already existed there, and the copy had
|
|
13
|
+
* already drifted: it carried neither `requestId` nor `timeoutMs`, so a React
|
|
14
|
+
* Native caller reaching an action through this hook could not set a timeout
|
|
15
|
+
* even though `DefaultNativeActionExecutor` has honoured one since Phase 3 of
|
|
16
|
+
* plan `2026-08-20-ui-bridge-action-declaration-shape`. The executor accepted
|
|
17
|
+
* it; the hook's own type refused to express it.
|
|
18
|
+
*
|
|
19
|
+
* `timeoutMs` is the only cancellation this seam can carry — an `AbortSignal`
|
|
20
|
+
* is not JSON-serializable, and the hook does not forward the executor's
|
|
21
|
+
* in-process `{ signal }` option bag.
|
|
22
|
+
*
|
|
23
|
+
* Collapsing rather than adding the two fields is the plan's stated direction:
|
|
24
|
+
* "collapse before you extend", because eight copies drift and two already
|
|
25
|
+
* had.
|
|
18
26
|
*/
|
|
19
|
-
export
|
|
20
|
-
/** Whether the action succeeded */
|
|
21
|
-
success: boolean;
|
|
22
|
-
/** Result of the action */
|
|
23
|
-
result?: unknown;
|
|
24
|
-
/** Error message if failed */
|
|
25
|
-
error?: string;
|
|
26
|
-
/** Duration in milliseconds */
|
|
27
|
-
durationMs: number;
|
|
28
|
-
/** Timestamp */
|
|
29
|
-
timestamp: number;
|
|
30
|
-
}
|
|
27
|
+
export type { ComponentActionRequest, ComponentActionResponse, } from '../control/types';
|
|
31
28
|
/**
|
|
32
29
|
* useUIBridge return type
|
|
33
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUIBridge.d.ts","sourceRoot":"","sources":["../../src/react/useUIBridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,QAAQ,EACT,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useUIBridge.d.ts","sourceRoot":"","sources":["../../src/react/useUIBridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK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,CAAC;IAC/C,4BAA4B;IAC5B,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,WAAW,IAAI,iBAAiB,CA8H/C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,iBAAiB,CAMvD"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Register a component with UI Bridge for component-level actions.
|
|
5
5
|
*/
|
|
6
|
-
import type { RegisteredNativeComponent } from '../core/types';
|
|
6
|
+
import type { IREffect, RegisteredNativeComponent } from '../core/types';
|
|
7
7
|
/**
|
|
8
8
|
* Action definition for useUIComponent
|
|
9
9
|
*/
|
|
@@ -14,8 +14,82 @@ export interface ComponentActionDef<TParams = unknown, TResult = unknown> {
|
|
|
14
14
|
label?: string;
|
|
15
15
|
/** Description */
|
|
16
16
|
description?: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Parameter schema — **serialized, published to agents, and VALIDATED.**
|
|
19
|
+
*
|
|
20
|
+
* It is spread onto `/control/components` and `/control/component/:id`, and
|
|
21
|
+
* four `qontinui-runner` consumers read it from there — including the LLM
|
|
22
|
+
* router that generates a slash command's args from it. Since Phase 2 of
|
|
23
|
+
* plan `2026-08-20-ui-bridge-action-declaration-shape` the invocation seam
|
|
24
|
+
* checks `params` against it BEFORE your handler runs, so a schema declared
|
|
25
|
+
* here is a promise the runtime keeps.
|
|
26
|
+
*
|
|
27
|
+
* (The doc this replaces promised both halves of a contradiction: the schema
|
|
28
|
+
* is "surfaced verbatim on `/control/component/:id`" AND "No runtime
|
|
29
|
+
* validation is performed." The first half was always true; the second is no
|
|
30
|
+
* longer.)
|
|
31
|
+
*
|
|
32
|
+
* Two accepted shapes:
|
|
33
|
+
*
|
|
34
|
+
* - **Object-schema form** — `{ type: 'object', properties: { ... },
|
|
35
|
+
* required: ['...'], additionalProperties: false }`. The only form that can
|
|
36
|
+
* express *requiredness*. `paramSchemaOf()` from
|
|
37
|
+
* `@qontinui/ui-bridge-wrapper` emits it for you.
|
|
38
|
+
* - **Map form** — `{ paramName: 'string', other: { type: 'number' } }`. A
|
|
39
|
+
* TYPE hint only: it cannot mark anything required, and a string that is
|
|
40
|
+
* not one of the seven JSON Schema primitive names (`string`, `number`,
|
|
41
|
+
* `integer`, `boolean`, `object`, `array`, `null`) is read as prose and
|
|
42
|
+
* constrains nothing — which is what keeps the fleet's many
|
|
43
|
+
* `{ count: 'number (>= 1, defaults to 1)' }` hint maps working.
|
|
44
|
+
*
|
|
45
|
+
* Recognised keywords: `type`, `enum`, `const`, `properties`, `required`,
|
|
46
|
+
* `additionalProperties: false`, `items`, `minimum`/`maximum`,
|
|
47
|
+
* `minLength`/`maxLength`, `pattern`. **Anything else is ignored, never
|
|
48
|
+
* rejected** — a schema richer than the subset is still valid JSON Schema,
|
|
49
|
+
* it just expresses fewer enforced constraints. No type coercion: `"5"` does
|
|
50
|
+
* not satisfy `{ type: 'number' }`.
|
|
51
|
+
*
|
|
52
|
+
* Enforcement is a deployment setting and defaults to `'warn'` — violations
|
|
53
|
+
* are logged and the handler still runs until someone calls
|
|
54
|
+
* `setDefaultParamValidationMode('enforce')`. The full grammar, and why warn
|
|
55
|
+
* is the default, are documented at `core/param-schema.ts`.
|
|
56
|
+
*/
|
|
57
|
+
paramSchema?: Record<string, unknown>;
|
|
58
|
+
/**
|
|
59
|
+
* Safety annotation — `'read' | 'write' | 'destructive'` (Phase 4 of plan
|
|
60
|
+
* `2026-08-20-ui-bridge-action-declaration-shape`).
|
|
61
|
+
*
|
|
62
|
+
* **Declare `'destructive'` on anything irreversible** — a delete, a send, a
|
|
63
|
+
* charge, a deploy. It is the one value nothing can infer for you: the
|
|
64
|
+
* static verb map behind this field never produces `'destructive'`, because
|
|
65
|
+
* destructiveness depends on what your control does, not on what it is
|
|
66
|
+
* called. An autonomous walk excludes destructive actions and walks
|
|
67
|
+
* everything else, so an unmarked delete control gets pressed.
|
|
68
|
+
*
|
|
69
|
+
* **Precedence:** what you write here wins, and it is the **only** thing
|
|
70
|
+
* that reaches the wire. `NATIVE_STANDARD_ACTION_EFFECTS` supplies a default
|
|
71
|
+
* when the action `id` happens to be one of the native standard verbs
|
|
72
|
+
* (`press`, `longPress`, `swipe`, …), but that default is applied **by the
|
|
73
|
+
* consumer**, via the exported `resolveActionEffect()` — the SDK does *not*
|
|
74
|
+
* stamp it onto the response. Leave this undefined and the field is simply
|
|
75
|
+
* **absent** from every projection, which is the honest encoding of "nobody
|
|
76
|
+
* classified this action" (see `core/action-effect.ts` for why a
|
|
77
|
+
* server-applied default would fail open).
|
|
78
|
+
*/
|
|
79
|
+
effect?: IREffect;
|
|
80
|
+
/**
|
|
81
|
+
* Handler function.
|
|
82
|
+
*
|
|
83
|
+
* The second argument is the `ActionHandlerOptions` bag whose `signal` is
|
|
84
|
+
* aborted when the caller cancels or the request's `timeoutMs` elapses
|
|
85
|
+
* (Phase 3 of plan `2026-08-20-ui-bridge-action-declaration-shape`).
|
|
86
|
+
* Observing it is optional: the executor races this promise against the
|
|
87
|
+
* abort, so an unobservant handler is abandoned anyway — observing it is how
|
|
88
|
+
* a handler releases its own in-flight work instead of leaving it detached.
|
|
89
|
+
*/
|
|
90
|
+
handler: (params?: TParams, options?: {
|
|
91
|
+
signal?: AbortSignal;
|
|
92
|
+
}) => TResult | Promise<TResult>;
|
|
19
93
|
}
|
|
20
94
|
/**
|
|
21
95
|
* useUIComponent options
|
|
@@ -46,13 +120,40 @@ export interface UseUIComponentReturn {
|
|
|
46
120
|
register: () => void;
|
|
47
121
|
/** Manually unregister the component */
|
|
48
122
|
unregister: () => void;
|
|
49
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Publish an action list that is NOT the `actions` option.
|
|
125
|
+
*
|
|
126
|
+
* **Not required for the common case any more.** The `actions` OPTION passed
|
|
127
|
+
* to `useUIComponent({ id, actions })` is now auto-re-published whenever its
|
|
128
|
+
* published shape changes, so a state-derived action list — a label carrying
|
|
129
|
+
* a count, an action that only exists while a row is selected, a
|
|
130
|
+
* `paramSchema` that widens once options load — reaches
|
|
131
|
+
* `/control/components` without a call site doing anything. This is the
|
|
132
|
+
* escape hatch for actions the hook does not own, the same role `updateLabel`
|
|
133
|
+
* plays for `useUIElement`.
|
|
134
|
+
*
|
|
135
|
+
* If you pass BOTH the `actions` option and call this, the option wins on the
|
|
136
|
+
* next render that changes its signature: the declarative lane is the one the
|
|
137
|
+
* republish effect re-asserts.
|
|
138
|
+
*/
|
|
50
139
|
updateActions: (actions: ComponentActionDef[]) => void;
|
|
51
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Add an element ID to this component. Published to the registry
|
|
142
|
+
* immediately — this used to write to a private ref and stop there, so the
|
|
143
|
+
* ownership list an agent read never moved.
|
|
144
|
+
*
|
|
145
|
+
* Survives re-renders. It is replaced only when the DECLARED `elementIds`
|
|
146
|
+
* option itself changes value, which is the point at which the call site has
|
|
147
|
+
* said something newer than the imperative edit.
|
|
148
|
+
*/
|
|
52
149
|
addElement: (elementId: string) => void;
|
|
53
|
-
/** Remove an element ID from this component */
|
|
150
|
+
/** Remove an element ID from this component. Same publishing rules as {@link addElement}. */
|
|
54
151
|
removeElement: (elementId: string) => void;
|
|
55
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* The registered component as the registry currently holds it — `null` until
|
|
154
|
+
* registration commits, then refreshed on every republish that changes the
|
|
155
|
+
* published shape.
|
|
156
|
+
*/
|
|
56
157
|
registeredComponent: RegisteredNativeComponent | null;
|
|
57
158
|
}
|
|
58
159
|
/**
|
|
@@ -108,5 +209,9 @@ export declare function useUIComponent(options: UseUIComponentOptions): UseUICom
|
|
|
108
209
|
* Create a stable action handler that can be used with useUIComponent.
|
|
109
210
|
* Useful for memoizing action handlers.
|
|
110
211
|
*/
|
|
111
|
-
export declare function useUIComponentAction<TParams = unknown, TResult = unknown>(handler: (params?: TParams
|
|
212
|
+
export declare function useUIComponentAction<TParams = unknown, TResult = unknown>(handler: (params?: TParams, options?: {
|
|
213
|
+
signal?: AbortSignal;
|
|
214
|
+
}) => TResult | Promise<TResult>, deps: React.DependencyList): (params?: TParams, options?: {
|
|
215
|
+
signal?: AbortSignal;
|
|
216
|
+
}) => TResult | Promise<TResult>;
|
|
112
217
|
//# sourceMappingURL=useUIComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUIComponent.d.ts","sourceRoot":"","sources":["../../src/react/useUIComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useUIComponent.d.ts","sourceRoot":"","sources":["../../src/react/useUIComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGzE;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IACtE,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;;;;;;;;OASG;IACH,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/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OAAO,GAAG,OAAO,EACvE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC7F,IAAI,EAAE,KAAK,CAAC,cAAc,GACzB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAGtF"}
|
|
@@ -53,6 +53,27 @@ export interface UseUIElementOptionsBase<T extends NativeElementType = NativeEle
|
|
|
53
53
|
onStateChange?: (state: NativeElementState) => void;
|
|
54
54
|
/** Parent component path for tree path generation */
|
|
55
55
|
parentPath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Id of the registered scrollable container (`type: 'scroll' | 'list'`) this
|
|
58
|
+
* element is rendered inside.
|
|
59
|
+
*
|
|
60
|
+
* Supplying it makes the bridge clip this element's reported `visibility`
|
|
61
|
+
* against that container's measured frame, so a row scrolled past the fold
|
|
62
|
+
* reports `visibility: 'hidden'` with `visibilityReason: 'off-screen'`
|
|
63
|
+
* instead of claiming to be on screen. Without it, the device window is the
|
|
64
|
+
* only clip region.
|
|
65
|
+
*
|
|
66
|
+
* It has to be declared: `useUIElement` is a hook, so it never wraps its
|
|
67
|
+
* element's children and cannot publish itself to them as an ancestor. See
|
|
68
|
+
* `RegisterElementOptions.scrollAncestorId` for why guessing geometrically
|
|
69
|
+
* would be worse than not clipping.
|
|
70
|
+
*
|
|
71
|
+
* It is also what the `scrollIntoView` action scrolls, and declaring it is
|
|
72
|
+
* what advertises that action — but only when `actions` is left to be
|
|
73
|
+
* inferred. An explicit `actions` list is taken as written; include
|
|
74
|
+
* `'scrollIntoView'` in it yourself if you want the action advertised.
|
|
75
|
+
*/
|
|
76
|
+
scrollAncestorId?: string;
|
|
56
77
|
/** RN style prop — will be flattened for design review */
|
|
57
78
|
style?: unknown;
|
|
58
79
|
/** State-specific style overrides for design review (pressed, focused, disabled) */
|
|
@@ -168,17 +189,22 @@ export interface UseUIElementReturn {
|
|
|
168
189
|
* `testId` so spec-check and a11y stay in sync). Idempotent — no-op when
|
|
169
190
|
* the new label equals the current registered value.
|
|
170
191
|
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
192
|
+
* NOT required for the common case any more. The `label` OPTION passed to
|
|
193
|
+
* `useUIElement({ id, label })` is now auto-re-published whenever its value
|
|
194
|
+
* changes, so a state-derived label (a tab's active suffix, a card's
|
|
195
|
+
* `${title}: ${loading ? 'loading' : value}`, a list's "N events" count)
|
|
196
|
+
* stays in sync with zero call-site ceremony. Existing consumers that still
|
|
197
|
+
* drive `updateLabel(label)` from their own `useEffect` keep working — the
|
|
198
|
+
* second publish is inert, not a flicker.
|
|
199
|
+
*
|
|
200
|
+
* Reach for this only when the string you want in the registry is NOT the
|
|
201
|
+
* `label` option — e.g. a label owned by an imperative handler, or one
|
|
202
|
+
* computed outside the render path.
|
|
176
203
|
*
|
|
177
204
|
* @example
|
|
178
205
|
* ```tsx
|
|
179
|
-
*
|
|
180
|
-
* const {
|
|
181
|
-
* useEffect(() => { updateLabel(label); }, [label, updateLabel]);
|
|
206
|
+
* // No `updateLabel` needed — the option is republished automatically.
|
|
207
|
+
* const { ref } = useUIElement({ id: 'events-list', label: `${events.length} events`, type: 'list' });
|
|
182
208
|
* ```
|
|
183
209
|
*/
|
|
184
210
|
updateLabel: (newLabel: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUIElement.d.ts","sourceRoot":"","sources":["../../src/react/useUIElement.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,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,MAAM,IAAI,CAAC;IACrB,sCAAsC;IACtC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,kCAAkC;IAClC,iBAAiB,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAClD,uEAAuE;IACvE,WAAW,EAAE,CACX,KAAK,EAAE,OAAO,EACd,WAAW,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KACvE,IAAI,CAAC;IACV;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAoFD,wBAAgB,YAAY,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EAC1E,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAC9B,kBAAkB,CAAC;AAwkBtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,2BAA4B,SAAQ,kBAAkB;IACrE,yCAAyC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACxD;AAED;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,IACtF,mCAAmC,CAAC,CAAC,CAAC,CAAC;AAEzC,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EACnF,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,2BAA2B,CAsB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EACL,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EACL,KAAK,sBAAsB,EAK5B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAwB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,KAAK,EAQV,oBAAoB,EAKrB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AA4VhF;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,sBAAsB,EAChC,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,CAAC,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,CA4/BtB"}
|
|
@@ -12,9 +12,20 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { NativeUIBridgeRegistry } from '../core/registry';
|
|
14
14
|
import type { NativeActionExecutor } from '../control/types';
|
|
15
|
-
import type { NativeServerConfig, NavigationProvider, RouteProvider, ScreenshotProvider, KeepAwakeProvider } from './types';
|
|
15
|
+
import type { NativeServerConfig, NavigationProvider, RouteProvider, ScreenshotProvider, KeepAwakeProvider, APIResponse } from './types';
|
|
16
16
|
import type { WebSocketEventBridge } from './ws-event-bridge';
|
|
17
17
|
import type { JsonRpcRequest, JsonRpcResponse } from './ws-types';
|
|
18
|
+
/**
|
|
19
|
+
* Derive the HTTP status for a completed `APIResponse`.
|
|
20
|
+
*
|
|
21
|
+
* Every unsuccessful response used to be flattened to HTTP 400, which made a
|
|
22
|
+
* deliberately-unimplemented route (`/ai/forms` → `NOT_SUPPORTED`) and a route
|
|
23
|
+
* that does not exist (`NOT_FOUND`) indistinguishable from a malformed request
|
|
24
|
+
* — so callers retried request shapes against endpoints that were never going
|
|
25
|
+
* to answer. The envelope's `code` already carries the distinction; this maps
|
|
26
|
+
* it onto the status line so a caller reading only the status gets the truth.
|
|
27
|
+
*/
|
|
28
|
+
export declare function httpStatusForResponse(response: APIResponse): number;
|
|
18
29
|
/**
|
|
19
30
|
* HTTP Request interface (library-agnostic)
|
|
20
31
|
*/
|
|
@@ -114,7 +125,9 @@ export declare class NativeUIBridgeServer {
|
|
|
114
125
|
setNavigationProvider(provider: NavigationProvider): void;
|
|
115
126
|
/**
|
|
116
127
|
* Set a route provider for reporting the current navigation route.
|
|
117
|
-
* When set, `control/snapshot` responses include `currentRoute` and
|
|
128
|
+
* When set, `control/snapshot` responses include `currentRoute` and
|
|
129
|
+
* `segments`, plus the canonical `route` / `activeTab` aliases the web SDK's
|
|
130
|
+
* `BridgeSnapshot` spells the same way.
|
|
118
131
|
*
|
|
119
132
|
* Also forwards the provider into the registry so the *default*
|
|
120
133
|
* `getSnapshot` handler (and any other call site of
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../../src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