@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
|
@@ -2024,7 +2024,7 @@ function getResponse() {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
|
|
2026
2026
|
async function getStartManifest(matchedRoutes) {
|
|
2027
|
-
const { tsrStartManifest } = await import("./_tanstack-start-manifest_v-
|
|
2027
|
+
const { tsrStartManifest } = await import("./_tanstack-start-manifest_v-B4BnRTa_-DR7WQTT5.js");
|
|
2028
2028
|
const startManifest = tsrStartManifest();
|
|
2029
2029
|
let routes = startManifest.routes;
|
|
2030
2030
|
routes[rootRouteId];
|
|
@@ -4982,7 +4982,7 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
4982
4982
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
4983
4983
|
async function loadEntries() {
|
|
4984
4984
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
4985
|
-
import("./router-
|
|
4985
|
+
import("./router-BE9HcX2W-JMQ3JWE5.js"),
|
|
4986
4986
|
import("./start-BYVnok_H-IA6TWGA3.js"),
|
|
4987
4987
|
import("./empty-plugin-adapters-Cqtvkauv-6XWFDBYT.js")
|
|
4988
4988
|
]);
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
DISCRETE_TAB_INACTIVE_CLASS,
|
|
15
15
|
HIT_AREA_EXPAND_CLASS,
|
|
16
16
|
HIT_AREA_EXPAND_DENSE_CLASS,
|
|
17
|
-
MessageSquare,
|
|
18
17
|
PROVIDER_METADATA,
|
|
19
18
|
ProviderBrandIcon,
|
|
20
19
|
Settings,
|
|
@@ -28,7 +27,7 @@ import {
|
|
|
28
27
|
useHoverInteractionSharedState,
|
|
29
28
|
useHoverReferenceInteraction,
|
|
30
29
|
usePopupHandleStore
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3B6M63AO.js";
|
|
32
31
|
import {
|
|
33
32
|
UI_PREFERENCES_KEY,
|
|
34
33
|
isModelPatternEnabled,
|
|
@@ -37,40 +36,49 @@ import {
|
|
|
37
36
|
readUiPreferences
|
|
38
37
|
} from "./chunk-54II5QXQ.js";
|
|
39
38
|
import {
|
|
40
|
-
|
|
39
|
+
MessageSquare
|
|
40
|
+
} from "./chunk-56SEDI5N.js";
|
|
41
|
+
import {
|
|
42
|
+
Keyboard,
|
|
43
|
+
Monitor,
|
|
44
|
+
Moon,
|
|
45
|
+
Sun
|
|
46
|
+
} from "./chunk-EY2O73OV.js";
|
|
47
|
+
import {
|
|
48
|
+
Plus,
|
|
49
|
+
useChatPanelDataContext,
|
|
50
|
+
useSettingsActionsContext
|
|
51
|
+
} from "./chunk-RPBSDXJ4.js";
|
|
52
|
+
import {
|
|
53
|
+
RefreshCw
|
|
54
|
+
} from "./chunk-XKYEXPLQ.js";
|
|
55
|
+
import {
|
|
41
56
|
notify
|
|
42
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-K4ESBQ3R.js";
|
|
43
58
|
import {
|
|
44
59
|
FloatingPortalLite,
|
|
45
60
|
Info
|
|
46
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-W5GRNHV5.js";
|
|
62
|
+
import "./chunk-74QOI457.js";
|
|
47
63
|
import {
|
|
48
64
|
Eye
|
|
49
65
|
} from "./chunk-DBXYBYBP.js";
|
|
50
66
|
import {
|
|
51
67
|
ExternalLink,
|
|
52
|
-
Globe
|
|
68
|
+
Globe
|
|
69
|
+
} from "./chunk-EFAGCVZ3.js";
|
|
70
|
+
import {
|
|
53
71
|
Sparkles
|
|
54
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-BNQWMQHD.js";
|
|
55
73
|
import {
|
|
56
74
|
HardDrive
|
|
57
75
|
} from "./chunk-HUX64PWB.js";
|
|
58
|
-
import {
|
|
59
|
-
Keyboard,
|
|
60
|
-
Monitor,
|
|
61
|
-
Moon,
|
|
62
|
-
Sun
|
|
63
|
-
} from "./chunk-EY2O73OV.js";
|
|
64
76
|
import {
|
|
65
77
|
InputGroup,
|
|
66
78
|
InputGroupAddon,
|
|
67
79
|
InputGroupButton,
|
|
68
|
-
InputGroupInput
|
|
69
|
-
|
|
70
|
-
useChatPanelDataContext,
|
|
71
|
-
useSettingsActionsContext
|
|
72
|
-
} from "./chunk-XLCTCC4W.js";
|
|
73
|
-
import "./chunk-74QOI457.js";
|
|
80
|
+
InputGroupInput
|
|
81
|
+
} from "./chunk-DEUBJJZN.js";
|
|
74
82
|
import {
|
|
75
83
|
Search
|
|
76
84
|
} from "./chunk-2H6A6Z7F.js";
|
|
@@ -92,7 +100,7 @@ import {
|
|
|
92
100
|
FieldLabel,
|
|
93
101
|
Switch,
|
|
94
102
|
useRender
|
|
95
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-RANJ6OJ3.js";
|
|
96
104
|
import {
|
|
97
105
|
Select,
|
|
98
106
|
clamp,
|
|
@@ -103,7 +111,7 @@ import {
|
|
|
103
111
|
useCSPContext,
|
|
104
112
|
useDirection,
|
|
105
113
|
usePositioner
|
|
106
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-EKBKGAWX.js";
|
|
107
115
|
import {
|
|
108
116
|
isCustomProviderId,
|
|
109
117
|
isNamedOccInstanceId,
|
|
@@ -112,10 +120,7 @@ import {
|
|
|
112
120
|
import "./chunk-QLY3L4A2.js";
|
|
113
121
|
import {
|
|
114
122
|
Input
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import {
|
|
117
|
-
Check
|
|
118
|
-
} from "./chunk-NLIUTTKL.js";
|
|
123
|
+
} from "./chunk-NPPG2GTW.js";
|
|
119
124
|
import {
|
|
120
125
|
Dialog,
|
|
121
126
|
DialogBackdrop,
|
|
@@ -149,7 +154,7 @@ import {
|
|
|
149
154
|
usePopupRootStore,
|
|
150
155
|
useSurface,
|
|
151
156
|
useTriggerDataForwarding
|
|
152
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-JOSTE7WK.js";
|
|
153
158
|
import {
|
|
154
159
|
Button,
|
|
155
160
|
POPUP_COLLISION_AVOIDANCE,
|
|
@@ -170,14 +175,20 @@ import {
|
|
|
170
175
|
ownerDocument,
|
|
171
176
|
useTimeout,
|
|
172
177
|
webkit
|
|
173
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-F6MGAW3L.js";
|
|
179
|
+
import {
|
|
180
|
+
Check
|
|
181
|
+
} from "./chunk-6QNW66XR.js";
|
|
182
|
+
import "./chunk-S3PQ6HKH.js";
|
|
174
183
|
import {
|
|
175
184
|
useBaseUiId,
|
|
176
185
|
useValueAsRef
|
|
177
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-7SR6WDM2.js";
|
|
187
|
+
import {
|
|
188
|
+
X
|
|
189
|
+
} from "./chunk-YHXAXJ6I.js";
|
|
178
190
|
import {
|
|
179
191
|
EMPTY_OBJECT,
|
|
180
|
-
X,
|
|
181
192
|
addEventListener,
|
|
182
193
|
createChangeEventDetails,
|
|
183
194
|
disabled,
|
|
@@ -195,7 +206,7 @@ import {
|
|
|
195
206
|
useOpenChangeComplete,
|
|
196
207
|
useRenderElement,
|
|
197
208
|
useStableCallback
|
|
198
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-C5X6G26O.js";
|
|
199
210
|
import "./chunk-BSFYTSN6.js";
|
|
200
211
|
import "./chunk-EAJTWMK5.js";
|
|
201
212
|
import {
|
|
@@ -208,7 +219,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
208
219
|
import "./chunk-L547YHC4.js";
|
|
209
220
|
import "./chunk-MLKGABMK.js";
|
|
210
221
|
|
|
211
|
-
// web/app/dist/server/assets/settings-dialog-
|
|
222
|
+
// web/app/dist/server/assets/settings-dialog-yDibpbBH.js
|
|
212
223
|
import * as React$1 from "react";
|
|
213
224
|
import { useCallback as useCallback2, useEffect as useEffect2, useId, useMemo as useMemo2, useRef as useRef2, useState as useState2 } from "react";
|
|
214
225
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,34 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubagentTranscriptView
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-SZ65K4CO.js";
|
|
10
|
-
import "./chunk-DBXYBYBP.js";
|
|
11
|
-
import "./chunk-5WZFFNFY.js";
|
|
3
|
+
} from "./chunk-3SSHBMDS.js";
|
|
4
|
+
import "./chunk-EGQ6ZX4D.js";
|
|
5
|
+
import "./chunk-GV7DJIHY.js";
|
|
6
|
+
import "./chunk-XKYEXPLQ.js";
|
|
7
|
+
import "./chunk-K4ESBQ3R.js";
|
|
8
|
+
import "./chunk-W5GRNHV5.js";
|
|
12
9
|
import "./chunk-74QOI457.js";
|
|
10
|
+
import "./chunk-RYHIJMFD.js";
|
|
11
|
+
import "./chunk-KZSM3BHO.js";
|
|
12
|
+
import "./chunk-E365EOXJ.js";
|
|
13
|
+
import "./chunk-V3S6BVXO.js";
|
|
14
|
+
import "./chunk-ANL4B775.js";
|
|
15
|
+
import "./chunk-DBXYBYBP.js";
|
|
16
|
+
import "./chunk-EFAGCVZ3.js";
|
|
17
|
+
import "./chunk-BNQWMQHD.js";
|
|
18
|
+
import "./chunk-QTFCJGOY.js";
|
|
19
|
+
import "./chunk-4PQ6OD6J.js";
|
|
20
|
+
import "./chunk-YLMXYMLG.js";
|
|
21
|
+
import "./chunk-YNGDUWCF.js";
|
|
22
|
+
import "./chunk-P66QQWUM.js";
|
|
13
23
|
import "./chunk-2H6A6Z7F.js";
|
|
14
24
|
import "./chunk-YRWVQ7BW.js";
|
|
15
25
|
import "./chunk-4UBOIY2S.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-J6MRJXUH.js";
|
|
27
|
+
import "./chunk-LNGWHEE6.js";
|
|
28
|
+
import "./chunk-C66BSNA6.js";
|
|
29
|
+
import "./chunk-HSJMLO36.js";
|
|
20
30
|
import "./chunk-6RJYXDSD.js";
|
|
31
|
+
import "./chunk-744IIIDL.js";
|
|
32
|
+
import "./chunk-SG4W4SPQ.js";
|
|
21
33
|
import "./chunk-PKCTG7EW.js";
|
|
34
|
+
import "./chunk-ZJFA4F5X.js";
|
|
22
35
|
import "./chunk-7QCDOBZ3.js";
|
|
36
|
+
import "./chunk-K3BXQG3N.js";
|
|
37
|
+
import "./chunk-FAGDMGLK.js";
|
|
23
38
|
import "./chunk-NFRJDPB3.js";
|
|
24
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-T23OO4SC.js";
|
|
40
|
+
import "./chunk-L46H6IDX.js";
|
|
25
41
|
import "./chunk-QLY3L4A2.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-F6MGAW3L.js";
|
|
43
|
+
import "./chunk-6QNW66XR.js";
|
|
44
|
+
import "./chunk-S3PQ6HKH.js";
|
|
45
|
+
import "./chunk-7SR6WDM2.js";
|
|
46
|
+
import "./chunk-YHXAXJ6I.js";
|
|
47
|
+
import "./chunk-C5X6G26O.js";
|
|
30
48
|
import "./chunk-ST5I2PLN.js";
|
|
31
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-QAE5SXDK.js";
|
|
50
|
+
import "./chunk-GABXCOY3.js";
|
|
32
51
|
import "./chunk-VGDP4YDU.js";
|
|
33
52
|
import "./chunk-G5BCQQ5N.js";
|
|
34
53
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -39,7 +58,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
39
58
|
import "./chunk-L547YHC4.js";
|
|
40
59
|
import "./chunk-MLKGABMK.js";
|
|
41
60
|
|
|
42
|
-
// web/app/dist/server/assets/subagent-chat-panel-
|
|
61
|
+
// web/app/dist/server/assets/subagent-chat-panel-B1YoZIKO.js
|
|
43
62
|
import { jsx } from "react/jsx-runtime";
|
|
44
63
|
function SubagentChatPanel({ child, parentSessionId, state }) {
|
|
45
64
|
const transcriptError = state.error ?? (state.status === "error" ? new Error(child.error ?? "The subagent thread ended with an error.") : void 0);
|
|
@@ -1,43 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubagentTranscriptView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3SSHBMDS.js";
|
|
4
|
+
import "./chunk-EGQ6ZX4D.js";
|
|
5
|
+
import "./chunk-GV7DJIHY.js";
|
|
6
|
+
import "./chunk-XKYEXPLQ.js";
|
|
7
|
+
import "./chunk-K4ESBQ3R.js";
|
|
8
|
+
import "./chunk-W5GRNHV5.js";
|
|
9
|
+
import {
|
|
10
|
+
Bot
|
|
11
|
+
} from "./chunk-74QOI457.js";
|
|
12
|
+
import "./chunk-RYHIJMFD.js";
|
|
13
|
+
import "./chunk-KZSM3BHO.js";
|
|
14
|
+
import "./chunk-E365EOXJ.js";
|
|
15
|
+
import "./chunk-V3S6BVXO.js";
|
|
16
|
+
import "./chunk-ANL4B775.js";
|
|
17
|
+
import "./chunk-DBXYBYBP.js";
|
|
18
|
+
import "./chunk-EFAGCVZ3.js";
|
|
19
|
+
import "./chunk-BNQWMQHD.js";
|
|
20
|
+
import "./chunk-QTFCJGOY.js";
|
|
21
|
+
import "./chunk-4PQ6OD6J.js";
|
|
22
|
+
import "./chunk-YLMXYMLG.js";
|
|
4
23
|
import {
|
|
5
24
|
orderedRlmChildren,
|
|
6
25
|
rlmStatusIcon
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-VRLTWOVJ.js";
|
|
9
|
-
import "./chunk-3HUI75QM.js";
|
|
26
|
+
} from "./chunk-YNGDUWCF.js";
|
|
10
27
|
import "./chunk-P66QQWUM.js";
|
|
11
|
-
import "./chunk-FZRBAPUM.js";
|
|
12
|
-
import "./chunk-SZ65K4CO.js";
|
|
13
|
-
import "./chunk-DBXYBYBP.js";
|
|
14
|
-
import "./chunk-5WZFFNFY.js";
|
|
15
|
-
import {
|
|
16
|
-
Bot
|
|
17
|
-
} from "./chunk-74QOI457.js";
|
|
18
28
|
import "./chunk-2H6A6Z7F.js";
|
|
19
29
|
import "./chunk-YRWVQ7BW.js";
|
|
20
30
|
import "./chunk-4UBOIY2S.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-J6MRJXUH.js";
|
|
32
|
+
import "./chunk-LNGWHEE6.js";
|
|
33
|
+
import "./chunk-C66BSNA6.js";
|
|
34
|
+
import "./chunk-HSJMLO36.js";
|
|
25
35
|
import "./chunk-6RJYXDSD.js";
|
|
36
|
+
import "./chunk-744IIIDL.js";
|
|
37
|
+
import "./chunk-SG4W4SPQ.js";
|
|
26
38
|
import "./chunk-PKCTG7EW.js";
|
|
39
|
+
import "./chunk-ZJFA4F5X.js";
|
|
27
40
|
import {
|
|
28
41
|
ChevronRight
|
|
29
42
|
} from "./chunk-7QCDOBZ3.js";
|
|
43
|
+
import "./chunk-K3BXQG3N.js";
|
|
44
|
+
import "./chunk-FAGDMGLK.js";
|
|
30
45
|
import "./chunk-NFRJDPB3.js";
|
|
31
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-T23OO4SC.js";
|
|
47
|
+
import "./chunk-L46H6IDX.js";
|
|
32
48
|
import "./chunk-QLY3L4A2.js";
|
|
33
|
-
import "./chunk-NLIUTTKL.js";
|
|
34
49
|
import {
|
|
35
50
|
Button
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-F6MGAW3L.js";
|
|
52
|
+
import "./chunk-6QNW66XR.js";
|
|
53
|
+
import "./chunk-S3PQ6HKH.js";
|
|
54
|
+
import "./chunk-7SR6WDM2.js";
|
|
55
|
+
import "./chunk-YHXAXJ6I.js";
|
|
56
|
+
import "./chunk-C5X6G26O.js";
|
|
39
57
|
import "./chunk-ST5I2PLN.js";
|
|
40
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-QAE5SXDK.js";
|
|
59
|
+
import "./chunk-GABXCOY3.js";
|
|
41
60
|
import "./chunk-VGDP4YDU.js";
|
|
42
61
|
import "./chunk-G5BCQQ5N.js";
|
|
43
62
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -50,7 +69,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
50
69
|
import "./chunk-L547YHC4.js";
|
|
51
70
|
import "./chunk-MLKGABMK.js";
|
|
52
71
|
|
|
53
|
-
// web/app/dist/server/assets/subagents-panel-
|
|
72
|
+
// web/app/dist/server/assets/subagents-panel-dJJwpsEL.js
|
|
54
73
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
55
74
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
56
75
|
function SubagentsPanelContent({ agents, loadSession, onOpenTab, parentSessionId, tree }) {
|
|
@@ -8,47 +8,51 @@ import {
|
|
|
8
8
|
readStoredWidth,
|
|
9
9
|
startHorizontalResize,
|
|
10
10
|
storeStoredWidth
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UNZJQ7CY.js";
|
|
12
12
|
import "./chunk-QK4CHLVV.js";
|
|
13
|
-
import {
|
|
14
|
-
isPathWithinScope
|
|
15
|
-
} from "./chunk-P66QQWUM.js";
|
|
16
13
|
import {
|
|
17
14
|
Folder
|
|
18
15
|
} from "./chunk-OLG5DQ7V.js";
|
|
19
16
|
import {
|
|
20
17
|
HardDrive
|
|
21
18
|
} from "./chunk-HUX64PWB.js";
|
|
19
|
+
import {
|
|
20
|
+
isPathWithinScope
|
|
21
|
+
} from "./chunk-P66QQWUM.js";
|
|
22
22
|
import {
|
|
23
23
|
AnimatePresence,
|
|
24
|
-
EASE_OUT,
|
|
25
|
-
SPRING_LAYOUT,
|
|
26
|
-
SPRING_SWAP,
|
|
27
|
-
motion,
|
|
28
24
|
useReducedMotion
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-FAGDMGLK.js";
|
|
25
|
+
} from "./chunk-ZJFA4F5X.js";
|
|
31
26
|
import {
|
|
32
27
|
ChevronRight
|
|
33
28
|
} from "./chunk-7QCDOBZ3.js";
|
|
29
|
+
import {
|
|
30
|
+
EASE_OUT,
|
|
31
|
+
SPRING_LAYOUT,
|
|
32
|
+
SPRING_SWAP,
|
|
33
|
+
motion
|
|
34
|
+
} from "./chunk-K3BXQG3N.js";
|
|
35
|
+
import "./chunk-FAGDMGLK.js";
|
|
34
36
|
import {
|
|
35
37
|
Markdown
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NJRYX4A2.js";
|
|
37
39
|
import {
|
|
38
40
|
ResourceChipSection,
|
|
39
41
|
ResourceNotice,
|
|
40
42
|
WorkspacePreviewSkeleton,
|
|
41
43
|
WorkspaceSkeleton
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XNYQSCB2.js";
|
|
43
45
|
import {
|
|
44
46
|
findWorkspaceNode
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import {
|
|
47
|
-
CircleAlert,
|
|
48
|
-
FileText
|
|
49
|
-
} from "./chunk-7APYEQIO.js";
|
|
47
|
+
} from "./chunk-HU4AIJV3.js";
|
|
50
48
|
import "./chunk-BSFYTSN6.js";
|
|
51
49
|
import "./chunk-EAJTWMK5.js";
|
|
50
|
+
import {
|
|
51
|
+
FileText
|
|
52
|
+
} from "./chunk-QAE5SXDK.js";
|
|
53
|
+
import {
|
|
54
|
+
CircleAlert
|
|
55
|
+
} from "./chunk-GABXCOY3.js";
|
|
52
56
|
import "./chunk-ZGFQ7HIX.js";
|
|
53
57
|
import "./chunk-BYXBJQAS.js";
|
|
54
58
|
import "./chunk-E26EAQIM.js";
|
|
@@ -61,7 +65,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
61
65
|
import "./chunk-L547YHC4.js";
|
|
62
66
|
import "./chunk-MLKGABMK.js";
|
|
63
67
|
|
|
64
|
-
// web/app/dist/server/assets/workspace-panel-
|
|
68
|
+
// web/app/dist/server/assets/workspace-panel-BC_H8Jri.js
|
|
65
69
|
import { Children, Fragment, isValidElement, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
66
70
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
67
71
|
function FileTreeFolder(_props) {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{d as r,f as i,i as a,m as o,p as s,r as c,u as l}from"./ease-vFBiNFNK.js";import{D as u,F as d,M as f,N as p,O as m,T as h,W as g,_,it as v,j as y,k as b,n as x,p as ee,rt as S,tt as C,w,y as T}from"./x-BgciQ7_C.js";import{n as E,r as D,t as O}from"./useBaseUiId-B9f7fokB.js";import{t as k}from"./utils-Eg7xtNmV.js";import{t as A}from"./createLucideIcon-DwxZHm0M.js";import{t as j}from"./useControlled-CoY1jSuL.js";var M=A(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),N=A(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),P=A(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),F=A(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),I=e(t(),1);function L(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=j({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:c,transitionStatus:l}=E(a,!0,!0),u=O(),[d,f]=I.useState(),p=d===null?void 0:d??u,m=C(e=>{let t=!a,n=x(_,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return I.useMemo(()=>({defaultPanelId:u,disabled:i,handleTrigger:m,mounted:s,open:a,panelId:p,setMounted:c,setOpen:o,setPanelIdState:f,transitionStatus:l}),[u,i,m,s,a,p,c,o,f,l])}var R=I.createContext(void 0);function z(){let e=I.useContext(R);if(e===void 0)throw Error(S(15));return e}var B=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=u.startingStyle]=`startingStyle`,e[e.endingStyle=u.endingStyle]=`endingStyle`,e}({}),V=function(e){return e.panelOpen=`data-panel-open`,e}({}),H={[B.open]:``},U={[B.closed]:``},W={open(e){return e?{[V.panelOpen]:``}:null}},G={open(e){return e?H:U},...m},K=n(),te=I.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:c,...l}=e,u=C(o),d=L({open:s,defaultOpen:i,onOpenChange:u,disabled:a}),f=I.useMemo(()=>({open:d.open,disabled:d.disabled,transitionStatus:d.transitionStatus}),[d.open,d.disabled,d.transitionStatus]),p=I.useMemo(()=>({...d,onOpenChange:u,state:f}),[d,u,f]),m=b(`div`,e,{state:f,ref:t,props:l,stateAttributesMapping:G});return(0,K.jsx)(R.Provider,{value:p,children:m})}),ne={...W,...m},re=I.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=z(),{className:s,disabled:c=o,render:l,nativeButton:u=!0,style:d,...f}=e,{getButtonProps:p,buttonRef:m}=T({disabled:c,focusableWhenDisabled:!0,native:u});return b(`button`,e,{state:a,ref:[t,m],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},f,p],stateAttributesMapping:ne})}),q={height:void 0,width:void 0};function ie(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:a,onOpenChange:o,open:s,setMounted:c,setOpen:l,transitionStatus:u}=e,m=I.useRef(null),g=I.useRef(null),[_,y]=I.useState(q),b=I.useRef(q),S=I.useRef(!1),T=I.useRef(s),E=I.useRef(!1),[O,k]=I.useState(!1),A=I.useRef(null),j=f(t,m),M=D(s),N=h(m),P=!s&&!a,F=O?`idle`:u,L=s&&(T.current||E.current),R=!s&&a&&g.current===`css-animation`&&_.height===void 0&&_.width===void 0?b.current:_,z=n&&P&&g.current!==`css-animation`,V=C((e,t=!0)=>{t&&(b.current=e),y(e)}),H=C(()=>{A.current?.(),A.current=null}),U=C(e=>{H(),A.current=()=>{A.current=null,e()}}),W=C(()=>{s&&a&&g.current===`css-animation`&&(E.current=!0)});v(()=>{!O||u===`starting`||k(!1)},[O,u]),I.useEffect(()=>()=>{W(),H()},[W,H]),v(()=>{let e=m.current;if(!e)return;!s&&A.current&&H();let t=ae(e,L);if(g.current=t,s&&u===`idle`&&T.current&&t===`css-animation`){b.current=J(e);return}if(s&&u===`starting`){let n=S.current;if(S.current=!1,t===`none`){V(J(e)),k(!0);return}if(t===`css-transition`){let t=oe(e);if(V(J(e)),!n)return t;let r=X(e,`transition-duration`,`0s`);return U(r),k(!0),t}V(J(e));let r=X(e,`animation-name`,`none`);if(!n){r();return}let i=X(e,`animation-duration`,`0s`);r(),U(i),k(!0);return}if(!s&&a&&(u===`idle`||u===`starting`)){if(T.current=!1,E.current=!1,t===`none`){V(q,!1),c(!1);return}V(J(e));return}if(u!==`ending`)return;if(t===`none`){c(!1);return}let n=J(e);if(!(n.height>0||n.width>0)){c(!1);return}V(n),t===`css-animation`&&X(e,`animation-name`,`none`)()},[a,s,H,V,c,U,L,u]),w({enabled:s&&a&&F===`idle`,open:!0,ref:m,onComplete(){s&&V(q,!1)}}),I.useEffect(()=>{if(s||!a||F!==`ending`||!m.current)return;let e=new AbortController,t=-1;function n(){M.current||(c(!1),V(q,!1))}return t=p.request(()=>{N(n,e.signal)}),()=>{p.cancel(t),e.abort()}},[M,a,s,F,N,V,c]),v(()=>{let e=m.current;!e||!n||!P||e.setAttribute(`hidden`,`until-found`)},[P,n]),I.useEffect(function(){let e=m.current;if(!e)return;function t(e){let t=x(ee,e);o(!0,t),!t.isCanceled&&(S.current=!0,l(!0))}return d(e,`beforematch`,t)},[o,l]);let G=i||n||a||s;return{height:R.height,props:{...z?{[B.startingStyle]:``}:void 0,hidden:P,id:r},ref:j,shouldPreventOpenAnimation:L,shouldRender:G,transitionStatus:F,width:R.width}}function J(e){return{height:e.scrollHeight,width:e.scrollWidth}}function ae(e,t){let n=g(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&Y(n.animationDuration),i=Y(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function Y(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function X(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function oe(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=p.request(n);return()=>{p.cancel(r),n()}}var Z=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),se=I.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:a,id:o,style:s,...c}=e,{defaultPanelId:l,mounted:u,onOpenChange:d,open:f,setMounted:p,setPanelIdState:m,setOpen:h,state:g,transitionStatus:_}=z(),x=r??!1,ee=i??!1,S=o||void 0,C=S??l;v(()=>(m(e=>S??(e===null?void 0:e)),()=>{m(e=>e===S?null:e)}),[S,m]);let{height:w,props:T,ref:E,shouldPreventOpenAnimation:D,shouldRender:O,transitionStatus:k,width:A}=ie({externalRef:t,hiddenUntilFound:x,id:C,keepMounted:ee,mounted:u,onOpenChange:d,open:f,setMounted:p,setOpen:h,transitionStatus:_}),j={...g,transitionStatus:k},M=y(s,j),N=b(`div`,{...e,style:void 0},{state:j,ref:E,props:[T,{style:{[Z.collapsiblePanelHeight]:w===void 0?`auto`:`${w}px`,[Z.collapsiblePanelWidth]:A===void 0?`auto`:`${A}px`}},c,M?{style:M}:void 0,D?{style:{animationName:`none`}}:void 0],stateAttributesMapping:G});return O?N:null});function ce({...e}){return(0,K.jsx)(te,{"data-slot":`collapsible`,...e})}function le({...e}){return(0,K.jsx)(re,{"data-slot":`collapsible-trigger`,...e})}function ue({...e}){return(0,K.jsx)(se,{"data-slot":`collapsible-content`,...e})}function de({open:e,openHeight:t=`auto`,className:n,style:r,transition:a,...o}){let l=s()??!1;return(0,K.jsx)(i.div,{...o,"aria-hidden":!e,inert:!e,initial:!1,animate:l?{opacity:+!!e}:{opacity:+!!e,clipPath:e?`inset(0 0 0% 0)`:`inset(0 0 100% 0)`,y:e?0:-4},transition:a??{duration:l?0:e?.22:.14,ease:c},className:k(`overflow-hidden`,n),style:{...r,height:e?t:0,pointerEvents:e?void 0:`none`,transformOrigin:`top`}})}var Q={duration:.2,ease:`easeInOut`},fe=l,pe={duration:.14,ease:c},me=`blur(8px)`,$=`blur(3px)`,he=.025,ge={initial:{opacity:0,y:`105%`,filter:$},animate:(e=0)=>({opacity:1,y:`0%`,filter:`blur(0px)`,transition:{...l,delay:e}}),exit:(e=0)=>({opacity:0,y:`-105%`,filter:$,transition:{duration:.16,ease:c,delay:e*.5}})},_e={blur:{initial:{opacity:0,scale:.94,filter:me},animate:{opacity:1,scale:1,filter:`blur(0px)`,transition:Q},exit:{opacity:0,scale:.94,filter:me,transition:Q}},roll:{initial:{opacity:0,y:`90%`,filter:$},animate:{opacity:1,y:`0%`,filter:`blur(0px)`,transition:fe},exit:{opacity:0,y:`-90%`,filter:$,transition:pe}}};function ve({value:e,children:t,animation:n=`blur`,className:i}){let c=s(),l=(0,I.useRef)(null),[u,d]=(0,I.useState)();(0,I.useLayoutEffect)(()=>{let e=l.current?.offsetWidth;e&&d(t=>t===e?t:e)});let f=typeof t==`string`?t:null,p=n===`cascade`&&f!==null&&!c,m=n===`cascade`?`roll`:n;return(0,K.jsxs)(`span`,{className:k(`relative inline-block overflow-hidden whitespace-nowrap align-bottom`,i),style:{width:u,transition:c?void 0:`width 220ms ${a}`},children:[(0,K.jsx)(`span`,{ref:l,"aria-hidden":!0,className:`invisible inline-block whitespace-nowrap`,children:t}),p?(0,K.jsx)(`span`,{className:`sr-only`,children:f}):null,(0,K.jsx)(o,{initial:!1,children:p?(0,K.jsx)(r.span,{"aria-hidden":!0,initial:`initial`,animate:`animate`,exit:`exit`,className:`absolute left-0 top-0 inline-block whitespace-pre`,children:f.split(``).map((e,t)=>(0,K.jsx)(r.span,{custom:t*he,variants:ge,className:`inline-block whitespace-pre`,children:e},t))},`cascade-${e}`):(0,K.jsx)(r.span,{variants:_e[m],initial:!c&&`initial`,animate:c?{opacity:1,filter:`blur(0px)`,scale:1,y:0}:`animate`,exit:c?void 0:`exit`,className:`absolute left-0 top-0 inline-block`,children:t},`${n}-${e}`)})]})}function ye(e){return(0,K.jsx)(ve,{...e,animation:`roll`})}export{le as a,N as c,ue as i,M as l,de as n,F as o,ce as r,P as s,ye as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{a as r,d as i,i as a,l as o,n as s}from"./layout-gyLzPvVv.js";var c=e(t(),1),l=c.createContext(null);function u(e){return c.useContext(l)}function d(e){let t=u();return c.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var f=n(),p=c.createContext(void 0),m=e=>{let t=c.useContext(p);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},h=({client:e,children:t})=>(c.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,f.jsx)(p.Provider,{value:e,children:t})),g={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_=new class{#e=g;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ee(e){setTimeout(e,0)}var v=typeof window>`u`||`Deno`in globalThis;function y(){}function b(e,t){return typeof e==`function`?e(t):e}function x(e){return typeof e==`number`&&e>=0&&e!==1/0}function S(e,t){return Math.max(e+(t||0)-Date.now(),0)}function C(e,t){return typeof e==`function`?e(t):e}function w(e,t){return typeof e==`function`?e(t):e}function te(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==T(o,t.options))return!1}else if(!D(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ne(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(E(t.options.mutationKey)!==E(a))return!1}else if(!D(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function T(e,t){return(t?.queryKeyHashFn||E)(e)}function E(e){return JSON.stringify(e,(e,t)=>j(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function D(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!D(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!D(e[r],t[r]))return!1;return!0}return!1}var O=Object.prototype.hasOwnProperty;function k(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=A(e)&&A(t);if(!r&&!(j(e)&&j(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:O.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=k(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function re(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function A(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function j(e){if(!M(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!M(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function M(e){return Object.prototype.toString.call(e)===`[object Object]`}function ie(e){return new Promise(t=>{_.setTimeout(t,e)})}function N(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:k(e,t)}function ae(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function P(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var F=Symbol();function I(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===F?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oe(e,t){return typeof e==`function`?e(...t):!!e}function se(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var L=(()=>{let e=()=>v;return{isServer(){return e()},setIsServer(t){e=t}}})(),R=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},z=new class extends R{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},ce=ee;function B(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ce,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var V=B(),H=new class extends R{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function U(e){return Math.min(1e3*2**e,3e4)}function W(e){return(e??`online`)!==`online`||H.isOnline()}var G=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function K(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(y);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new G(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>z.isFocused()&&(e.networkMode===`always`||H.isOnline())&&e.canRun(),p=()=>W(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(L.isServer()?0:3),a=e.retryDelay??U,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),ie(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var q=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x(this.gcTime)&&(this.#e=_.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(L.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(_.clearTimeout(this.#e),this.#e=void 0)}};function le(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{se(e,()=>t.signal,()=>n=!0)},u=I(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?P:ae;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ue:J,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:J(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function J(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ue(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var de=class extends q{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Z(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Z(this.options);e.data!==void 0&&(this.setState(X(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=N(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(y).catch(y):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>w(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===F||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>C(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!S(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=I(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?le(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=K({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof G&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof G){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Y(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...X(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),V.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Y(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:W(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function X(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Z(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var fe=class extends q{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Q(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=K({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),V.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Q(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}function pe({children:e,features:t,strict:n=!1}){let[,r]=(0,c.useState)(!$(t)),a=(0,c.useRef)(void 0);if(!$(t)){let{renderer:e,...n}=t;a.current=e,o(n)}return(0,c.useEffect)(()=>{$(t)&&t().then(({renderer:e,...t})=>{o(t),a.current=e,r(!0)})},[]),(0,f.jsx)(i.Provider,{value:{renderer:a.current,strict:n},children:e})}function $(e){return typeof e==`function`}var me={renderer:r,...a,...s};function he(){}function ge(e){}function _e(){}function ve(e){}function ye(e){}export{oe as A,te as C,w as D,N as E,m as F,d as I,u as L,S as M,_ as N,C as O,h as P,l as R,ne as S,D as T,b as _,_e as a,v as b,fe as c,Y as d,H as f,L as g,R as h,he as i,F as j,re as k,Q as l,z as m,ye as n,me as o,V as p,ge as r,pe as s,ve as t,de as u,E as v,y as w,x,T as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./button-0At5xSyU.js";import{t as i}from"./createLucideIcon-DwxZHm0M.js";import{i as a,n as o,r as s,t as c}from"./tool-result-C2NvnN32.js";import{t as l}from"./chevron-right-DrJxToLs.js";import{a as u,i as d,r as f}from"./action-swap-roll-DX5o_33Q.js";import{t as p}from"./package-CdcJFPf2.js";import{r as m,t as h}from"./openui-renderer-CCfQqUfE.js";import{n as g}from"./prime-agent-artifacts-C-g1VPiW.js";import{q as _}from"./chat-W-yOMyG_.js";import{t as v}from"./artifacts-utils-N_kUFbz2.js";var y=i(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),b=e(t(),1),x=n(),S=[];function C(e){if(typeof e==`string`)return e;if(e==null)return``;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function w(e){return e===`running`?`running`:e===`error`?`error`:e===`cancelled`?`cancelled`:`success`}function T(e){return e===`running`?`streaming`:e===`error`?`error`:e===`cancelled`?`cancelled`:`complete`}function E(e){let t=typeof e==`object`&&e?e:void 0;if(!t)return e===void 0?[]:[{label:`result`,text:C(e)}];let n=[];for(let e of[`stdout`,`stderr`,`result`,`error`])t[e]!==void 0&&t[e]!==``&&n.push({label:e,text:C(t[e])});let r=t.details??t.output??t.result;if(n.length===0&&r!==e&&n.push(...E(r)),n.length===0&&Array.isArray(t.content)){let e=t.content.flatMap(e=>typeof e==`string`?[e]:typeof e==`object`&&e&&`text`in e&&typeof e.text==`string`?[e.text]:[]).join(``);e&&n.push({label:t.isError===!0?`error`:`stdout`,text:e})}return n.length>0?n:[{label:`result`,text:C(e)}]}function D(e){let t=typeof e.input==`object`&&e.input!==null?e.input:void 0,n=t?.command??t?.code??t?.script;if(!(typeof n!=`string`||!n))return e.kind===`bash`?{code:n,language:`bash`,label:`Bash`}:e.kind===`ipython`?{code:n,language:/^\s*%%bash(?:\s|$)/im.test(n)?`bash`:`python`,label:`IPython`}:e.kind===`diff`?{code:n,language:`text`,label:`Text`}:{code:n,language:`json`,label:`JSON`}}function O(e){if(e.kind!==`openui-html`)return;let t=typeof e.output==`object`&&e.output!==null?e.output:void 0;if(typeof t?.title==`string`&&typeof t.document==`string`)return{title:t.title,document:t.document}}function k({artifact:e,selected:t}){let n=(0,b.useRef)(null);(0,b.useEffect)(()=>{t&&requestAnimationFrame(()=>{n.current?.focus({preventScroll:!0}),n.current?.scrollIntoView({block:`nearest`})})},[t]);let r=O(e);return(0,x.jsxs)(`article`,{ref:n,"data-artifact-id":e.id,tabIndex:-1,className:`min-w-0 rounded-md border border-border/60 bg-background p-2.5 outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,x.jsxs)(`div`,{className:`mb-2 flex min-w-0 items-center gap-2`,children:[(0,x.jsx)(y,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs font-medium`,title:e.title,children:e.title||`OpenUI artifact`}),(0,x.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:e.status})]}),r?(0,x.jsx)(m,{artifact:r}):(0,x.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-xs text-destructive`,children:[(0,x.jsx)(`p`,{children:`OpenUI artifact data is unavailable.`}),(0,x.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap break-words rounded bg-foreground/5 p-2 text-foreground/70`,children:C(e.output)})]})]})}function A({artifact:e,selected:t}){let n=(0,b.useRef)(null),r=t||e.status===`running`,[i,l]=(0,b.useState)(r);(0,b.useEffect)(()=>{t&&(l(!0),requestAnimationFrame(()=>{n.current?.focus({preventScroll:!0}),n.current?.scrollIntoView({block:`nearest`})}))},[t]);let u=D(e),d=E(e.output),f=e.kind===`diff`||e.kind===`refinement`?g(e):void 0;return(0,x.jsxs)(`article`,{ref:n,"data-artifact-id":e.id,tabIndex:-1,className:`rounded-md border border-border/60 bg-background px-2.5 py-2 outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[f?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{file:f.file,lines:f.lines,status:T(e.status),defaultOpen:r,copyText:f.copyText,maxHeight:240}),d.map(e=>(0,x.jsx)(o,{label:e.label,language:`text`,children:e.text},e.label))]}):null,f?null:(0,x.jsx)(c,{tool:e.kind,title:e.title,status:w(e.status),open:i,onOpenChange:l,defaultOpen:r,kind:e.kind===`bash`||e.kind===`ipython`?`terminal`:`custom`,children:(0,x.jsxs)(`div`,{className:`space-y-3`,children:[u?(0,x.jsx)(a,{code:u.code,language:u.language,languageLabel:u.label,showStatus:!1,showLineNumbers:!1,wrap:!0}):null,d.map(e=>(0,x.jsx)(o,{label:e.label,language:`text`,children:e.text},e.label))]})})]})}function j({block:e,expanded:t,isStreaming:n,onOpenUIAction:i,onToggle:a}){return(0,x.jsxs)(f,{open:t,onOpenChange:a,children:[(0,x.jsxs)(u,{render:(0,x.jsx)(r,{variant:`ghost`,size:`sm`,className:`group w-full justify-start gap-1.5 text-left text-label font-normal text-foreground/65 transition-none hover:bg-foreground/5 hover:text-foreground/80`}),children:[(0,x.jsx)(l,{className:`size-3 shrink-0 text-foreground/35 transition-transform group-data-panel-open:rotate-90`}),(0,x.jsx)(y,{className:`size-3.5 shrink-0 text-foreground/35`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.component,children:e.component}),(0,x.jsxs)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:[`#`,e.ordinal]})]}),(0,x.jsx)(d,{children:(0,x.jsx)(`div`,{className:`mb-1 mt-0.5 flex min-w-0 flex-col overflow-hidden rounded-md border border-border/60 bg-background px-2.5 py-2`,children:(0,x.jsx)(_,{resetKeys:[e.content],children:(0,x.jsx)(h,{content:e.content,isStreaming:n,messageId:e.blockId,onOpenUIAction:i})})})})]})}function M({messages:e,onOpenUIAction:t,status:n,artifactRuns:r=S,selectedArtifactId:i}){let a=(0,b.useMemo)(()=>v(e),[e]),[o,s]=(0,b.useState)(null),c=n===`streaming`?a.at(-1)?.blockId:void 0,l=(0,b.useMemo)(()=>r.flatMap(e=>e.artifacts),[r]),u=(0,b.useMemo)(()=>l.filter(e=>e.kind===`openui-html`),[l]),d=(0,b.useMemo)(()=>l.filter(e=>e.kind!==`openui-html`&&e.kind!==`ipython`),[l]);return(0,x.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col gap-2 overflow-hidden`,children:[u.length>0?(0,x.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:[(0,x.jsxs)(`div`,{className:`mb-2 flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,x.jsx)(y,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:`OpenUI artifacts`}),(0,x.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:u.length})]}),(0,x.jsx)(`div`,{className:`space-y-1`,children:u.map(e=>(0,x.jsx)(k,{artifact:e,selected:e.id===i},e.id))})]}):null,d.length>0?(0,x.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:[(0,x.jsxs)(`div`,{className:`mb-2 flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,x.jsx)(p,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:`Technical artifacts`}),(0,x.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:d.length})]}),(0,x.jsx)(`div`,{className:`space-y-1`,children:d.map(e=>(0,x.jsx)(A,{artifact:e,selected:e.id===i},e.id))})]}):null,(0,x.jsxs)(`div`,{className:`flex min-h-0 flex-col`,children:[(0,x.jsxs)(`div`,{className:`mb-2 flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,x.jsx)(y,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,x.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:`Generative UI`}),(0,x.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:a.length>0?`${a.length}`:`none yet`})]}),a.length===0?(0,x.jsx)(`p`,{className:`px-2 pb-1 text-[11px] leading-4 text-foreground/40`,children:`OpenUI interfaces the agent generates in this session appear here, and can be re-opened without scrolling the conversation.`}):(0,x.jsx)(`div`,{className:`flex min-h-0 flex-col gap-0.5 overflow-y-auto`,children:a.map(e=>(0,x.jsx)(j,{block:e,expanded:e.blockId===o,isStreaming:e.blockId===c,onOpenUIAction:t,onToggle:()=>s(t=>t===e.blockId?null:e.blockId)},e.blockId))})]})]})}export{M as ArtifactsPanelContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{i as n,r}from"./bundle-mjs-DKHVkVWu.js";import{t as i}from"./react-dom-Bwxum3ti.js";import{t as a}from"./jsx-runtime-NZYk81nU.js";import{B as o,C as s,F as c,I as l,K as u,Y as d,Z as f,at as p,ct as m,it as h,k as g,lt as _,n as v,nt as y,ot as b,q as x,tt as S,y as C}from"./x-BgciQ7_C.js";import{t as w}from"./utils-Eg7xtNmV.js";var ee=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),T=t(((e,t)=>{t.exports=ee()})),te=t((e=>{var t=n(),r=T();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),E=t(((e,t)=>{t.exports=te()})),ne=T(),re=e(E(),1),D=e(n(),1),O=[],k=void 0;function ie(){return k}function ae(e){O.push(e)}function A(e){let t=(t,n)=>{let r=p(se).current,i;try{k=r;for(let e of O)e.before(r);i=e(t,n);for(let e of O)e.after(r);r.didInitialize=!0}finally{k=void 0}return i};return t.displayName=e.displayName||e.name,t}function oe(e){return D.forwardRef(A(e))}function se(){return{didInitialize:!1}}var ce=y(19)?ue:de;function j(e,t,n,r,i){return ce(e,t,n,r,i)}function le(e,t,n,r,i){let a=D.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,ne.useSyncExternalStore)(e.subscribe,a,a)}ae({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,ne.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ue(e,t,n,r,i){let a=ie();if(!a)return le(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function de(e,t,n,r,i){return(0,re.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var fe=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return j(this,e,t,n,r)}},pe=class extends fe{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){D.useDebugValue(e);let n=this;h(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;h(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);h(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){D.useDebugValue(e);let n=this,r=t!==void 0;h(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return D.useDebugValue(e),j(this,this.selectors[e],t,n,r)}useContextCallback(e,t){D.useDebugValue(e);let n=S(t??_);this.context[e]=n}useStateSetter(e){let t=D.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},me=e(i(),1);function he(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var M=a();function N(e){return e?.ownerDocument||document}var P=0,F=class e{static create(){return new e}currentId=P;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=P,t()},e)}isStarted(){return this.currentId!==P}clear=()=>{this.currentId!==P&&(clearTimeout(this.currentId),this.currentId=P)};disposeEffect=()=>this.clear};function ge(){let e=p(F.create).current;return b(e.disposeEffect),e}function _e(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:ve,platform:ye,maxTouchPoints:be}=_e(),I=ve.toLowerCase(),L=ye.toLowerCase(),R=/^i(os$|p)/.test(L)||L===`macintel`&&be>1,z=`android`,xe=L===z||I.includes(z),Se=!R&&L.startsWith(`mac`);L.startsWith(`win`),!xe&&/^(linux|chrome os)/.test(L);var Ce=Se||R,B=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!B&&I.includes(`firefox`),!B&&I.includes(`chrom`);var we=Ce,Te=/jsdom|happydom/.test(I),Ee=`data-base-ui-focusable`,De=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Oe=`ArrowLeft`,ke=`ArrowRight`,Ae=`ArrowUp`,je=`ArrowDown`;function V(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function H(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&f(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Me(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Ne(e,t){if(!u(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Pe(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Fe(e){return e.matches(`html,body`)}function U(e){return x(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ie(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${De}`)!=null}function Le(e){return e?e.getAttribute(`role`)===`combobox`&&U(e):!1}function Re(e){if(!e||Te)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ze(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Be(e,t){return t<0||t>=e.length}function Ve(e,t){return W(e.current,{disabledIndices:t})}function He(e,t){return W(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function W(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&G(e,a,r));return a}function G(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!K(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Ue(e){return e.visibility===`hidden`||e.visibility===`collapse`}function K(e,t=e?l(e):null){return!e||!e.isConnected||!t||Ue(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var We=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Ge(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return f(n)?n.host:null}function q(e){for(let t of Array.from(e.children))if(o(t)===`summary`)return t;return null}function Ke(e,t){let n=q(t);return!!n&&(e===n||H(n,e))}function J(e){let t=e?o(e):``;return e!=null&&e.matches(We)&&(t!==`summary`||e.parentElement!=null&&o(e.parentElement)===`details`&&q(e.parentElement)===e)&&(t!==`details`||q(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Y(e){if(!J(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Ge(t)){let n=t!==e,r=o(t)===`slot`;if(t.hasAttribute(`inert`)||n&&o(t)===`details`&&!t.open&&!Ke(e,t)||t.hasAttribute(`hidden`)||!r&&!qe(t,n))return!1}return!0}function qe(e,t){let n=l(e);return t?n.display!==`none`:K(e,n)}function Je(e){let t=e.tabIndex;if(t<0){let t=o(e);if(t===`details`||t===`audio`||t===`video`||x(e)&&e.isContentEditable)return 0}return t}function X(e){if(o(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ye(e,t){let n=X(e);if(!n)return!0;let r=t.find(e=>{let t=X(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=X(e);return t?.name===n.name&&t.form===n.form})===n}function Xe(e){if(x(e)&&o(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return x(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ze(e,t){Xe(e).forEach(e=>{J(e)&&t.push(e),Ze(e,t)})}function Qe(e,t,n){Xe(e).forEach(e=>{x(e)&&e.matches(t)&&n.push(e),Qe(e,t,n)})}function $e(e){return Y(e)&&Je(e)>=0}function et(e){let t=[];return Ze(e,t),t.filter(Y)}function Z(e){let t=et(e);return t.filter(e=>Je(e)>=0&&Ye(e,t))}function tt(e,t){let n=Z(e),r=n.length;if(r===0)return;let i=V(N(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function nt(e){return tt(N(e).body,1)||e}function rt(e){return tt(N(e).body,-1)||e}function it(e,t){if(!e)return null;let n=Z(N(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function at(e){return it(e,1)}function ot(e){return it(e,-1)}function Q(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function st(e){Z(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ct(e){let t=[];Qe(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var lt={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},ut={...lt,position:`fixed`,top:0,left:0},dt={...lt,position:`absolute`},$=D.forwardRef(function(e,t){let[n,r]=D.useState();h(()=>{we&&B&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,M.jsx)(`span`,{...e,ref:t,style:ut,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function ft(e){return y(19)?e:e?`true`:void 0}var pt={style:{transition:`none`}},mt=`data-base-ui-click-trigger`,ht=`data-base-ui-swipe-ignore`,gt=`data-swipe-ignore`,_t=`[${ht}]`,vt=`[${gt}]`,yt={fallbackAxisSide:`none`},bt={fallbackAxisSide:`end`},xt={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function St(e){return`data-base-ui-${e}`}var Ct=D.createContext(null),wt=()=>D.useContext(Ct),Tt=St(`portal`);function Et(e={}){let{ref:t,container:n,componentProps:r=m,elementProps:i}=e,a=s(),o=wt()?.portalNode,[c,l]=D.useState(null),[u,f]=D.useState(null),p=S(e=>{e!==null&&f(e)}),_=D.useRef(null);h(()=>{if(n===null){_.current&&(_.current=null,f(null),l(null));return}let e=(n&&(d(n)?n:n.current))??o??document.body;if(e==null){_.current&&(_.current=null,f(null),l(null));return}_.current!==e&&(_.current=e,f(null),l(e))},[n,o]);let v=g(`div`,r,{ref:[t,p],props:[{id:a,[Tt]:``},i]}),y=c&&v?me.createPortal(v,c):null;return{node:u,nodeId:D.isValidElement(v)?v.props.id:void 0,subtree:y}}var Dt=D.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,...s}=e,{node:l,nodeId:u,subtree:d}=Et({container:o,ref:t,componentProps:e,elementProps:s}),f=D.useRef(null),p=D.useRef(null),m=D.useRef(null),g=D.useRef(null),[_,y]=D.useState(null),b=D.useRef(!1),x=_?.modal,S=_?.open,C=!!_&&!_.modal&&_.open&&!!l;D.useEffect(()=>{if(!l||x)return;function e(e){l&&e.relatedTarget&&Q(e)&&(e.type===`focusin`?b.current&&=(ct(l),!1):(st(l),b.current=!0))}return he(c(l,`focusin`,e,!0),c(l,`focusout`,e,!0))},[l,x]),h(()=>{!l||S!==!0||!b.current||(ct(l),b.current=!1)},[S,l]);let w=D.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:g,portalNode:l,setFocusManagerState:y}),[l]);return(0,M.jsxs)(D.Fragment,{children:[d,(0,M.jsxs)(Ct.Provider,{value:w,children:[C&&l&&(0,M.jsx)($,{"data-type":`outside`,ref:f,onFocus:e=>{Q(e,l)?m.current?.focus():rt(_?_.domReference:null)?.focus()}}),C&&l&&(0,M.jsx)(`span`,{"aria-owns":u,style:xt}),l&&me.createPortal(a,l),C&&l&&(0,M.jsx)($,{"data-type":`outside`,ref:p,onFocus:e=>{Q(e,l)?g.current?.focus():(nt(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,v(`focus-out`,e.nativeEvent)))}})]})]})}),Ot=D.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=C({disabled:i,focusableWhenDisabled:a,native:o});return g(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),kt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,At=r,jt=(e,t)=>n=>{if(t?.variants==null)return At(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=kt(t)||kt(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return At(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Mt=jt(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Nt({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,M.jsx)(Ot,{"data-slot":`button`,className:w(Mt({variant:t,size:n,className:e})),...r})}export{ge as $,G as A,H as B,$e as C,Ve as D,He as E,Ne as F,Ae as G,je as H,Le as I,B as J,Ee as K,U as L,Pe as M,Ie as N,K as O,Fe as P,F as Q,Re as R,Q as S,W as T,Oe as U,Me as V,ke as W,R as X,xe as Y,Se as Z,et as _,wt as a,oe as at,at as b,mt as c,vt as d,N as et,bt as f,dt as g,ut as h,Et as i,A as it,ze as j,Be as k,pt as l,$ as m,jt as n,pe as nt,St as o,E as ot,ft as p,Te as q,Dt as r,j as rt,_t as s,T as st,Nt as t,he as tt,yt as u,nt as v,Z as w,ot as x,rt as y,V as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-DwxZHm0M.js";import{a as i,c as a,d as o,i as s,l as c,n as l,o as u,r as d,s as f}from"./command-CQzrtjyj.js";import{i as p,n as m,r as h,t as g}from"./sun-BWiZFty0.js";import{l as _}from"./input-group-H0TG-mkU.js";var v=r(`rotate-ccw-clock`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),y=e(t(),1),b=n();function x({open:e,onOpenChange:t,onNewSession:n,onStop:r,onResumeSession:x,onSetRightPanel:S,onThemeChange:C,sessions:w,isStreaming:T,themePreference:E}){let[D,O]=(0,y.useState)(``),[k,A]=(0,y.useState)(e);e!==k&&(A(e),e&&O(``));let j=e=>{e(),t(!1)};return(0,b.jsxs)(l,{open:e,onOpenChange:t,children:[(0,b.jsx)(i,{placeholder:`Type a command or search…`,value:D,onValueChange:O}),(0,b.jsxs)(f,{children:[(0,b.jsx)(d,{children:`No commands found.`}),(0,b.jsxs)(s,{heading:`Actions`,children:[(0,b.jsxs)(u,{onSelect:()=>j(n),keywords:[`new`,`session`,`chat`],children:[(0,b.jsx)(_,{className:`mr-2 size-4`}),(0,b.jsx)(`span`,{children:`New session`})]}),T&&(0,b.jsxs)(u,{onSelect:()=>j(r),keywords:[`stop`,`abort`,`cancel`],children:[(0,b.jsx)(o,{className:`mr-2 size-4`}),(0,b.jsx)(`span`,{children:`Stop generation`})]})]}),(0,b.jsx)(a,{}),(0,b.jsx)(s,{heading:`Panels`,children:c.map(e=>{let t=e.icon;return(0,b.jsxs)(u,{onSelect:()=>j(()=>S(e.id)),keywords:e.commandKeywords,children:[(0,b.jsx)(t,{}),(0,b.jsx)(`span`,{children:e.commandLabel})]},e.id)})}),w.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{}),(0,b.jsx)(s,{heading:`Sessions`,children:w.map(e=>{let t=e.title;return(0,b.jsxs)(u,{onSelect:()=>j(()=>x(e)),keywords:[`session`,t],children:[(0,b.jsx)(v,{className:`mr-2 size-4`}),(0,b.jsx)(`span`,{className:`truncate`,children:t})]},e.sessionId)})})]}),(0,b.jsx)(a,{}),(0,b.jsxs)(s,{heading:`Theme`,children:[(0,b.jsxs)(u,{onSelect:()=>j(()=>C(`light`)),keywords:[`theme`,`light`],children:[(0,b.jsx)(g,{className:`mr-2 size-4`}),(0,b.jsx)(`span`,{children:`Light`}),E===`light`&&(0,b.jsx)(p,{className:`ml-auto size-3 opacity-50`})]}),(0,b.jsxs)(u,{onSelect:()=>j(()=>C(`dark`)),keywords:[`theme`,`dark`],children:[(0,b.jsx)(m,{className:`mr-2 size-4`}),(0,b.jsx)(`span`,{children:`Dark`}),E===`dark`&&(0,b.jsx)(p,{className:`ml-auto size-3 opacity-50`})]}),(0,b.jsxs)(u,{onSelect:()=>j(()=>C(`system`)),keywords:[`theme`,`system`],children:[(0,b.jsx)(h,{className:`mr-2 size-4`}),(0,b.jsx)(`span`,{children:`System`}),E===`system`&&(0,b.jsx)(p,{className:`ml-auto size-3 opacity-50`})]})]})]})]})}export{x as ChatCommandPalette};
|