@aixnn/aixautots 0.6.21 → 0.6.23

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 (54) hide show
  1. package/dist/{automation-queue-GhfQtZLm.d.ts → automation-queue-YOX8NFyZ.d.ts} +2 -2
  2. package/dist/{chunk-6IH74UX6.js → chunk-32WQD4C3.js} +277 -74
  3. package/dist/{chunk-UEZVXYGP.js → chunk-767ADNCO.js} +2 -2
  4. package/dist/{chunk-7RQTSTR6.js → chunk-7GCAXBUH.js} +1 -0
  5. package/dist/{chunk-H7KZUU67.js → chunk-7LZ56DBX.js} +3 -3
  6. package/dist/{chunk-4NRIEM5Z.js → chunk-7WNB7JNK.js} +40 -21
  7. package/dist/{chunk-HQ2L4NQ2.js → chunk-BI4S5BUY.js} +6 -2
  8. package/dist/{chunk-DAU3FVCV.js → chunk-DLYZTJCU.js} +4 -4
  9. package/dist/{chunk-OJK35AQD.js → chunk-EDHEYVB2.js} +7 -1
  10. package/dist/{chunk-ED6CB3B4.js → chunk-GKLW2IKV.js} +1 -1
  11. package/dist/{chunk-3OBCSW2J.js → chunk-OKNU6FSH.js} +1 -1
  12. package/dist/{chunk-RFOJSDYI.js → chunk-QGD7XSH4.js} +3 -3
  13. package/dist/{chunk-JQBSGFAR.js → chunk-UOCHB65G.js} +3 -3
  14. package/dist/{chunk-FJKMRWYC.js → chunk-VDRBMIMZ.js} +6 -6
  15. package/dist/{chunk-DTXXQPOU.js → chunk-VS24JACZ.js} +3 -3
  16. package/dist/{config-C79rcedl.d.ts → config-tG21t9DZ.d.ts} +3 -1
  17. package/dist/core/index.d.ts +10 -10
  18. package/dist/core/index.js +2 -2
  19. package/dist/core/network-adb-node.d.ts +3 -3
  20. package/dist/{device-channel-OiZwAqNQ.d.ts → device-channel-Y8R-ln4w.d.ts} +1 -1
  21. package/dist/{device-normalize-ODrxJb-a.d.ts → device-normalize-D2tlJi1G.d.ts} +1 -1
  22. package/dist/device-session-R4ASLXYI.js +1 -0
  23. package/dist/i18n/index.js +1 -1
  24. package/dist/{mirror-session-DifANocH.d.ts → mirror-session-HYQkxdsw.d.ts} +1 -1
  25. package/dist/react/index.d.ts +9 -9
  26. package/dist/react/index.js +3 -3
  27. package/dist/{script-debugger-DjxpvdaN.d.ts → script-debugger-BMUzNL-B.d.ts} +2 -2
  28. package/dist/{task-agent-runner-CAt-z8gr.d.ts → task-agent-runner-Bp0FmGhZ.d.ts} +3 -3
  29. package/dist/{types-CBI5SIH5.d.ts → types-CibZTzJ1.d.ts} +6 -1
  30. package/dist/ui/billing.d.ts +1 -1
  31. package/dist/ui/billing.js +7 -7
  32. package/dist/ui/device-create.d.ts +1 -1
  33. package/dist/ui/device-create.js +8 -8
  34. package/dist/ui/device-mirror.js +6 -6
  35. package/dist/ui/devices.d.ts +11 -7
  36. package/dist/ui/devices.js +11 -11
  37. package/dist/ui/editor.d.ts +2 -2
  38. package/dist/ui/editor.js +7 -7
  39. package/dist/ui/index.d.ts +24 -7
  40. package/dist/ui/index.js +9 -9
  41. package/dist/ui/inspector.js +5 -5
  42. package/dist/ui/ip-commerce.d.ts +2 -2
  43. package/dist/ui/ip-commerce.js +6 -6
  44. package/dist/ui/market.js +4 -4
  45. package/dist/ui/mirror.d.ts +3 -3
  46. package/dist/ui/primitives/index.js +1 -1
  47. package/dist/ui/script-studio.js +6 -6
  48. package/dist/ui/scripts.d.ts +1 -1
  49. package/dist/ui/scripts.js +5 -5
  50. package/dist/ui/settings.d.ts +8 -3
  51. package/dist/ui/settings.js +8 -8
  52. package/dist/ui/tasks.js +11 -11
  53. package/package.json +1 -1
  54. package/dist/device-session-PVHD6PNR.js +0 -1
@@ -1,5 +1,5 @@
1
- import { b as RunEventKind, A as AixConfig, R as ResolvedConfig } from './config-C79rcedl.js';
2
- import { S as Script } from './types-CBI5SIH5.js';
1
+ import { b as RunEventKind, A as AixConfig, R as ResolvedConfig } from './config-tG21t9DZ.js';
2
+ import { S as Script } from './types-CibZTzJ1.js';
3
3
 
