@aixnn/aixautots 0.0.0-stage → 0.5.2

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 (67) hide show
  1. package/README.md +239 -2
  2. package/dist/ScriptStudio-DaCqOF5H.d.ts +43 -0
  3. package/dist/agent-runner-V60B0is1.d.ts +57 -0
  4. package/dist/automation-queue-8HqRJV_K.d.ts +72 -0
  5. package/dist/chunk-536WVCTB.js +5744 -0
  6. package/dist/chunk-5BMFMDQR.js +18 -0
  7. package/dist/chunk-64Q7BBIQ.js +1347 -0
  8. package/dist/chunk-6YUAACW6.js +866 -0
  9. package/dist/chunk-AIUOLJZA.js +412 -0
  10. package/dist/chunk-CVV7FOMQ.js +175 -0
  11. package/dist/chunk-EHF2WQUR.js +2042 -0
  12. package/dist/chunk-EVHTAXQG.js +273 -0
  13. package/dist/chunk-FW23FLAF.js +56 -0
  14. package/dist/chunk-GKEPMDXO.js +410 -0
  15. package/dist/chunk-H7MHGYF3.js +341 -0
  16. package/dist/chunk-MRQ7VJFJ.js +1074 -0
  17. package/dist/chunk-NWFYTFMI.js +65 -0
  18. package/dist/chunk-OEZFYKL6.js +1 -0
  19. package/dist/chunk-PCYERBNZ.js +1564 -0
  20. package/dist/chunk-PUPVZRKZ.js +668 -0
  21. package/dist/chunk-SUKFJ73W.js +217 -0
  22. package/dist/config-Bm1hmXhD.d.ts +1380 -0
  23. package/dist/coords-LPR_MPyp.d.ts +22 -0
  24. package/dist/core/index.d.ts +135 -0
  25. package/dist/core/index.js +5 -0
  26. package/dist/device-normalize-BaThgnH7.d.ts +43 -0
  27. package/dist/device-session-KZVGLPOI.js +2 -0
  28. package/dist/i18n/index.d.ts +30 -0
  29. package/dist/i18n/index.js +1 -0
  30. package/dist/mirror-session-C_1vFkRV.d.ts +108 -0
  31. package/dist/nav/index.d.ts +19 -0
  32. package/dist/nav/index.js +1 -0
  33. package/dist/react/index.d.ts +487 -0
  34. package/dist/react/index.js +7 -0
  35. package/dist/script-debugger-Cw5jVRoz.d.ts +114 -0
  36. package/dist/task-agent-runner-eD9-SCJz.d.ts +160 -0
  37. package/dist/types-C2WXVcam.d.ts +1005 -0
  38. package/dist/ui/billing.d.ts +48 -0
  39. package/dist/ui/billing.js +425 -0
  40. package/dist/ui/device-create.d.ts +55 -0
  41. package/dist/ui/device-create.js +9 -0
  42. package/dist/ui/device-mirror.d.ts +42 -0
  43. package/dist/ui/device-mirror.js +10 -0
  44. package/dist/ui/devices.d.ts +223 -0
  45. package/dist/ui/devices.js +15 -0
  46. package/dist/ui/editor.d.ts +64 -0
  47. package/dist/ui/editor.js +344 -0
  48. package/dist/ui/index.d.ts +104 -0
  49. package/dist/ui/index.js +676 -0
  50. package/dist/ui/inspector.d.ts +5 -0
  51. package/dist/ui/inspector.js +1250 -0
  52. package/dist/ui/market.d.ts +10 -0
  53. package/dist/ui/market.js +60 -0
  54. package/dist/ui/mirror.d.ts +52 -0
  55. package/dist/ui/mirror.js +3 -0
  56. package/dist/ui/primitives/index.d.ts +101 -0
  57. package/dist/ui/primitives/index.js +1 -0
  58. package/dist/ui/script-studio.d.ts +85 -0
  59. package/dist/ui/script-studio.js +10 -0
  60. package/dist/ui/scripts.d.ts +18 -0
  61. package/dist/ui/scripts.js +210 -0
  62. package/dist/ui/tasks.d.ts +10 -0
  63. package/dist/ui/tasks.js +1039 -0
  64. package/dist/use-script-run-Diay7ibY.d.ts +50 -0
  65. package/package.json +76 -4
  66. package/styles.css +97 -0
  67. package/tailwind-preset.cjs +84 -0
