@qredence/fleet 0.5.5 → 0.5.7
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/CHANGELOG.md +12 -0
- package/dist/web/client/assets/action-swap-roll-BB8DFMuf.js +1 -0
- package/dist/web/client/assets/agent-activity-CDcDNVC6.js +1 -0
- package/dist/web/client/assets/agent-disclosure-B8SnhQXL.js +1 -0
- package/dist/web/client/assets/analytics-stub-B8MIkiDB.js +1 -0
- package/dist/web/client/assets/artifacts-panel-CmHYXfoo.js +1 -0
- package/dist/web/client/assets/button-BV9NafmI.js +1 -0
- package/dist/web/client/assets/chat-command-palette-DiG-i3uJ.js +1 -0
- package/dist/web/client/assets/check-JjHKAZas.js +1 -0
- package/dist/web/client/assets/chevron-up-CnSvySGH.js +1 -0
- package/dist/web/client/assets/circle-alert-CONlFReH.js +1 -0
- package/dist/web/client/assets/circle-x-CkKCB__4.js +1 -0
- package/dist/web/client/assets/citations-CpTFUvx7.js +2 -0
- package/dist/web/client/assets/collapsible-BoXtZZWN.js +1 -0
- package/dist/web/client/assets/command-Cx-UYeQ9.js +1 -0
- package/dist/web/client/assets/createBaseUIEventDetails-DV0dQrBX.js +1 -0
- package/dist/web/client/assets/dialog-Dh7WpGIu.js +1 -0
- package/dist/web/client/assets/dist-BPaFisIZ.js +41 -0
- package/dist/web/client/assets/earth-DGZXAN5r.js +1 -0
- package/dist/web/client/assets/ease-u56MhKYS.js +1 -0
- package/dist/web/client/assets/file-text-T-NcAlZs.js +1 -0
- package/dist/web/client/assets/fleet-message-queue-B6zAK-hX.js +1 -0
- package/dist/web/client/assets/{fleet-pi-tool-renderer-B0Y7ou0U.js → fleet-pi-tool-renderer-Btq9mDUe.js} +28 -28
- package/dist/web/client/assets/fleet-reasoning-panel-MtbSdoCv.js +1 -0
- package/dist/web/client/assets/fleet-subagent-list-iszvrvy_.js +1 -0
- package/dist/web/client/assets/fleet-tool-timeline-COzPrwr8.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-C2cVJUbf.js → fork-picker-dialog-CAhWx0G5.js} +1 -1
- package/dist/web/client/assets/gauge-DNpstbBn.js +1 -0
- package/dist/web/client/assets/generative-text-renderer-C1JrmYfx.js +6 -0
- package/dist/web/client/assets/globals-Bfr0jrPq.css +2 -0
- package/dist/web/client/assets/horizontal-resize-Bl3AyBJg.js +1 -0
- package/dist/web/client/assets/image-BbPmlw-n.js +1 -0
- package/dist/web/client/assets/index-QgUwd4m8.js +12 -0
- package/dist/web/client/assets/input-Bol3TP4v.js +1 -0
- package/dist/web/client/assets/input-group-D5gi9zBK.js +1 -0
- package/dist/web/client/assets/{markdown-DG7pUdsX.js → markdown-RD_ydkyD.js} +2 -2
- package/dist/web/client/assets/{markdown-code-BgMzpy7O.js → markdown-code-ETqXqY8E.js} +1 -1
- package/dist/web/client/assets/message-square-hbDao-A1.js +1 -0
- package/dist/web/client/assets/model-selector-list-CJY9pyt2.js +1 -0
- package/dist/web/client/assets/notify-DKTqXChG.js +1 -0
- package/dist/web/client/assets/{openui-renderer-CCfQqUfE.js → openui-renderer-BZMghkzQ.js} +7 -7
- package/dist/web/client/assets/prompt-suggestions-CXM6knMK.js +1 -0
- package/dist/web/client/assets/provider-catalog-CHKFGwHr.js +1 -0
- package/dist/web/client/assets/provider-label-KkqVX1CI.js +1 -0
- package/dist/web/client/assets/range-BWOHiLNe.js +1 -0
- package/dist/web/client/assets/refresh-cw-IThTJ3j-.js +1 -0
- package/dist/web/client/assets/{resource-helpers-ULlyU8qK.js → resource-helpers-Q2T0YCMO.js} +1 -1
- package/dist/web/client/assets/resources-panel-Bo8dfUdm.js +1 -0
- package/dist/web/client/assets/right-panel-context-B2VAZ2p4.js +1 -0
- package/dist/web/client/assets/right-panel-registry-C5fQcBKw.js +2 -0
- package/dist/web/client/assets/routes-C1hRkRkv.js +16 -0
- package/dist/web/client/assets/safe-external-url-D3PJJIcM.js +1 -0
- package/dist/web/client/assets/settings-dialog-CvvM6T0m.js +1 -0
- package/dist/web/client/assets/{sparkles-C5H3Jtgf.js → shield-check-CkA2viVW.js} +1 -1
- package/dist/web/client/assets/{skeleton-loaders-fStjEeRP.js → skeleton-loaders-DjGv9LLA.js} +1 -1
- package/dist/web/client/assets/sparkles-DuclzqlE.js +1 -0
- package/dist/web/client/assets/{subagent-chat-panel-D-qw4uWb.js → subagent-chat-panel-tGCg6gcn.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-NO0PR8RU.js +1 -0
- package/dist/web/client/assets/subagent-utils-CQbaJ1g-.js +1 -0
- package/dist/web/client/assets/subagents-panel-BkFLsQQY.js +1 -0
- package/dist/web/client/assets/surfaces-cW-gp56p.js +1 -0
- package/dist/web/client/assets/switch-CcOFiQBK.js +1 -0
- package/dist/web/client/assets/terminal-DOS1s1gm.js +1 -0
- package/dist/web/client/assets/toast-ATq44uAL.js +1 -0
- package/dist/web/client/assets/tool-result-pklnrxSW.js +4 -0
- package/dist/web/client/assets/use-reduced-motion-eORd7fqW.js +9 -0
- package/dist/web/client/assets/useBaseUiId-CHqXB2UQ.js +1 -0
- package/dist/web/client/assets/useControlled-CJJ9BOQB.js +1 -0
- package/dist/web/client/assets/workspace-panel-BmMW7h7b.js +1 -0
- package/dist/web/client/assets/wrench-BJNNe07k.js +1 -0
- package/dist/web/client/assets/x-CsRC_tCI.js +1 -0
- package/dist/web/client/bundle-budget.json +10 -0
- package/dist/web/server/{_tanstack-start-manifest_v-DZc7dwm7-6ZQLGXB7.js → _tanstack-start-manifest_v-B4BnRTa_-DR7WQTT5.js} +35 -27
- package/dist/web/server/agent-activity-Dx6AlDhN-JXOL2EXK.js +514 -0
- package/dist/web/server/{artifacts-panel-Bt7YUzm4-NCBMXJ25.js → artifacts-panel-CloS3-ij-XWYXKL6A.js} +26 -18
- package/dist/web/server/{chat-command-palette-Co1L3rUY-RQLNME4T.js → chat-command-palette-Cc0uGvNm-GKENKTO7.js} +23 -18
- package/dist/web/server/{chunk-2V6B62OF.js → chunk-3B6M63AO.js} +12 -15
- package/dist/web/server/chunk-3D4Z32XA.js +22 -0
- package/dist/web/server/{chunk-SR65ARVS.js → chunk-3SSHBMDS.js} +16 -12
- package/dist/web/server/chunk-4PQ6OD6J.js +22 -0
- package/dist/web/server/chunk-56SEDI5N.js +19 -0
- package/dist/web/server/chunk-6QNW66XR.js +19 -0
- package/dist/web/server/chunk-744IIIDL.js +19 -0
- package/dist/web/server/{chunk-52SJQXO4.js → chunk-7PQTPSEE.js} +568 -568
- package/dist/web/server/{chunk-LSIHVSUT.js → chunk-7SR6WDM2.js} +2 -2
- package/dist/web/server/chunk-ANL4B775.js +60 -0
- package/dist/web/server/chunk-BNQWMQHD.js +35 -0
- package/dist/web/server/{chunk-BLVCDQ7E.js → chunk-C5X6G26O.js} +1 -19
- package/dist/web/server/chunk-C66BSNA6.js +42 -0
- package/dist/web/server/{chunk-XLCTCC4W.js → chunk-DEUBJJZN.js} +4 -59
- package/dist/web/server/chunk-E365EOXJ.js +35 -0
- package/dist/web/server/{chunk-5WZFFNFY.js → chunk-EFAGCVZ3.js} +2 -23
- package/dist/web/server/{chunk-56HSKUBD.js → chunk-EGQ6ZX4D.js} +23 -298
- package/dist/web/server/{chunk-TO3YPLNZ.js → chunk-EKBKGAWX.js} +12 -10
- package/dist/web/server/{chunk-5RQ6QAZX.js → chunk-F6MGAW3L.js} +2 -2
- package/dist/web/server/chunk-GABXCOY3.js +37 -0
- package/dist/web/server/chunk-GV7DJIHY.js +36 -0
- package/dist/web/server/{chunk-6D524OCJ.js → chunk-HSJMLO36.js} +6 -253
- package/dist/web/server/{chunk-46VQY7SG.js → chunk-HU4AIJV3.js} +4 -4
- package/dist/web/server/{chunk-PDRD2X5G.js → chunk-HZY3LBGP.js} +145 -1
- package/dist/web/server/{chunk-UKINNXJY.js → chunk-J6MRJXUH.js} +22 -15
- package/dist/web/server/{chunk-RX62LUDV.js → chunk-JOSTE7WK.js} +7 -5
- package/dist/web/server/{chunk-QJBEWT4E.js → chunk-K3BXQG3N.js} +27 -292
- package/dist/web/server/chunk-K4ESBQ3R.js +20 -0
- package/dist/web/server/{chunk-3HUI75QM.js → chunk-KZSM3BHO.js} +16 -107
- package/dist/web/server/chunk-L46H6IDX.js +13 -0
- package/dist/web/server/chunk-LNGWHEE6.js +206 -0
- package/dist/web/server/{chunk-WZNZQNI4.js → chunk-MOSVTKH5.js} +39 -36
- package/dist/web/server/{chunk-MDYA4NXK.js → chunk-NJRYX4A2.js} +4 -4
- package/dist/web/server/chunk-NNMZQN7Q.js +296 -0
- package/dist/web/server/{chunk-AWFOBHH4.js → chunk-NPPG2GTW.js} +7 -7
- package/dist/web/server/{chunk-Y4MHIA7B.js → chunk-PJNYH5SR.js} +7 -295
- package/dist/web/server/{chunk-7APYEQIO.js → chunk-QAE5SXDK.js} +1 -24
- package/dist/web/server/chunk-QTFCJGOY.js +189 -0
- package/dist/web/server/{chunk-AECEK3K7.js → chunk-RANJ6OJ3.js} +9 -9
- package/dist/web/server/chunk-RPBSDXJ4.js +62 -0
- package/dist/web/server/{chunk-VRLTWOVJ.js → chunk-RYHIJMFD.js} +57 -33
- package/dist/web/server/{chunk-NLIUTTKL.js → chunk-S3PQ6HKH.js} +1 -16
- package/dist/web/server/chunk-SG4W4SPQ.js +31 -0
- package/dist/web/server/{chunk-LESNF5O4.js → chunk-T23OO4SC.js} +2 -11
- package/dist/web/server/{chunk-BEMDNODD.js → chunk-UNZJQ7CY.js} +6 -4
- package/dist/web/server/chunk-V3S6BVXO.js +22 -0
- package/dist/web/server/{chunk-SZ65K4CO.js → chunk-W5GRNHV5.js} +6 -4
- package/dist/web/server/{chunk-FZRBAPUM.js → chunk-XKYEXPLQ.js} +2 -17
- package/dist/web/server/{chunk-6GMKRR3C.js → chunk-XNYQSCB2.js} +2 -2
- package/dist/web/server/chunk-YHXAXJ6I.js +22 -0
- package/dist/web/server/chunk-YLMXYMLG.js +86 -0
- package/dist/web/server/chunk-YNGDUWCF.js +56 -0
- package/dist/web/server/chunk-ZJFA4F5X.js +280 -0
- package/dist/web/server/fleet-message-queue-Bn0_3Efe-G4BZR2EU.js +74 -0
- package/dist/web/server/fleet-pi-tool-renderer-C52SZmPx-CIAH3IV7.js +51 -0
- package/dist/web/server/fleet-reasoning-panel-C_e7wzVm-SDHEWDQT.js +199 -0
- package/dist/web/server/fleet-subagent-list-CQltKswG-EKCMQHDI.js +18 -0
- package/dist/web/server/fleet-tool-timeline-KENErMKg-HTN7SW3D.js +16 -0
- package/dist/web/server/{fork-picker-dialog-DCzuGelH-TN2Q5OXI.js → fork-picker-dialog-DK9YGQuB-4QEFWRU4.js} +6 -5
- package/dist/web/server/{markdown-Boni3lHk-AZGKDNAR.js → markdown-QcSUaLyd-6DJUK5NC.js} +1 -1
- package/dist/web/server/{markdown-code-BrWukbg3-D2GN4Y77.js → markdown-code-Dyo1_13a-52ZQZSPE.js} +2 -2
- package/dist/web/server/model-selector-list-CEfWjRc--GBW2GUO6.js +289 -0
- package/dist/web/server/{openui-renderer-c36_GYes-HX46N4M5.js → openui-renderer-Dk0Ak9cW-MUJQHDAS.js} +16 -13
- package/dist/web/server/prompt-suggestions-BOmHi4-J-C563CHFU.js +30 -0
- package/dist/web/server/{resources-panel-CwKh4U9f-D3VDEMDW.js → resources-panel-B03M8bEp-SZG726N5.js} +7 -6
- package/dist/web/server/{router-_ZpegqiQ-QIE44PIB.js → router-BE9HcX2W-JMQ3JWE5.js} +39 -24
- package/dist/web/server/{routes-Ct81-8Tq-LHRMOS7R.js → routes-CJTRGB1Z-WJKXJFFT.js} +704 -1463
- package/dist/web/server/server.js +2 -2
- package/dist/web/server/{settings-dialog-B4uUS6f--AZ4I4ZOT.js → settings-dialog-yDibpbBH-TCLJ7NRJ.js} +42 -31
- package/dist/web/server/{subagent-chat-panel-C97S3WID-DLOAD5TG.js → subagent-chat-panel-B1YoZIKO-DFRUDQJ2.js} +39 -20
- package/dist/web/server/{subagents-panel-iHpvMIZy-LI6XK66M.js → subagents-panel-dJJwpsEL-FTWWCHND.js} +41 -22
- package/dist/web/server/{workspace-panel-CHPoiXEo-YB4WS3MK.js → workspace-panel-BC_H8Jri-5MHAEQQS.js} +22 -18
- package/package.json +1 -1
- package/dist/web/client/assets/action-swap-roll-DX5o_33Q.js +0 -1
- package/dist/web/client/assets/analytics-stub-Jh3lkb8P.js +0 -1
- package/dist/web/client/assets/artifacts-panel-C3yewUBP.js +0 -1
- package/dist/web/client/assets/button-0At5xSyU.js +0 -1
- package/dist/web/client/assets/chat-command-palette-D0xDK1j4.js +0 -1
- package/dist/web/client/assets/command-CQzrtjyj.js +0 -2
- package/dist/web/client/assets/dialog-DZ44tBtH.js +0 -1
- package/dist/web/client/assets/dist-MNgIFxqY.js +0 -41
- package/dist/web/client/assets/ease-vFBiNFNK.js +0 -9
- package/dist/web/client/assets/file-text-BhQ0ZnoU.js +0 -1
- package/dist/web/client/assets/generative-text-renderer-SS9c1kNX.js +0 -6
- package/dist/web/client/assets/globals-D_Hy9bT1.css +0 -2
- package/dist/web/client/assets/horizontal-resize-C1TpRLNC.js +0 -1
- package/dist/web/client/assets/index-C9FloFgj.js +0 -12
- package/dist/web/client/assets/input-CqC82Agz.js +0 -1
- package/dist/web/client/assets/input-group-H0TG-mkU.js +0 -1
- package/dist/web/client/assets/notify-Duj26eeZ.js +0 -1
- package/dist/web/client/assets/provider-catalog-BZhZuKSz.js +0 -1
- package/dist/web/client/assets/provider-label-jKm8v18u.js +0 -1
- package/dist/web/client/assets/range-65lubOFp.js +0 -2
- package/dist/web/client/assets/resources-panel-DSU7VGX2.js +0 -1
- package/dist/web/client/assets/routes-DSTyx_J0.js +0 -16
- package/dist/web/client/assets/safe-external-url-Bl_78dpZ.js +0 -1
- package/dist/web/client/assets/settings-dialog-CkfpTKfM.js +0 -1
- package/dist/web/client/assets/subagent-transcript-C7oRwEEP.js +0 -1
- package/dist/web/client/assets/subagents-panel-aSMWZP9p.js +0 -1
- package/dist/web/client/assets/switch-BFEBpUEU.js +0 -1
- package/dist/web/client/assets/toast-C4s7FYYa.js +0 -1
- package/dist/web/client/assets/tool-result-C2NvnN32.js +0 -4
- package/dist/web/client/assets/useBaseUiId-B9f7fokB.js +0 -1
- package/dist/web/client/assets/useControlled-CoY1jSuL.js +0 -1
- package/dist/web/client/assets/workspace-panel-CjdXlEvd.js +0 -1
- package/dist/web/client/assets/x-BgciQ7_C.js +0 -1
- package/dist/web/server/fleet-pi-tool-renderer-CE45vM6T-2UQN6RJM.js +0 -37
package/dist/web/server/{markdown-code-BrWukbg3-D2GN4Y77.js → markdown-code-Dyo1_13a-52ZQZSPE.js}
RENAMED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
fixNumberedListBreaks,
|
|
11
11
|
markdownComponents,
|
|
12
12
|
normalizeCodeFenceLanguages
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NJRYX4A2.js";
|
|
14
14
|
import "./chunk-BYXBJQAS.js";
|
|
15
15
|
import "./chunk-DJMHPJBP.js";
|
|
16
16
|
import {
|
|
@@ -21,7 +21,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
21
21
|
import "./chunk-L547YHC4.js";
|
|
22
22
|
import "./chunk-MLKGABMK.js";
|
|
23
23
|
|
|
24
|
-
// web/app/dist/server/assets/markdown-code-
|
|
24
|
+
// web/app/dist/server/assets/markdown-code-Dyo1_13a.js
|
|
25
25
|
import { jsx } from "react/jsx-runtime";
|
|
26
26
|
var S = createJavaScriptRegexEngine({ forgiving: true });
|
|
27
27
|
var C = Object.fromEntries(bundledLanguagesInfo.flatMap((e) => {
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Gauge
|
|
3
|
+
} from "./chunk-3D4Z32XA.js";
|
|
4
|
+
import {
|
|
5
|
+
Command,
|
|
6
|
+
CommandEmpty,
|
|
7
|
+
CommandGroup,
|
|
8
|
+
CommandInput,
|
|
9
|
+
CommandItem,
|
|
10
|
+
CommandList
|
|
11
|
+
} from "./chunk-PJNYH5SR.js";
|
|
12
|
+
import "./chunk-DEUBJJZN.js";
|
|
13
|
+
import "./chunk-2H6A6Z7F.js";
|
|
14
|
+
import {
|
|
15
|
+
SPRING_GLIDE,
|
|
16
|
+
m
|
|
17
|
+
} from "./chunk-K3BXQG3N.js";
|
|
18
|
+
import "./chunk-FAGDMGLK.js";
|
|
19
|
+
import "./chunk-7PQTPSEE.js";
|
|
20
|
+
import "./chunk-NPPG2GTW.js";
|
|
21
|
+
import "./chunk-JOSTE7WK.js";
|
|
22
|
+
import "./chunk-F6MGAW3L.js";
|
|
23
|
+
import {
|
|
24
|
+
Check
|
|
25
|
+
} from "./chunk-6QNW66XR.js";
|
|
26
|
+
import "./chunk-S3PQ6HKH.js";
|
|
27
|
+
import "./chunk-7SR6WDM2.js";
|
|
28
|
+
import "./chunk-YHXAXJ6I.js";
|
|
29
|
+
import "./chunk-C5X6G26O.js";
|
|
30
|
+
import "./chunk-E26EAQIM.js";
|
|
31
|
+
import {
|
|
32
|
+
cn
|
|
33
|
+
} from "./chunk-DJMHPJBP.js";
|
|
34
|
+
import "./chunk-JDCCC7A7.js";
|
|
35
|
+
import "./chunk-L547YHC4.js";
|
|
36
|
+
import "./chunk-MLKGABMK.js";
|
|
37
|
+
|
|
38
|
+
// web/app/dist/server/assets/model-selector-list-CEfWjRc-.js
|
|
39
|
+
import { useId, useMemo, useState } from "react";
|
|
40
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
41
|
+
function clamp(value, min, max) {
|
|
42
|
+
return Math.min(max, Math.max(min, value));
|
|
43
|
+
}
|
|
44
|
+
function Slider({ value, onChange, min = 0, max = 100, step = 1, label, formatValue = String, disabled = false, className, ...props }) {
|
|
45
|
+
const inputId = useId();
|
|
46
|
+
const [focused, setFocused] = useState(false);
|
|
47
|
+
const [hovered, setHovered] = useState(false);
|
|
48
|
+
const safeMax = Math.max(min, max);
|
|
49
|
+
const safeStep = Math.max(Number.EPSILON, step);
|
|
50
|
+
const clampedValue = clamp(value, min, safeMax);
|
|
51
|
+
const normalized = safeMax === min ? 0 : (clampedValue - min) / (safeMax - min);
|
|
52
|
+
const percent = normalized * 100;
|
|
53
|
+
const zeroOffset = normalized === 0 ? 8 : 0;
|
|
54
|
+
const fillWidth = `calc(${percent}% + ${20 - 20 * normalized - zeroOffset * 2.5}px)`;
|
|
55
|
+
const handleLeft = `calc(${percent}% + ${11 - 24 * normalized}px)`;
|
|
56
|
+
const pipMaskOffset = 20 - 20 * normalized - zeroOffset * 2.5;
|
|
57
|
+
const pipMask = `linear-gradient(to right, transparent calc(${percent}% + ${pipMaskOffset}px), black calc(${percent}% + ${pipMaskOffset + 2}px))`;
|
|
58
|
+
const pipValues = useMemo(() => {
|
|
59
|
+
const count = Math.floor((safeMax - min) / safeStep);
|
|
60
|
+
const values = Array.from({ length: count + 1 }, (_, index) => min + index * safeStep);
|
|
61
|
+
if (values.at(-1) !== safeMax) values.push(safeMax);
|
|
62
|
+
return values;
|
|
63
|
+
}, [
|
|
64
|
+
min,
|
|
65
|
+
safeMax,
|
|
66
|
+
safeStep
|
|
67
|
+
]);
|
|
68
|
+
const valueText = formatValue(clampedValue);
|
|
69
|
+
const maxValueText = formatValue(safeMax);
|
|
70
|
+
const valueFromPointer = (clientX, element) => {
|
|
71
|
+
const bounds = element.getBoundingClientRect();
|
|
72
|
+
if (bounds.width <= 0 || safeMax === min) return min;
|
|
73
|
+
const nextValue = min + clamp((clientX - bounds.left) / bounds.width, 0, 1) * (safeMax - min);
|
|
74
|
+
return clamp(min + Math.round((nextValue - min) / safeStep) * safeStep, min, safeMax);
|
|
75
|
+
};
|
|
76
|
+
const handleKeyDown = (event) => {
|
|
77
|
+
let handled = true;
|
|
78
|
+
const direction = event.key === "ArrowRight" || event.key === "ArrowUp" ? 1 : event.key === "ArrowLeft" || event.key === "ArrowDown" ? -1 : 0;
|
|
79
|
+
if (direction !== 0) {
|
|
80
|
+
event.preventDefault();
|
|
81
|
+
onChange(clamp(clampedValue + direction * safeStep, min, safeMax));
|
|
82
|
+
} else if (event.key === "Home") {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
onChange(min);
|
|
85
|
+
} else if (event.key === "End") {
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
onChange(safeMax);
|
|
88
|
+
} else handled = false;
|
|
89
|
+
if (handled) event.stopPropagation();
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ jsx("div", {
|
|
92
|
+
className: cn("relative w-full touch-none", disabled && "opacity-50", className),
|
|
93
|
+
...props,
|
|
94
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
95
|
+
className: cn("relative h-8 w-full select-none touch-none overflow-hidden rounded-md border border-border bg-background outline-offset-2 transition-colors duration-150", hovered && !disabled && "border-foreground/25", focused && "border-foreground/40 ring-2 ring-ring/60 ring-offset-1 ring-offset-background"),
|
|
96
|
+
onPointerEnter: () => setHovered(true),
|
|
97
|
+
onPointerLeave: () => setHovered(false),
|
|
98
|
+
onPointerDown: (event) => {
|
|
99
|
+
if (!disabled) onChange(valueFromPointer(event.clientX, event.currentTarget));
|
|
100
|
+
},
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsx("div", {
|
|
103
|
+
"aria-hidden": "true",
|
|
104
|
+
className: "absolute inset-0 z-[1] flex items-center justify-between px-3 pointer-events-none",
|
|
105
|
+
style: {
|
|
106
|
+
WebkitMaskImage: pipMask,
|
|
107
|
+
maskImage: pipMask
|
|
108
|
+
},
|
|
109
|
+
children: pipValues.map((pipValue) => /* @__PURE__ */ jsx(m.span, {
|
|
110
|
+
className: "relative flex size-[5px] items-center justify-center rounded-full",
|
|
111
|
+
animate: {
|
|
112
|
+
backgroundColor: pipValue === clampedValue ? "var(--foreground)" : "var(--muted-foreground)",
|
|
113
|
+
opacity: pipValue === clampedValue ? 1 : 0.3
|
|
114
|
+
},
|
|
115
|
+
transition: SPRING_GLIDE
|
|
116
|
+
}, pipValue))
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ jsx(m.div, {
|
|
119
|
+
"aria-hidden": "true",
|
|
120
|
+
className: "absolute inset-y-0 left-0 z-[3] pointer-events-none bg-foreground/[0.08]",
|
|
121
|
+
layout: "size",
|
|
122
|
+
style: { width: fillWidth },
|
|
123
|
+
transition: SPRING_GLIDE
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx(m.div, {
|
|
126
|
+
"aria-hidden": "true",
|
|
127
|
+
className: cn("absolute z-[3] w-0.5 rounded-full pointer-events-none"),
|
|
128
|
+
layout: true,
|
|
129
|
+
style: {
|
|
130
|
+
left: handleLeft,
|
|
131
|
+
top: hovered || focused ? 7 : 8,
|
|
132
|
+
bottom: hovered || focused ? 7 : 8
|
|
133
|
+
},
|
|
134
|
+
animate: { backgroundColor: focused ? "var(--foreground)" : hovered ? "color-mix(in srgb, var(--foreground) 50%, transparent)" : "color-mix(in srgb, var(--foreground) 25%, transparent)" },
|
|
135
|
+
transition: SPRING_GLIDE
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsxs("div", {
|
|
138
|
+
"aria-hidden": "true",
|
|
139
|
+
className: "pointer-events-none absolute inset-0 z-[2] flex items-center px-2",
|
|
140
|
+
children: [label ? /* @__PURE__ */ jsx("span", {
|
|
141
|
+
className: "px-2 text-[13px] text-transparent select-none",
|
|
142
|
+
"aria-hidden": "true",
|
|
143
|
+
children: label
|
|
144
|
+
}) : null, /* @__PURE__ */ jsx("span", {
|
|
145
|
+
className: "ml-auto px-2 text-[13px] text-transparent tabular-nums select-none",
|
|
146
|
+
style: { minWidth: `${maxValueText.length}ch` },
|
|
147
|
+
"aria-hidden": "true",
|
|
148
|
+
children: maxValueText
|
|
149
|
+
})]
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ jsxs("div", {
|
|
152
|
+
className: "pointer-events-none absolute inset-0 z-[4] flex items-center px-2 text-[13px]",
|
|
153
|
+
children: [label ? /* @__PURE__ */ jsx(m.span, {
|
|
154
|
+
className: "px-2",
|
|
155
|
+
animate: { color: hovered || focused ? "var(--foreground)" : "var(--muted-foreground)" },
|
|
156
|
+
transition: SPRING_GLIDE,
|
|
157
|
+
children: label
|
|
158
|
+
}) : null, /* @__PURE__ */ jsx(m.span, {
|
|
159
|
+
className: "ml-auto px-2 tabular-nums",
|
|
160
|
+
style: {
|
|
161
|
+
minWidth: `${maxValueText.length}ch`,
|
|
162
|
+
textAlign: "right"
|
|
163
|
+
},
|
|
164
|
+
animate: { color: hovered || focused ? "var(--foreground)" : "var(--muted-foreground)" },
|
|
165
|
+
transition: SPRING_GLIDE,
|
|
166
|
+
children: valueText
|
|
167
|
+
})]
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ jsx("input", {
|
|
170
|
+
id: inputId,
|
|
171
|
+
type: "range",
|
|
172
|
+
min,
|
|
173
|
+
max: safeMax,
|
|
174
|
+
step: safeStep,
|
|
175
|
+
value: clampedValue,
|
|
176
|
+
disabled,
|
|
177
|
+
"aria-label": label ?? "Slider",
|
|
178
|
+
"aria-valuetext": valueText,
|
|
179
|
+
onChange: (event) => onChange(Number(event.currentTarget.value)),
|
|
180
|
+
onFocus: () => setFocused(true),
|
|
181
|
+
onBlur: () => setFocused(false),
|
|
182
|
+
onKeyDown: handleKeyDown,
|
|
183
|
+
className: "absolute inset-0 z-20 m-0 h-full w-full cursor-ew-resize opacity-0 disabled:cursor-not-allowed"
|
|
184
|
+
})
|
|
185
|
+
]
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function groupModels(models) {
|
|
190
|
+
const groups = /* @__PURE__ */ new Map();
|
|
191
|
+
for (const model of models) {
|
|
192
|
+
const group = groups.get(model.provider) ?? [];
|
|
193
|
+
group.push(model);
|
|
194
|
+
groups.set(model.provider, group);
|
|
195
|
+
}
|
|
196
|
+
return [...groups.entries()];
|
|
197
|
+
}
|
|
198
|
+
function ModelSelectorList({ models, selectedModel, selectedEffort, effortLabel, onModelChange, onEffortChange }) {
|
|
199
|
+
const groups = useMemo(() => groupModels(models), [models]);
|
|
200
|
+
return /* @__PURE__ */ jsxs(Command, {
|
|
201
|
+
className: "min-h-0 max-h-[min(55vh,28rem)] bg-transparent",
|
|
202
|
+
shouldFilter: true,
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ jsx(CommandInput, {
|
|
205
|
+
placeholder: "Search models\u2026",
|
|
206
|
+
"aria-label": "Search models"
|
|
207
|
+
}),
|
|
208
|
+
/* @__PURE__ */ jsxs(CommandList, {
|
|
209
|
+
className: "min-h-0 flex-1 p-1.5",
|
|
210
|
+
children: [/* @__PURE__ */ jsx(CommandEmpty, { children: "No matching models" }), groups.map(([provider, providerModels]) => /* @__PURE__ */ jsx(CommandGroup, {
|
|
211
|
+
heading: providerModels[0]?.providerLabel ?? provider,
|
|
212
|
+
children: providerModels.map((model) => {
|
|
213
|
+
const searchValue = [
|
|
214
|
+
model.id,
|
|
215
|
+
model.name,
|
|
216
|
+
model.provider,
|
|
217
|
+
model.providerLabel,
|
|
218
|
+
model.modelId,
|
|
219
|
+
...model.keywords ?? []
|
|
220
|
+
].filter(Boolean).join(" ");
|
|
221
|
+
const selected = model.id === selectedModel?.id;
|
|
222
|
+
return /* @__PURE__ */ jsxs(CommandItem, {
|
|
223
|
+
value: searchValue,
|
|
224
|
+
disabled: model.disabled,
|
|
225
|
+
onSelect: () => {
|
|
226
|
+
if (model.disabled) return;
|
|
227
|
+
onModelChange?.(model.id);
|
|
228
|
+
},
|
|
229
|
+
className: "items-start gap-2 rounded-lg px-2.5 py-2",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ jsx("span", {
|
|
232
|
+
className: "mt-0.5 shrink-0 text-muted-foreground",
|
|
233
|
+
children: model.icon ?? /* @__PURE__ */ jsx(Gauge, {
|
|
234
|
+
"aria-hidden": "true",
|
|
235
|
+
className: "size-4"
|
|
236
|
+
})
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ jsxs("span", {
|
|
239
|
+
className: "min-w-0 flex-1",
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ jsxs("span", {
|
|
242
|
+
className: "flex items-center gap-2",
|
|
243
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
244
|
+
className: "truncate text-sm font-medium",
|
|
245
|
+
children: model.name
|
|
246
|
+
}), model.disabled ? /* @__PURE__ */ jsx("span", {
|
|
247
|
+
className: "shrink-0 text-[10px] uppercase tracking-wide text-muted-foreground",
|
|
248
|
+
children: "Unavailable"
|
|
249
|
+
}) : null]
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ jsxs("span", {
|
|
252
|
+
className: "mt-0.5 block truncate text-xs text-muted-foreground",
|
|
253
|
+
children: [model.modelId ?? model.id, model.reasoning ? " \xB7 reasoning" : ""]
|
|
254
|
+
}),
|
|
255
|
+
model.description ? /* @__PURE__ */ jsx("span", {
|
|
256
|
+
className: "mt-0.5 block truncate text-xs text-muted-foreground/80",
|
|
257
|
+
children: model.description
|
|
258
|
+
}) : null
|
|
259
|
+
]
|
|
260
|
+
}),
|
|
261
|
+
selected ? /* @__PURE__ */ jsx(Check, {
|
|
262
|
+
"aria-hidden": "true",
|
|
263
|
+
className: "mt-1 size-4 shrink-0"
|
|
264
|
+
}) : null
|
|
265
|
+
]
|
|
266
|
+
}, model.id);
|
|
267
|
+
})
|
|
268
|
+
}, provider))]
|
|
269
|
+
}),
|
|
270
|
+
selectedModel?.reasoning && selectedModel.efforts?.length ? /* @__PURE__ */ jsx("div", {
|
|
271
|
+
className: "shrink-0 border-t border-border/70 p-2",
|
|
272
|
+
children: /* @__PURE__ */ jsx(Slider, {
|
|
273
|
+
label: effortLabel,
|
|
274
|
+
value: Math.max(0, selectedModel.efforts.findIndex((option) => option.id === selectedEffort?.id)),
|
|
275
|
+
onChange: (nextValue) => {
|
|
276
|
+
const option = selectedModel.efforts?.[Math.round(nextValue)];
|
|
277
|
+
if (option && !option.disabled) onEffortChange?.(option.id);
|
|
278
|
+
},
|
|
279
|
+
min: 0,
|
|
280
|
+
max: Math.max(0, selectedModel.efforts.length - 1),
|
|
281
|
+
formatValue: (nextValue) => selectedModel.efforts?.[Math.round(nextValue)]?.name ?? ""
|
|
282
|
+
})
|
|
283
|
+
}) : null
|
|
284
|
+
]
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
export {
|
|
288
|
+
ModelSelectorList
|
|
289
|
+
};
|
|
@@ -2,25 +2,28 @@ import {
|
|
|
2
2
|
GenerativeTextRenderer,
|
|
3
3
|
OpenUIHtmlArtifactView,
|
|
4
4
|
openui_renderer_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MOSVTKH5.js";
|
|
6
6
|
import "./chunk-WN77JNYY.js";
|
|
7
7
|
import "./chunk-KOIPYBJF.js";
|
|
8
8
|
import "./chunk-XFVL5ITL.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-52SJQXO4.js";
|
|
12
|
-
import "./chunk-AECEK3K7.js";
|
|
13
|
-
import "./chunk-TO3YPLNZ.js";
|
|
9
|
+
import "./chunk-RANJ6OJ3.js";
|
|
10
|
+
import "./chunk-EKBKGAWX.js";
|
|
14
11
|
import "./chunk-RJOANOT4.js";
|
|
12
|
+
import "./chunk-NFRJDPB3.js";
|
|
13
|
+
import "./chunk-T23OO4SC.js";
|
|
14
|
+
import "./chunk-L46H6IDX.js";
|
|
15
15
|
import "./chunk-QLY3L4A2.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7PQTPSEE.js";
|
|
17
|
+
import "./chunk-NPPG2GTW.js";
|
|
18
|
+
import "./chunk-JOSTE7WK.js";
|
|
19
|
+
import "./chunk-F6MGAW3L.js";
|
|
20
|
+
import "./chunk-6QNW66XR.js";
|
|
21
|
+
import "./chunk-S3PQ6HKH.js";
|
|
22
|
+
import "./chunk-7SR6WDM2.js";
|
|
23
|
+
import "./chunk-YHXAXJ6I.js";
|
|
24
|
+
import "./chunk-C5X6G26O.js";
|
|
22
25
|
import "./chunk-ST5I2PLN.js";
|
|
23
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-NJRYX4A2.js";
|
|
24
27
|
import "./chunk-BYXBJQAS.js";
|
|
25
28
|
import "./chunk-E26EAQIM.js";
|
|
26
29
|
import "./chunk-DJMHPJBP.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
paper
|
|
3
|
+
} from "./chunk-ANL4B775.js";
|
|
4
|
+
import {
|
|
5
|
+
cn
|
|
6
|
+
} from "./chunk-DJMHPJBP.js";
|
|
7
|
+
import "./chunk-JDCCC7A7.js";
|
|
8
|
+
import "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// web/app/dist/server/assets/prompt-suggestions-BOmHi4-J.js
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
function PromptSuggestions({ suggestions, selectedSuggestion, cycle, onSuggestion, variant = "pills", className, ...props }) {
|
|
13
|
+
const list = variant === "list";
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
"data-slot": "suggestions",
|
|
16
|
+
className: cn(list ? "flex w-full max-w-sm flex-col gap-2" : "flex w-full max-w-xl flex-wrap justify-center gap-1", className),
|
|
17
|
+
...props,
|
|
18
|
+
children: suggestions.map((suggestion, index) => /* @__PURE__ */ jsx("button", {
|
|
19
|
+
type: "button",
|
|
20
|
+
"aria-pressed": selectedSuggestion === suggestion,
|
|
21
|
+
onClick: () => onSuggestion(suggestion),
|
|
22
|
+
className: cn(paper, "fade-in slide-in-from-bottom-2 animate-in fill-mode-both flex cursor-pointer items-center text-[13px] text-foreground/80 transition-[color,transform] duration-300 hover:-translate-y-px hover:text-foreground focus-visible:text-foreground active:scale-[0.96] motion-reduce:animate-none", list ? "w-full rounded-2xl px-4 py-2.5 text-start" : "rounded-full px-4 py-2", selectedSuggestion === suggestion && "!bg-foreground !text-background hover:!text-background focus-visible:!text-background"),
|
|
23
|
+
style: { animationDelay: `${index * 70}ms` },
|
|
24
|
+
children: suggestion
|
|
25
|
+
}, suggestion))
|
|
26
|
+
}, cycle);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
PromptSuggestions
|
|
30
|
+
};
|
|
@@ -2,22 +2,23 @@ import {
|
|
|
2
2
|
ResourceChipSection,
|
|
3
3
|
ResourceNotice,
|
|
4
4
|
ResourcesSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XNYQSCB2.js";
|
|
6
6
|
import {
|
|
7
7
|
getResourceGroups
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
CircleAlert
|
|
11
|
-
} from "./chunk-7APYEQIO.js";
|
|
8
|
+
} from "./chunk-HU4AIJV3.js";
|
|
12
9
|
import "./chunk-BSFYTSN6.js";
|
|
13
10
|
import "./chunk-EAJTWMK5.js";
|
|
11
|
+
import "./chunk-QAE5SXDK.js";
|
|
12
|
+
import {
|
|
13
|
+
CircleAlert
|
|
14
|
+
} from "./chunk-GABXCOY3.js";
|
|
14
15
|
import "./chunk-ZGFQ7HIX.js";
|
|
15
16
|
import "./chunk-E26EAQIM.js";
|
|
16
17
|
import "./chunk-DJMHPJBP.js";
|
|
17
18
|
import "./chunk-JDCCC7A7.js";
|
|
18
19
|
import "./chunk-MLKGABMK.js";
|
|
19
20
|
|
|
20
|
-
// web/app/dist/server/assets/resources-panel-
|
|
21
|
+
// web/app/dist/server/assets/resources-panel-B03M8bEp.js
|
|
21
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
23
|
function ResourcesPanelContent({ error, loading, resources, workspace }) {
|
|
23
24
|
const groups = getResourceGroups(resources, workspace);
|
|
@@ -10,11 +10,9 @@ import {
|
|
|
10
10
|
QueryClient,
|
|
11
11
|
QueryClientProvider,
|
|
12
12
|
domAnimation,
|
|
13
|
+
initAnalytics,
|
|
13
14
|
isServer
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
redactSessionLabelSecrets
|
|
17
|
-
} from "./chunk-QK4CHLVV.js";
|
|
15
|
+
} from "./chunk-HZY3LBGP.js";
|
|
18
16
|
import {
|
|
19
17
|
DEFAULT_UI_PREFERENCES,
|
|
20
18
|
isModelPatternEnabled,
|
|
@@ -22,12 +20,15 @@ import {
|
|
|
22
20
|
} from "./chunk-54II5QXQ.js";
|
|
23
21
|
import {
|
|
24
22
|
Toaster
|
|
25
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-W5GRNHV5.js";
|
|
24
|
+
import {
|
|
25
|
+
redactSessionLabelSecrets
|
|
26
|
+
} from "./chunk-QK4CHLVV.js";
|
|
27
|
+
import "./chunk-PKCTG7EW.js";
|
|
26
28
|
import {
|
|
27
29
|
drag,
|
|
28
30
|
layout
|
|
29
31
|
} from "./chunk-FAGDMGLK.js";
|
|
30
|
-
import "./chunk-PKCTG7EW.js";
|
|
31
32
|
import {
|
|
32
33
|
Card,
|
|
33
34
|
CardContent,
|
|
@@ -70,8 +71,9 @@ import {
|
|
|
70
71
|
toInstanceSlug,
|
|
71
72
|
toOccInstanceId
|
|
72
73
|
} from "./chunk-RJOANOT4.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-F6MGAW3L.js";
|
|
75
|
+
import "./chunk-YHXAXJ6I.js";
|
|
76
|
+
import "./chunk-C5X6G26O.js";
|
|
75
77
|
import "./chunk-E26EAQIM.js";
|
|
76
78
|
import "./chunk-DJMHPJBP.js";
|
|
77
79
|
import {
|
|
@@ -87,7 +89,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
87
89
|
import "./chunk-L547YHC4.js";
|
|
88
90
|
import "./chunk-MLKGABMK.js";
|
|
89
91
|
|
|
90
|
-
// web/app/dist/server/assets/router-
|
|
92
|
+
// web/app/dist/server/assets/router-BE9HcX2W.js
|
|
91
93
|
import { useEffect, useLayoutEffect } from "react";
|
|
92
94
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
93
95
|
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
@@ -121,7 +123,7 @@ function NotFoundPage({ title = "404", description = "The requested page could n
|
|
|
121
123
|
})
|
|
122
124
|
});
|
|
123
125
|
}
|
|
124
|
-
var globals_default = "/assets/globals-
|
|
126
|
+
var globals_default = "/assets/globals-Bfr0jrPq.css";
|
|
125
127
|
function makeQueryClient() {
|
|
126
128
|
return new QueryClient({ defaultOptions: { queries: {
|
|
127
129
|
staleTime: 6e4,
|
|
@@ -173,6 +175,7 @@ function RootComponent() {
|
|
|
173
175
|
document.documentElement.classList.toggle("reduce-motion", preferences.motion === "reduced");
|
|
174
176
|
}, []);
|
|
175
177
|
useEffect(() => {
|
|
178
|
+
initAnalytics();
|
|
176
179
|
}, []);
|
|
177
180
|
return /* @__PURE__ */ jsx(MotionRuntime, { children: /* @__PURE__ */ jsxs(QueryClientProvider, {
|
|
178
181
|
client: getQueryClient(),
|
|
@@ -190,7 +193,7 @@ function RootDocument({ children }) {
|
|
|
190
193
|
] })]
|
|
191
194
|
});
|
|
192
195
|
}
|
|
193
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
196
|
+
var $$splitComponentImporter = () => import("./routes-CJTRGB1Z-WJKXJFFT.js");
|
|
194
197
|
var Route$26 = createFileRoute("/")({ component: lazyRouteComponent($$splitComponentImporter, "component") });
|
|
195
198
|
var ManagedAttachmentValidationError = class extends Error {
|
|
196
199
|
status;
|
|
@@ -1279,6 +1282,28 @@ function buildOpenUIPrompt(mode, options) {
|
|
|
1279
1282
|
editMode: false
|
|
1280
1283
|
});
|
|
1281
1284
|
}
|
|
1285
|
+
var CoalescingRefreshQueue = class {
|
|
1286
|
+
#inFlight = /* @__PURE__ */ new Map();
|
|
1287
|
+
#pending = /* @__PURE__ */ new Set();
|
|
1288
|
+
request(key, refresh) {
|
|
1289
|
+
this.#pending.add(key);
|
|
1290
|
+
if (this.#inFlight.has(key)) return;
|
|
1291
|
+
const run = (async () => {
|
|
1292
|
+
while (this.#pending.delete(key)) try {
|
|
1293
|
+
await refresh();
|
|
1294
|
+
} catch {
|
|
1295
|
+
}
|
|
1296
|
+
})();
|
|
1297
|
+
this.#inFlight.set(key, run);
|
|
1298
|
+
run.finally(() => {
|
|
1299
|
+
if (this.#inFlight.get(key) === run) this.#inFlight.delete(key);
|
|
1300
|
+
}).catch(() => void 0);
|
|
1301
|
+
}
|
|
1302
|
+
clear() {
|
|
1303
|
+
this.#inFlight.clear();
|
|
1304
|
+
this.#pending.clear();
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1282
1307
|
var defaultPersistence = {
|
|
1283
1308
|
mkdir: (path, options) => mkdir(path, options),
|
|
1284
1309
|
writeFile: (path, data, encoding) => writeFile(path, data, encoding),
|
|
@@ -4048,8 +4073,7 @@ var PrimeBridge = class {
|
|
|
4048
4073
|
#ringBuffers = /* @__PURE__ */ new Map();
|
|
4049
4074
|
#rlmChildStreams = /* @__PURE__ */ new Map();
|
|
4050
4075
|
#rlmChildStreamInitializations = /* @__PURE__ */ new Map();
|
|
4051
|
-
#
|
|
4052
|
-
#rlmChildMetadataRefreshPending = /* @__PURE__ */ new Set();
|
|
4076
|
+
#rlmChildMetadataRefreshQueue = new CoalescingRefreshQueue();
|
|
4053
4077
|
#dialogs;
|
|
4054
4078
|
#kernelTimeoutMs;
|
|
4055
4079
|
#ringBufferCapacity;
|
|
@@ -4143,8 +4167,7 @@ var PrimeBridge = class {
|
|
|
4143
4167
|
}
|
|
4144
4168
|
this.#rlmChildStreams.clear();
|
|
4145
4169
|
this.#rlmChildStreamInitializations.clear();
|
|
4146
|
-
this.#
|
|
4147
|
-
this.#rlmChildMetadataRefreshPending.clear();
|
|
4170
|
+
this.#rlmChildMetadataRefreshQueue.clear();
|
|
4148
4171
|
for (const session of this.#sessions.values()) {
|
|
4149
4172
|
session.unsubscribe();
|
|
4150
4173
|
session.connection.dispose().catch(() => void 0);
|
|
@@ -4429,15 +4452,7 @@ var PrimeBridge = class {
|
|
|
4429
4452
|
} : void 0;
|
|
4430
4453
|
}
|
|
4431
4454
|
#queueRlmChildMetadataRefresh(rootSessionId) {
|
|
4432
|
-
this.#
|
|
4433
|
-
if (this.#rlmChildMetadataRefreshes.has(rootSessionId)) return;
|
|
4434
|
-
const refresh = (async () => {
|
|
4435
|
-
while (this.#rlmChildMetadataRefreshPending.delete(rootSessionId)) await this.#refreshRlmChildMetadata(rootSessionId);
|
|
4436
|
-
})();
|
|
4437
|
-
this.#rlmChildMetadataRefreshes.set(rootSessionId, refresh);
|
|
4438
|
-
refresh.finally(() => {
|
|
4439
|
-
if (this.#rlmChildMetadataRefreshes.get(rootSessionId) === refresh) this.#rlmChildMetadataRefreshes.delete(rootSessionId);
|
|
4440
|
-
}).catch(() => void 0);
|
|
4455
|
+
this.#rlmChildMetadataRefreshQueue.request(rootSessionId, () => this.#refreshRlmChildMetadata(rootSessionId));
|
|
4441
4456
|
}
|
|
4442
4457
|
async #refreshRlmChildMetadata(rootSessionId) {
|
|
4443
4458
|
const parent = this.#sessions.get(rootSessionId);
|