@aixnn/aixautots 0.6.21 → 0.6.22

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.
@@ -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
- import { IpCommercePanel } from './chunk-JQBSGFAR.js';
2
- import { IosDeviceDiagnostics } from './chunk-RFOJSDYI.js';
1
+ import { IpCommercePanel } from './chunk-H2AJLWCO.js';
2
+ import { IosDeviceDiagnostics } from './chunk-LHQ5MHQD.js';
3
3
  import { canConnectPhysicalDevice } from './chunk-ZB5ET67B.js';
4
- import { cn, Select, Dialog, Button, Input, Badge } from './chunk-7RQTSTR6.js';
5
- import { useAixT } from './chunk-HQ2L4NQ2.js';
4
+ import { cn, Select, Dialog, Button, Input, Badge } from './chunk-7GCAXBUH.js';
5
+ import { useAixT } from './chunk-RQA7P65K.js';
6
6
  import { useNodes, useClient, useDevices } from './chunk-UEZVXYGP.js';
7
7
  import { useState, useEffect, useMemo, useCallback, useRef } from 'react';
8
8
  import { Server, RefreshCw, Smartphone, Usb, Wifi, Info } from 'lucide-react';
@@ -1,5 +1,5 @@
1
- import { Button, cn, Badge } from './chunk-7RQTSTR6.js';
2
- import { useAixT } from './chunk-HQ2L4NQ2.js';
1
+ import { Button, cn, Badge } from './chunk-7GCAXBUH.js';
2
+ import { useAixT } from './chunk-RQA7P65K.js';
3
3
  import { useClient, useQuery, useBilling } from './chunk-UEZVXYGP.js';
4
4
  import { SlidersHorizontal, Globe, ArrowUpCircle, Server, CalendarClock, Smartphone, ArrowDownCircle, RefreshCw, ExternalLink, CreditCard, HeadphonesIcon, Wallet, X } from 'lucide-react';
5
5
  import { useState, useEffect, useRef, useCallback } from 'react';
@@ -1,8 +1,8 @@
1
- import { BillingPage, RechargeDrawer } from './chunk-DTXXQPOU.js';
2
- import { IosDeviceDiagnostics } from './chunk-RFOJSDYI.js';
1
+ import { ledgerKindMeta, RechargeDrawer, BillingPage } from './chunk-APSXWTSO.js';
2
+ import { IosDeviceDiagnostics } from './chunk-LHQ5MHQD.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';
4
+ import { cn, Button, Input, Drawer, Select } from './chunk-7GCAXBUH.js';
5
+ import { useAixT } from './chunk-RQA7P65K.js';
6
6
  import { useEnvRun, useClient, useOptionalAixConfig, AixResolvedProvider } from './chunk-UEZVXYGP.js';
7
7
  import { summarizeEnv, envBlocker, detectEnvOs } from './chunk-OJK35AQD.js';
8
8
  import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