4
4
  interface FlowSubmit {
5
5
  /** Inline flow JSON (XOR scriptId). */
@@ -1,12 +1,12 @@
1
- import { BillingPage, RechargeDrawer } from './chunk-DTXXQPOU.js';
2
- import { IosDeviceDiagnostics } from './chunk-RFOJSDYI.js';
1
+ import { ledgerKindMeta, RechargeDrawer, BillingPage } from './chunk-VS24JACZ.js';
2
+ import { IosDeviceDiagnostics } from './chunk-QGD7XSH4.js';
3
3
  import { iosPhysicalUnavailableReason } from './chunk-ZB5ET67B.js';
4
- import { cn, Button, Input, Drawer, Select } from './chunk-7RQTSTR6.js';
5
- import { useAixT } from './chunk-HQ2L4NQ2.js';
6
- import { useEnvRun, useClient, useOptionalAixConfig, AixResolvedProvider } from './chunk-UEZVXYGP.js';
7
- import { summarizeEnv, envBlocker, detectEnvOs } from './chunk-OJK35AQD.js';
4
+ import { cn, Button, Input, Drawer, Popover, Select } from './chunk-7GCAXBUH.js';
5
+ import { useAixT } from './chunk-BI4S5BUY.js';
6
+ import { useEnvRun, useClient, useOptionalAixConfig, AixResolvedProvider } from './chunk-767ADNCO.js';
7
+ import { summarizeEnv, envBlocker, detectEnvOs } from './chunk-EDHEYVB2.js';
8
8
  import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
9
- import { Info, Loader2, Wallet, Receipt, RefreshCw } from 'lucide-react';
9
+ import { Info, Loader2, Wallet, Receipt, RefreshCw, Trash2 } from 'lucide-react';
10
10
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
11
11
 
12
12
  // src/ui/settings/types.ts
@@ -502,6 +502,53 @@ function supportsRuntimeDataRoot(node) {
502
502
  const capability = node.reported_caps?.runtime_data_root;
503
503
  return capability?.supported === true;
504
504
  }
505
+ function supportsNodeImageDelete(node) {
506
+ const capability = node.reported_caps?.node_image_delete;
507
+ return capability?.supported === true;
508
+ }
509
+ function formatImageVersion(imageTag) {
510
+ const lastColon = imageTag.lastIndexOf(":");
511
+ const lastSlash = imageTag.lastIndexOf("/");
512
+ if (lastColon > lastSlash && lastColon < imageTag.length - 1) {
513
+ return imageTag.slice(lastColon + 1);
514
+ }
515
+ return imageTag;
516
+ }
517
+ function extraImageLabel(tag) {
518
+ const lastColon = tag.lastIndexOf(":");
519
+ const lastSlash = tag.lastIndexOf("/");
520
+ const repo = lastColon > lastSlash ? tag.slice(0, lastColon) : tag;
521
+ const name = repo.slice(lastSlash + 1);
522
+ const match = name.match(/xandroid-([0-9]+(?:\.[0-9]+)*)/i);
523
+ return match ? `Android ${match[1]}` : name || tag;
524
+ }
525
+ function buildAndroidImageItems(images, installed) {
526
+ const seenTags = /* @__PURE__ */ new Set();
527
+ const items = images.map((img) => {
528
+ seenTags.add(img.image_tag);
529
+ return {
530
+ key: img.id,
531
+ label: img.label,
532
+ imageTag: img.image_tag,
533
+ version: formatImageVersion(img.image_tag),
534
+ installed: installed.includes(img.image_tag),
535
+ extra: false
536
+ };
537
+ });
538
+ for (const tag of installed) {
539
+ if (!tag || seenTags.has(tag)) continue;
540
+ seenTags.add(tag);
541
+ items.push({
542
+ key: `extra:${tag}`,
543
+ label: extraImageLabel(tag),
544
+ imageTag: tag,
545
+ version: formatImageVersion(tag),
546
+ installed: true,
547
+ extra: true
548
+ });
549
+ }
550
+ return items;
551
+ }
505
552
  function envOsOf(node) {
506
553
  const os = str(sys(node, "os"));
507
554
  return os === "macos" ? "mac" : os === "windows" ? "win" : null;
@@ -638,23 +685,128 @@ function DataRootConfig({ node }) {
638
685
  message && /* @__PURE__ */ jsx("p", { className: "text-[11px] text-muted-foreground", children: message })
639
686
  ] });
640
687
  }
