@qredence/fleet 0.6.0 → 0.6.2
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 +18 -0
- package/dist/web/client/assets/agent-disclosure-CMrxF7L-.js +1 -0
- package/dist/web/client/assets/analytics-stub-C2vgmGm_.js +1 -0
- package/dist/web/client/assets/artifacts-panel-DmQghvw8.js +1 -0
- package/dist/web/client/assets/{bot-Bs7QWJ2q.js → bot-DbB9BKL0.js} +1 -1
- package/dist/web/client/assets/bundle-mjs-cJTHqqzI.js +1 -0
- package/dist/web/client/assets/button-Dl0ce3Y5.js +1 -0
- package/dist/web/client/assets/card-DCEnYd2G.js +1 -0
- package/dist/web/client/assets/chat-C24kD2SP.js +52 -0
- package/dist/web/client/assets/chat-command-palette-BIwjhE6s.js +1 -0
- package/dist/web/client/assets/check-B3LlvM65.js +1 -0
- package/dist/web/client/assets/{chevron-down-BEVGmnSb.js → chevron-down-DUUprRP5.js} +1 -1
- package/dist/web/client/assets/chevron-right-NVqQIoiO.js +1 -0
- package/dist/web/client/assets/{chunk-YOKDWASO-BAf618wr.js → chunk-YOKDWASO-Bte3iwlH.js} +6 -6
- package/dist/web/client/assets/citations-BUvM92nt.js +1 -0
- package/dist/web/client/assets/collapsible-CUxOjhDJ.js +1 -0
- package/dist/web/client/assets/command-Dv96gATQ.js +1 -0
- package/dist/web/client/assets/createBaseUIEventDetails-B58Jldei.js +1 -0
- package/dist/web/client/assets/createLucideIcon-_dfI7Arx.js +1 -0
- package/dist/web/client/assets/dialog-BCb4rQh0.js +1 -0
- package/dist/web/client/assets/dist-52wg4XPY.js +1 -0
- package/dist/web/client/assets/dist-DbHxXSgQ.js +41 -0
- package/dist/web/client/assets/ease-CMumuPlX.js +1 -0
- package/dist/web/client/assets/{eye-B0DFz5hL.js → eye-CDHqtVoE.js} +1 -1
- package/dist/web/client/assets/file-text-TmalmYrb.js +1 -0
- package/dist/web/client/assets/{folder-BC5p7qK7.js → folder-vuNT4shY.js} +1 -1
- package/dist/web/client/assets/{fork-picker-dialog-ByBOGVsa.js → fork-picker-dialog-CpwEwsxA.js} +1 -1
- package/dist/web/client/assets/gauge-BsDqNM1A.js +1 -0
- package/dist/web/client/assets/globals-DCtBkCSD.css +2 -0
- package/dist/web/client/assets/{hard-drive-CHqgr7VQ.js → hard-drive-BT7UxHQu.js} +1 -1
- package/dist/web/client/assets/highlighted-body-KPVGNVTW-CgT7gqvs.js +1 -0
- package/dist/web/client/assets/horizontal-resize-VLjLByUV.js +1 -0
- package/dist/web/client/assets/index-BGnQeUYE.js +12 -0
- package/dist/web/client/assets/input-CxZp56Im.js +1 -0
- package/dist/web/client/assets/input-group-D7lAfKHR.js +1 -0
- package/dist/web/client/assets/ipython-tool-CkHaO3PW.js +3 -0
- package/dist/web/client/assets/is-ref-object-BcRWZ4l7.js +1 -0
- package/dist/web/client/assets/{loader-circle-DjfHXUPB.js → loader-circle-B5GIZGxd.js} +1 -1
- package/dist/web/client/assets/markdown-BHkByC9K.js +2 -0
- package/dist/web/client/assets/{markdown-code-CuQcR3UO.js → markdown-code-CDTRq-HZ.js} +1 -1
- package/dist/web/client/assets/mermaid-HWGCJPDP-CY3N5ECk.js +1 -0
- package/dist/web/client/assets/message-queue-Dl8wbCOu.js +1 -0
- package/dist/web/client/assets/model-selector-list-CRZCXeBf.js +1 -0
- package/dist/web/client/assets/{notify-DgMKgZZW.js → notify-DjVixft7.js} +1 -1
- package/dist/web/client/assets/openui-renderer-Bkkx5kmA.js +378 -0
- package/dist/web/client/assets/{package-CdcJFPf2.js → package-BKBPgwMP.js} +1 -1
- package/dist/web/client/assets/{pencil-DcUwsKLn.js → pencil-CdO6qfv3.js} +1 -1
- package/dist/web/client/assets/{plug-Dt6VN0zF.js → plug-BRROUIw-.js} +1 -1
- package/dist/web/client/assets/prompt-input-WaGSKZCU.js +1 -0
- package/dist/web/client/assets/prompt-suggestions-BNyTcyWg.js +1 -0
- package/dist/web/client/assets/provider-catalog-C0XBIasJ.js +1 -0
- package/dist/web/client/assets/provider-label-Cka0ep0S.js +1 -0
- package/dist/web/client/assets/react-CwJFpaho.js +1 -0
- package/dist/web/client/assets/react-dom-DX3XddaT.js +1 -0
- package/dist/web/client/assets/{refresh-cw-IThTJ3j-.js → refresh-cw-l9WPHRkq.js} +1 -1
- package/dist/web/client/assets/repl-panel-L9dmPqio.js +1 -0
- package/dist/web/client/assets/{resource-helpers-Q2T0YCMO.js → resource-helpers-BuWybA8l.js} +1 -1
- package/dist/web/client/assets/resources-panel-mT-aMCvV.js +1 -0
- package/dist/web/client/assets/right-panel-context-CS8tJMzE.js +1 -0
- package/dist/web/client/assets/right-panel-registry-BCW7fQTG.js +2 -0
- package/dist/web/client/assets/{rotate-ccw-WNFNkKQD.js → rotate-ccw-CfGhzOv7.js} +1 -1
- package/dist/web/client/assets/routes-BWe5Iz-2.js +16 -0
- package/dist/web/client/assets/safe-external-url-BbAom7Bm.js +1 -0
- package/dist/web/client/assets/search-BjcXAUrI.js +1 -0
- package/dist/web/client/assets/session-insights-panel-B0rl37lo.js +1 -0
- package/dist/web/client/assets/session-reasoning-panel-8D2P7iaJ.js +1 -0
- package/dist/web/client/assets/{fleet-pi-tool-renderer-BEDIO3al.js → session-tool-renderer-3E3cv8D0.js} +30 -30
- package/dist/web/client/assets/settings-dialog-B8lHq2tT.js +2 -0
- package/dist/web/client/assets/{skeleton-CkR2VmWc.js → skeleton-C3mo31Qu.js} +1 -1
- package/dist/web/client/assets/skeleton-loaders-BMa_G4yX.js +1 -0
- package/dist/web/client/assets/{shield-check-CkA2viVW.js → sparkles-D8XIY8pN.js} +1 -1
- package/dist/web/client/assets/square-DQaQu9bp.js +1 -0
- package/dist/web/client/assets/{square-terminal-BYTN_I86.js → square-terminal-BsopiuN7.js} +1 -1
- package/dist/web/client/assets/{subagent-chat-panel-Yujplxpb.js → subagent-chat-panel-C5ukYiUx.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-lqNcSVbH.js +1 -0
- package/dist/web/client/assets/subagents-panel-SJKhaVTr.js +1 -0
- package/dist/web/client/assets/{sun-BWiZFty0.js → sun-D0llhiMU.js} +1 -1
- package/dist/web/client/assets/surfaces-CpfsGAIA.js +1 -0
- package/dist/web/client/assets/switch-D3FhZU-S.js +1 -0
- package/dist/web/client/assets/terminal-BQAKkBY6.js +1 -0
- package/dist/web/client/assets/toast-lnCWGgSE.js +1 -0
- package/dist/web/client/assets/tokens-Ch5WqXC_.js +1 -0
- package/dist/web/client/assets/tool-result-B_yb2JoE.js +4 -0
- package/dist/web/client/assets/tool-timeline-VnMRQoLS.js +1 -0
- package/dist/web/client/assets/{triangle-alert-CU-gd7ui.js → triangle-alert-GAYh_5d3.js} +1 -1
- package/dist/web/client/assets/ui-preferences-aG2U2jjW.js +1 -0
- package/dist/web/client/assets/use-presence-7I2qv4qI.js +1 -0
- package/dist/web/client/assets/use-reduced-motion-BOcG709U.js +9 -0
- package/dist/web/client/assets/useBaseUiId-D9ZGPZ6f.js +1 -0
- package/dist/web/client/assets/useControlled-CgAAWIy9.js +1 -0
- package/dist/web/client/assets/utils-Brtgag-m.js +1 -0
- package/dist/web/client/assets/virtualized-turn-list-BgUgX6tM.js +6 -0
- package/dist/web/client/assets/workspace-panel-CKF5JQl2.js +1 -0
- package/dist/web/client/assets/workspace-path-nav-DqPbETfJ.js +2 -0
- package/dist/web/client/assets/{wrench-BJNNe07k.js → wrench-Myc12BTA.js} +1 -1
- package/dist/web/client/assets/x-BGsDD848.js +1 -0
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/launcher.mjs +10 -1
- package/dist/web/server/_tanstack-start-manifest_v-BDPifIFN-DTSNCHBX.js +91 -0
- package/dist/web/server/{artifacts-panel-CaKrX2XC-R37I4BHF.js → artifacts-panel-BN3DgqfV-N73J6N5Y.js} +39 -44
- package/dist/web/server/{chat-command-palette-7gbqEnm9-6XICQZN7.js → chat-command-palette-G8awyZRw-2QE7FXGT.js} +18 -18
- package/dist/web/server/{chunk-SALXCFVO.js → chunk-33QA7BQJ.js} +19 -1
- package/dist/web/server/{chunk-P6UMR32I.js → chunk-43S5N7SH.js} +80 -47
- package/dist/web/server/chunk-4EBSM4JR.js +74 -0
- package/dist/web/server/{chunk-BBBS5AS7.js → chunk-4OTHKQMG.js} +753 -677
- package/dist/web/server/{chunk-WM4PUT6M.js → chunk-6SOMNRAX.js} +535 -505
- package/dist/web/server/chunk-7E76R7MB.js +2138 -0
- package/dist/web/server/{chunk-K3BXQG3N.js → chunk-7FK6YEMA.js} +100 -95
- package/dist/web/server/chunk-7HXCGBUP.js +56 -0
- package/dist/web/server/{chunk-P66QQWUM.js → chunk-7NZ3FJDA.js} +14 -1
- package/dist/web/server/{chunk-WHBVQJ4K.js → chunk-7UTDOTOU.js} +11 -9
- package/dist/web/server/{chunk-OZO5ARFA.js → chunk-BQROC4PL.js} +11 -2
- package/dist/web/server/{chunk-WYL2DW5R.js → chunk-BUXJSBE3.js} +2 -2
- package/dist/web/server/{chunk-ZJFA4F5X.js → chunk-CAPTFJOC.js} +9 -7
- package/dist/web/server/{chunk-EH4BZ6QM.js → chunk-CCYLHNZJ.js} +1767 -52
- package/dist/web/server/{chunk-DJMHPJBP.js → chunk-CHEC7TWB.js} +3 -1
- package/dist/web/server/{chunk-PIOFZUOU.js → chunk-CW6KZUKT.js} +7 -6
- package/dist/web/server/chunk-DLA5TLKX.js +164 -0
- package/dist/web/server/{chunk-7SR6WDM2.js → chunk-E5HALE4M.js} +4 -4
- package/dist/web/server/{chunk-DZ2IC3FH.js → chunk-EDAWH2MT.js} +47 -46
- package/dist/web/server/{chunk-JQDLJ7KI.js → chunk-ENGEUJIH.js} +2288 -2438
- package/dist/web/server/{chunk-DI7XRK2H.js → chunk-ESM7OCRL.js} +4 -4
- package/dist/web/server/{chunk-KELEYPVK.js → chunk-FT74GAAH.js} +74861 -74854
- package/dist/web/server/{chunk-LZ4Q5KUJ.js → chunk-HQ5TEXHT.js} +40 -60
- package/dist/web/server/{chunk-YOM42BKD.js → chunk-IPV4GLJL.js} +16 -16
- package/dist/web/server/{chunk-KOUEJ3NU.js → chunk-IXGLKAPN.js} +54 -46
- package/dist/web/server/{chunk-EAE2QXRK.js → chunk-JPDRUSUD.js} +2 -3
- package/dist/web/server/{chunk-AGFRJQZ7.js → chunk-JVOW2NWC.js} +452 -450
- package/dist/web/server/chunk-K6PTNSCW.js +31 -0
- package/dist/web/server/{chunk-AR7O7JXD.js → chunk-KBWUBWVJ.js} +24 -1
- package/dist/web/server/{chunk-NXJ32VFR.js → chunk-MJXXVQNA.js} +91 -96
- package/dist/web/server/{chunk-N6NOTURM.js → chunk-NCK2FJAD.js} +30 -26
- package/dist/web/server/{chunk-LXJD6IGW.js → chunk-NMBH57JT.js} +94 -33
- package/dist/web/server/{chunk-EAJTWMK5.js → chunk-NZ6KQT2X.js} +2 -2
- package/dist/web/server/{chunk-CNXJN5HN.js → chunk-O2UYZT3Z.js} +11 -11
- package/dist/web/server/{chunk-YXXRP3NS.js → chunk-OMEDERPG.js} +21 -25
- package/dist/web/server/{chunk-BLSX7WHW.js → chunk-OSMP55KI.js} +23 -2
- package/dist/web/server/{chunk-S3PQ6HKH.js → chunk-OVJYUWSQ.js} +2 -2
- package/dist/web/server/{chunk-XLNCWZMZ.js → chunk-RXUMFFUV.js} +5 -3
- package/dist/web/server/{chunk-DO2O27B2.js → chunk-SDV3P3IW.js} +2 -2
- package/dist/web/server/chunk-TLNZNR7C.js +46 -0
- package/dist/web/server/{chunk-IJPCV6DH.js → chunk-UDD5W4CR.js} +32 -10
- package/dist/web/server/{chunk-HSJMLO36.js → chunk-UE32PAV2.js} +47 -57
- package/dist/web/server/{chunk-UAPNEWCA.js → chunk-WB2LJC3R.js} +29 -32
- package/dist/web/server/{chunk-ETTDO4UO.js → chunk-WTYNN6EV.js} +1 -26
- package/dist/web/server/{chunk-2ATMSG7U.js → chunk-WU6X3GPJ.js} +48 -5
- package/dist/web/server/{chunk-C5X6G26O.js → chunk-XJ6TGSUB.js} +45 -24
- package/dist/web/server/{chunk-YNUWKMNQ.js → chunk-YMPJMHXZ.js} +41 -155
- package/dist/web/server/{chunk-GETSIVNU.js → chunk-YVGCPUAW.js} +7 -7
- package/dist/web/server/{chunk-4UBOIY2S.js → chunk-ZNFXBGLK.js} +1 -1
- package/dist/web/server/chunk-ZOVXMNJM.js +477 -0
- package/dist/web/server/{fork-picker-dialog-DlINz9UQ-UWIXFDJX.js → fork-picker-dialog-YKlapaxN-DR5L74ST.js} +9 -8
- package/dist/web/server/{markdown-DTnMbD87-FXGGAPJD.js → markdown-BzNejPoZ-6ITTDAV6.js} +2 -3
- package/dist/web/server/{markdown-code-BStjFfsy-SSLWUT4S.js → markdown-code-DAwXuW6m-HHVELO6I.js} +3 -4
- package/dist/web/server/{fleet-message-queue-BS-cZ56r-GLZXUKDF.js → message-queue-Demph1x4-RBJUC3AT.js} +14 -10
- package/dist/web/server/{model-selector-list-jBTZc2Mu-OXJOS5NA.js → model-selector-list-BmzLiCx9-TK6JGGKU.js} +20 -19
- package/dist/web/server/{openui-renderer-Biyyjhjn-SJOEKPTJ.js → openui-renderer-moJGf0LA-QCU3PI6H.js} +17 -18
- package/dist/web/server/{prompt-suggestions-D4AEEY7K-RZSP7PWV.js → prompt-suggestions-yPZqX__K-3VGJC4IF.js} +7 -6
- package/dist/web/server/{repl-panel-D5KsoJik-BQKO53JO.js → repl-panel-CgUF1qUw-3DFD2V53.js} +10 -11
- package/dist/web/server/{resources-panel-CE5pD4vy-V5FXBTYC.js → resources-panel-ChUliWV--JITAGS6Q.js} +6 -7
- package/dist/web/server/{router-DWALoX_M-I5CBL7FQ.js → router-CPdFlpbe-LAD4MNZB.js} +3117 -241
- package/dist/web/server/{routes-BBVirYfL-5WXMOT7M.js → routes-hkom6S6L-DUPPQHPY.js} +8753 -7974
- package/dist/web/server/server.js +2 -2
- package/dist/web/server/{session-insights-panel-CUhdgvRt-VB2HUCQP.js → session-insights-panel-xgrkX1Rp-FDNURBXZ.js} +9 -9
- package/dist/web/server/{fleet-reasoning-panel-BxC2COxi-GPLMQSTT.js → session-reasoning-panel-m1RgcIph-NUXGXVKE.js} +39 -40
- package/dist/web/server/session-tool-renderer-CglQ2ky7-2JVYNZG2.js +45 -0
- package/dist/web/server/{settings-dialog-DndPbM-v-RFNXXEAN.js → settings-dialog-BCEfmgtP-T3WQEZHB.js} +1912 -3120
- package/dist/web/server/{subagent-chat-panel-C0RpnXav-J7VYO7QY.js → subagent-chat-panel-BTwI1kdB-LKBWA4GD.js} +32 -41
- package/dist/web/server/{subagents-panel-jDqIn9Nh-YEV6QLUY.js → subagents-panel-8Z9_csoV-HYMEEBHB.js} +37 -45
- package/dist/web/server/{fleet-tool-timeline-IB36_PB2-XJENTO6I.js → tool-timeline-QL9k5dzA-RLU26HXT.js} +6 -6
- package/dist/web/server/{workspace-panel-CX_Vo6As-EWO6AMPI.js → workspace-panel-BHEB9nRM-TS62SYBA.js} +64 -46
- package/package.json +1 -1
- package/dist/web/client/assets/action-swap-roll-BB8DFMuf.js +0 -1
- package/dist/web/client/assets/agent-activity-CwMDU7aP.js +0 -1
- package/dist/web/client/assets/agent-disclosure-B8SnhQXL.js +0 -1
- package/dist/web/client/assets/analytics-stub-Cas1He0w.js +0 -1
- package/dist/web/client/assets/artifacts-panel-CJ75gQub.js +0 -1
- package/dist/web/client/assets/artifacts-utils-N_kUFbz2.js +0 -1
- package/dist/web/client/assets/bundle-mjs-DKHVkVWu.js +0 -1
- package/dist/web/client/assets/button-BR2WWrFo.js +0 -1
- package/dist/web/client/assets/card-BKl76a3R.js +0 -1
- package/dist/web/client/assets/chat-Ci2cEQrR.js +0 -52
- package/dist/web/client/assets/chat-command-palette-CkISHfKE.js +0 -1
- package/dist/web/client/assets/check-JjHKAZas.js +0 -1
- package/dist/web/client/assets/chevron-right-DrJxToLs.js +0 -1
- package/dist/web/client/assets/chevron-up-CnSvySGH.js +0 -1
- package/dist/web/client/assets/circle-alert-CONlFReH.js +0 -1
- package/dist/web/client/assets/circle-x-CkKCB__4.js +0 -1
- package/dist/web/client/assets/citations-C_tPOJE_.js +0 -2
- package/dist/web/client/assets/cn-C8c0S2mI.js +0 -1
- package/dist/web/client/assets/collapsible-BoXtZZWN.js +0 -1
- package/dist/web/client/assets/command-_WjnervL.js +0 -1
- package/dist/web/client/assets/createBaseUIEventDetails-DV0dQrBX.js +0 -1
- package/dist/web/client/assets/createLucideIcon-DwxZHm0M.js +0 -1
- package/dist/web/client/assets/dialog-BEZuZhzk.js +0 -1
- package/dist/web/client/assets/dist-BPaFisIZ.js +0 -41
- package/dist/web/client/assets/earth-DGZXAN5r.js +0 -1
- package/dist/web/client/assets/ease-u56MhKYS.js +0 -1
- package/dist/web/client/assets/file-text-T-NcAlZs.js +0 -1
- package/dist/web/client/assets/fleet-message-queue-BCno4XP-.js +0 -1
- package/dist/web/client/assets/fleet-reasoning-panel-CbkO7u-v.js +0 -1
- package/dist/web/client/assets/fleet-subagent-list-iKUtLJKZ.js +0 -1
- package/dist/web/client/assets/fleet-tool-timeline-C8heL7ae.js +0 -1
- package/dist/web/client/assets/gauge-DNpstbBn.js +0 -1
- package/dist/web/client/assets/globals-B_I1Eq1u.css +0 -2
- package/dist/web/client/assets/highlighted-body-KPVGNVTW-sUCZ1fHv.js +0 -1
- package/dist/web/client/assets/horizontal-resize-CwoDojST.js +0 -1
- package/dist/web/client/assets/image-BbPmlw-n.js +0 -1
- package/dist/web/client/assets/index-DJ1fFbQu.js +0 -12
- package/dist/web/client/assets/input-0wwjWjKq.js +0 -1
- package/dist/web/client/assets/input-group-Tb5TYbzi.js +0 -1
- package/dist/web/client/assets/ipython-tool-ldJ9F1Cw.js +0 -3
- package/dist/web/client/assets/layout-gyLzPvVv.js +0 -1
- package/dist/web/client/assets/markdown-DInPmRUG.js +0 -2
- package/dist/web/client/assets/mermaid-HWGCJPDP-Bm7CuruA.js +0 -1
- package/dist/web/client/assets/message-square-hbDao-A1.js +0 -1
- package/dist/web/client/assets/model-selector-list-Ch05B2nZ.js +0 -1
- package/dist/web/client/assets/openui-renderer-Bf60nxNi.js +0 -378
- package/dist/web/client/assets/plus-DXN1Bg_z.js +0 -1
- package/dist/web/client/assets/prompt-input-qPIXZ-Rb.js +0 -1
- package/dist/web/client/assets/prompt-suggestions-Cc--lSNR.js +0 -1
- package/dist/web/client/assets/provider-catalog-D8G66gwc.js +0 -1
- package/dist/web/client/assets/provider-label-DDLRnZyC.js +0 -1
- package/dist/web/client/assets/react-dom-Bwxum3ti.js +0 -1
- package/dist/web/client/assets/repl-panel-DsPX04Xr.js +0 -1
- package/dist/web/client/assets/resources-panel-D867-goy.js +0 -1
- package/dist/web/client/assets/right-panel-context-DHlNWJsF.js +0 -1
- package/dist/web/client/assets/right-panel-registry-Dp8yX-oL.js +0 -2
- package/dist/web/client/assets/routes-DpgMJZ5n.js +0 -16
- package/dist/web/client/assets/safe-external-url-D3PJJIcM.js +0 -1
- package/dist/web/client/assets/search-eWVnAJsb.js +0 -1
- package/dist/web/client/assets/session-insights-panel-YnaXvTpi.js +0 -1
- package/dist/web/client/assets/settings-dialog-YJkvt5EB.js +0 -2
- package/dist/web/client/assets/skeleton-loaders-C9vHwAYV.js +0 -1
- package/dist/web/client/assets/sparkles-DuclzqlE.js +0 -1
- package/dist/web/client/assets/square-Bhn8gjr0.js +0 -1
- package/dist/web/client/assets/subagent-transcript-CnI-mqN0.js +0 -1
- package/dist/web/client/assets/subagent-utils-DDH5qm9Z.js +0 -1
- package/dist/web/client/assets/subagents-panel-CjXEdimj.js +0 -1
- package/dist/web/client/assets/surfaces-DI-U-_2a.js +0 -1
- package/dist/web/client/assets/switch-9rTeg6J6.js +0 -1
- package/dist/web/client/assets/terminal-DOS1s1gm.js +0 -1
- package/dist/web/client/assets/toast-Bt9p2OL4.js +0 -1
- package/dist/web/client/assets/tool-result-DfnPN0FQ.js +0 -4
- package/dist/web/client/assets/ui-preferences-CImQGZm_.js +0 -1
- package/dist/web/client/assets/use-reduced-motion-eORd7fqW.js +0 -9
- package/dist/web/client/assets/useBaseUiId-CHqXB2UQ.js +0 -1
- package/dist/web/client/assets/useControlled-CJJ9BOQB.js +0 -1
- package/dist/web/client/assets/utils-Eg7xtNmV.js +0 -1
- package/dist/web/client/assets/virtualized-turn-list--Vynre4D.js +0 -6
- package/dist/web/client/assets/workspace-panel-CPPIznT9.js +0 -1
- package/dist/web/client/assets/workspace-path-nav-C0AQNZyy.js +0 -1
- package/dist/web/client/assets/x-CsRC_tCI.js +0 -1
- package/dist/web/server/_tanstack-start-manifest_v-DS_CSIFQ-WB3VTKF3.js +0 -95
- package/dist/web/server/agent-activity-CS2rbF_C-A3R26CYH.js +0 -514
- package/dist/web/server/chunk-3JMESBAT.js +0 -35
- package/dist/web/server/chunk-42XU6WV7.js +0 -56
- package/dist/web/server/chunk-7SD2ZSEA.js +0 -86
- package/dist/web/server/chunk-AQ66E5OW.js +0 -33
- package/dist/web/server/chunk-BYXBJQAS.js +0 -0
- package/dist/web/server/chunk-FAGDMGLK.js +0 -6589
- package/dist/web/server/chunk-FJV6EQDW.js +0 -36
- package/dist/web/server/chunk-GL6HWDJB.js +0 -19
- package/dist/web/server/chunk-HFQTI7AX.js +0 -42
- package/dist/web/server/chunk-L46H6IDX.js +0 -13
- package/dist/web/server/chunk-ON33WDZX.js +0 -31
- package/dist/web/server/chunk-PVJCTQFK.js +0 -22
- package/dist/web/server/chunk-QPNUGF3V.js +0 -35
- package/dist/web/server/chunk-TWYHHG5N.js +0 -1196
- package/dist/web/server/chunk-YKVGQBZA.js +0 -1262
- package/dist/web/server/chunk-ZCVWADNW.js +0 -37
- package/dist/web/server/fleet-pi-tool-renderer-umKunT3K-O4GBH35V.js +0 -51
- package/dist/web/server/fleet-subagent-list-CpSYzCIq-JDH2LHSS.js +0 -18
|
@@ -1,70 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromptInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DLA5TLKX.js";
|
|
4
4
|
import "./chunk-7CNGNFFK.js";
|
|
5
|
-
import "./chunk-PVJCTQFK.js";
|
|
6
5
|
import {
|
|
7
6
|
SubagentTranscriptView
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-FJV6EQDW.js";
|
|
7
|
+
} from "./chunk-NMBH57JT.js";
|
|
8
|
+
import "./chunk-4OTHKQMG.js";
|
|
11
9
|
import "./chunk-OKL5ZRVB.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-KOUEJ3NU.js";
|
|
10
|
+
import "./chunk-BUXJSBE3.js";
|
|
14
11
|
import "./chunk-UCA4WN66.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-QPNUGF3V.js";
|
|
18
|
-
import "./chunk-V3S6BVXO.js";
|
|
19
|
-
import "./chunk-XLNCWZMZ.js";
|
|
12
|
+
import "./chunk-IXGLKAPN.js";
|
|
13
|
+
import "./chunk-ENGEUJIH.js";
|
|
20
14
|
import "./chunk-2ST2ULW7.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-NCK2FJAD.js";
|
|
16
|
+
import "./chunk-OSMP55KI.js";
|
|
17
|
+
import "./chunk-UDD5W4CR.js";
|
|
24
18
|
import "./chunk-XA42CHF2.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-42XU6WV7.js";
|
|
27
|
-
import "./chunk-P66QQWUM.js";
|
|
19
|
+
import "./chunk-7NZ3FJDA.js";
|
|
28
20
|
import "./chunk-JIULUYHT.js";
|
|
21
|
+
import "./chunk-V3S6BVXO.js";
|
|
22
|
+
import "./chunk-RXUMFFUV.js";
|
|
29
23
|
import "./chunk-LY5XOHHU.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-HFQTI7AX.js";
|
|
34
|
-
import "./chunk-HSJMLO36.js";
|
|
24
|
+
import "./chunk-ZNFXBGLK.js";
|
|
25
|
+
import "./chunk-OMEDERPG.js";
|
|
26
|
+
import "./chunk-WU6X3GPJ.js";
|
|
35
27
|
import "./chunk-OOXWPL22.js";
|
|
36
|
-
import "./chunk-O2DUZJYK.js";
|
|
37
|
-
import "./chunk-ON33WDZX.js";
|
|
38
28
|
import "./chunk-TNL4YV63.js";
|
|
39
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-O2DUZJYK.js";
|
|
30
|
+
import "./chunk-CAPTFJOC.js";
|
|
40
31
|
import "./chunk-3C4CFCIS.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-K6PTNSCW.js";
|
|
33
|
+
import "./chunk-7FK6YEMA.js";
|
|
34
|
+
import "./chunk-7E76R7MB.js";
|
|
35
|
+
import "./chunk-UE32PAV2.js";
|
|
43
36
|
import "./chunk-NFRJDPB3.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-LZ4Q5KUJ.js";
|
|
37
|
+
import "./chunk-BQROC4PL.js";
|
|
38
|
+
import "./chunk-HQ5TEXHT.js";
|
|
39
|
+
import "./chunk-TLNZNR7C.js";
|
|
48
40
|
import "./chunk-4QD4PCVP.js";
|
|
49
|
-
import "./chunk-S3PQ6HKH.js";
|
|
50
|
-
import "./chunk-7SR6WDM2.js";
|
|
51
41
|
import "./chunk-JBLHIEVG.js";
|
|
52
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-WWJF4RO2.js";
|
|
43
|
+
import "./chunk-OVJYUWSQ.js";
|
|
44
|
+
import "./chunk-E5HALE4M.js";
|
|
45
|
+
import "./chunk-XJ6TGSUB.js";
|
|
53
46
|
import "./chunk-ST5I2PLN.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-ZCVWADNW.js";
|
|
47
|
+
import "./chunk-KBWUBWVJ.js";
|
|
56
48
|
import "./chunk-HFQZLPU2.js";
|
|
57
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-MJXXVQNA.js";
|
|
58
50
|
import "./chunk-X7D6GFQU.js";
|
|
59
|
-
import "./chunk-BYXBJQAS.js";
|
|
60
51
|
import "./chunk-4ZIEVI5O.js";
|
|
61
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-CHEC7TWB.js";
|
|
62
53
|
import "./chunk-UQVZJSZZ.js";
|
|
63
54
|
import "./chunk-JDCCC7A7.js";
|
|
64
55
|
import "./chunk-L547YHC4.js";
|
|
65
56
|
import "./chunk-MLKGABMK.js";
|
|
66
57
|
|
|
67
|
-
// web/app/dist/server/assets/subagent-chat-panel-
|
|
58
|
+
// web/app/dist/server/assets/subagent-chat-panel-BTwI1kdB.js
|
|
68
59
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
69
60
|
function SubagentComposer({ disabled, sending, onSend, onStop, placeholder = "Message this subagent\u2026 (Enter to steer)" }) {
|
|
70
61
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -1,76 +1,68 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubagentTranscriptView
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
} from "./chunk-NMBH57JT.js";
|
|
4
|
+
import {
|
|
5
|
+
orderedRlmChildren,
|
|
6
|
+
rlmStatusIcon
|
|
7
|
+
} from "./chunk-4OTHKQMG.js";
|
|
6
8
|
import "./chunk-OKL5ZRVB.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-KOUEJ3NU.js";
|
|
9
|
+
import "./chunk-BUXJSBE3.js";
|
|
9
10
|
import {
|
|
10
11
|
Bot
|
|
11
12
|
} from "./chunk-UCA4WN66.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-QPNUGF3V.js";
|
|
15
|
-
import "./chunk-V3S6BVXO.js";
|
|
16
|
-
import "./chunk-XLNCWZMZ.js";
|
|
13
|
+
import "./chunk-IXGLKAPN.js";
|
|
14
|
+
import "./chunk-ENGEUJIH.js";
|
|
17
15
|
import "./chunk-2ST2ULW7.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-NCK2FJAD.js";
|
|
17
|
+
import "./chunk-OSMP55KI.js";
|
|
18
|
+
import "./chunk-UDD5W4CR.js";
|
|
21
19
|
import "./chunk-XA42CHF2.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
orderedRlmChildren,
|
|
25
|
-
rlmStatusIcon
|
|
26
|
-
} from "./chunk-42XU6WV7.js";
|
|
27
|
-
import "./chunk-P66QQWUM.js";
|
|
20
|
+
import "./chunk-7NZ3FJDA.js";
|
|
28
21
|
import "./chunk-JIULUYHT.js";
|
|
22
|
+
import "./chunk-V3S6BVXO.js";
|
|
23
|
+
import "./chunk-RXUMFFUV.js";
|
|
29
24
|
import "./chunk-LY5XOHHU.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-HFQTI7AX.js";
|
|
34
|
-
import "./chunk-HSJMLO36.js";
|
|
25
|
+
import "./chunk-ZNFXBGLK.js";
|
|
26
|
+
import "./chunk-OMEDERPG.js";
|
|
27
|
+
import "./chunk-WU6X3GPJ.js";
|
|
35
28
|
import "./chunk-OOXWPL22.js";
|
|
36
|
-
import "./chunk-O2DUZJYK.js";
|
|
37
|
-
import "./chunk-ON33WDZX.js";
|
|
38
29
|
import "./chunk-TNL4YV63.js";
|
|
39
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-O2DUZJYK.js";
|
|
31
|
+
import "./chunk-CAPTFJOC.js";
|
|
40
32
|
import {
|
|
41
33
|
ChevronRight
|
|
42
34
|
} from "./chunk-3C4CFCIS.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-K6PTNSCW.js";
|
|
36
|
+
import "./chunk-7FK6YEMA.js";
|
|
37
|
+
import "./chunk-7E76R7MB.js";
|
|
38
|
+
import "./chunk-UE32PAV2.js";
|
|
45
39
|
import "./chunk-NFRJDPB3.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-L46H6IDX.js";
|
|
48
|
-
import "./chunk-WWJF4RO2.js";
|
|
40
|
+
import "./chunk-BQROC4PL.js";
|
|
49
41
|
import {
|
|
50
42
|
Button
|
|
51
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-HQ5TEXHT.js";
|
|
44
|
+
import "./chunk-TLNZNR7C.js";
|
|
52
45
|
import "./chunk-4QD4PCVP.js";
|
|
53
|
-
import "./chunk-S3PQ6HKH.js";
|
|
54
|
-
import "./chunk-7SR6WDM2.js";
|
|
55
46
|
import "./chunk-JBLHIEVG.js";
|
|
56
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-WWJF4RO2.js";
|
|
48
|
+
import "./chunk-OVJYUWSQ.js";
|
|
49
|
+
import "./chunk-E5HALE4M.js";
|
|
50
|
+
import "./chunk-XJ6TGSUB.js";
|
|
57
51
|
import "./chunk-ST5I2PLN.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-ZCVWADNW.js";
|
|
52
|
+
import "./chunk-KBWUBWVJ.js";
|
|
60
53
|
import "./chunk-HFQZLPU2.js";
|
|
61
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-MJXXVQNA.js";
|
|
62
55
|
import "./chunk-X7D6GFQU.js";
|
|
63
|
-
import "./chunk-BYXBJQAS.js";
|
|
64
56
|
import "./chunk-4ZIEVI5O.js";
|
|
65
57
|
import {
|
|
66
58
|
cn
|
|
67
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CHEC7TWB.js";
|
|
68
60
|
import "./chunk-UQVZJSZZ.js";
|
|
69
61
|
import "./chunk-JDCCC7A7.js";
|
|
70
62
|
import "./chunk-L547YHC4.js";
|
|
71
63
|
import "./chunk-MLKGABMK.js";
|
|
72
64
|
|
|
73
|
-
// web/app/dist/server/assets/subagents-panel-
|
|
65
|
+
// web/app/dist/server/assets/subagents-panel-8Z9_csoV.js
|
|
74
66
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
75
67
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
76
68
|
function SubagentsPanelContent({ agents, loadSession, onOpenTab, parentSessionId, tree }) {
|
|
@@ -132,7 +124,7 @@ function SubagentsPanelContent({ agents, loadSession, onOpenTab, parentSessionId
|
|
|
132
124
|
}, [loadTranscript, selectedAgent]);
|
|
133
125
|
if (ordered.length === 0) return /* @__PURE__ */ jsx("section", {
|
|
134
126
|
"aria-label": "Subagents",
|
|
135
|
-
className: "flex min-h-36 items-center rounded-md border border-dashed border-border/70 px-4 text-center text-
|
|
127
|
+
className: "flex min-h-36 items-center rounded-md border border-dashed border-border/70 px-4 text-center text-label leading-5 text-foreground/45",
|
|
136
128
|
children: "Subagent threads will appear here when Prime delegates work."
|
|
137
129
|
});
|
|
138
130
|
return /* @__PURE__ */ jsxs("section", {
|
|
@@ -148,7 +140,7 @@ function SubagentsPanelContent({ agents, loadSession, onOpenTab, parentSessionId
|
|
|
148
140
|
children: "Invoked subagents"
|
|
149
141
|
}),
|
|
150
142
|
/* @__PURE__ */ jsx("span", {
|
|
151
|
-
className: "shrink-0 text-
|
|
143
|
+
className: "shrink-0 text-micro text-foreground/40",
|
|
152
144
|
children: ordered.length
|
|
153
145
|
})
|
|
154
146
|
]
|
|
@@ -180,7 +172,7 @@ function SubagentsPanelContent({ agents, loadSession, onOpenTab, parentSessionId
|
|
|
180
172
|
}),
|
|
181
173
|
/* @__PURE__ */ jsx(ChevronRight, { className: "size-3 shrink-0 text-foreground/30" }),
|
|
182
174
|
/* @__PURE__ */ jsx("span", {
|
|
183
|
-
className: "shrink-0 text-
|
|
175
|
+
className: "shrink-0 text-micro capitalize text-foreground/45",
|
|
184
176
|
children: agent.status
|
|
185
177
|
})
|
|
186
178
|
]
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
ToolTimeline,
|
|
3
|
+
tool_timeline_exports
|
|
4
|
+
} from "./chunk-UDD5W4CR.js";
|
|
5
5
|
import "./chunk-XA42CHF2.js";
|
|
6
6
|
import "./chunk-O2DUZJYK.js";
|
|
7
7
|
import "./chunk-WWJF4RO2.js";
|
|
8
8
|
import "./chunk-4ZIEVI5O.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CHEC7TWB.js";
|
|
10
10
|
import "./chunk-JDCCC7A7.js";
|
|
11
11
|
import "./chunk-L547YHC4.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
tool_timeline_exports as n,
|
|
15
|
+
ToolTimeline as t
|
|
16
16
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HardDrive
|
|
3
|
+
} from "./chunk-D7ELZVTI.js";
|
|
1
4
|
import {
|
|
2
5
|
File,
|
|
3
6
|
FolderOpen,
|
|
@@ -8,65 +11,55 @@ import {
|
|
|
8
11
|
readStoredWidth,
|
|
9
12
|
startHorizontalResize,
|
|
10
13
|
storeStoredWidth
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-PTCKOR23.js";
|
|
14
|
+
} from "./chunk-7UTDOTOU.js";
|
|
13
15
|
import {
|
|
14
16
|
Folder
|
|
15
17
|
} from "./chunk-GS2IZGRC.js";
|
|
16
|
-
import
|
|
17
|
-
HardDrive
|
|
18
|
-
} from "./chunk-D7ELZVTI.js";
|
|
18
|
+
import "./chunk-PTCKOR23.js";
|
|
19
19
|
import "./chunk-SZJUXVWG.js";
|
|
20
20
|
import {
|
|
21
|
+
LazyMarkdown,
|
|
21
22
|
isPathWithinScope
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7NZ3FJDA.js";
|
|
23
24
|
import {
|
|
24
25
|
AnimatePresence,
|
|
25
26
|
useReducedMotion
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CAPTFJOC.js";
|
|
27
28
|
import {
|
|
28
29
|
ChevronRight
|
|
29
30
|
} from "./chunk-3C4CFCIS.js";
|
|
31
|
+
import "./chunk-K6PTNSCW.js";
|
|
30
32
|
import {
|
|
31
33
|
EASE_OUT,
|
|
32
34
|
SPRING_LAYOUT,
|
|
33
35
|
SPRING_SWAP,
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
Markdown
|
|
39
|
-
} from "./chunk-YOM42BKD.js";
|
|
36
|
+
m
|
|
37
|
+
} from "./chunk-7FK6YEMA.js";
|
|
38
|
+
import "./chunk-7E76R7MB.js";
|
|
40
39
|
import {
|
|
41
40
|
ResourceChipSection,
|
|
42
41
|
ResourceNotice,
|
|
43
42
|
WorkspacePreviewSkeleton,
|
|
44
43
|
WorkspaceSkeleton
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YVGCPUAW.js";
|
|
46
45
|
import {
|
|
47
46
|
findWorkspaceNode
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SDV3P3IW.js";
|
|
48
|
+
import "./chunk-NZ6KQT2X.js";
|
|
49
49
|
import "./chunk-AHTO6GDS.js";
|
|
50
|
-
import "./chunk-EAJTWMK5.js";
|
|
51
50
|
import {
|
|
51
|
+
CircleAlert,
|
|
52
52
|
FileText
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import {
|
|
55
|
-
CircleAlert
|
|
56
|
-
} from "./chunk-ZCVWADNW.js";
|
|
53
|
+
} from "./chunk-KBWUBWVJ.js";
|
|
57
54
|
import "./chunk-SFTKGQ7H.js";
|
|
58
|
-
import "./chunk-BYXBJQAS.js";
|
|
59
55
|
import "./chunk-4ZIEVI5O.js";
|
|
60
56
|
import {
|
|
61
57
|
cn
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-DKD32TRM.js";
|
|
64
|
-
import "./chunk-UQVZJSZZ.js";
|
|
58
|
+
} from "./chunk-CHEC7TWB.js";
|
|
65
59
|
import "./chunk-JDCCC7A7.js";
|
|
66
|
-
import "./chunk-L547YHC4.js";
|
|
67
60
|
import "./chunk-MLKGABMK.js";
|
|
68
61
|
|
|
69
|
-
// web/app/dist/server/assets/workspace-panel-
|
|
62
|
+
// web/app/dist/server/assets/workspace-panel-BHEB9nRM.js
|
|
70
63
|
import { Children, Fragment, isValidElement, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
71
64
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
72
65
|
function FileTreeFolder(_props) {
|
|
@@ -138,7 +131,7 @@ function DefaultIcon({ item, open, reduce }) {
|
|
|
138
131
|
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
139
132
|
initial: false,
|
|
140
133
|
mode: "popLayout",
|
|
141
|
-
children: /* @__PURE__ */ jsx(
|
|
134
|
+
children: /* @__PURE__ */ jsx(m.span, {
|
|
142
135
|
initial: {
|
|
143
136
|
opacity: 0,
|
|
144
137
|
scale: 0.75,
|
|
@@ -246,7 +239,7 @@ function FileTree({ children, value, defaultValue = null, onValueChange, expande
|
|
|
246
239
|
const isExpandable = isFolder && Boolean(row.item.children?.length);
|
|
247
240
|
const isOpen = isExpandable && expanded.has(row.item.value);
|
|
248
241
|
const isSelected = selectedId === row.item.value;
|
|
249
|
-
return /* @__PURE__ */ jsx(
|
|
242
|
+
return /* @__PURE__ */ jsx(m.div, {
|
|
250
243
|
layout: reduce ? false : "position",
|
|
251
244
|
initial: reduce ? false : {
|
|
252
245
|
opacity: 0,
|
|
@@ -285,7 +278,7 @@ function FileTree({ children, value, defaultValue = null, onValueChange, expande
|
|
|
285
278
|
className: cn("group/file-tree relative flex h-9 w-full items-center gap-2 overflow-hidden rounded-lg pr-2 text-left text-sm text-muted-foreground outline-none", "transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", "aria-disabled:cursor-not-allowed", isSelected && "bg-muted font-medium text-foreground", classNames?.item, row.item.className),
|
|
286
279
|
style: { paddingLeft: 8 + row.depth * indent },
|
|
287
280
|
children: [
|
|
288
|
-
row.depth > 0 ? /* @__PURE__ */ jsx(
|
|
281
|
+
row.depth > 0 ? /* @__PURE__ */ jsx(m.span, {
|
|
289
282
|
"aria-hidden": "true",
|
|
290
283
|
initial: reduce ? false : {
|
|
291
284
|
opacity: 0,
|
|
@@ -303,7 +296,7 @@ function FileTree({ children, value, defaultValue = null, onValueChange, expande
|
|
|
303
296
|
className: "absolute top-0 bottom-0 w-px origin-top bg-border/70",
|
|
304
297
|
style: { left: 16 + (row.depth - 1) * indent }
|
|
305
298
|
}) : null,
|
|
306
|
-
/* @__PURE__ */ jsx(
|
|
299
|
+
/* @__PURE__ */ jsx(m.span, {
|
|
307
300
|
"aria-hidden": "true",
|
|
308
301
|
animate: { rotate: isOpen ? 90 : 0 },
|
|
309
302
|
transition: reduce ? { duration: 0 } : SPRING_SWAP,
|
|
@@ -388,6 +381,15 @@ function useWorkspaceSplitLayout(_workspace) {
|
|
|
388
381
|
splitStyle: isSplitLayout ? { gridTemplateColumns: `${treeWidth}px 8px minmax(160px, 1fr)` } : void 0
|
|
389
382
|
};
|
|
390
383
|
}
|
|
384
|
+
var WORKSPACE_PREVIEW_TIMEOUT_MS = 15e3;
|
|
385
|
+
function previewLoadError(err) {
|
|
386
|
+
if (err instanceof DOMException && err.name === "AbortError") return /* @__PURE__ */ new Error("Preview timed out");
|
|
387
|
+
if (err instanceof Error) {
|
|
388
|
+
if (err.name === "AbortError" || /aborted|timed out/i.test(err.message)) return /* @__PURE__ */ new Error("Preview timed out");
|
|
389
|
+
return err;
|
|
390
|
+
}
|
|
391
|
+
return new Error(String(err));
|
|
392
|
+
}
|
|
391
393
|
function WorkspacePanelContent({ error, emptyDescription = "agent-workspace has not been loaded yet.", emptyTitle = "Workspace unavailable", loadWorkspaceFile, loading, onSelectedPathChange, previewEmptyDescription = "Choose a workspace file to preview its Markdown.", previewEmptyTitle = "Select a file", scopePath, scopeLabel, selectedPath: selectedPathProp, treeTestId = "workspace-tree", workspace }) {
|
|
392
394
|
const [internalSelectedPath, setInternalSelectedPath] = useState(null);
|
|
393
395
|
const isControlled = onSelectedPathChange !== void 0;
|
|
@@ -450,26 +452,42 @@ function WorkspacePanelContent({ error, emptyDescription = "agent-workspace has
|
|
|
450
452
|
workspace
|
|
451
453
|
]);
|
|
452
454
|
useEffect(() => {
|
|
453
|
-
if (!selectedPath)
|
|
455
|
+
if (!selectedPath) {
|
|
456
|
+
setPreviewLoading(false);
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
const selected = selectedPath;
|
|
460
|
+
const controller = new AbortController();
|
|
461
|
+
const timeoutId = window.setTimeout(() => controller.abort(), WORKSPACE_PREVIEW_TIMEOUT_MS);
|
|
454
462
|
let cancelled = false;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
463
|
+
setPreview((current) => current?.path === selected ? current : null);
|
|
464
|
+
setPreviewLoading(true);
|
|
465
|
+
setPreviewError(null);
|
|
466
|
+
(async () => {
|
|
458
467
|
try {
|
|
459
|
-
const body = await loadWorkspaceFile(
|
|
460
|
-
|
|
468
|
+
const body = await Promise.race([loadWorkspaceFile(selected, controller.signal), new Promise((_, reject) => {
|
|
469
|
+
const onAbort = () => reject(new DOMException("Preview timed out", "AbortError"));
|
|
470
|
+
if (controller.signal.aborted) {
|
|
471
|
+
onAbort();
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
controller.signal.addEventListener("abort", onAbort, { once: true });
|
|
475
|
+
})]);
|
|
476
|
+
if (cancelled) return;
|
|
477
|
+
setPreview(body);
|
|
478
|
+
setPreviewError(null);
|
|
461
479
|
} catch (err) {
|
|
462
|
-
if (
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
480
|
+
if (cancelled) return;
|
|
481
|
+
setPreview(null);
|
|
482
|
+
setPreviewError(previewLoadError(err));
|
|
466
483
|
} finally {
|
|
467
484
|
if (!cancelled) setPreviewLoading(false);
|
|
468
485
|
}
|
|
469
|
-
}
|
|
470
|
-
loadPreview();
|
|
486
|
+
})();
|
|
471
487
|
return () => {
|
|
472
488
|
cancelled = true;
|
|
489
|
+
window.clearTimeout(timeoutId);
|
|
490
|
+
controller.abort();
|
|
473
491
|
};
|
|
474
492
|
}, [
|
|
475
493
|
loadWorkspaceFile,
|
|
@@ -607,23 +625,23 @@ function WorkspacePreview({ emptyDescription, emptyTitle, error, loading, previe
|
|
|
607
625
|
title: emptyTitle,
|
|
608
626
|
description: emptyDescription
|
|
609
627
|
}),
|
|
610
|
-
selectedPath && loading && /* @__PURE__ */ jsx(WorkspacePreviewSkeleton, {}),
|
|
628
|
+
selectedPath && loading && !preview && /* @__PURE__ */ jsx(WorkspacePreviewSkeleton, {}),
|
|
611
629
|
selectedPath && error && /* @__PURE__ */ jsx(ResourceNotice, {
|
|
612
630
|
icon: CircleAlert,
|
|
613
631
|
title: "Unable to load preview",
|
|
614
632
|
description: error.message
|
|
615
633
|
}),
|
|
616
|
-
selectedPath && !
|
|
634
|
+
selectedPath && !error && preview?.status === "too-large" && /* @__PURE__ */ jsx(ResourceNotice, {
|
|
617
635
|
icon: CircleAlert,
|
|
618
636
|
title: "Preview too large",
|
|
619
637
|
description: `${preview.name} is too large to preview safely.`
|
|
620
638
|
}),
|
|
621
|
-
selectedPath && !
|
|
639
|
+
selectedPath && !error && preview?.status === "unsupported" && /* @__PURE__ */ jsx(ResourceNotice, {
|
|
622
640
|
icon: CircleAlert,
|
|
623
641
|
title: "Unsupported preview",
|
|
624
642
|
description: `${preview.name} is not a supported text file.`
|
|
625
643
|
}),
|
|
626
|
-
selectedPath && !
|
|
644
|
+
selectedPath && !error && preview && (preview.status === void 0 || preview.status === "ok") && /* @__PURE__ */ jsx(LazyMarkdown, {
|
|
627
645
|
className: "text-label leading-relaxed",
|
|
628
646
|
content: preview.content
|
|
629
647
|
})
|
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,i,r as a,u as o}from"./ease-u56MhKYS.js";import{n as s,t as c}from"./use-reduced-motion-eORd7fqW.js";import{t as l}from"./utils-Eg7xtNmV.js";import{t as u}from"./createLucideIcon-DwxZHm0M.js";var d=u(`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`}]]),f=u(`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`}]]),p=e(t(),1),m=n(),h={duration:.2,ease:`easeInOut`},g=o,_={duration:.14,ease:a},v=`blur(8px)`,y=`blur(3px)`,b=.025,x={initial:{opacity:0,y:`105%`,filter:y},animate:(e=0)=>({opacity:1,y:`0%`,filter:`blur(0px)`,transition:{...o,delay:e}}),exit:(e=0)=>({opacity:0,y:`-105%`,filter:y,transition:{duration:.16,ease:a,delay:e*.5}})},S={blur:{initial:{opacity:0,scale:.94,filter:v},animate:{opacity:1,scale:1,filter:`blur(0px)`,transition:h},exit:{opacity:0,scale:.94,filter:v,transition:h}},roll:{initial:{opacity:0,y:`90%`,filter:y},animate:{opacity:1,y:`0%`,filter:`blur(0px)`,transition:g},exit:{opacity:0,y:`-90%`,filter:y,transition:_}}};function C({value:e,children:t,animation:n=`blur`,className:a}){let o=c(),u=(0,p.useRef)(null),[d,f]=(0,p.useState)();(0,p.useLayoutEffect)(()=>{let e=u.current?.offsetWidth;e&&f(t=>t===e?t:e)});let h=typeof t==`string`?t:null,g=n===`cascade`&&h!==null&&!o,_=n===`cascade`?`roll`:n;return(0,m.jsxs)(`span`,{className:l(`relative inline-block overflow-hidden whitespace-nowrap align-bottom`,a),style:{width:d,transition:o?void 0:`width 220ms ${i}`},children:[(0,m.jsx)(`span`,{ref:u,"aria-hidden":!0,className:`invisible inline-block whitespace-nowrap`,children:t}),g?(0,m.jsx)(`span`,{className:`sr-only`,children:h}):null,(0,m.jsx)(s,{initial:!1,children:g?(0,m.jsx)(r.span,{"aria-hidden":!0,initial:`initial`,animate:`animate`,exit:`exit`,className:`absolute left-0 top-0 inline-block whitespace-pre`,children:h.split(``).map((e,t)=>(0,m.jsx)(r.span,{custom:t*b,variants:x,className:`inline-block whitespace-pre`,children:e},t))},`cascade-${e}`):(0,m.jsx)(r.span,{variants:S[_],initial:!o&&`initial`,animate:o?{opacity:1,filter:`blur(0px)`,scale:1,y:0}:`animate`,exit:o?void 0:`exit`,className:`absolute left-0 top-0 inline-block`,children:t},`${n}-${e}`)})]})}function w(e){return(0,m.jsx)(C,{...e,animation:`roll`})}export{f as n,d as r,w 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{d as r,o as i,r as a,u as o}from"./ease-u56MhKYS.js";import{n as s,t as c}from"./use-reduced-motion-eORd7fqW.js";import{t as l}from"./utils-Eg7xtNmV.js";import{t as u}from"./createLucideIcon-DwxZHm0M.js";import{t as d}from"./check-JjHKAZas.js";import{t as f}from"./chevron-down-BEVGmnSb.js";import{t as p}from"./earth-DGZXAN5r.js";import{t as m}from"./file-text-T-NcAlZs.js";import{t as h}from"./image-BbPmlw-n.js";import{t as g}from"./message-square-hbDao-A1.js";import{t as _}from"./search-eWVnAJsb.js";import{t as v}from"./sparkles-DuclzqlE.js";import{t as y}from"./square-terminal-BYTN_I86.js";import{t as b}from"./wrench-BJNNe07k.js";import{t as x}from"./agent-disclosure-B8SnhQXL.js";import{t as S}from"./safe-external-url-D3PJJIcM.js";var C=u(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),w=u(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),T=e(t(),1),E=`@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}`,D=`beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]`;function O(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var k=n();function A({children:e,as:t=`span`,duration:n=2.5,className:r}){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`style`,{children:E}),(0,k.jsx)(t,{style:O(n),className:l(`inline-block`,D,r),children:e})]})}function j({children:e=`Thinking…`,duration:t=1.8,className:n}){return(0,k.jsx)(A,{as:`span`,duration:t,className:l(`font-medium`,n),children:e})}function M({item:e}){let t=e.status??`complete`;return(0,k.jsxs)(`div`,{className:`flex min-h-7 items-start gap-2.5 rounded-md px-1.5 py-1`,children:[(0,k.jsx)(`span`,{"aria-hidden":`true`,className:`mt-0.5 grid size-4 shrink-0 place-items-center text-muted-foreground/70`,children:t===`complete`?(0,k.jsx)(d,{className:`size-4`,strokeWidth:1.8}):t===`active`?(0,k.jsxs)(`span`,{className:`relative grid size-3 place-items-center`,children:[(0,k.jsx)(r.span,{className:`absolute inset-0 rounded-full bg-foreground/10`,animate:{opacity:[.35,.8,.35]},transition:{duration:1.5,repeat:1/0}}),(0,k.jsx)(`span`,{className:`size-1.5 rounded-full bg-foreground/60`})]}):(0,k.jsx)(C,{className:`size-3`,strokeWidth:1.5})}),(0,k.jsx)(`span`,{className:l(`min-w-0 flex-1 leading-5`,t===`pending`?`text-muted-foreground/55`:`text-foreground/90`),children:e.label}),e.meta?(0,k.jsx)(`span`,{className:`shrink-0 leading-5 text-muted-foreground/55`,children:e.meta}):null]})}function N({item:e}){return(0,k.jsx)(`div`,{className:`rounded-md px-1.5 py-1 leading-5 text-muted-foreground`,children:e.content})}function P({result:e}){let t=e.url&&S(e.url)?e.url:void 0,n=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`span`,{"aria-hidden":`true`,className:`grid size-5 shrink-0 place-items-center text-muted-foreground`,children:e.icon??(0,k.jsx)(p,{className:`size-3`,strokeWidth:2})}),(0,k.jsx)(`span`,{className:`min-w-0 truncate font-medium text-foreground/90`,children:e.title}),e.domain?(0,k.jsx)(`span`,{className:`min-w-0 truncate text-muted-foreground/55`,children:e.domain}):null]}),r=l(`flex min-h-7 items-center gap-2 rounded-md px-1.5 py-1 text-left outline-none transition-colors`,t&&`focus-visible:ring-2 focus-visible:ring-ring`);return t?(0,k.jsx)(`a`,{href:t,className:r,children:n}):(0,k.jsx)(`div`,{className:r,children:n})}function F({item:e}){let t=c()??!1,n=t?{opacity:1}:{opacity:0,y:6},o={opacity:1,y:0},l=t?{opacity:0}:{opacity:0,y:-3},u=t?{duration:0}:{opacity:{duration:.18,ease:a},y:i,layout:i};return(0,k.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,k.jsxs)(`div`,{className:`flex min-h-7 items-center gap-2.5 rounded-md px-1.5 py-1 text-muted-foreground`,children:[(0,k.jsx)(_,{"aria-hidden":`true`,className:`size-4 shrink-0`,strokeWidth:1.7}),(0,k.jsx)(`span`,{className:`min-w-0 truncate`,children:e.query})]}),e.results?.length?(0,k.jsx)(`div`,{className:`space-y-0.5 pl-4`,children:(0,k.jsx)(s,{initial:!0,mode:`popLayout`,children:e.results.map(e=>(0,k.jsx)(r.div,{layout:`position`,initial:n,animate:o,exit:l,transition:u,children:(0,k.jsx)(P,{result:e})},e.id))})}):null,(0,k.jsx)(s,{initial:!0,children:e.moreCount?(0,k.jsxs)(r.div,{initial:n,animate:o,exit:l,transition:u,className:`px-1.5 py-1 pl-8 text-muted-foreground/55`,children:[`+`,e.moreCount,` more`]},`more-results`):null})]})}function I({action:e}){return e===`read`?(0,k.jsx)(m,{className:`size-4`}):e===`edit`||e===`write`?(0,k.jsx)(w,{className:`size-4`}):e===`run`?(0,k.jsx)(y,{className:`size-4`}):(0,k.jsx)(b,{className:`size-4`})}function L({action:e}){return(0,k.jsx)(`button`,{type:`button`,"aria-label":e.ariaLabel??e.label,onClick:e.onClick,className:`shrink-0 rounded-md px-1.5 py-1 text-[0.625rem] font-medium text-primary outline-none hover:bg-primary/10 focus-visible:ring-2 focus-visible:ring-ring`,children:e.label})}function R({item:e}){let t=e.action.charAt(0).toUpperCase()+e.action.slice(1),n=typeof e.additions==`number`||typeof e.deletions==`number`;return(0,k.jsxs)(`div`,{className:`grid min-h-8 min-w-0 grid-cols-[1rem_auto_minmax(0,1fr)_auto] items-center gap-2.5 rounded-md px-1.5 py-0.5 leading-5`,children:[(0,k.jsx)(`span`,{"aria-hidden":`true`,className:`grid size-4 shrink-0 place-items-center text-muted-foreground/70`,children:(0,k.jsx)(I,{action:e.action})}),(0,k.jsx)(`span`,{className:`shrink-0 font-medium text-foreground/90`,children:t}),(0,k.jsx)(`span`,{className:`min-w-0 flex-1 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70`,children:e.target}),n||e.openAction?(0,k.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[n?(0,k.jsxs)(`span`,{className:`flex items-center gap-2 font-mono tabular-nums`,children:[typeof e.additions==`number`?(0,k.jsxs)(`span`,{className:`text-emerald-500`,children:[`+`,e.additions]}):null,typeof e.deletions==`number`?(0,k.jsxs)(`span`,{className:`text-rose-500`,children:[`−`,e.deletions]}):null]}):null,e.openAction?(0,k.jsx)(L,{action:e.openAction}):null]}):null]})}function z({kind:e}){return e===`thinking`?(0,k.jsx)(v,{className:`size-4`}):e===`message`?(0,k.jsx)(g,{className:`size-4`}):e===`write`?(0,k.jsx)(w,{className:`size-4`}):e===`run`?(0,k.jsx)(y,{className:`size-4`}):e===`read`?(0,k.jsx)(h,{className:`size-4`}):(0,k.jsx)(b,{className:`size-4`})}function B({item:e}){let t=e.kind===`thinking`;return(0,k.jsxs)(`div`,{className:l(`grid min-h-8 grid-cols-[1rem_auto_minmax(0,1fr)_auto] gap-2.5 rounded-md px-1.5 py-0.5`,t?`items-start`:`items-center`),children:[(0,k.jsx)(`span`,{"aria-hidden":`true`,className:`grid size-4 place-items-center text-muted-foreground/70`,children:e.icon??(0,k.jsx)(z,{kind:e.kind})}),(0,k.jsx)(`span`,{className:`min-w-0 truncate font-medium text-foreground/90`,children:e.label}),e.detail?(0,k.jsx)(`span`,{className:l(`min-w-0 rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70`,t?`max-h-40 overflow-y-auto whitespace-pre-wrap break-words`:`truncate`),children:e.detail}):(0,k.jsx)(`span`,{}),e.action?(0,k.jsx)(L,{action:e.action}):null]})}function V({item:e}){return e.type===`text`?(0,k.jsx)(N,{item:e}):e.type===`search`?(0,k.jsx)(F,{item:e}):e.type===`tool`?(0,k.jsx)(R,{item:e}):e.type===`trace`?(0,k.jsx)(B,{item:e}):(0,k.jsx)(M,{item:e})}function H(e){let t=Math.max(0,Math.round(e));if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;return r===0?`${n}m`:`${n}m ${r}s`}function U({open:e,defaultOpen:t,onOpenChange:n}){let[r,i]=(0,T.useState)(t),a=e!==void 0;return[e??r,(0,T.useCallback)(e=>{a||i(e),n?.(e)},[a,n])]}function W(e){let t=e[0]?.type;return t&&e.every(e=>e.type===t)?t:`mixed`}function G(e){return e===`search`?`Searching the web…`:e===`tool`?`Running tools…`:e===`trace`?`Working through the run…`:e===`mixed`?`Working through it…`:`Thinking…`}function K(e,t,n){if(e===`step`||e===`text`)return(0,k.jsxs)(k.Fragment,{children:[`Thought for `,(0,k.jsx)(`span`,{className:`tabular-nums`,children:H(n)})]});if(e===`search`)return`Searched the web`;if(e===`tool`)return`Ran ${t.length} ${t.length===1?`tool`:`tools`}`;if(e===`trace`){let e=t.filter(e=>e.type===`trace`&&(e.kind===`thinking`||e.kind===`message`)).length,n=t.length-e;return`${n} ${n===1?`tool call`:`tool calls`}, ${e} ${e===1?`message`:`messages`}`}return`Completed ${t.length} ${t.length===1?`step`:`steps`}`}function q({items:e,contentType:t,status:n=`working`,duration:u=0,open:d,defaultOpen:p=!1,onOpenChange:m,collapseOnComplete:h=!0,activeLabel:g,summary:_,renderWorkingStatus:v,renderCompletedStatus:y,maxHeight:b=208,className:S,contentClassName:C}){let w=c()??!1,E=(0,T.useId)(),D=`${E}-trigger`,O=`${E}-content`,A=(0,T.useRef)(null),M=(0,T.useRef)(null),N=(0,T.useRef)(n),[P,F]=(0,T.useState)(0),[I,L]=U({open:d,defaultOpen:p,onOpenChange:m}),R=n===`working`,z=R||I,B=e.length?W(e):t??`mixed`,H=R?Math.max(0,b):Math.min(P,Math.max(0,b)),q=P>b,J=R?Math.min(0,H-P):0;(0,T.useLayoutEffect)(()=>{let e=A.current;if(!e)return;let t=()=>F(e.offsetHeight);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),(0,T.useEffect)(()=>{N.current===`working`&&n===`complete`&&L(!h),N.current=n},[h,L,n]);let Y=()=>{let e=!I;L(e),e&&requestAnimationFrame(()=>M.current?.scrollTo({top:0}))},X=g??G(B),Z=_??K(B,e,u),Q=q?R?`linear-gradient(to bottom, transparent, black 12px)`:`linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent)`:void 0;return(0,k.jsxs)(`div`,{"data-state":R?`working`:z?`open`:`closed`,"data-content":B,"aria-busy":R,className:l(`w-full text-sm`,S),children:[R?(0,k.jsx)(`div`,{id:D,role:`status`,className:`flex h-7 min-w-0 items-center text-muted-foreground`,children:v?v({label:X,duration:u}):(0,k.jsx)(j,{children:X})}):(0,k.jsxs)(`button`,{id:D,type:`button`,"aria-expanded":z,"aria-controls":O,onClick:Y,className:`group flex h-7 min-w-0 items-center gap-1.5 rounded-md text-left font-medium text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,children:[(0,k.jsx)(`span`,{className:`truncate`,children:y?y({summary:Z,duration:u}):Z}),(0,k.jsx)(r.span,{"aria-hidden":`true`,animate:{rotate:z?180:0},transition:w?{duration:0}:o,className:`inline-flex shrink-0 text-muted-foreground/70 group-hover:text-foreground`,children:(0,k.jsx)(f,{className:`size-3.5`})})]}),(0,k.jsx)(x,{id:O,role:`region`,"aria-labelledby":D,open:z,openHeight:H,children:(0,k.jsx)(`div`,{ref:M,className:l(`scrollbar-hide pr-1`,q&&z&&!R?`overflow-y-auto`:`overflow-y-hidden`),style:{height:H,maskImage:Q,WebkitMaskImage:Q},children:(0,k.jsx)(r.div,{ref:A,role:`list`,initial:!1,animate:{y:J},transition:w?{duration:0}:i,className:l(`space-y-0.5 py-2`,C),children:(0,k.jsx)(s,{mode:`popLayout`,children:e.map(e=>(0,k.jsx)(r.div,{layout:`position`,role:`listitem`,initial:w?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:w?{opacity:0}:{opacity:0,y:-3},transition:w?{duration:0}:{opacity:{duration:.18,ease:a},y:i,layout:i},children:(0,k.jsx)(V,{item:e})},e.id))})})})})]})}export{q as AgentActivity};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{d as t,r as n}from"./ease-u56MhKYS.js";import{t as r}from"./use-reduced-motion-eORd7fqW.js";import{t as i}from"./utils-Eg7xtNmV.js";var a=e();function o({open:e,openHeight:o=`auto`,className:s,style:c,transition:l,...u}){let d=r()??!1;return(0,a.jsx)(t.div,{...u,"aria-hidden":!e,inert:!e,initial:!1,animate:d?{opacity:+!!e}:{opacity:+!!e,clipPath:e?`inset(0 0 0% 0)`:`inset(0 0 100% 0)`,y:e?0:-4},transition:l??{duration:d?0:e?.22:.14,ease:n},className:i(`overflow-hidden`,s),style:{...c,height:e?o:0,pointerEvents:e?void 0:`none`,transformOrigin:`top`}})}export{o 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 v(e){setTimeout(e,0)}var y=typeof window>`u`||`Deno`in globalThis;function b(){}function x(e,t){return typeof e==`function`?e(t):e}function S(e){return typeof e==`number`&&e>=0&&e!==1/0}function C(e,t){return Math.max(e+(t||0)-Date.now(),0)}function w(e,t){return typeof e==`function`?e(t):e}function ee(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 te(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)=>A(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 ne=Object.prototype.hasOwnProperty;function O(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=k(e)&&k(t);if(!r&&!(A(e)&&A(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:ne.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=O(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 k(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function A(e){if(!j(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!j(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function j(e){return Object.prototype.toString.call(e)===`[object Object]`}function M(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:O(e,t)}function ie(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ae(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var P=Symbol();function F(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===P?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oe(e,t){return typeof e==`function`?e(...t):!!e}function I(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 se=()=>y,L=()=>se(),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=v;function le(){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 B=le(),V=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 H(e){return Math.min(1e3*2**e,3e4)}function U(e){return(e??`online`)!==`online`||V.isOnline()}var W=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function G(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(b);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new W(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>z.isFocused()&&(e.networkMode===`always`||V.isOnline())&&e.canRun(),p=()=>U(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()?0:3),a=e.retryDelay??H,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),M(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 K=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),S(this.gcTime)&&(this.#e=_.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(L()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(_.clearTimeout(this.#e),this.#e=void 0)}};function ue(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=>{I(e,()=>t.signal,()=>n=!0)},u=F(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?ae:ie;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?de:q,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:q(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 q(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 de(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var fe=class extends K{#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=X(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=X(this.options);e.data!==void 0&&(this.setState(Y(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.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(b).catch(b):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===P||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>w(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:!C(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.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({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=F(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`?ue(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=G({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof W&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({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 W){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({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()}}#c(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,...J(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Y(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),B.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function J(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:U(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Y(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function X(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 pe=class extends K{#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||Z(),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=G({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),B.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Z(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}function me({children:e,features:t,strict:n=!1}){let[,r]=(0,c.useState)(!Q(t)),a=(0,c.useRef)(void 0);if(!Q(t)){let{renderer:e,...n}=t;a.current=e,o(n)}return(0,c.useEffect)(()=>{Q(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 Q(e){return typeof e==`function`}var he={renderer:r,...a,...s};function $(e){if(typeof window>`u`||typeof PerformanceObserver>`u`)return()=>{};let t=window.location.pathname,n=[],r,i=!1,a=!1;try{let o=new PerformanceObserver(e=>{if(i)return;let t=e.getEntries(),n=t[t.length-1];n&&(r=n.startTime)});o.observe({type:`largest-contentful-paint`,buffered:!0}),n.push(o);let s=0,c=0,l=0,u=0,d=!1,f=e=>{for(let t of e){let e=t;if(!e.hadRecentInput){let n=e.value??0;d&&t.startTime-u<1e3&&t.startTime-l<5e3?c+=n:(c=n,l=t.startTime),d=!0,u=t.startTime,s=Math.max(s,c)}}},p=new PerformanceObserver(e=>f(e.getEntries()));p.observe({type:`layout-shift`,buffered:!0}),n.push(p);let m=new Map,h=e=>{for(let t of e){let e=t;e.interactionId&&m.set(e.interactionId,Math.max(m.get(e.interactionId)??0,e.duration??0))}},g=()=>{if(m.size===0)return;let e=[...m.values()].sort((e,t)=>e-t),t=performance.interactionCount,n=typeof t==`number`&&Number.isFinite(t)?Math.max(t,e.length):e.length,r=Math.floor(n/50);return e[Math.max(0,e.length-r-1)]},_=new PerformanceObserver(e=>h(e.getEntries()));_.observe({type:`event`,buffered:!0,durationThreshold:40}),n.push(_);let v=()=>{if(i)return;let n=o.takeRecords(),a=n[n.length-1];a&&(r=a.startTime),i=!0,r!==void 0&&e({name:`LCP`,value:r,url:t})},y=()=>{if(a)return;v(),f(p.takeRecords()),h(_.takeRecords()),a=!0,d&&e({name:`CLS`,value:s,url:t});let n=g();n!==void 0&&e({name:`INP`,value:n,url:t})},b=()=>v(),x=()=>{document.visibilityState===`hidden`&&y()},S=[`pointerdown`,`keydown`,`touchstart`];for(let e of S)window.addEventListener(e,b,{capture:!0});return document.addEventListener(`visibilitychange`,x),window.addEventListener(`pagehide`,y),()=>{y();for(let e of S)window.removeEventListener(e,b,{capture:!0});document.removeEventListener(`visibilitychange`,x),window.removeEventListener(`pagehide`,y);for(let e of n)e.disconnect()}}catch{}return()=>{for(let e of n)e.disconnect()}}function ge(){if(typeof window>`u`||window.__fleetVitalsInit)return;window.__fleetVitalsInit=!0;let e=e=>{try{let t=JSON.stringify(e);navigator.sendBeacon&&navigator.sendBeacon(`/api/analytics/vitals`,t)}catch{}},t=$(e);window.addEventListener(`pageshow`,n=>{n.persisted&&(t(),t=$(e))})}function _e(e){}function ve(){}function ye(e){}function be(e){}export{P as A,ee as C,w as D,N as E,d as F,u as I,l as L,_ as M,h as N,re as O,m as P,te as S,D as T,x as _,ve as a,y as b,pe as c,J as d,V as f,L as g,R as h,ge as i,C as j,oe as k,Z as l,z as m,be as n,he as o,B as p,_e as r,me as s,ye as t,fe as u,E as v,b as w,S as 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-BR2WWrFo.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-DfnPN0FQ.js";import{t as l}from"./chevron-right-DrJxToLs.js";import{t as u}from"./package-CdcJFPf2.js";import{r as d,t as f}from"./openui-renderer-Bf60nxNi.js";import{n as p,r as m,t as h}from"./collapsible-BoXtZZWN.js";import{n as g}from"./prime-agent-artifacts-C-g1VPiW.js";import{J as _}from"./chat-Ci2cEQrR.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-[0.625rem] text-foreground/40`,children:e.status})]}),r?(0,x.jsx)(d,{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)(h,{open:t,onOpenChange:a,children:[(0,x.jsxs)(m,{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-[0.625rem] text-foreground/40`,children:[`#`,e.ordinal]})]}),(0,x.jsx)(p,{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)(f,{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]),d=(0,b.useMemo)(()=>l.filter(e=>e.kind===`openui-html`),[l]),f=(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:[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)(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-[0.625rem] text-foreground/40`,children:d.length})]}),(0,x.jsx)(`div`,{className:`space-y-1`,children:d.map(e=>(0,x.jsx)(k,{artifact:e,selected:e.id===i},e.id))})]}):null,f.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)(u,{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-[0.625rem] text-foreground/40`,children:f.length})]}),(0,x.jsx)(`div`,{className:`space-y-1`,children:f.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-[0.625rem] text-foreground/40`,children:a.length>0?`${a.length}`:`none yet`})]}),a.length===0?(0,x.jsx)(`p`,{className:`px-2 pb-1 text-[0.6875rem] 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{t as e}from"./openui-utils-DawGoQNp.js";var t=/^root\s*=\s*([A-Za-z][A-Za-z0-9]*)/,n=/"((?:\\.|[^"\\]){1,80})"/;function r(e){return n.exec(e)?.[1]??t.exec(e)?.[1]??`Interface`}function i(t){let n=[];for(let i of t)if(i.role===`assistant`){for(let t of i.parts)if(t.type===`text`&&typeof t.text==`string`)for(let a of e(t.text))a.type===`openui`&&n.push({blockId:`${i.id}:${a.id}`,content:a.content,component:r(a.content),ordinal:n.length+1})}return n}export{i as t};
|