@aixnn/aixautots 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -23
- package/dist/ScriptStudio-DaCqOF5H.d.ts +43 -0
- package/dist/agent-runner-V60B0is1.d.ts +57 -0
- package/dist/automation-queue-BxrSIkG3.d.ts +72 -0
- package/dist/{chunk-TATL3HTE.js → chunk-B2BOVLI6.js} +82 -21
- package/dist/{chunk-V4MXFPDX.js → chunk-BUW45GM2.js} +3 -3
- package/dist/{chunk-SVK2AY3J.js → chunk-HPKXW5IC.js} +2 -2
- package/dist/{chunk-XNKC6HU3.js → chunk-IZMWCTAP.js} +3 -3
- package/dist/{chunk-OXIM6EYO.js → chunk-JTFZSFFA.js} +1 -1
- package/dist/{chunk-O34SNDQB.js → chunk-JY7O77ML.js} +4 -4
- package/dist/{chunk-IJVNII5N.js → chunk-LAZ3RQ7X.js} +1 -1
- package/dist/{chunk-YOT7HZBU.js → chunk-QPNH7B7P.js} +6 -6
- package/dist/{chunk-UINEPEIE.js → chunk-SSE4IYA4.js} +12 -5
- package/dist/{chunk-BSHHYM72.js → chunk-XB4MS2A4.js} +2 -2
- package/dist/config-CLi5IhmO.d.ts +1380 -0
- package/dist/coords-LPR_MPyp.d.ts +22 -0
- package/dist/core/index.d.ts +135 -0
- package/dist/core/index.js +4 -4
- package/dist/device-normalize-BaThgnH7.d.ts +43 -0
- package/dist/device-session-CVT7OY4H.js +2 -0
- package/dist/i18n/index.d.ts +30 -0
- package/dist/mirror-session-7hrjaLnF.d.ts +108 -0
- package/dist/nav/index.d.ts +19 -0
- package/dist/react/index.d.ts +488 -0
- package/dist/react/index.js +6 -6
- package/dist/script-debugger-DtUGxK9i.d.ts +114 -0
- package/dist/task-agent-runner-DzV_OUZ7.d.ts +160 -0
- package/dist/types-C2WXVcam.d.ts +1005 -0
- package/dist/ui/billing.d.ts +48 -0
- package/dist/ui/billing.js +6 -6
- package/dist/ui/device-create.d.ts +55 -0
- package/dist/ui/device-create.js +7 -7
- package/dist/ui/device-mirror.d.ts +42 -0
- package/dist/ui/device-mirror.js +7 -7
- package/dist/ui/devices.d.ts +223 -0
- package/dist/ui/devices.js +9 -9
- package/dist/ui/editor.d.ts +64 -0
- package/dist/ui/editor.js +7 -7
- package/dist/ui/index.d.ts +108 -0
- package/dist/ui/index.js +83 -90
- package/dist/ui/inspector.d.ts +5 -0
- package/dist/ui/inspector.js +6 -6
- package/dist/ui/market.d.ts +10 -0
- package/dist/ui/market.js +6 -6
- package/dist/ui/mirror.d.ts +52 -0
- package/dist/ui/primitives/index.d.ts +101 -0
- package/dist/ui/script-studio.d.ts +85 -0
- package/dist/ui/script-studio.js +7 -7
- package/dist/ui/scripts.d.ts +18 -0
- package/dist/ui/scripts.js +6 -6
- package/dist/ui/tasks.d.ts +10 -0
- package/dist/ui/tasks.js +9 -9
- package/dist/use-script-run-Diay7ibY.d.ts +50 -0
- package/package.json +112 -40
- package/styles.css +1 -1
- package/tailwind-preset.cjs +3 -3
- package/dist/device-session-W7I3WQXF.js +0 -2
package/dist/ui/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { ControlBar, MirrorView } from '../chunk-CVV7FOMQ.js';
|
|
2
2
|
import { Button, Input } from '../chunk-EVHTAXQG.js';
|
|
3
|
-
import { useScript, useEnvRun, useClient } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import { envBlocker, summarizeEnv } from '../chunk-
|
|
3
|
+
import { useScript, useEnvRun, useClient } from '../chunk-SSE4IYA4.js';
|
|
4
|
+
import '../chunk-JTFZSFFA.js';
|
|
5
|
+
import { envBlocker, summarizeEnv, detectEnvOs } from '../chunk-B2BOVLI6.js';
|
|
6
6
|
import '../chunk-NWFYTFMI.js';
|
|
7
7
|
import React4, { useState, useId, useRef, useEffect, useMemo } from 'react';
|
|
8
8
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -239,7 +239,8 @@ var btn3 = (primary) => ({
|
|
|
239
239
|
});
|
|
240
240
|
function EnvInitDialog(props) {
|
|
241
241
|
const { open, onClose, nodeId, os, route, mode = "prompt", seedEvents, onReady, onInstallWsl, title } = props;
|
|
242
|
-
const { events, finished, done, error, setup } = useEnvRun();
|
|
242
|
+
const { reqId, events, finished, done, error, setup } = useEnvRun(props.beforeSetup);
|
|
243
|
+
const [minimized, setMinimized] = useState(false);
|
|
243
244
|
const [started, setStarted] = useState(false);
|
|
244
245
|
const [showLogs, setShowLogs] = useState(false);
|
|
245
246
|
const [installing, setInstalling] = useState(false);
|
|
@@ -248,6 +249,7 @@ function EnvInitDialog(props) {
|
|
|
248
249
|
const wslTried = useRef(false);
|
|
249
250
|
useEffect(() => {
|
|
250
251
|
if (open) {
|
|
252
|
+
setMinimized(false);
|
|
251
253
|
setStarted(false);
|
|
252
254
|
setShowLogs(false);
|
|
253
255
|
setInstalling(false);
|
|
@@ -294,13 +296,57 @@ function EnvInitDialog(props) {
|
|
|
294
296
|
);
|
|
295
297
|
if (!open) return null;
|
|
296
298
|
const pct = summary.steps.length ? Math.round(summary.steps.reduce((a, s) => a + (s.state === "ok" || s.state === "done" || s.state === "skipped" || s.state === "present" ? 100 : s.pct), 0) / summary.steps.length) : 0;
|
|
297
|
-
const failed = done && finished && !finished.ok;
|
|
299
|
+
const failed = !!error || done && !!finished && !finished.ok;
|
|
298
300
|
const success = done && finished?.ok;
|
|
301
|
+
if (minimized) return /* @__PURE__ */ jsxs("div", { role: "status", style: {
|
|
302
|
+
position: "fixed",
|
|
303
|
+
bottom: 16,
|
|
304
|
+
left: 16,
|
|
305
|
+
right: 16,
|
|
306
|
+
zIndex: 1e3,
|
|
307
|
+
background: "var(--aix-bg, #14161a)",
|
|
308
|
+
color: "var(--aix-fg, #e6e6e6)",
|
|
309
|
+
border: "1px solid var(--aix-border, #2a2e35)",
|
|
310
|
+
borderRadius: 10,
|
|
311
|
+
padding: "12px 16px",
|
|
312
|
+
boxShadow: "0 4px 20px rgba(0,0,0,.2)",
|
|
313
|
+
display: "flex",
|
|
314
|
+
alignItems: "center",
|
|
315
|
+
gap: 16
|
|
316
|
+
}, children: [
|
|
317
|
+
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
318
|
+
/* @__PURE__ */ jsxs("div", { style: { fontSize: 13, marginBottom: 6 }, children: [
|
|
319
|
+
title ?? "Android \u73AF\u5883\u521D\u59CB\u5316",
|
|
320
|
+
" \xB7 ",
|
|
321
|
+
success ? "\u5DF2\u5B8C\u6210" : failed ? "\u521D\u59CB\u5316\u5931\u8D25" : !reqId ? "\u6B63\u5728\u8FDE\u63A5\u8282\u70B9\u2026" : "\u6B63\u5728\u521D\u59CB\u5316\u2026",
|
|
322
|
+
" ",
|
|
323
|
+
pct,
|
|
324
|
+
"%"
|
|
325
|
+
] }),
|
|
326
|
+
/* @__PURE__ */ jsx(
|
|
327
|
+
"div",
|
|
328
|
+
{
|
|
329
|
+
role: "progressbar",
|
|
330
|
+
"aria-valuemin": 0,
|
|
331
|
+
"aria-valuemax": 100,
|
|
332
|
+
"aria-valuenow": pct,
|
|
333
|
+
"aria-label": "\u521D\u59CB\u5316\u8FDB\u5EA6",
|
|
334
|
+
style: { height: 5, background: "var(--aix-border, #2a2e35)", borderRadius: 999, overflow: "hidden" },
|
|
335
|
+
children: /* @__PURE__ */ jsx("div", { style: { width: `${pct}%`, height: "100%", background: failed ? "var(--aix-danger, #e5484d)" : "var(--aix-accent, #2d6cdf)" } })
|
|
336
|
+
}
|
|
337
|
+
)
|
|
338
|
+
] }),
|
|
339
|
+
/* @__PURE__ */ jsx("button", { style: btn3(), onClick: () => setMinimized(false), children: "\u5C55\u5F00" }),
|
|
340
|
+
(success || failed) && /* @__PURE__ */ jsx("button", { style: btn3(), onClick: onClose, children: "\u5173\u95ED" })
|
|
341
|
+
] });
|
|
299
342
|
return /* @__PURE__ */ jsx("div", { style: overlay, role: "dialog", "aria-modal": "true", onClick: (e) => {
|
|
300
343
|
if (e.target === e.currentTarget && !started) onClose();
|
|
301
344
|
}, children: /* @__PURE__ */ jsxs("div", { style: card, children: [
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
|
|
345
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", gap: 16, alignItems: "center", marginBottom: 8 }, children: [
|
|
346
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: 16, fontWeight: 600 }, children: title ?? "\u521D\u59CB\u5316 Android \u73AF\u5883\u5E95\u5EA7" }),
|
|
347
|
+
/* @__PURE__ */ jsx("button", { style: btn3(), onClick: () => setMinimized(true), children: "\u6700\u5C0F\u5316" })
|
|
348
|
+
] }),
|
|
349
|
+
/* @__PURE__ */ jsx("div", { style: { color: "var(--aix-muted, #8a8a8a)", fontSize: 13, marginBottom: 16 }, children: success ? "Done \u2014 this machine can now run cloud phones." : wslBlocked && wslFailed ? "\u81EA\u52A8\u5B89\u88C5 WSL \u8FD0\u884C\u65F6\u5931\u8D25\uFF08\u53EF\u80FD\u5185\u7F51\u65E0\u6CD5\u4E0B\u8F7D\uFF09\u3002\u8BF7\u6309\u4E0B\u65B9\u6B65\u9AA4\u624B\u52A8\u4E0B\u8F7D\u5B89\u88C5\u540E\u91CD\u8BD5\u3002" : wslBlocked ? '\u9700\u8981\u5148\u5B89\u88C5 WSL \u8FD0\u884C\u65F6\uFF1A\u6B63\u5728\u81EA\u52A8\u4E0B\u8F7D\u5E76\u5B89\u88C5\uFF08\u9700\u5728 UAC \u5F39\u7A97\u70B9"\u662F"\uFF0C\u7EA6 250MB\uFF09\uFF0C\u5B8C\u6210\u540E\u4F1A\u81EA\u52A8\u91CD\u542F\u5E76\u7EE7\u7EED\u3002' : failed ? "Setup failed. Review the steps below and retry." : started && !reqId ? "\u6B63\u5728\u542F\u52A8\u5E76\u8FDE\u63A5\u8282\u70B9\uFF0C\u9996\u6B21\u542F\u52A8\u4F1A\u81EA\u52A8\u68C0\u67E5\u3001\u4E0B\u8F7D\u6240\u9700\u7EC4\u4EF6\uFF0C\u53EF\u80FD\u9700\u8981\u51E0\u5206\u949F\u3002\u8FDE\u63A5\u6210\u529F\u540E\u81EA\u52A8\u5F00\u59CB\u521D\u59CB\u5316\u3002" : started ? "Installing the redroid base. This downloads ~1\u20132 GB and may take several minutes." : "This machine needs a one-time base (kernel + container runtime + image) to host cloud phones." }),
|
|
304
350
|
(started || summary.steps.length > 0) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
305
351
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 10, marginBottom: 14 }, children: [
|
|
306
352
|
/* @__PURE__ */ jsx("div", { style: { flex: 1, height: 6, background: "var(--aix-border, #2a2e35)", borderRadius: 999, overflow: "hidden" }, children: /* @__PURE__ */ jsx("div", { style: { width: `${pct}%`, height: "100%", background: failed ? "var(--aix-danger, #e5484d)" : "var(--aix-accent, #2d6cdf)", transition: "width .3s" } }) }),
|
|
@@ -309,6 +355,7 @@ function EnvInitDialog(props) {
|
|
|
309
355
|
"%"
|
|
310
356
|
] })
|
|
311
357
|
] }),
|
|
358
|
+
started && events.length === 0 && !failed && /* @__PURE__ */ jsx("div", { role: "status", style: { color: "var(--aix-muted, #8a8a8a)", fontSize: 13, marginBottom: 12 }, children: "\u6B63\u5728\u8FDE\u63A5\u8282\u70B9\u5E76\u7B49\u5F85\u521D\u59CB\u5316\u6B65\u9AA4\u2026" }),
|
|
312
359
|
/* @__PURE__ */ jsx("ul", { style: { listStyle: "none", margin: 0, padding: 0, display: "grid", gap: 8 }, children: summary.steps.map((s) => /* @__PURE__ */ jsxs("li", { style: { display: "flex", alignItems: "baseline", gap: 10, fontSize: 13 }, children: [
|
|
313
360
|
/* @__PURE__ */ jsx("span", { style: { color: stateColor(s.state), width: 16, textAlign: "center" }, children: STATE_ICON[s.state] ?? "\xB7" }),
|
|
314
361
|
/* @__PURE__ */ jsxs("span", { style: { flex: 1 }, children: [
|
|
@@ -398,6 +445,19 @@ function envOsOf(node) {
|
|
|
398
445
|
const os = str(sys(node, "os"));
|
|
399
446
|
return os === "macos" ? "mac" : os === "windows" ? "win" : null;
|
|
400
447
|
}
|
|
448
|
+
function withLocalEnvOs(node, os) {
|
|
449
|
+
if (!node.is_owner || !os || envOsOf(node) || sys(node, "os")) return node;
|
|
450
|
+
return {
|
|
451
|
+
...node,
|
|
452
|
+
reported_caps: {
|
|
453
|
+
...node.reported_caps,
|
|
454
|
+
system: {
|
|
455
|
+
...node.reported_caps?.system,
|
|
456
|
+
os: os === "win" ? "windows" : "macos"
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
}
|
|
401
461
|
function vmPlan(node) {
|
|
402
462
|
const eff = node.effective_caps;
|
|
403
463
|
const os = str(sys(node, "os"));
|
|
@@ -455,57 +515,6 @@ function vmPlan(node) {
|
|
|
455
515
|
);
|
|
456
516
|
return out;
|
|
457
517
|
}
|
|
458
|
-
function ImagePullProgress({
|
|
459
|
-
events,
|
|
460
|
-
done,
|
|
461
|
-
finished,
|
|
462
|
-
error,
|
|
463
|
-
onClose
|
|
464
|
-
}) {
|
|
465
|
-
const failed = !!error || done && finished !== null && !finished.ok;
|
|
466
|
-
const stepsMeta = [];
|
|
467
|
-
const stepState = /* @__PURE__ */ new Map();
|
|
468
|
-
const logs = [];
|
|
469
|
-
for (const e of events) {
|
|
470
|
-
if (e.kind === "started") stepsMeta.push(...e.steps);
|
|
471
|
-
if (e.kind === "step") stepState.set(e.id, { state: e.state, pct: e.pct, detail: e.detail });
|
|
472
|
-
if (e.kind === "log") logs.push(e.line);
|
|
473
|
-
}
|
|
474
|
-
const recentLogs = logs.slice(-6);
|
|
475
|
-
const activeStep = stepsMeta.find((s) => stepState.get(s.id)?.state === "running");
|
|
476
|
-
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border bg-card/60 p-3 text-[11px] space-y-2", children: [
|
|
477
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
478
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-xs text-foreground", children: done ? failed ? "\u4E0B\u8F7D\u5931\u8D25" : "\u4E0B\u8F7D\u5B8C\u6210" : activeStep ? `\u6B63\u5728\u6267\u884C\uFF1A${activeStep.label}` : "\u6B63\u5728\u8FDE\u63A5\u8282\u70B9\u2026" }),
|
|
479
|
-
done && /* @__PURE__ */ jsx("button", { onClick: onClose, className: "text-muted-foreground hover:text-foreground text-[11px] ml-2", children: "\u5173\u95ED" })
|
|
480
|
-
] }),
|
|
481
|
-
stepsMeta.length > 0 && /* @__PURE__ */ jsx("div", { className: "space-y-1", children: stepsMeta.map((s) => {
|
|
482
|
-
const st = stepState.get(s.id);
|
|
483
|
-
const dotClass = st?.state === "ok" ? "bg-success" : st?.state === "running" ? "bg-warning animate-pulse" : st?.state === "failed" ? "bg-destructive" : "bg-muted-foreground/30";
|
|
484
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
485
|
-
/* @__PURE__ */ jsx("span", { className: `h-1.5 w-1.5 shrink-0 rounded-full ${dotClass}` }),
|
|
486
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1 text-muted-foreground", children: s.label }),
|
|
487
|
-
st?.state === "running" && st.pct > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground whitespace-nowrap", children: [
|
|
488
|
-
st.pct,
|
|
489
|
-
"%",
|
|
490
|
-
st.detail ? ` \xB7 ${st.detail}` : ""
|
|
491
|
-
] }),
|
|
492
|
-
st?.detail && st.state !== "running" && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground truncate max-w-[180px]", children: st.detail })
|
|
493
|
-
] }, s.id);
|
|
494
|
-
}) }),
|
|
495
|
-
activeStep && (() => {
|
|
496
|
-
const pct = stepState.get(activeStep.id)?.pct ?? 0;
|
|
497
|
-
return pct > 0 ? /* @__PURE__ */ jsx("div", { className: "h-1 w-full rounded-full bg-muted overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
498
|
-
"div",
|
|
499
|
-
{
|
|
500
|
-
className: "h-full bg-primary rounded-full transition-all duration-300",
|
|
501
|
-
style: { width: `${pct}%` }
|
|
502
|
-
}
|
|
503
|
-
) }) : null;
|
|
504
|
-
})(),
|
|
505
|
-
recentLogs.length > 0 && /* @__PURE__ */ jsx("pre", { className: "text-[10px] font-mono text-muted-foreground bg-muted/20 rounded p-2 max-h-24 overflow-y-auto leading-relaxed whitespace-pre-wrap break-all", children: recentLogs.join("\n") }),
|
|
506
|
-
done && failed && /* @__PURE__ */ jsx("p", { className: "text-destructive", children: error?.message ?? finished?.error ?? "\u955C\u50CF\u62C9\u53D6\u5931\u8D25\uFF0C\u8BF7\u67E5\u770B\u6B65\u9AA4\u8BE6\u60C5\u540E\u91CD\u8BD5" })
|
|
507
|
-
] });
|
|
508
|
-
}
|
|
509
518
|
function VmCapRow({
|
|
510
519
|
node,
|
|
511
520
|
vm,
|
|
@@ -582,21 +591,12 @@ function AndroidImageRows({ images, installed }) {
|
|
|
582
591
|
] }, img.id);
|
|
583
592
|
}) });
|
|
584
593
|
}
|
|
585
|
-
function NodeCapabilityPanel({ node, isTauri, onInstallWsl }) {
|
|
594
|
+
function NodeCapabilityPanel({ node: reportedNode, isTauri, onInstallWsl, localEnvOs, beforeSetup }) {
|
|
586
595
|
const client = useClient();
|
|
596
|
+
const localOs = localEnvOs ?? (client.localNode?.nodeId === reportedNode.id ? client.localNode.envOs ?? detectEnvOs() : null);
|
|
597
|
+
const node = withLocalEnvOs(reportedNode, localOs);
|
|
587
598
|
const [init, setInit] = useState(null);
|
|
588
|
-
const initOs = envOsOf(node);
|
|
589
|
-
const envRun = useEnvRun();
|
|
590
|
-
const imagePulling = envRun.reqId !== null && !envRun.done;
|
|
591
|
-
const showImagePanel = envRun.reqId !== null;
|
|
592
|
-
const handleDownload = async () => {
|
|
593
|
-
const setupOs = sys(node, "os") === "linux" ? "linux" : initOs;
|
|
594
|
-
if (!setupOs || imagePulling) return;
|
|
595
|
-
try {
|
|
596
|
-
await envRun.setup(node.id, { os: setupOs });
|
|
597
|
-
} catch {
|
|
598
|
-
}
|
|
599
|
-
};
|
|
599
|
+
const initOs = sys(node, "os") === "linux" ? "linux" : envOsOf(node);
|
|
600
600
|
const [androidImages, setAndroidImages] = useState([]);
|
|
601
601
|
useEffect(() => {
|
|
602
602
|
let cancelled = false;
|
|
@@ -609,37 +609,30 @@ function NodeCapabilityPanel({ node, isTauri, onInstallWsl }) {
|
|
|
609
609
|
};
|
|
610
610
|
}, [client]);
|
|
611
611
|
const installed = installedTags(node);
|
|
612
|
+
const usbDiagnostic = node.reported_caps?.ios_usb_diagnostic;
|
|
612
613
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
613
614
|
/* @__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" }),
|
|
615
|
+
usbDiagnostic && typeof usbDiagnostic.message === "string" && /* @__PURE__ */ jsxs("div", { role: "alert", className: "mb-3 rounded border border-destructive/50 p-3 text-sm", children: [
|
|
616
|
+
/* @__PURE__ */ jsx("p", { children: usbDiagnostic.message }),
|
|
617
|
+
Array.isArray(usbDiagnostic.instance_ids) && usbDiagnostic.instance_ids.filter((id) => typeof id === "string").map((id) => /* @__PURE__ */ jsx("p", { className: "mt-2 break-all font-mono text-xs", children: id }, id)),
|
|
618
|
+
typeof usbDiagnostic.hint === "string" && /* @__PURE__ */ jsx("p", { className: "mt-2 whitespace-pre-wrap", children: usbDiagnostic.hint })
|
|
619
|
+
] }),
|
|
614
620
|
!node.reported_caps ? /* @__PURE__ */ jsx("p", { className: "text-[11px] text-muted-foreground", children: "\u80FD\u529B\u672A\u77E5\uFF1A\u8282\u70B9\u5C1A\u672A\u8FDE\u63A5\u6216\u4E3A\u65E7\u7248\u672C\uFF08\u9700\u5347\u7EA7\u4EE5\u4E0A\u62A5\u80FD\u529B\uFF09\u3002" }) : /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
621
|
+
!reportedNode.reported_caps && /* @__PURE__ */ jsx("p", { className: "text-[11px] text-muted-foreground", children: "\u5DF2\u8BC6\u522B\u672C\u673A\u7CFB\u7EDF\uFF0C\u53EF\u521D\u59CB\u5316\u73AF\u5883\uFF1B\u8282\u70B9\u80FD\u529B\u5C1A\u672A\u4E0A\u62A5\uFF0C\u8BF7\u786E\u4FDD\u8282\u70B9\u5DF2\u8FDE\u63A5\u8BBE\u5907\u7F51\u5173\u3002" }),
|
|
615
622
|
vmPlan(node).map((vm) => /* @__PURE__ */ jsxs("div", { children: [
|
|
616
623
|
/* @__PURE__ */ jsx(
|
|
617
624
|
VmCapRow,
|
|
618
625
|
{
|
|
619
626
|
node,
|
|
620
627
|
vm,
|
|
621
|
-
onInit: () =>
|
|
622
|
-
|
|
623
|
-
else setInit(vm);
|
|
624
|
-
},
|
|
625
|
-
onDownload: handleDownload,
|
|
626
|
-
downloading: imagePulling
|
|
628
|
+
onInit: () => setInit(vm),
|
|
629
|
+
onDownload: () => setInit(vm)
|
|
627
630
|
}
|
|
628
631
|
),
|
|
629
632
|
vm.key === "android" && vm.state !== "unavailable" && androidImages.length > 0 && /* @__PURE__ */ jsx(AndroidImageRows, { images: androidImages, installed })
|
|
630
|
-
] }, vm.key))
|
|
631
|
-
showImagePanel && /* @__PURE__ */ jsx(
|
|
632
|
-
ImagePullProgress,
|
|
633
|
-
{
|
|
634
|
-
events: envRun.events,
|
|
635
|
-
done: envRun.done,
|
|
636
|
-
finished: envRun.finished,
|
|
637
|
-
error: envRun.error,
|
|
638
|
-
onClose: () => envRun.close()
|
|
639
|
-
}
|
|
640
|
-
)
|
|
633
|
+
] }, vm.key))
|
|
641
634
|
] }),
|
|
642
|
-
node.is_owner && /* @__PURE__ */ jsx(DataRootConfig, { node }),
|
|
635
|
+
node.is_owner && (supportsRuntimeDataRoot(node) || sys(node, "os") === "linux") && /* @__PURE__ */ jsx(DataRootConfig, { node }),
|
|
643
636
|
init && initOs && /* @__PURE__ */ jsx(
|
|
644
637
|
EnvInitDialog,
|
|
645
638
|
{
|
|
@@ -647,6 +640,7 @@ function NodeCapabilityPanel({ node, isTauri, onInstallWsl }) {
|
|
|
647
640
|
nodeId: node.id,
|
|
648
641
|
os: initOs,
|
|
649
642
|
mode: "prompt",
|
|
643
|
+
beforeSetup,
|
|
650
644
|
title: `\u521D\u59CB\u5316 ${init.label} \u73AF\u5883\u5E95\u5EA7`,
|
|
651
645
|
onInstallWsl: isTauri ? onInstallWsl : void 0,
|
|
652
646
|
onClose: () => setInit(null),
|
|
@@ -655,7 +649,6 @@ function NodeCapabilityPanel({ node, isTauri, onInstallWsl }) {
|
|
|
655
649
|
await client.nodes.restart(node.id);
|
|
656
650
|
} catch {
|
|
657
651
|
}
|
|
658
|
-
setInit(null);
|
|
659
652
|
}
|
|
660
653
|
}
|
|
661
654
|
)
|
package/dist/ui/inspector.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useAixT } from '../chunk-64Q7BBIQ.js';
|
|
2
2
|
import { Select, Button, cn, Input, Dialog } from '../chunk-EVHTAXQG.js';
|
|
3
|
-
import { useInspectorView, useDevicesView, useLocators } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import { useClient } from '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
3
|
+
import { useInspectorView, useDevicesView, useLocators } from '../chunk-JY7O77ML.js';
|
|
4
|
+
import '../chunk-BUW45GM2.js';
|
|
5
|
+
import '../chunk-LAZ3RQ7X.js';
|
|
6
|
+
import { useClient } from '../chunk-SSE4IYA4.js';
|
|
7
|
+
import '../chunk-JTFZSFFA.js';
|
|
8
|
+
import '../chunk-B2BOVLI6.js';
|
|
9
9
|
import '../chunk-NWFYTFMI.js';
|
|
10
10
|
import { useState, useMemo, useEffect, useCallback, useRef } from 'react';
|
|
11
11
|
import { Upload, RefreshCw, ChevronsUp, ChevronsDown, MousePointer2, Circle, Square, Search, Laptop, Smartphone, Check, Copy, Crosshair, TimerReset, Eraser, ImageDown, Keyboard, Save, Trash2, X, ChevronDown, ChevronRight, ArrowLeft, Home, SquareStack, CornerDownLeft, Delete } from 'lucide-react';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
interface MarketPageProps {
|
|
4
|
+
/** Render header content (title/count) into a host slot. Optional — the page
|
|
5
|
+
* itself renders no header chrome (the host shell provides it). */
|
|
6
|
+
renderHeader?: (count: number) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function MarketPage(_props?: MarketPageProps): react.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { MarketPage, type MarketPageProps };
|
package/dist/ui/market.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useAixNav } from '../chunk-5BMFMDQR.js';
|
|
2
2
|
import { useAixT } from '../chunk-64Q7BBIQ.js';
|
|
3
|
-
import { useScripts } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
3
|
+
import { useScripts } from '../chunk-JY7O77ML.js';
|
|
4
|
+
import '../chunk-BUW45GM2.js';
|
|
5
|
+
import '../chunk-LAZ3RQ7X.js';
|
|
6
|
+
import '../chunk-SSE4IYA4.js';
|
|
7
|
+
import '../chunk-JTFZSFFA.js';
|
|
8
|
+
import '../chunk-B2BOVLI6.js';
|
|
9
9
|
import '../chunk-NWFYTFMI.js';
|
|
10
10
|
import { Pencil, Store } from 'lucide-react';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import react__default from 'react';
|
|
2
|
+
import { D as DeviceSize } from '../coords-LPR_MPyp.js';
|
|
3
|
+
import { C as ControlMessage } from '../mirror-session-7hrjaLnF.js';
|
|
4
|
+
import '../config-CLi5IhmO.js';
|
|
5
|
+
import '../types-C2WXVcam.js';
|
|
6
|
+
|
|
7
|
+
interface MirrorViewProps {
|
|
8
|
+
stream: MediaStream | null;
|
|
9
|
+
deviceSize: DeviceSize;
|
|
10
|
+
onInput?: (msg: ControlMessage) => void;
|
|
11
|
+
/** Capture keyboard when the view is focused (default true). */
|
|
12
|
+
keyboard?: boolean;
|
|
13
|
+
/** Auto-focus on mount so keys flow without a click (default true). */
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
/** Fired once when the first real video frame has decoded (picture available),
|
|
16
|
+
* so callers can dismiss a loading splash only when there is actual data.
|
|
17
|
+
* Carries the **authoritative** decoded resolution (videoWidth/videoHeight) —
|
|
18
|
+
* use this for aspect/coords rather than the track's premature getSettings(). */
|
|
19
|
+
onFirstFrame?: (size: DeviceSize) => void;
|
|
20
|
+
/** Fired whenever the decoded resolution changes on the same stream (e.g. the
|
|
21
|
+
* device rotated portrait↔landscape). Lets callers re-fit the aspect/coords. */
|
|
22
|
+
onResize?: (size: DeviceSize) => void;
|
|
23
|
+
/** Stream real-time down/move/up events instead of the two-point tap/swipe
|
|
24
|
+
* classification (default false — keeps existing behavior for platforms
|
|
25
|
+
* without a continuous-injection backend, e.g. iOS). Android mirror turns
|
|
26
|
+
* this on so drags/scrolls follow the actual pointer path. */
|
|
27
|
+
continuousTouch?: boolean;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/** Live device video that turns mouse + keyboard into `ControlMessage`s.
|
|
31
|
+
* Two input modes:
|
|
32
|
+
* - default: pointer down→up becomes a tap (small move) or swipe (drag) —
|
|
33
|
+
* a single two-point message sent on release.
|
|
34
|
+
* - `continuousTouch`: pointerdown/move/up stream `touch_down`/`touch_move`/
|
|
35
|
+
* `touch_up` in real time, so drags follow the actual pointer path.
|
|
36
|
+
* keydown becomes a `key` (special keys) or `text` (printable) message. */
|
|
37
|
+
declare function MirrorView({ stream, deviceSize, onInput, keyboard, autoFocus, onFirstFrame, onResize, continuousTouch, className, }: MirrorViewProps): react__default.JSX.Element;
|
|
38
|
+
|
|
39
|
+
interface ControlBarProps {
|
|
40
|
+
/** Picks the nav-key icon set; Android additionally gets a Menu (recents)
|
|
41
|
+
* key when `onMenu` is wired (default 'android'). */
|
|
42
|
+
platform?: 'android' | 'ios';
|
|
43
|
+
onHome?: () => void;
|
|
44
|
+
onBack?: () => void;
|
|
45
|
+
/** Android-only third nav key (recents/menu). Ignored on iOS. */
|
|
46
|
+
onMenu?: () => void;
|
|
47
|
+
onScreenshot?: () => void;
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
declare function ControlBar({ platform, onHome, onBack, onMenu, onScreenshot, className }: ControlBarProps): react__default.JSX.Element;
|
|
51
|
+
|
|
52
|
+
export { ControlBar, type ControlBarProps, MirrorView, type MirrorViewProps };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ButtonHTMLAttributes, InputHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
/** Tailwind-aware className combiner (clsx + tailwind-merge). */
|
|
8
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
9
|
+
|
|
10
|
+
declare function Dialog({ open, onClose, title, description, children, maxWidth, }: {
|
|
11
|
+
open: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
maxWidth?: string;
|
|
17
|
+
}): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
interface DrawerProps {
|
|
20
|
+
open: boolean;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
title?: React.ReactNode;
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
/** 抽屉宽度类名,默认 `max-w-lg`。 */
|
|
25
|
+
widthClass?: string;
|
|
26
|
+
}
|
|
27
|
+
declare function Drawer({ open, onClose, title, children, widthClass }: DrawerProps): react.JSX.Element;
|
|
28
|
+
|
|
29
|
+
type ToastKind = 'success' | 'error' | 'info';
|
|
30
|
+
interface ToastItem {
|
|
31
|
+
id: number;
|
|
32
|
+
kind: ToastKind;
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
interface ToastApi {
|
|
36
|
+
success: (message: string) => number;
|
|
37
|
+
error: (message: string) => number;
|
|
38
|
+
info: (message: string) => number;
|
|
39
|
+
}
|
|
40
|
+
/** 在组件内持有 toast 队列。返回 `{ toasts, toast, dismiss }`。 */
|
|
41
|
+
declare function useToast(): {
|
|
42
|
+
toasts: ToastItem[];
|
|
43
|
+
toast: ToastApi;
|
|
44
|
+
dismiss: (id: number) => void;
|
|
45
|
+
};
|
|
46
|
+
/** 固定右上角的 toast 容器;放在组件树根部即可。 */
|
|
47
|
+
declare function ToastViewport({ toasts, onDismiss, }: {
|
|
48
|
+
toasts: ToastItem[];
|
|
49
|
+
onDismiss: (id: number) => void;
|
|
50
|
+
}): react.JSX.Element | null;
|
|
51
|
+
|
|
52
|
+
declare const buttonVariants: (props?: ({
|
|
53
|
+
variant?: "primary" | "secondary" | "destructive" | "ghost" | null | undefined;
|
|
54
|
+
size?: "icon" | "xs" | "sm" | "md" | null | undefined;
|
|
55
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
56
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
57
|
+
}
|
|
58
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
59
|
+
|
|
60
|
+
interface SelectOption {
|
|
61
|
+
value: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}
|
|
64
|
+
interface SelectProps {
|
|
65
|
+
value: string;
|
|
66
|
+
onChange: (value: string) => void;
|
|
67
|
+
options: SelectOption[];
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
className?: string;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
}
|
|
72
|
+
declare function Select({ value, onChange, options, placeholder, className, disabled, }: SelectProps): react.JSX.Element;
|
|
73
|
+
|
|
74
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
75
|
+
icon?: React.ReactNode;
|
|
76
|
+
error?: string;
|
|
77
|
+
}
|
|
78
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
79
|
+
|
|
80
|
+
declare const badgeVariants: (props?: ({
|
|
81
|
+
variant?: "muted" | "success" | "info" | "destructive" | "warning" | null | undefined;
|
|
82
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
83
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
84
|
+
}
|
|
85
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react.JSX.Element;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 轻量锚定 Popover(无 Radix 依赖)。`trigger` 渲染锚点并拿到 `toggle`;`children`
|
|
89
|
+
* 渲染浮层并拿到 `close`。点外部 / Esc 关闭。
|
|
90
|
+
*/
|
|
91
|
+
declare function Popover({ trigger, children, align, className, }: {
|
|
92
|
+
trigger: (p: {
|
|
93
|
+
open: boolean;
|
|
94
|
+
toggle: () => void;
|
|
95
|
+
}) => ReactNode;
|
|
96
|
+
children: (close: () => void) => ReactNode;
|
|
97
|
+
align?: 'start' | 'end';
|
|
98
|
+
className?: string;
|
|
99
|
+
}): react.JSX.Element;
|
|
100
|
+
|
|
101
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Dialog, Drawer, type DrawerProps, Input, type InputProps, Popover, Select, type SelectProps, type ToastApi, type ToastItem, type ToastKind, ToastViewport, cn, useToast };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export { b as ScriptStudio, S as ScriptStudioProps, a as ScriptStudioSlotContext } from '../ScriptStudio-DaCqOF5H.js';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { PointerEvent } from 'react';
|
|
4
|
+
import { S as ScriptRunStatus, a as StepEvent, L as LogEntry, b as LogLevel } from '../use-script-run-Diay7ibY.js';
|
|
5
|
+
|
|
6
|
+
type CodeLanguage = 'js' | 'ts';
|
|
7
|
+
interface CodeEditorProps {
|
|
8
|
+
value: string;
|
|
9
|
+
onChange: (v: string) => void;
|
|
10
|
+
height?: string;
|
|
11
|
+
/** 语法高亮模式;默认 ts。 */
|
|
12
|
+
language?: CodeLanguage;
|
|
13
|
+
/** 选区变化回调,回传主选区的选中文本(段落运行用)。 */
|
|
14
|
+
onSelect?: (selectedText: string) => void;
|
|
15
|
+
}
|
|
16
|
+
/** Code view/editor (CodeMirror — bundled, so it works offline in Tauri). */
|
|
17
|
+
declare function CodeEditor({ value, onChange, height, language, onSelect, }: CodeEditorProps): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
interface ScriptParamEditorProps {
|
|
20
|
+
variables: Record<string, unknown>;
|
|
21
|
+
onChange: (variables: Record<string, unknown>) => void;
|
|
22
|
+
}
|
|
23
|
+
declare function ScriptParamEditor({ variables, onChange }: ScriptParamEditorProps): react.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface RunPanelProps {
|
|
26
|
+
status: ScriptRunStatus;
|
|
27
|
+
progress: number;
|
|
28
|
+
steps: StepEvent[];
|
|
29
|
+
logs: LogEntry[];
|
|
30
|
+
error: string | null;
|
|
31
|
+
onStart: () => void;
|
|
32
|
+
onStop: () => void;
|
|
33
|
+
onPause: () => void;
|
|
34
|
+
onResume: () => void;
|
|
35
|
+
onClearLogs: () => void;
|
|
36
|
+
canStart: boolean;
|
|
37
|
+
/** Shown when `canStart` is false (e.g. 未选设备 / 新脚本未保存). */
|
|
38
|
+
startHint?: string;
|
|
39
|
+
/** Drag handle for the resizable dock — rendered as the toolbar's top edge. */
|
|
40
|
+
onResizeStart?: (e: PointerEvent) => void;
|
|
41
|
+
}
|
|
42
|
+
declare function RunPanel({ status, progress, steps, logs, error, onStart, onStop, onPause, onResume, onClearLogs, canStart, startHint, onResizeStart, }: RunPanelProps): react.JSX.Element;
|
|
43
|
+
|
|
44
|
+
interface LogConsoleProps {
|
|
45
|
+
logs: LogEntry[];
|
|
46
|
+
/** Levels to show; entries of other levels are hidden. */
|
|
47
|
+
levels: Set<LogLevel>;
|
|
48
|
+
/** Case-insensitive substring filter over message + device. */
|
|
49
|
+
query: string;
|
|
50
|
+
/** Soft-wrap long lines instead of horizontal scroll. */
|
|
51
|
+
wrap: boolean;
|
|
52
|
+
/** Keep the view pinned to the newest line as logs stream in. */
|
|
53
|
+
autoScroll: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare function LogConsole({ logs, levels, query, wrap, autoScroll }: LogConsoleProps): react.JSX.Element;
|
|
56
|
+
|
|
57
|
+
interface TimelineStepProps {
|
|
58
|
+
event: StepEvent;
|
|
59
|
+
isLast?: boolean;
|
|
60
|
+
}
|
|
61
|
+
declare function TimelineStep({ event, isLast }: TimelineStepProps): react.JSX.Element;
|
|
62
|
+
|
|
63
|
+
interface StudioDevice {
|
|
64
|
+
/** Addressing id (active transport's external_id) — passed to fleet/device ops. */
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
/** Concrete platform: 'ios' | 'android' | 'macos' | 'windows' | …. */
|
|
68
|
+
platform: string;
|
|
69
|
+
online: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface DeviceSelectProps {
|
|
72
|
+
value: string | null;
|
|
73
|
+
onChange: (id: string | null) => void;
|
|
74
|
+
/** Receives the resolved device list (online-first) so the host can read the
|
|
75
|
+
* selected device's platform without re-fetching. */
|
|
76
|
+
onDevices?: (devices: StudioDevice[]) => void;
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 运行设备下拉:列出全部设备(在线优先),选中即经 `onChange` 回传给宿主。
|
|
81
|
+
* 数据走 SDK `useDevices` hook(无 app store 依赖)。
|
|
82
|
+
*/
|
|
83
|
+
declare function DeviceSelect({ value, onChange, onDevices, disabled }: DeviceSelectProps): react.JSX.Element;
|
|
84
|
+
|
|
85
|
+
export { CodeEditor, type CodeEditorProps, type CodeLanguage, DeviceSelect, type DeviceSelectProps, LogConsole, type LogConsoleProps, RunPanel, type RunPanelProps, ScriptParamEditor, type ScriptParamEditorProps, type StudioDevice, TimelineStep, type TimelineStepProps };
|
package/dist/ui/script-studio.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { CodeEditor, DeviceSelect, RunPanel, ScriptParamEditor, ScriptStudio, TimelineStep } from '../chunk-
|
|
1
|
+
export { CodeEditor, DeviceSelect, RunPanel, ScriptParamEditor, ScriptStudio, TimelineStep } from '../chunk-IZMWCTAP.js';
|
|
2
2
|
export { LogConsole } from '../chunk-FW23FLAF.js';
|
|
3
3
|
import '../chunk-EVHTAXQG.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JY7O77ML.js';
|
|
5
|
+
import '../chunk-BUW45GM2.js';
|
|
6
|
+
import '../chunk-LAZ3RQ7X.js';
|
|
7
|
+
import '../chunk-SSE4IYA4.js';
|
|
8
|
+
import '../chunk-JTFZSFFA.js';
|
|
9
|
+
import '../chunk-B2BOVLI6.js';
|
|
10
10
|
import '../chunk-NWFYTFMI.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { f as ScriptSummary } from '../types-C2WXVcam.js';
|
|
3
|
+
|
|
4
|
+
declare function ScriptsPage(): react.JSX.Element;
|
|
5
|
+
|
|
6
|
+
interface ScriptCardProps {
|
|
7
|
+
script: ScriptSummary;
|
|
8
|
+
onDelete: (id: string) => void;
|
|
9
|
+
onDuplicate: (id: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function ScriptCard({ script, onDelete, onDuplicate }: ScriptCardProps): react.JSX.Element;
|
|
12
|
+
|
|
13
|
+
interface CreateTemplateCardProps {
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare function CreateTemplateCard({ onClick }: CreateTemplateCardProps): react.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { CreateTemplateCard, ScriptCard, ScriptsPage };
|
package/dist/ui/scripts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useAixNav } from '../chunk-5BMFMDQR.js';
|
|
2
2
|
import { useAixT } from '../chunk-64Q7BBIQ.js';
|
|
3
3
|
import { cn, Badge, Button, Input } from '../chunk-EVHTAXQG.js';
|
|
4
|
-
import { useScripts } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
4
|
+
import { useScripts } from '../chunk-JY7O77ML.js';
|
|
5
|
+
import '../chunk-BUW45GM2.js';
|
|
6
|
+
import '../chunk-LAZ3RQ7X.js';
|
|
7
|
+
import '../chunk-SSE4IYA4.js';
|
|
8
|
+
import '../chunk-JTFZSFFA.js';
|
|
9
|
+
import '../chunk-B2BOVLI6.js';
|
|
10
10
|
import '../chunk-NWFYTFMI.js';
|
|
11
11
|
import { useState, useMemo } from 'react';
|
|
12
12
|
import { AppWindow, Monitor, Smartphone, FileText, Play, Copy, Trash2, PlusCircle, LayoutGrid, Plus, Search } from 'lucide-react';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
interface TasksPageProps {
|
|
4
|
+
/** Render the page header actions (Refresh + New task) into a host slot.
|
|
5
|
+
* When omitted the page renders its own inline action row above the list. */
|
|
6
|
+
renderHeaderActions?: (actions: React.ReactNode) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function TasksPage(_props?: TasksPageProps): react.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { TasksPage, type TasksPageProps };
|