@aixnn/aixautots 0.6.4 → 0.6.6
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-BxrSIkG3.d.ts → automation-queue-aYRO9JLj.d.ts} +2 -2
- package/dist/{chunk-JTFZSFFA.js → chunk-7H4CYM42.js} +414 -5
- package/dist/{chunk-UJO7BJUV.js → chunk-A2CKXQ7U.js} +876 -106
- package/dist/{chunk-SAB5CH2K.js → chunk-AVRM42RS.js} +578 -141
- package/dist/{chunk-M4DO7SSZ.js → chunk-D7J4EQTA.js} +1 -1
- package/dist/{chunk-B2BOVLI6.js → chunk-F76N3GOA.js} +1077 -313
- package/dist/{chunk-Q63FQ7B5.js → chunk-LWTL4AIC.js} +254 -13
- package/dist/chunk-QZ3XJS2W.js +102 -0
- package/dist/{chunk-NGW34POA.js → chunk-SF5R25DU.js} +318 -15
- package/dist/{chunk-YFF7VLNT.js → chunk-SKTL6ACT.js} +40 -2
- package/dist/{chunk-T3QVYTOT.js → chunk-WUT5OUBG.js} +418 -0
- package/dist/{chunk-BYL2S2H6.js → chunk-X5KVYWUK.js} +4 -5
- package/dist/{config-CLi5IhmO.d.ts → config-B7t1Ln3w.d.ts} +177 -8
- package/dist/core/index.d.ts +21 -16
- package/dist/core/index.js +2 -4
- package/dist/{device-normalize-BaThgnH7.d.ts → device-normalize-CuGflfZA.d.ts} +1 -1
- package/dist/device-session-OFGN4KUD.js +1 -0
- package/dist/i18n/index.js +1 -1
- package/dist/{mirror-session-BP7Rd3Jk.d.ts → mirror-session-DK0OQvA3.d.ts} +11 -3
- package/dist/react/index.d.ts +10 -8
- package/dist/react/index.js +3 -6
- package/dist/{script-debugger-DtUGxK9i.d.ts → script-debugger-6hoLEwEz.d.ts} +1 -1
- package/dist/{task-agent-runner-DzV_OUZ7.d.ts → task-agent-runner-BwRW88rl.d.ts} +5 -3
- package/dist/{types-C2WXVcam.d.ts → types-BbtVr3QM.d.ts} +34 -3
- package/dist/ui/billing.d.ts +1 -1
- package/dist/ui/billing.js +5 -9
- package/dist/ui/device-create.d.ts +4 -3
- package/dist/ui/device-create.js +7 -9
- package/dist/ui/device-mirror.d.ts +16 -2
- package/dist/ui/device-mirror.js +6 -8
- package/dist/ui/devices.d.ts +5 -5
- package/dist/ui/devices.js +10 -13
- package/dist/ui/editor.d.ts +2 -2
- package/dist/ui/editor.js +7 -11
- package/dist/ui/index.d.ts +4 -4
- package/dist/ui/index.js +9 -15
- package/dist/ui/inspector.js +5 -9
- package/dist/ui/market.js +4 -7
- package/dist/ui/mirror.d.ts +3 -3
- package/dist/ui/primitives/index.d.ts +1 -1
- package/dist/ui/primitives/index.js +1 -2
- package/dist/ui/script-studio.js +6 -10
- package/dist/ui/scripts.d.ts +1 -1
- package/dist/ui/scripts.js +5 -9
- package/dist/ui/tasks.js +10 -13
- package/package.json +1 -1
- package/dist/chunk-A5VNENHD.js +0 -229
- package/dist/chunk-BUW45GM2.js +0 -341
- package/dist/chunk-H37NHOYU.js +0 -44
- package/dist/chunk-LAZ3RQ7X.js +0 -668
- package/dist/device-session-CVT7OY4H.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as AuthResult,
|
|
1
|
+
import { w as AuthResult, aL as SendCodeResult, b3 as VerifyCodeResult, av as ProjectUserResult, at as Project, I as CreateProjectInput, J as CreateProjectResult, aw as ProvisionUserInput, ax as ProvisionUserResult, D as DeviceRow, P as ProvisionSpec, a as ProvisionResult, C as CatalogBrand, R as DeviceOp, aK as ScreenshotResult, Z as ElementNode, aq as PowerAction, W as DeviceSnapshotList, r as AppCandidate, aH as RecycledDeviceRow, aA as ProxyPatchResult, aB as ProxyProbe, T as DeviceProfileView, aO as SetProfileResult, as as ProfileOverrides, a5 as InstallAntiDetectResult, aN as SetDisguiseResult, N as NodeRow, aI as RegisterNodeInput, aJ as RegisterNodeResult, b1 as UpdateNodeInput, aM 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, aP as Shortcut, ai as NewShortcut, af as Locator, H as CreateLocatorInput, a1 as FleetRunSubmit, $ as FleetRunDetail, aX as TaskStatus, aV as TaskListFilter, aW as TaskListResult, aU as TaskEventsResult, b4 as WebhookConfig, L as CreateWebhookInput, ae as LlmTestResult, U as DeviceRate, aF as RateInput, y as BillingPlan, an as PlanInput, X as DeviceUsageSession, aG as RebateLedgerRow, ao as PlatformOem, ap as PlatformOemInput, a2 as ImageArtifact, a3 as ImageInput, a4 as ImageOption, x as BalanceResp, au as ProjectSubscription, aS as SubscribeInput, am as OwnNodeDailyCharge, a$ as TopupInput, b0 as TopupResult, q as ApiTokenRow, K as CreateTokenInput, M as CreatedToken, t as AppTemplate, ah as NewAppTemplate, al as NodeScope } from './types-BbtVr3QM.js';
|
|
2
2
|
|
|
3
3
|
type OutgoingFrame = {
|
|
4
4
|
t: 'adb_exec';
|
|
@@ -483,6 +483,8 @@ declare function pushFile(source: AixClient | AixConfig | ResolvedConfig, device
|
|
|
483
483
|
declare function pullFile(source: AixClient | AixConfig | ResolvedConfig, deviceId: string, src: string, opts?: TransferOpts): Promise<PullResult>;
|
|
484
484
|
|
|
485
485
|
interface RequestOpts {
|
|
486
|
+
/** Optional request cancellation; no automatic retries are performed. */
|
|
487
|
+
signal?: AbortSignal;
|
|
486
488
|
/** Auth scope; defaults to 'caller'. */
|
|
487
489
|
scope?: Scope;
|
|
488
490
|
/** JSON body (serialized unless it is a string already). */
|
|
@@ -556,7 +558,7 @@ declare class UsersApi {
|
|
|
556
558
|
declare class DevicesApi {
|
|
557
559
|
private readonly c;
|
|
558
560
|
constructor(c: RestClient);
|
|
559
|
-
list(): Promise<DeviceRow[]>;
|
|
561
|
+
list(options?: Pick<RequestOpts, 'signal'>): Promise<DeviceRow[]>;
|
|
560
562
|
/** Register/upsert a device (`POST /api/devices`). */
|
|
561
563
|
register(body: {
|
|
562
564
|
external_id: string;
|
|
@@ -575,7 +577,7 @@ declare class DevicesApi {
|
|
|
575
577
|
/** The single generic live-op entry point, proxied to the owning node. Any
|
|
576
578
|
* node-supported op works here without a dedicated method; the typed helpers
|
|
577
579
|
* below are thin wrappers over it. */
|
|
578
|
-
op<T = unknown>(deviceId: string, op: DeviceOp): Promise<T>;
|
|
580
|
+
op<T = unknown>(deviceId: string, op: DeviceOp, options?: Pick<RequestOpts, 'signal'>): Promise<T>;
|
|
579
581
|
screenshot(deviceId: string): Promise<ScreenshotResult>;
|
|
580
582
|
captureUiTree(deviceId: string): Promise<ElementNode>;
|
|
581
583
|
/** Power / lifecycle op (`POST /api/devices/:id/power`). Resolves with the
|
|
@@ -584,6 +586,17 @@ declare class DevicesApi {
|
|
|
584
586
|
* resolved promise means the op actually ran. Rejects (RestClient throws on
|
|
585
587
|
* non-2xx) carry the node/backend error. */
|
|
586
588
|
power<T = Record<string, unknown>>(deviceId: string, action: PowerAction, extra?: Record<string, unknown>): Promise<T>;
|
|
589
|
+
/** List all user data snapshots, including while the device is offline. */
|
|
590
|
+
listSnapshots(deviceId: string): Promise<DeviceSnapshotList>;
|
|
591
|
+
/** Save current data under a new server-generated identifier. */
|
|
592
|
+
createSnapshot(deviceId: string, input: {
|
|
593
|
+
label: string;
|
|
594
|
+
}): Promise<Record<string, unknown>>;
|
|
595
|
+
/** Load saved data; replaces unsaved working data and restarts the device. */
|
|
596
|
+
loadSnapshot(deviceId: string, name: string): Promise<Record<string, unknown>>;
|
|
597
|
+
deleteSnapshot(deviceId: string, name: string): Promise<{
|
|
598
|
+
deleted: string;
|
|
599
|
+
}>;
|
|
587
600
|
/** Typed device-control op via the power lane (install / inject / screen-record). */
|
|
588
601
|
control(deviceId: string, op: Record<string, unknown>): Promise<unknown>;
|
|
589
602
|
installApkUrl(deviceId: string, url: string): Promise<unknown>;
|
|
@@ -623,10 +636,9 @@ declare class DevicesApi {
|
|
|
623
636
|
purged: number;
|
|
624
637
|
}>;
|
|
625
638
|
/** Update mutable device fields — `PATCH /api/devices/:id`.
|
|
626
|
-
* `ios_transport`
|
|
627
|
-
*
|
|
628
|
-
*
|
|
629
|
-
* unaffected. (Legacy value `pymobiledevice3` was renamed to `iosusbadapter`.)
|
|
639
|
+
* `ios_transport` is a legacy stored preference, not an active video-source
|
|
640
|
+
* switch. Changes return 501 until runtime selection is implemented;
|
|
641
|
+
* sending the already stored value is an idempotent no-op.
|
|
630
642
|
* `sleep_timeout_min` sets the inactivity sleep timeout (0 = disabled). */
|
|
631
643
|
update(deviceId: string, patch: {
|
|
632
644
|
tags?: string[];
|
|
@@ -844,6 +856,13 @@ declare class NodesApi {
|
|
|
844
856
|
iosPair(nodeId: string, udid: string): Promise<unknown>;
|
|
845
857
|
/** Toggle wifi-connections for a trusted udid (`{op:'wifi'}`). */
|
|
846
858
|
iosWifi(nodeId: string, udid: string, enable: boolean): Promise<unknown>;
|
|
859
|
+
/** Read current device stages; transport reachability is distinct from WDA readiness. */
|
|
860
|
+
iosDiagnostics(nodeId: string, udid?: string): Promise<IosDiagnostics>;
|
|
861
|
+
/** Explicit preparation can install configured signed assets. Never auto-retried. */
|
|
862
|
+
iosWdaPrepare(nodeId: string, udid: string): Promise<IosDiagnostics>;
|
|
863
|
+
iosWdaStart(nodeId: string, udid: string): Promise<IosDiagnostics>;
|
|
864
|
+
iosWdaStop(nodeId: string, udid: string): Promise<IosDiagnostics>;
|
|
865
|
+
private iosLifecycle;
|
|
847
866
|
/** 节点 iOS App Store 账号状态(`{op:'account_info'}`)。 */
|
|
848
867
|
iosAccount(nodeId: string): Promise<IosAccountState>;
|
|
849
868
|
/** 登录节点 iOS 账号;`needs_2fa` 时带 `auth_code` 重试(`{op:'account_login'}`)。 */
|
|
@@ -1019,11 +1038,30 @@ declare class LlmApi {
|
|
|
1019
1038
|
}): Promise<LlmTestResult>;
|
|
1020
1039
|
}
|
|
1021
1040
|
|
|
1041
|
+
interface ProxyIntegrationStatus {
|
|
1042
|
+
provider: 'aixips';
|
|
1043
|
+
token_role: 'partner_service';
|
|
1044
|
+
token_env: 'AIXIPS_PARTNER_TOKEN';
|
|
1045
|
+
api_base_env: 'AIXIPS_API_BASE';
|
|
1046
|
+
upstream_token_source: string;
|
|
1047
|
+
authorization_scheme: 'Bearer';
|
|
1048
|
+
token_configured: boolean;
|
|
1049
|
+
token_fingerprint_sha256_12: string | null;
|
|
1050
|
+
api_base: string | null;
|
|
1051
|
+
status: 'unconfigured' | 'upstream_unavailable' | 'upstream_disabled' | 'invalid_catalog' | 'no_inventory' | 'ready';
|
|
1052
|
+
can_quote: boolean;
|
|
1053
|
+
product_count: number;
|
|
1054
|
+
upstream_http_status?: number | null;
|
|
1055
|
+
upstream_error_code?: string;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1022
1058
|
/** Platform-admin + billing + image catalog (admin-scoped, except images which
|
|
1023
1059
|
* also gate on PlatformAdminAuth server-side). */
|
|
1024
1060
|
declare class AdminApi {
|
|
1025
1061
|
private readonly c;
|
|
1026
1062
|
constructor(c: RestClient);
|
|
1063
|
+
/** Read-only partner credential identity and catalog health; never returns a token. */
|
|
1064
|
+
proxyIntegration(): Promise<ProxyIntegrationStatus>;
|
|
1027
1065
|
listRates(): Promise<DeviceRate[]>;
|
|
1028
1066
|
upsertRate(body: RateInput): Promise<DeviceRate>;
|
|
1029
1067
|
setRebate(projectId: string, ratio: number): Promise<unknown>;
|
|
@@ -1068,6 +1106,136 @@ declare class BillingApi {
|
|
|
1068
1106
|
topup(input: TopupInput): Promise<TopupResult>;
|
|
1069
1107
|
}
|
|
1070
1108
|
|
|
1109
|
+
/** All amounts are CNY fen. The allowance is a spending budget, not promised traffic. */
|
|
1110
|
+
interface ManagedProxyProduct {
|
|
1111
|
+
id: string;
|
|
1112
|
+
name: string;
|
|
1113
|
+
kind: 'static' | 'dynamic';
|
|
1114
|
+
region: string;
|
|
1115
|
+
region_granularity: 'country';
|
|
1116
|
+
duration_seconds: number;
|
|
1117
|
+
quota_value: number;
|
|
1118
|
+
quota_unit: 'CNY_fen';
|
|
1119
|
+
cost_minor: number;
|
|
1120
|
+
fixed_cost_minor?: number;
|
|
1121
|
+
refund_policy?: 'no_refund_after_allocation';
|
|
1122
|
+
billing_mode?: 'one_time';
|
|
1123
|
+
auto_renew?: false;
|
|
1124
|
+
currency: 'CNY';
|
|
1125
|
+
replacement_policy: {
|
|
1126
|
+
mode: 'free' | 'new_purchase';
|
|
1127
|
+
cost_minor: number;
|
|
1128
|
+
};
|
|
1129
|
+
catalog_version: string;
|
|
1130
|
+
budget_accounting?: 'reserved_upper_bound';
|
|
1131
|
+
reservation_bytes?: number;
|
|
1132
|
+
handshake_reservation_bytes?: number;
|
|
1133
|
+
rate_minor_per_gib?: number;
|
|
1134
|
+
}
|
|
1135
|
+
interface ManagedProxyCatalog {
|
|
1136
|
+
enabled: boolean;
|
|
1137
|
+
unavailable_reason?: string | null;
|
|
1138
|
+
currency: 'CNY';
|
|
1139
|
+
products: ManagedProxyProduct[];
|
|
1140
|
+
}
|
|
1141
|
+
interface ManagedProxyQuoteInput {
|
|
1142
|
+
device_id: string;
|
|
1143
|
+
product_id: string;
|
|
1144
|
+
replaces_order_id?: string;
|
|
1145
|
+
}
|
|
1146
|
+
interface ManagedProxyQuote {
|
|
1147
|
+
id: string;
|
|
1148
|
+
expires_at: string;
|
|
1149
|
+
product: ManagedProxyProduct;
|
|
1150
|
+
total_minor: number;
|
|
1151
|
+
currency: 'CNY';
|
|
1152
|
+
replaces_order_id?: string | null;
|
|
1153
|
+
}
|
|
1154
|
+
interface ManagedProxyPurchaseInput {
|
|
1155
|
+
quote_id: string;
|
|
1156
|
+
request_id: string;
|
|
1157
|
+
}
|
|
1158
|
+
interface ManagedProxyOrder {
|
|
1159
|
+
id: string;
|
|
1160
|
+
request_id?: string;
|
|
1161
|
+
pending_action?: 'purchase' | 'rotate' | 'apply' | 'release' | null;
|
|
1162
|
+
pending_request_id?: string | null;
|
|
1163
|
+
device_id: string;
|
|
1164
|
+
product: ManagedProxyProduct;
|
|
1165
|
+
status: 'pending' | 'reconciling' | 'fulfilled' | 'refunded' | 'released' | 'expired' | 'exhausted';
|
|
1166
|
+
apply_status: 'pending' | 'applied' | 'failed' | 'superseded' | 'none';
|
|
1167
|
+
expires_at?: string | null;
|
|
1168
|
+
remaining_budget_minor?: number | null;
|
|
1169
|
+
total_minor: number;
|
|
1170
|
+
currency: 'CNY';
|
|
1171
|
+
resource_version?: number | null;
|
|
1172
|
+
applied_revision?: number | null;
|
|
1173
|
+
failure_reason?: string | null;
|
|
1174
|
+
replaces_order_id?: string | null;
|
|
1175
|
+
created_at: string;
|
|
1176
|
+
}
|
|
1177
|
+
interface ManagedCreationQuote {
|
|
1178
|
+
id: string;
|
|
1179
|
+
owner_user_id: string;
|
|
1180
|
+
project_id: string;
|
|
1181
|
+
node_id: string;
|
|
1182
|
+
device_id: string;
|
|
1183
|
+
product: ManagedProxyProduct;
|
|
1184
|
+
total_minor: number;
|
|
1185
|
+
currency: 'CNY';
|
|
1186
|
+
expires_at: string;
|
|
1187
|
+
spec: ProvisionSpec;
|
|
1188
|
+
device_billing: {
|
|
1189
|
+
kind: 'personal_free' | 'metered';
|
|
1190
|
+
rate_per_hour: string;
|
|
1191
|
+
currency: string;
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
interface ManagedCreationInput {
|
|
1195
|
+
request_id: string;
|
|
1196
|
+
quote_id: string;
|
|
1197
|
+
authorized_total_minor: number;
|
|
1198
|
+
currency: 'CNY';
|
|
1199
|
+
}
|
|
1200
|
+
interface ManagedCreationReceipt {
|
|
1201
|
+
request_id: string;
|
|
1202
|
+
quote_id: string;
|
|
1203
|
+
device_id: string;
|
|
1204
|
+
node_id: string;
|
|
1205
|
+
creation_status: 'waiting_proxy' | 'creating' | 'applying_proxy' | 'unknown' | 'ready' | 'failed';
|
|
1206
|
+
failure_reason?: string | null;
|
|
1207
|
+
proxy_order: ManagedProxyOrder;
|
|
1208
|
+
created_at: string;
|
|
1209
|
+
}
|
|
1210
|
+
interface ManagedCreations {
|
|
1211
|
+
owner_user_id: string;
|
|
1212
|
+
project_id: string;
|
|
1213
|
+
items: ManagedCreationReceipt[];
|
|
1214
|
+
}
|
|
1215
|
+
/** Managed AIxIps purchases. This facade never returns proxy credentials. */
|
|
1216
|
+
declare class ManagedProxiesApi {
|
|
1217
|
+
private readonly c;
|
|
1218
|
+
constructor(c: RestClient);
|
|
1219
|
+
creationQuote(input: {
|
|
1220
|
+
spec: ProvisionSpec;
|
|
1221
|
+
product_id: string;
|
|
1222
|
+
}, opts?: RequestOpts): Promise<ManagedCreationQuote>;
|
|
1223
|
+
create(input: ManagedCreationInput, opts?: RequestOpts): Promise<ManagedCreationReceipt>;
|
|
1224
|
+
creations(opts?: RequestOpts): Promise<ManagedCreations>;
|
|
1225
|
+
creationByRequest(requestId: string, opts?: RequestOpts): Promise<ManagedCreationReceipt>;
|
|
1226
|
+
catalog(opts?: RequestOpts): Promise<ManagedProxyCatalog>;
|
|
1227
|
+
quote(input: ManagedProxyQuoteInput): Promise<ManagedProxyQuote>;
|
|
1228
|
+
purchase(input: ManagedProxyPurchaseInput): Promise<ManagedProxyOrder>;
|
|
1229
|
+
list(deviceId: string, options?: {
|
|
1230
|
+
active?: boolean;
|
|
1231
|
+
}): Promise<ManagedProxyOrder[]>;
|
|
1232
|
+
byRequest(deviceId: string, requestId: string): Promise<ManagedProxyOrder>;
|
|
1233
|
+
get(id: string): Promise<ManagedProxyOrder>;
|
|
1234
|
+
rotate(id: string, requestId: string): Promise<ManagedProxyOrder>;
|
|
1235
|
+
apply(id: string, requestId: string): Promise<ManagedProxyOrder>;
|
|
1236
|
+
release(id: string, requestId: string): Promise<ManagedProxyOrder>;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1071
1239
|
/** 用户 PAT(personal access token)管理,挂在 `/api/tokens`(caller scope)。
|
|
1072
1240
|
* 令牌绑用户钱包/账号身份;明文仅在 create/rotate 时返回一次。 */
|
|
1073
1241
|
declare class ApiTokensApi {
|
|
@@ -1114,6 +1282,7 @@ declare class AixClient {
|
|
|
1114
1282
|
readonly admin: AdminApi;
|
|
1115
1283
|
readonly images: ImagesApi;
|
|
1116
1284
|
readonly billing: BillingApi;
|
|
1285
|
+
readonly proxies: ManagedProxiesApi;
|
|
1117
1286
|
readonly tokens: ApiTokensApi;
|
|
1118
1287
|
readonly appTemplates: AppTemplatesApi;
|
|
1119
1288
|
/** Desktop local-node controller — present only when `cfg.localNode` is set
|
|
@@ -1377,4 +1546,4 @@ declare function authHeader(getAuthToken: () => string | Promise<string>): Promi
|
|
|
1377
1546
|
}>;
|
|
1378
1547
|
declare function resolveConfig(cfg: AixConfig): ResolvedConfig;
|
|
1379
1548
|
|
|
1380
|
-
export { type
|
|
1549
|
+
export { type ManagedProxyCatalog as $, type AixConfig as A, BillingApi as B, type CachedUserCredentialOpts as C, type DcStream as D, type EnvOs as E, type FridaEventFrame as F, type ExecutionStreamEventsResult as G, type FileEntry as H, FleetApi as I, type IRTCDataChannel as J, type IRTCPeerConnection as K, type IWebSocket as L, ImagesApi as M, type IncomingFrame as N, type OutgoingFrame as O, LlmApi as P, LocalNodeController as Q, type ResolvedConfig as R, type ScriptletEventFrame as S, type LocalNodeOptions as T, LocatorsApi as U, type ManagedCreationInput as V, type WebSocketFactory as W, type ManagedCreationQuote as X, type ManagedCreationReceipt as Y, type ManagedCreations as Z, ManagedProxiesApi as _, type RunEventKind as a, type ManagedProxyOrder as a0, type ManagedProxyProduct as a1, type ManagedProxyPurchaseInput as a2, type ManagedProxyQuote as a3, type ManagedProxyQuoteInput as a4, type NodeHost as a5, type NodeHostStatus as a6, NodesApi as a7, type ProgressFn as a8, ProjectsApi as a9, isEnvEventFrame as aA, isExecutionFrame as aB, isFleetRunTerminal as aC, isFridaEventFrame as aD, isRetFrame as aE, isScriptletEventFrame as aF, isStatusFrame as aG, joinUrl as aH, parseIncoming as aI, pullFile as aJ, pushFile as aK, resolveConfig as aL, restClient as aM, runEnvToFinish as aN, summarizeEnv as aO, type ProxyIntegrationStatus as aa, type PullResult as ab, type PushInput as ac, type RTCFactory as ad, type RequestOpts as ae, RestClient as af, type RetFrame as ag, type Scope as ah, ScriptsApi as ai, ShortcutsApi as aj, type StreamTarget as ak, TasksApi as al, type TransferOpts as am, type TransferProgress as an, type TransferResult as ao, UsersApi as ap, WebhooksApi as aq, authHeader as ar, buildAuthProvider as as, createCachedUserCredential as at, createClient as au, detectEnvOs as av, envBlocker as aw, executionStreamEventsAfter as ax, executionWsTicketUrl as ay, executionWsUrl as az, type StatusFrame as b, AixClient as c, type EnvRoute as d, type EnvEventKind as e, AdminApi as f, ApiTokensApi as g, AuthApi as h, type AuthProvider as i, ClustersApi as j, type Credential as k, type DeviceReq as l, type DeviceResp as m, DeviceSession as n, DevicesApi as o, type EnvAction as p, type EnvFinished as q, type EnvResultDto as r, EnvRun as s, type EnvSetupInput as t, type EnvStepMeta as u, type EnvStepView as v, type EnvSummary as w, type EnvTeardownInput as x, type ExecutionFrame as y, type ExecutionStreamEvent as z };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
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 LlmApi, Q as LocalNodeController, T as LocalNodeOptions, U as LocatorsApi, V as
|
|
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 DeviceUsageSession, b as DiscoveredDevice,
|
|
7
|
-
import { C as ControlMessage } from '../mirror-session-
|
|
8
|
-
export { I as InputMessage, M as MirrorSession, S as SCRCPY_PROFILES, a as ScrcpyProfile, b as ScrcpyProfileName, q as qualityMessage } from '../mirror-session-
|
|
1
|
+
import { R as ResolvedConfig, W as WebSocketFactory } from '../config-B7t1Ln3w.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 LlmApi, Q as LocalNodeController, T as LocalNodeOptions, U as LocatorsApi, V as ManagedCreationInput, X as ManagedCreationQuote, Y as ManagedCreationReceipt, Z as ManagedCreations, _ as ManagedProxiesApi, $ as ManagedProxyCatalog, a0 as ManagedProxyOrder, a1 as ManagedProxyProduct, a2 as ManagedProxyPurchaseInput, a3 as ManagedProxyQuote, a4 as ManagedProxyQuoteInput, a5 as NodeHost, a6 as NodeHostStatus, a7 as NodesApi, O as OutgoingFrame, a8 as ProgressFn, a9 as ProjectsApi, aa as ProxyIntegrationStatus, ab as PullResult, ac as PushInput, ad as RTCFactory, ae as RequestOpts, af as RestClient, ag as RetFrame, a as RunEventKind, ah as Scope, S as ScriptletEventFrame, ai as ScriptsApi, aj as ShortcutsApi, b as StatusFrame, ak as StreamTarget, al as TasksApi, am as TransferOpts, an as TransferProgress, ao as TransferResult, ap as UsersApi, aq as WebhooksApi, ar as authHeader, as as buildAuthProvider, at as createCachedUserCredential, au as createClient, av as detectEnvOs, aw as envBlocker, ax as executionStreamEventsAfter, ay as executionWsTicketUrl, az as executionWsUrl, aA as isEnvEventFrame, aB as isExecutionFrame, aC as isFleetRunTerminal, aD as isFridaEventFrame, aE as isRetFrame, aF as isScriptletEventFrame, aG as isStatusFrame, aH as joinUrl, aI as parseIncoming, aJ as pullFile, aK as pushFile, aL as resolveConfig, aM as restClient, aN as runEnvToFinish, aO as summarizeEnv } from '../config-B7t1Ln3w.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-6hoLEwEz.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-aYRO9JLj.js';
|
|
5
|
+
import { h as ScriptParam } from '../types-BbtVr3QM.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 PowerAction, ar as PowerRunResult, as as ProfileOverrides, at as Project, au as ProjectSubscription, av as ProjectUserResult, a as ProvisionResult, P as ProvisionSpec, aw as ProvisionUserInput, ax as ProvisionUserResult, ay as ProxyApplyReceipt, az as ProxyApplyStatus, aA as ProxyPatchResult, aB as ProxyProbe, aC as ProxyProbeErrorCode, aD as ProxySummary, aE as ProxyUrl, aF as RateInput, aG as RebateLedgerRow, aH as RecycledDeviceRow, aI as RegisterNodeInput, aJ as RegisterNodeResult, aK as ScreenshotResult, S as Script, f as ScriptSummary, aL as SendCodeResult, aM as SetDataRootResult, aN as SetDisguiseResult, aO as SetProfileResult, aP as Shortcut, aQ as ShortcutParam, aR as ShortcutRunResult, aS as SubscribeInput, aT as TaskEvent, aU as TaskEventsResult, aV as TaskListFilter, aW as TaskListResult, aX as TaskStatus, aY as TaskSubmitResult, aZ as TaskSummary, a_ as TaskTarget, a$ as TopupInput, b0 as TopupResult, b1 as UpdateNodeInput, b2 as User, b3 as VerifyCodeResult, b4 as WebhookConfig } from '../types-BbtVr3QM.js';
|
|
7
|
+
import { C as ControlMessage } from '../mirror-session-DK0OQvA3.js';
|
|
8
|
+
export { I as InputMessage, M as MirrorSession, S as SCRCPY_PROFILES, a as ScrcpyProfile, b as ScrcpyProfileName, q as qualityMessage } from '../mirror-session-DK0OQvA3.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-CuGflfZA.js';
|
|
12
12
|
|
|
13
13
|
type AixErrorCode = 'auth' | 'timeout' | 'offline' | 'locked' | 'protocol' | 'unknown';
|
|
14
|
+
interface AixErrorDetails {
|
|
15
|
+
status?: number;
|
|
16
|
+
detail?: string;
|
|
17
|
+
apiCode?: string;
|
|
18
|
+
requestState?: 'rejected' | 'unknown';
|
|
19
|
+
}
|
|
14
20
|
declare class AixError extends Error {
|
|
15
21
|
readonly code: AixErrorCode;
|
|
16
22
|
/** HTTP status when the error came from a REST response (else undefined). */
|
|
@@ -19,13 +25,12 @@ declare class AixError extends Error {
|
|
|
19
25
|
* `error` field), if any — prefer this over `message` when showing a prompt
|
|
20
26
|
* (e.g. 402 → "账号余额不足,请充值"). */
|
|
21
27
|
readonly detail?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
});
|
|
28
|
+
readonly apiCode?: string;
|
|
29
|
+
readonly requestState?: 'rejected' | 'unknown';
|
|
30
|
+
constructor(message: string, code?: AixErrorCode, opts?: AixErrorDetails);
|
|
26
31
|
}
|
|
27
32
|
declare class AixAuthError extends AixError {
|
|
28
|
-
constructor(m: string);
|
|
33
|
+
constructor(m: string, opts?: AixErrorDetails);
|
|
29
34
|
}
|
|
30
35
|
declare class AixTimeout extends AixError {
|
|
31
36
|
constructor(m: string);
|
|
@@ -34,7 +39,7 @@ declare class AixDeviceOffline extends AixError {
|
|
|
34
39
|
constructor(m: string);
|
|
35
40
|
}
|
|
36
41
|
declare class AixLocked extends AixError {
|
|
37
|
-
constructor(m: string);
|
|
42
|
+
constructor(m: string, opts?: AixErrorDetails);
|
|
38
43
|
}
|
|
39
44
|
declare class AixProtocolError extends AixError {
|
|
40
45
|
constructor(m: string);
|
|
@@ -132,4 +137,4 @@ declare function setLocale(l: Locale): void;
|
|
|
132
137
|
declare function getLocale(): Locale;
|
|
133
138
|
declare function t(code: AixErrorCode): string;
|
|
134
139
|
|
|
135
|
-
export { AixAuthError, AixDeviceOffline, AixError, type AixErrorCode, AixLocked, AixProtocolError, AixTimeout, Box, type ClassifyDragOpts, ControlMessage, DeviceSize, type KeyEventLike, type Locale, type PointerSample, ReconnectingSocket, ResolvedConfig, SCHEMA_KEY, ScriptParam, WebSocketFactory, type WsAccess, classifyDrag, errorFromRet, getIceServers, getLocale, mapKey, mintDeviceAccess, mintViewerToken, schemaDefaults, schemaToVariables, setLocale, t, targetParam, variablesToSchema, wsUrlFromAccess };
|
|
140
|
+
export { AixAuthError, AixDeviceOffline, AixError, type AixErrorCode, type AixErrorDetails, AixLocked, AixProtocolError, AixTimeout, Box, type ClassifyDragOpts, ControlMessage, DeviceSize, type KeyEventLike, type Locale, type PointerSample, ReconnectingSocket, ResolvedConfig, SCHEMA_KEY, ScriptParam, WebSocketFactory, type WsAccess, classifyDrag, errorFromRet, getIceServers, getLocale, mapKey, mintDeviceAccess, mintViewerToken, schemaDefaults, schemaToVariables, setLocale, t, targetParam, variablesToSchema, wsUrlFromAccess };
|
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { AutomationQueue, MirrorSession, SCHEMA_KEY, SCRCPY_PROFILES, normalizeDevices, qualityMessage, schemaDefaults, schemaToVariables, submitBatch, targetParam, variablesToSchema } from '../chunk-
|
|
2
|
-
export { DeviceSession, getIceServers, mintViewerToken, pullFile, pushFile } from '../chunk-
|
|
3
|
-
export { DeviceChannel, DeviceTunnel, FlowRun, ScriptDebugger, mintDeviceAccess, wsUrlFromAccess } from '../chunk-JTFZSFFA.js';
|
|
4
|
-
export { AdminApi, AixAuthError, AixClient, AixDeviceOffline, AixError, AixLocked, AixProtocolError, AixTimeout, ApiTokensApi, AuthApi, BillingApi, ClustersApi, DevicesApi, EnvRun, FleetApi, ImagesApi, LlmApi, LocalNodeController, LocatorsApi, NodesApi, ProjectsApi, ReconnectingSocket, RestClient, ScriptsApi, ShortcutsApi, TasksApi, UsersApi, WebhooksApi, authHeader, buildAuthProvider, createCachedUserCredential, createClient, detectEnvOs, envBlocker, errorFromRet, executionStreamEventsAfter, executionWsTicketUrl, executionWsUrl, getLocale, isEnvEventFrame, isExecutionFrame, isFleetRunTerminal, isFridaEventFrame, isRetFrame, isScriptletEventFrame, isStatusFrame, joinUrl, parseIncoming, resolveConfig, restClient, runEnvToFinish, setLocale, summarizeEnv, t } from '../chunk-B2BOVLI6.js';
|
|
1
|
+
export { AutomationQueue, DeviceChannel, DeviceTunnel, FlowRun, MirrorSession, SCHEMA_KEY, SCRCPY_PROFILES, ScriptDebugger, mintDeviceAccess, normalizeDevices, qualityMessage, schemaDefaults, schemaToVariables, submitBatch, targetParam, variablesToSchema, wsUrlFromAccess } from '../chunk-7H4CYM42.js';
|
|
2
|
+
export { AdminApi, AixAuthError, AixClient, AixDeviceOffline, AixError, AixLocked, AixProtocolError, AixTimeout, ApiTokensApi, AuthApi, BillingApi, ClustersApi, DeviceSession, DevicesApi, EnvRun, FleetApi, ImagesApi, LlmApi, LocalNodeController, LocatorsApi, ManagedProxiesApi, NodesApi, ProjectsApi, ReconnectingSocket, RestClient, ScriptsApi, ShortcutsApi, TasksApi, UsersApi, WebhooksApi, authHeader, buildAuthProvider, createCachedUserCredential, createClient, detectEnvOs, envBlocker, errorFromRet, executionStreamEventsAfter, executionWsTicketUrl, executionWsUrl, getIceServers, getLocale, isEnvEventFrame, isExecutionFrame, isFleetRunTerminal, isFridaEventFrame, isRetFrame, isScriptletEventFrame, isStatusFrame, joinUrl, mintViewerToken, parseIncoming, pullFile, pushFile, resolveConfig, restClient, runEnvToFinish, setLocale, summarizeEnv, t } from '../chunk-F76N3GOA.js';
|
|
5
3
|
export { classifyDrag, mapKey, toDevicePoint } from '../chunk-NWFYTFMI.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeviceRow } from './types-
|
|
1
|
+
import { D as DeviceRow } from './types-BbtVr3QM.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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeviceSession, pullFile, pushFile } from './chunk-F76N3GOA.js';
|
package/dist/i18n/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AixI18nProvider, useAixLang, useAixT } from '../chunk-
|
|
1
|
+
export { AixI18nProvider, useAixLang, useAixT } from '../chunk-WUT5OUBG.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-B7t1Ln3w.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. */
|
|
@@ -74,6 +74,8 @@ declare class MirrorSession {
|
|
|
74
74
|
private readonly token;
|
|
75
75
|
private pc;
|
|
76
76
|
private input;
|
|
77
|
+
private requestedAudio;
|
|
78
|
+
private left;
|
|
77
79
|
private _stream;
|
|
78
80
|
private peerId;
|
|
79
81
|
private remotePeer;
|
|
@@ -81,6 +83,7 @@ declare class MirrorSession {
|
|
|
81
83
|
private pendingIce;
|
|
82
84
|
private readonly stateListeners;
|
|
83
85
|
private readonly streamListeners;
|
|
86
|
+
private readonly controlListeners;
|
|
84
87
|
private constructor();
|
|
85
88
|
/** Start a viewer session. On WebSocket reconnect the socket re-joins
|
|
86
89
|
* automatically; the node then sends a fresh offer, which is paired with a
|
|
@@ -88,9 +91,15 @@ declare class MirrorSession {
|
|
|
88
91
|
* needed to restore the video track. */
|
|
89
92
|
static join(cfg: AixConfig | ResolvedConfig, session: string): Promise<MirrorSession>;
|
|
90
93
|
get stream(): MediaStream | null;
|
|
94
|
+
get connectionState(): string;
|
|
95
|
+
get controlReady(): boolean;
|
|
96
|
+
onControlStateChange(cb: (ready: boolean) => void): () => void;
|
|
91
97
|
onConnectionStateChange(cb: (s: string) => void): () => void;
|
|
92
98
|
onStream(cb: (s: MediaStream) => void): () => void;
|
|
93
99
|
sendInput(msg: InputMessage): void;
|
|
100
|
+
private emitState;
|
|
101
|
+
private emitControl;
|
|
102
|
+
private flushAudio;
|
|
94
103
|
/** Ask the node to switch this device's encode profile (restarts its capture
|
|
95
104
|
* pipeline; the video blanks briefly while it re-syncs on a keyframe). */
|
|
96
105
|
setQuality(profile: ScrcpyProfileName): void;
|
|
@@ -101,8 +110,7 @@ declare class MirrorSession {
|
|
|
101
110
|
private sendSignal;
|
|
102
111
|
private ensurePc;
|
|
103
112
|
private attachInput;
|
|
104
|
-
/** Drop the
|
|
105
|
-
* the replacement track arrives). */
|
|
113
|
+
/** Drop the peer and its stream so a replacement cannot inherit frame/input readiness. */
|
|
106
114
|
private resetPeer;
|
|
107
115
|
private onSignal;
|
|
108
116
|
leave(): void;
|
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 { M as MirrorSession, I as InputMessage, b as ScrcpyProfileName } from '../mirror-session-
|
|
7
|
-
import { w as AuthResult,
|
|
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-B7t1Ln3w.js';
|
|
4
|
+
import { D as DeviceChannel, A as AdbResult, W as WdaResult, S as ScriptEvent, e as ScriptRunInput } from '../script-debugger-6hoLEwEz.js';
|
|
5
|
+
import { F as FlowEvent, b as FlowSubmit, B as BatchConfig } from '../automation-queue-aYRO9JLj.js';
|
|
6
|
+
import { M as MirrorSession, I as InputMessage, b as ScrcpyProfileName } from '../mirror-session-DK0OQvA3.js';
|
|
7
|
+
import { w as AuthResult, aL as SendCodeResult, b3 as VerifyCodeResult, at as Project, I as CreateProjectInput, J as CreateProjectResult, aq as PowerAction, aK as ScreenshotResult, Z as ElementNode, D as DeviceRow, N as NodeRow, al as NodeScope, aJ as RegisterNodeResult, ak as NodeOwnerPolicy, aP as Shortcut, ai as NewShortcut, aR as ShortcutRunResult, ar as PowerRunResult, f as ScriptSummary, S as Script, E as Cluster, G as CreateClusterInput, $ as FleetRunDetail, _ as FleetMode, d as AgentTaskBlocker, e as AgentTaskEvidence, aX as TaskStatus, aZ as TaskSummary, aV as TaskListFilter, b4 as WebhookConfig, L as CreateWebhookInput, aI as RegisterNodeInput, af as Locator, H as CreateLocatorInput, a2 as ImageArtifact, a3 as ImageInput, ae as LlmTestResult, U as DeviceRate, aF as RateInput, y as BillingPlan, an as PlanInput, X as DeviceUsageSession, aG as RebateLedgerRow, x as BalanceResp, a$ as TopupInput, b0 as TopupResult, q as ApiTokenRow, K as CreateTokenInput, M as CreatedToken } from '../types-BbtVr3QM.js';
|
|
8
|
+
import { a as TaskAgentDevice, b as TaskAgentDeviceStatus, T as TaskAgentRunner } from '../task-agent-runner-BwRW88rl.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-BwRW88rl.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-CuGflfZA.js';
|
|
14
14
|
|
|
15
15
|
declare function AixProvider({ config, children }: {
|
|
16
16
|
config: AixConfig;
|
|
@@ -70,6 +70,8 @@ interface UseMirror {
|
|
|
70
70
|
session: MirrorSession | null;
|
|
71
71
|
stream: MediaStream | null;
|
|
72
72
|
error: Error | null;
|
|
73
|
+
connectionState: string;
|
|
74
|
+
controlReady: boolean;
|
|
73
75
|
sendInput(msg: InputMessage): void;
|
|
74
76
|
/** Switch the device encode profile (node restarts its capture pipeline). */
|
|
75
77
|
setQuality(profile: ScrcpyProfileName): void;
|
package/dist/react/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export { DevicesProvider, GROUP_MIRROR_MAX, InspectorProvider, NodesProvider, ShortcutsProvider, mapDevice, preflightTaskAgentDevice, useAdmin, useApiTokens, useAuth, useAutomationQueue, useBilling, useClusters, useCommands, useDeviceActions, useDevices, useDevicesView, useEnvGate, useFleetRun, useFlowRun, useGroupMirror, useImages, useInspector, useInspectorView, useLlm, useLocators, useMirror, useNodes, useNodesView, useProjects, useScriptRun, useScripts, useShortcutsView, useTaskAgentRun, useTaskStatus, useTasks, useWebhooks } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
export { AixProvider, useAixConfig, useClient, useDevice, useEnvRun, useQuery, useScript } from '../chunk-A5VNENHD.js';
|
|
5
|
-
import '../chunk-JTFZSFFA.js';
|
|
6
|
-
import '../chunk-B2BOVLI6.js';
|
|
1
|
+
export { AixProvider, DevicesProvider, GROUP_MIRROR_MAX, InspectorProvider, NodesProvider, ShortcutsProvider, mapDevice, preflightTaskAgentDevice, useAdmin, useAixConfig, useApiTokens, useAuth, useAutomationQueue, useBilling, useClient, useClusters, useCommands, useDevice, useDeviceActions, useDevices, useDevicesView, useEnvGate, useEnvRun, useFleetRun, useFlowRun, useGroupMirror, useImages, useInspector, useInspectorView, useLlm, useLocators, useMirror, useNodes, useNodesView, useProjects, useQuery, useScript, useScriptRun, useScripts, useShortcutsView, useTaskAgentRun, useTaskStatus, useTasks, useWebhooks } from '../chunk-LWTL4AIC.js';
|
|
2
|
+
import '../chunk-7H4CYM42.js';
|
|
3
|
+
import '../chunk-F76N3GOA.js';
|
|
7
4
|
import '../chunk-NWFYTFMI.js';
|
|
@@ -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-B7t1Ln3w.js';
|
|
2
2
|
|
|
3
3
|
declare class DeviceTunnel {
|
|
4
4
|
readonly streamId: string;
|
|
@@ -1,12 +1,14 @@
|
|
|
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-BbtVr3QM.js';
|
|
4
|
+
import { N as NormalizedDevice } from './device-normalize-CuGflfZA.js';
|
|
5
|
+
import { A as AixConfig, R as ResolvedConfig } from './config-B7t1Ln3w.js';
|
|
6
6
|
import { A as AgentKind } from './agent-runner-V60B0is1.js';
|
|
7
7
|
|
|
8
8
|
interface Device {
|
|
9
9
|
id: string;
|
|
10
|
+
ownerUserId?: string | null;
|
|
11
|
+
projectId?: string | null;
|
|
10
12
|
name: string;
|
|
11
13
|
platform: 'ios' | 'android' | 'macos' | 'windows';
|
|
12
14
|
status: 'connected' | 'disconnected' | 'connecting';
|
|
@@ -94,6 +94,20 @@ type PowerAction = 'start' | 'stop' | 'reboot' | 'reset' | 'destroy' | 'snapshot
|
|
|
94
94
|
interface ScreenshotResult {
|
|
95
95
|
png_base64: string;
|
|
96
96
|
}
|
|
97
|
+
/** Saved device data; names are opaque identifiers, labels are user-facing. */
|
|
98
|
+
interface DeviceSnapshot {
|
|
99
|
+
device_id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
label?: string | null;
|
|
102
|
+
backend: string;
|
|
103
|
+
size_bytes?: number | null;
|
|
104
|
+
created_at: string;
|
|
105
|
+
}
|
|
106
|
+
interface DeviceSnapshotList {
|
|
107
|
+
snapshots: DeviceSnapshot[];
|
|
108
|
+
/** Saved/loaded source only: subsequent device changes are not auto-saved. */
|
|
109
|
+
current_snapshot: string | null;
|
|
110
|
+
}
|
|
97
111
|
/** Result of `POST /api/devices/:id/proxy/probe`. The endpoint deliberately
|
|
98
112
|
* exposes diagnostics only; it never echoes proxy credentials. The primary
|
|
99
113
|
* contract uses `exit_ip`/`message`; deprecated aliases are accepted while
|
|
@@ -362,8 +376,25 @@ interface AdbScanResult {
|
|
|
362
376
|
/** A connected iOS device and the usbmux lanes it is reachable on. */
|
|
363
377
|
interface IosDeviceRow {
|
|
364
378
|
udid: string;
|
|
365
|
-
|
|
366
|
-
|
|
379
|
+
/** null/absent means the node could not determine this transport. */
|
|
380
|
+
usb?: boolean | null;
|
|
381
|
+
wireless?: boolean | null;
|
|
382
|
+
connection_types?: string[];
|
|
383
|
+
wda_state?: 'stopped' | 'starting' | 'ready' | 'failed';
|
|
384
|
+
wda_url?: string | null;
|
|
385
|
+
mjpeg_url?: string | null;
|
|
386
|
+
ios_connection_generation?: string | null;
|
|
387
|
+
}
|
|
388
|
+
interface IosDiagnosticStage {
|
|
389
|
+
id: string;
|
|
390
|
+
status: 'ready' | 'blocked' | 'unknown' | 'unsupported' | 'not_ready';
|
|
391
|
+
code: string;
|
|
392
|
+
message: string;
|
|
393
|
+
}
|
|
394
|
+
interface IosDiagnostics extends Omit<IosDeviceRow, 'udid'> {
|
|
395
|
+
udid?: string | null;
|
|
396
|
+
stages: IosDiagnosticStage[];
|
|
397
|
+
operation_in_progress?: boolean;
|
|
367
398
|
}
|
|
368
399
|
/** Result of the node-scoped iOS `scan` control verb. */
|
|
369
400
|
interface IosScanResult {
|
|
@@ -1002,4 +1033,4 @@ interface IosLoginResult {
|
|
|
1002
1033
|
};
|
|
1003
1034
|
}
|
|
1004
1035
|
|
|
1005
|
-
export type {
|
|
1036
|
+
export type { FleetRunDetail as $, AgentTaskTargetStatus as A, BalanceLedgerRow as B, CatalogBrand as C, DeviceRow as D, Cluster as E, ClusterMode as F, CreateClusterInput as G, CreateLocatorInput as H, CreateProjectInput as I, CreateProjectResult as J, CreateTokenInput as K, CreateWebhookInput as L, CreatedToken as M, NodeRow as N, DeveloperRef as O, ProvisionSpec as P, DeviceLocation as Q, DeviceOp as R, Script as S, DeviceProfileView as T, DeviceRate as U, DeviceSnapshot as V, DeviceSnapshotList as W, DeviceUsageSession as X, DiscoveredStatus as Y, ElementNode as Z, FleetMode as _, ProvisionResult as a, TopupInput as a$, FleetRunDeviceRow as a0, FleetRunSubmit as a1, ImageArtifact as a2, ImageInput as a3, ImageOption as a4, InstallAntiDetectResult as a5, IosAccountState as a6, IosDeviceRow as a7, IosDiagnosticStage as a8, IosDiagnostics as a9, ProxyPatchResult as aA, ProxyProbe as aB, ProxyProbeErrorCode as aC, ProxySummary as aD, ProxyUrl as aE, RateInput as aF, RebateLedgerRow as aG, RecycledDeviceRow as aH, RegisterNodeInput as aI, RegisterNodeResult as aJ, ScreenshotResult as aK, SendCodeResult as aL, SetDataRootResult as aM, SetDisguiseResult as aN, SetProfileResult as aO, Shortcut as aP, ShortcutParam as aQ, ShortcutRunResult as aR, SubscribeInput as aS, TaskEvent as aT, TaskEventsResult as aU, TaskListFilter as aV, TaskListResult as aW, TaskStatus as aX, TaskSubmitResult as aY, TaskSummary as aZ, TaskTarget as a_, IosLibraryApp as aa, IosLoginResult as ab, IosScanResult as ac, KnownDeviceOpName as ad, LlmTestResult as ae, Locator as af, MdnsEntry as ag, NewAppTemplate as ah, NewShortcut as ai, NodeEffectiveCaps as aj, NodeOwnerPolicy as ak, NodeScope as al, OwnNodeDailyCharge as am, PlanInput as an, PlatformOem as ao, PlatformOemInput as ap, PowerAction as aq, PowerRunResult as ar, ProfileOverrides as as, Project as at, ProjectSubscription as au, ProjectUserResult as av, ProvisionUserInput as aw, ProvisionUserResult as ax, ProxyApplyReceipt as ay, ProxyApplyStatus as az, DiscoveredDevice as b, TopupResult as b0, UpdateNodeInput as b1, User as b2, VerifyCodeResult as b3, WebhookConfig as b4, AgentTaskTarget as c, AgentTaskBlocker as d, AgentTaskEvidence as e, ScriptSummary as f, Decimal as g, ScriptParam as h, AdbScanResult as i, AgentTaskCurrentAttempt as j, AgentTaskEvent as k, AgentTaskEventsResult as l, AgentTaskReadResult as m, AgentTaskReadTarget as n, AgentTaskSubmitInput as o, AgentTaskSubmitResult as p, ApiTokenRow as q, AppCandidate as r, AppEntry as s, AppTemplate as t, AppTemplateItemAndroid as u, AppTemplateItemIos as v, AuthResult as w, BalanceResp as x, BillingPlan as y, CatalogModel as z };
|
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-BbtVr3QM.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,12 +1,8 @@
|
|
|
1
|
-
import { useAixT } from '../chunk-
|
|
2
|
-
import { cn, Button, Badge, Input } from '../chunk-
|
|
3
|
-
import { useBilling } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-H37NHOYU.js';
|
|
7
|
-
import { useClient } from '../chunk-A5VNENHD.js';
|
|
8
|
-
import '../chunk-JTFZSFFA.js';
|
|
9
|
-
import '../chunk-B2BOVLI6.js';
|
|
1
|
+
import { useAixT } from '../chunk-WUT5OUBG.js';
|
|
2
|
+
import { cn, Button, Badge, Input } from '../chunk-SKTL6ACT.js';
|
|
3
|
+
import { useBilling, useClient } from '../chunk-LWTL4AIC.js';
|
|
4
|
+
import '../chunk-7H4CYM42.js';
|
|
5
|
+
import '../chunk-F76N3GOA.js';
|
|
10
6
|
import '../chunk-NWFYTFMI.js';
|
|
11
7
|
import { useState, useEffect } from 'react';
|
|
12
8
|
import { SlidersHorizontal, Server, CalendarClock, Smartphone, ArrowUpCircle, ArrowDownCircle, HeadphonesIcon, Wallet, X, RefreshCw } from 'lucide-react';
|