@aixnn/aixautots 0.6.10 → 0.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{automation-queue-CvrWEOw2.d.ts → automation-queue-BFWqw32O.d.ts} +2 -2
  2. package/dist/{chunk-PUEKOYSH.js → chunk-2KPZSPV6.js} +131 -3
  3. package/dist/{chunk-UH5OYPXE.js → chunk-7BJPVSEZ.js} +205 -18
  4. package/dist/{chunk-LR5LJJNM.js → chunk-HMDUSVQ3.js} +4 -4
  5. package/dist/{chunk-E7WMHM63.js → chunk-MBBVYSPD.js} +7 -0
  6. package/dist/{chunk-5KZB6M2S.js → chunk-Q5I63UYT.js} +127 -419
  7. package/dist/{chunk-7IXBWJHB.js → chunk-QEK25NUA.js} +5 -5
  8. package/dist/chunk-QFGMQLRB.js +405 -0
  9. package/dist/{chunk-LO3XD4T5.js → chunk-QRIWTPN3.js} +114 -4
  10. package/dist/{chunk-D7J4EQTA.js → chunk-S5N4EOCP.js} +1 -1
  11. package/dist/{chunk-NEQFR75E.js → chunk-SKI7TINK.js} +349 -420
  12. package/dist/{chunk-SL6M6CC6.js → chunk-T6X6TWHK.js} +3 -3
  13. package/dist/{chunk-XCYGBYFC.js → chunk-U4QW45MB.js} +208 -126
  14. package/dist/{chunk-SKTL6ACT.js → chunk-VMA3QOYR.js} +3 -3
  15. package/dist/chunk-ZCTAYVPK.js +1 -0
  16. package/dist/{config-BUH2EYHO.d.ts → config-UmU2_q5M.d.ts} +173 -2
  17. package/dist/core/index.d.ts +29 -11
  18. package/dist/core/index.js +2 -2
  19. package/dist/{device-normalize-DzuVemCy.d.ts → device-normalize-CWJFr_sf.d.ts} +7 -4
  20. package/dist/device-session-3XK2SZDF.js +1 -0
  21. package/dist/i18n/index.js +1 -1
  22. package/dist/{mirror-session-D2YY9mKf.d.ts → mirror-session-Cy20lIHP.d.ts} +14 -4
  23. package/dist/react/index.d.ts +9 -9
  24. package/dist/react/index.js +3 -3
  25. package/dist/{script-debugger-Csm4CrfY.d.ts → script-debugger-F5UGUq5t.d.ts} +1 -1
  26. package/dist/{task-agent-runner-C4WfT77g.d.ts → task-agent-runner-Cj_u-3DS.d.ts} +3 -3
  27. package/dist/{types-BfIeUpsU.d.ts → types-BvrppNIZ.d.ts} +34 -2
  28. package/dist/ui/billing.d.ts +2 -2
  29. package/dist/ui/billing.js +14 -8
  30. package/dist/ui/device-create.d.ts +7 -5
  31. package/dist/ui/device-create.js +8 -7
  32. package/dist/ui/device-mirror.js +7 -7
  33. package/dist/ui/devices.d.ts +5 -5
  34. package/dist/ui/devices.js +12 -11
  35. package/dist/ui/editor.d.ts +2 -2
  36. package/dist/ui/editor.js +7 -7
  37. package/dist/ui/index.d.ts +5 -4
  38. package/dist/ui/index.js +9 -7
  39. package/dist/ui/inspector.js +5 -5
  40. package/dist/ui/ip-commerce.d.ts +26 -0
  41. package/dist/ui/ip-commerce.js +8 -0
  42. package/dist/ui/market.js +4 -4
  43. package/dist/ui/mirror.d.ts +5 -4
  44. package/dist/ui/mirror.js +1 -1
  45. package/dist/ui/primitives/index.js +1 -1
  46. package/dist/ui/script-studio.js +6 -6
  47. package/dist/ui/scripts.d.ts +1 -1
  48. package/dist/ui/scripts.js +5 -5
  49. package/dist/ui/tasks.js +12 -11
  50. package/package.json +6 -2
  51. package/dist/device-session-7MKEJTIA.js +0 -1
@@ -1,4 +1,4 @@
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-BfIeUpsU.js';
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-BvrppNIZ.js';
2
2
 