@@ -1453,7 +1453,7 @@ function SdkWalletSectionView({
1453
1453
  const [wallet, setWallet] = useState({ status: "loading" });
1454
1454
  const [busy, setBusy] = useState(false);
1455
1455
  const [rechargeOpen, setRechargeOpen] = useState(false);
1456
- const [billingOpen, setBillingOpen] = useState(false);
1456
+ const [ledgerOpen, setLedgerOpen] = useState(false);
1457
1457
  const seqRef = useRef(0);
1458
1458
  const loadBalance = useCallback(async () => {
1459
1459
  if (!authenticated || blockedMessage) return;
@@ -1478,7 +1478,7 @@ function SdkWalletSectionView({
1478
1478
  seqRef.current += 1;
1479
1479
  setWallet({ status: "loading" });
1480
1480
  setRechargeOpen(false);
1481
- setBillingOpen(false);
1481
+ setLedgerOpen(false);
1482
1482
  if (!authenticated || blockedMessage) {
1483
1483
  setBusy(false);
1484
1484
  return;
@@ -1518,15 +1518,15 @@ function SdkWalletSectionView({
1518
1518
  ]
1519
1519
  }
1520
1520
  ),
1521
- hasContextOrCfg && /* @__PURE__ */ jsxs(
1521
+ /* @__PURE__ */ jsxs(
1522
1522
  "button",
1523
1523
  {
1524
1524
  type: "button",
1525
- onClick: () => setBillingOpen(true),
1525
+ onClick: () => setLedgerOpen(true),
1526
1526
  className: "inline-flex items-center gap-1 rounded border border-border px-2.5 py-1 text-xs text-foreground hover:bg-secondary",
1527
1527
  children: [
1528
1528
  /* @__PURE__ */ jsx(Receipt, { className: "h-3.5 w-3.5" }),
1529
- t("sdkSettings.viewBilling")
1529
+ t("sdkSettings.viewLedger")
1530
1530
  ]
1531
1531
  }
1532
1532
  ),
@@ -1547,24 +1547,10 @@ function SdkWalletSectionView({
1547
1547
  ] }),
1548
1548
  blockedMessage ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: blockedMessage }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1549
1549
  /* @__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
- ] })
1550
+ /* @__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: [
1551
+ t("sdkSettings.walletBalance"),
1552
+ /* @__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}` })
1553
+ ] }) })
1568
1554
  ] }),
1569
1555
  !onOpenRecharge && rechargeOpen && hasContextOrCfg && wrapWithProvider(
1570
1556
  /* @__PURE__ */ jsx(
@@ -1583,15 +1569,15 @@ function SdkWalletSectionView({
1583
1569
  }
1584
1570
  )
1585
1571
  ),
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(
1572
+ ledgerOpen && /* @__PURE__ */ jsx(
1573
+ Drawer,
1574
+ {
1575
+ open: ledgerOpen,
1576
+ onClose: () => setLedgerOpen(false),
1577
+ title: t("sdkSettings.ledgerDrawerTitle"),
1578
+ widthClass: "max-w-3xl",
1579
+ children: hasContextOrCfg ? wrapWithProvider(
1580
+ /* @__PURE__ */ jsx(
1595
1581
  BillingPage,
1596
1582
  {
1597
1583
  channel,
@@ -1604,8 +1590,48 @@ function SdkWalletSectionView({
1604
1590
  }
1605
1591
  }
1606
1592
  )
1607
- }
1608
- )
1593
+ ) : 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: [
1594
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { className: "border-b border-border text-left text-muted-foreground", children: [
1595
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 font-medium", children: t("billing.col.kind") }),
1596
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 text-right font-medium", children: t("billing.col.amount") }),
1597
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 text-right font-medium", children: t("billing.col.balanceAfter") }),
1598
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 pr-2 font-medium", children: t("billing.col.ref") }),
1599
+ /* @__PURE__ */ jsx("th", { className: "py-1.5 font-medium", children: t("billing.col.time") })
1600
+ ] }) }),
1601
+ /* @__PURE__ */ jsx("tbody", { children: wallet.data.recent.map((row) => {
1602
+ const meta = ledgerKindMeta(row.kind, Number(row.amount));
1603
+ const Icon = meta.icon;
1604
+ const credit = meta.sign === "credit";
1605
+ return /* @__PURE__ */ jsxs("tr", { className: "border-b border-border/50", children: [
1606
+ /* @__PURE__ */ jsx("td", { className: "py-1.5 pr-2", children: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-foreground", children: [
1607
+ /* @__PURE__ */ jsx(
1608
+ Icon,
1609
+ {
1610
+ className: cn("h-3.5 w-3.5", credit ? "text-green-500" : "text-muted-foreground")
1611
+ }
1612
+ ),
1613
+ t(meta.i18nKey)
1614
+ ] }) }),
1615
+ /* @__PURE__ */ jsxs(
1616
+ "td",
1617
+ {
1618
+ className: cn(
1619
+ "py-1.5 pr-2 text-right font-mono",
1620
+ credit ? "text-green-500" : "text-destructive"
1621
+ ),
1622
+ children: [
1623
+ credit ? "+" : "-",
1624
+ String(row.amount).replace(/^[-+]/, "")
1625
+ ]
1626
+ }
1627
+ ),
1628
+ /* @__PURE__ */ jsx("td", { className: "py-1.5 pr-2 text-right font-mono text-muted-foreground", children: String(row.balance_after) }),
1629
+ /* @__PURE__ */ jsx("td", { className: "max-w-[12rem] truncate py-1.5 pr-2 text-muted-foreground", title: row.ref, children: row.ref }),
1630
+ /* @__PURE__ */ jsx("td", { className: "py-1.5 text-muted-foreground", children: new Date(row.created_at).toLocaleString() })
1631
+ ] }, row.id);
1632
+ }) })
1633
+ ] }) })
1634
+ }
1609
1635
  )
