@qredence/fleet 0.5.1 → 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 +19 -0
- package/bin/fleet-prime.mjs +6 -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-CX62LQ13.js → artifacts-panel-CmHYXfoo.js} +1 -1
- package/dist/web/client/assets/button-BV9NafmI.js +1 -0
- package/dist/web/client/assets/{chat-CsepBQwy.js → chat-W-yOMyG_.js} +1 -1
- 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-BD_ZAjlG.js → fleet-pi-tool-renderer-Btq9mDUe.js} +29 -29
- 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/{ipython-tool-BfeIa0nK.js → ipython-tool-BrMePqD-.js} +1 -1
- 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-DlUo6ehT.js → openui-renderer-BZMghkzQ.js} +8 -8
- package/dist/web/client/assets/{prime-agent-artifacts-CHGb5V_j.js → prime-agent-artifacts-C-g1VPiW.js} +1 -1
- 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/repl-panel-CCh4ly7J.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/session-insights-panel-CQdT90Op.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-tGCg6gcn.js +1 -0
- 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-B4BnRTa_-DR7WQTT5.js +90 -0
- package/dist/web/server/agent-activity-Dx6AlDhN-JXOL2EXK.js +514 -0
- package/dist/web/server/{artifacts-panel-D9w1DHAN-FGRDCYU2.js → artifacts-panel-CloS3-ij-XWYXKL6A.js} +30 -22
- package/dist/web/server/{chat-command-palette-BaenPkCN-BHSOPGU4.js → chat-command-palette-Cc0uGvNm-GKENKTO7.js} +48 -22
- package/dist/web/server/{chunk-KPNGZR2R.js → chunk-3B6M63AO.js} +206 -209
- package/dist/web/server/chunk-3D4Z32XA.js +22 -0
- package/dist/web/server/chunk-3SSHBMDS.js +196 -0
- package/dist/web/server/chunk-4PQ6OD6J.js +22 -0
- package/dist/web/server/{chunk-5AVQZ4AZ.js → chunk-4UBOIY2S.js} +2 -1
- 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-XYYNYFFD.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-X2TUFLTP.js → chunk-C5X6G26O.js} +436 -454
- package/dist/web/server/chunk-C66BSNA6.js +42 -0
- package/dist/web/server/{chunk-3GSFXWL5.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-Y6LJ4WBI.js → chunk-EGQ6ZX4D.js} +563 -830
- package/dist/web/server/{chunk-DO3TVNGA.js → chunk-EKBKGAWX.js} +12 -10
- package/dist/web/server/{chunk-RPROZ2JC.js → chunk-F6MGAW3L.js} +133 -133
- package/dist/web/server/chunk-GABXCOY3.js +37 -0
- package/dist/web/server/chunk-GV7DJIHY.js +36 -0
- package/dist/web/server/{chunk-PWK2HJIV.js → chunk-HSJMLO36.js} +5 -252
- package/dist/web/server/{chunk-46VQY7SG.js → chunk-HU4AIJV3.js} +4 -4
- package/dist/web/server/{chunk-H64JLONZ.js → chunk-HZY3LBGP.js} +146 -2
- package/dist/web/server/{chunk-3IKSPTYI.js → chunk-J6MRJXUH.js} +22 -15
- package/dist/web/server/{chunk-FE4KN6T2.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-KOIPYBJF.js +3773 -0
- package/dist/web/server/{chunk-44IVTHDV.js → chunk-KZSM3BHO.js} +28 -119
- package/dist/web/server/chunk-L46H6IDX.js +13 -0
- package/dist/web/server/chunk-LNGWHEE6.js +206 -0
- package/dist/web/server/{chunk-2U7PWSJX.js → chunk-MOSVTKH5.js} +262 -3661
- 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-VHCAD46L.js → chunk-NPPG2GTW.js} +7 -7
- package/dist/web/server/{chunk-AZZHUVJR.js → chunk-PJNYH5SR.js} +7 -303
- 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-FBOO3G67.js → chunk-RANJ6OJ3.js} +9 -9
- package/dist/web/server/chunk-RPBSDXJ4.js +62 -0
- package/dist/web/server/{chunk-PCJ5EKFE.js → chunk-RYHIJMFD.js} +63 -34
- 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-FVWDJNXR.js → chunk-UNZJQ7CY.js} +6 -4
- package/dist/web/server/chunk-V3S6BVXO.js +22 -0
- package/dist/web/server/{chunk-M2FGGPNA.js → chunk-VGDP4YDU.js} +70 -45
- package/dist/web/server/{chunk-WK7CQS2N.js → chunk-W5GRNHV5.js} +51 -49
- package/dist/web/server/{chunk-HBZ6YKRB.js → chunk-WN77JNYY.js} +2 -2
- package/dist/web/server/{chunk-B2F6MLVZ.js → chunk-XFVL5ITL.js} +2246 -2228
- package/dist/web/server/{chunk-EIVNRYP3.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-BZzfxdQd-Y725VJ7G.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-Cg4RSE9k-7BTJIYZJ.js → openui-renderer-Dk0Ak9cW-MUJQHDAS.js} +19 -16
- package/dist/web/server/prompt-suggestions-BOmHi4-J-C563CHFU.js +30 -0
- package/dist/web/server/{repl-panel-BEQrC2ef-V3YEZ7EO.js → repl-panel-D9E8nkQy-L45ZNG2V.js} +4 -3
- package/dist/web/server/{resources-panel-CwKh4U9f-D3VDEMDW.js → resources-panel-B03M8bEp-SZG726N5.js} +7 -6
- package/dist/web/server/{router-CEahIUpn-SRG7XKIH.js → router-BE9HcX2W-JMQ3JWE5.js} +1756 -1374
- package/dist/web/server/{routes-BznemByz-F4DJAYIM.js → routes-CJTRGB1Z-WJKXJFFT.js} +3748 -3955
- package/dist/web/server/server.js +3 -3
- package/dist/web/server/{session-insights-panel-JfeTHE0d-3HZB3ZWI.js → session-insights-panel-BHZyKDTo-LRMAMA3O.js} +4 -2
- package/dist/web/server/{settings-dialog-DgeBMORv-7SRSENPM.js → settings-dialog-yDibpbBH-TCLJ7NRJ.js} +172 -161
- package/dist/web/server/{start-CLAD7RcD-56S4BWMM.js → start-BYVnok_H-IA6TWGA3.js} +1 -1
- package/dist/web/server/subagent-chat-panel-B1YoZIKO-DFRUDQJ2.js +82 -0
- package/dist/web/server/subagents-panel-dJJwpsEL-FTWWCHND.js +200 -0
- package/dist/web/server/{workspace-panel-y54P79_B-VPIYUXF6.js → workspace-panel-BC_H8Jri-5MHAEQQS.js} +22 -18
- package/package.json +5 -5
- package/dist/web/client/assets/analytics-stub-Jh3lkb8P.js +0 -1
- package/dist/web/client/assets/button-0At5xSyU.js +0 -1
- package/dist/web/client/assets/chat-command-palette-C4sSf8Kg.js +0 -1
- package/dist/web/client/assets/collapsible-DmyYcezk.js +0 -1
- package/dist/web/client/assets/command-CB6emP8m.js +0 -2
- package/dist/web/client/assets/conversation-turns-ByFoWPXe.js +0 -6
- 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/globals-CqqQdk2S.css +0 -2
- package/dist/web/client/assets/horizontal-resize-C1TpRLNC.js +0 -1
- package/dist/web/client/assets/index-DweoFRMs.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-vSJ7Ux_5.js +0 -2
- package/dist/web/client/assets/repl-panel-DiGS6uCw.js +0 -1
- package/dist/web/client/assets/resources-panel-DSU7VGX2.js +0 -1
- package/dist/web/client/assets/routes-CxlNCi_v.js +0 -16
- package/dist/web/client/assets/safe-external-url-Bl_78dpZ.js +0 -1
- package/dist/web/client/assets/session-insights-panel-DwmwiikS.js +0 -1
- package/dist/web/client/assets/settings-dialog-CkfpTKfM.js +0 -1
- package/dist/web/client/assets/subagents-panel-DGnsK6Nx.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-CBzwwUE9.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/_tanstack-start-manifest_v-bDUlyKY0-KFW35JRO.js +0 -82
- package/dist/web/server/chunk-ZEVZFLIY.js +0 -334
- package/dist/web/server/fleet-pi-tool-renderer-lJvZWmBJ-4M5YI6VS.js +0 -35
- package/dist/web/server/subagents-panel-CzZe3co7-2VZ5JTWF.js +0 -332
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import {
|
|
2
|
+
take
|
|
3
|
+
} from "./chunk-V3S6BVXO.js";
|
|
4
|
+
import {
|
|
5
|
+
ShimmerLabel,
|
|
6
|
+
SwapLabel,
|
|
7
|
+
collapsePanel
|
|
8
|
+
} from "./chunk-ANL4B775.js";
|
|
9
|
+
import {
|
|
10
|
+
Collapsible,
|
|
11
|
+
CollapsibleContent,
|
|
12
|
+
CollapsibleTrigger
|
|
13
|
+
} from "./chunk-HSJMLO36.js";
|
|
14
|
+
import {
|
|
15
|
+
ChevronDown
|
|
16
|
+
} from "./chunk-QLY3L4A2.js";
|
|
17
|
+
import "./chunk-S3PQ6HKH.js";
|
|
18
|
+
import "./chunk-7SR6WDM2.js";
|
|
19
|
+
import "./chunk-C5X6G26O.js";
|
|
20
|
+
import "./chunk-E26EAQIM.js";
|
|
21
|
+
import {
|
|
22
|
+
cn
|
|
23
|
+
} from "./chunk-DJMHPJBP.js";
|
|
24
|
+
import "./chunk-JDCCC7A7.js";
|
|
25
|
+
import "./chunk-MLKGABMK.js";
|
|
26
|
+
|
|
27
|
+
// web/app/dist/server/assets/fleet-reasoning-panel-C_e7wzVm.js
|
|
28
|
+
import { useMemo, useState } from "react";
|
|
29
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
var CELL_SHAPES = {
|
|
31
|
+
dots: "rounded-full",
|
|
32
|
+
squares: "rounded-[1px]",
|
|
33
|
+
rounded: "rounded-[3px]"
|
|
34
|
+
};
|
|
35
|
+
function GenerationLoader({ label, tick, variant = "dots", className, ...props }) {
|
|
36
|
+
const pixelOffset = Math.floor(tick / 3);
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
38
|
+
"data-slot": "generation-loader",
|
|
39
|
+
className: cn("flex flex-col items-center gap-4", className),
|
|
40
|
+
...props,
|
|
41
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
42
|
+
"aria-hidden": true,
|
|
43
|
+
className: "grid grid-cols-3 gap-1",
|
|
44
|
+
children: Array.from({ length: 9 }, (_, index) => {
|
|
45
|
+
const active = (index * 2 + pixelOffset) % 9 < 3;
|
|
46
|
+
return /* @__PURE__ */ jsx("span", { className: cn("bg-foreground size-2 transition-opacity duration-300 motion-reduce:transition-none", CELL_SHAPES[variant], active ? "opacity-90" : "opacity-15") }, index);
|
|
47
|
+
})
|
|
48
|
+
}), /* @__PURE__ */ jsx(ShimmerLabel, {
|
|
49
|
+
className: "text-foreground/55 relative inline-block text-sm",
|
|
50
|
+
children: label
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function ThinkingIndicator({ label, elapsed, className, ...props }) {
|
|
55
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
"data-slot": "thinking-indicator",
|
|
57
|
+
className: cn("text-foreground/55 flex items-center gap-2.5 text-sm", className),
|
|
58
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx("span", {
|
|
61
|
+
"aria-hidden": true,
|
|
62
|
+
className: "size-1.5 shrink-0 animate-pulse rounded-full bg-blue-500 motion-reduce:animate-none dark:bg-blue-400"
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx(ShimmerLabel, {
|
|
65
|
+
className: "fade-in slide-in-from-bottom-1 animate-in relative inline-block leading-none duration-300",
|
|
66
|
+
children: label
|
|
67
|
+
}, label),
|
|
68
|
+
elapsed !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
69
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-foreground/30 tabular-nums"),
|
|
70
|
+
children: elapsed
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function ReasoningPanel({ steps, visibleSteps, streaming, streamingLabel = "Thinking", open, onOpenChange, restingLabel, elapsed, className }) {
|
|
76
|
+
const shown = take(steps, visibleSteps);
|
|
77
|
+
return /* @__PURE__ */ jsxs(Collapsible, {
|
|
78
|
+
"data-slot": "reasoning-panel",
|
|
79
|
+
open,
|
|
80
|
+
onOpenChange,
|
|
81
|
+
className: cn("w-full max-w-sm", className),
|
|
82
|
+
children: [/* @__PURE__ */ jsxs(CollapsibleTrigger, {
|
|
83
|
+
className: "group/trigger text-foreground/55 hover:text-foreground/90 flex items-center gap-1.5 py-1 text-[13.5px] transition-[color,scale] outline-none active:scale-[0.98]",
|
|
84
|
+
children: [/* @__PURE__ */ jsxs(SwapLabel, {
|
|
85
|
+
active: streaming ? 0 : 1,
|
|
86
|
+
className: "text-start",
|
|
87
|
+
children: [/* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ShimmerLabel, {
|
|
88
|
+
active: streaming,
|
|
89
|
+
className: "relative inline-block leading-none",
|
|
90
|
+
children: streamingLabel
|
|
91
|
+
}), elapsed !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
92
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-foreground/30 tabular-nums"),
|
|
93
|
+
children: elapsed
|
|
94
|
+
})] }), /* @__PURE__ */ jsx(Fragment$1, { children: restingLabel })]
|
|
95
|
+
}), /* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5 shrink-0 opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-open/trigger:rotate-180 group-data-panel-open/trigger:rotate-180 motion-reduce:transition-none" })]
|
|
96
|
+
}), /* @__PURE__ */ jsx(CollapsibleContent, {
|
|
97
|
+
className: cn(collapsePanel, "outline-none"),
|
|
98
|
+
children: /* @__PURE__ */ jsx("ol", {
|
|
99
|
+
className: "flex flex-col gap-4 pt-3 pb-1",
|
|
100
|
+
children: shown.map((step, i) => {
|
|
101
|
+
const active = streaming && i === shown.length - 1;
|
|
102
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
103
|
+
className: "fade-in slide-in-from-bottom-1 animate-in fill-mode-both flex gap-3 duration-300",
|
|
104
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
105
|
+
"aria-hidden": true,
|
|
106
|
+
className: cn("mt-[7px] size-[5px] shrink-0 rounded-full transition-colors duration-300", active ? "animate-pulse bg-blue-500 dark:bg-blue-400" : "bg-foreground/20")
|
|
107
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
108
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
109
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
110
|
+
className: "text-foreground/90 text-[13.5px] font-medium",
|
|
111
|
+
children: step.title
|
|
112
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
113
|
+
className: "text-foreground/50 mt-0.5 text-[13px] leading-relaxed break-words",
|
|
114
|
+
children: step.body
|
|
115
|
+
})]
|
|
116
|
+
})]
|
|
117
|
+
}, step.id ?? `${step.title}-${i}`);
|
|
118
|
+
})
|
|
119
|
+
})
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function FleetReasoningPanel({ presentation, className, streamingOverride }) {
|
|
124
|
+
const [userOpen, setUserOpen] = useState(void 0);
|
|
125
|
+
const streaming = streamingOverride ?? presentation.streaming;
|
|
126
|
+
const open = userOpen ?? streaming;
|
|
127
|
+
const steps = useMemo(() => presentation.steps.map((step) => ({
|
|
128
|
+
id: step.id,
|
|
129
|
+
title: step.title,
|
|
130
|
+
body: step.body
|
|
131
|
+
})), [presentation.steps]);
|
|
132
|
+
if (!streaming && steps.length === 0) return null;
|
|
133
|
+
const visibleSteps = Math.min(Math.max(0, presentation.visibleSteps), steps.length);
|
|
134
|
+
const activeStep = steps.at(visibleSteps - 1);
|
|
135
|
+
const activeLabel = activeStep?.title ?? phaseLabel(presentation.phase);
|
|
136
|
+
const elapsed = formatElapsed(presentation.elapsedMs);
|
|
137
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
138
|
+
"data-slot": "fleet-reasoning-presentation",
|
|
139
|
+
"aria-label": "Safe reasoning progress",
|
|
140
|
+
className: cn("w-full max-w-xl rounded-xl border border-border/60 bg-muted/30 px-3 py-2.5 shadow-sm shadow-black/[0.02] dark:shadow-black/15", className),
|
|
141
|
+
children: [streaming ? /* @__PURE__ */ jsx("div", {
|
|
142
|
+
className: "mb-1.5 flex flex-col gap-1.5 border-b border-border/45 pb-2.5",
|
|
143
|
+
children: activeStep?.body ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ThinkingIndicator, {
|
|
144
|
+
label: activeLabel,
|
|
145
|
+
elapsed,
|
|
146
|
+
className: "text-[13px]"
|
|
147
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
148
|
+
className: "pl-4 text-xs font-normal text-muted-foreground",
|
|
149
|
+
children: activeStep.body
|
|
150
|
+
})] }) : /* @__PURE__ */ jsx(GenerationLoader, {
|
|
151
|
+
label: activeLabel,
|
|
152
|
+
tick: Math.floor((presentation.elapsedMs ?? 0) / 250),
|
|
153
|
+
variant: "dots",
|
|
154
|
+
className: "items-start gap-2 px-1 py-1 text-left"
|
|
155
|
+
})
|
|
156
|
+
}) : null, /* @__PURE__ */ jsx(ReasoningPanel, {
|
|
157
|
+
steps,
|
|
158
|
+
visibleSteps,
|
|
159
|
+
streaming,
|
|
160
|
+
streamingLabel: "Preparing response",
|
|
161
|
+
open,
|
|
162
|
+
onOpenChange: setUserOpen,
|
|
163
|
+
restingLabel: presentation.restingLabel,
|
|
164
|
+
elapsed,
|
|
165
|
+
className: "max-w-none"
|
|
166
|
+
})]
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function phaseLabel(phase) {
|
|
170
|
+
switch (phase) {
|
|
171
|
+
case "waiting":
|
|
172
|
+
return "Preparing run";
|
|
173
|
+
case "context":
|
|
174
|
+
return "Reviewing workspace context";
|
|
175
|
+
case "planning":
|
|
176
|
+
return "Organising the response";
|
|
177
|
+
case "executing":
|
|
178
|
+
return "Completing requested work";
|
|
179
|
+
case "responding":
|
|
180
|
+
return "Writing the response";
|
|
181
|
+
case "recovering":
|
|
182
|
+
return "Recovering the run";
|
|
183
|
+
case "error":
|
|
184
|
+
return "Run needs attention";
|
|
185
|
+
case "complete":
|
|
186
|
+
return "Completed";
|
|
187
|
+
default:
|
|
188
|
+
return "Working";
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function formatElapsed(elapsedMs) {
|
|
192
|
+
if (elapsedMs === void 0) return void 0;
|
|
193
|
+
const seconds = Math.max(0, Math.round(elapsedMs / 1e3));
|
|
194
|
+
if (seconds < 60) return String(seconds) + "s";
|
|
195
|
+
return String(Math.floor(seconds / 60)) + "m " + String(seconds % 60) + "s";
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
FleetReasoningPanel
|
|
199
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetSubagentList,
|
|
3
|
+
fleet_subagent_list_exports
|
|
4
|
+
} from "./chunk-YLMXYMLG.js";
|
|
5
|
+
import "./chunk-YNGDUWCF.js";
|
|
6
|
+
import "./chunk-SG4W4SPQ.js";
|
|
7
|
+
import "./chunk-PKCTG7EW.js";
|
|
8
|
+
import "./chunk-QLY3L4A2.js";
|
|
9
|
+
import "./chunk-GABXCOY3.js";
|
|
10
|
+
import "./chunk-E26EAQIM.js";
|
|
11
|
+
import "./chunk-DJMHPJBP.js";
|
|
12
|
+
import "./chunk-JDCCC7A7.js";
|
|
13
|
+
import "./chunk-L547YHC4.js";
|
|
14
|
+
import "./chunk-MLKGABMK.js";
|
|
15
|
+
export {
|
|
16
|
+
fleet_subagent_list_exports as n,
|
|
17
|
+
FleetSubagentList as t
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetToolTimeline,
|
|
3
|
+
fleet_tool_timeline_exports
|
|
4
|
+
} from "./chunk-QTFCJGOY.js";
|
|
5
|
+
import "./chunk-4PQ6OD6J.js";
|
|
6
|
+
import "./chunk-744IIIDL.js";
|
|
7
|
+
import "./chunk-QLY3L4A2.js";
|
|
8
|
+
import "./chunk-E26EAQIM.js";
|
|
9
|
+
import "./chunk-DJMHPJBP.js";
|
|
10
|
+
import "./chunk-JDCCC7A7.js";
|
|
11
|
+
import "./chunk-L547YHC4.js";
|
|
12
|
+
import "./chunk-MLKGABMK.js";
|
|
13
|
+
export {
|
|
14
|
+
fleet_tool_timeline_exports as n,
|
|
15
|
+
FleetToolTimeline as t
|
|
16
|
+
};
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
DialogDescription,
|
|
5
5
|
DialogHeader,
|
|
6
6
|
DialogTitle
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JOSTE7WK.js";
|
|
8
|
+
import "./chunk-F6MGAW3L.js";
|
|
9
|
+
import "./chunk-7SR6WDM2.js";
|
|
10
|
+
import "./chunk-YHXAXJ6I.js";
|
|
11
|
+
import "./chunk-C5X6G26O.js";
|
|
11
12
|
import "./chunk-E26EAQIM.js";
|
|
12
13
|
import "./chunk-DJMHPJBP.js";
|
|
13
14
|
import "./chunk-JDCCC7A7.js";
|
|
14
15
|
import "./chunk-L547YHC4.js";
|
|
15
16
|
import "./chunk-MLKGABMK.js";
|
|
16
17
|
|
|
17
|
-
// web/app/dist/server/assets/fork-picker-dialog-
|
|
18
|
+
// web/app/dist/server/assets/fork-picker-dialog-DK9YGQuB.js
|
|
18
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
20
|
function ForkPickerDialog({ entries, onOpenChange, onPick }) {
|
|
20
21
|
const open = entries !== null && entries.length > 0;
|
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-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-52SJQXO4.js";
|
|
12
|
-
import "./chunk-FBOO3G67.js";
|
|
13
|
-
import "./chunk-DO3TVNGA.js";
|
|
5
|
+
} from "./chunk-MOSVTKH5.js";
|
|
6
|
+
import "./chunk-WN77JNYY.js";
|
|
7
|
+
import "./chunk-KOIPYBJF.js";
|
|
8
|
+
import "./chunk-XFVL5ITL.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
|
+
};
|