3
3
  type OutgoingFrame = {
4
4
  t: 'adb_exec';
@@ -1236,6 +1236,151 @@ declare class ManagedProxiesApi {
1236
1236
  release(id: string, requestId: string): Promise<ManagedProxyOrder>;
1237
1237
  }
1238
1238
 
1239
+ /** Supplier and new retail charges use USD at 1:1, with no FX or markup. Never send a platform API key from this client. */
1240
+ interface IpOffer {
1241
+ id: string;
1242
+ offer_id: string;
1243
+ name: string;
1244
+ kind: 'static' | 'dynamic';
1245
+ region: string;
1246
+ /** Published product classification; not an independent quality certification. */
1247
+ tier: string;
1248
+ tier_rank: number;
1249
+ billing_mode: 'term' | 'prepaid' | 'payg';
1250
+ currency: 'USD';
1251
+ unit_price_cents: number | null;
1252
+ unit_bytes?: number;
1253
+ duration_days_options: number[];
1254
+ traffic_gb_options: number[];
1255
+ available: boolean;
1256
+ unavailable_reason?: string | null;
1257
+ ip_stability: 'fixed_line' | 'fixed_ip' | 'rotating';
1258
+ source_kind: string;
1259
+ compatible_offer_ids?: string[];
1260
+ compatible_payg_offer_ids?: string[];
1261
+ }
1262
+ interface IpCatalog {
1263
+ offers: IpOffer[];
1264
+ purchases_enabled: boolean;
1265
+ retail_policy: {
1266
+ configured: boolean;
1267
+ currency?: string;
1268
+ per_usd?: string;
1269
+ };
1270
+ }
1271
+ interface IpCatalogFilter {
1272
+ kind?: IpOffer['kind'];
1273
+ country?: string;
1274
+ tier?: string;
1275
+ billing_mode?: IpOffer['billing_mode'];
1276
+ max_unit_price_cents?: number;
1277
+ }
1278
+ interface IpQuoteInput {
1279
+ request_id: string;
1280
+ /** Omit both device_id and creation_spec to purchase a standalone resource. */
1281
+ device_id?: string;
1282
+ creation_spec?: ProvisionSpec;
1283
+ offer_id: string;
1284
+ duration_days?: number;
1285
+ quantity?: number;
1286
+ traffic_gb?: number;
1287
+ spend_limit_cents?: number;
1288
+ entitlement_id?: string;
1289
+ }
1290
+ interface IpQuote {
1291
+ id: string;
1292
+ external_order_id: string;
1293
+ expires_at: string;
1294
+ total_cents: number;
1295
+ currency: 'USD';
1296
+ offer: IpOffer;
1297
+ duration_days?: number;
1298
+ traffic_gb?: number;
1299
+ spend_limit_cents?: number;
1300
+ retail_configured: boolean;
1301
+ retail_currency: string | null;
1302
+ retail_total: string | null;
1303
+ retail_usage_limit: string | null;
1304
+ device_billing?: {
1305
+ kind: string;
1306
+ rate_per_hour: string;
1307
+ currency: string;
1308
+ };
1309
+ }
1310
+ interface IpOrder {
1311
+ id: string;
1312
+ external_order_id: string;
1313
+ device_id: string;
1314
+ status: 'quoted' | 'pending' | 'fulfilled' | 'rejected';
1315
+ quote: IpQuote;
1316
+ charged_cents?: number;
1317
+ entitlement_ids: string[];
1318
+ apply_status?: string;
1319
+ failure_reason?: string | null;
1320
+ }
1321
+ interface IpResource {
1322
+ id: string;
1323
+ name: string;
1324
+ kind: 'static' | 'dynamic';
1325
+ region: string;
1326
+ tier: string;
1327
+ status: string;
1328
+ billing_mode: IpOffer['billing_mode'];
1329
+ expires_at: string;
1330
+ traffic_bytes?: number | null;
1331
+ used_bytes: number;
1332
+ usage_charged_cents: number;
1333
+ spend_limit_cents?: number | null;
1334
+ unit_bytes: number;
1335
+ }
1336
+ interface IpResourceConnection {
1337
+ entitlement_id: string;
1338
+ order_id: string;
1339
+ owner_user_id: string;
1340
+ project_id: string;
1341
+ connection: {
1342
+ url: string;
1343
+ };
1344
+ status: 'active';
1345
+ expires_at: string | null;
1346
+ checked_at: string;
1347
+ usage_policy: 'subject_to_supplier_product_terms';
1348
+ }
1349
+ /** No automatic mutation retries. Keep request/order IDs for uncertain-outcome recovery. */
1350
+ declare class IpCommerceApi {
1351
+ private readonly c;
1352
+ constructor(c: RestClient);
1353
+ capabilities(opts?: RequestOpts): Promise<{
1354
+ contract: 'authenticated_account_wallet';
1355
+ currency: 'USD';
1356
+ tools: unknown[];
1357
+ owner_user_id: string;
1358
+ project_id: string;
1359
+ }>;
1360
+ catalog(filters?: IpCatalogFilter, opts?: RequestOpts): Promise<IpCatalog>;
1361
+ quote(input: IpQuoteInput, opts?: RequestOpts): Promise<IpQuote>;
1362
+ purchase(input: {
1363
+ quote_id: string;
1364
+ max_total_cents: number;
1365
+ confirm: true;
1366
+ }, opts?: RequestOpts): Promise<IpOrder>;
1367
+ order(id: string, opts?: RequestOpts): Promise<IpOrder>;
1368
+ orders(deviceId?: string, opts?: RequestOpts): Promise<IpOrder[]>;
1369
+ resources(opts?: RequestOpts): Promise<{
1370
+ items: IpResource[];
1371
+ }>;
1372
+ /** Sensitive independent credential. Resolve in a trusted backend, never log/cache it or use a platform key here.
1373
+ * Fresh supplier lookup; failure must disable the proxy, never fall back to a cached credential or direct connection.
1374
+ * Does not rotate, buy, or authorize browser/multiple-target reuse beyond supplier product terms. */
1375
+ resourceConnection(id: string, opts?: RequestOpts): Promise<IpResourceConnection>;
1376
+ cancelQuote(id: string, opts?: RequestOpts): Promise<IpOrder>;
1377
+ createDevice(id: string, opts?: RequestOpts): Promise<ProvisionResult>;
1378
+ apply(id: string, entitlementId: string, opts?: RequestOpts): Promise<{
1379
+ status: string;
1380
+ revision: number;
1381
+ }>;
1382
+ }
1383
+
1239
1384
  /** 用户 PAT(personal access token)管理,挂在 `/api/tokens`(caller scope)。
1240
1385
  * 令牌绑用户钱包/账号身份;明文仅在 create/rotate 时返回一次。 */
1241
1386
  declare class ApiTokensApi {
@@ -1261,6 +1406,30 @@ declare class AppTemplatesApi {
1261
1406
  remove(id: string): Promise<void>;
1262
1407
  }
1263
1408
 
1409
+ /** Account snapshot library. Restoring always creates a new device. */
1410
+ declare class SnapshotsApi {
1411
+ private readonly c;
1412
+ constructor(c: RestClient);
1413
+ list(options?: Pick<RequestOpts, 'signal'>): Promise<{
1414
+ snapshots: PortableSnapshot[];
1415
+ }>;
1416
+ create(input: {
1417
+ device_id: string;
1418
+ label: string;
1419
+ kind: SnapshotKind;
1420
+ }): Promise<SnapshotOperationReceipt>;
1421
+ operation(id: string, options?: Pick<RequestOpts, 'signal'>): Promise<SnapshotOperation>;
1422
+ restore(id: string, input?: {
1423
+ node_id?: string;
1424
+ }): Promise<SnapshotOperationReceipt>;
1425
+ grants(id: string): Promise<{
1426
+ grants: SnapshotGrant[];
1427
+ }>;
1428
+ grant(id: string, userId: string): Promise<unknown>;
1429
+ revoke(id: string, userId: string): Promise<unknown>;
1430
+ delete(id: string): Promise<unknown>;
1431
+ }
1432
+
1264
1433
  /** One-stop typed REST facade over the whole backend `/api/*` surface.
1265
1434
  * Build once from an `AixConfig` and share it across the app. */
1266
1435
  declare class AixClient {
@@ -1283,8 +1452,10 @@ declare class AixClient {
1283
1452
  readonly images: ImagesApi;
1284
1453
  readonly billing: BillingApi;
1285
1454
  readonly proxies: ManagedProxiesApi;
1455
+ readonly ipCommerce: IpCommerceApi;
1286
1456
  readonly tokens: ApiTokensApi;
1287
1457
  readonly appTemplates: AppTemplatesApi;
1458
+ readonly snapshots: SnapshotsApi;
1288
1459
  /** Desktop local-node controller — present only when `cfg.localNode` is set
1289
1460
  * (Tauri/Electron). `ensure()` binds this machine as the caller's node and
1290
1461
  * `listDevices()`/`onDevices()` surface its connected devices. */
@@ -1546,4 +1717,4 @@ declare function authHeader(getAuthToken: () => string | Promise<string>): Promi
1546
1717
  }>;
1547
1718
  declare function resolveConfig(cfg: AixConfig): ResolvedConfig;
1548
1719
 
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 };
1720
+ export { LlmApi 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, type IpCatalog as P, type IpCatalogFilter as Q, type ResolvedConfig as R, type ScriptletEventFrame as S, IpCommerceApi as T, type IpOffer as U, type IpOrder as V, type WebSocketFactory as W, type IpQuote as X, type IpQuoteInput as Y, type IpResource as Z, type IpResourceConnection as _, type RunEventKind as a, LocalNodeController as a0, type LocalNodeOptions as a1, LocatorsApi as a2, type ManagedCreationInput as a3, type ManagedCreationQuote as a4, type ManagedCreationReceipt as a5, type ManagedCreations as a6, ManagedProxiesApi as a7, type ManagedProxyCatalog as a8, type ManagedProxyOrder as a9, WebhooksApi as aA, authHeader as aB, buildAuthProvider as aC, createCachedUserCredential as aD, createClient as aE, detectEnvOs as aF, envBlocker as aG, executionStreamEventsAfter as aH, executionWsTicketUrl as aI, executionWsUrl as aJ, isEnvEventFrame as aK, isExecutionFrame as aL, isFleetRunTerminal as aM, isFridaEventFrame as aN, isRetFrame as aO, isScriptletEventFrame as aP, isStatusFrame as aQ, joinUrl as aR, parseIncoming as aS, pullFile as aT, pushFile as aU, resolveConfig as aV, restClient as aW, runEnvToFinish as aX, summarizeEnv as aY, type ManagedProxyProduct as aa, type ManagedProxyPurchaseInput as ab, type ManagedProxyQuote as ac, type ManagedProxyQuoteInput as ad, type NodeHost as ae, type NodeHostStatus as af, NodesApi as ag, type ProgressFn as ah, ProjectsApi as ai, type ProxyIntegrationStatus as aj, type PullResult as ak, type PushInput as al, type RTCFactory as am, type RequestOpts as an, RestClient as ao, type RetFrame as ap, type Scope as aq, ScriptsApi as ar, ShortcutsApi as as, SnapshotsApi as at, type StreamTarget as au, TasksApi as av, type TransferOpts as aw, type TransferProgress as ax, type TransferResult as ay, UsersApi 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 };
@@ -1,16 +1,16 @@
1
- import { R as ResolvedConfig, W as WebSocketFactory } from '../config-BUH2EYHO.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-BUH2EYHO.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-Csm4CrfY.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-CvrWEOw2.js';
5
- import { h as ScriptParam } from '../types-BfIeUpsU.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-BfIeUpsU.js';
7
- import { C as ControlMessage } from '../mirror-session-D2YY9mKf.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-D2YY9mKf.js';
1
+ import { R as ResolvedConfig, W as WebSocketFactory } from '../config-UmU2_q5M.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-UmU2_q5M.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-F5UGUq5t.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-BFWqw32O.js';
5
+ import { h as ScriptParam } from '../types-BvrppNIZ.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-BvrppNIZ.js';
7
+ import { C as ControlMessage } from '../mirror-session-Cy20lIHP.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-Cy20lIHP.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-DzuVemCy.js';
11
+ export { D as DeviceTransport, N as NormalizedDevice, n as normalizeDevices } from '../device-normalize-CWJFr_sf.js';
12
12
 
13
- type AixErrorCode = 'auth' | 'timeout' | 'offline' | 'locked' | 'protocol' | 'unknown';
13
+ type AixErrorCode = 'auth' | 'network' | 'timeout' | 'offline' | 'locked' | 'protocol' | 'unknown';
14
14
  interface AixErrorDetails {
15
15
  status?: number;
16
16
  detail?: string;
@@ -81,6 +81,9 @@ declare class ReconnectingSocket {
81
81
  start(): Promise<void>;
82
82
  private connect;
83
83
  private scheduleReconnect;
84
+ /** Re-admit with a fresh token. Retire the old socket before close callbacks
85
+ * can run; queued messages/close events must never affect its replacement. */
86
+ reconnect(): void;
84
87
  send(text: string): void;
85
88
  isConnected(): boolean;
86
89
  close(): void;
@@ -106,6 +109,21 @@ declare function schemaDefaults(schema: ScriptParam[]): Record<string, string>;
106
109
 
107
110
  declare function getIceServers(cfg: ResolvedConfig): Promise<unknown[]>;
108
111
  declare function mintViewerToken(cfg: ResolvedConfig, session: string): Promise<string>;
112
+ /** Server-issued v2 proof. Never infer permissions from a peer list. */
113
+ interface ViewerGrant {
114
+ token: string;
115
+ grant_id: string;
116
+ session: string;
117
+ permission: 'video_only';
118
+ protocol_version: 2;
119
+ expires_at_ms: number;
120
+ node_connection: {
121
+ node_id: string;
122
+ generation: number;
123
+ session_id: string;
124
+ };
125
+ }
126
+ declare function mintViewerGrant(cfg: ResolvedConfig, session: string): Promise<ViewerGrant>;
109
127
 
110
128
  interface PointerSample {
111
129
  clientX: number;
@@ -137,4 +155,4 @@ declare function setLocale(l: Locale): void;
137
155
  declare function getLocale(): Locale;
138
156
  declare function t(code: AixErrorCode): string;
139
157
 
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 };
158
+ 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, type ViewerGrant, WebSocketFactory, type WsAccess, classifyDrag, errorFromRet, getIceServers, getLocale, mapKey, mintDeviceAccess, mintViewerGrant, mintViewerToken, schemaDefaults, schemaToVariables, setLocale, t, targetParam, variablesToSchema, wsUrlFromAccess };
@@ -1,3 +1,3 @@
1
- export { AutomationQueue, DeviceChannel, DeviceTunnel, FlowRun, MirrorSession, SCHEMA_KEY, SCRCPY_PROFILES, ScriptDebugger, mintDeviceAccess, normalizeDevices, qualityMessage, schemaDefaults, schemaToVariables, submitBatch, targetParam, variablesToSchema, wsUrlFromAccess } from '../chunk-UH5OYPXE.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-PUEKOYSH.js';
1
+ export { AutomationQueue, DeviceChannel, DeviceTunnel, FlowRun, MirrorSession, SCHEMA_KEY, SCRCPY_PROFILES, ScriptDebugger, mintDeviceAccess, normalizeDevices, qualityMessage, schemaDefaults, schemaToVariables, submitBatch, targetParam, variablesToSchema, wsUrlFromAccess } from '../chunk-7BJPVSEZ.js';
2
+ export { AdminApi, AixAuthError, AixClient, AixDeviceOffline, AixError, AixLocked, AixProtocolError, AixTimeout, ApiTokensApi, AuthApi, BillingApi, ClustersApi, DeviceSession, DevicesApi, EnvRun, FleetApi, ImagesApi, IpCommerceApi, LlmApi, LocalNodeController, LocatorsApi, ManagedProxiesApi, NodesApi, ProjectsApi, ReconnectingSocket, RestClient, ScriptsApi, ShortcutsApi, SnapshotsApi, TasksApi, UsersApi, WebhooksApi, authHeader, buildAuthProvider, createCachedUserCredential, createClient, detectEnvOs, envBlocker, errorFromRet, executionStreamEventsAfter, executionWsTicketUrl, executionWsUrl, getIceServers, getLocale, isEnvEventFrame, isExecutionFrame, isFleetRunTerminal, isFridaEventFrame, isRetFrame, isScriptletEventFrame, isStatusFrame, joinUrl, mintViewerGrant, mintViewerToken, parseIncoming, pullFile, pushFile, resolveConfig, restClient, runEnvToFinish, setLocale, summarizeEnv, t } from '../chunk-2KPZSPV6.js';
3
3
  export { classifyDrag, mapKey, toDevicePoint } from '../chunk-NWFYTFMI.js';
@@ -1,4 +1,4 @@
1
- import { D as DeviceRow } from './types-BfIeUpsU.js';
1
+ import { D as DeviceRow } from './types-BvrppNIZ.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
@@ -28,14 +28,17 @@ interface NormalizedDevice extends DeviceRow {
28
28
  }
29
29
  /** Merge the caller's device rows so the same physical device appears once.
30
30
  *
31
- * Dedup key: `meta.serialno` when present; otherwise the row's own `external_id`.
31
+ * Managed `rd-*` resources always retain their own canonical external_id:
32
+ * full restores deliberately copy Android serial numbers into new resources.
33
+ * Physical transport rows still merge by serialno. A discovered transport may
34
+ * join a managed row only when its serial identifies exactly one managed row.
32
35
  *
33
36
  * Cross-reference: a provisioned virtual device row (e.g. `external_id = rd-XXXX`)
34
37
  * typically has no `meta.serialno`, but the ADB-TCP row the node auto-discovers
35
38
  * for the same container (e.g. `external_id = 127.0.0.1:PORT`) carries
36
39
  * `meta.serialno = rd-XXXX`. We collect all serialno values first, then treat any
37
- * row whose `external_id` appears in that set as belonging to the same group —
38
- * so both rows end up under `sn:rd-XXXX` and are merged into one display entry.
40
+ * row whose `external_id` appears in that set as belonging to the same group,
41
+ * provided a copied identity has not made that association ambiguous.
39
42
  *
40
43
  * Output order follows first appearance of each device in `rows`. */
41
44
  declare function normalizeDevices(rows: DeviceRow[]): NormalizedDevice[];
@@ -0,0 +1 @@
1
+ export { DeviceSession, pullFile, pushFile } from './chunk-2KPZSPV6.js';
@@ -1 +1 @@
1
- export { AixI18nProvider, useAixLang, useAixT } from '../chunk-LO3XD4T5.js';
1
+ export { AixI18nProvider, useAixLang, useAixT } from '../chunk-QRIWTPN3.js';
@@ -1,4 +1,4 @@
1
- import { A as AixConfig, R as ResolvedConfig } from './config-BUH2EYHO.js';
1
+ import { A as AixConfig, R as ResolvedConfig } from './config-UmU2_q5M.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. */
@@ -48,6 +48,9 @@ type ControlMessage = {
48
48
  fps: number;
49
49
  };
50
50
  type InputMessage = ControlMessage;
51
+ interface MirrorJoinOptions {
52
+ permission?: 'control' | 'video_only';
53
+ }
51
54
  /** Named encode profiles (latency/quality tradeoff). The client owns the
52
55
  * names; the node only sees the explicit knobs (`qualityMessage`). */
53
56
  type ScrcpyProfileName = 'balanced' | 'low_latency' | 'high_quality';
@@ -70,8 +73,13 @@ declare class MirrorSession {
70
73
  private readonly cfg;
71
74
  readonly session: string;
72
75
  private readonly socket;
73
- private readonly iceServers;
76
+ private iceServers;
74
77
  private readonly token;
78
+ private videoOnly;
79
+ private verified;
80
+ private nodePeer;
81
+ private grant;
82
+ private expiryTimer;
75
83
  private pc;
76
84
  private input;
77
85
  private requestedAudio;
@@ -90,7 +98,8 @@ declare class MirrorSession {
90
98
  * fresh RTCPeerConnection (see the `offer` handler) — no consumer action
91
99
  * needed to restore the video track. The optional signal cancels a pending
92
100
  * join; after it resolves, use leave() to end the returned session. */
93
- static join(cfg: AixConfig | ResolvedConfig, session: string, signal?: AbortSignal): Promise<MirrorSession>;
101
+ static join(cfg: AixConfig | ResolvedConfig, session: string, signal?: AbortSignal, options?: MirrorJoinOptions): Promise<MirrorSession>;
102
+ private static joinVideoOnly;
94
103
  get stream(): MediaStream | null;
95
104
  get connectionState(): string;
96
105
  get controlReady(): boolean;
@@ -109,6 +118,7 @@ declare class MirrorSession {
109
118
  * by the auto quality heuristic. */
110
119
  currentRtt(): Promise<number | null>;
111
120
  private sendSignal;
121
+ private livePeer;
112
122
  private ensurePc;
113
123
  private attachInput;
114
124
  /** Drop the peer and its stream so a replacement cannot inherit frame/input readiness. */
@@ -117,4 +127,4 @@ declare class MirrorSession {
117
127
  leave(): void;
118
128
  }
119
129
 
120
- export { type ControlMessage as C, type InputMessage as I, MirrorSession as M, SCRCPY_PROFILES as S, type ScrcpyProfile as a, type ScrcpyProfileName as b, qualityMessage as q };
130
+ export { type ControlMessage as C, type InputMessage as I, type MirrorJoinOptions as M, SCRCPY_PROFILES as S, MirrorSession as a, type ScrcpyProfile as b, type ScrcpyProfileName as c, qualityMessage as q };
@@ -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-BUH2EYHO.js';
4
- import { D as DeviceChannel, A as AdbResult, W as WdaResult, S as ScriptEvent, e as ScriptRunInput } from '../script-debugger-Csm4CrfY.js';
5
- import { F as FlowEvent, b as FlowSubmit, B as BatchConfig } from '../automation-queue-CvrWEOw2.js';
6
- import { M as MirrorSession, I as InputMessage, b as ScrcpyProfileName } from '../mirror-session-D2YY9mKf.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-BfIeUpsU.js';
8
- import { a as TaskAgentDevice, b as TaskAgentDeviceStatus, T as TaskAgentRunner } from '../task-agent-runner-C4WfT77g.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-C4WfT77g.js';
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-UmU2_q5M.js';
4
+ import { D as DeviceChannel, A as AdbResult, W as WdaResult, S as ScriptEvent, e as ScriptRunInput } from '../script-debugger-F5UGUq5t.js';
5
+ import { F as FlowEvent, b as FlowSubmit, B as BatchConfig } from '../automation-queue-BFWqw32O.js';
6
+ import { a as MirrorSession, I as InputMessage, c as ScrcpyProfileName, M as MirrorJoinOptions } from '../mirror-session-Cy20lIHP.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-BvrppNIZ.js';
8
+ import { a as TaskAgentDevice, b as TaskAgentDeviceStatus, T as TaskAgentRunner } from '../task-agent-runner-Cj_u-3DS.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-Cj_u-3DS.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-DzuVemCy.js';
13
+ import '../device-normalize-CWJFr_sf.js';
14
14
 
15
15
  declare function AixProvider({ config, children }: {
16
16
  config: AixConfig;
@@ -76,7 +76,7 @@ interface UseMirror {
76
76
  /** Switch the device encode profile (node restarts its capture pipeline). */
77
77
  setQuality(profile: ScrcpyProfileName): void;
78
78
  }
79
- declare function useMirror(sessionId: string): UseMirror;
79
+ declare function useMirror(sessionId: string, options?: MirrorJoinOptions): UseMirror;
80
80
 
81
81
  /** 一次群控的软上限:每台设备一条 WebRTC 连接,浏览器并发与带宽有限。超出的
82
82
  * id 被截断并 console.warn。 */
@@ -1,4 +1,4 @@
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-7IXBWJHB.js';
2
- import '../chunk-UH5OYPXE.js';
3
- import '../chunk-PUEKOYSH.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-QEK25NUA.js';
2
+ import '../chunk-7BJPVSEZ.js';
3
+ import '../chunk-2KPZSPV6.js';
4
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-BUH2EYHO.js';
1
+ import { A as AixConfig, R as ResolvedConfig, F as FridaEventFrame, S as ScriptletEventFrame, b as StatusFrame, O as OutgoingFrame } from './config-UmU2_q5M.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-BfIeUpsU.js';
4
- import { N as NormalizedDevice } from './device-normalize-DzuVemCy.js';
5
- import { A as AixConfig, R as ResolvedConfig } from './config-BUH2EYHO.js';
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-BvrppNIZ.js';
4
+ import { N as NormalizedDevice } from './device-normalize-CWJFr_sf.js';
5
+ import { A as AixConfig, R as ResolvedConfig } from './config-UmU2_q5M.js';
6
6
  import { A as AgentKind } from './agent-runner-V60B0is1.js';
7
7
 
8
8
  interface Device {
@@ -114,6 +114,38 @@ interface DeviceSnapshotList {
114
114
  /** Saved/loaded source only: subsequent device changes are not auto-saved. */
115
115
  current_snapshot: string | null;
116
116
  }
117
+ type SnapshotKind = 'full' | 'template';
118
+ type SnapshotOperationStatus = 'pending' | 'running' | 'ready' | 'failed';
119
+ /** Encrypted, portable account snapshot. Shared recipients may restore only. */
120
+ interface PortableSnapshot {
121
+ id: string;
122
+ label: string;
123
+ kind: SnapshotKind;
124
+ source_device_id: string;
125
+ owner_user_id?: string;
126
+ project_id?: string;
127
+ owned: boolean;
128
+ status: SnapshotOperationStatus;
129
+ size_bytes?: number | null;
130
+ created_at: string;
131
+ }
132
+ interface SnapshotGrant {
133
+ user_id: string;
134
+ created_at: string;
135
+ }
136
+ interface SnapshotOperationReceipt {
137
+ operation_id: string;
138
+ status: SnapshotOperationStatus;
139
+ }
140
+ interface SnapshotOperation {
141
+ id: string;
142
+ status: SnapshotOperationStatus;
143
+ snapshot_id?: string | null;
144
+ device_id?: string | null;
145
+ error?: string | null;
146
+ /** A completed restore can carry recoverable configuration warnings. */
147
+ warnings?: string[];
148
+ }
117
149
  /** Result of `POST /api/devices/:id/proxy/probe`. The endpoint deliberately
118
150
  * exposes diagnostics only; it never echoes proxy credentials. The primary
119
151
  * contract uses `exit_ip`/`message`; deprecated aliases are accepted while
@@ -863,7 +895,7 @@ interface RebateLedgerRow {
863
895
  interface BalanceLedgerRow {
864
896
  id: string;
865
897
  owner_user_id: string;
866
- kind: 'topup' | 'platform_session' | 'subscription' | 'own_node_daily' | 'adjust';
898
+ kind: 'topup' | 'platform_session' | 'subscription' | 'own_node_daily' | 'proxy_purchase' | 'proxy_refund' | 'ip_hold' | 'ip_hold_release' | 'ip_purchase' | 'ip_usage' | 'adjust';
867
899
  amount: Decimal;
868
900
  ref: string;
869
901
  balance_after: Decimal;
@@ -1039,4 +1071,4 @@ interface IosLoginResult {
1039
1071
  };
1040
1072
  }
1041
1073
 
1042
- 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 };
1074
+ 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, TaskListFilter 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, ProxyApplyStatus as aA, ProxyPatchResult as aB, ProxyProbe as aC, ProxyProbeErrorCode as aD, ProxySummary as aE, ProxyUrl as aF, RateInput as aG, RebateLedgerRow as aH, RecycledDeviceRow as aI, RegisterNodeInput as aJ, RegisterNodeResult as aK, ScreenshotResult as aL, SendCodeResult as aM, SetDataRootResult as aN, SetDisguiseResult as aO, SetProfileResult as aP, Shortcut as aQ, ShortcutParam as aR, ShortcutRunResult as aS, SnapshotGrant as aT, SnapshotKind as aU, SnapshotOperation as aV, SnapshotOperationReceipt as aW, SnapshotOperationStatus as aX, SubscribeInput as aY, TaskEvent as aZ, TaskEventsResult 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, PortableSnapshot as aq, PowerAction as ar, PowerRunResult as as, ProfileOverrides as at, Project as au, ProjectSubscription as av, ProjectUserResult as aw, ProvisionUserInput as ax, ProvisionUserResult as ay, ProxyApplyReceipt as az, DiscoveredDevice as b, TaskListResult as b0, TaskStatus as b1, TaskSubmitResult as b2, TaskSummary as b3, TaskTarget as b4, TopupInput as b5, TopupResult as b6, UpdateNodeInput as b7, User as b8, VerifyCodeResult as b9, WebhookConfig as ba, 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 };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { g as Decimal, B as BalanceLedgerRow } from '../types-BfIeUpsU.js';
2
+ import { g as Decimal, B as BalanceLedgerRow } from '../types-BvrppNIZ.js';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
 
5
5
  declare function BillingPage(): react.JSX.Element;
@@ -41,7 +41,7 @@ interface LedgerKindMeta {
41
41
  /**
42
42
  * 返回该流水行的元数据。
43
43
  * `adjust` 类型的借贷方向取决于金额符号:正数 → credit(入账),负数 → debit(扣费)。
44
- * 其余四种类型固定方向,`amount` 参数被忽略。
44
+ * 其余类型固定方向,`amount` 参数被忽略。
45
45
  */
46
46
  declare function ledgerKindMeta(kind: BalanceLedgerRow['kind'], amount?: number): LedgerKindMeta;
47
47
 
@@ -1,11 +1,11 @@
1
- import { useAixT } from '../chunk-LO3XD4T5.js';
2
- import { cn, Button, Badge, Input } from '../chunk-SKTL6ACT.js';
3
- import { useBilling, useClient } from '../chunk-7IXBWJHB.js';
4
- import '../chunk-UH5OYPXE.js';
5
- import '../chunk-PUEKOYSH.js';
1
+ import { useAixT } from '../chunk-QRIWTPN3.js';
2
+ import { cn, Button, Badge, Input } from '../chunk-VMA3QOYR.js';
3
+ import { useBilling, useClient } from '../chunk-QEK25NUA.js';
4
+ import '../chunk-7BJPVSEZ.js';
5
+ import '../chunk-2KPZSPV6.js';
6
6
  import '../chunk-NWFYTFMI.js';
7
7
  import { useState, useEffect } from 'react';
8
- import { SlidersHorizontal, Server, CalendarClock, Smartphone, ArrowUpCircle, ArrowDownCircle, HeadphonesIcon, Wallet, X, RefreshCw } from 'lucide-react';
8
+ import { SlidersHorizontal, Globe, ArrowUpCircle, Server, CalendarClock, Smartphone, ArrowDownCircle, HeadphonesIcon, Wallet, X, RefreshCw } from 'lucide-react';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
 
11
11
  var TABLE = {
@@ -13,6 +13,12 @@ var TABLE = {
13
13
  platform_session: { icon: Smartphone, i18nKey: "billing.kind.platform_session", sign: "debit" },
14
14
  subscription: { icon: CalendarClock, i18nKey: "billing.kind.subscription", sign: "debit" },
15
15
  own_node_daily: { icon: Server, i18nKey: "billing.kind.own_node_daily", sign: "debit" },
16
+ proxy_purchase: { icon: Globe, i18nKey: "billing.kind.proxy_purchase", sign: "debit" },
17
+ proxy_refund: { icon: ArrowUpCircle, i18nKey: "billing.kind.proxy_refund", sign: "credit" },
18
+ ip_hold: { icon: Globe, i18nKey: "billing.kind.ip_hold", sign: "debit" },
19
+ ip_hold_release: { icon: ArrowUpCircle, i18nKey: "billing.kind.ip_hold_release", sign: "credit" },
20
+ ip_purchase: { icon: Globe, i18nKey: "billing.kind.ip_purchase", sign: "debit" },
21
+ ip_usage: { icon: Globe, i18nKey: "billing.kind.ip_usage", sign: "debit" },
16
22
  adjust: { icon: SlidersHorizontal, i18nKey: "billing.kind.adjust", sign: "debit" }
17
23
  };
18
24
  var FALLBACK = {
@@ -190,7 +196,7 @@ function LedgerSection({ rows, loading, t }) {
190
196
  /* @__PURE__ */ jsx("th", { className: "py-1.5 font-medium", children: t("billing.col.time") })
191
197
  ] }) }),
192
198
  /* @__PURE__ */ jsx("tbody", { children: rows.map((r) => {
193
- const meta = ledgerKindMeta(r.kind);
199
+ const meta = ledgerKindMeta(r.kind, Number(r.amount));
194
200
  const Icon = meta.icon;
195
201
  const credit = meta.sign === "credit";
196
202
  return /* @__PURE__ */ jsxs("tr", { className: "border-b border-border/50", children: [
@@ -212,7 +218,7 @@ function LedgerSection({ rows, loading, t }) {
212
218
  ),
213
219
  children: [
214
220
  credit ? "+" : "-",
215
- String(r.amount)
221
+ String(r.amount).replace(/^[-+]/, "")
216
222
  ]
217
223
  }
218
224
  ),