1610
1636
  ] });
1611
1637
  }
@@ -1636,6 +1662,8 @@ function SdkSettingsPage({
1636
1662
  sections,
1637
1663
  beforeSections,
1638
1664
  afterSections,
1665
+ beforeWallet,
1666
+ afterWallet,
1639
1667
  wrapGatewaySections,
1640
1668
  renderNodeCapability,
1641
1669
  className
@@ -1645,27 +1673,32 @@ function SdkSettingsPage({
1645
1673
  const showLocalNode = sections?.localNode ?? Boolean(localRuntime);
1646
1674
  const showWallet = sections?.wallet ?? true;
1647
1675
  const showNodeDetails = sections?.nodeDetails ?? true;
1676
+ const hasBillingGroup = Boolean(beforeWallet || showWallet || afterWallet);
1648
1677
  const renderGatewaySections = (bridge) => {
1649
1678
  const resolvedClient = bridge?.client ?? client;
1650
1679
  const resolvedRenderer = bridge?.renderNodeCapability ?? renderNodeCapability;
1651
- if (!showWallet && !showNodeDetails) return null;
1680
+ if (!hasBillingGroup && !showNodeDetails) return null;
1652
1681
  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
- ),
1682
+ hasBillingGroup && /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
1683
+ beforeWallet,
1684
+ showWallet && /* @__PURE__ */ jsx(
1685
+ SdkWalletSection,
1686
+ {
1687
+ client: resolvedClient,
1688
+ sessionKey: session?.id,
1689
+ authenticated: session?.authenticated !== false,
1690
+ blockedMessage: walletBlockedMessage,
1691
+ channel,
1692
+ returnUrl,
1693
+ cancelUrl,
1694
+ openExternalUrl,
1695
+ onOpenRecharge,
1696
+ onTopupCompleted,
1697
+ subscribeBillingUpdated
1698
+ }
1699
+ ),
1700
+ afterWallet
1701
+ ] }),
1669
1702
  showNodeDetails && /* @__PURE__ */ jsx(
1670
1703
  SdkNodeDetailsSection,
1671
1704
  {
@@ -1,5 +1,5 @@
1
- import { Button } from './chunk-7RQTSTR6.js';
2
- import { useAixLang } from './chunk-HQ2L4NQ2.js';
1
+ import { Button } from './chunk-7GCAXBUH.js';
2
+ import { useAixLang } from './chunk-RQA7P65K.js';
3
3
  import { useClient } from './chunk-UEZVXYGP.js';
4
4
  import { useState, useRef, useEffect } from 'react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
- import { Button } from './chunk-7RQTSTR6.js';
2
- import { useAixT } from './chunk-HQ2L4NQ2.js';
1
+ import { Button } from './chunk-7GCAXBUH.js';
2
+ import { useAixT } from './chunk-RQA7P65K.js';
3
3
  import { useClient } from './chunk-UEZVXYGP.js';
4
4
  import { useSyncExternalStore, useState, useEffect } from 'react';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1,12 +1,12 @@
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-UUTOAOW4.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-ACVKYB3F.js';
5
+ import { IpCommercePanel } from './chunk-H2AJLWCO.js';
6
+ import { IosDeviceDiagnostics } from './chunk-LHQ5MHQD.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';
8
+ import { cn, Badge, Button, Dialog, Input, Popover, Select, useToast, ToastViewport, Drawer } from './chunk-7GCAXBUH.js';
9
+ import { useAixT } from './chunk-RQA7P65K.js';
10
10
  import { useClient, useDevicesView, useShortcutsView, useAixConfig, GROUP_MIRROR_MAX, useGroupMirror, useScripts, useFleetRun, useTaskAgentRun, preflightTaskAgentDevice, createAgentTaskRunner, useNodesView } from './chunk-UEZVXYGP.js';
11
11
  import { DeviceChannel } from './chunk-ED6CB3B4.js';
12
12
  import { DeviceSession, isQueuedPowerReceipt, pushFile, pullFile, AixError } from './chunk-OJK35AQD.js';
@@ -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: [
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-7RQTSTR6.js';
1
+ import { cn } from './chunk-7GCAXBUH.js';
2
2
  import { useRef, useMemo, useEffect } from 'react';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
 
@@ -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
  };
@@ -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
  };
@@ -1,7 +1,7 @@
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';
3
+ import { Dialog, Select, Button, useToast, ToastViewport, Popover } from './chunk-7GCAXBUH.js';
4
+ import { useAixT } from './chunk-RQA7P65K.js';
5
5
  import { useClient, useDevices, useMirror, createAgentTaskRunner, useTaskAgentRun } from './chunk-UEZVXYGP.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';
@@ -1,5 +1,5 @@
1
- import { LogConsole } from './chunk-3OBCSW2J.js';
2
- import { cn, Button, Select } from './chunk-7RQTSTR6.js';
1
+ import { LogConsole } from './chunk-OKNU6FSH.js';
2
+ import { cn, Button, Select } from './chunk-7GCAXBUH.js';
3
3
  import { useDevices, useClient, useScripts, useScriptRun } from './chunk-UEZVXYGP.js';
4
4
  import { variablesToSchema, normalizeDevices, schemaToVariables } from './chunk-ED6CB3B4.js';
5
5
  import { useMemo, useState, useEffect, useRef, useCallback } from 'react';
@@ -1 +1 @@
1
- export { AixI18nProvider, useAixLang, useAixT } from '../chunk-HQ2L4NQ2.js';
1
+ export { AixI18nProvider, useAixLang, useAixT } from '../chunk-RQA7P65K.js';
@@ -1,7 +1,7 @@
1
- import { RechargeMethods } from '../chunk-DTXXQPOU.js';
2
- export { BillingPage, RechargeDrawer, RechargeMethods, StripeTopupPanel, ledgerKindMeta } from '../chunk-DTXXQPOU.js';
3
- import { Button, cn, Input } from '../chunk-7RQTSTR6.js';
4
- import { useAixT } from '../chunk-HQ2L4NQ2.js';
1
+ import { RechargeMethods } from '../chunk-APSXWTSO.js';
2
+ export { BillingPage, RechargeDrawer, RechargeMethods, StripeTopupPanel, ledgerKindMeta } from '../chunk-APSXWTSO.js';
3
+ import { Button, cn, Input } from '../chunk-7GCAXBUH.js';
4
+ import { useAixT } from '../chunk-RQA7P65K.js';
5
5
  import { useBilling } from '../chunk-UEZVXYGP.js';
6
6
  import '../chunk-ED6CB3B4.js';
7
7
  import { normalizeTopupAmount, AixError } from '../chunk-OJK35AQD.js';
@@ -1,9 +1,9 @@
1
- export { AddWirelessDeviceDialog, DeviceCreate, NodePicker, ProxySpoofStep, RealDiscoverStep, VirtualSpecStep } from '../chunk-FJKMRWYC.js';
2
- import '../chunk-JQBSGFAR.js';
3
- import '../chunk-RFOJSDYI.js';
1
+ export { AddWirelessDeviceDialog, DeviceCreate, NodePicker, ProxySpoofStep, RealDiscoverStep, VirtualSpecStep } from '../chunk-ACVKYB3F.js';
2
+ import '../chunk-H2AJLWCO.js';
3
+ import '../chunk-LHQ5MHQD.js';
4
4
  import '../chunk-ZB5ET67B.js';
5
- import '../chunk-7RQTSTR6.js';
6
- import '../chunk-HQ2L4NQ2.js';
5
+ import '../chunk-7GCAXBUH.js';
6
+ import '../chunk-RQA7P65K.js';
7
7
  import '../chunk-UEZVXYGP.js';
8
8
  import '../chunk-ED6CB3B4.js';
9
9
  import '../chunk-OJK35AQD.js';
@@ -1,9 +1,9 @@
1
- export { DeviceBootSplash, DeviceMirror, MirrorSurface, parseIosMediaCapabilities } from '../chunk-H7KZUU67.js';
1
+ export { DeviceBootSplash, DeviceMirror, MirrorSurface, parseIosMediaCapabilities } from '../chunk-UUTOAOW4.js';
2
2
  import '../chunk-OEZFYKL6.js';
3
3
  import '../chunk-MBBVYSPD.js';
4
4
  import '../chunk-ZB5ET67B.js';
5
- import '../chunk-7RQTSTR6.js';
6
- import '../chunk-HQ2L4NQ2.js';
5
+ import '../chunk-7GCAXBUH.js';
6
+ import '../chunk-RQA7P65K.js';
7
7
  import '../chunk-UEZVXYGP.js';
8
8
  import '../chunk-ED6CB3B4.js';
9
9
  import '../chunk-OJK35AQD.js';
@@ -10,10 +10,14 @@ interface DevicesPageProps {
10
10
  /** Render the page header actions (Refresh + Add device) into a host slot.
11
11
  * When omitted the page renders its own inline action row above the toolbar. */
12
12
  renderHeaderActions?: (actions: React.ReactNode) => React.ReactNode;
13
+ /** Optional summary content rendered on the left side of the single top header bar. */
14
+ headerLeft?: React.ReactNode;
15
+ /** Optional extra action buttons rendered inline before Refresh / Add device. */
16
+ headerExtraActions?: React.ReactNode;
13
17
  /** Optional host transport for multi-device Claude/Codex tasks. */
14
18
  taskAgentRunner?: TaskAgentRunner;
15
19
  }
16
- declare function DevicesPage({ taskAgentRunner: providedTaskAgentRunner }?: DevicesPageProps): react.JSX.Element;
20
+ declare function DevicesPage({ renderHeaderActions, headerLeft, headerExtraActions, taskAgentRunner: providedTaskAgentRunner, }?: DevicesPageProps): react.JSX.Element;
17
21
 
18
22
  interface DeviceCardProps {
19
23
  device: Device;
@@ -220,4 +224,4 @@ interface Props {
220
224
  }
221
225
  declare function NodeRegister({ open, onClose }: Props): react.JSX.Element;
222
226
 
223
- export { BulkInstallAppsDialog, DeleteDeviceDialog, DeviceCard, DeviceConnect, DeviceDetailDrawer, DeviceEditDialog, DeviceSelector, DeviceTerminal, DevicesPage, FileManager, FingerprintPanel, GroupMirrorModal, NodeRegister, RecycleBinPanel, RefreshParamsButton, RunScriptDialog, ScriptParamForm, SharedParamsForm, ShortcutBar, ShortcutEditDialog, ShortcutRunDialog, TagEditor, TaskAgentDevice, TaskAgentDialog, TaskAgentRunner, resolveSharedRow, variablesToParams };
227
+ export { BulkInstallAppsDialog, DeleteDeviceDialog, DeviceCard, DeviceConnect, DeviceDetailDrawer, DeviceEditDialog, DeviceSelector, DeviceTerminal, DevicesPage, type DevicesPageProps, FileManager, FingerprintPanel, GroupMirrorModal, NodeRegister, RecycleBinPanel, RefreshParamsButton, RunScriptDialog, ScriptParamForm, SharedParamsForm, ShortcutBar, ShortcutEditDialog, ShortcutRunDialog, TagEditor, TaskAgentDevice, TaskAgentDialog, TaskAgentRunner, resolveSharedRow, variablesToParams };
@@ -1,14 +1,14 @@
1
- export { BulkInstallAppsDialog, DeleteDeviceDialog, DeviceCard, DeviceConnect, DeviceDetailDrawer, DeviceEditDialog, DeviceSelector, DeviceTerminal, DevicesPage, FileManager, FingerprintPanel, GroupMirrorModal, NodeRegister, RecycleBinPanel, RefreshParamsButton, RunScriptDialog, ScriptParamForm, SharedParamsForm, ShortcutBar, ShortcutEditDialog, ShortcutRunDialog, TagEditor, TaskAgentDialog, resolveSharedRow, variablesToParams } from '../chunk-4NRIEM5Z.js';
2
- import '../chunk-3OBCSW2J.js';
3
- import '../chunk-H7KZUU67.js';
1
+ export { BulkInstallAppsDialog, DeleteDeviceDialog, DeviceCard, DeviceConnect, DeviceDetailDrawer, DeviceEditDialog, DeviceSelector, DeviceTerminal, DevicesPage, FileManager, FingerprintPanel, GroupMirrorModal, NodeRegister, RecycleBinPanel, RefreshParamsButton, RunScriptDialog, ScriptParamForm, SharedParamsForm, ShortcutBar, ShortcutEditDialog, ShortcutRunDialog, TagEditor, TaskAgentDialog, resolveSharedRow, variablesToParams } from '../chunk-LNO4N3CX.js';
2
+ import '../chunk-OKNU6FSH.js';
3
+ import '../chunk-UUTOAOW4.js';
4
4
  import '../chunk-OEZFYKL6.js';
5
5
  import '../chunk-MBBVYSPD.js';
6
- import '../chunk-FJKMRWYC.js';
7
- import '../chunk-JQBSGFAR.js';
8
- import '../chunk-RFOJSDYI.js';
6
+ import '../chunk-ACVKYB3F.js';
7
+ import '../chunk-H2AJLWCO.js';
8
+ import '../chunk-LHQ5MHQD.js';
9
9
  import '../chunk-ZB5ET67B.js';
10
- import '../chunk-7RQTSTR6.js';
11
- import '../chunk-HQ2L4NQ2.js';
10
+ import '../chunk-7GCAXBUH.js';
11
+ import '../chunk-RQA7P65K.js';
12
12
  export { createAgentTaskRunner, preflightTaskAgentDevice } from '../chunk-UEZVXYGP.js';
13
13
  import '../chunk-ED6CB3B4.js';
14
14
  import '../chunk-OJK35AQD.js';
package/dist/ui/editor.js CHANGED
@@ -1,8 +1,8 @@
1
- import { ScriptStudio } from '../chunk-DAU3FVCV.js';
1
+ import { ScriptStudio } from '../chunk-V3TKO45N.js';
2
2
  import { useAixNav } from '../chunk-5BMFMDQR.js';
3
- import '../chunk-3OBCSW2J.js';
4
- import { Select, cn } from '../chunk-7RQTSTR6.js';
5
- import { useAixT } from '../chunk-HQ2L4NQ2.js';
3
+ import '../chunk-OKNU6FSH.js';
4
+ import { Select, cn } from '../chunk-7GCAXBUH.js';
5
+ import { useAixT } from '../chunk-RQA7P65K.js';
6
6
  import { useClient } from '../chunk-UEZVXYGP.js';
7
7
  import '../chunk-ED6CB3B4.js';
8
8
  import '../chunk-OJK35AQD.js';
package/dist/ui/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import '../chunk-ZCTAYVPK.js';
2
- export { EnvInitDialog, NodeCapabilityPanel, SdkLocalNodeSection, SdkNodeDetailsSection, SdkSettingsPage, SdkVersionSection, SdkWalletSection, parseSdkUpdate, sdkVersion, verifySdkCompletion, vmPlan } from '../chunk-6IH74UX6.js';
3
- import '../chunk-DTXXQPOU.js';
2
+ export { EnvInitDialog, NodeCapabilityPanel, SdkLocalNodeSection, SdkNodeDetailsSection, SdkSettingsPage, SdkVersionSection, SdkWalletSection, parseSdkUpdate, sdkVersion, verifySdkCompletion, vmPlan } from '../chunk-E7V7KP3L.js';
3
+ import '../chunk-APSXWTSO.js';
4
4
  export { ControlBar, MirrorView } from '../chunk-MBBVYSPD.js';
5
- export { IpCommercePanel } from '../chunk-JQBSGFAR.js';
6
- import '../chunk-RFOJSDYI.js';
5
+ export { IpCommercePanel } from '../chunk-H2AJLWCO.js';
6
+ import '../chunk-LHQ5MHQD.js';
7
7
  import '../chunk-ZB5ET67B.js';
8
- import '../chunk-7RQTSTR6.js';
9
- import '../chunk-HQ2L4NQ2.js';
8
+ import '../chunk-7GCAXBUH.js';
9
+ import '../chunk-RQA7P65K.js';
10
10
  import { useScript } from '../chunk-UEZVXYGP.js';
11
11
  import '../chunk-ED6CB3B4.js';
12
12
  import '../chunk-OJK35AQD.js';
@@ -1,5 +1,5 @@
1
- import { Select, Button, cn, Input, Dialog } from '../chunk-7RQTSTR6.js';
2
- import { useAixT } from '../chunk-HQ2L4NQ2.js';
1
+ import { Select, Button, cn, Input, Dialog } from '../chunk-7GCAXBUH.js';
2
+ import { useAixT } from '../chunk-RQA7P65K.js';
3
3
  import { useInspectorView, useDevicesView, useClient, useLocators } from '../chunk-UEZVXYGP.js';
4
4
  import '../chunk-ED6CB3B4.js';
5
5
  import '../chunk-OJK35AQD.js';
@@ -1,7 +1,7 @@
1
1
  import '../chunk-ZCTAYVPK.js';
2
- export { IpCommercePanel } from '../chunk-JQBSGFAR.js';
3
- import '../chunk-7RQTSTR6.js';
4
- import '../chunk-HQ2L4NQ2.js';
2
+ export { IpCommercePanel } from '../chunk-H2AJLWCO.js';
3
+ import '../chunk-7GCAXBUH.js';
4
+ import '../chunk-RQA7P65K.js';
5
5
  import '../chunk-UEZVXYGP.js';
6
6
  import '../chunk-ED6CB3B4.js';
7
7
  import '../chunk-OJK35AQD.js';
package/dist/ui/market.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useAixNav } from '../chunk-5BMFMDQR.js';
2
- import { useAixT } from '../chunk-HQ2L4NQ2.js';
2
+ import { useAixT } from '../chunk-RQA7P65K.js';
3
3
  import { useScripts } from '../chunk-UEZVXYGP.js';
4
4
  import '../chunk-ED6CB3B4.js';
5
5
  import '../chunk-OJK35AQD.js';
@@ -1 +1 @@
1
- export { Badge, Button, Dialog, Drawer, Input, Popover, Select, ToastViewport, cn, useToast } from '../../chunk-7RQTSTR6.js';
1
+ export { Badge, Button, Dialog, Drawer, Input, Popover, Select, ToastViewport, cn, useToast } from '../../chunk-7GCAXBUH.js';
@@ -1,6 +1,6 @@
1
- export { CodeEditor, DeviceSelect, RunPanel, ScriptParamEditor, ScriptStudio, TimelineStep } from '../chunk-DAU3FVCV.js';
2
- export { LogConsole } from '../chunk-3OBCSW2J.js';
3
- import '../chunk-7RQTSTR6.js';
1
+ export { CodeEditor, DeviceSelect, RunPanel, ScriptParamEditor, ScriptStudio, TimelineStep } from '../chunk-V3TKO45N.js';
2
+ export { LogConsole } from '../chunk-OKNU6FSH.js';
3
+ import '../chunk-7GCAXBUH.js';
4
4
  import '../chunk-UEZVXYGP.js';
5
5
  import '../chunk-ED6CB3B4.js';
6
6
  import '../chunk-OJK35AQD.js';
@@ -1,6 +1,6 @@
1
1
  import { useAixNav } from '../chunk-5BMFMDQR.js';
2
- import { cn, Badge, Button, Input } from '../chunk-7RQTSTR6.js';
3
- import { useAixT } from '../chunk-HQ2L4NQ2.js';
2
+ import { cn, Badge, Button, Input } from '../chunk-7GCAXBUH.js';
3
+ import { useAixT } from '../chunk-RQA7P65K.js';
4
4
  import { useScripts } from '../chunk-UEZVXYGP.js';
5
5
  import '../chunk-ED6CB3B4.js';
6
6
  import '../chunk-OJK35AQD.js';
@@ -94,12 +94,16 @@ interface SdkSettingsPageProps {
94
94
  sections?: SdkSettingsSectionsConfig;
95
95
  beforeSections?: ReactNode;
96
96
  afterSections?: ReactNode;
97
+ /** Optional host plan/quota content rendered inline before the wallet section. */
98
+ beforeWallet?: ReactNode;
99
+ /** Optional host content rendered inline after the wallet section. */
100
+ afterWallet?: ReactNode;
97
101
  /** Optional wrapper around gateway-backed sections (`wallet` + `nodeDetails`). */
98
102
  wrapGatewaySections?: (render: (bridge?: SdkSettingsGatewayBridge) => ReactNode) => ReactNode;
99
103
  renderNodeCapability?: SdkNodeCapabilityRenderer;
100
104
  className?: string;
101
105
  }
102
- declare function SdkSettingsPage({ localRuntime, session, client, appName, channel, returnUrl, cancelUrl, openExternalUrl, onOpenRecharge, onTopupCompleted, subscribeBillingUpdated, walletBlockedMessage, sections, beforeSections, afterSections, wrapGatewaySections, renderNodeCapability, className, }: SdkSettingsPageProps): react.JSX.Element;
106
+ declare function SdkSettingsPage({ localRuntime, session, client, appName, channel, returnUrl, cancelUrl, openExternalUrl, onOpenRecharge, onTopupCompleted, subscribeBillingUpdated, walletBlockedMessage, sections, beforeSections, afterSections, beforeWallet, afterWallet, wrapGatewaySections, renderNodeCapability, className, }: SdkSettingsPageProps): react.JSX.Element;
103
107
 
104
108
  interface SdkVersionSectionProps {
105
109
  runtime: SdkLocalRuntimeAdapter;
@@ -1,9 +1,9 @@
1
- export { SdkLocalNodeSection, SdkNodeDetailsSection, SdkSettingsPage, SdkVersionSection, SdkWalletSection, parseSdkUpdate, sdkVersion, verifySdkCompletion } from '../chunk-6IH74UX6.js';
2
- import '../chunk-DTXXQPOU.js';
3
- import '../chunk-RFOJSDYI.js';
1
+ export { SdkLocalNodeSection, SdkNodeDetailsSection, SdkSettingsPage, SdkVersionSection, SdkWalletSection, parseSdkUpdate, sdkVersion, verifySdkCompletion } from '../chunk-E7V7KP3L.js';
2
+ import '../chunk-APSXWTSO.js';
3
+ import '../chunk-LHQ5MHQD.js';
4
4
  import '../chunk-ZB5ET67B.js';
5
- import '../chunk-7RQTSTR6.js';
6
- import '../chunk-HQ2L4NQ2.js';
5
+ import '../chunk-7GCAXBUH.js';
6
+ import '../chunk-RQA7P65K.js';
7
7
  import '../chunk-UEZVXYGP.js';
8
8
  import '../chunk-ED6CB3B4.js';
9
9
  import '../chunk-OJK35AQD.js';
package/dist/ui/tasks.js CHANGED
@@ -1,14 +1,14 @@
1
- import { SharedParamsForm, resolveSharedRow } from '../chunk-4NRIEM5Z.js';
2
- import '../chunk-3OBCSW2J.js';
3
- import '../chunk-H7KZUU67.js';
1
+ import { SharedParamsForm, resolveSharedRow } from '../chunk-LNO4N3CX.js';
2
+ import '../chunk-OKNU6FSH.js';
3
+ import '../chunk-UUTOAOW4.js';
4
4
  import '../chunk-OEZFYKL6.js';
5
5
  import '../chunk-MBBVYSPD.js';
6
- import '../chunk-FJKMRWYC.js';
7
- import '../chunk-JQBSGFAR.js';
8
- import '../chunk-RFOJSDYI.js';
6
+ import '../chunk-ACVKYB3F.js';
7
+ import '../chunk-H2AJLWCO.js';
8
+ import '../chunk-LHQ5MHQD.js';
9
9
  import '../chunk-ZB5ET67B.js';
10
- import { Button, cn, Select, Input, Badge } from '../chunk-7RQTSTR6.js';
11
- import { useAixT } from '../chunk-HQ2L4NQ2.js';
10
+ import { Button, cn, Select, Input, Badge } from '../chunk-7GCAXBUH.js';
11
+ import { useAixT } from '../chunk-RQA7P65K.js';
12
12
  import { useDevicesView, useAutomationQueue, useClient, useAixConfig, useApiTokens } from '../chunk-UEZVXYGP.js';
13
13
  import { targetParam, variablesToSchema, schemaDefaults } from '../chunk-ED6CB3B4.js';
14
14
  import '../chunk-OJK35AQD.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aixnn/aixautots",
3
- "version": "0.6.21",
3
+ "version": "0.6.22",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {