@ultrst-armada/floks 1.6.1 → 1.7.1
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/.krusbl-release-attestation.json +3 -3
- package/package.json +1 -1
- package/packages/ui/dist/{chunk-7IKBKQGJ.js → chunk-CUQ7R3H2.js} +1 -1
- package/packages/ui/dist/{chunk-CWBCW6N2.js → chunk-KIFQA7L6.js} +45 -19
- package/packages/ui/dist/{chunk-FA45WRNL.js → chunk-UJK3JKRK.js} +383 -72
- package/packages/ui/dist/components/ai/index.d.ts +110 -2
- package/packages/ui/dist/components/ai/index.js +19 -2
- package/packages/ui/dist/components/auth/index.js +3 -3
- package/packages/ui/dist/components/base/index.js +4 -6
- package/packages/ui/dist/components/composite/index.js +2 -2
- package/packages/ui/dist/components/settings/index.js +2 -2
- package/packages/ui/dist/frnl/index.js +3 -3
- package/packages/ui/dist/hierarchy/index.js +2 -2
- package/packages/ui/dist/index.d.ts +1 -1
- package/packages/ui/dist/index.js +36 -24
- package/packages/ui/dist/chunk-DWMKISE5.js +0 -28
- package/packages/ui/dist/{chunk-USCLIIBR.js → chunk-DGZBP3ND.js} +3 -3
- package/packages/ui/dist/{chunk-Y2QQZATG.js → chunk-SXRIBCJX.js} +3 -3
- package/packages/ui/dist/{chunk-PUHHHRQO.js → chunk-YVWJ4SW7.js} +3 -3
- package/packages/ui/dist/{chunk-NPIMIWVO.js → chunk-ZPQC46RO.js} +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseSelect,
|
|
3
3
|
BaseTextarea
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KIFQA7L6.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseInput
|
|
7
7
|
} from "./chunk-W42SJGOJ.js";
|
|
@@ -634,9 +634,313 @@ var KeyListContainer = ({
|
|
|
634
634
|
] });
|
|
635
635
|
};
|
|
636
636
|
|
|
637
|
-
// src/components/ai/
|
|
638
|
-
import {
|
|
637
|
+
// src/components/ai/key-manager/KeyBackupModal.tsx
|
|
638
|
+
import { useEffect, useState as useState7 } from "react";
|
|
639
|
+
import { Download as Download2, Upload as Upload2, FileText, X as X2 } from "lucide-react";
|
|
640
|
+
|
|
641
|
+
// src/components/ai/key-manager/KeyBackupExportTab.tsx
|
|
642
|
+
import { useState as useState5 } from "react";
|
|
643
|
+
import { Download, Copy, Check as Check3 } from "lucide-react";
|
|
639
644
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
645
|
+
var KeyBackupExportTab = ({ exportPayload, fileNamePrefix = "ai-keys-backup" }) => {
|
|
646
|
+
const [copied, setCopied] = useState5(false);
|
|
647
|
+
const jsonString = exportPayload ? JSON.stringify(exportPayload, null, 2) : "";
|
|
648
|
+
const handleDownload = () => {
|
|
649
|
+
if (!exportPayload) return;
|
|
650
|
+
const blob = new Blob([jsonString], { type: "application/json" });
|
|
651
|
+
const url = URL.createObjectURL(blob);
|
|
652
|
+
const anchor = document.createElement("a");
|
|
653
|
+
anchor.href = url;
|
|
654
|
+
anchor.download = `${fileNamePrefix}-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.json`;
|
|
655
|
+
document.body.appendChild(anchor);
|
|
656
|
+
anchor.click();
|
|
657
|
+
anchor.remove();
|
|
658
|
+
URL.revokeObjectURL(url);
|
|
659
|
+
};
|
|
660
|
+
const handleCopy = async () => {
|
|
661
|
+
if (!jsonString) return;
|
|
662
|
+
await navigator.clipboard.writeText(jsonString);
|
|
663
|
+
setCopied(true);
|
|
664
|
+
window.setTimeout(() => setCopied(false), 2e3);
|
|
665
|
+
};
|
|
666
|
+
const metadata = exportPayload && typeof exportPayload === "object" ? exportPayload.exportMetadata : void 0;
|
|
667
|
+
return /* @__PURE__ */ jsxs11("div", { className: "space-y-3", children: [
|
|
668
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-wrap items-center justify-between gap-2 p-2.5 rounded bg-slate-800/80 border border-slate-700", children: [
|
|
669
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-3", children: [
|
|
670
|
+
/* @__PURE__ */ jsx11("span", { className: "text-slate-200 font-bold", children: "EXPORT PAYLOAD" }),
|
|
671
|
+
/* @__PURE__ */ jsxs11("span", { className: "text-[10px] text-emerald-400", children: [
|
|
672
|
+
metadata?.totalKeys || 0,
|
|
673
|
+
" KEYS"
|
|
674
|
+
] }),
|
|
675
|
+
/* @__PURE__ */ jsxs11("span", { className: "text-[10px] text-indigo-400", children: [
|
|
676
|
+
metadata?.totalEmailProfiles || 0,
|
|
677
|
+
" SECTIONS"
|
|
678
|
+
] })
|
|
679
|
+
] }),
|
|
680
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
|
|
681
|
+
/* @__PURE__ */ jsx11(BaseButton, { size: "sm", variant: "secondary", "aria-label": "Copy JSON payload", onClick: handleCopy, disabled: !jsonString, children: copied ? /* @__PURE__ */ jsx11(Check3, { size: 14 }) : /* @__PURE__ */ jsx11(Copy, { size: 14 }) }),
|
|
682
|
+
/* @__PURE__ */ jsx11(BaseButton, { size: "sm", variant: "success", "aria-label": "Export backup file", onClick: handleDownload, disabled: !jsonString, children: /* @__PURE__ */ jsx11(Download, { size: 14 }) })
|
|
683
|
+
] })
|
|
684
|
+
] }),
|
|
685
|
+
/* @__PURE__ */ jsx11("pre", { className: "p-3 bg-slate-950 rounded-lg border border-slate-800 text-slate-200 text-[11px] max-h-72 overflow-y-auto whitespace-pre-wrap select-all", children: jsonString || "Loading export payload..." })
|
|
686
|
+
] });
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
// src/components/ai/key-manager/KeyBackupImportTab.tsx
|
|
690
|
+
import { useState as useState6 } from "react";
|
|
691
|
+
import { Upload, X, ShieldCheck as ShieldCheck2, AlertCircle as AlertCircle2, RefreshCw as RefreshCw4 } from "lucide-react";
|
|
692
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
693
|
+
var KeyBackupImportTab = ({ onImport, onClose, onRefreshKeys }) => {
|
|
694
|
+
const [text, setText] = useState6("");
|
|
695
|
+
const [status, setStatus] = useState6(null);
|
|
696
|
+
const [busy, setBusy] = useState6(false);
|
|
697
|
+
const handleFile = (event) => {
|
|
698
|
+
const file = event.target.files?.[0];
|
|
699
|
+
if (!file) return;
|
|
700
|
+
const reader = new FileReader();
|
|
701
|
+
reader.onload = () => {
|
|
702
|
+
setText(String(reader.result || ""));
|
|
703
|
+
setStatus(null);
|
|
704
|
+
};
|
|
705
|
+
reader.readAsText(file);
|
|
706
|
+
};
|
|
707
|
+
const handleImport = async () => {
|
|
708
|
+
if (!text.trim()) return;
|
|
709
|
+
setBusy(true);
|
|
710
|
+
setStatus(null);
|
|
711
|
+
try {
|
|
712
|
+
let payload;
|
|
713
|
+
try {
|
|
714
|
+
payload = JSON.parse(text);
|
|
715
|
+
} catch {
|
|
716
|
+
setStatus({ success: false, message: "Invalid JSON format." });
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
const result = await onImport(payload);
|
|
720
|
+
setStatus({ success: result.success, message: result.message || result.error || (result.success ? "Import complete." : "Import failed.") });
|
|
721
|
+
if (result.success) onRefreshKeys?.();
|
|
722
|
+
} catch (error) {
|
|
723
|
+
setStatus({ success: false, message: error instanceof Error ? error.message : "Import failed." });
|
|
724
|
+
} finally {
|
|
725
|
+
setBusy(false);
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
return /* @__PURE__ */ jsxs12("div", { className: "space-y-3", children: [
|
|
729
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between p-2.5 rounded bg-slate-800/80 border border-slate-700", children: [
|
|
730
|
+
/* @__PURE__ */ jsx12("span", { className: "text-slate-200 font-bold", children: "IMPORT PAYLOAD" }),
|
|
731
|
+
/* @__PURE__ */ jsxs12("label", { className: "inline-flex items-center justify-center p-2 rounded bg-indigo-600 text-white font-bold cursor-pointer", children: [
|
|
732
|
+
/* @__PURE__ */ jsx12(Upload, { size: 14 }),
|
|
733
|
+
/* @__PURE__ */ jsx12(BaseInput, { type: "file", accept: ".json", onChange: handleFile, className: "hidden" })
|
|
734
|
+
] })
|
|
735
|
+
] }),
|
|
736
|
+
/* @__PURE__ */ jsx12(BaseTextarea, { value: text, onChange: (event) => setText(event.target.value), placeholder: "Paste backup JSON string here...", rows: 8, className: "w-full text-[11px]" }),
|
|
737
|
+
status && /* @__PURE__ */ jsxs12("div", { className: `p-2.5 rounded flex items-center gap-2 text-[11px] border ${status.success ? "bg-emerald-950/80 text-emerald-200 border-emerald-700" : "bg-rose-950/80 text-rose-200 border-rose-700"}`, children: [
|
|
738
|
+
status.success ? /* @__PURE__ */ jsx12(ShieldCheck2, { size: 14 }) : /* @__PURE__ */ jsx12(AlertCircle2, { size: 14 }),
|
|
739
|
+
/* @__PURE__ */ jsx12("span", { children: status.message })
|
|
740
|
+
] }),
|
|
741
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex justify-end gap-2 pt-1", children: [
|
|
742
|
+
/* @__PURE__ */ jsx12(BaseButton, { size: "sm", variant: "secondary", onClick: onClose, children: /* @__PURE__ */ jsx12(X, { size: 14 }) }),
|
|
743
|
+
/* @__PURE__ */ jsx12(BaseButton, { size: "sm", variant: "success", onClick: handleImport, disabled: !text.trim() || busy, children: busy ? /* @__PURE__ */ jsx12(RefreshCw4, { size: 14, className: "animate-spin" }) : /* @__PURE__ */ jsx12(ShieldCheck2, { size: 14 }) })
|
|
744
|
+
] })
|
|
745
|
+
] });
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
// src/components/ai/key-manager/KeyBackupModal.tsx
|
|
749
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
750
|
+
var KeyBackupModal = ({
|
|
751
|
+
isOpen,
|
|
752
|
+
onClose,
|
|
753
|
+
loadExportPayload,
|
|
754
|
+
onImport,
|
|
755
|
+
onRefreshKeys,
|
|
756
|
+
title = "API KEYS BACKUP & RECOVERY"
|
|
757
|
+
}) => {
|
|
758
|
+
const [activeTab, setActiveTab] = useState7("export");
|
|
759
|
+
const [payload, setPayload] = useState7(null);
|
|
760
|
+
useEffect(() => {
|
|
761
|
+
if (isOpen) loadExportPayload().then(setPayload).catch(() => setPayload(null));
|
|
762
|
+
}, [isOpen, loadExportPayload]);
|
|
763
|
+
if (!isOpen) return null;
|
|
764
|
+
return /* @__PURE__ */ jsx13("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/70 backdrop-blur-sm", onWheel: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxs13("div", { className: "w-full max-w-2xl bg-slate-900 border-2 border-slate-700 rounded-xl shadow-2xl font-mono text-xs overflow-hidden flex flex-col max-h-[90vh]", onWheel: (e) => e.stopPropagation(), children: [
|
|
765
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-between p-3 border-b-2 border-slate-700 bg-slate-800 text-slate-100", children: [
|
|
766
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-2", children: [
|
|
767
|
+
/* @__PURE__ */ jsx13(FileText, { size: 16 }),
|
|
768
|
+
/* @__PURE__ */ jsx13("span", { className: "font-extrabold text-sm", children: title })
|
|
769
|
+
] }),
|
|
770
|
+
/* @__PURE__ */ jsx13(BaseButton, { size: "sm", variant: "ghost", onClick: onClose, children: /* @__PURE__ */ jsx13(X2, { size: 16 }) })
|
|
771
|
+
] }),
|
|
772
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex border-b-2 border-slate-700 bg-slate-950", children: [
|
|
773
|
+
/* @__PURE__ */ jsxs13(BaseButton, { size: "sm", variant: activeTab === "export" ? "accent" : "ghost", onClick: () => setActiveTab("export"), className: "flex-1 rounded-none", children: [
|
|
774
|
+
/* @__PURE__ */ jsx13(Download2, { size: 14 }),
|
|
775
|
+
" EXPORT"
|
|
776
|
+
] }),
|
|
777
|
+
/* @__PURE__ */ jsxs13(BaseButton, { size: "sm", variant: activeTab === "import" ? "accent" : "ghost", onClick: () => setActiveTab("import"), className: "flex-1 rounded-none", children: [
|
|
778
|
+
/* @__PURE__ */ jsx13(Upload2, { size: 14 }),
|
|
779
|
+
" IMPORT"
|
|
780
|
+
] })
|
|
781
|
+
] }),
|
|
782
|
+
/* @__PURE__ */ jsx13("div", { className: "p-4 overflow-y-auto space-y-3 flex-1", children: activeTab === "export" ? /* @__PURE__ */ jsx13(KeyBackupExportTab, { exportPayload: payload }) : /* @__PURE__ */ jsx13(KeyBackupImportTab, { onImport, onClose, onRefreshKeys }) })
|
|
783
|
+
] }) });
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
// src/components/ai/key-manager/EmailProfileCard.tsx
|
|
787
|
+
import { useState as useState9 } from "react";
|
|
788
|
+
import { Mail } from "lucide-react";
|
|
789
|
+
|
|
790
|
+
// src/components/ai/key-manager/EmailProviderRow.tsx
|
|
791
|
+
import { Plus as Plus2, ExternalLink } from "lucide-react";
|
|
792
|
+
|
|
793
|
+
// src/components/ai/key-manager/ExistingKeyControl.tsx
|
|
794
|
+
import { useState as useState8 } from "react";
|
|
795
|
+
import { CheckCircle2, AlertTriangle as AlertTriangle2, RefreshCw as RefreshCw5, Trash2 as Trash22, Edit2, Check as Check4, X as X3 } from "lucide-react";
|
|
796
|
+
import { Fragment, jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
797
|
+
var ExistingKeyControl = ({ providerKey, usageStats = [], onVerifyKey, onDeleteKey, onUpdateKeyLabel }) => {
|
|
798
|
+
const [editing, setEditing] = useState8(false);
|
|
799
|
+
const [label, setLabel] = useState8("");
|
|
800
|
+
const stats = usageStats.filter((item) => item.keyId === providerKey.id);
|
|
801
|
+
const day = stats.reduce((sum, item) => sum + (item.dayCount ?? item.dailyCalls ?? 0), 0);
|
|
802
|
+
const week = stats.reduce((sum, item) => sum + (item.weekCount ?? item.weeklyCalls ?? 0), 0);
|
|
803
|
+
const month = stats.reduce((sum, item) => sum + (item.monthCount ?? item.monthlyCalls ?? 0), 0);
|
|
804
|
+
return /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between flex-1 gap-2", children: [
|
|
805
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-col min-w-0", children: [
|
|
806
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-1.5 min-w-0", children: [
|
|
807
|
+
editing ? /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-1", children: [
|
|
808
|
+
/* @__PURE__ */ jsx14(BaseInput, { value: label, onChange: (e) => setLabel(e.target.value), className: "p-1 text-[10px] w-32", autoFocus: true }),
|
|
809
|
+
/* @__PURE__ */ jsx14(BaseButton, { size: "sm", variant: "success", onClick: () => {
|
|
810
|
+
if (label.trim()) {
|
|
811
|
+
onUpdateKeyLabel(providerKey.id, label.trim());
|
|
812
|
+
setEditing(false);
|
|
813
|
+
}
|
|
814
|
+
}, className: "p-0.5", children: /* @__PURE__ */ jsx14(Check4, { size: 10 }) }),
|
|
815
|
+
/* @__PURE__ */ jsx14(BaseButton, { size: "sm", variant: "danger", onClick: () => setEditing(false), className: "p-0.5", children: /* @__PURE__ */ jsx14(X3, { size: 10 }) })
|
|
816
|
+
] }) : /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
817
|
+
/* @__PURE__ */ jsx14("span", { className: "text-[10px] text-slate-500 font-bold truncate", children: providerKey.key ? `${providerKey.key.slice(0, 10)}...` : "ENV" }),
|
|
818
|
+
/* @__PURE__ */ jsx14(BaseButton, { size: "sm", variant: "ghost", onClick: () => {
|
|
819
|
+
setEditing(true);
|
|
820
|
+
setLabel(providerKey.label);
|
|
821
|
+
}, className: "p-0.5", children: /* @__PURE__ */ jsx14(Edit2, { size: 10 }) })
|
|
822
|
+
] }),
|
|
823
|
+
providerKey.status === "active" && /* @__PURE__ */ jsx14(CheckCircle2, { size: 13, className: "text-emerald-600" }),
|
|
824
|
+
providerKey.status === "invalid" && /* @__PURE__ */ jsx14(AlertTriangle2, { size: 13, className: "text-rose-600" }),
|
|
825
|
+
providerKey.status === "checking" && /* @__PURE__ */ jsx14("span", { className: "text-[9px] text-amber-500 animate-pulse", children: "Verifying..." })
|
|
826
|
+
] }),
|
|
827
|
+
providerKey.lifespan && /* @__PURE__ */ jsx14("div", { className: "text-[9px] text-slate-500", children: providerKey.lifespan })
|
|
828
|
+
] }),
|
|
829
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-1 text-[9px] bg-slate-200/80 dark:bg-slate-900/80 px-1.5 py-0.5 rounded border border-slate-700/50", children: [
|
|
830
|
+
/* @__PURE__ */ jsxs14("span", { children: [
|
|
831
|
+
day,
|
|
832
|
+
"D"
|
|
833
|
+
] }),
|
|
834
|
+
/* @__PURE__ */ jsxs14("span", { children: [
|
|
835
|
+
week,
|
|
836
|
+
"W"
|
|
837
|
+
] }),
|
|
838
|
+
/* @__PURE__ */ jsxs14("span", { children: [
|
|
839
|
+
month,
|
|
840
|
+
"M"
|
|
841
|
+
] })
|
|
842
|
+
] }),
|
|
843
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-1.5 shrink-0", children: [
|
|
844
|
+
/* @__PURE__ */ jsx14(BaseButton, { size: "sm", variant: "secondary", "aria-label": "Re-verify key", onClick: () => onVerifyKey(providerKey.id), children: /* @__PURE__ */ jsx14(RefreshCw5, { size: 11 }) }),
|
|
845
|
+
/* @__PURE__ */ jsx14(BaseButton, { size: "sm", variant: "danger", "aria-label": "Delete key", onClick: () => onDeleteKey(providerKey.id), children: /* @__PURE__ */ jsx14(Trash22, { size: 11 }) })
|
|
846
|
+
] })
|
|
847
|
+
] });
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
// src/components/ai/key-manager/EmailProviderRow.tsx
|
|
851
|
+
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
852
|
+
var EmailProviderRow = ({
|
|
853
|
+
providerMeta,
|
|
854
|
+
providerKey,
|
|
855
|
+
usageStats,
|
|
856
|
+
isTargetedKey,
|
|
857
|
+
isTargetedProvider,
|
|
858
|
+
acquisitionLink,
|
|
859
|
+
inputValue,
|
|
860
|
+
onInputChange,
|
|
861
|
+
onSaveKey,
|
|
862
|
+
onVerifyKey,
|
|
863
|
+
onDeleteKey,
|
|
864
|
+
onUpdateKeyLabel
|
|
865
|
+
}) => {
|
|
866
|
+
const highlighted = isTargetedKey || isTargetedProvider;
|
|
867
|
+
return /* @__PURE__ */ jsxs15("div", { className: `flex flex-col sm:flex-row sm:items-center justify-between p-2 rounded-md border gap-2 ${isTargetedKey ? "border-cyan-400 ring-2 ring-cyan-400" : isTargetedProvider ? "border-amber-500 ring-2 ring-amber-500" : "border-slate-700/60"}`, "data-highlighted": highlighted, children: [
|
|
868
|
+
/* @__PURE__ */ jsx15("div", { className: "flex items-center gap-2 shrink-0", children: /* @__PURE__ */ jsx15("span", { className: "font-bold text-[10px] w-20", children: providerMeta.name.split(" ")[0].toUpperCase() }) }),
|
|
869
|
+
providerKey ? /* @__PURE__ */ jsx15(ExistingKeyControl, { providerKey, usageStats, onVerifyKey, onDeleteKey, onUpdateKeyLabel }) : /* @__PURE__ */ jsxs15("div", { className: "flex items-center flex-1 gap-2", children: [
|
|
870
|
+
/* @__PURE__ */ jsx15(BaseInput, { type: "password", placeholder: `Paste ${providerMeta.name.split(" ")[0]} Key`, value: inputValue, onChange: (e) => onInputChange(e.target.value), className: "flex-1 text-[10px]" }),
|
|
871
|
+
/* @__PURE__ */ jsx15(BaseButton, { size: "sm", variant: "accent", onClick: onSaveKey, disabled: !inputValue.trim(), children: /* @__PURE__ */ jsx15(Plus2, { size: 12 }) }),
|
|
872
|
+
acquisitionLink && /* @__PURE__ */ jsx15("a", { href: acquisitionLink, target: "_blank", rel: "noreferrer", className: "p-1 rounded border border-slate-700", children: /* @__PURE__ */ jsx15(ExternalLink, { size: 12 }) })
|
|
873
|
+
] })
|
|
874
|
+
] });
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
// src/components/ai/key-manager/EmailProfileCard.tsx
|
|
878
|
+
import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
879
|
+
var EmailProfileCard = ({
|
|
880
|
+
email,
|
|
881
|
+
providers,
|
|
882
|
+
keys,
|
|
883
|
+
usageStats,
|
|
884
|
+
targetKeyId,
|
|
885
|
+
targetProviderId,
|
|
886
|
+
onAddKey,
|
|
887
|
+
onVerifyKey,
|
|
888
|
+
onDeleteKey,
|
|
889
|
+
onUpdateKeyLabel,
|
|
890
|
+
getAcquisitionLink
|
|
891
|
+
}) => {
|
|
892
|
+
const [inputs, setInputs] = useState9({});
|
|
893
|
+
return /* @__PURE__ */ jsxs16("div", { className: "p-4 rounded-xl border-2 border-slate-700 bg-slate-50/80 dark:bg-slate-900/80 font-mono text-xs space-y-3", children: [
|
|
894
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2 pb-2 border-b border-slate-700/20", children: [
|
|
895
|
+
/* @__PURE__ */ jsx16(Mail, { size: 14 }),
|
|
896
|
+
/* @__PURE__ */ jsx16("span", { className: "font-bold text-sm", children: email })
|
|
897
|
+
] }),
|
|
898
|
+
/* @__PURE__ */ jsx16("div", { className: "space-y-2", children: providers.map((provider) => {
|
|
899
|
+
const key = keys.find((entry) => entry.label === email && entry.providerId === provider.id);
|
|
900
|
+
return /* @__PURE__ */ jsx16(
|
|
901
|
+
EmailProviderRow,
|
|
902
|
+
{
|
|
903
|
+
email,
|
|
904
|
+
providerMeta: provider,
|
|
905
|
+
providerKey: key,
|
|
906
|
+
usageStats,
|
|
907
|
+
isTargetedKey: Boolean(targetKeyId && key?.id === targetKeyId),
|
|
908
|
+
isTargetedProvider: Boolean(!targetKeyId && targetProviderId && provider.id === targetProviderId && key),
|
|
909
|
+
acquisitionLink: getAcquisitionLink?.(provider.id),
|
|
910
|
+
inputValue: inputs[provider.id] || "",
|
|
911
|
+
onInputChange: (value) => setInputs((current) => ({ ...current, [provider.id]: value })),
|
|
912
|
+
onSaveKey: () => {
|
|
913
|
+
const value = inputs[provider.id]?.trim();
|
|
914
|
+
if (!value) return;
|
|
915
|
+
onAddKey({ providerId: provider.id, label: email, key: value });
|
|
916
|
+
setInputs((current) => ({ ...current, [provider.id]: "" }));
|
|
917
|
+
},
|
|
918
|
+
onVerifyKey,
|
|
919
|
+
onDeleteKey,
|
|
920
|
+
onUpdateKeyLabel
|
|
921
|
+
},
|
|
922
|
+
provider.id
|
|
923
|
+
);
|
|
924
|
+
}) })
|
|
925
|
+
] });
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
// src/components/ai/key-manager/EmailProfileRegistrationForm.tsx
|
|
929
|
+
import { Plus as Plus3 } from "lucide-react";
|
|
930
|
+
import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
931
|
+
var EmailProfileRegistrationForm = ({
|
|
932
|
+
value,
|
|
933
|
+
onChange,
|
|
934
|
+
onSubmit,
|
|
935
|
+
placeholder = "Register Email Profile"
|
|
936
|
+
}) => /* @__PURE__ */ jsxs17("form", { onSubmit, className: "p-3 rounded-lg border-2 border-slate-700 bg-slate-200/40 dark:bg-slate-800/40 flex items-center gap-2 font-mono text-xs", children: [
|
|
937
|
+
/* @__PURE__ */ jsx17(BaseInput, { type: "email", placeholder, value, onChange: (e) => onChange(e.target.value), className: "flex-1" }),
|
|
938
|
+
/* @__PURE__ */ jsx17(BaseButton, { type: "submit", variant: "accent", disabled: !value.trim(), children: /* @__PURE__ */ jsx17(Plus3, { size: 14 }) })
|
|
939
|
+
] });
|
|
940
|
+
|
|
941
|
+
// src/components/ai/chat/AgentExecutionCard.tsx
|
|
942
|
+
import { Terminal, CheckCircle2 as CheckCircle22, Clock, AlertCircle as AlertCircle3 } from "lucide-react";
|
|
943
|
+
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
640
944
|
var AgentExecutionCard = ({
|
|
641
945
|
agentName,
|
|
642
946
|
status,
|
|
@@ -644,31 +948,31 @@ var AgentExecutionCard = ({
|
|
|
644
948
|
durationMs,
|
|
645
949
|
outputPreview
|
|
646
950
|
}) => {
|
|
647
|
-
return /* @__PURE__ */
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
/* @__PURE__ */
|
|
650
|
-
/* @__PURE__ */
|
|
651
|
-
/* @__PURE__ */
|
|
652
|
-
toolName && /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ jsxs18("div", { className: "p-3 rounded-xl border border-slate-300 dark:border-slate-800 bg-slate-50 dark:bg-slate-900/40 font-mono text-xs space-y-2", children: [
|
|
952
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between", children: [
|
|
953
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
|
|
954
|
+
/* @__PURE__ */ jsx18(Terminal, { size: 14, className: "text-indigo-500" }),
|
|
955
|
+
/* @__PURE__ */ jsx18("span", { className: "font-bold text-slate-800 dark:text-slate-200", children: agentName }),
|
|
956
|
+
toolName && /* @__PURE__ */ jsx18("span", { className: "text-[10px] px-1.5 py-0.5 rounded bg-indigo-50 dark:bg-indigo-950 text-indigo-600 dark:text-indigo-400 border border-indigo-200 dark:border-indigo-800", children: toolName })
|
|
653
957
|
] }),
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
durationMs !== void 0 && /* @__PURE__ */
|
|
656
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
|
|
959
|
+
durationMs !== void 0 && /* @__PURE__ */ jsxs18("span", { className: "flex items-center gap-1 text-[10px] text-slate-400", children: [
|
|
960
|
+
/* @__PURE__ */ jsx18(Clock, { size: 10 }),
|
|
657
961
|
durationMs,
|
|
658
962
|
"ms"
|
|
659
963
|
] }),
|
|
660
|
-
status === "completed" && /* @__PURE__ */
|
|
661
|
-
status === "failed" && /* @__PURE__ */
|
|
662
|
-
status === "running" && /* @__PURE__ */
|
|
964
|
+
status === "completed" && /* @__PURE__ */ jsx18(CheckCircle22, { size: 14, className: "text-emerald-500" }),
|
|
965
|
+
status === "failed" && /* @__PURE__ */ jsx18(AlertCircle3, { size: 14, className: "text-rose-500" }),
|
|
966
|
+
status === "running" && /* @__PURE__ */ jsx18("div", { className: "w-3 h-3 rounded-full border-2 border-indigo-500 border-t-transparent animate-spin" })
|
|
663
967
|
] })
|
|
664
968
|
] }),
|
|
665
|
-
outputPreview && /* @__PURE__ */
|
|
969
|
+
outputPreview && /* @__PURE__ */ jsx18("pre", { className: "p-2 rounded bg-slate-900 text-slate-100 text-[10.5px] overflow-x-auto max-h-24", children: outputPreview })
|
|
666
970
|
] });
|
|
667
971
|
};
|
|
668
972
|
|
|
669
973
|
// src/components/ai/chat/DirectChatHeader.tsx
|
|
670
974
|
import { Bot, RotateCcw } from "lucide-react";
|
|
671
|
-
import { jsx as
|
|
975
|
+
import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
672
976
|
var DirectChatHeader = ({
|
|
673
977
|
title = "AI Assistant",
|
|
674
978
|
modelName,
|
|
@@ -676,14 +980,14 @@ var DirectChatHeader = ({
|
|
|
676
980
|
onClearHistory,
|
|
677
981
|
actionsSlot
|
|
678
982
|
}) => {
|
|
679
|
-
return /* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
/* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
modelName && /* @__PURE__ */
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
providerId && /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ jsxs19("div", { className: "flex items-center justify-between px-4 py-2.5 border-b border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 font-mono text-xs", children: [
|
|
984
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2.5", children: [
|
|
985
|
+
/* @__PURE__ */ jsx19("div", { className: "w-7 h-7 rounded-lg bg-indigo-50 dark:bg-indigo-950 flex items-center justify-center text-indigo-600 dark:text-indigo-400", children: /* @__PURE__ */ jsx19(Bot, { size: 16 }) }),
|
|
986
|
+
/* @__PURE__ */ jsxs19("div", { children: [
|
|
987
|
+
/* @__PURE__ */ jsx19("div", { className: "font-bold text-slate-900 dark:text-slate-100", children: title }),
|
|
988
|
+
modelName && /* @__PURE__ */ jsxs19("div", { className: "text-[10px] text-slate-400 flex items-center gap-1.5", children: [
|
|
989
|
+
/* @__PURE__ */ jsx19("span", { children: modelName }),
|
|
990
|
+
providerId && /* @__PURE__ */ jsxs19("span", { className: "uppercase font-semibold", children: [
|
|
687
991
|
"(",
|
|
688
992
|
providerId,
|
|
689
993
|
")"
|
|
@@ -691,9 +995,9 @@ var DirectChatHeader = ({
|
|
|
691
995
|
] })
|
|
692
996
|
] })
|
|
693
997
|
] }),
|
|
694
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
|
|
695
999
|
actionsSlot,
|
|
696
|
-
onClearHistory && /* @__PURE__ */
|
|
1000
|
+
onClearHistory && /* @__PURE__ */ jsx19(
|
|
697
1001
|
BaseButton,
|
|
698
1002
|
{
|
|
699
1003
|
size: "sm",
|
|
@@ -701,7 +1005,7 @@ var DirectChatHeader = ({
|
|
|
701
1005
|
onClick: onClearHistory,
|
|
702
1006
|
title: "Clear Chat History",
|
|
703
1007
|
className: "p-1 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200",
|
|
704
|
-
children: /* @__PURE__ */
|
|
1008
|
+
children: /* @__PURE__ */ jsx19(RotateCcw, { size: 13 })
|
|
705
1009
|
}
|
|
706
1010
|
)
|
|
707
1011
|
] })
|
|
@@ -710,31 +1014,31 @@ var DirectChatHeader = ({
|
|
|
710
1014
|
|
|
711
1015
|
// src/components/ai/chat/DirectChatMessageList.tsx
|
|
712
1016
|
import { User, Bot as Bot2 } from "lucide-react";
|
|
713
|
-
import { jsx as
|
|
1017
|
+
import { jsx as jsx20, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
714
1018
|
var DirectChatMessageList = ({
|
|
715
1019
|
messages,
|
|
716
1020
|
isStreaming = false,
|
|
717
1021
|
className = ""
|
|
718
1022
|
}) => {
|
|
719
|
-
return /* @__PURE__ */
|
|
720
|
-
messages.length === 0 ? /* @__PURE__ */
|
|
721
|
-
/* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
1023
|
+
return /* @__PURE__ */ jsxs20("div", { className: `space-y-4 p-4 overflow-y-auto font-mono text-xs ${className}`, children: [
|
|
1024
|
+
messages.length === 0 ? /* @__PURE__ */ jsxs20("div", { className: "h-full flex flex-col items-center justify-center text-center text-slate-400 p-8 space-y-2", children: [
|
|
1025
|
+
/* @__PURE__ */ jsx20(Bot2, { size: 28, className: "opacity-40" }),
|
|
1026
|
+
/* @__PURE__ */ jsx20("p", { children: "No messages yet. Send a prompt to start conversation." })
|
|
723
1027
|
] }) : messages.map((m) => {
|
|
724
1028
|
const isUser = m.role === "user";
|
|
725
|
-
return /* @__PURE__ */
|
|
1029
|
+
return /* @__PURE__ */ jsxs20(
|
|
726
1030
|
"div",
|
|
727
1031
|
{
|
|
728
1032
|
className: `flex gap-3 ${isUser ? "justify-end" : "justify-start"}`,
|
|
729
1033
|
children: [
|
|
730
|
-
!isUser && /* @__PURE__ */
|
|
731
|
-
/* @__PURE__ */
|
|
1034
|
+
!isUser && /* @__PURE__ */ jsx20("div", { className: "w-6 h-6 rounded-full bg-indigo-50 dark:bg-indigo-950 text-indigo-600 dark:text-indigo-400 flex items-center justify-center shrink-0 mt-0.5", children: /* @__PURE__ */ jsx20(Bot2, { size: 13 }) }),
|
|
1035
|
+
/* @__PURE__ */ jsxs20(
|
|
732
1036
|
"div",
|
|
733
1037
|
{
|
|
734
1038
|
className: `max-w-[80%] rounded-xl p-3 border leading-relaxed ${isUser ? "bg-indigo-600 text-white border-indigo-700" : "bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200 border-slate-300 dark:border-slate-800 shadow-sm"}`,
|
|
735
1039
|
children: [
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
m.timestamp && /* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ jsx20("div", { className: "whitespace-pre-wrap", children: m.content }),
|
|
1041
|
+
m.timestamp && /* @__PURE__ */ jsx20(
|
|
738
1042
|
"div",
|
|
739
1043
|
{
|
|
740
1044
|
className: `text-[9px] mt-1 text-right ${isUser ? "text-indigo-200" : "text-slate-400"}`,
|
|
@@ -744,30 +1048,30 @@ var DirectChatMessageList = ({
|
|
|
744
1048
|
]
|
|
745
1049
|
}
|
|
746
1050
|
),
|
|
747
|
-
isUser && /* @__PURE__ */
|
|
1051
|
+
isUser && /* @__PURE__ */ jsx20("div", { className: "w-6 h-6 rounded-full bg-slate-200 dark:bg-slate-800 text-slate-700 dark:text-slate-300 flex items-center justify-center shrink-0 mt-0.5", children: /* @__PURE__ */ jsx20(User, { size: 13 }) })
|
|
748
1052
|
]
|
|
749
1053
|
},
|
|
750
1054
|
m.id
|
|
751
1055
|
);
|
|
752
1056
|
}),
|
|
753
|
-
isStreaming && /* @__PURE__ */
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
/* @__PURE__ */
|
|
1057
|
+
isStreaming && /* @__PURE__ */ jsxs20("div", { className: "flex gap-3 justify-start items-center text-slate-400 text-[11px]", children: [
|
|
1058
|
+
/* @__PURE__ */ jsx20("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-ping" }),
|
|
1059
|
+
/* @__PURE__ */ jsx20("span", { children: "Generating response..." })
|
|
756
1060
|
] })
|
|
757
1061
|
] });
|
|
758
1062
|
};
|
|
759
1063
|
|
|
760
1064
|
// src/components/ai/chat/DirectChatInput.tsx
|
|
761
|
-
import { useState as
|
|
1065
|
+
import { useState as useState10 } from "react";
|
|
762
1066
|
import { Send } from "lucide-react";
|
|
763
|
-
import { jsx as
|
|
1067
|
+
import { jsx as jsx21, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
764
1068
|
var DirectChatInput = ({
|
|
765
1069
|
onSendMessage,
|
|
766
1070
|
disabled = false,
|
|
767
1071
|
placeholder = "Type a prompt... (Shift+Enter for new line)",
|
|
768
1072
|
toolsSlot
|
|
769
1073
|
}) => {
|
|
770
|
-
const [content, setContent] =
|
|
1074
|
+
const [content, setContent] = useState10("");
|
|
771
1075
|
const handleKeyDown = (e) => {
|
|
772
1076
|
if (e.key === "Enter" && !e.shiftKey) {
|
|
773
1077
|
e.preventDefault();
|
|
@@ -779,10 +1083,10 @@ var DirectChatInput = ({
|
|
|
779
1083
|
onSendMessage(content.trim());
|
|
780
1084
|
setContent("");
|
|
781
1085
|
};
|
|
782
|
-
return /* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ jsxs21("div", { className: "p-3 border-t border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 font-mono text-xs", children: [
|
|
1087
|
+
/* @__PURE__ */ jsx21("div", { className: "flex items-center justify-between pb-2", children: /* @__PURE__ */ jsx21("div", { className: "flex items-center gap-2", children: toolsSlot }) }),
|
|
1088
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-end gap-2", children: [
|
|
1089
|
+
/* @__PURE__ */ jsx21("div", { className: "flex-1", children: /* @__PURE__ */ jsx21(
|
|
786
1090
|
BaseTextarea,
|
|
787
1091
|
{
|
|
788
1092
|
value: content,
|
|
@@ -793,14 +1097,14 @@ var DirectChatInput = ({
|
|
|
793
1097
|
rows: 2
|
|
794
1098
|
}
|
|
795
1099
|
) }),
|
|
796
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ jsx21(
|
|
797
1101
|
BaseButton,
|
|
798
1102
|
{
|
|
799
1103
|
variant: "accent",
|
|
800
1104
|
onClick: handleSend,
|
|
801
1105
|
disabled: disabled || !content.trim(),
|
|
802
1106
|
className: "p-2.5 h-[42px] flex items-center justify-center shrink-0",
|
|
803
|
-
children: /* @__PURE__ */
|
|
1107
|
+
children: /* @__PURE__ */ jsx21(Send, { size: 15 })
|
|
804
1108
|
}
|
|
805
1109
|
)
|
|
806
1110
|
] })
|
|
@@ -808,9 +1112,9 @@ var DirectChatInput = ({
|
|
|
808
1112
|
};
|
|
809
1113
|
|
|
810
1114
|
// src/components/ai/execution-status/TimelineScrubber.tsx
|
|
811
|
-
import { useEffect, useRef, useState as
|
|
1115
|
+
import { useEffect as useEffect2, useRef, useState as useState11 } from "react";
|
|
812
1116
|
import { Play as Play2, Pause, SkipBack, SkipForward, Clock as Clock2 } from "lucide-react";
|
|
813
|
-
import { jsx as
|
|
1117
|
+
import { jsx as jsx22, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
814
1118
|
var TimelineScrubber = ({
|
|
815
1119
|
logs,
|
|
816
1120
|
currentIndex,
|
|
@@ -818,14 +1122,14 @@ var TimelineScrubber = ({
|
|
|
818
1122
|
isPlaying: controlledIsPlaying,
|
|
819
1123
|
onPlayPauseToggle
|
|
820
1124
|
}) => {
|
|
821
|
-
const [internalPlaying, setInternalPlaying] =
|
|
1125
|
+
const [internalPlaying, setInternalPlaying] = useState11(false);
|
|
822
1126
|
const isPlaying = controlledIsPlaying !== void 0 ? controlledIsPlaying : internalPlaying;
|
|
823
1127
|
const playIntervalRef = useRef(null);
|
|
824
1128
|
const togglePlay = (p) => {
|
|
825
1129
|
if (onPlayPauseToggle) onPlayPauseToggle(p);
|
|
826
1130
|
else setInternalPlaying(p);
|
|
827
1131
|
};
|
|
828
|
-
|
|
1132
|
+
useEffect2(() => {
|
|
829
1133
|
if (isPlaying) {
|
|
830
1134
|
playIntervalRef.current = setInterval(() => {
|
|
831
1135
|
if (logs.length > 0) {
|
|
@@ -842,13 +1146,13 @@ var TimelineScrubber = ({
|
|
|
842
1146
|
if (logs.length === 0) return null;
|
|
843
1147
|
const currentLog = logs[currentIndex];
|
|
844
1148
|
const progressPercent = currentIndex / Math.max(1, logs.length - 1) * 100;
|
|
845
|
-
return /* @__PURE__ */
|
|
846
|
-
/* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ jsxs22("div", { className: "border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 rounded-xl p-3 font-mono text-xs space-y-3 shadow-sm", children: [
|
|
1150
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200 dark:border-slate-800", children: [
|
|
1151
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
|
|
1152
|
+
/* @__PURE__ */ jsx22(Clock2, { size: 14, className: "text-amber-500" }),
|
|
1153
|
+
/* @__PURE__ */ jsx22("span", { className: "font-bold text-slate-800 dark:text-slate-200", children: "TIMELINE RECONSTRUCTION" })
|
|
850
1154
|
] }),
|
|
851
|
-
currentLog && /* @__PURE__ */
|
|
1155
|
+
currentLog && /* @__PURE__ */ jsxs22("span", { className: "text-[10px] text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-950/60 border border-amber-300 dark:border-amber-800 rounded px-1.5 py-0.5", children: [
|
|
852
1156
|
"Frame ",
|
|
853
1157
|
currentIndex + 1,
|
|
854
1158
|
"/",
|
|
@@ -859,15 +1163,15 @@ var TimelineScrubber = ({
|
|
|
859
1163
|
currentLog.modelId || "N/A"
|
|
860
1164
|
] })
|
|
861
1165
|
] }),
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
1166
|
+
/* @__PURE__ */ jsxs22("div", { className: "relative h-4 flex items-center", children: [
|
|
1167
|
+
/* @__PURE__ */ jsx22("div", { className: "absolute inset-x-0 h-1.5 bg-slate-200 dark:bg-slate-800 rounded-full overflow-hidden", children: /* @__PURE__ */ jsx22(
|
|
864
1168
|
"div",
|
|
865
1169
|
{
|
|
866
1170
|
className: "h-full bg-amber-500 transition-all duration-150",
|
|
867
1171
|
style: { width: `${progressPercent}%` }
|
|
868
1172
|
}
|
|
869
1173
|
) }),
|
|
870
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ jsx22(
|
|
871
1175
|
"input",
|
|
872
1176
|
{
|
|
873
1177
|
type: "range",
|
|
@@ -881,7 +1185,7 @@ var TimelineScrubber = ({
|
|
|
881
1185
|
className: "absolute inset-x-0 w-full h-full opacity-0 cursor-pointer z-10"
|
|
882
1186
|
}
|
|
883
1187
|
),
|
|
884
|
-
/* @__PURE__ */
|
|
1188
|
+
/* @__PURE__ */ jsx22(
|
|
885
1189
|
"div",
|
|
886
1190
|
{
|
|
887
1191
|
className: "absolute w-3 h-3 bg-amber-500 border border-white dark:border-slate-900 rounded-full pointer-events-none transition-all duration-150",
|
|
@@ -889,8 +1193,8 @@ var TimelineScrubber = ({
|
|
|
889
1193
|
}
|
|
890
1194
|
)
|
|
891
1195
|
] }),
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
1196
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center justify-center gap-3 pt-1", children: [
|
|
1197
|
+
/* @__PURE__ */ jsx22(
|
|
894
1198
|
BaseButton,
|
|
895
1199
|
{
|
|
896
1200
|
size: "sm",
|
|
@@ -901,20 +1205,20 @@ var TimelineScrubber = ({
|
|
|
901
1205
|
},
|
|
902
1206
|
disabled: currentIndex === 0,
|
|
903
1207
|
className: "p-1",
|
|
904
|
-
children: /* @__PURE__ */
|
|
1208
|
+
children: /* @__PURE__ */ jsx22(SkipBack, { size: 13 })
|
|
905
1209
|
}
|
|
906
1210
|
),
|
|
907
|
-
/* @__PURE__ */
|
|
1211
|
+
/* @__PURE__ */ jsx22(
|
|
908
1212
|
BaseButton,
|
|
909
1213
|
{
|
|
910
1214
|
size: "sm",
|
|
911
1215
|
variant: "accent",
|
|
912
1216
|
onClick: () => togglePlay(!isPlaying),
|
|
913
1217
|
className: "p-1.5",
|
|
914
|
-
children: isPlaying ? /* @__PURE__ */
|
|
1218
|
+
children: isPlaying ? /* @__PURE__ */ jsx22(Pause, { size: 14 }) : /* @__PURE__ */ jsx22(Play2, { size: 14 })
|
|
915
1219
|
}
|
|
916
1220
|
),
|
|
917
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ jsx22(
|
|
918
1222
|
BaseButton,
|
|
919
1223
|
{
|
|
920
1224
|
size: "sm",
|
|
@@ -925,7 +1229,7 @@ var TimelineScrubber = ({
|
|
|
925
1229
|
},
|
|
926
1230
|
disabled: currentIndex === logs.length - 1,
|
|
927
1231
|
className: "p-1",
|
|
928
|
-
children: /* @__PURE__ */
|
|
1232
|
+
children: /* @__PURE__ */ jsx22(SkipForward, { size: 13 })
|
|
929
1233
|
}
|
|
930
1234
|
)
|
|
931
1235
|
] })
|
|
@@ -944,6 +1248,13 @@ export {
|
|
|
944
1248
|
KeyProviderFilterBar,
|
|
945
1249
|
KeyModelVerificationSuite,
|
|
946
1250
|
KeyListContainer,
|
|
1251
|
+
KeyBackupExportTab,
|
|
1252
|
+
KeyBackupImportTab,
|
|
1253
|
+
KeyBackupModal,
|
|
1254
|
+
ExistingKeyControl,
|
|
1255
|
+
EmailProviderRow,
|
|
1256
|
+
EmailProfileCard,
|
|
1257
|
+
EmailProfileRegistrationForm,
|
|
947
1258
|
AgentExecutionCard,
|
|
948
1259
|
DirectChatHeader,
|
|
949
1260
|
DirectChatMessageList,
|