641
- function AndroidImageRows({ images, installed }) {
642
- return /* @__PURE__ */ jsx("div", { className: "mt-1.5 ml-3.5 space-y-1 border-l border-border/60 pl-3", children: images.map((img) => {
643
- const has = installed.includes(img.image_tag);
644
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
645
- /* @__PURE__ */ jsx("span", { className: `h-1 w-1 shrink-0 rounded-full ${has ? "bg-success" : "bg-muted-foreground/40"}` }),
646
- /* @__PURE__ */ jsx("span", { className: "flex-1 text-[11px] text-muted-foreground", children: img.label }),
647
- /* @__PURE__ */ jsx("span", { className: `text-[10px] ${has ? "text-success" : "text-muted-foreground"}`, children: has ? "\u5DF2\u5B89\u88C5" : "\u672A\u5B89\u88C5" })
648
- ] }, img.id);
688
+ function AndroidImageRow({
689
+ item,
690
+ node,
691
+ canDelete,
692
+ onDelete
693
+ }) {
694
+ const [deleting, setDeleting] = useState(false);
695
+ const [error, setError] = useState(null);
696
+ const interactive = item.installed && node.is_owner;
697
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
698
+ /* @__PURE__ */ jsx("span", { className: `h-1 w-1 shrink-0 rounded-full ${item.installed ? "bg-success" : "bg-muted-foreground/40"}` }),
699
+ /* @__PURE__ */ jsx("span", { className: "flex-1 min-w-0 truncate text-[11px] text-muted-foreground", children: item.label }),
700
+ interactive ? /* @__PURE__ */ jsx(
701
+ Popover,
702
+ {
703
+ align: "end",
704
+ className: "w-72",
705
+ trigger: ({ open, toggle }) => /* @__PURE__ */ jsxs(
706
+ "button",
707
+ {
708
+ type: "button",
709
+ onClick: () => {
710
+ if (!open) setError(null);
711
+ toggle();
712
+ },
713
+ title: item.imageTag,
714
+ "aria-expanded": open,
715
+ "aria-label": `\u64CD\u4F5C\u955C\u50CF ${item.label} ${item.version}`,
716
+ className: "inline-flex items-center gap-1 rounded border border-border/80 bg-secondary/60 px-1.5 py-0.5 font-mono text-[10px] text-foreground transition-colors hover:border-destructive/50 hover:bg-destructive/10 hover:text-destructive",
717
+ children: [
718
+ /* @__PURE__ */ jsx("span", { className: "max-w-[180px] truncate", children: item.version }),
719
+ /* @__PURE__ */ jsx(Trash2, { className: "h-2.5 w-2.5 shrink-0 opacity-70" })
720
+ ]
721
+ }
722
+ ),
723
+ children: (close) => /* @__PURE__ */ jsxs("div", { className: "space-y-2 text-xs", children: [
724
+ /* @__PURE__ */ jsx("div", { className: "font-medium text-foreground", children: "\u5220\u9664\u955C\u50CF" }),
725
+ /* @__PURE__ */ jsxs("p", { className: "text-[11px] leading-relaxed text-muted-foreground", children: [
726
+ "\u786E\u8BA4\u4ECE\u5F53\u524D\u8282\u70B9\u5220\u9664\u955C\u50CF",
727
+ " ",
728
+ /* @__PURE__ */ jsx("code", { className: "rounded bg-secondary px-1 py-0.5 font-mono text-[10px] text-foreground break-all", children: item.imageTag }),
729
+ "\uFF1F"
730
+ ] }),
731
+ canDelete ? /* @__PURE__ */ jsx("p", { className: "text-[11px] text-muted-foreground", children: "\u5220\u9664\u540E\u5C06\u4ECE\u8282\u70B9\u672C\u5730\u5BB9\u5668\u5B58\u50A8\u79FB\u9664\u8BE5\u955C\u50CF\u4EE5\u91CA\u653E\u7A7A\u95F4\uFF1B\u82E5\u6709\u5BB9\u5668\u6B63\u5728\u4F7F\u7528\u8BE5\u955C\u50CF\uFF0C\u5220\u9664\u4F1A\u88AB\u62D2\u7EDD\u3002" }) : node.status !== "online" ? /* @__PURE__ */ jsx("p", { className: "text-[11px] text-warning", children: "\u8282\u70B9\u5F53\u524D\u79BB\u7EBF\uFF0C\u65E0\u6CD5\u5220\u9664\u955C\u50CF\u3002" }) : /* @__PURE__ */ jsx("p", { className: "text-[11px] text-warning", children: "\u5F53\u524D\u8282\u70B9 SDK \u6682\u4E0D\u652F\u6301\u8FDC\u7A0B\u5220\u9664\u955C\u50CF\uFF0C\u8BF7\u5347\u7EA7\u8282\u70B9 SDK \u540E\u91CD\u8BD5\u3002" }),
732
+ error && /* @__PURE__ */ jsx("p", { role: "alert", className: "break-words text-[11px] text-destructive", children: error }),
733
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2 pt-1", children: [
734
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", disabled: deleting, onClick: close, children: "\u53D6\u6D88" }),
735
+ /* @__PURE__ */ jsxs(
736
+ Button,
737
+ {
738
+ size: "sm",
739
+ variant: "ghost",
740
+ disabled: !canDelete || deleting,
741
+ className: "text-destructive hover:bg-destructive/10 hover:text-destructive",
742
+ onClick: () => {
743
+ void (async () => {
744
+ setDeleting(true);
745
+ setError(null);
746
+ try {
747
+ await onDelete(item.imageTag);
748
+ close();
749
+ } catch (e) {
750
+ setError(e instanceof Error ? e.message : String(e));
751
+ } finally {
752
+ setDeleting(false);
753
+ }
754
+ })();
755
+ },
756
+ children: [
757
+ deleting && /* @__PURE__ */ jsx(Loader2, { className: "h-3 w-3 animate-spin" }),
758
+ deleting ? "\u5220\u9664\u4E2D\u2026" : "\u5220\u9664\u955C\u50CF"
759
+ ]
760
+ }
761
+ )
762
+ ] })
763
+ ] })
764
+ }
765
+ ) : /* @__PURE__ */ jsx(
766
+ "span",
767
+ {
768
+ title: item.imageTag,
769
+ className: "max-w-[180px] truncate rounded bg-secondary/40 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",
770
+ children: item.version
771
+ }
772
+ ),
773
+ /* @__PURE__ */ jsx("span", { className: `w-10 text-right text-[10px] ${item.installed ? "text-success" : "text-muted-foreground"}`, children: item.installed ? "\u5DF2\u5B89\u88C5" : "\u672A\u5B89\u88C5" })
774
+ ] });
775
+ }
776
+ function AndroidImageRows({
777
+ items,
778
+ node,
779
+ canDelete,
780
+ onDelete
781
+ }) {
782
+ const seen = /* @__PURE__ */ new Map();
783
+ return /* @__PURE__ */ jsx("div", { className: "mt-1.5 ml-3.5 space-y-1 border-l border-border/60 pl-3", children: items.map((item) => {
784
+ const count = seen.get(item.imageTag) ?? 0;
785
+ seen.set(item.imageTag, count + 1);
786
+ const stableKey = count === 0 ? item.imageTag : `${item.imageTag}#${count}`;
787
+ return /* @__PURE__ */ jsx(AndroidImageRow, { item, node, canDelete, onDelete }, stableKey);
649
788
  }) });
650
789
  }
