@aixnn/aixautots 0.6.13 → 0.6.17
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/{automation-queue-BFWqw32O.d.ts → automation-queue-DO8fOG6l.d.ts} +2 -2
- package/dist/{chunk-S5N4EOCP.js → chunk-3OBCSW2J.js} +1 -1
- package/dist/{chunk-VMA3QOYR.js → chunk-7RQTSTR6.js} +1 -1
- package/dist/{chunk-QRIWTPN3.js → chunk-FJPIY4YI.js} +10 -4
- package/dist/{chunk-T6X6TWHK.js → chunk-KASSYUGM.js} +2 -2
- package/dist/{chunk-QFGMQLRB.js → chunk-LOKPZ677.js} +30 -13
- package/dist/{chunk-Q5I63UYT.js → chunk-NIEGPH3E.js} +48 -58
- package/dist/{chunk-SKI7TINK.js → chunk-TJ2QIP5M.js} +25 -25
- package/dist/{chunk-HMDUSVQ3.js → chunk-WOPEKCVC.js} +2 -2
- package/dist/{chunk-U4QW45MB.js → chunk-ZDCTHR7D.js} +13 -6
- package/dist/{config-UmU2_q5M.d.ts → config-CBUhr4Gl.d.ts} +2 -2
- package/dist/core/index.d.ts +9 -9
- package/dist/{device-normalize-CWJFr_sf.d.ts → device-normalize-Vl5JYbAI.d.ts} +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{mirror-session-Cy20lIHP.d.ts → mirror-session-Y1InpkUY.d.ts} +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/{script-debugger-F5UGUq5t.d.ts → script-debugger-DoT02din.d.ts} +1 -1
- package/dist/{task-agent-runner-Cj_u-3DS.d.ts → task-agent-runner-Cl2ickJ1.d.ts} +3 -3
- package/dist/{types-BvrppNIZ.d.ts → types-Cp1ohbTb.d.ts} +1 -1
- package/dist/ui/billing.d.ts +1 -1
- package/dist/ui/billing.js +2 -2
- package/dist/ui/device-create.d.ts +5 -2
- package/dist/ui/device-create.js +5 -5
- package/dist/ui/device-mirror.js +3 -3
- package/dist/ui/devices.d.ts +5 -5
- package/dist/ui/devices.js +8 -8
- package/dist/ui/editor.d.ts +2 -2
- package/dist/ui/editor.js +4 -4
- package/dist/ui/index.d.ts +4 -4
- package/dist/ui/index.js +4 -4
- package/dist/ui/inspector.js +2 -2
- package/dist/ui/ip-commerce.d.ts +4 -2
- package/dist/ui/ip-commerce.js +3 -3
- package/dist/ui/market.js +1 -1
- package/dist/ui/mirror.d.ts +3 -3
- package/dist/ui/primitives/index.js +1 -1
- package/dist/ui/script-studio.js +3 -3
- package/dist/ui/scripts.d.ts +1 -1
- package/dist/ui/scripts.js +2 -2
- package/dist/ui/tasks.js +8 -8
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as RunEventKind, A as AixConfig, R as ResolvedConfig } from './config-
|
|
2
|
-
import { S as Script } from './types-
|
|
1
|
+
import { a as RunEventKind, A as AixConfig, R as ResolvedConfig } from './config-CBUhr4Gl.js';
|
|
2
|
+
import { S as Script } from './types-Cp1ohbTb.js';
|
|
3
3
|
|
|
4
4
|
interface FlowSubmit {
|
|
5
5
|
/** Inline flow JSON (XOR scriptId). */
|
|
@@ -24,7 +24,7 @@ function Dialog({
|
|
|
24
24
|
DialogPrimitive.Content,
|
|
25
25
|
{
|
|
26
26
|
className: cn(
|
|
27
|
-
"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-card border border-border rounded-lg p-6 w-full z-[70] shadow-xl",
|
|
27
|
+
"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-card border border-border rounded-lg p-6 w-full max-h-[calc(100dvh-2rem)] overflow-y-auto z-[70] shadow-xl",
|
|
28
28
|
maxWidth
|
|
29
29
|
),
|
|
30
30
|
children: [
|
|
@@ -46,7 +46,10 @@ var en = {
|
|
|
46
46
|
"proxy.manualInput": "Manual input",
|
|
47
47
|
"proxy.chooseManaged": "Choose from AIxIPs",
|
|
48
48
|
"proxy.directHint": "The device will use the node\u2019s network directly.",
|
|
49
|
-
"
|
|
49
|
+
"proxy.androidSystemHint": "The proxy is saved in Android system settings and used by apps that follow those settings.",
|
|
50
|
+
"proxy.regionPurchaseHint": "Choose a region to buy an AIxIps IP.",
|
|
51
|
+
"creation.managed": "AIxIPS proxy IP",
|
|
52
|
+
"creation.chooseManaged": "Choose an AIxIPS IP",
|
|
50
53
|
"creation.custom": "Custom proxy (optional)",
|
|
51
54
|
"creation.none": "No proxy",
|
|
52
55
|
"creation.country": "IP country",
|
|
@@ -426,7 +429,7 @@ var en = {
|
|
|
426
429
|
"drawer.noResults": "No results",
|
|
427
430
|
"drawer.chooseFile": "Choose file\u2026",
|
|
428
431
|
"drawer.proxy": "Proxy",
|
|
429
|
-
"drawer.proxyDesc": "
|
|
432
|
+
"drawer.proxyDesc": "HTTP proxy: http://[user:percent-encoded-password@]host:port. Credentials are optional.",
|
|
430
433
|
"drawer.proxyPlaceholder": "http://[user:password@]host:8080 (empty to clear)",
|
|
431
434
|
"drawer.proxySaved": "Proxy saved; apply status updated below",
|
|
432
435
|
"drawer.proxyCleared": "Proxy cleared",
|
|
@@ -981,7 +984,10 @@ var zh = {
|
|
|
981
984
|
"proxy.manualInput": "\u624B\u52A8\u8F93\u5165",
|
|
982
985
|
"proxy.chooseManaged": "\u9009\u62E9 AIxIPs \u4EE3\u7406",
|
|
983
986
|
"proxy.directHint": "\u8BBE\u5907\u5C06\u76F4\u63A5\u4F7F\u7528\u8282\u70B9\u7F51\u7EDC\u3002",
|
|
984
|
-
"
|
|
987
|
+
"proxy.androidSystemHint": "\u4EE3\u7406\u5C06\u5199\u5165 Android \u7CFB\u7EDF\u8BBE\u7F6E\uFF0C\u4F9B\u9075\u5FAA\u7CFB\u7EDF\u4EE3\u7406\u7684\u5E94\u7528\u4F7F\u7528\u3002",
|
|
988
|
+
"proxy.regionPurchaseHint": "\u9009\u62E9\u5730\u533A\u540E\u8D2D\u4E70 AIxIps IP\u3002",
|
|
989
|
+
"creation.managed": "AIxIPS \u4EE3\u7406 IP",
|
|
990
|
+
"creation.chooseManaged": "\u9009\u62E9 AIxIPS \u4EE3\u7406 IP",
|
|
985
991
|
"creation.custom": "\u81EA\u5B9A\u4E49\u4EE3\u7406\uFF08\u5907\u9009\uFF09",
|
|
986
992
|
"creation.none": "\u4E0D\u4F7F\u7528\u4EE3\u7406",
|
|
987
993
|
"creation.country": "IP \u56FD\u5BB6 / \u5730\u533A",
|
|
@@ -1360,7 +1366,7 @@ var zh = {
|
|
|
1360
1366
|
"drawer.noResults": "\u65E0\u7ED3\u679C",
|
|
1361
1367
|
"drawer.chooseFile": "\u9009\u62E9\u6587\u4EF6\u2026",
|
|
1362
1368
|
"drawer.proxy": "\u4EE3\u7406 Proxy",
|
|
1363
|
-
"drawer.proxyDesc": "
|
|
1369
|
+
"drawer.proxyDesc": "HTTP \u4EE3\u7406\uFF1Ahttp://[\u7528\u6237:\u5BC6\u7801@]\u4E3B\u673A:\u7AEF\u53E3\u3002\u7528\u6237\u540D\u548C\u5BC6\u7801\u53EF\u4E0D\u586B\u3002",
|
|
1364
1370
|
"drawer.proxyPlaceholder": "http://[\u7528\u6237\u540D:\u5BC6\u7801@]\u4E3B\u673A:8080\uFF08\u7559\u7A7A\u6E05\u9664\uFF09",
|
|
1365
1371
|
"drawer.proxySaved": "\u4EE3\u7406\u5DF2\u4FDD\u5B58\uFF1B\u4E0B\u65B9\u663E\u793A\u4E0B\u53D1\u72B6\u6001",
|
|
1366
1372
|
"drawer.proxyCleared": "\u4EE3\u7406\u5DF2\u6E05\u9664",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useAixT } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
1
|
+
import { useAixT } from './chunk-FJPIY4YI.js';
|
|
2
|
+
import { Button } from './chunk-7RQTSTR6.js';
|
|
3
3
|
import { useClient } from './chunk-QEK25NUA.js';
|
|
4
4
|
import { useSyncExternalStore, useState, useEffect } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useAixLang } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
1
|
+
import { useAixLang } from './chunk-FJPIY4YI.js';
|
|
2
|
+
import { Button } from './chunk-7RQTSTR6.js';
|
|
3
3
|
import { useClient } from './chunk-QEK25NUA.js';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -9,6 +9,10 @@ function offerUnit(offer, zh) {
|
|
|
9
9
|
if (offer.billing_mode === "term") return zh ? "IP / \u5929" : "IP / day";
|
|
10
10
|
return `${offer.unit_bytes ?? "\u2014"} bytes`;
|
|
11
11
|
}
|
|
12
|
+
function chooseRegionOffer(offers) {
|
|
13
|
+
const billing = (offer) => offer.billing_mode === "term" ? 0 : offer.billing_mode === "prepaid" ? 1 : 2;
|
|
14
|
+
return [...offers].sort((a, b) => (a.available === false ? 1 : 0) - (b.available === false ? 1 : 0) || billing(a) - billing(b) || (a.kind === b.kind ? 0 : a.kind === "static" ? -1 : 1) || (a.unit_price_cents ?? Number.MAX_SAFE_INTEGER) - (b.unit_price_cents ?? Number.MAX_SAFE_INTEGER) || a.tier_rank - b.tier_rank || a.name.localeCompare(b.name))[0];
|
|
15
|
+
}
|
|
12
16
|
var clientIds = /* @__PURE__ */ new WeakMap();
|
|
13
17
|
var nextClientId = 0;
|
|
14
18
|
function IpCommercePanel(props) {
|
|
@@ -27,6 +31,7 @@ function IpCommerceSession(props) {
|
|
|
27
31
|
const { client } = props;
|
|
28
32
|
const standalone = !props.deviceId && !props.creationSpec;
|
|
29
33
|
const supported = props.supported ?? standalone;
|
|
34
|
+
const regionOnly = props.regionOnly === true;
|
|
30
35
|
const lang = useAixLang();
|
|
31
36
|
const zh = lang === "zh";
|
|
32
37
|
const msg = (cn, en) => zh ? cn : en;
|
|
@@ -59,7 +64,9 @@ function IpCommerceSession(props) {
|
|
|
59
64
|
const currentScope = JSON.stringify([props.deviceId, props.creationSpec]);
|
|
60
65
|
const filters = catalog?.offers.filter((o) => o.kind === kind) ?? [];
|
|
61
66
|
const offers = filters.filter((o) => (!country || o.region === country) && (!tier || o.tier === tier) && (!mode || o.billing_mode === mode) && (!ceiling || o.unit_price_cents !== null && o.unit_price_cents <= Number(ceiling)));
|
|
62
|
-
const
|
|
67
|
+
const listed = regionOnly ? catalog?.offers.filter((o) => !!country && o.region === country) ?? [] : offers;
|
|
68
|
+
const offer = regionOnly ? chooseRegionOffer(listed) : listed.find((o) => o.offer_id === selected) ?? listed[0];
|
|
69
|
+
const regions = [...new Set((regionOnly ? catalog?.offers ?? [] : filters).flatMap((o) => o.region ? [o.region] : []))];
|
|
63
70
|
const frozen = busy || !!pending;
|
|
64
71
|
const active = orders.find((o) => o.id === pending);
|
|
65
72
|
const issue = (e) => e instanceof Error ? e.message : String(e);
|
|
@@ -128,8 +135,8 @@ function IpCommerceSession(props) {
|
|
|
128
135
|
};
|
|
129
136
|
}, [client, props.deviceId]);
|
|
130
137
|
useEffect(() => {
|
|
131
|
-
latest.current.onPendingChange?.(!!pending);
|
|
132
|
-
}, [pending]);
|
|
138
|
+
if (!loading) latest.current.onPendingChange?.(!!pending);
|
|
139
|
+
}, [pending, loading]);
|
|
133
140
|
useEffect(() => {
|
|
134
141
|
const timer = setInterval(() => {
|
|
135
142
|
setClock((n) => n + 1);
|
|
@@ -150,6 +157,8 @@ function IpCommerceSession(props) {
|
|
|
150
157
|
useEffect(() => {
|
|
151
158
|
if (!pending) setQuote(null);
|
|
152
159
|
}, [currentScope, selected, kind, country, tier, mode, ceiling, duration, traffic, limit, pending]);
|
|
160
|
+
const preferredRegion = regionOnly && catalog ? regions.find((region) => catalog.offers.some((o) => o.region === region && o.available && o.billing_mode !== "payg")) ?? regions.find((region) => catalog.offers.some((o) => o.region === region && o.available)) ?? regions[0] : "";
|
|
161
|
+
if (regionOnly && preferredRegion && !regions.includes(country)) setCountry(preferredRegion);
|
|
153
162
|
const selectClass = "min-h-11 w-full rounded border border-border bg-background px-2 text-sm disabled:opacity-50";
|
|
154
163
|
const getQuote = () => run(async () => {
|
|
155
164
|
if (!offer || !offer.available) return;
|
|
@@ -234,7 +243,10 @@ function IpCommerceSession(props) {
|
|
|
234
243
|
] })
|
|
235
244
|
] }),
|
|
236
245
|
!pending && catalog && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
237
|
-
/* @__PURE__ */ jsxs("
|
|
246
|
+
regionOnly ? /* @__PURE__ */ jsxs("label", { children: [
|
|
247
|
+
msg("\u56FD\u5BB6\uFF0F\u5730\u533A", "Country / region"),
|
|
248
|
+
/* @__PURE__ */ jsx("select", { className: selectClass, disabled: frozen, value: country, onChange: (e) => setCountry(e.target.value), children: regions.map((r) => /* @__PURE__ */ jsx("option", { value: r, children: r.toUpperCase() }, r)) })
|
|
249
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
|
|
238
250
|
/* @__PURE__ */ jsxs("label", { children: [
|
|
239
251
|
msg("\u7C7B\u578B", "Type"),
|
|
240
252
|
/* @__PURE__ */ jsxs("select", { className: selectClass, disabled: frozen, value: kind, onChange: (e) => {
|
|
@@ -252,7 +264,7 @@ function IpCommerceSession(props) {
|
|
|
252
264
|
msg("\u56FD\u5BB6\uFF0F\u5730\u533A", "Country / region"),
|
|
253
265
|
/* @__PURE__ */ jsxs("select", { className: selectClass, disabled: frozen, value: country, onChange: (e) => setCountry(e.target.value), children: [
|
|
254
266
|
/* @__PURE__ */ jsx("option", { value: "", children: msg("\u5168\u90E8", "All") }),
|
|
255
|
-
|
|
267
|
+
regions.map((r) => /* @__PURE__ */ jsx("option", { value: r, children: r.toUpperCase() }, r))
|
|
256
268
|
] })
|
|
257
269
|
] }),
|
|
258
270
|
/* @__PURE__ */ jsxs("label", { children: [
|
|
@@ -274,15 +286,15 @@ function IpCommerceSession(props) {
|
|
|
274
286
|
/* @__PURE__ */ jsx("input", { className: selectClass, type: "number", min: "0", step: "1", value: ceiling, disabled: frozen, onChange: (e) => setCeiling(e.target.value) })
|
|
275
287
|
] })
|
|
276
288
|
] }),
|
|
277
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: msg("\u5546\u54C1\u5206\u7C7B\u4E0D\u4EE3\u8868\u72EC\u7ACB\u8D28\u91CF\u8BA4\u8BC1\uFF1B\u56FA\u5B9A\u7EBF\u8DEF\u4E0D\u4FDD\u8BC1\u51FA\u53E3 IP \u6C38\u4E45\u4E0D\u53D8\u3002", "Tiers are product classifications, not quality certification. A fixed line does not guarantee a permanently fixed exit IP.") }),
|
|
278
|
-
!
|
|
279
|
-
/* @__PURE__ */ jsxs("label", { className: "block", children: [
|
|
289
|
+
!regionOnly && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: msg("\u5546\u54C1\u5206\u7C7B\u4E0D\u4EE3\u8868\u72EC\u7ACB\u8D28\u91CF\u8BA4\u8BC1\uFF1B\u56FA\u5B9A\u7EBF\u8DEF\u4E0D\u4FDD\u8BC1\u51FA\u53E3 IP \u6C38\u4E45\u4E0D\u53D8\u3002", "Tiers are product classifications, not quality certification. A fixed line does not guarantee a permanently fixed exit IP.") }),
|
|
290
|
+
!listed.length ? /* @__PURE__ */ jsx("p", { role: "status", children: regionOnly ? msg("\u8BE5\u5730\u533A\u6682\u65E0\u53EF\u8D2D\u4E70\u7EBF\u8DEF\u3002", "No purchasable line is available for this region.") : kind === "dynamic" ? msg("\u5F53\u524D\u6682\u65E0\u7B26\u5408\u6761\u4EF6\u7684\u52A8\u6001 IP \u5546\u54C1\u3002", "No matching dynamic IP products are currently available.") : msg("\u6682\u65E0\u7B26\u5408\u6761\u4EF6\u7684\u5546\u54C1\u3002", "No matching products.") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
291
|
+
!regionOnly && /* @__PURE__ */ jsxs("label", { className: "block", children: [
|
|
280
292
|
msg("\u5546\u54C1", "Product"),
|
|
281
293
|
/* @__PURE__ */ jsx("select", { className: selectClass, value: offer?.offer_id ?? "", disabled: frozen, onChange: (e) => {
|
|
282
294
|
setSelected(e.target.value);
|
|
283
295
|
setDuration("");
|
|
284
296
|
setTraffic("");
|
|
285
|
-
}, children:
|
|
297
|
+
}, children: listed.map((o) => /* @__PURE__ */ jsxs("option", { value: o.offer_id, children: [
|
|
286
298
|
o.name,
|
|
287
299
|
" \xB7 ",
|
|
288
300
|
o.unit_price_cents === null ? msg("\u672A\u5B9A\u4EF7", "Unpriced") : `${usd(o.unit_price_cents)} / ${offerUnit(o, zh)}`,
|
|
@@ -291,6 +303,11 @@ function IpCommerceSession(props) {
|
|
|
291
303
|
] }, o.offer_id)) })
|
|
292
304
|
] }),
|
|
293
305
|
offer && /* @__PURE__ */ jsxs("div", { className: "rounded border border-border p-3 space-y-2", children: [
|
|
306
|
+
regionOnly && /* @__PURE__ */ jsxs("p", { className: "font-medium", children: [
|
|
307
|
+
offer.name,
|
|
308
|
+
" \xB7 ",
|
|
309
|
+
offer.unit_price_cents === null ? msg("\u672A\u5B9A\u4EF7", "Unpriced") : `${usd(offer.unit_price_cents)} / ${offerUnit(offer, zh)}`
|
|
310
|
+
] }),
|
|
294
311
|
/* @__PURE__ */ jsxs("p", { children: [
|
|
295
312
|
msg("\u51FA\u53E3\u7A33\u5B9A\u6027", "Exit stability"),
|
|
296
313
|
": ",
|
|
@@ -301,11 +318,11 @@ function IpCommerceSession(props) {
|
|
|
301
318
|
": ",
|
|
302
319
|
offer.unavailable_reason ?? "unavailable"
|
|
303
320
|
] }),
|
|
304
|
-
offer.billing_mode === "term" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
|
|
321
|
+
!regionOnly && offer.billing_mode === "term" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
|
|
305
322
|
msg("\u671F\u9650\uFF08\u5929\uFF09", "Duration (days)"),
|
|
306
323
|
/* @__PURE__ */ jsx("select", { className: selectClass, value: duration || String(offer.duration_days_options[0] ?? ""), disabled: frozen, onChange: (e) => setDuration(e.target.value), children: offer.duration_days_options.map((n) => /* @__PURE__ */ jsx("option", { children: n }, n)) })
|
|
307
324
|
] }),
|
|
308
|
-
offer.billing_mode === "prepaid" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
|
|
325
|
+
!regionOnly && offer.billing_mode === "prepaid" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
|
|
309
326
|
msg("\u6D41\u91CF\u5305\uFF08GiB\uFF09", "Traffic package (GiB)"),
|
|
310
327
|
/* @__PURE__ */ jsx("select", { className: selectClass, value: traffic || String(offer.traffic_gb_options[0] ?? ""), disabled: frozen, onChange: (e) => setTraffic(e.target.value), children: offer.traffic_gb_options.map((n) => /* @__PURE__ */ jsx("option", { children: n }, n)) })
|
|
311
328
|
] }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IosDeviceDiagnostics } from './chunk-
|
|
2
|
-
import { IpCommercePanel } from './chunk-
|
|
1
|
+
import { IosDeviceDiagnostics } from './chunk-KASSYUGM.js';
|
|
2
|
+
import { IpCommercePanel } from './chunk-LOKPZ677.js';
|
|
3
3
|
import { canConnectPhysicalDevice } from './chunk-ZB5ET67B.js';
|
|
4
|
-
import { useAixT } from './chunk-
|
|
5
|
-
import { cn, Select, Dialog, Button, Input, Badge } from './chunk-
|
|
4
|
+
import { useAixT } from './chunk-FJPIY4YI.js';
|
|
5
|
+
import { cn, Select, Dialog, Button, Input, Badge } from './chunk-7RQTSTR6.js';
|
|
6
6
|
import { useNodes, useClient, useDevices } from './chunk-QEK25NUA.js';
|
|
7
7
|
import { useState, useEffect, useMemo, useCallback, useRef } from 'react';
|
|
8
8
|
import { Server, RefreshCw, Smartphone, Usb, Wifi, Info } from 'lucide-react';
|
|
@@ -23,6 +23,15 @@ function availableVirtualImages(node, catalog, platform) {
|
|
|
23
23
|
function availableVirtualPlatforms(node, catalog) {
|
|
24
24
|
return ["android", "ios"].filter((platform) => availableVirtualImages(node, catalog, platform).length > 0);
|
|
25
25
|
}
|
|
26
|
+
function availableVirtualVersions(node, catalog, platform) {
|
|
27
|
+
const versions = /* @__PURE__ */ new Map();
|
|
28
|
+
for (const image of availableVirtualImages(node, catalog, platform)) {
|
|
29
|
+
const key = JSON.stringify([image.platform, image.version, image.rooted]);
|
|
30
|
+
const previous = versions.get(key);
|
|
31
|
+
if (!previous || previous.image_tag.endsWith(":latest") && !image.image_tag.endsWith(":latest")) versions.set(key, image);
|
|
32
|
+
}
|
|
33
|
+
return [...versions.values()];
|
|
34
|
+
}
|
|
26
35
|
var SCOPE_META = {
|
|
27
36
|
platform: { label: "\u5E73\u53F0", order: 0 },
|
|
28
37
|
project: { label: "\u9879\u76EE", order: 1 },
|
|
@@ -266,7 +275,7 @@ function VirtualSpecStep({ spec, onChange, nodeId, onValidityChange }) {
|
|
|
266
275
|
alive = false;
|
|
267
276
|
};
|
|
268
277
|
}, [client]);
|
|
269
|
-
const availableVersions =
|
|
278
|
+
const availableVersions = availableVirtualVersions(selectedNode, versions, platform);
|
|
270
279
|
const allowedPlatforms = availableVirtualPlatforms(selectedNode, versions);
|
|
271
280
|
const platformOptions = PLATFORM_OPTIONS.filter((option) => allowedPlatforms.includes(option.value));
|
|
272
281
|
const versionOptions = availableVersions.map((o) => ({ value: o.id, label: o.label }));
|
|
@@ -850,14 +859,18 @@ function deviceProxyCapabilities(device, node) {
|
|
|
850
859
|
const custom = redroid && !!nodeId && node?.id === nodeId && cap?.supported === true;
|
|
851
860
|
return { custom, managed: custom && cap?.revision_fencing === true };
|
|
852
861
|
}
|
|
862
|
+
function usesAndroidSystemProxy(node) {
|
|
863
|
+
const cap = node?.reported_caps?.egress_proxy;
|
|
864
|
+
return cap?.supported === true && (cap.mode === "android_system" || cap.enforcement === "android_system");
|
|
865
|
+
}
|
|
853
866
|
function proxyCapabilityReason(device) {
|
|
854
867
|
if (device.platform !== "android" || device.meta?.provisioned !== true) {
|
|
855
|
-
return "Per-device
|
|
868
|
+
return "Per-device proxy requires a provisioned virtual Android Redroid device.";
|
|
856
869
|
}
|
|
857
870
|
if (typeof device.meta?.node_id !== "string" || !device.meta.node_id) {
|
|
858
871
|
return "The owning node is unknown, so per-device proxy is unavailable.";
|
|
859
872
|
}
|
|
860
|
-
return "The owning node does not report per-device
|
|
873
|
+
return "The owning node does not report per-device proxy capability.";
|
|
861
874
|
}
|
|
862
875
|
function proxyProbeMessage(result) {
|
|
863
876
|
const message = result.message ?? result.error;
|
|
@@ -896,7 +909,7 @@ var LOCALE_OPTIONS = [
|
|
|
896
909
|
{ value: "ja-JP", label: "\u65E5\u672C\u8A9E (ja-JP)" },
|
|
897
910
|
{ value: "ko-KR", label: "\uD55C\uAD6D\uC5B4 (ko-KR)" }
|
|
898
911
|
];
|
|
899
|
-
function ProxySpoofStep({ spec, onChange, isReal, showProxy = !isReal }) {
|
|
912
|
+
function ProxySpoofStep({ spec, onChange, isReal, showProxy = !isReal, proxyDisabled = false, proxyAction }) {
|
|
900
913
|
const proxy = spec.proxy ?? "";
|
|
901
914
|
const locale = spec.config?.locale ?? "";
|
|
902
915
|
const proxyInvalid = proxy.trim().length > 0 && !isSupportedProxyUrl(proxy.trim());
|
|
@@ -920,26 +933,21 @@ function ProxySpoofStep({ spec, onChange, isReal, showProxy = !isReal }) {
|
|
|
920
933
|
showProxy && /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
|
|
921
934
|
/* @__PURE__ */ jsx("p", { className: "text-label-caps text-muted-foreground", children: "\u4EE3\u7406 proxy" }),
|
|
922
935
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
923
|
-
/* @__PURE__ */ jsx("label", { className: "text-
|
|
936
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "creation-proxy-url", className: "text-sm text-muted-foreground", children: "\u4EE3\u7406\u5730\u5740 URL" }),
|
|
924
937
|
/* @__PURE__ */ jsx(
|
|
925
938
|
Input,
|
|
926
939
|
{
|
|
940
|
+
id: "creation-proxy-url",
|
|
941
|
+
disabled: proxyDisabled,
|
|
927
942
|
value: proxy,
|
|
928
943
|
onChange: (e) => setProxy(e.target.value),
|
|
929
944
|
placeholder: "http://host:8080 \u6216 http://user:password@host:8080",
|
|
930
945
|
className: proxyInvalid ? "border-destructive" : void 0
|
|
931
946
|
}
|
|
932
947
|
),
|
|
933
|
-
/* @__PURE__ */
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
"\u3002 \u5BC6\u7801\u4E2D\u7684 ",
|
|
937
|
-
/* @__PURE__ */ jsx("code", { children: "@" }),
|
|
938
|
-
"\u3001",
|
|
939
|
-
/* @__PURE__ */ jsx("code", { children: ":" }),
|
|
940
|
-
" \u7B49\u7279\u6B8A\u5B57\u7B26\u5FC5\u987B\u505A URL \u767E\u5206\u53F7\u7F16\u7801\uFF1BUDP/QUIC/DNS \u4E0D\u7ECF\u8FC7\u6B64\u4EE3\u7406\uFF0C\u4FDD\u6301\u76F4\u8FDE\u3002 \u7528\u6237\u540D\u548C\u5BC6\u7801\u53EF\u4E0D\u586B\uFF1B\u7559\u7A7A\u8868\u793A\u4E0D\u4F7F\u7528\u4EE3\u7406\u3002"
|
|
941
|
-
] }),
|
|
942
|
-
proxyInvalid && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-destructive", children: "\u8BF7\u8F93\u5165 http://\u4E3B\u673A:\u7AEF\u53E3 \u6216 http://\u7528\u6237\u540D:\u5BC6\u7801@\u4E3B\u673A:\u7AEF\u53E3\uFF1B\u4E0D\u652F\u6301 socks/https\u3002" })
|
|
948
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: proxyDisabled ? "\u5F53\u524D\u8282\u70B9\u6682\u4E0D\u652F\u6301\u4EE3\u7406\uFF0C\u8BBE\u5907\u5C06\u4F7F\u7528\u8282\u70B9\u7F51\u7EDC\u3002" : "\u586B\u5199 HTTP \u4EE3\u7406\u5730\u5740\uFF1B\u7528\u6237\u540D\u548C\u5BC6\u7801\u53EF\u9009\u3002\u7559\u7A7A\u5219\u4F7F\u7528\u8282\u70B9\u7F51\u7EDC\u3002" }),
|
|
949
|
+
proxyInvalid && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-destructive", children: "\u8BF7\u8F93\u5165 http://\u4E3B\u673A:\u7AEF\u53E3 \u6216 http://\u7528\u6237\u540D:\u5BC6\u7801@\u4E3B\u673A:\u7AEF\u53E3\uFF1B\u4E0D\u652F\u6301 socks/https\u3002" }),
|
|
950
|
+
proxyAction
|
|
943
951
|
] })
|
|
944
952
|
] }),
|
|
945
953
|
!isReal && /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
|
|
@@ -958,7 +966,7 @@ function ProxySpoofStep({ spec, onChange, isReal, showProxy = !isReal }) {
|
|
|
958
966
|
)
|
|
959
967
|
] })
|
|
960
968
|
] }),
|
|
961
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 rounded-md border border-border bg-secondary px-3 py-2", children: [
|
|
969
|
+
isReal && /* @__PURE__ */ jsxs("div", { className: "flex gap-2 rounded-md border border-border bg-secondary px-3 py-2", children: [
|
|
962
970
|
/* @__PURE__ */ jsx(Info, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
963
971
|
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-muted-foreground", children: isReal ? "\u6B64\u6B65\u9AA4\u4EC5\u767B\u8BB0\u771F\u673A\uFF0C\u4E0D\u4F1A\u5E94\u7528\u7CFB\u7EDF\u4EE3\u7406\u6216\u6307\u7EB9\u8BBE\u7F6E\u3002" : "\u4EE3\u7406\u4EC5\u7528\u4E8E\u5DF2\u62A5\u544A\u652F\u6301\u7684 Redroid \u8282\u70B9\u3002\u81EA\u5B9A\u4E49\u4EE3\u7406\u53EA\u63A5\u7BA1\u652F\u6301\u7684 TCP \u6D41\u91CF\uFF0CUDP/QUIC/DNS \u4E0D\u7ECF\u8FC7\u6B64\u4EE3\u7406\u3002" })
|
|
964
972
|
] })
|
|
@@ -987,9 +995,10 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
987
995
|
const [busy, setBusy] = useState(false);
|
|
988
996
|
const [error, setError] = useState("");
|
|
989
997
|
const [quantity, setQuantity] = useState(1);
|
|
990
|
-
const [
|
|
998
|
+
const [aixipsOpen, setAixipsOpen] = useState(false);
|
|
991
999
|
const [managedPending, setManagedPending] = useState(false);
|
|
992
|
-
const
|
|
1000
|
+
const selectedNode = nodes?.find((node) => node.id === nodeId);
|
|
1001
|
+
const proxyCapabilities = createProxyCapabilities(kind, spec, selectedNode);
|
|
993
1002
|
useEffect(() => {
|
|
994
1003
|
if (!open) return;
|
|
995
1004
|
setStep(0);
|
|
@@ -1001,10 +1010,10 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
1001
1010
|
setBusy(false);
|
|
1002
1011
|
setError("");
|
|
1003
1012
|
setQuantity(1);
|
|
1004
|
-
|
|
1013
|
+
setAixipsOpen(false);
|
|
1005
1014
|
setManagedPending(false);
|
|
1006
1015
|
}, [open]);
|
|
1007
|
-
const proxyOk =
|
|
1016
|
+
const proxyOk = kind !== "virtual" || !spec.proxy?.trim() || proxyCapabilities.custom && isSupportedProxyUrl(spec.proxy.trim());
|
|
1008
1017
|
const canNext = (() => {
|
|
1009
1018
|
if (step === 0) return true;
|
|
1010
1019
|
if (step === 1) return !!nodeId;
|
|
@@ -1027,13 +1036,13 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
1027
1036
|
setError("\u8BF7\u9009\u62E9\u8BE5\u8282\u70B9\u5DF2\u5B89\u88C5\u7684\u7CFB\u7EDF\u7248\u672C\u540E\u518D\u521B\u5EFA\u3002");
|
|
1028
1037
|
return;
|
|
1029
1038
|
}
|
|
1030
|
-
if (managedPending
|
|
1031
|
-
if (
|
|
1039
|
+
if (managedPending) return;
|
|
1040
|
+
if (kind === "virtual" && spec.proxy?.trim() && !proxyCapabilities.custom) {
|
|
1032
1041
|
setError(t("creation.unsupported"));
|
|
1033
1042
|
return;
|
|
1034
1043
|
}
|
|
1035
1044
|
const provisionSpec = { ...spec, node_id: nodeId };
|
|
1036
|
-
if (
|
|
1045
|
+
if (kind !== "virtual" || !provisionSpec.proxy?.trim()) delete provisionSpec.proxy;
|
|
1037
1046
|
setBusy(true);
|
|
1038
1047
|
setError("");
|
|
1039
1048
|
try {
|
|
@@ -1095,10 +1104,7 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
1095
1104
|
active: kind === "virtual",
|
|
1096
1105
|
title: "\u865A\u62DF\u8BBE\u5907",
|
|
1097
1106
|
desc: "Android / iOS \u4E91\u8BBE\u5907\uFF0C\u6309\u89C4\u683C\u65B0\u5EFA",
|
|
1098
|
-
onClick: () =>
|
|
1099
|
-
setKind("virtual");
|
|
1100
|
-
setNetworkMode("managed");
|
|
1101
|
-
}
|
|
1107
|
+
onClick: () => setKind("virtual")
|
|
1102
1108
|
}
|
|
1103
1109
|
),
|
|
1104
1110
|
/* @__PURE__ */ jsx(
|
|
@@ -1107,10 +1113,7 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
1107
1113
|
active: kind === "real",
|
|
1108
1114
|
title: "\u771F\u673A",
|
|
1109
1115
|
desc: "\u4ECE\u8282\u70B9\u5DF2\u4E0A\u62A5\u7684\u771F\u673A\u4E2D\u9009\u53D6",
|
|
1110
|
-
onClick: () =>
|
|
1111
|
-
setKind("real");
|
|
1112
|
-
setNetworkMode("none");
|
|
1113
|
-
}
|
|
1116
|
+
onClick: () => setKind("real")
|
|
1114
1117
|
}
|
|
1115
1118
|
)
|
|
1116
1119
|
] }),
|
|
@@ -1119,36 +1122,23 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
1119
1122
|
setVirtualSpecValid(false);
|
|
1120
1123
|
}, hidePlatform: kind === "real", virtualOnly: kind === "virtual" }),
|
|
1121
1124
|
step === 2 && (kind === "virtual" ? /* @__PURE__ */ jsx(VirtualSpecStep, { spec, onChange: setSpec, nodeId, onValidityChange: setVirtualSpecValid }) : /* @__PURE__ */ jsx(RealDiscoverStep, { nodeId, picked, onPick: setPicked })),
|
|
1122
|
-
step === 3 && !managedPending &&
|
|
1123
|
-
|
|
1124
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [
|
|
1125
|
-
/* @__PURE__ */ jsx("button", { type: "button", className: "py-2 text-xs font-medium text-primary hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary", "aria-pressed": networkMode === "managed", disabled: busy, onClick: () => setNetworkMode("managed"), children: t("creation.managed") }),
|
|
1126
|
-
/* @__PURE__ */ jsx("button", { type: "button", className: "py-2 text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:opacity-50", "aria-pressed": networkMode === "custom", disabled: busy || !proxyCapabilities.custom, onClick: () => setNetworkMode("custom"), children: t("proxy.manualInput") }),
|
|
1127
|
-
/* @__PURE__ */ jsx("button", { type: "button", className: "py-2 text-xs text-muted-foreground hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary", "aria-pressed": networkMode === "none", disabled: busy, onClick: () => setNetworkMode("none"), children: t("creation.none") })
|
|
1128
|
-
] }),
|
|
1129
|
-
networkMode === "none" && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("proxy.directHint") })
|
|
1130
|
-
] }) }),
|
|
1131
|
-
open && /* @__PURE__ */ jsx(
|
|
1125
|
+
step === 3 && !managedPending && proxyCapabilities.custom && usesAndroidSystemProxy(selectedNode) && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("proxy.androidSystemHint") }),
|
|
1126
|
+
/* @__PURE__ */ jsx(Dialog, { open: aixipsOpen, onClose: () => setAixipsOpen(false), title: t("creation.chooseManaged"), description: t("proxy.regionPurchaseHint"), maxWidth: "max-w-lg", children: aixipsOpen && (quantity === 1 ? /* @__PURE__ */ jsx(
|
|
1132
1127
|
IpCommercePanel,
|
|
1133
1128
|
{
|
|
1134
|
-
|
|
1135
|
-
supported: proxyCapabilities.managed
|
|
1129
|
+
regionOnly: true,
|
|
1130
|
+
supported: proxyCapabilities.managed,
|
|
1136
1131
|
creationSpec: { ...spec, proxy: void 0, node_id: nodeId },
|
|
1137
|
-
onPendingChange:
|
|
1138
|
-
setManagedPending(pending);
|
|
1139
|
-
if (pending) {
|
|
1140
|
-
setNetworkMode("managed");
|
|
1141
|
-
setStep(3);
|
|
1142
|
-
}
|
|
1143
|
-
},
|
|
1132
|
+
onPendingChange: setManagedPending,
|
|
1144
1133
|
onCreated: () => {
|
|
1145
1134
|
void fetchDevices();
|
|
1146
1135
|
onCreated?.(null);
|
|
1147
1136
|
onClose();
|
|
1148
1137
|
}
|
|
1149
1138
|
}
|
|
1150
|
-
),
|
|
1151
|
-
step === 3 && !managedPending && /* @__PURE__ */ jsx(ProxySpoofStep, { spec, onChange: setSpec, isReal: kind === "real", showProxy:
|
|
1139
|
+
) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("creation.singleOnly") })) }),
|
|
1140
|
+
step === 3 && !managedPending && /* @__PURE__ */ jsx(ProxySpoofStep, { spec, onChange: setSpec, isReal: kind === "real", showProxy: kind === "virtual", proxyDisabled: !proxyCapabilities.custom, proxyAction: kind === "virtual" ? /* @__PURE__ */ jsx("button", { type: "button", className: "mt-2 min-h-11 text-sm text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50", disabled: busy, onClick: () => setAixipsOpen(true), children: t("creation.chooseManaged") }) : void 0 }),
|
|
1141
|
+
step === 3 && kind === "virtual" && managedPending && /* @__PURE__ */ jsx("button", { type: "button", className: "min-h-11 text-sm text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary", onClick: () => setAixipsOpen(true), children: t("creation.chooseManaged") }),
|
|
1152
1142
|
step === 3 && kind === "virtual" && !managedPending && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1153
1143
|
/* @__PURE__ */ jsx("label", { className: "text-[11px] text-muted-foreground", children: "\u521B\u5EFA\u6570\u91CF" }),
|
|
1154
1144
|
/* @__PURE__ */ jsx(
|
|
@@ -1166,7 +1156,7 @@ function DeviceCreate({ open, onClose, onCreated }) {
|
|
|
1166
1156
|
] }),
|
|
1167
1157
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t border-border pt-3", children: [
|
|
1168
1158
|
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", disabled: step === 0 || busy || managedPending, onClick: back, children: "\u4E0A\u4E00\u6B65" }),
|
|
1169
|
-
step < 3 ? /* @__PURE__ */ jsx(Button, { size: "sm", disabled: !canNext || managedPending, onClick: next, children: "\u4E0B\u4E00\u6B65" }) :
|
|
1159
|
+
step < 3 ? /* @__PURE__ */ jsx(Button, { size: "sm", disabled: !canNext || managedPending, onClick: next, children: "\u4E0B\u4E00\u6B65" }) : managedPending ? null : /* @__PURE__ */ jsx(
|
|
1170
1160
|
Button,
|
|
1171
1161
|
{
|
|
1172
1162
|
size: "sm",
|
|
@@ -1228,4 +1218,4 @@ function TypeCard({
|
|
|
1228
1218
|
);
|
|
1229
1219
|
}
|
|
1230
1220
|
|
|
1231
|
-
export { AddWirelessDeviceDialog, DeviceCreate, NodePicker, ProxySpoofStep, RealDiscoverStep, VirtualSpecStep, createProxyProbeGuard, deviceProxyCapabilities, isProxyApplyStatus, isProxyProbeUnsupported, isRedactedProxyUrl, isSupportedProxyUrl, proxyCapabilityReason, proxyProbeExitIp, proxyProbeMessage, proxySummaryFromDevice, redactProxyUrl };
|
|
1221
|
+
export { AddWirelessDeviceDialog, DeviceCreate, NodePicker, ProxySpoofStep, RealDiscoverStep, VirtualSpecStep, createProxyProbeGuard, deviceProxyCapabilities, isProxyApplyStatus, isProxyProbeUnsupported, isRedactedProxyUrl, isSupportedProxyUrl, proxyCapabilityReason, proxyProbeExitIp, proxyProbeMessage, proxySummaryFromDevice, redactProxyUrl, usesAndroidSystemProxy };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { LogConsole } from './chunk-
|
|
2
|
-
import { requestPreviewFrame, MirrorSurface, DeviceMirror, ConnectDevicesDialog } from './chunk-
|
|
1
|
+
import { LogConsole } from './chunk-3OBCSW2J.js';
|
|
2
|
+
import { requestPreviewFrame, MirrorSurface, DeviceMirror, ConnectDevicesDialog } from './chunk-ZDCTHR7D.js';
|
|
3
3
|
import { ControlBar, MirrorView } from './chunk-MBBVYSPD.js';
|
|
4
|
-
import { deviceProxyCapabilities, createProxyProbeGuard, proxySummaryFromDevice, isProxyApplyStatus, proxyCapabilityReason, proxyProbeExitIp, proxyProbeMessage, DeviceCreate, isProxyProbeUnsupported, isRedactedProxyUrl, isSupportedProxyUrl, redactProxyUrl } from './chunk-
|
|
5
|
-
import { IosDeviceDiagnostics } from './chunk-
|
|
6
|
-
import { IpCommercePanel } from './chunk-
|
|
4
|
+
import { deviceProxyCapabilities, createProxyProbeGuard, proxySummaryFromDevice, isProxyApplyStatus, usesAndroidSystemProxy, proxyCapabilityReason, proxyProbeExitIp, proxyProbeMessage, DeviceCreate, isProxyProbeUnsupported, isRedactedProxyUrl, isSupportedProxyUrl, redactProxyUrl } from './chunk-NIEGPH3E.js';
|
|
5
|
+
import { IosDeviceDiagnostics } from './chunk-KASSYUGM.js';
|
|
6
|
+
import { IpCommercePanel } from './chunk-LOKPZ677.js';
|
|
7
7
|
import { isPhysicalIos } from './chunk-ZB5ET67B.js';
|
|
8
|
-
import { useAixT } from './chunk-
|
|
9
|
-
import { cn, Badge, Button, Dialog, Input, Popover, Select, useToast, ToastViewport, Drawer } from './chunk-
|
|
8
|
+
import { useAixT } from './chunk-FJPIY4YI.js';
|
|
9
|
+
import { cn, Badge, Button, Dialog, Input, Popover, Select, useToast, ToastViewport, Drawer } from './chunk-7RQTSTR6.js';
|
|
10
10
|
import { useClient, useDevicesView, useShortcutsView, GROUP_MIRROR_MAX, useGroupMirror, useScripts, useFleetRun, useTaskAgentRun, preflightTaskAgentDevice, createAgentTaskRunner, useNodesView } from './chunk-QEK25NUA.js';
|
|
11
11
|
import { DeviceSession, pushFile, pullFile, AixError } from './chunk-2KPZSPV6.js';
|
|
12
12
|
import { useState, useRef, useCallback, useEffect, useMemo, useLayoutEffect } from 'react';
|
|
@@ -329,7 +329,7 @@ function ConfirmDialog({
|
|
|
329
329
|
}
|
|
330
330
|
function ManagedProxyPanel(props) {
|
|
331
331
|
const client = useClient();
|
|
332
|
-
return /* @__PURE__ */ jsx(IpCommercePanel, { deviceId: props.deviceId, supported: props.supported, onChanged: props.onChanged }, JSON.stringify([client.cfg.baseUrl, props.ownerUserId, props.projectId, props.deviceId]));
|
|
332
|
+
return /* @__PURE__ */ jsx(IpCommercePanel, { deviceId: props.deviceId, supported: props.supported, onChanged: props.onChanged, regionOnly: props.regionOnly }, JSON.stringify([client.cfg.baseUrl, props.ownerUserId, props.projectId, props.deviceId]));
|
|
333
333
|
}
|
|
334
334
|
function supportsDataSnapshots(meta) {
|
|
335
335
|
const spec = meta.spec;
|
|
@@ -3040,7 +3040,7 @@ function DeviceDetailDrawer({ deviceId, onClose }) {
|
|
|
3040
3040
|
const [appSearching, setAppSearching] = useState(false);
|
|
3041
3041
|
const [showReinstallPicker, setShowReinstallPicker] = useState(false);
|
|
3042
3042
|
const [showDelete, setShowDelete] = useState(false);
|
|
3043
|
-
const [
|
|
3043
|
+
const [aixipsOpen, setAixipsOpen] = useState(false);
|
|
3044
3044
|
const [proxyInput, setProxyInput] = useState("");
|
|
3045
3045
|
const [proxySummary, setProxySummary] = useState("");
|
|
3046
3046
|
const [proxyApply, setProxyApply] = useState(null);
|
|
@@ -3145,7 +3145,7 @@ function DeviceDetailDrawer({ deviceId, onClose }) {
|
|
|
3145
3145
|
setProxyProbeUnsupported(false);
|
|
3146
3146
|
return;
|
|
3147
3147
|
}
|
|
3148
|
-
|
|
3148
|
+
setAixipsOpen(false);
|
|
3149
3149
|
setTab("overview");
|
|
3150
3150
|
const cur = devices.find((d) => d.id === deviceId);
|
|
3151
3151
|
const storedLocation = cur?.meta?.location;
|
|
@@ -3560,18 +3560,8 @@ function DeviceDetailDrawer({ deviceId, onClose }) {
|
|
|
3560
3560
|
] }),
|
|
3561
3561
|
tab === "overview" && device && deviceId && /* @__PURE__ */ jsxs("section", { children: [
|
|
3562
3562
|
/* @__PURE__ */ jsx("h3", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2", children: t("drawer.proxy") }),
|
|
3563
|
-
/* @__PURE__ */ jsx(
|
|
3564
|
-
|
|
3565
|
-
{
|
|
3566
|
-
type: "button",
|
|
3567
|
-
className: "mb-2 py-2 text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary",
|
|
3568
|
-
"aria-pressed": manualProxy,
|
|
3569
|
-
disabled: proxySaving,
|
|
3570
|
-
onClick: () => setManualProxy((value) => !value),
|
|
3571
|
-
children: t(manualProxy ? "proxy.chooseManaged" : "proxy.manualInput")
|
|
3572
|
-
}
|
|
3573
|
-
),
|
|
3574
|
-
/* @__PURE__ */ jsx("div", { hidden: manualProxy, children: /* @__PURE__ */ jsx(
|
|
3563
|
+
proxyCapability.custom && usesAndroidSystemProxy(proxyNode) && /* @__PURE__ */ jsx("p", { className: "mb-2 text-xs text-muted-foreground", children: t("proxy.androidSystemHint") }),
|
|
3564
|
+
/* @__PURE__ */ jsx(Dialog, { open: aixipsOpen, onClose: () => setAixipsOpen(false), title: t("proxy.chooseManaged"), description: t("proxy.regionPurchaseHint"), maxWidth: "max-w-lg", children: aixipsOpen && /* @__PURE__ */ jsx(
|
|
3575
3565
|
ManagedProxyPanel,
|
|
3576
3566
|
{
|
|
3577
3567
|
deviceId,
|
|
@@ -3579,14 +3569,14 @@ function DeviceDetailDrawer({ deviceId, onClose }) {
|
|
|
3579
3569
|
ownerUserId: device.ownerUserId,
|
|
3580
3570
|
projectId: device.projectId,
|
|
3581
3571
|
supported: proxyCapability.managed,
|
|
3572
|
+
regionOnly: true,
|
|
3582
3573
|
onChanged: () => {
|
|
3583
3574
|
void fetchDevices();
|
|
3584
3575
|
void probeProxy(deviceId);
|
|
3585
3576
|
}
|
|
3586
3577
|
}
|
|
3587
3578
|
) }),
|
|
3588
|
-
|
|
3589
|
-
/* @__PURE__ */ jsx("p", { className: "my-2 text-xs text-muted-foreground", children: t("managed.customHint") }),
|
|
3579
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded border border-border p-3", role: "group", "aria-label": t("managed.custom"), children: [
|
|
3590
3580
|
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-muted-foreground mb-2", children: t("drawer.proxyDesc") }),
|
|
3591
3581
|
proxySummary && /* @__PURE__ */ jsxs("p", { className: "mb-2 rounded border border-border/70 bg-secondary/40 px-2 py-1 text-[11px] text-muted-foreground", children: [
|
|
3592
3582
|
t("drawer.proxyConfigured"),
|
|
@@ -3614,7 +3604,17 @@ function DeviceDetailDrawer({ deviceId, onClose }) {
|
|
|
3614
3604
|
children: proxySaving ? t("common.saving") : t("common.save")
|
|
3615
3605
|
}
|
|
3616
3606
|
)
|
|
3617
|
-
] })
|
|
3607
|
+
] }),
|
|
3608
|
+
/* @__PURE__ */ jsx(
|
|
3609
|
+
"button",
|
|
3610
|
+
{
|
|
3611
|
+
type: "button",
|
|
3612
|
+
className: "mt-2 min-h-11 text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary",
|
|
3613
|
+
disabled: proxySaving,
|
|
3614
|
+
onClick: () => setAixipsOpen(true),
|
|
3615
|
+
children: t("proxy.chooseManaged")
|
|
3616
|
+
}
|
|
3617
|
+
)
|
|
3618
3618
|
] }),
|
|
3619
3619
|
!proxyCapability.custom && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-warning", children: t("drawer.proxyUnavailable") }),
|
|
3620
3620
|
proxyApply && /* @__PURE__ */ jsxs("div", { className: "mt-2 rounded border border-border/70 p-2 text-[11px]", children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LogConsole } from './chunk-
|
|
2
|
-
import { cn, Button, Select } from './chunk-
|
|
1
|
+
import { LogConsole } from './chunk-3OBCSW2J.js';
|
|
2
|
+
import { cn, Button, Select } from './chunk-7RQTSTR6.js';
|
|
3
3
|
import { useDevices, useClient, useScripts, useScriptRun } from './chunk-QEK25NUA.js';
|
|
4
4
|
import { variablesToSchema, normalizeDevices, schemaToVariables } from './chunk-7BJPVSEZ.js';
|
|
5
5
|
import { useMemo, useState, useEffect, useRef, useCallback } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ControlBar, MirrorView } from './chunk-MBBVYSPD.js';
|
|
2
2
|
import { canConnectPhysicalDevice } from './chunk-ZB5ET67B.js';
|
|
3
|
-
import { useAixT } from './chunk-
|
|
4
|
-
import { Dialog, Select, Button, Popover } from './chunk-
|
|
3
|
+
import { useAixT } from './chunk-FJPIY4YI.js';
|
|
4
|
+
import { Dialog, Select, Button, useToast, ToastViewport, Popover } from './chunk-7RQTSTR6.js';
|
|
5
5
|
import { useClient, useDevices, useMirror, createAgentTaskRunner, useTaskAgentRun } from './chunk-QEK25NUA.js';
|
|
6
6
|
import { useState, useRef, useEffect, useId, useCallback, useMemo } from 'react';
|
|
7
7
|
import { ClipboardPaste, Wrench, Check, Settings2, VolumeX, Volume2, RotateCw, X, PanelsTopLeft, Minimize2, Maximize2, Rocket, Loader2, Square, Video, Download } from 'lucide-react';
|
|
@@ -1013,6 +1013,9 @@ var PROFILE_LABELS = {
|
|
|
1013
1013
|
low_latency: "\u4F4E\u5EF6\u8FDF",
|
|
1014
1014
|
high_quality: "\u9AD8\u753B\u8D28"
|
|
1015
1015
|
};
|
|
1016
|
+
function clipboardToastMessage(message) {
|
|
1017
|
+
return message.replace(/^(?:GET|POST|PUT|PATCH|DELETE)\s+\S+\s+\d{3}:\s*/, "");
|
|
1018
|
+
}
|
|
1016
1019
|
var DEFAULT_SIZE = { width: 1080, height: 2340 };
|
|
1017
1020
|
var AUTO_QUALITY_FIRST_CHECK_MS = 2e3;
|
|
1018
1021
|
var AUTO_QUALITY_INTERVAL_MS = 8e3;
|
|
@@ -1111,6 +1114,13 @@ function WebRtcMirrorSurface({ deviceId, platform = "android", onSize, videoAspe
|
|
|
1111
1114
|
panelButton.current?.focus();
|
|
1112
1115
|
};
|
|
1113
1116
|
const { error: clipboardError, conflict: clipboardConflict, resolveConflict } = useClipboardSync(deviceId, !!stream);
|
|
1117
|
+
const { toasts, toast, dismiss } = useToast();
|
|
1118
|
+
const toastRef = useRef(toast);
|
|
1119
|
+
toastRef.current = toast;
|
|
1120
|
+
useEffect(() => {
|
|
1121
|
+
if (!clipboardError) return;
|
|
1122
|
+
toastRef.current.error(clipboardToastMessage(clipboardError));
|
|
1123
|
+
}, [clipboardError]);
|
|
1114
1124
|
const [size, setSize] = useState(DEFAULT_SIZE);
|
|
1115
1125
|
const [hasFrame, setHasFrame] = useState(false);
|
|
1116
1126
|
useEffect(() => {
|
|
@@ -1211,6 +1221,7 @@ function WebRtcMirrorSurface({ deviceId, platform = "android", onSize, videoAspe
|
|
|
1211
1221
|
[reportSize]
|
|
1212
1222
|
);
|
|
1213
1223
|
return /* @__PURE__ */ jsxs("div", { className: `flex min-h-0 flex-col items-center gap-2 ${className ?? ""}`, children: [
|
|
1224
|
+
/* @__PURE__ */ jsx(ToastViewport, { toasts, onDismiss: dismiss }),
|
|
1214
1225
|
/* @__PURE__ */ jsxs("div", { className: `flex min-h-0 max-w-[96vw] flex-1 items-stretch justify-center gap-2 ${videoAspect ? "w-max" : "w-full"}`, children: [
|
|
1215
1226
|
/* @__PURE__ */ jsxs("aside", { "aria-label": "\u8BBE\u5907\u5DE5\u5177\u680F", className: "flex shrink-0 flex-col items-center gap-1 rounded-lg border border-border bg-background p-1 text-foreground", children: [
|
|
1216
1227
|
/* @__PURE__ */ jsx("button", { type: "button", "aria-label": "\u7C98\u8D34\u6587\u672C", title: "\u7C98\u8D34\u6587\u672C", onClick: () => setPasteOpen(true), className: "flex h-11 w-11 items-center justify-center rounded-md hover:bg-secondary", children: /* @__PURE__ */ jsx(ClipboardPaste, { className: "h-4 w-4" }) }),
|
|
@@ -1284,10 +1295,6 @@ function WebRtcMirrorSurface({ deviceId, platform = "android", onSize, videoAspe
|
|
|
1284
1295
|
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => resolveConflict("local"), className: "text-xs underline", children: "\u4FDD\u7559\u672C\u673A\u526A\u8D34\u677F" }),
|
|
1285
1296
|
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => resolveConflict("device"), className: "text-xs underline", children: "\u4FDD\u7559\u8BBE\u5907\u526A\u8D34\u677F" })
|
|
1286
1297
|
] }),
|
|
1287
|
-
clipboardError && /* @__PURE__ */ jsxs("span", { role: "status", className: "text-xs text-destructive", children: [
|
|
1288
|
-
"\u526A\u8D34\u677F\u540C\u6B65\u5931\u8D25\uFF1A",
|
|
1289
|
-
clipboardError
|
|
1290
|
-
] }),
|
|
1291
1298
|
platform === "android" && /* @__PURE__ */ jsx(
|
|
1292
1299
|
"button",
|
|
1293
1300
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as AuthResult, aM as SendCodeResult, b9 as VerifyCodeResult, aw as ProjectUserResult, au as Project, I as CreateProjectInput, J as CreateProjectResult, ax as ProvisionUserInput, ay as ProvisionUserResult, D as DeviceRow, P as ProvisionSpec, a as ProvisionResult, C as CatalogBrand, R as DeviceOp, aL as ScreenshotResult, Z as ElementNode, ar as PowerAction, W as DeviceSnapshotList, r as AppCandidate, aI as RecycledDeviceRow, aB as ProxyPatchResult, aC as ProxyProbe, T as DeviceProfileView, aP as SetProfileResult, at as ProfileOverrides, a5 as InstallAntiDetectResult, aO as SetDisguiseResult, N as NodeRow, aJ as RegisterNodeInput, aK as RegisterNodeResult, b7 as UpdateNodeInput, aN as SetDataRootResult, o as AgentTaskSubmitInput, p as AgentTaskSubmitResult, m as AgentTaskReadResult, l as AgentTaskEventsResult, b as DiscoveredDevice, i as AdbScanResult, ac as IosScanResult, a9 as IosDiagnostics, a6 as IosAccountState, ab as IosLoginResult, aa as IosLibraryApp, E as Cluster, G as CreateClusterInput, f as ScriptSummary, S as Script, aQ as Shortcut, ai as NewShortcut, af as Locator, H as CreateLocatorInput, a1 as FleetRunSubmit, $ as FleetRunDetail, b1 as TaskStatus, a$ as TaskListFilter, b0 as TaskListResult, a_ as TaskEventsResult, ba as WebhookConfig, L as CreateWebhookInput, ae as LlmTestResult, U as DeviceRate, aG as RateInput, y as BillingPlan, an as PlanInput, X as DeviceUsageSession, aH as RebateLedgerRow, ao as PlatformOem, ap as PlatformOemInput, a2 as ImageArtifact, a3 as ImageInput, a4 as ImageOption, x as BalanceResp, av as ProjectSubscription, aY as SubscribeInput, am as OwnNodeDailyCharge, b5 as TopupInput, b6 as TopupResult, q as ApiTokenRow, K as CreateTokenInput, M as CreatedToken, t as AppTemplate, ah as NewAppTemplate, aq as PortableSnapshot, aU as SnapshotKind, aW as SnapshotOperationReceipt, aV as SnapshotOperation, aT as SnapshotGrant, al as NodeScope } from './types-
|
|
1
|
+
import { w as AuthResult, aM as SendCodeResult, b9 as VerifyCodeResult, aw as ProjectUserResult, au as Project, I as CreateProjectInput, J as CreateProjectResult, ax as ProvisionUserInput, ay as ProvisionUserResult, D as DeviceRow, P as ProvisionSpec, a as ProvisionResult, C as CatalogBrand, R as DeviceOp, aL as ScreenshotResult, Z as ElementNode, ar as PowerAction, W as DeviceSnapshotList, r as AppCandidate, aI as RecycledDeviceRow, aB as ProxyPatchResult, aC as ProxyProbe, T as DeviceProfileView, aP as SetProfileResult, at as ProfileOverrides, a5 as InstallAntiDetectResult, aO as SetDisguiseResult, N as NodeRow, aJ as RegisterNodeInput, aK as RegisterNodeResult, b7 as UpdateNodeInput, aN as SetDataRootResult, o as AgentTaskSubmitInput, p as AgentTaskSubmitResult, m as AgentTaskReadResult, l as AgentTaskEventsResult, b as DiscoveredDevice, i as AdbScanResult, ac as IosScanResult, a9 as IosDiagnostics, a6 as IosAccountState, ab as IosLoginResult, aa as IosLibraryApp, E as Cluster, G as CreateClusterInput, f as ScriptSummary, S as Script, aQ as Shortcut, ai as NewShortcut, af as Locator, H as CreateLocatorInput, a1 as FleetRunSubmit, $ as FleetRunDetail, b1 as TaskStatus, a$ as TaskListFilter, b0 as TaskListResult, a_ as TaskEventsResult, ba as WebhookConfig, L as CreateWebhookInput, ae as LlmTestResult, U as DeviceRate, aG as RateInput, y as BillingPlan, an as PlanInput, X as DeviceUsageSession, aH as RebateLedgerRow, ao as PlatformOem, ap as PlatformOemInput, a2 as ImageArtifact, a3 as ImageInput, a4 as ImageOption, x as BalanceResp, av as ProjectSubscription, aY as SubscribeInput, am as OwnNodeDailyCharge, b5 as TopupInput, b6 as TopupResult, q as ApiTokenRow, K as CreateTokenInput, M as CreatedToken, t as AppTemplate, ah as NewAppTemplate, aq as PortableSnapshot, aU as SnapshotKind, aW as SnapshotOperationReceipt, aV as SnapshotOperation, aT as SnapshotGrant, al as NodeScope } from './types-Cp1ohbTb.js';
|
|
2
2
|
|
|
3
3
|
type OutgoingFrame = {
|
|
4
4
|
t: 'adb_exec';
|
|
@@ -1242,7 +1242,7 @@ interface IpOffer {
|
|
|
1242
1242
|
offer_id: string;
|
|
1243
1243
|
name: string;
|
|
1244
1244
|
kind: 'static' | 'dynamic';
|
|
1245
|
-
region: string;
|
|
1245
|
+
region: string | null;
|
|
1246
1246
|
/** Published product classification; not an independent quality certification. */
|
|
1247
1247
|
tier: string;
|
|
1248
1248
|
tier_rank: number;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { R as ResolvedConfig, W as WebSocketFactory } from '../config-
|
|
2
|
-
export { f as AdminApi, c as AixClient, A as AixConfig, g as ApiTokensApi, h as AuthApi, i as AuthProvider, B as BillingApi, C as CachedUserCredentialOpts, j as ClustersApi, k as Credential, D as DcStream, l as DeviceReq, m as DeviceResp, n as DeviceSession, o as DevicesApi, p as EnvAction, e as EnvEventKind, q as EnvFinished, E as EnvOs, r as EnvResultDto, d as EnvRoute, s as EnvRun, t as EnvSetupInput, u as EnvStepMeta, v as EnvStepView, w as EnvSummary, x as EnvTeardownInput, y as ExecutionFrame, z as ExecutionStreamEvent, G as ExecutionStreamEventsResult, H as FileEntry, I as FleetApi, F as FridaEventFrame, J as IRTCDataChannel, K as IRTCPeerConnection, L as IWebSocket, M as ImagesApi, N as IncomingFrame, P as IpCatalog, Q as IpCatalogFilter, T as IpCommerceApi, U as IpOffer, V as IpOrder, X as IpQuote, Y as IpQuoteInput, Z as IpResource, _ as IpResourceConnection, $ as LlmApi, a0 as LocalNodeController, a1 as LocalNodeOptions, a2 as LocatorsApi, a3 as ManagedCreationInput, a4 as ManagedCreationQuote, a5 as ManagedCreationReceipt, a6 as ManagedCreations, a7 as ManagedProxiesApi, a8 as ManagedProxyCatalog, a9 as ManagedProxyOrder, aa as ManagedProxyProduct, ab as ManagedProxyPurchaseInput, ac as ManagedProxyQuote, ad as ManagedProxyQuoteInput, ae as NodeHost, af as NodeHostStatus, ag as NodesApi, O as OutgoingFrame, ah as ProgressFn, ai as ProjectsApi, aj as ProxyIntegrationStatus, ak as PullResult, al as PushInput, am as RTCFactory, an as RequestOpts, ao as RestClient, ap as RetFrame, a as RunEventKind, aq as Scope, S as ScriptletEventFrame, ar as ScriptsApi, as as ShortcutsApi, at as SnapshotsApi, b as StatusFrame, au as StreamTarget, av as TasksApi, aw as TransferOpts, ax as TransferProgress, ay as TransferResult, az as UsersApi, aA as WebhooksApi, aB as authHeader, aC as buildAuthProvider, aD as createCachedUserCredential, aE as createClient, aF as detectEnvOs, aG as envBlocker, aH as executionStreamEventsAfter, aI as executionWsTicketUrl, aJ as executionWsUrl, aK as isEnvEventFrame, aL as isExecutionFrame, aM as isFleetRunTerminal, aN as isFridaEventFrame, aO as isRetFrame, aP as isScriptletEventFrame, aQ as isStatusFrame, aR as joinUrl, aS as parseIncoming, aT as pullFile, aU as pushFile, aV as resolveConfig, aW as restClient, aX as runEnvToFinish, aY as summarizeEnv } from '../config-
|
|
3
|
-
export { A as AdbResult, D as DeviceChannel, b as DeviceTunnel, c as ScriptDebugger, d as ScriptDebuggerOptions, a as ScriptEngine, S as ScriptEvent, e as ScriptRunInput, W as WdaResult } from '../script-debugger-
|
|
4
|
-
export { A as AutomationQueue, B as BatchConfig, F as FlowEvent, a as FlowRun, b as FlowSubmit, Q as QueueMode, s as submitBatch } from '../automation-queue-
|
|
5
|
-
import { h as ScriptParam } from '../types-
|
|
6
|
-
export { i as AdbScanResult, d as AgentTaskBlocker, j as AgentTaskCurrentAttempt, k as AgentTaskEvent, l as AgentTaskEventsResult, e as AgentTaskEvidence, m as AgentTaskReadResult, n as AgentTaskReadTarget, o as AgentTaskSubmitInput, p as AgentTaskSubmitResult, c as AgentTaskTarget, A as AgentTaskTargetStatus, q as ApiTokenRow, r as AppCandidate, s as AppEntry, t as AppTemplate, u as AppTemplateItemAndroid, v as AppTemplateItemIos, w as AuthResult, B as BalanceLedgerRow, x as BalanceResp, y as BillingPlan, C as CatalogBrand, z as CatalogModel, E as Cluster, F as ClusterMode, G as CreateClusterInput, H as CreateLocatorInput, I as CreateProjectInput, J as CreateProjectResult, K as CreateTokenInput, L as CreateWebhookInput, M as CreatedToken, g as Decimal, O as DeveloperRef, Q as DeviceLocation, R as DeviceOp, T as DeviceProfileView, U as DeviceRate, D as DeviceRow, V as DeviceSnapshot, W as DeviceSnapshotList, X as DeviceUsageSession, b as DiscoveredDevice, Y as DiscoveredStatus, Z as ElementNode, _ as FleetMode, $ as FleetRunDetail, a0 as FleetRunDeviceRow, a1 as FleetRunSubmit, a2 as ImageArtifact, a3 as ImageInput, a4 as ImageOption, a5 as InstallAntiDetectResult, a6 as IosAccountState, a7 as IosDeviceRow, a8 as IosDiagnosticStage, a9 as IosDiagnostics, aa as IosLibraryApp, ab as IosLoginResult, ac as IosScanResult, ad as KnownDeviceOpName, ae as LlmTestResult, af as Locator, ag as MdnsEntry, ah as NewAppTemplate, ai as NewShortcut, aj as NodeEffectiveCaps, ak as NodeOwnerPolicy, N as NodeRow, al as NodeScope, am as OwnNodeDailyCharge, an as PlanInput, ao as PlatformOem, ap as PlatformOemInput, aq as PortableSnapshot, ar as PowerAction, as as PowerRunResult, at as ProfileOverrides, au as Project, av as ProjectSubscription, aw as ProjectUserResult, a as ProvisionResult, P as ProvisionSpec, ax as ProvisionUserInput, ay as ProvisionUserResult, az as ProxyApplyReceipt, aA as ProxyApplyStatus, aB as ProxyPatchResult, aC as ProxyProbe, aD as ProxyProbeErrorCode, aE as ProxySummary, aF as ProxyUrl, aG as RateInput, aH as RebateLedgerRow, aI as RecycledDeviceRow, aJ as RegisterNodeInput, aK as RegisterNodeResult, aL as ScreenshotResult, S as Script, f as ScriptSummary, aM as SendCodeResult, aN as SetDataRootResult, aO as SetDisguiseResult, aP as SetProfileResult, aQ as Shortcut, aR as ShortcutParam, aS as ShortcutRunResult, aT as SnapshotGrant, aU as SnapshotKind, aV as SnapshotOperation, aW as SnapshotOperationReceipt, aX as SnapshotOperationStatus, aY as SubscribeInput, aZ as TaskEvent, a_ as TaskEventsResult, a$ as TaskListFilter, b0 as TaskListResult, b1 as TaskStatus, b2 as TaskSubmitResult, b3 as TaskSummary, b4 as TaskTarget, b5 as TopupInput, b6 as TopupResult, b7 as UpdateNodeInput, b8 as User, b9 as VerifyCodeResult, ba as WebhookConfig } from '../types-
|
|
7
|
-
import { C as ControlMessage } from '../mirror-session-
|
|
8
|
-
export { I as InputMessage, M as MirrorJoinOptions, a as MirrorSession, S as SCRCPY_PROFILES, b as ScrcpyProfile, c as ScrcpyProfileName, q as qualityMessage } from '../mirror-session-
|
|
1
|
+
import { R as ResolvedConfig, W as WebSocketFactory } from '../config-CBUhr4Gl.js';
|
|
2
|
+
export { f as AdminApi, c as AixClient, A as AixConfig, g as ApiTokensApi, h as AuthApi, i as AuthProvider, B as BillingApi, C as CachedUserCredentialOpts, j as ClustersApi, k as Credential, D as DcStream, l as DeviceReq, m as DeviceResp, n as DeviceSession, o as DevicesApi, p as EnvAction, e as EnvEventKind, q as EnvFinished, E as EnvOs, r as EnvResultDto, d as EnvRoute, s as EnvRun, t as EnvSetupInput, u as EnvStepMeta, v as EnvStepView, w as EnvSummary, x as EnvTeardownInput, y as ExecutionFrame, z as ExecutionStreamEvent, G as ExecutionStreamEventsResult, H as FileEntry, I as FleetApi, F as FridaEventFrame, J as IRTCDataChannel, K as IRTCPeerConnection, L as IWebSocket, M as ImagesApi, N as IncomingFrame, P as IpCatalog, Q as IpCatalogFilter, T as IpCommerceApi, U as IpOffer, V as IpOrder, X as IpQuote, Y as IpQuoteInput, Z as IpResource, _ as IpResourceConnection, $ as LlmApi, a0 as LocalNodeController, a1 as LocalNodeOptions, a2 as LocatorsApi, a3 as ManagedCreationInput, a4 as ManagedCreationQuote, a5 as ManagedCreationReceipt, a6 as ManagedCreations, a7 as ManagedProxiesApi, a8 as ManagedProxyCatalog, a9 as ManagedProxyOrder, aa as ManagedProxyProduct, ab as ManagedProxyPurchaseInput, ac as ManagedProxyQuote, ad as ManagedProxyQuoteInput, ae as NodeHost, af as NodeHostStatus, ag as NodesApi, O as OutgoingFrame, ah as ProgressFn, ai as ProjectsApi, aj as ProxyIntegrationStatus, ak as PullResult, al as PushInput, am as RTCFactory, an as RequestOpts, ao as RestClient, ap as RetFrame, a as RunEventKind, aq as Scope, S as ScriptletEventFrame, ar as ScriptsApi, as as ShortcutsApi, at as SnapshotsApi, b as StatusFrame, au as StreamTarget, av as TasksApi, aw as TransferOpts, ax as TransferProgress, ay as TransferResult, az as UsersApi, aA as WebhooksApi, aB as authHeader, aC as buildAuthProvider, aD as createCachedUserCredential, aE as createClient, aF as detectEnvOs, aG as envBlocker, aH as executionStreamEventsAfter, aI as executionWsTicketUrl, aJ as executionWsUrl, aK as isEnvEventFrame, aL as isExecutionFrame, aM as isFleetRunTerminal, aN as isFridaEventFrame, aO as isRetFrame, aP as isScriptletEventFrame, aQ as isStatusFrame, aR as joinUrl, aS as parseIncoming, aT as pullFile, aU as pushFile, aV as resolveConfig, aW as restClient, aX as runEnvToFinish, aY as summarizeEnv } from '../config-CBUhr4Gl.js';
|
|
3
|
+
export { A as AdbResult, D as DeviceChannel, b as DeviceTunnel, c as ScriptDebugger, d as ScriptDebuggerOptions, a as ScriptEngine, S as ScriptEvent, e as ScriptRunInput, W as WdaResult } from '../script-debugger-DoT02din.js';
|
|
4
|
+
export { A as AutomationQueue, B as BatchConfig, F as FlowEvent, a as FlowRun, b as FlowSubmit, Q as QueueMode, s as submitBatch } from '../automation-queue-DO8fOG6l.js';
|
|
5
|
+
import { h as ScriptParam } from '../types-Cp1ohbTb.js';
|
|
6
|
+
export { i as AdbScanResult, d as AgentTaskBlocker, j as AgentTaskCurrentAttempt, k as AgentTaskEvent, l as AgentTaskEventsResult, e as AgentTaskEvidence, m as AgentTaskReadResult, n as AgentTaskReadTarget, o as AgentTaskSubmitInput, p as AgentTaskSubmitResult, c as AgentTaskTarget, A as AgentTaskTargetStatus, q as ApiTokenRow, r as AppCandidate, s as AppEntry, t as AppTemplate, u as AppTemplateItemAndroid, v as AppTemplateItemIos, w as AuthResult, B as BalanceLedgerRow, x as BalanceResp, y as BillingPlan, C as CatalogBrand, z as CatalogModel, E as Cluster, F as ClusterMode, G as CreateClusterInput, H as CreateLocatorInput, I as CreateProjectInput, J as CreateProjectResult, K as CreateTokenInput, L as CreateWebhookInput, M as CreatedToken, g as Decimal, O as DeveloperRef, Q as DeviceLocation, R as DeviceOp, T as DeviceProfileView, U as DeviceRate, D as DeviceRow, V as DeviceSnapshot, W as DeviceSnapshotList, X as DeviceUsageSession, b as DiscoveredDevice, Y as DiscoveredStatus, Z as ElementNode, _ as FleetMode, $ as FleetRunDetail, a0 as FleetRunDeviceRow, a1 as FleetRunSubmit, a2 as ImageArtifact, a3 as ImageInput, a4 as ImageOption, a5 as InstallAntiDetectResult, a6 as IosAccountState, a7 as IosDeviceRow, a8 as IosDiagnosticStage, a9 as IosDiagnostics, aa as IosLibraryApp, ab as IosLoginResult, ac as IosScanResult, ad as KnownDeviceOpName, ae as LlmTestResult, af as Locator, ag as MdnsEntry, ah as NewAppTemplate, ai as NewShortcut, aj as NodeEffectiveCaps, ak as NodeOwnerPolicy, N as NodeRow, al as NodeScope, am as OwnNodeDailyCharge, an as PlanInput, ao as PlatformOem, ap as PlatformOemInput, aq as PortableSnapshot, ar as PowerAction, as as PowerRunResult, at as ProfileOverrides, au as Project, av as ProjectSubscription, aw as ProjectUserResult, a as ProvisionResult, P as ProvisionSpec, ax as ProvisionUserInput, ay as ProvisionUserResult, az as ProxyApplyReceipt, aA as ProxyApplyStatus, aB as ProxyPatchResult, aC as ProxyProbe, aD as ProxyProbeErrorCode, aE as ProxySummary, aF as ProxyUrl, aG as RateInput, aH as RebateLedgerRow, aI as RecycledDeviceRow, aJ as RegisterNodeInput, aK as RegisterNodeResult, aL as ScreenshotResult, S as Script, f as ScriptSummary, aM as SendCodeResult, aN as SetDataRootResult, aO as SetDisguiseResult, aP as SetProfileResult, aQ as Shortcut, aR as ShortcutParam, aS as ShortcutRunResult, aT as SnapshotGrant, aU as SnapshotKind, aV as SnapshotOperation, aW as SnapshotOperationReceipt, aX as SnapshotOperationStatus, aY as SubscribeInput, aZ as TaskEvent, a_ as TaskEventsResult, a$ as TaskListFilter, b0 as TaskListResult, b1 as TaskStatus, b2 as TaskSubmitResult, b3 as TaskSummary, b4 as TaskTarget, b5 as TopupInput, b6 as TopupResult, b7 as UpdateNodeInput, b8 as User, b9 as VerifyCodeResult, ba as WebhookConfig } from '../types-Cp1ohbTb.js';
|
|
7
|
+
import { C as ControlMessage } from '../mirror-session-Y1InpkUY.js';
|
|
8
|
+
export { I as InputMessage, M as MirrorJoinOptions, a as MirrorSession, S as SCRCPY_PROFILES, b as ScrcpyProfile, c as ScrcpyProfileName, q as qualityMessage } from '../mirror-session-Y1InpkUY.js';
|
|
9
9
|
import { B as Box, D as DeviceSize } from '../coords-LPR_MPyp.js';
|
|
10
10
|
export { a as DevicePoint, t as toDevicePoint } from '../coords-LPR_MPyp.js';
|
|
11
|
-
export { D as DeviceTransport, N as NormalizedDevice, n as normalizeDevices } from '../device-normalize-
|
|
11
|
+
export { D as DeviceTransport, N as NormalizedDevice, n as normalizeDevices } from '../device-normalize-Vl5JYbAI.js';
|
|
12
12
|
|
|
13
13
|
type AixErrorCode = 'auth' | 'network' | 'timeout' | 'offline' | 'locked' | 'protocol' | 'unknown';
|
|
14
14
|
interface AixErrorDetails {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeviceRow } from './types-
|
|
1
|
+
import { D as DeviceRow } from './types-Cp1ohbTb.js';
|
|
2
2
|
|
|
3
3
|
/** One backend device row as a transport of a (possibly de-duplicated) physical
|
|
4
4
|
* device. The same phone reachable over both USB and WiFi yields two rows with
|
package/dist/i18n/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AixI18nProvider, useAixLang, useAixT } from '../chunk-
|
|
1
|
+
export { AixI18nProvider, useAixLang, useAixT } from '../chunk-FJPIY4YI.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AixConfig, R as ResolvedConfig } from './config-
|
|
1
|
+
import { A as AixConfig, R as ResolvedConfig } from './config-CBUhr4Gl.js';
|
|
2
2
|
|
|
3
3
|
/** Mirrors the node's `ControlMsg` (webrtc/control.rs): `t`-tagged, coords
|
|
4
4
|
* normalized [0,1] (node scales to px). Sent over the `control` DataChannel. */
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { ReactNode } from 'react';
|
|
3
|
-
import { A as AixConfig, R as ResolvedConfig, c as AixClient, e as EnvEventKind, q as EnvFinished, t as EnvSetupInput, x as EnvTeardownInput, E as EnvOs } from '../config-
|
|
4
|
-
import { D as DeviceChannel, A as AdbResult, W as WdaResult, S as ScriptEvent, e as ScriptRunInput } from '../script-debugger-
|
|
5
|
-
import { F as FlowEvent, b as FlowSubmit, B as BatchConfig } from '../automation-queue-
|
|
6
|
-
import { a as MirrorSession, I as InputMessage, c as ScrcpyProfileName, M as MirrorJoinOptions } from '../mirror-session-
|
|
7
|
-
import { w as AuthResult, aM as SendCodeResult, b9 as VerifyCodeResult, au as Project, I as CreateProjectInput, J as CreateProjectResult, ar as PowerAction, aL as ScreenshotResult, Z as ElementNode, D as DeviceRow, N as NodeRow, al as NodeScope, aK as RegisterNodeResult, ak as NodeOwnerPolicy, aQ as Shortcut, ai as NewShortcut, aS as ShortcutRunResult, as as PowerRunResult, f as ScriptSummary, S as Script, E as Cluster, G as CreateClusterInput, $ as FleetRunDetail, _ as FleetMode, d as AgentTaskBlocker, e as AgentTaskEvidence, b1 as TaskStatus, b3 as TaskSummary, a$ as TaskListFilter, ba as WebhookConfig, L as CreateWebhookInput, aJ as RegisterNodeInput, af as Locator, H as CreateLocatorInput, a2 as ImageArtifact, a3 as ImageInput, ae as LlmTestResult, U as DeviceRate, aG as RateInput, y as BillingPlan, an as PlanInput, X as DeviceUsageSession, aH as RebateLedgerRow, x as BalanceResp, b5 as TopupInput, b6 as TopupResult, q as ApiTokenRow, K as CreateTokenInput, M as CreatedToken } from '../types-
|
|
8
|
-
import { a as TaskAgentDevice, b as TaskAgentDeviceStatus, T as TaskAgentRunner } from '../task-agent-runner-
|
|
9
|
-
export { D as Device, i as DevicesProvider, j as DevicesProviderProps, k as DevicesView, c as TaskAgentNodeSnapshot, d as TaskAgentPreflightResult, e as TaskAgentRunRequest, f as TaskAgentStreamEvent, g as TaskAgentTarget, m as mapDevice, p as preflightTaskAgentDevice, u as useDevicesView } from '../task-agent-runner-
|
|
3
|
+
import { A as AixConfig, R as ResolvedConfig, c as AixClient, e as EnvEventKind, q as EnvFinished, t as EnvSetupInput, x as EnvTeardownInput, E as EnvOs } from '../config-CBUhr4Gl.js';
|
|
4
|
+
import { D as DeviceChannel, A as AdbResult, W as WdaResult, S as ScriptEvent, e as ScriptRunInput } from '../script-debugger-DoT02din.js';
|
|
5
|
+
import { F as FlowEvent, b as FlowSubmit, B as BatchConfig } from '../automation-queue-DO8fOG6l.js';
|
|
6
|
+
import { a as MirrorSession, I as InputMessage, c as ScrcpyProfileName, M as MirrorJoinOptions } from '../mirror-session-Y1InpkUY.js';
|
|
7
|
+
import { w as AuthResult, aM as SendCodeResult, b9 as VerifyCodeResult, au as Project, I as CreateProjectInput, J as CreateProjectResult, ar as PowerAction, aL as ScreenshotResult, Z as ElementNode, D as DeviceRow, N as NodeRow, al as NodeScope, aK as RegisterNodeResult, ak as NodeOwnerPolicy, aQ as Shortcut, ai as NewShortcut, aS as ShortcutRunResult, as as PowerRunResult, f as ScriptSummary, S as Script, E as Cluster, G as CreateClusterInput, $ as FleetRunDetail, _ as FleetMode, d as AgentTaskBlocker, e as AgentTaskEvidence, b1 as TaskStatus, b3 as TaskSummary, a$ as TaskListFilter, ba as WebhookConfig, L as CreateWebhookInput, aJ as RegisterNodeInput, af as Locator, H as CreateLocatorInput, a2 as ImageArtifact, a3 as ImageInput, ae as LlmTestResult, U as DeviceRate, aG as RateInput, y as BillingPlan, an as PlanInput, X as DeviceUsageSession, aH as RebateLedgerRow, x as BalanceResp, b5 as TopupInput, b6 as TopupResult, q as ApiTokenRow, K as CreateTokenInput, M as CreatedToken } from '../types-Cp1ohbTb.js';
|
|
8
|
+
import { a as TaskAgentDevice, b as TaskAgentDeviceStatus, T as TaskAgentRunner } from '../task-agent-runner-Cl2ickJ1.js';
|
|
9
|
+
export { D as Device, i as DevicesProvider, j as DevicesProviderProps, k as DevicesView, c as TaskAgentNodeSnapshot, d as TaskAgentPreflightResult, e as TaskAgentRunRequest, f as TaskAgentStreamEvent, g as TaskAgentTarget, m as mapDevice, p as preflightTaskAgentDevice, u as useDevicesView } from '../task-agent-runner-Cl2ickJ1.js';
|
|
10
10
|
import { L as LogEntry } from '../use-script-run-Diay7ibY.js';
|
|
11
11
|
export { b as LogLevel, S as ScriptRunStatus, a as StepEvent, U as UseScriptRun, u as useScriptRun } from '../use-script-run-Diay7ibY.js';
|
|
12
12
|
import { A as AgentKind } from '../agent-runner-V60B0is1.js';
|
|
13
|
-
import '../device-normalize-
|
|
13
|
+
import '../device-normalize-Vl5JYbAI.js';
|
|
14
14
|
|
|
15
15
|
declare function AixProvider({ config, children }: {
|
|
16
16
|
config: AixConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AixConfig, R as ResolvedConfig, F as FridaEventFrame, S as ScriptletEventFrame, b as StatusFrame, O as OutgoingFrame } from './config-
|
|
1
|
+
import { A as AixConfig, R as ResolvedConfig, F as FridaEventFrame, S as ScriptletEventFrame, b as StatusFrame, O as OutgoingFrame } from './config-CBUhr4Gl.js';
|
|
2
2
|
|
|
3
3
|
declare class DeviceTunnel {
|
|
4
4
|
readonly streamId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as ProvisionSpec, a as ProvisionResult, b as DiscoveredDevice, A as AgentTaskTargetStatus, c as AgentTaskTarget, d as AgentTaskBlocker, e as AgentTaskEvidence } from './types-
|
|
4
|
-
import { N as NormalizedDevice } from './device-normalize-
|
|
5
|
-
import { A as AixConfig, R as ResolvedConfig } from './config-
|
|
3
|
+
import { P as ProvisionSpec, a as ProvisionResult, b as DiscoveredDevice, A as AgentTaskTargetStatus, c as AgentTaskTarget, d as AgentTaskBlocker, e as AgentTaskEvidence } from './types-Cp1ohbTb.js';
|
|
4
|
+
import { N as NormalizedDevice } from './device-normalize-Vl5JYbAI.js';
|
|
5
|
+
import { A as AixConfig, R as ResolvedConfig } from './config-CBUhr4Gl.js';
|
|
6
6
|
import { A as AgentKind } from './agent-runner-V60B0is1.js';
|
|
7
7
|
|
|
8
8
|
interface Device {
|
|
@@ -153,7 +153,7 @@ interface SnapshotOperation {
|
|
|
153
153
|
type ProxyProbeErrorCode = 'not_configured' | 'unsupported_runtime' | 'timeout' | 'dns' | 'connect' | 'invalid_response' | 'configuration_error' | 'probe_failed' | (string & {});
|
|
154
154
|
interface ProxyProbe {
|
|
155
155
|
configured?: boolean;
|
|
156
|
-
enforcement?: 'transparent_tcp' | 'transparent' | 'unsupported';
|
|
156
|
+
enforcement?: 'android_system' | 'transparent_tcp' | 'transparent' | 'unsupported';
|
|
157
157
|
reachable: boolean;
|
|
158
158
|
exit_ip?: string | null;
|
|
159
159
|
checked_at?: string;
|
package/dist/ui/billing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { g as Decimal, B as BalanceLedgerRow } from '../types-
|
|
2
|
+
import { g as Decimal, B as BalanceLedgerRow } from '../types-Cp1ohbTb.js';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
|
|
5
5
|
declare function BillingPage(): react.JSX.Element;
|
package/dist/ui/billing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useAixT } from '../chunk-
|
|
2
|
-
import { cn, Button, Badge, Input } from '../chunk-
|
|
1
|
+
import { useAixT } from '../chunk-FJPIY4YI.js';
|
|
2
|
+
import { cn, Button, Badge, Input } from '../chunk-7RQTSTR6.js';
|
|
3
3
|
import { useBilling, useClient } from '../chunk-QEK25NUA.js';
|
|
4
4
|
import '../chunk-7BJPVSEZ.js';
|
|
5
5
|
import '../chunk-2KPZSPV6.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { a as ProvisionResult, P as ProvisionSpec, b as DiscoveredDevice } from '../types-Cp1ohbTb.js';
|
|
3
4
|
|
|
4
5
|
interface DeviceCreateProps {
|
|
5
6
|
open: boolean;
|
|
@@ -33,9 +34,11 @@ interface Props$2 {
|
|
|
33
34
|
onChange: (spec: ProvisionSpec) => void;
|
|
34
35
|
isReal?: boolean;
|
|
35
36
|
showProxy?: boolean;
|
|
37
|
+
proxyDisabled?: boolean;
|
|
38
|
+
proxyAction?: ReactNode;
|
|
36
39
|
required?: boolean;
|
|
37
40
|
}
|
|
38
|
-
declare function ProxySpoofStep({ spec, onChange, isReal, showProxy }: Props$2): react.JSX.Element;
|
|
41
|
+
declare function ProxySpoofStep({ spec, onChange, isReal, showProxy, proxyDisabled, proxyAction }: Props$2): react.JSX.Element;
|
|
39
42
|
|
|
40
43
|
interface Props$1 {
|
|
41
44
|
nodeId: string;
|
package/dist/ui/device-create.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { AddWirelessDeviceDialog, DeviceCreate, NodePicker, ProxySpoofStep, RealDiscoverStep, VirtualSpecStep } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { AddWirelessDeviceDialog, DeviceCreate, NodePicker, ProxySpoofStep, RealDiscoverStep, VirtualSpecStep } from '../chunk-NIEGPH3E.js';
|
|
2
|
+
import '../chunk-KASSYUGM.js';
|
|
3
|
+
import '../chunk-LOKPZ677.js';
|
|
4
4
|
import '../chunk-ZB5ET67B.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-FJPIY4YI.js';
|
|
6
|
+
import '../chunk-7RQTSTR6.js';
|
|
7
7
|
import '../chunk-QEK25NUA.js';
|
|
8
8
|
import '../chunk-7BJPVSEZ.js';
|
|
9
9
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/device-mirror.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DeviceBootSplash, DeviceMirror, MirrorSurface, parseIosMediaCapabilities } from '../chunk-
|
|
1
|
+
export { DeviceBootSplash, DeviceMirror, MirrorSurface, parseIosMediaCapabilities } from '../chunk-ZDCTHR7D.js';
|
|
2
2
|
import '../chunk-OEZFYKL6.js';
|
|
3
3
|
import '../chunk-MBBVYSPD.js';
|
|
4
4
|
import '../chunk-ZB5ET67B.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-FJPIY4YI.js';
|
|
6
|
+
import '../chunk-7RQTSTR6.js';
|
|
7
7
|
import '../chunk-QEK25NUA.js';
|
|
8
8
|
import '../chunk-7BJPVSEZ.js';
|
|
9
9
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/devices.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { T as TaskAgentRunner, D as Device, a as TaskAgentDevice } from '../task-agent-runner-
|
|
3
|
-
export { A as AgentTaskRunnerOptions, b as TaskAgentDeviceStatus, c as TaskAgentNodeSnapshot, d as TaskAgentPreflightResult, e as TaskAgentRunRequest, f as TaskAgentStreamEvent, g as TaskAgentTarget, h as createAgentTaskRunner, p as preflightTaskAgentDevice } from '../task-agent-runner-
|
|
4
|
-
import { aQ as Shortcut, h as ScriptParam } from '../types-
|
|
5
|
-
import '../device-normalize-
|
|
6
|
-
import '../config-
|
|
2
|
+
import { T as TaskAgentRunner, D as Device, a as TaskAgentDevice } from '../task-agent-runner-Cl2ickJ1.js';
|
|
3
|
+
export { A as AgentTaskRunnerOptions, b as TaskAgentDeviceStatus, c as TaskAgentNodeSnapshot, d as TaskAgentPreflightResult, e as TaskAgentRunRequest, f as TaskAgentStreamEvent, g as TaskAgentTarget, h as createAgentTaskRunner, p as preflightTaskAgentDevice } from '../task-agent-runner-Cl2ickJ1.js';
|
|
4
|
+
import { aQ as Shortcut, h as ScriptParam } from '../types-Cp1ohbTb.js';
|
|
5
|
+
import '../device-normalize-Vl5JYbAI.js';
|
|
6
|
+
import '../config-CBUhr4Gl.js';
|
|
7
7
|
import '../agent-runner-V60B0is1.js';
|
|
8
8
|
|
|
9
9
|
interface DevicesPageProps {
|
package/dist/ui/devices.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { BulkInstallAppsDialog, DeleteDeviceDialog, DeviceCard, DeviceConnect, DeviceDetailDrawer, DeviceEditDialog, DeviceSelector, DeviceTerminal, DevicesPage, FileManager, FingerprintPanel, GroupMirrorModal, NodeRegister, RecycleBinPanel, RefreshParamsButton, RunScriptDialog, ScriptParamForm, SharedParamsForm, ShortcutBar, ShortcutEditDialog, ShortcutRunDialog, TagEditor, TaskAgentDialog, resolveSharedRow, variablesToParams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { BulkInstallAppsDialog, DeleteDeviceDialog, DeviceCard, DeviceConnect, DeviceDetailDrawer, DeviceEditDialog, DeviceSelector, DeviceTerminal, DevicesPage, FileManager, FingerprintPanel, GroupMirrorModal, NodeRegister, RecycleBinPanel, RefreshParamsButton, RunScriptDialog, ScriptParamForm, SharedParamsForm, ShortcutBar, ShortcutEditDialog, ShortcutRunDialog, TagEditor, TaskAgentDialog, resolveSharedRow, variablesToParams } from '../chunk-TJ2QIP5M.js';
|
|
2
|
+
import '../chunk-3OBCSW2J.js';
|
|
3
|
+
import '../chunk-ZDCTHR7D.js';
|
|
4
4
|
import '../chunk-OEZFYKL6.js';
|
|
5
5
|
import '../chunk-MBBVYSPD.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-NIEGPH3E.js';
|
|
7
|
+
import '../chunk-KASSYUGM.js';
|
|
8
|
+
import '../chunk-LOKPZ677.js';
|
|
9
9
|
import '../chunk-ZB5ET67B.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-FJPIY4YI.js';
|
|
11
|
+
import '../chunk-7RQTSTR6.js';
|
|
12
12
|
export { createAgentTaskRunner, preflightTaskAgentDevice } from '../chunk-QEK25NUA.js';
|
|
13
13
|
import '../chunk-7BJPVSEZ.js';
|
|
14
14
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/editor.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { S as ScriptStudioProps } from '../ScriptStudio-DaCqOF5H.js';
|
|
|
3
3
|
export { a as ScriptStudioSlotContext } from '../ScriptStudio-DaCqOF5H.js';
|
|
4
4
|
import { a as AgentRunner } from '../agent-runner-V60B0is1.js';
|
|
5
5
|
export { A as AgentKind, b as AgentSendRequest, c as AgentStreamEvent } from '../agent-runner-V60B0is1.js';
|
|
6
|
-
import { c as AixClient } from '../config-
|
|
7
|
-
import '../types-
|
|
6
|
+
import { c as AixClient } from '../config-CBUhr4Gl.js';
|
|
7
|
+
import '../types-Cp1ohbTb.js';
|
|
8
8
|
|
|
9
9
|
interface ScriptEditorPageProps {
|
|
10
10
|
/** Route param: the script to open. Undefined ⇒ a fresh "New Script". */
|
package/dist/ui/editor.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useAixNav } from '../chunk-5BMFMDQR.js';
|
|
2
|
-
import { ScriptStudio } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { useAixT } from '../chunk-
|
|
5
|
-
import { Select, cn } from '../chunk-
|
|
2
|
+
import { ScriptStudio } from '../chunk-WOPEKCVC.js';
|
|
3
|
+
import '../chunk-3OBCSW2J.js';
|
|
4
|
+
import { useAixT } from '../chunk-FJPIY4YI.js';
|
|
5
|
+
import { Select, cn } from '../chunk-7RQTSTR6.js';
|
|
6
6
|
import { useClient } from '../chunk-QEK25NUA.js';
|
|
7
7
|
import '../chunk-7BJPVSEZ.js';
|
|
8
8
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default from 'react';
|
|
3
|
-
import { S as ScriptEvent, a as ScriptEngine } from '../script-debugger-
|
|
3
|
+
import { S as ScriptEvent, a as ScriptEngine } from '../script-debugger-DoT02din.js';
|
|
4
4
|
import * as _uiw_react_codemirror from '@uiw/react-codemirror';
|
|
5
5
|
export { ControlBar, ControlBarProps, MirrorView, MirrorViewProps } from './mirror.js';
|
|
6
|
-
import { E as EnvOs, d as EnvRoute, e as EnvEventKind } from '../config-
|
|
7
|
-
import { N as NodeRow } from '../types-
|
|
6
|
+
import { E as EnvOs, d as EnvRoute, e as EnvEventKind } from '../config-CBUhr4Gl.js';
|
|
7
|
+
import { N as NodeRow } from '../types-Cp1ohbTb.js';
|
|
8
8
|
export { IpCommercePanel, IpCommercePanelProps } from './ip-commerce.js';
|
|
9
9
|
import '../coords-LPR_MPyp.js';
|
|
10
|
-
import '../mirror-session-
|
|
10
|
+
import '../mirror-session-Y1InpkUY.js';
|
|
11
11
|
|
|
12
12
|
interface DebugConsoleProps {
|
|
13
13
|
events: ScriptEvent[];
|
package/dist/ui/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../chunk-ZCTAYVPK.js';
|
|
2
2
|
export { ControlBar, MirrorView } from '../chunk-MBBVYSPD.js';
|
|
3
|
-
import { IosDeviceDiagnostics } from '../chunk-
|
|
4
|
-
export { IpCommercePanel } from '../chunk-
|
|
3
|
+
import { IosDeviceDiagnostics } from '../chunk-KASSYUGM.js';
|
|
4
|
+
export { IpCommercePanel } from '../chunk-LOKPZ677.js';
|
|
5
5
|
import { iosPhysicalUnavailableReason } from '../chunk-ZB5ET67B.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import { Button, Input } from '../chunk-
|
|
6
|
+
import '../chunk-FJPIY4YI.js';
|
|
7
|
+
import { Button, Input } from '../chunk-7RQTSTR6.js';
|
|
8
8
|
import { useScript, useEnvRun, useClient } from '../chunk-QEK25NUA.js';
|
|
9
9
|
import '../chunk-7BJPVSEZ.js';
|
|
10
10
|
import { summarizeEnv, envBlocker, detectEnvOs } from '../chunk-2KPZSPV6.js';
|
package/dist/ui/inspector.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useAixT } from '../chunk-
|
|
2
|
-
import { Select, Button, cn, Input, Dialog } from '../chunk-
|
|
1
|
+
import { useAixT } from '../chunk-FJPIY4YI.js';
|
|
2
|
+
import { Select, Button, cn, Input, Dialog } from '../chunk-7RQTSTR6.js';
|
|
3
3
|
import { useInspectorView, useDevicesView, useClient, useLocators } from '../chunk-QEK25NUA.js';
|
|
4
4
|
import '../chunk-7BJPVSEZ.js';
|
|
5
5
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/ip-commerce.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { P as ProvisionSpec } from '../types-
|
|
3
|
-
import { c as AixClient, Z as IpResource, V as IpOrder, _ as IpResourceConnection } from '../config-
|
|
2
|
+
import { P as ProvisionSpec } from '../types-Cp1ohbTb.js';
|
|
3
|
+
import { c as AixClient, Z as IpResource, V as IpOrder, _ as IpResourceConnection } from '../config-CBUhr4Gl.js';
|
|
4
4
|
|
|
5
5
|
interface IpCommercePanelProps {
|
|
6
6
|
/** Inject a stable, user-authenticated client to render without a React SDK provider. */
|
|
@@ -20,6 +20,8 @@ interface IpCommercePanelProps {
|
|
|
20
20
|
onPendingChange?: (pending: boolean) => void;
|
|
21
21
|
onCreated?: (deviceId: string) => void;
|
|
22
22
|
onChanged?: () => void;
|
|
23
|
+
/** Region select plus purchase only. Type, tier, billing and price filters stay hidden. */
|
|
24
|
+
regionOnly?: boolean;
|
|
23
25
|
}
|
|
24
26
|
declare function IpCommercePanel(props: IpCommercePanelProps): react.JSX.Element;
|
|
25
27
|
|
package/dist/ui/ip-commerce.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../chunk-ZCTAYVPK.js';
|
|
2
|
-
export { IpCommercePanel } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { IpCommercePanel } from '../chunk-LOKPZ677.js';
|
|
3
|
+
import '../chunk-FJPIY4YI.js';
|
|
4
|
+
import '../chunk-7RQTSTR6.js';
|
|
5
5
|
import '../chunk-QEK25NUA.js';
|
|
6
6
|
import '../chunk-7BJPVSEZ.js';
|
|
7
7
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/market.js
CHANGED
package/dist/ui/mirror.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import react__default from 'react';
|
|
2
2
|
import { D as DeviceSize } from '../coords-LPR_MPyp.js';
|
|
3
|
-
import { C as ControlMessage } from '../mirror-session-
|
|
4
|
-
import '../config-
|
|
5
|
-
import '../types-
|
|
3
|
+
import { C as ControlMessage } from '../mirror-session-Y1InpkUY.js';
|
|
4
|
+
import '../config-CBUhr4Gl.js';
|
|
5
|
+
import '../types-Cp1ohbTb.js';
|
|
6
6
|
|
|
7
7
|
interface MirrorViewProps {
|
|
8
8
|
permission?: 'control' | 'video_only';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Badge, Button, Dialog, Drawer, Input, Popover, Select, ToastViewport, cn, useToast } from '../../chunk-
|
|
1
|
+
export { Badge, Button, Dialog, Drawer, Input, Popover, Select, ToastViewport, cn, useToast } from '../../chunk-7RQTSTR6.js';
|
package/dist/ui/script-studio.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CodeEditor, DeviceSelect, RunPanel, ScriptParamEditor, ScriptStudio, TimelineStep } from '../chunk-
|
|
2
|
-
export { LogConsole } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { CodeEditor, DeviceSelect, RunPanel, ScriptParamEditor, ScriptStudio, TimelineStep } from '../chunk-WOPEKCVC.js';
|
|
2
|
+
export { LogConsole } from '../chunk-3OBCSW2J.js';
|
|
3
|
+
import '../chunk-7RQTSTR6.js';
|
|
4
4
|
import '../chunk-QEK25NUA.js';
|
|
5
5
|
import '../chunk-7BJPVSEZ.js';
|
|
6
6
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/scripts.d.ts
CHANGED
package/dist/ui/scripts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useAixNav } from '../chunk-5BMFMDQR.js';
|
|
2
|
-
import { useAixT } from '../chunk-
|
|
3
|
-
import { cn, Badge, Button, Input } from '../chunk-
|
|
2
|
+
import { useAixT } from '../chunk-FJPIY4YI.js';
|
|
3
|
+
import { cn, Badge, Button, Input } from '../chunk-7RQTSTR6.js';
|
|
4
4
|
import { useScripts } from '../chunk-QEK25NUA.js';
|
|
5
5
|
import '../chunk-7BJPVSEZ.js';
|
|
6
6
|
import '../chunk-2KPZSPV6.js';
|
package/dist/ui/tasks.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { SharedParamsForm, resolveSharedRow } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { SharedParamsForm, resolveSharedRow } from '../chunk-TJ2QIP5M.js';
|
|
2
|
+
import '../chunk-3OBCSW2J.js';
|
|
3
|
+
import '../chunk-ZDCTHR7D.js';
|
|
4
4
|
import '../chunk-OEZFYKL6.js';
|
|
5
5
|
import '../chunk-MBBVYSPD.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-NIEGPH3E.js';
|
|
7
|
+
import '../chunk-KASSYUGM.js';
|
|
8
|
+
import '../chunk-LOKPZ677.js';
|
|
9
9
|
import '../chunk-ZB5ET67B.js';
|
|
10
|
-
import { useAixT } from '../chunk-
|
|
11
|
-
import { Button, cn, Select, Input, Badge } from '../chunk-
|
|
10
|
+
import { useAixT } from '../chunk-FJPIY4YI.js';
|
|
11
|
+
import { Button, cn, Select, Input, Badge } from '../chunk-7RQTSTR6.js';
|
|
12
12
|
import { useDevicesView, useAutomationQueue, useClient, useAixConfig, useApiTokens } from '../chunk-QEK25NUA.js';
|
|
13
13
|
import { targetParam, variablesToSchema, schemaDefaults } from '../chunk-7BJPVSEZ.js';
|
|
14
14
|
import '../chunk-2KPZSPV6.js';
|