@@ -0,0 +1,104 @@
1
+ import * as react from 'react';
2
+ import react__default from 'react';
3
+ import { S as ScriptEvent, a as ScriptEngine } from '../script-debugger-Cw5jVRoz.js';
4
+ import * as _uiw_react_codemirror from '@uiw/react-codemirror';
5
+ export { ControlBar, ControlBarProps, MirrorView, MirrorViewProps } from './mirror.js';
6
+ import { E as EnvOs, d as EnvRoute, e as EnvEventKind } from '../config-Bm1hmXhD.js';
7
+ import { N as NodeRow } from '../types-C2WXVcam.js';
8
+ import '../coords-LPR_MPyp.js';
9
+ import '../mirror-session-C_1vFkRV.js';
10
+
11
+ interface DebugConsoleProps {
12
+ events: ScriptEvent[];
13
+ /** Invoke an exported method on the running script (rpc panel). */
14
+ onCall?: (method: string, args: unknown) => void;
15
+ /** Clear the accumulated events. */
16
+ onClear?: () => void;
17
+ className?: string;
18
+ }
19
+ declare function DebugConsole({ events, onCall, onClear, className }: DebugConsoleProps): react__default.JSX.Element;
20
+
21
+ interface ScriptEditorProps {
22
+ value: string;
23
+ onChange: (value: string) => void;
24
+ engine: ScriptEngine;
25
+ onEngineChange: (engine: ScriptEngine) => void;
26
+ running: boolean;
27
+ onRun: () => void;
28
+ onCancel: () => void;
29
+ /** Engines offered in the selector. Default: both. */
30
+ engines?: ScriptEngine[];
31
+ className?: string;
32
+ }
33
+ declare function ScriptEditor(props: ScriptEditorProps): react__default.JSX.Element;
34
+
35
+ interface ScriptPanelProps {
36
+ deviceId: string;
37
+ defaultEngine?: 'frida' | 'scriptlet';
38
+ defaultScript?: string;
39
+ className?: string;
40
+ }
41
+ /** Ready-to-use scriptlet/frida debugging surface: editor + run/cancel + live
42
+ * event console + rpc call panel, all driven by `useScript`. */
43
+ declare function ScriptPanel({ deviceId, defaultEngine, defaultScript, className }: ScriptPanelProps): react__default.JSX.Element;
44
+
45
+ /** All semantic CSS variables consumed by `@aixnn/aixautots/ui` components. The flat
46
+ * `--aix-*` naming (no sub-namespace) is the intentional convention for this package. */
47
+ declare const AIX_CSS_VARS: readonly ["--aix-bg", "--aix-fg", "--aix-muted", "--aix-accent", "--aix-danger", "--aix-border", "--aix-radius", "--aix-font", "--aix-mono", "--aix-editor-bg", "--aix-editor-fg"];
48
+ /** A CodeMirror theme extension that draws from the `--aix-editor-*` variables
49
+ * (with sensible dark-mode fallbacks), so the editor reskins with the rest. */
50
+ declare function aixCodeMirrorTheme(): _uiw_react_codemirror.Extension;
51
+
52
+ interface EnvInitDialogProps {
53
+ open: boolean;
54
+ onClose: () => void;
55
+ /** The bound local node id to initialize. */
56
+ nodeId: string;
57
+ /** Host OS — selects mac-env vs win-env on the daemon. */
58
+ os: EnvOs;
59
+ /** win-only route; ignored for mac. Defaults to server-side 'wsl2'. */
60
+ route?: EnvRoute;
61
+ /** 'prompt' (default): require a click to start. 'auto': start on open. */
62
+ mode?: 'prompt' | 'auto';
63
+ /** Status-probe events to seed the step list before setup starts (from
64
+ * `useEnvGate`), so the dialog shows what's missing without re-probing. */
65
+ seedEvents?: EnvEventKind[];
66
+ /** Fired once when setup finishes successfully. */
67
+ onReady?: () => void;
68
+ /** Host-side resolver for the WSL2-missing blocker (Windows): run an elevated
69
+ * `wsl --install` + reboot, then auto-resume. When provided and setup fails
70
+ * with `WSL_UNAVAILABLE`, the dialog shows an "install WSL2 & reboot" action
71
+ * instead of a plain retry. The daemon can't self-elevate/reboot, so the
72
+ * desktop wires this to Tauri commands. */
73
+ onInstallWsl?: () => void | Promise<void>;
74
+ title?: string;
75
+ }
76
+ /** Self-driving env-base initialization dialog. Requires an `<AixProvider>`
77
+ * ancestor (it streams via `useEnvRun`). */
78
+ declare function EnvInitDialog(props: EnvInitDialogProps): react__default.ReactElement | null;
79
+
80
+ type VmState = 'available' | 'needs-init' | 'needs-image' | 'unavailable';
81
+ interface VmItem {
82
+ key: 'android' | 'ios' | 'ios-real' | 'android-real';
83
+ label: string;
84
+ state: VmState;
85
+ /** Why it's unavailable / what init installs (shown under the row). */
86
+ reason?: string;
87
+ }
88
+ /** Per-capability plan for a node: what it can run, what needs a one-time base
89
+ * install, and what this host can't do (with the reason). Only `needs-init`
90
+ * rows expose an "初始化" action; `needs-image` rows expose "下载镜像". */
91
+ declare function vmPlan(node: NodeRow): VmItem[];
92
+ interface NodeCapabilityPanelProps {
93
+ node: NodeRow;
94
+ /** Tauri host? enables the WSL2 elevated-install resolver in the dialog. */
95
+ isTauri?: boolean;
96
+ /** Known local host OS, only when node.id matches the host process. */
97
+ localEnvOs?: EnvOs | null;
98
+ /** Host-side WSL2 install resolver (Windows desktop). */
99
+ onInstallWsl?: () => void | Promise<void>;
100
+ }
101
+ /** 「虚拟机与设备能力」面板:四平台能力行 + 初始化/下载镜像 + 流式进度。 */
102
+ declare function NodeCapabilityPanel({ node: reportedNode, isTauri, onInstallWsl, localEnvOs }: NodeCapabilityPanelProps): react.JSX.Element;
103
+
104
+ export { AIX_CSS_VARS, DebugConsole, type DebugConsoleProps, EnvInitDialog, type EnvInitDialogProps, NodeCapabilityPanel, type NodeCapabilityPanelProps, ScriptEditor, type ScriptEditorProps, ScriptPanel, type ScriptPanelProps, aixCodeMirrorTheme, vmPlan };