651
- function NodeCapabilityPanel({ node: reportedNode, isTauri, onInstallWsl, localEnvOs, beforeSetup }) {
790
+ function NodeCapabilityPanel({
791
+ node: reportedNode,
792
+ isTauri,
793
+ onInstallWsl,
794
+ localEnvOs,
795
+ beforeSetup,
796
+ onNodeUpdated,
797
+ onDeleteImage
798
+ }) {
652
799
  const client = useClient();
653
800
  const localOs = localEnvOs ?? (client.localNode?.nodeId === reportedNode.id ? client.localNode.envOs ?? detectEnvOs() : null);
654
801
  const node = withLocalEnvOs(reportedNode, localOs);
655
802
  const [init, setInit] = useState(null);
656
803
  const initOs = sys(node, "os") === "linux" ? "linux" : envOsOf(node);
657
804
  const [androidImages, setAndroidImages] = useState([]);
805
+ const [installedOverride, setInstalledOverride] = useState(null);
806
+ const reportedInstalledKey = installedTags(reportedNode).join("\n");
807
+ useEffect(() => {
808
+ setInstalledOverride(null);
809
+ }, [reportedNode.id, reportedInstalledKey]);
658
810
  useEffect(() => {
659
811
  let cancelled = false;
660
812
  client.images.options("android").then((imgs) => {
@@ -665,7 +817,15 @@ function NodeCapabilityPanel({ node: reportedNode, isTauri, onInstallWsl, localE
665
817
  cancelled = true;
666
818
  };
667
819
  }, [client]);
668
- const installed = installedTags(node);
820
+ const installed = installedOverride ?? installedTags(node);
821
+ const androidImageItems = buildAndroidImageItems(androidImages, installed);
822
+ const canDeleteImage = Boolean(onDeleteImage) || node.status === "online" && supportsNodeImageDelete(node);
823
+ const handleDeleteImage = async (imageTag) => {
824
+ const res = onDeleteImage ? await onDeleteImage(imageTag) : await client.nodes.deleteImage(node.id, imageTag);
825
+ const nextInstalled = Array.isArray(res) ? res : res && Array.isArray(res.installed_images) ? res.installed_images : installed.filter((t) => t !== imageTag);
826
+ setInstalledOverride(nextInstalled);
827
+ await onNodeUpdated?.();
828
+ };
669
829
  const usbDiagnostic = node.reported_caps?.ios_usb_diagnostic;
670
830
  return /* @__PURE__ */ jsxs("section", { children: [
671
831
  /* @__PURE__ */ jsx("h3", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2", children: "\u865A\u62DF\u673A\u4E0E\u8BBE\u5907\u80FD\u529B" }),
@@ -686,7 +846,15 @@ function NodeCapabilityPanel({ node: reportedNode, isTauri, onInstallWsl, localE
686
846
  onDownload: () => setInit(vm)
687
847
  }
688
848
  ),
689
- vm.key === "android" && vm.state !== "unavailable" && androidImages.length > 0 && /* @__PURE__ */ jsx(AndroidImageRows, { images: androidImages, installed })
849
+ vm.key === "android" && vm.state !== "unavailable" && androidImageItems.length > 0 && /* @__PURE__ */ jsx(
850
+ AndroidImageRows,
851
+ {
852
+ items: androidImageItems,
853
+ node,
854
+ canDelete: canDeleteImage,
855
+ onDelete: handleDeleteImage
856
+ }
857
+ )
690
858
  ] }, vm.key))
691
859
  ] }),
692
860
  node.is_owner && node.status === "online" && node.reported_caps?.ios_control?.diagnostics === true && /* @__PURE__ */ jsx(IosDeviceDiagnostics, { nodeId: node.id }, node.id),
@@ -907,10 +1075,11 @@ function DesktopNodeDetailsView({
907
1075
  };
908
1076
  const node = nodes.data?.find((n) => boundNodeId ? n.id === boundNodeId : Boolean(nodeName) && n.name === nodeName) ?? null;
909
1077
  const renderPanel = (target) => {
1078
+ const onNodeUpdated = () => void nodes.refetch();
910
1079
  if (renderNodeCapability) {
911
- return renderNodeCapability({ node: target, isTauri: true, beforeSetup: prepareSetup });
1080
+ return renderNodeCapability({ node: target, isTauri: true, beforeSetup: prepareSetup, onNodeUpdated });
912
1081
  }
913
- const inner = /* @__PURE__ */ jsx(NodeCapabilityPanel, { node: target, isTauri: true, beforeSetup: prepareSetup });
1082
+ const inner = /* @__PURE__ */ jsx(NodeCapabilityPanel, { node: target, isTauri: true, beforeSetup: prepareSetup, onNodeUpdated });
914
1083
  if (!optionalConfig && "cfg" in client && client.cfg) {
915
1084
  return /* @__PURE__ */ jsx(AixResolvedProvider, { config: client.cfg, children: inner });
916
1085
  }
@@ -1008,10 +1177,11 @@ function WebNodeDetailsView({
1008
1177
  }, [client, sessionKey, authenticated]);
1009
1178
  const selected = nodes?.find((n) => n.id === selectedId) ?? nodes?.[0] ?? null;
1010
1179
  const renderPanel = (target) => {
1180
+ const onNodeUpdated = () => void load();
1011
1181
  if (renderNodeCapability) {
1012
- return renderNodeCapability({ node: target, isTauri: false });
1182
+ return renderNodeCapability({ node: target, isTauri: false, onNodeUpdated });
1013
1183
  }
1014
- const inner = /* @__PURE__ */ jsx(NodeCapabilityPanel, { node: target, isTauri: false });
1184
+ const inner = /* @__PURE__ */ jsx(NodeCapabilityPanel, { node: target, isTauri: false, onNodeUpdated });
1015
1185
  if (!optionalConfig && "cfg" in client && client.cfg) {
1016
1186
  return /* @__PURE__ */ jsx(AixResolvedProvider, { config: client.cfg, children: inner });
1017
1187
  }
@@ -1453,7 +1623,7 @@ function SdkWalletSectionView({
1453
1623
  const [wallet, setWallet] = useState({ status: "loading" });
1454
1624
  const [busy, setBusy] = useState(false);
1455
1625
  const [rechargeOpen, setRechargeOpen] = useState(false);
1456
- const [billingOpen, setBillingOpen] = useState(false);
1626
+ const [ledgerOpen, setLedgerOpen] = useState(false);
1457
1627
  const seqRef = useRef(0);
1458
1628
  const loadBalance = useCallback(async () => {
1459
1629
  if (!authenticated || blockedMessage) return;
@@ -1478,7 +1648,7 @@ function SdkWalletSectionView({
1478
1648
  seqRef.current += 1;
1479
1649
  setWallet({ status: "loading" });
1480
1650
  setRechargeOpen(false);
1481
- setBillingOpen(false);
1651
+ setLedgerOpen(false);
1482
1652
  if (!authenticated || blockedMessage) {
1483
1653
  setBusy(false);
1484
1654
  return;
@@ -1518,15 +1688,15 @@ function SdkWalletSectionView({
1518
1688
  ]
1519
1689
  }
1520
1690
  ),
1521
- hasContextOrCfg && /* @__PURE__ */ jsxs(
1691
+ /* @__PURE__ */ jsxs(
1522
1692
  "button",
1523
1693
  {
1524
1694
  type: "button",
1525
- onClick: () => setBillingOpen(true),
1695
+ onClick: () => setLedgerOpen(true),
1526
1696
  className: "inline-flex items-center gap-1 rounded border border-border px-2.5 py-1 text-xs text-foreground hover:bg-secondary",
1527
1697
  children: [
1528
1698
  /* @__PURE__ */ jsx(Receipt, { className: "h-3.5 w-3.5" }),
1529
- t("sdkSettings.viewBilling")
1699
+ t("sdkSettings.viewLedger")
1530
1700
  ]
1531
1701
  }
1532
1702
  ),
@@ -1547,24 +1717,10 @@ function SdkWalletSectionView({
1547
1717
  ] }),
1548
1718
  blockedMessage ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: blockedMessage }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1549
1719
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: t("sdkSettings.walletDesc") }),
1550
- /* @__PURE__ */ jsxs("div", { "aria-live": "polite", "aria-busy": busy, className: "space-y-2 rounded-lg border border-border bg-card px-5 py-3", children: [
1551
- /* @__PURE__ */ jsxs("p", { children: [
1552
- t("sdkSettings.walletBalance"),
1553
- /* @__PURE__ */ jsx("span", { className: "font-mono font-medium", children: wallet.status === "error" ? t("sdkSettings.walletUnavailable") : wallet.status === "loading" ? t("sdkSettings.walletLoading") : `${wallet.data.balance} ${wallet.data.currency}` })
1554
- ] }),
1555
- wallet.status === "ready" && /* @__PURE__ */ jsxs("details", { children: [
1556
- /* @__PURE__ */ jsx("summary", { className: "cursor-pointer text-muted-foreground hover:text-foreground", children: t("sdkSettings.recentActivity") }),
1557
- wallet.data.recent.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "mt-2 space-y-1", children: wallet.data.recent.map((row) => /* @__PURE__ */ jsxs("li", { className: "font-mono text-[11px] text-muted-foreground", children: [
1558
- row.created_at.slice(0, 10),
1559
- " \xB7 ",
1560
- row.kind,
1561
- " \xB7 ",
1562
- String(row.amount),
1563
- " ",
1564
- row.currency
1565
- ] }, row.id)) }) : /* @__PURE__ */ jsx("p", { className: "mt-2 text-muted-foreground", children: t("sdkSettings.noActivity") })
1566
- ] })
1567
- ] })
1720
+ /* @__PURE__ */ jsx("div", { "aria-live": "polite", "aria-busy": busy, className: "space-y-2 rounded-lg border border-border bg-card px-5 py-3", children: /* @__PURE__ */ jsxs("p", { children: [
1721
+ t("sdkSettings.walletBalance"),
1722
+ /* @__PURE__ */ jsx("span", { className: "font-mono font-medium", children: wallet.status === "error" ? t("sdkSettings.walletUnavailable") : wallet.status === "loading" ? t("sdkSettings.walletLoading") : `${wallet.data.balance} ${wallet.data.currency}` })
1723
+ ] }) })
1568
1724
  ] }),
1569
1725
  !onOpenRecharge && rechargeOpen && hasContextOrCfg && wrapWithProvider(
1570
1726
  /* @__PURE__ */ jsx(
@@ -1583,15 +1739,15 @@ function SdkWalletSectionView({
1583
1739
  }
1584
1740
  )
1585
1741
  ),
1586
- billingOpen && hasContextOrCfg && wrapWithProvider(
1587
- /* @__PURE__ */ jsx(
1588
- Drawer,
1589
- {
1590
- open: billingOpen,
1591
- onClose: () => setBillingOpen(false),
1592
- title: t("billing.title"),
1593
- widthClass: "max-w-3xl",
1594
- children: /* @__PURE__ */ jsx(
1742
+ ledgerOpen && /* @__PURE__ */ jsx(
1743
+ Drawer,
1744
+ {
1745
+ open: ledgerOpen,
1746
+ onClose: () => setLedgerOpen(false),
1747
+ title: t("sdkSettings.ledgerDrawerTitle"),
1748
+ widthClass: "max-w-3xl",
1749
+ children: hasContextOrCfg ? wrapWithProvider(
1750
+ /* @__PURE__ */ jsx(
1595
1751
  BillingPage,
1596
1752
  {
1597
1753
  channel,
@@ -1604,8 +1760,48 @@ function SdkWalletSectionView({
1604
1760
  }
1605
1761
  }
1606
1762
  )
1607
- }
1608
- )
1763
+ ) : wallet.status === "loading" ? /* @__PURE__ */ jsx("p", { className: "py-6 text-center text-xs text-muted-foreground", children: t("sdkSettings.walletLoading") }) : wallet.status === "error" ? /* @__PURE__ */ jsx("p", { className: "py-6 text-center text-xs text-destructive", children: t("sdkSettings.walletUnavailable") }) : wallet.data.recent.length === 0 ? /* @__PURE__ */ jsx("p", { className: "py-6 text-center text-xs text-muted-foreground", children: t("sdkSettings.noActivity") }) : /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs("table", { className: "w-full text-xs", children: [
1764
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { className: "border-b border-border text-left text-muted-foreground", children: [
1765
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 font-medium", children: t("billing.col.kind") }),
1766
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 text-right font-medium", children: t("billing.col.amount") }),
1767
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 text-right font-medium", children: t("billing.col.balanceAfter") }),
1768
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 font-medium", children: t("billing.col.ref") }),
1769
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 font-medium", children: t("billing.col.time") })
1770
+ ] }) }),
1771
+ /* @__PURE__ */ jsx("tbody", { children: wallet.data.recent.map((row) => {
1772
+ const meta = ledgerKindMeta(row.kind, Number(row.amount));
1773
+ const Icon = meta.icon;
1774
+ const credit = meta.sign === "credit";
1775
+ return /* @__PURE__ */ jsxs("tr", { className: "border-b border-border/50", children: [
1776
+ /* @__PURE__ */ jsx("td", { className: "py-1.5 pr-2", children: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-foreground", children: [
1777
+ /* @__PURE__ */ jsx(
1778
+ Icon,
1779
+ {
1780
+ className: cn("h-3.5 w-3.5", credit ? "text-green-500" : "text-muted-foreground")
1781
+ }
1782
+ ),
1783
+ t(meta.i18nKey)
1784
+ ] }) }),
1785
+ /* @__PURE__ */ jsxs(
1786
+ "td",
1787
+ {
1788
+ className: cn(
1789
+ "py-1.5 pr-2 text-right font-mono",
1790
+ credit ? "text-green-500" : "text-destructive"
1791
+ ),
1792
+ children: [
1793
+ credit ? "+" : "-",
1794
+ String(row.amount).replace(/^[-+]/, "")
1795
+ ]
1796
+ }
1797
+ ),
1798
+ /* @__PURE__ */ jsx("td", { className: "py-1.5 pr-2 text-right font-mono text-muted-foreground", children: String(row.balance_after) }),
1799
+ /* @__PURE__ */ jsx("td", { className: "max-w-[12rem] truncate py-1.5 pr-2 text-muted-foreground", title: row.ref, children: row.ref }),
1800
+ /* @__PURE__ */ jsx("td", { className: "py-1.5 text-muted-foreground", children: new Date(row.created_at).toLocaleString() })
1801
+ ] }, row.id);
1802
+ }) })
1803
+ ] }) })
1804
+ }
1609
1805
  )
1610
1806
  ] });
1611
1807
  }
@@ -1636,6 +1832,8 @@ function SdkSettingsPage({
1636
1832
  sections,
1637
1833
  beforeSections,
1638
1834
  afterSections,
1835
+ beforeWallet,
1836
+ afterWallet,
1639
1837
  wrapGatewaySections,
1640
1838
  renderNodeCapability,
1641
1839
  className
@@ -1645,27 +1843,32 @@ function SdkSettingsPage({
1645
1843
  const showLocalNode = sections?.localNode ?? Boolean(localRuntime);
1646
1844
  const showWallet = sections?.wallet ?? true;
1647
1845
  const showNodeDetails = sections?.nodeDetails ?? true;
1846
+ const hasBillingGroup = Boolean(beforeWallet || showWallet || afterWallet);
1648
1847
  const renderGatewaySections = (bridge) => {
1649
1848
  const resolvedClient = bridge?.client ?? client;
1650
1849
  const resolvedRenderer = bridge?.renderNodeCapability ?? renderNodeCapability;
1651
- if (!showWallet && !showNodeDetails) return null;
1850
+ if (!hasBillingGroup && !showNodeDetails) return null;
1652
1851
  const content = /* @__PURE__ */ jsxs("div", { className: "space-y-10", children: [
1653
- showWallet && /* @__PURE__ */ jsx(
1654
- SdkWalletSection,
1655
- {
1656
- client: resolvedClient,
1657
- sessionKey: session?.id,
1658
- authenticated: session?.authenticated !== false,
1659
- blockedMessage: walletBlockedMessage,
1660
- channel,
1661
- returnUrl,
1662
- cancelUrl,
1663
- openExternalUrl,
1664
- onOpenRecharge,
1665
- onTopupCompleted,
1666
- subscribeBillingUpdated
1667
- }
1668
- ),
1852
+ hasBillingGroup && /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
1853
+ beforeWallet,
1854
+ showWallet && /* @__PURE__ */ jsx(
1855
+ SdkWalletSection,
1856
+ {
1857
+ client: resolvedClient,
1858
+ sessionKey: session?.id,
1859
+ authenticated: session?.authenticated !== false,
1860
+ blockedMessage: walletBlockedMessage,
1861
+ channel,
1862
+ returnUrl,
1863
+ cancelUrl,
1864
+ openExternalUrl,
1865
+ onOpenRecharge,
1866
+ onTopupCompleted,
1867
+ subscribeBillingUpdated
1868
+ }
1869
+ ),
1870
+ afterWallet
1871
+ ] }),
1669
1872
  showNodeDetails && /* @__PURE__ */ jsx(
1670
1873
  SdkNodeDetailsSection,
1671
1874
  {
@@ -1690,4 +1893,4 @@ function SdkSettingsPage({
1690
1893
  ] });
1691
1894
  }
1692
1895
 
1693
- export { EnvInitDialog, NodeCapabilityPanel, SdkLocalNodeSection, SdkNodeDetailsSection, SdkSettingsPage, SdkVersionSection, SdkWalletSection, parseSdkUpdate, sdkVersion, verifySdkCompletion, vmPlan };
1896
+ export { EnvInitDialog, NodeCapabilityPanel, SdkLocalNodeSection, SdkNodeDetailsSection, SdkSettingsPage, SdkVersionSection, SdkWalletSection, buildAndroidImageItems, formatImageVersion, parseSdkUpdate, sdkVersion, supportsNodeImageDelete, verifySdkCompletion, vmPlan };
@@ -1,5 +1,5 @@
1
- import { DeviceChannel, ScriptDebugger, FlowRun, MirrorSession, normalizeDevices, submitBatch } from './chunk-ED6CB3B4.js';
2
- import { resolveConfig, AixClient, isFleetRunTerminal, joinUrl, AixAuthError, AixError, EnvRun, detectEnvOs, summarizeEnv, ReconnectingSocket, executionWsTicketUrl } from './chunk-OJK35AQD.js';
1
+ import { DeviceChannel, ScriptDebugger, FlowRun, MirrorSession, normalizeDevices, submitBatch } from './chunk-GKLW2IKV.js';
2
+ import { resolveConfig, AixClient, isFleetRunTerminal, joinUrl, AixAuthError, AixError, EnvRun, detectEnvOs, summarizeEnv, ReconnectingSocket, executionWsTicketUrl } from './chunk-EDHEYVB2.js';
3
3
  import React, { createContext, useContext, useState, useRef, useEffect, useCallback, useMemo, createElement } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -62,6 +62,7 @@ function Drawer({ open, onClose, title, children, widthClass = "max-w-lg" }) {
62
62
  open ? "translate-x-0" : "translate-x-full"
63
63
  ),
64
64
  role: "dialog",
65
+ "aria-label": typeof title === "string" ? title : void 0,
65
66
  children: [
66
67
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-4 py-3 shrink-0", children: [
67
68
  /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: title }),
@@ -1,8 +1,8 @@
1
1
  import { ControlBar, MirrorView } from './chunk-MBBVYSPD.js';
2
2
  import { canConnectPhysicalDevice } from './chunk-ZB5ET67B.js';
3
- import { Dialog, Select, Button, useToast, ToastViewport, Popover } from './chunk-7RQTSTR6.js';
4
- import { useAixT } from './chunk-HQ2L4NQ2.js';
5
- import { useClient, useDevices, useMirror, createAgentTaskRunner, useTaskAgentRun } from './chunk-UEZVXYGP.js';
3
+ import { Dialog, Select, Button, useToast, ToastViewport, Popover } from './chunk-7GCAXBUH.js';
4
+ import { useAixT } from './chunk-BI4S5BUY.js';
5
+ import { useClient, useDevices, useMirror, createAgentTaskRunner, useTaskAgentRun } from './chunk-767ADNCO.js';
6
6
  import { useState, useRef, useEffect, useId, useCallback, useMemo } from 'react';
7
7
  import { ClipboardPaste, Wrench, Check, Settings2, VolumeX, Volume2, RotateCw, X, PanelsTopLeft, Minimize2, Maximize2, Rocket, Loader2, Square, Video, Download } from 'lucide-react';
8
8
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1,15 +1,15 @@
1
- import { LogConsole } from './chunk-3OBCSW2J.js';
2
- import { requestPreviewFrame, MirrorSurface, DeviceMirror, ConnectDevicesDialog } from './chunk-H7KZUU67.js';
1
+ import { LogConsole } from './chunk-OKNU6FSH.js';
2
+ import { requestPreviewFrame, MirrorSurface, DeviceMirror, ConnectDevicesDialog } from './chunk-7LZ56DBX.js';
3
3
  import { ControlBar, MirrorView } from './chunk-MBBVYSPD.js';
4
- import { deviceProxyCapabilities, createProxyProbeGuard, proxySummaryFromDevice, isProxyApplyStatus, safeCustomProxyAddress, usesAndroidSystemProxy, normalizeManualProxyUrl, proxyCapabilityReason, proxyProbeExitIp, proxyProbeMessage, DeviceCreate, isProxyProbeUnsupported, customProxyAddress, isRedactedProxyUrl, isSupportedProxyUrl } from './chunk-FJKMRWYC.js';
5
- import { IpCommercePanel } from './chunk-JQBSGFAR.js';
6
- import { IosDeviceDiagnostics } from './chunk-RFOJSDYI.js';
4
+ import { deviceProxyCapabilities, createProxyProbeGuard, proxySummaryFromDevice, isProxyApplyStatus, safeCustomProxyAddress, usesAndroidSystemProxy, normalizeManualProxyUrl, proxyCapabilityReason, proxyProbeExitIp, proxyProbeMessage, DeviceCreate, isProxyProbeUnsupported, customProxyAddress, isRedactedProxyUrl, isSupportedProxyUrl } from './chunk-VDRBMIMZ.js';
5
+ import { IpCommercePanel } from './chunk-UOCHB65G.js';
6
+ import { IosDeviceDiagnostics } from './chunk-QGD7XSH4.js';
7
7
  import { isPhysicalIos } from './chunk-ZB5ET67B.js';
8
- import { cn, Badge, Button, Dialog, Input, Popover, Select, useToast, ToastViewport, Drawer } from './chunk-7RQTSTR6.js';
9
- import { useAixT } from './chunk-HQ2L4NQ2.js';
10
- import { useClient, useDevicesView, useShortcutsView, useAixConfig, GROUP_MIRROR_MAX, useGroupMirror, useScripts, useFleetRun, useTaskAgentRun, preflightTaskAgentDevice, createAgentTaskRunner, useNodesView } from './chunk-UEZVXYGP.js';
11
- import { DeviceChannel } from './chunk-ED6CB3B4.js';
12
- import { DeviceSession, isQueuedPowerReceipt, pushFile, pullFile, AixError } from './chunk-OJK35AQD.js';
8
+ import { cn, Badge, Button, Dialog, Input, Popover, Select, useToast, ToastViewport, Drawer } from './chunk-7GCAXBUH.js';
9
+ import { useAixT } from './chunk-BI4S5BUY.js';
10
+ import { useClient, useDevicesView, useShortcutsView, useAixConfig, GROUP_MIRROR_MAX, useGroupMirror, useScripts, useFleetRun, useTaskAgentRun, preflightTaskAgentDevice, createAgentTaskRunner, useNodesView } from './chunk-767ADNCO.js';
11
+ import { DeviceChannel } from './chunk-GKLW2IKV.js';
12
+ import { DeviceSession, isQueuedPowerReceipt, pushFile, pullFile, AixError } from './chunk-EDHEYVB2.js';
13
13
  import { useState, useRef, useCallback, useEffect, useMemo, useLayoutEffect } from 'react';
14
14
  import * as Icons from 'lucide-react';
15
15
  import { Monitor, Eye, Play, Power, RefreshCw, Server, Pencil, Trash2, FolderPlus, Upload, ArrowUp, Folder, File, Download, Dices, ShieldCheck, AlertTriangle, X, Crown, RotateCcw, Square, Plus, Search, LayoutGrid, List, ChevronLeft, Link, Link2Off, Terminal as Terminal$1, PackagePlus, MonitorPlay, ChevronRight, ChevronDown, PlusSquare, Maximize2, Info, ChevronsLeft, ChevronsRight, Check, Copy, Tablet, Smartphone } from 'lucide-react';
@@ -5294,7 +5294,12 @@ function DeviceEditDialog({ device, onClose }) {
5294
5294
  }
5295
5295
  );
5296
5296
  }
5297
- function DevicesPage({ taskAgentRunner: providedTaskAgentRunner } = {}) {
5297
+ function DevicesPage({
5298
+ renderHeaderActions,
5299
+ headerLeft,
5300
+ headerExtraActions,
5301
+ taskAgentRunner: providedTaskAgentRunner
5302
+ } = {}) {
5298
5303
  const t = useAixT();
5299
5304
  const client = useClient();
5300
5305
  const taskAgentRunner = useMemo(
@@ -5490,17 +5495,31 @@ function DevicesPage({ taskAgentRunner: providedTaskAgentRunner } = {}) {
5490
5495
  setBulkPowering(false);
5491
5496
  }
5492
5497
  };
5493
- return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col", children: [
5494
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2 border-b border-border px-3 py-2 sm:px-6", children: [
5495
- /* @__PURE__ */ jsxs(Button, { variant: "secondary", size: "sm", onClick: () => fetchDevices(), disabled: loading, children: [
5496
- /* @__PURE__ */ jsx(RefreshCw, { className: `w-3.5 h-3.5 ${loading ? "animate-spin" : ""}` }),
5497
- t("common.refresh")
5498
- ] }),
5499
- /* @__PURE__ */ jsxs(Button, { variant: "primary", size: "sm", onClick: () => setShowWizard(true), children: [
5500
- /* @__PURE__ */ jsx(Plus, { className: "w-3.5 h-3.5" }),
5501
- t("devices.addDevice")
5502
- ] })
5498
+ const headerActions = /* @__PURE__ */ jsxs(Fragment, { children: [
5499
+ headerExtraActions,
5500
+ /* @__PURE__ */ jsxs(Button, { variant: "secondary", size: "sm", onClick: () => fetchDevices(), disabled: loading, children: [
5501
+ /* @__PURE__ */ jsx(RefreshCw, { className: `w-3.5 h-3.5 ${loading ? "animate-spin" : ""}` }),
5502
+ t("common.refresh")
5503
5503
  ] }),
5504
+ /* @__PURE__ */ jsxs(Button, { variant: "primary", size: "sm", onClick: () => setShowWizard(true), children: [
5505
+ /* @__PURE__ */ jsx(Plus, { className: "w-3.5 h-3.5" }),
5506
+ t("devices.addDevice")
5507
+ ] })
5508
+ ] });
5509
+ return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col", children: [
5510
+ renderHeaderActions ? renderHeaderActions(headerActions) : /* @__PURE__ */ jsxs(
5511
+ "div",
5512
+ {
5513
+ className: cn(
5514
+ "flex flex-wrap items-center gap-x-3 gap-y-2 border-b border-border px-3 py-2 sm:px-6",
5515
+ headerLeft ? "justify-between" : "justify-end"
5516
+ ),
5517
+ children: [
5518
+ headerLeft && /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1 text-xs text-muted-foreground", children: headerLeft }),
5519
+ /* @__PURE__ */ jsx("div", { className: "flex shrink-0 flex-wrap items-center gap-2", children: headerActions })
5520
+ ]
5521
+ }
5522
+ ),
5504
5523
  /* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-auto p-3 sm:p-6", children: [
5505
5524
  /* @__PURE__ */ jsxs("div", { className: "mb-3 flex flex-wrap items-center justify-between gap-3 border-b border-border pb-3", children: [
5506
5525
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-wrap items-center gap-2", children: [
@@ -448,7 +448,7 @@ var en = {
448
448
  "drawer.noResults": "No results",
449
449
  "drawer.chooseFile": "Choose file\u2026",
450
450
  "drawer.proxy": "Proxy",
451
- "drawer.proxyDesc": "HTTP proxy, e.g. http://proxy.example.com:7890; username and password are optional. Only on supported Windows/WSL nodes, 127.0.0.1 maps to the host WSL gateway: the proxy must be reachable via that gateway, not bound to loopback only.",
451
+ "drawer.proxyDesc": "HTTP proxy, e.g. http://proxy.example.com:7890; username and password are optional. Local Windows/WSL and macOS nodes also support LAN proxy IPs (e.g. 192.168.x.x:7890); on Windows/WSL, 127.0.0.1 maps to the host WSL gateway (the proxy must accept connections beyond loopback).",
452
452
  "drawer.proxyPlaceholder": "http://[user:password@]host:8080",
453
453
  "drawer.proxyClear": "Clear proxy",
454
454
  "drawer.proxySaved": "Proxy saved; apply status updated below",
@@ -1064,6 +1064,8 @@ var en = {
1064
1064
  "sdkSettings.walletUnavailable": "Unavailable. Please retry.",
1065
1065
  "sdkSettings.topUp": "Top up",
1066
1066
  "sdkSettings.viewBilling": "Billing",
1067
+ "sdkSettings.viewLedger": "Activity & ledger",
1068
+ "sdkSettings.ledgerDrawerTitle": "aixautosdk Billing & Ledger",
1067
1069
  "sdkSettings.recentActivity": "Recent wallet activity",
1068
1070
  "sdkSettings.noActivity": "No wallet activity."
1069
1071
  };
@@ -1511,7 +1513,7 @@ var zh = {
1511
1513
  "drawer.noResults": "\u65E0\u7ED3\u679C",
1512
1514
  "drawer.chooseFile": "\u9009\u62E9\u6587\u4EF6\u2026",
1513
1515
  "drawer.proxy": "\u4EE3\u7406 Proxy",
1514
- "drawer.proxyDesc": "HTTP \u4EE3\u7406\uFF0C\u5982 http://proxy.example.com:7890\uFF1B\u7528\u6237\u540D\u548C\u5BC6\u7801\u53EF\u9009\u3002\u4EC5\u5728\u652F\u6301\u7684 Windows/WSL \u8282\u70B9\uFF0C127.0.0.1 \u624D\u6620\u5C04\u5230\u5BBF\u4E3B\u673A WSL \u7F51\u5173\uFF1B\u4EE3\u7406\u987B\u80FD\u4ECE\u8BE5\u7F51\u5173\u8BBF\u95EE\uFF0C\u4E0D\u80FD\u53EA\u7ED1\u5B9A\u56DE\u73AF\u5730\u5740\u3002",
1516
+ "drawer.proxyDesc": "HTTP \u4EE3\u7406\uFF0C\u5982 http://proxy.example.com:7890\uFF1B\u7528\u6237\u540D\u548C\u5BC6\u7801\u53EF\u9009\u3002Windows/WSL \u53CA macOS \u672C\u5730\u8282\u70B9\u652F\u6301\u5C40\u57DF\u7F51\u4EE3\u7406 IP\uFF08\u5982 192.168.x.x:7890\uFF09\uFF1BWindows/WSL \u4E0A 127.0.0.1 \u4F1A\u6620\u5C04\u5230\u5BBF\u4E3B\u673A WSL \u7F51\u5173\uFF08\u4EE3\u7406\u4E0D\u80FD\u53EA\u7ED1\u5B9A\u56DE\u73AF\u5730\u5740\uFF09\u3002",
1515
1517
  "drawer.proxyPlaceholder": "http://[\u7528\u6237\u540D:\u5BC6\u7801@]\u4E3B\u673A:8080",
1516
1518
  "drawer.proxyClear": "\u6E05\u9664\u4EE3\u7406",
1517
1519
  "drawer.proxySaved": "\u4EE3\u7406\u5DF2\u4FDD\u5B58\uFF1B\u4E0B\u65B9\u663E\u793A\u4E0B\u53D1\u72B6\u6001",
@@ -2127,6 +2129,8 @@ var zh = {
2127
2129
  "sdkSettings.walletUnavailable": "\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6\uFF0C\u8BF7\u91CD\u8BD5\u3002",
2128
2130
  "sdkSettings.topUp": "\u5145\u503C",
2129
2131
  "sdkSettings.viewBilling": "\u8D26\u5355",
2132
+ "sdkSettings.viewLedger": "\u67E5\u770B\u6D41\u6C34",
2133
+ "sdkSettings.ledgerDrawerTitle": "aixautosdk \u8D26\u5355\u4E0E\u6D41\u6C34",
2130
2134
  "sdkSettings.recentActivity": "\u8FD1\u671F\u94B1\u5305\u6D41\u6C34",
2131
2135
  "sdkSettings.noActivity": "\u6682\u65E0\u6D41\u6C34\u3002"
2132
2136
  };