@qredence/fleet 0.6.1 → 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 +11 -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-DA3Vnqay.js → card-DCEnYd2G.js} +1 -1
- 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-B7NNpVmW.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-xNyjdZ4g.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-DxL0VD7Z.js → notify-DjVixft7.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-TLNe5e_Q.js → openui-renderer-Bkkx5kmA.js} +37 -37
- 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/session-tool-renderer-3E3cv8D0.js +1395 -0
- 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-oeLDPDAK.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/server/_tanstack-start-manifest_v-BDPifIFN-DTSNCHBX.js +91 -0
- package/dist/web/server/{artifacts-panel-D3ySO--V-XSL53CXL.js → artifacts-panel-BN3DgqfV-N73J6N5Y.js} +39 -44
- package/dist/web/server/{chat-command-palette-kAbXhWVg-TJWXH2WW.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-5UCAJBAH.js → chunk-43S5N7SH.js} +80 -47
- package/dist/web/server/chunk-4EBSM4JR.js +74 -0
- package/dist/web/server/{chunk-ZIFSJ3HQ.js → chunk-4OTHKQMG.js} +185 -109
- package/dist/web/server/{chunk-NNKJTKOQ.js → chunk-6SOMNRAX.js} +309 -279
- package/dist/web/server/chunk-7E76R7MB.js +2138 -0
- package/dist/web/server/{chunk-EBG3XFGQ.js → chunk-7FK6YEMA.js} +49 -44
- 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-HF7DG7PC.js → chunk-7UTDOTOU.js} +80 -78
- package/dist/web/server/{chunk-OZO5ARFA.js → chunk-BQROC4PL.js} +11 -2
- package/dist/web/server/{chunk-JTCCQZLN.js → chunk-BUXJSBE3.js} +2 -2
- package/dist/web/server/{chunk-NIZBFVJF.js → chunk-CAPTFJOC.js} +9 -7
- package/dist/web/server/{chunk-YGYOBX7G.js → chunk-CCYLHNZJ.js} +1767 -52
- package/dist/web/server/{chunk-DJMHPJBP.js → chunk-CHEC7TWB.js} +3 -1
- package/dist/web/server/{chunk-NJ4QEZHK.js → chunk-CW6KZUKT.js} +7 -5
- package/dist/web/server/chunk-DLA5TLKX.js +164 -0
- package/dist/web/server/{chunk-MNBGB2SP.js → chunk-E5HALE4M.js} +4 -4
- package/dist/web/server/{chunk-D27LRYVT.js → chunk-EDAWH2MT.js} +10 -9
- package/dist/web/server/{chunk-NGCQJ33Y.js → chunk-ENGEUJIH.js} +1494 -1644
- package/dist/web/server/{chunk-RIP3PBWT.js → chunk-ESM7OCRL.js} +4 -4
- package/dist/web/server/{chunk-O3HDELZ2.js → chunk-FT74GAAH.js} +676 -670
- package/dist/web/server/{chunk-WNCAL4HN.js → chunk-HQ5TEXHT.js} +132 -152
- package/dist/web/server/{chunk-YOM42BKD.js → chunk-IPV4GLJL.js} +16 -16
- package/dist/web/server/{chunk-UL2725KQ.js → chunk-IXGLKAPN.js} +54 -46
- package/dist/web/server/{chunk-3TIMGWWI.js → chunk-JPDRUSUD.js} +2 -2
- package/dist/web/server/{chunk-4WBFCB4O.js → chunk-JVOW2NWC.js} +179 -177
- 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-QIULBRTU.js → chunk-MJXXVQNA.js} +79 -84
- package/dist/web/server/{chunk-NWDI3OWB.js → chunk-NCK2FJAD.js} +30 -26
- package/dist/web/server/{chunk-QFRCJWQQ.js → chunk-NMBH57JT.js} +94 -33
- package/dist/web/server/{chunk-EAJTWMK5.js → chunk-NZ6KQT2X.js} +2 -2
- package/dist/web/server/{chunk-2DDWXTVG.js → chunk-O2UYZT3Z.js} +11 -11
- package/dist/web/server/{chunk-DLUZFOG3.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-UCUFC553.js → chunk-RXUMFFUV.js} +3 -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-FYDQK6UX.js → chunk-UDD5W4CR.js} +32 -10
- package/dist/web/server/{chunk-MNPHMZU7.js → chunk-UE32PAV2.js} +47 -57
- package/dist/web/server/{chunk-KP2PNDGL.js → chunk-WB2LJC3R.js} +29 -32
- package/dist/web/server/{chunk-ETTDO4UO.js → chunk-WTYNN6EV.js} +1 -26
- package/dist/web/server/{chunk-EJEPDVK6.js → chunk-WU6X3GPJ.js} +48 -5
- package/dist/web/server/{chunk-XIB6XNUX.js → chunk-XJ6TGSUB.js} +425 -404
- package/dist/web/server/{chunk-PLYZ7P2Y.js → chunk-YMPJMHXZ.js} +41 -4
- 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-Ds6Tgtu3-DIBWN7MV.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-D_w8lSeY-T3HB7HVQ.js → message-queue-Demph1x4-RBJUC3AT.js} +14 -10
- package/dist/web/server/{model-selector-list-DxeGZoD2-P6S6FSJH.js → model-selector-list-BmzLiCx9-TK6JGGKU.js} +20 -19
- package/dist/web/server/{openui-renderer-MKFv6LlH-MDRSVFEY.js → openui-renderer-moJGf0LA-QCU3PI6H.js} +17 -18
- package/dist/web/server/{prompt-suggestions-BOItmGnD-YQA7RHLG.js → prompt-suggestions-yPZqX__K-3VGJC4IF.js} +7 -6
- package/dist/web/server/{repl-panel-CuyF8wt5-CHDT2Q3N.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-Dg72SESP-PCWKLFRG.js → router-CPdFlpbe-LAD4MNZB.js} +3111 -235
- package/dist/web/server/{routes-BGrVtPYF-SURPAJN6.js → routes-hkom6S6L-DUPPQHPY.js} +5045 -4285
- 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-DG_vuvv0-NCZWEEIT.js → session-reasoning-panel-m1RgcIph-NUXGXVKE.js} +21 -22
- package/dist/web/server/session-tool-renderer-CglQ2ky7-2JVYNZG2.js +45 -0
- package/dist/web/server/{settings-dialog-CK0FJlTg-HZRBAXDZ.js → settings-dialog-BCEfmgtP-T3WQEZHB.js} +175 -1373
- package/dist/web/server/{subagent-chat-panel-gzamnTgK-PQ2TLLJF.js → subagent-chat-panel-BTwI1kdB-LKBWA4GD.js} +32 -41
- package/dist/web/server/{subagents-panel-Berjd7HJ-EI5ZKC6V.js → subagents-panel-8Z9_csoV-HYMEEBHB.js} +37 -45
- package/dist/web/server/{fleet-tool-timeline-D6yM4ZMz-ZSFVRRRI.js → tool-timeline-QL9k5dzA-RLU26HXT.js} +6 -6
- package/dist/web/server/{workspace-panel-CBBa_3UO-B4PPFPMA.js → workspace-panel-BHEB9nRM-TS62SYBA.js} +24 -31
- package/package.json +1 -1
- package/dist/web/client/assets/action-swap-roll-COzQ86wm.js +0 -1
- package/dist/web/client/assets/agent-activity-svETLf_5.js +0 -1
- package/dist/web/client/assets/agent-disclosure-DAMuuGcM.js +0 -1
- package/dist/web/client/assets/analytics-stub-B6zGMuSV.js +0 -1
- package/dist/web/client/assets/artifacts-panel-HVjqBMyx.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-C5wFDY5_.js +0 -1
- package/dist/web/client/assets/chat-BhYseKd6.js +0 -52
- package/dist/web/client/assets/chat-command-palette-LILDO_vG.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-BPv8HIpf.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-PhicLCoO.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-pBGUjAQ7.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-fbYYwMj0.js +0 -1
- package/dist/web/client/assets/fleet-pi-tool-renderer-BRgNnmaJ.js +0 -1395
- package/dist/web/client/assets/fleet-reasoning-panel-CjA2dwUJ.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-CuIiqOTg.css +0 -2
- package/dist/web/client/assets/highlighted-body-KPVGNVTW-sUCZ1fHv.js +0 -1
- package/dist/web/client/assets/horizontal-resize-Cp3iHMH7.js +0 -1
- package/dist/web/client/assets/image-BbPmlw-n.js +0 -1
- package/dist/web/client/assets/index-CSGplyr_.js +0 -12
- package/dist/web/client/assets/input-PcdubeKn.js +0 -1
- package/dist/web/client/assets/input-group-C2HJEZvl.js +0 -1
- package/dist/web/client/assets/ipython-tool-CyuMOxz1.js +0 -3
- package/dist/web/client/assets/layout-gyLzPvVv.js +0 -1
- package/dist/web/client/assets/markdown-lvexwooo.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-CoXX358G.js +0 -1
- package/dist/web/client/assets/plus-DXN1Bg_z.js +0 -1
- package/dist/web/client/assets/prompt-input-fwP8TsgQ.js +0 -1
- package/dist/web/client/assets/prompt-suggestions-BlGXmWS7.js +0 -1
- package/dist/web/client/assets/provider-catalog-DYMFdbKc.js +0 -1
- package/dist/web/client/assets/provider-label-B4q5mI65.js +0 -1
- package/dist/web/client/assets/react-dom-Bwxum3ti.js +0 -1
- package/dist/web/client/assets/repl-panel-C5om8MGU.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-BBlxLxnx.js +0 -2
- package/dist/web/client/assets/routes-XGsAIqBJ.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-BSBasR3o.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-DaVHjNUH.js +0 -1
- package/dist/web/client/assets/subagent-utils-DDH5qm9Z.js +0 -1
- package/dist/web/client/assets/subagents-panel-D_aVgSCi.js +0 -1
- package/dist/web/client/assets/surfaces-BhAXz9So.js +0 -1
- package/dist/web/client/assets/switch-WhXeJNNY.js +0 -1
- package/dist/web/client/assets/terminal-DOS1s1gm.js +0 -1
- package/dist/web/client/assets/toast-D3c9XeGe.js +0 -1
- package/dist/web/client/assets/tool-result-Cki8WUNc.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-CdMa-ydT.js +0 -6
- package/dist/web/client/assets/workspace-panel-77bDbprs.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-0L7fqnH4-KMVGUFE4.js +0 -95
- package/dist/web/server/agent-activity-BuEE6iVw-CDZLK4D2.js +0 -514
- package/dist/web/server/chunk-2JHTYWD5.js +0 -1196
- package/dist/web/server/chunk-3JMESBAT.js +0 -35
- package/dist/web/server/chunk-42XU6WV7.js +0 -56
- 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-L46H6IDX.js +0 -13
- package/dist/web/server/chunk-NIDBN7BQ.js +0 -86
- 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-S5LFXXDY.js +0 -1265
- package/dist/web/server/chunk-VPKX7QRU.js +0 -42
- package/dist/web/server/chunk-ZCVWADNW.js +0 -37
- package/dist/web/server/fleet-pi-tool-renderer-qwc-qZFq-4U556N5Q.js +0 -51
- package/dist/web/server/fleet-subagent-list-BGb0PjhF-2X67FMUV.js +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{$ as r,G as i,et as a}from"./button-Dl0ce3Y5.js";import{t as o}from"./utils-Brtgag-m.js";import{T as s,ct as c,et as l,f as u,it as d,nt as f,rt as p,st as m,t as h}from"./createBaseUIEventDetails-B58Jldei.js";import{t as g}from"./useBaseUiId-D9ZGPZ6f.js";import{t as _}from"./useControlled-CgAAWIy9.js";var v=e(t(),1),y=`data-valid`,b=`data-invalid`,x={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},S={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},C={valid(e){return e===null?null:e?{[y]:``}:{[b]:``}}},w={invalid:void 0,name:void 0,validityData:{state:x,errors:[],error:``,value:``,initialValue:null},setValidityData:c,disabled:void 0,setTouched:c,setDirty:c,setFilled:c,setFocused:c,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:S,registerFieldControl:c,validation:{getValidationProps:(e,t=m)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:c,getInputControl:()=>null,commit:async()=>{},change:c}},T=v.createContext(w);function E(e=!0){let t=v.useContext(T);if(t.setValidityData===c&&!e)throw Error(f(28));return t}function D(e,t,n,r,i=!0,a){let{registerFieldControl:o}=E(),s=d(()=>Symbol());p(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),p(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var O=v.createContext({controlId:void 0,registerControlId:c,resetControlId:c,labelId:void 0,setLabelId:c,messageIds:[],setMessageIds:c,getDescriptionProps:e=>e});function k(){return v.useContext(O)}function A(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=k(),o=g(),s=d(()=>Symbol()),u=v.useRef(!1),f=v.useRef(!1),m=l(()=>{!u.current||i===c||(u.current=!1,i(s.current,void 0))});return p(()=>{if(!n||i===c){m();return}let e;if(t!==void 0)f.current=!0,e=t;else if(f.current)e=o;else{a();return}if(e===void 0){m();return}u.current=!0,i(s.current,e)},[t,n,i,a,o,s,m]),p(()=>m,[m]),(n?r:void 0)??t??o}var j=v.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:c,validationMode:`onSubmit`,submitCountRef:{current:0}});function M(){return v.useContext(j)}function N(e,t){let n=v.useRef(e),r=l(t);p(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}var P=v.forwardRef(function(e,t){let{render:n,className:o,id:c,name:d,value:f,disabled:m=!1,onValueChange:g,defaultValue:y,autoFocus:b=!1,style:x,...S}=e,{state:w,name:T,disabled:O,setTouched:j,setDirty:P,validityData:F,setFocused:I,setFilled:L,validationMode:R,validation:z}=E(),{clearErrors:B,elementRef:V,submitCountRef:H}=M(),U=O||m,W=T??d,G={...w,disabled:U},{labelId:K}=k(),q=A({id:c}),[J]=_({controlled:f,default:y,name:`FieldControl`,state:`value`}),Y=f!==void 0,X=Y?J:void 0,Z=X==null?void 0:String(X),Q=l(()=>z.inputRef.current?.value);D(z.inputRef,q,Z,Q,!U,d),p(()=>{let e=Z??z.inputRef.current?.value;e!==void 0&&L(e!==``)},[Z,z.inputRef,L]),N(Z,()=>{Z!==void 0&&(B(W),P(Z!==(F.initialValue??``)),z.change(Z))});let $=v.useRef(null),ee=r();return p(()=>{b&&$.current===i(a($.current))&&I(!0)},[b,I]),s(`input`,e,{ref:[t,$],state:G,props:[{id:q,disabled:U,name:W,ref:z.inputRef,"aria-labelledby":K,autoFocus:b,...Y?{value:X}:{defaultValue:y},onChange(e){let t=e.currentTarget.value,n=h(u,e.nativeEvent);g?.(t,n),!Y&&(P(t!==(F.initialValue??``)),L(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(B(W),z.change(t)))},onFocus(){I(!0)},onBlur(e){if(j(!0),I(!1),R===`onBlur`){let t=e.currentTarget.value;z.commit(t),Y&&queueMicrotask(()=>{let e=z.inputRef.current?.value;e!==void 0&&e!==t&&e!==(F.initialValue??``)&&z.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){j(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===V.current&&!e.defaultPrevented){let t=e.currentTarget,n=H.current;ee.start(0,()=>{H.current===n&&z.commit(t.value)})}else z.commit(t)}}},S,e=>z.getValidationProps(U,e)],stateAttributesMapping:C})}),F=n(),I=v.forwardRef(function(e,t){return(0,F.jsx)(P,{ref:t,...e})});function L({className:e,type:t,...n}){return(0,F.jsx)(I,{type:t,"data-slot":`input`,className:o(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}export{k as a,C as c,A as i,N as n,D as o,M as r,E as s,L as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./button-Dl0ce3Y5.js";import{t as n}from"./utils-Brtgag-m.js";import{t as r}from"./dist-52wg4XPY.js";import{t as i}from"./input-CxZp56Im.js";var a=e();function o({className:e,...t}){return(0,a.jsx)(`textarea`,{"data-slot":`textarea`,className:n(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}function s({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:n(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,e),...t})}var c=r(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function l({className:e,align:t=`inline-start`,...r}){return(0,a.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:n(c({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`[data-slot='input-group-control'], input, textarea`)?.focus()},...r})}var u=r(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5`,sm:``,"icon-xs":`size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function d({className:e,type:r=`button`,variant:i=`ghost`,size:o=`xs`,...s}){return(0,a.jsx)(t,{type:r,"data-size":o,variant:i,className:n(u({size:o}),e),...s})}function f({className:e,...t}){return(0,a.jsx)(i,{"data-slot":`input-group-control`,className:n(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}export{o as a,f as i,l as n,d as r,s as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Brtgag-m.js";import{t as i}from"./createLucideIcon-_dfI7Arx.js";var a=i(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),o=e(t(),1);function s(e,t,n){let r=(0,o.useRef)(n);(0,o.useEffect)(()=>{r.current=n},[n]),(0,o.useEffect)(()=>{if(!e)return;let n=setTimeout(()=>r.current(),t);return()=>clearTimeout(n)},[e,t])}var c=n(),l=(0,o.memo)(function({isPending:e,approveLabel:t,rejectLabel:n,onApprove:r,onReject:i}){let[a,s]=(0,o.useState)(null),l=a===`approved`?`Approved`:t??`Next`,u=a===`rejected`?`Skipped`:n??`Skip`,d=()=>{a||(s(`approved`),r?.())},f=()=>{a||(s(`rejected`),i?.())},p=(0,o.useMemo)(()=>a===`approved`?{label:`Waiting`,dots:!0}:a===`rejected`?{label:`Canceled`,dots:!1}:e?{label:`Starting`,dots:!0}:null,[a,e]);return(0,c.jsxs)(`div`,{className:`flex items-center justify-between border-t border-border bg-muted py-1 pr-2 pl-3`,children:[p?(0,c.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[p.label,p.dots&&(0,c.jsxs)(`span`,{className:`inline-flex`,"aria-hidden":`true`,children:[(0,c.jsx)(`span`,{className:`animate-[loading-dots_1.4s_infinite_0.2s] text-muted-foreground`,children:`.`}),(0,c.jsx)(`span`,{className:`animate-[loading-dots_1.4s_infinite_0.4s] text-muted-foreground`,children:`.`}),(0,c.jsx)(`span`,{className:`animate-[loading-dots_1.4s_infinite_0.6s] text-muted-foreground`,children:`.`})]})]}):(0,c.jsx)(`span`,{"aria-hidden":`true`}),(0,c.jsxs)(`div`,{className:`flex gap-1`,children:[(0,c.jsx)(`button`,{type:`button`,onClick:f,disabled:!!a,className:`h-5 rounded-[4px] px-1.5 text-xs text-muted-foreground transition-[background-color,color,transform] duration-150 hover:bg-muted/50 hover:text-foreground active:scale-[0.98] disabled:opacity-60 disabled:hover:bg-transparent disabled:active:scale-100`,children:u}),(0,c.jsx)(`button`,{type:`button`,onClick:d,disabled:!!a,className:`h-5 rounded-[4px] bg-primary px-1.5 text-xs font-medium text-primary-foreground transition-[background-color,transform] duration-150 hover:bg-primary/90 active:scale-[0.98] disabled:opacity-60 disabled:hover:bg-primary disabled:active:scale-100`,children:l})]})]})});function u({children:e,as:t=`p`,className:n,duration:i=2,spread:a=100,delay:o=0}){let s={"--chat-shimmer-duration":`${i}s`,"--chat-shimmer-spread":`${a}px`,animationDelay:o>0?`${o}s`:void 0,animationDuration:`${i}s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`};return(0,c.jsx)(t,{className:r(`an-text-shimmer`,`an-text-shimmer--active`,n),style:s,children:e})}var d=o.memo(u);function f(e){let t=0,n=0;for(let r of e)if(r.lines)for(let e of r.lines)e.startsWith(`+`)?t++:e.startsWith(`-`)&&n++;if(t===0&&n===0)return;let r=[];return t>0&&r.push(`+${t}`),n>0&&r.push(`-${n}`),r.join(` `)}function p(e){let t=[];for(let n of e)if(n.lines)for(let e of n.lines)e.startsWith(`+`)?t.push({type:`add`,content:e.slice(1)}):e.startsWith(`-`)?t.push({type:`remove`,content:e.slice(1)}):e.startsWith(` `)&&t.push({type:`context`,content:e.slice(1)});return t}function m(e){return e===`result`?`complete`:`animating`}function h(e){let t=e.toLowerCase();if(t===`thinking`||t===`reasoning`)return`thinking`;if(t===`websearch`||t===`web_search`||t===`grep`||t===`glob`||t===`webfetch`||t===`web_fetch`)return`search`}function g(e,t){switch(e){case`Bash`:return t?.command?String(t.command).slice(0,80):``;case`Edit`:case`Write`:case`Read`:return t?.file_path?String(t.file_path).split(`/`).pop()??``:``;case`Grep`:return t?.pattern?String(t.pattern):``;case`Glob`:return t?.pattern?String(t.pattern):``;case`WebSearch`:case`web_search`:return t?.query?String(t.query):``;case`WebFetch`:case`web_fetch`:return t?.url?String(t.url).slice(0,60):``;default:return``}}function _(e,t){let{toolName:n,args:r={},result:i}=t,a={id:e,type:`tool-call`,toolName:n===`PlanWrite`?`Plan`:n===`TodoWrite`?`Todo`:n,toolDetail:g(n,r),duration:2**53-1,toolVariant:h(n)};if(n===`Bash`&&(a.bashCommand=r?.command?String(r.command):void 0,t.state===`result`&&i)){if(typeof i==`string`)a.bashOutput=i,a.bashSuccess=!0;else if(typeof i==`object`){let e=typeof i?.stdout==`string`?i.stdout:typeof i?.output==`string`?i.output:``,t=typeof i?.stderr==`string`?i.stderr:``;a.bashOutput=[e,t].filter(Boolean).join(e&&t?`
|
|
2
|
+
`:``);let n=i?.exitCode??i?.exit_code;a.bashSuccess=n===void 0||n===0}else a.bashOutput=JSON.stringify(i),a.bashSuccess=!0}if((n===`Edit`||n===`Write`||n===`Read`)&&(a.filePath=r?.file_path?String(r.file_path):void 0),n===`Write`){let e=typeof i?.content==`string`?i.content:typeof r?.content==`string`?r.content:``;if(e){let t=e.split(`
|
|
3
|
+
`);a.diffStats=`+${t.length}`,a.diffLines=t.map(e=>({type:`add`,content:e}))}}return n===`Edit`&&Array.isArray(i?.structuredPatch)&&(a.diffStats=f(i.structuredPatch),a.diffLines=p(i.structuredPatch)),(n===`WebSearch`||n===`web_search`||n===`Grep`||n===`Glob`)&&(a.searchQuery=r?.query??r?.pattern?String(r?.query??r?.pattern):void 0,a.searchSource=n===`WebSearch`||n===`web_search`?`web`:`code`),a}function v(e){return e===`output-available`?`result`:e===`input-streaming`?`partial-call`:`call`}function y(e,t){let n=v(e.state);return{step:_(e.toolCallId??e.id??t.toLowerCase(),{toolName:t,args:e.input??e.args??{},state:n,result:e.output??e.result}),stepState:m(n)}}function b(e){let t=e.input??e.args??{};return typeof t.code==`string`?t.code:``}function x(e){let t=e.output??e.result;if(!(!t||typeof t!=`object`))return t}function S(...e){for(let t of e)if(t&&t.trim())return t;return``}function C({isPending:e,isBashCell:t,hasError:n,kernelRestarted:r}){return(0,c.jsxs)(`div`,{className:`flex h-7 items-center justify-between pr-2 pl-2.5`,children:[(0,c.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 overflow-hidden`,children:[(0,c.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-micro leading-none text-muted-foreground uppercase`,children:[(0,c.jsx)(a,{className:`h-3 w-3`}),t?`shell`:`python`]}),e?(0,c.jsx)(d,{as:`span`,duration:1.2,className:`m-0 inline-flex h-full items-center truncate text-xs leading-none`,children:`Running cell`}):(0,c.jsxs)(`span`,{className:`truncate text-xs text-muted-foreground`,children:[n?`Cell failed`:`Ran cell`,r&&` · kernel restarted`]})]}),e&&(0,c.jsx)(`svg`,{className:`h-3 w-3 shrink-0 animate-spin text-muted-foreground`,viewBox:`0 0 16 16`,fill:`none`,children:(0,c.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeDasharray:`28`,strokeDashoffset:`7`,strokeLinecap:`round`})})]})}function w({output:e}){return(0,c.jsxs)(`div`,{className:`mt-1.5 border-t border-dashed border-border/70 pt-1.5 font-mono text-caption leading-[15px]`,children:[(0,c.jsx)(`span`,{className:`text-micro font-semibold uppercase tracking-wider text-amber-600/90 dark:text-amber-400/90`,children:`Unattributed background output:`}),(0,c.jsx)(`div`,{className:`mt-0.5 max-h-[140px] overflow-auto whitespace-pre-wrap rounded bg-muted/40 p-1.5 text-muted-foreground`,children:e})]})}function T({step:e,state:t,onComplete:n,approval:r,cellIndex:i,part:a}){s(t===`animating`,e.duration,n);let o=t===`animating`,u=b(a),d=x(a),f=typeof a.backgroundOutput==`string`&&a.backgroundOutput.trim()?a.backgroundOutput:typeof d?.backgroundOutput==`string`&&d.backgroundOutput.trim()?d.backgroundOutput:void 0,p=u.trimStart().startsWith(`%%bash`),m=i===void 0?`IPython`:`In [${i}]`,h=S(d?.result,d?.stdout,d?.stderr,d?.error?.evalue),g=!!d?.error||!!d?.errorEname||d?.status===`error`;return(0,c.jsxs)(`div`,{className:`overflow-hidden rounded-chat-tool border border-border bg-muted`,children:[(0,c.jsx)(C,{isPending:o,isBashCell:p,hasError:g,kernelRestarted:d?.kernelRestarted}),(0,c.jsxs)(`div`,{className:`overflow-hidden border-t border-border bg-background px-2.5 py-1.5 font-mono text-label leading-[16px]`,children:[(0,c.jsxs)(`div`,{className:`break-all whitespace-pre-wrap`,children:[(0,c.jsxs)(`span`,{className:`mr-2 text-cyan-600 select-none dark:text-cyan-400`,children:[m,`:`]}),(0,c.jsx)(`span`,{className:`text-foreground`,children:u})]}),!o&&h&&(0,c.jsx)(`div`,{className:`mt-1 max-h-[160px] overflow-hidden whitespace-pre-line ${g?`text-red-600 dark:text-red-400`:`text-muted-foreground`}`,children:h}),f&&(0,c.jsx)(w,{output:f})]}),r&&(0,c.jsx)(l,{isPending:o,...r})]})}var E=new Map,D=0;function O(e){if(!e)return++D;let t=E.get(e);if(t)return t;let n=++D;return E.set(e,n),n}var k=(0,o.memo)(function({part:e}){let t=e.input?.approval??e.args?.approval,{step:n,stepState:r}=y(e,`IPython`),i=O(e.toolCallId);return(0,c.jsx)(T,{step:n,state:r,onComplete:()=>{},approval:t,cellIndex:i,part:e})});export{s as a,l as i,y as n,a as o,d as r,k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";var n=e(t(),1),r=(0,n.createContext)({});function i(e){let t=(0,n.useRef)(null);return t.current===null&&(t.current=e()),t.current}var a=(0,n.createContext)(null);function o(e,t){e.indexOf(t)===-1&&e.push(t)}function s(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var c=(e,t,n)=>n>t?t:n<e?e:n,l=()=>{},u=()=>{},d={},f=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ee=e=>/^0[^.\s]+$/u.test(e);function te(e){let t;return()=>(t===void 0&&(t=e()),t)}var p=e=>e,m=class{constructor(){this.subscriptions=[]}add(e){return o(this.subscriptions,e),()=>s(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},h=e=>e*1e3,g=e=>e/1e3,ne=(e,t)=>t?1e3/t*e:0,re=e=>Array.isArray(e)&&typeof e[0]==`number`,_=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ie(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ae=40;function oe(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_.reduce((e,t)=>(e[t]=ie(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:ee,render:te,postRender:p}=o,m=()=>{let a=d.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ae),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),f.process(i),ee.process(i),te.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},h=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:_.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||h(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<_.length;t++)o[_[t]].cancel(e)},state:i,steps:o}}var{schedule:v,cancel:se,state:y,steps:ce}=oe(typeof requestAnimationFrame<`u`?requestAnimationFrame:p,!0),b;function le(){b=void 0}var x={now:()=>(b===void 0&&x.set(y.isProcessing||d.useManualTiming?y.timestamp:performance.now()),b),set:e=>{b=e,queueMicrotask(le)}},ue=e=>t=>typeof t==`string`&&t.startsWith(e),de=ue(`--`),fe=ue(`var(--`),pe=e=>fe(e)?me.test(e.split(`/*`)[0].trim()):!1,me=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function he(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var S={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},C={...S,transform:e=>c(0,1,e)},w={...S,default:1},T=e=>Math.round(e*1e5)/1e5,ge=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _e(e){return e==null}var ve=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,E=(e,t)=>n=>!!(typeof n==`string`&&ve.test(n)&&n.startsWith(e)||t&&!_e(n)&&Object.prototype.hasOwnProperty.call(n,t)),ye=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ge);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},be=e=>c(0,255,e),D={...S,transform:e=>Math.round(be(e))},O={test:E(`rgb`,`red`),parse:ye(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+D.transform(e)+`, `+D.transform(t)+`, `+D.transform(n)+`, `+T(C.transform(r))+`)`};function xe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var k={test:E(`#`),parse:xe,transform:O.transform},A=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j=A(`deg`),M=A(`%`),N=A(`px`),Se=A(`vh`),Ce=A(`vw`),we={...M,parse:e=>M.parse(e)/100,transform:e=>M.transform(e*100)},P={test:E(`hsl`,`hue`),parse:ye(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+M.transform(T(t))+`, `+M.transform(T(n))+`, `+T(C.transform(r))+`)`},F={test:e=>O.test(e)||k.test(e)||P.test(e),parse:e=>O.test(e)?O.parse(e):P.test(e)?P.parse(e):k.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?O.transform(e):P.transform(e),getAnimatableNone:e=>{let t=F.parse(e);return t.alpha=0,F.transform(t)}},Te=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ee(e){return isNaN(e)&&typeof e==`string`&&(e.match(ge)?.length||0)+(e.match(Te)?.length||0)>0}var De=`number`,Oe=`color`,ke=`var`,Ae=`var(`,je="${}",Me=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function I(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Me,e=>(F.test(e)?(r.color.push(a),i.push(Oe),n.push(F.parse(e))):e.startsWith(Ae)?(r.var.push(a),i.push(ke),n.push(e)):(r.number.push(a),i.push(De),n.push(parseFloat(e))),++a,je)).split(je),indexes:r,types:i}}function Ne(e){return I(e).values}function Pe({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===De?T(r[a]):e===Oe?F.transform(r[a]):r[a]}return i}}function Fe(e){return Pe(I(e))}var Ie=e=>typeof e==`number`?0:F.test(e)?F.getAnimatableNone(e):e,Le=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ie(e);function Re(e){let t=I(e);return Pe(t)(t.values.map((e,n)=>Le(e,t.split[n])))}var L={test:Ee,parse:Ne,createTransformer:Fe,getAnimatableNone:Re},ze=(e,t,n)=>e+(t-e)*n,Be=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ve=e=>e!==null;function He(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ve),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ue=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};function We(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var R=e=>e*180/Math.PI,Ge=e=>qe(R(Math.atan2(e[1],e[0]))),Ke={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ge,rotateZ:Ge,skewX:e=>R(Math.atan(e[1])),skewY:e=>R(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qe=e=>(e%=360,e<0&&(e+=360),e),Je=Ge,Ye=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Xe=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ze={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ye,scaleY:Xe,scale:e=>(Ye(e)+Xe(e))/2,rotateX:e=>qe(R(Math.atan2(e[6],e[5]))),rotateY:e=>qe(R(Math.atan2(-e[2],e[0]))),rotateZ:Je,rotate:Je,skewX:e=>R(Math.atan(e[4])),skewY:e=>R(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function z(e){return+!!e.includes(`scale`)}function Qe(e,t){if(!e||e===`none`)return z(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ze,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ke,i=t}if(!i)return z(t);let a=r[t],o=i[1].split(`,`).map(et);return typeof a==`function`?a(o):o[a]}var $e=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qe(n,t)};function et(e){return parseFloat(e.trim())}var B=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],V=new Set([...B,`pathRotation`]),tt=e=>e===S||e===N,nt=new Set([`x`,`y`,`z`]),rt=B.filter(e=>!nt.has(e));function it(e){let t=[];return rt.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Qe(t,`x`),y:(e,{transform:t})=>Qe(t,`y`)};H.translateX=H.x,H.translateY=H.y;var U=new Set,W=!1,G=!1,K=!1;function at(){if(G){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=it(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}G=!1,W=!1,U.forEach(e=>e.complete(K)),U.clear()}function ot(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(G=!0)})}function st(){K=!0,ot(),at(),K=!1}var ct=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(U.add(this),W||(W=!0,v.read(ot),v.resolveKeyframes(at))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}We(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),U.delete(this)}cancel(){this.state===`scheduled`&&(U.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},lt=e=>e.startsWith(`--`);function ut(e,t,n){lt(t)?e.style.setProperty(t,n):e.style[t]=n}var dt={};function ft(e,t){let n=te(e);return()=>dt[t]??n()}var pt=ft(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),mt=ft(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),q=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ht={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:q([0,.65,.55,1]),circOut:q([.55,0,1,.45]),backIn:q([.31,.01,.66,-.59]),backOut:q([.33,1.53,.69,.99])};function gt(e,t){if(e)return typeof e==`function`?mt()?Be(e,t):`ease-out`:re(e)?q(e):Array.isArray(e)?e.map(e=>gt(e,t)||ht.easeOut):ht[e]}function _t(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=gt(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function vt(e){return typeof e==`function`&&`applyToOptions`in e}function yt({type:e,...t}){return vt(e)&&mt()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var bt=class extends Ue{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=yt(e);this.animation=_t(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=He(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ut(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&pt()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),p):r(this)}},xt=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),St=30,Ct=e=>!isNaN(parseFloat(e)),wt={current:void 0},Tt=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=x.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=x.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ct(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new m);let n=this.events[e].add(t);return e===`change`?()=>{n(),v.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wt.current&&wt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=x.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>St)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,St);return ne(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function J(e,t){return new Tt(e,t)}function Et(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Dt(e,t,n,r){if(typeof t==`function`){let[i,a]=Et(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Et(r);t=t(n===void 0?e.custom:n,i,a)}return t}var Y=e=>!!(e&&e.getVelocity);function Ot(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var kt=`data-`+Ot(`framerAppearId`),At={test:e=>e===`auto`,parse:e=>e},jt=e=>t=>t.test(e),Mt=[S,N,M,j,Ce,Se,At],Nt=e=>Mt.find(jt(e)),Pt=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ft(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ge)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Pt.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var It=/\b([a-z-]*)\(.*?\)/gu,Lt={...L,getAnimatableNone:e=>{let t=e.match(It);return t?t.map(Ft).join(` `):e}},Rt={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},zt={...S,transform:Math.round},X={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,inset:N,insetBlock:N,insetBlockStart:N,insetBlockEnd:N,insetInline:N,insetInlineStart:N,insetInlineEnd:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,paddingBlock:N,paddingBlockStart:N,paddingBlockEnd:N,paddingInline:N,paddingInlineStart:N,paddingInlineEnd:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,marginBlock:N,marginBlockStart:N,marginBlockEnd:N,marginInline:N,marginInlineStart:N,marginInlineEnd:N,fontSize:N,backgroundPositionX:N,backgroundPositionY:N,rotate:j,pathRotation:j,rotateX:j,rotateY:j,rotateZ:j,scale:w,scaleX:w,scaleY:w,scaleZ:w,skew:j,skewX:j,skewY:j,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:C,originX:we,originY:we,originZ:N,zIndex:zt,fillOpacity:C,strokeOpacity:C,numOctaves:zt},Bt={...X,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Lt,WebkitFilter:Lt,mask:Rt,WebkitMask:Rt},Vt=e=>Bt[e],Ht=new Set([Lt,Rt]);function Ut(e,t){let n=Vt(e);return Ht.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Wt=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Gt=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:Kt,cancel:qt}=oe(queueMicrotask,!1),Jt=[...Mt,F,L],Yt=e=>Jt.find(jt(e)),Xt=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:Xt(),y:Xt()}),Qt=()=>({min:0,max:0}),$t=()=>({x:Qt(),y:Qt()}),en=new WeakMap;function tn(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function nn(e){return typeof e==`string`||Array.isArray(e)}var rn=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],an=[`initial`,...rn];function on(e){return tn(e.animate)||an.some(t=>nn(e[t]))}function sn(e){return!!(on(e)||e.variants)}function cn(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,J(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,J(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Z={current:null},ln={current:!1},un=typeof window<`u`;function dn(){if(ln.current=!0,un){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Z.current=e.matches;e.addEventListener(`change`,t),t()}else Z.current=!1}}var fn=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Q={};function pn(e){Q=e}function mn(){return Q}var hn=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ct,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=x.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,v.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=on(t),this.isVariantNode=sn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Y(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,en.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ln.current||dn(),this.shouldReduceMotion=Z.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),se(this.notifyUpdate),se(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&xt.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new bt({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:h(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=V.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&v.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Q){let t=Q[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<fn.length;t++){let n=fn[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cn(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=J(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(f(n)||ee(n))?n=parseFloat(n):!Yt(n)&&L.test(t)&&(n=Ut(e,t)),this.setBaseTarget(e,Y(n)?n.get():n)),Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Dt(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Y(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new m),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Kt.render(this.render)}},gn={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},_n=B.length;function vn(e,t,n){let r=``,i=!0;for(let a=0;a<_n;a++){let o=B[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Gt(s,X[o]);if(!c){i=!1;let t=gn[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Gt(a,X.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function yn(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(V.has(e)){o=!0;continue}if(de(e)){i[e]=n;continue}{let t=Gt(n,X[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=vn(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function bn(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var $={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(N.test(e))e=parseFloat(e);else return e}return`${bn(e,t.target.x)}% ${bn(e,t.target.y)}%`}},xn={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=L.parse(e);if(i.length>5)return r;let a=L.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=ze(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Sn={borderRadius:{...$,applyTo:[...Wt]},borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomLeftRadius:$,borderBottomRightRadius:$,boxShadow:xn};function Cn(e,{layout:t,layoutId:n}){return V.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Sn[e]||e===`opacity`)}function wn(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||Cn(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}var Tn={offset:`stroke-dashoffset`,array:`stroke-dasharray`},En={offset:`strokeDashoffset`,array:`strokeDasharray`};function Dn(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Tn:En;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var On=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function kn(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(yn(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of On)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Dn(d,i,a,o,!1)}var An=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function jn(e,t,n){let r=wn(e,t,n);for(let n in e)if(Y(e[n])||Y(t[n])){let t=B.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}function Mn(e){return Y(e)?e.get():e}var Nn=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),Pn=(0,n.createContext)({strict:!1}),Fn={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},In=!1;function Ln(){if(In)return;let e={};for(let t in Fn)e[t]={isEnabled:e=>Fn[t].some(t=>!!e[t])};pn(e),In=!0}function Rn(){return Ln(),mn()}function zn(e){let t=Rn();for(let n in e)t[n]={...t[n],...e[n]};pn(t)}var Bn=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Vn(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Bn.indexOf(e)>-1||/[A-Z]/u.test(e))}var Hn=(0,n.createContext)({});function Un(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}export{He as $,Kt as A,c as At,xt as B,rn as C,p as Ct,en as D,d as Dt,tn as E,f as Et,kt as F,r as Ft,st as G,vt as H,Ot as I,B as J,tt as K,Y as L,Ut as M,s as Mt,Vt as N,a as Nt,$t as O,u as Ot,Nt as P,i as Pt,Ue as Q,Dt as R,sn as S,m as St,nn as T,ee as Tt,ut as U,bt as V,ct as W,z as X,V as Y,$e as Z,hn as _,ce as _t,Rn as a,P as at,Z as b,g as bt,Mn as c,k as ct,kn as d,de as dt,Be as et,On as f,pe as ft,yn as g,y as gt,Sn as h,v as ht,zn as i,F as it,Wt as j,o as jt,Zt as k,l as kt,jn as l,O as lt,Cn as m,se as mt,Hn as n,I as nt,Pn as o,M as ot,wn as p,x as pt,H as q,Vn as r,L as rt,Nn as s,N as st,Un as t,ze as tt,An as u,he as ut,dn as v,re as vt,an as w,te as wt,on as x,h as xt,ln as y,ne as yt,J as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-_dfI7Arx.js";var t=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]]),n=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t as n,n as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-code-CDTRq-HZ.js","assets/jsx-runtime-NZYk81nU.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-YOKDWASO-Bte3iwlH.js","assets/react-CwJFpaho.js","assets/react-dom-DX3XddaT.js","assets/bundle-mjs-cJTHqqzI.js","assets/preload-helper-Czpn1I53.js","assets/lib-ChrQ49PO.js","assets/dist-CZDnnosQ.js","assets/character-entities-legacy-Wut6vMuj.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-CwJFpaho.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{t as i}from"./utils-Brtgag-m.js";import{t as a}from"./preload-helper-Czpn1I53.js";import{i as o}from"./chunk-YOKDWASO-Bte3iwlH.js";var s=t(n(),1),c=e({Markdown:()=>y,MarkdownFrame:()=>_,fixNumberedListBreaks:()=>d,markdownComponents:()=>g,normalizeCodeFenceLanguages:()=>p}),l=r(),u=(0,s.lazy)(()=>a(async()=>{let{HighlightedMarkdown:e}=await import(`./markdown-code-CDTRq-HZ.js`);return{HighlightedMarkdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(({HighlightedMarkdown:e})=>({default:e})));function d(e){return e.replace(/^(\d+)\.\s*\n+\s*\n*/gm,`$1. `)}var f=new Set([`bash`,`diff`,`html`,`js`,`json`,`jsx`,`md`,`markdown`,`sh`,`shell`,`text`,`ts`,`tsx`,`yml`,`yaml`]);function p(e){return e.replace(/```([^\n]*)/g,(e,t)=>{let n=String(t||``).trim().toLowerCase();if(!n)return"```";let r=n.split(/\s+/)[0];return f.has(r)?`\`\`\`${r}`:"```text"})}var m=/^(https?:|mailto:)/i;function h(e,t){if(!(0,s.isValidElement)(e))return!1;let n=e.props;if(typeof n!=`object`||!n)return!1;let r=`node`in n?n.node:void 0,i=typeof r==`object`&&r&&`tagName`in r?r.tagName:void 0;return i===`img`?t:i===`code`&&`data-block`in n||`children`in n&&h(n.children,t)}var g={h1:({children:e,...t})=>(0,l.jsx)(`h1`,{className:`an-md-h1 mt-3 mb-1.5 text-base font-semibold`,...t,children:e}),h2:({children:e,...t})=>(0,l.jsx)(`h2`,{className:`an-md-h2 mt-3 mb-1.5 text-base font-semibold`,...t,children:e}),h3:({children:e,...t})=>(0,l.jsx)(`h3`,{className:`an-md-h3 mt-2 mb-1 text-sm font-semibold`,...t,children:e}),h4:({children:e,...t})=>(0,l.jsx)(`h4`,{className:`an-md-h4 mt-2 mb-1 text-sm font-medium`,...t,children:e}),p:({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);return r.some(e=>h(e,r.length===1))?(0,l.jsx)(s.Fragment,{children:e}):(0,l.jsx)(`p`,{className:`an-md-p text-sm leading-relaxed text-foreground/80`,...n,children:e})},ul:({children:e,...t})=>(0,l.jsx)(`ul`,{className:`an-md-ul mb-2 flex list-outside list-disc flex-col gap-0.5 pl-4 text-sm text-foreground/80`,...t,children:e}),ol:({children:e,...t})=>(0,l.jsx)(`ol`,{className:`an-md-ol mb-2 flex list-outside list-decimal flex-col gap-0.5 pl-5 text-sm text-foreground/80`,...t,children:e}),li:({children:e,...t})=>(0,l.jsx)(`li`,{className:`an-md-li pl-0.5 text-sm text-foreground/80`,...t,children:e}),strong:({children:e,...t})=>(0,l.jsx)(`strong`,{className:`font-medium text-foreground`,...t,children:e}),a:({href:e,children:t,...n})=>{if(typeof e!=`string`||!m.test(e))return(0,l.jsx)(`span`,{children:t});let r=e.startsWith(`http`);return(0,l.jsx)(`a`,{...n,href:e,target:r?`_blank`:void 0,rel:r?`noopener noreferrer`:void 0,className:`an-md-link text-primary underline-offset-2 hover:underline`,children:t})},blockquote:({children:e,...t})=>(0,l.jsx)(`blockquote`,{className:`an-md-blockquote mb-2 border-l-2 border-border pl-3 text-sm text-foreground/70 italic`,...t,children:e}),hr:({...e})=>(0,l.jsx)(`hr`,{className:`an-md-hr my-4 border-border`,...e}),table:({children:e,...t})=>(0,l.jsx)(`div`,{className:`my-3 overflow-x-auto rounded-chat-tool border border-border`,children:(0,l.jsx)(`table`,{className:`an-md-table w-full text-sm [&>thead]:bg-muted [&>thead>tr>th]:bg-muted`,...t,children:e})}),th:({children:e,...t})=>(0,l.jsx)(`th`,{className:`bg-secondary px-3 py-2 text-left font-medium`,...t,children:e}),td:({children:e,...t})=>(0,l.jsx)(`td`,{className:`border-t border-border px-3 py-2 text-foreground/80`,...t,children:e})};function _({children:e,className:t}){return(0,l.jsx)(`div`,{className:i(`an-markdown`,`overflow-hidden wrap-break-word`,`[&_li>p]:mb-0 [&_li>p]:inline`,t),children:e})}function v({content:e,className:t,codeControls:n}){let r=(0,s.useMemo)(()=>p(d(e)),[e]);return(0,l.jsx)(_,{className:t,children:(0,l.jsx)(o,{components:g,controls:{code:n},children:r})})}function y(e){return e.isStreaming||!e.content.includes("```")?(0,l.jsx)(v,{...e}):(0,l.jsx)(s.Suspense,{fallback:(0,l.jsx)(v,{...e}),children:(0,l.jsx)(u,{...e})})}export{c as a,g as i,_ as n,p as o,d as r,y as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{i as t}from"./chunk-YOKDWASO-
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{i as t}from"./chunk-YOKDWASO-Bte3iwlH.js";import{c as n,n as r,r as i,s as a}from"./dist-CZDnnosQ.js";import{i as o,n as s,o as c,r as l}from"./markdown-BHkByC9K.js";var u=r({forgiving:!0}),d=Object.fromEntries(n.flatMap(e=>(e.aliases??[]).map(t=>[t,e.id]))),f=new Set(Object.keys(a)),p=e=>{let t=e.trim().toLowerCase();return d[t]||(f.has(t),t)},m=new Map,h=new Map,g=new Map,_=e=>typeof e==`string`?e:e.name??`custom`,v=(e,t)=>`${e}-${_(t[0])}-${_(t[1])}`,y=(e,t,n)=>{let r=e.slice(0,100),i=e.length>100?e.slice(-100):``;return`${t}:${n[0]}:${n[1]}:${e.length}:${r}:${i}`},b=(e,t)=>{let n=v(e,t);if(m.has(n))return m.get(n);let r=i({themes:t,langs:[e],engine:u});return m.set(n,r),r};function x(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=p(e);return f.has(t)},getSupportedLanguages(){return Array.from(f)},getThemes(){return t},highlight({code:e,language:t,themes:n},r){let i=p(t),a=[_(n[0]),_(n[1])],o=y(e,i,a);return h.has(o)?h.get(o):(r&&(g.has(o)||g.set(o,new Set),g.get(o).add(r)),b(f.has(i)?i:`text`,n).then(t=>{let n=t.getLoadedLanguages().includes(i)?i:`text`,r=t.codeToTokens(e,{lang:n,themes:{light:a[0],dark:a[1]}});h.set(o,r);let s=g.get(o);if(s){for(let e of s)e(r);g.delete(o)}}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e),g.delete(o)}),null)}}}x();var S=e(),C=x({themes:[`github-light`,`github-dark`]});function w({content:e,className:n,codeControls:r}){let i=c(l(e));return(0,S.jsx)(s,{className:n,children:(0,S.jsx)(t,{components:o,controls:{code:r},plugins:{code:C},children:i})})}export{w as HighlightedMarkdown};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./chunk-YOKDWASO-Bte3iwlH.js";export{e as Mermaid};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Brtgag-m.js";import{t as i}from"./pencil-CdO6qfv3.js";import{t as a}from"./x-BGsDD848.js";import{t as o}from"./notify-DjVixft7.js";import{t as s}from"./tokens-Ch5WqXC_.js";var c=e(t(),1),l=n(),u=[{key:`steering`,label:`Next`},{key:`followUp`,label:`After run`}];function d(e,t){return`${e}:${t}`}function f({queue:e,onDelete:t,onEdit:n,className:f}){let p=e.steering.length+e.followUp.length,[m,h]=(0,c.useState)(null),[g,_]=(0,c.useState)(``);if(p===0)return null;let v=()=>{h(null),_(``)},y=(e,t,n)=>{h(d(e,t)),_(n)},b=async(e,n,r)=>{m===d(e,n)&&v();try{await t?.(e,n,r)===!1&&o.error(`Unable to remove queued message`)}catch{o.error(`Unable to remove queued message`)}},x=async(e,t,r)=>{let i=g.trim();if(i.length===0){await b(e,t,r);return}if(i===r){v();return}try{await n?.(e,t,r,i)===!1?o.error(`Unable to update queued message`):v()}catch{o.error(`Unable to update queued message`)}};return(0,l.jsx)(`section`,{"aria-label":`Queued messages`,className:r(s,`mb-2`,f),children:(0,l.jsxs)(`div`,{className:`rounded-xl border border-border/60 bg-muted/30 p-2`,children:[(0,l.jsxs)(`div`,{className:`mb-1 flex items-baseline justify-between px-1 text-xs text-muted-foreground`,children:[(0,l.jsxs)(`span`,{children:[p,` queued`]}),(0,l.jsx)(`span`,{children:`Sent when the run reaches its lane`})]}),(0,l.jsx)(`div`,{className:`space-y-1`,children:u.flatMap(({key:r,label:o})=>e[r].map((e,s)=>{let c=d(r,s);return(0,l.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-lg bg-background/80 px-2 py-1.5 text-sm`,children:[(0,l.jsx)(`span`,{className:`mt-0.5 shrink-0 text-micro font-medium uppercase tracking-wide text-muted-foreground`,children:o}),m===c?(0,l.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1.5`,children:[(0,l.jsx)(`textarea`,{value:g,onChange:e=>_(e.target.value),onKeyDown:t=>{if(t.key===`Escape`){t.preventDefault(),v();return}t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),x(r,s,e))},"aria-label":`Edit queued message: ${e}`,rows:2,className:`min-h-10 w-full resize-y rounded-md border border-border/70 bg-background px-2 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,autoFocus:!0}),(0,l.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[(0,l.jsx)(`button`,{type:`button`,onClick:()=>void x(r,s,e),className:`rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:`Save`}),(0,l.jsx)(`button`,{type:`button`,onClick:v,className:`rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:`Cancel`})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-foreground/80`,children:e}),(0,l.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[n?(0,l.jsx)(`button`,{type:`button`,"aria-label":`Edit queued message: ${e}`,onClick:()=>y(r,s,e),className:`grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,l.jsx)(i,{className:`size-3.5`})}):null,t?(0,l.jsx)(`button`,{type:`button`,"aria-label":`Remove queued message: ${e}`,onClick:()=>void b(r,s,e),className:`grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,l.jsx)(a,{className:`size-3.5`})}):null]})]})]},`${r}:${s}:${e}`)}))})]})})}export{f as MessageQueue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Brtgag-m.js";import{a as i,f as a}from"./ease-CMumuPlX.js";import{t as o}from"./check-B3LlvM65.js";import{t as s}from"./gauge-BsDqNM1A.js";import{a as c,i as l,o as u,r as d,s as f,t as p}from"./command-Dv96gATQ.js";var m=e(t(),1),h=n();function g(e,t,n){return Math.min(n,Math.max(t,e))}function _({value:e,onChange:t,min:n=0,max:o=100,step:s=1,label:c,formatValue:l=String,disabled:u=!1,className:d,...f}){let p=(0,m.useId)(),[_,v]=(0,m.useState)(!1),[y,b]=(0,m.useState)(!1),x=Math.max(n,o),S=Math.max(2**-52,s),C=g(e,n,x),w=x===n?0:(C-n)/(x-n),T=w*100,E=w===0?8:0,D=`calc(${T}% + ${20-20*w-E*2.5}px)`,O=`calc(${T}% + ${11-24*w}px)`,k=20-20*w-E*2.5,A=`linear-gradient(to right, transparent calc(${T}% + ${k}px), black calc(${T}% + ${k+2}px))`,j=(0,m.useMemo)(()=>{let e=Math.floor((x-n)/S),t=Array.from({length:e+1},(e,t)=>n+t*S);return t.at(-1)!==x&&t.push(x),t},[n,x,S]),M=l(C),N=l(x),P=(e,t)=>{let r=t.getBoundingClientRect();if(r.width<=0||x===n)return n;let i=n+g((e-r.left)/r.width,0,1)*(x-n);return g(n+Math.round((i-n)/S)*S,n,x)},F=e=>{let r=!0,i=e.key===`ArrowRight`||e.key===`ArrowUp`?1:e.key===`ArrowLeft`||e.key===`ArrowDown`?-1:0;i===0?e.key===`Home`?(e.preventDefault(),t(n)):e.key===`End`?(e.preventDefault(),t(x)):r=!1:(e.preventDefault(),t(g(C+i*S,n,x))),r&&e.stopPropagation()};return(0,h.jsx)(`div`,{className:r(`relative w-full touch-none`,u&&`opacity-50`,d),...f,children:(0,h.jsxs)(`div`,{className:r(`relative h-8 w-full select-none touch-none overflow-hidden rounded-md border border-border bg-background outline-offset-2 transition-colors duration-150`,y&&!u&&`border-foreground/25`,_&&`border-foreground/40 ring-2 ring-ring/60 ring-offset-1 ring-offset-background`),onPointerEnter:()=>b(!0),onPointerLeave:()=>b(!1),onPointerDown:e=>{u||t(P(e.clientX,e.currentTarget))},children:[(0,h.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 z-[1] flex items-center justify-between px-3 pointer-events-none`,style:{WebkitMaskImage:A,maskImage:A},children:j.map(e=>(0,h.jsx)(a.span,{className:`relative flex size-[5px] items-center justify-center rounded-full`,animate:{backgroundColor:e===C?`var(--foreground)`:`var(--muted-foreground)`,opacity:e===C?1:.3},transition:i},e))}),(0,h.jsx)(a.div,{"aria-hidden":`true`,className:`absolute inset-y-0 left-0 z-[3] pointer-events-none bg-foreground/[0.08]`,layout:`size`,style:{width:D},transition:i}),(0,h.jsx)(a.div,{"aria-hidden":`true`,className:r(`absolute z-[3] w-0.5 rounded-full pointer-events-none`),layout:!0,style:{left:O,top:y||_?7:8,bottom:y||_?7:8},animate:{backgroundColor:_?`var(--foreground)`:y?`color-mix(in srgb, var(--foreground) 50%, transparent)`:`color-mix(in srgb, var(--foreground) 25%, transparent)`},transition:i}),(0,h.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-[2] flex items-center px-2`,children:[c?(0,h.jsx)(`span`,{className:`px-2 text-body text-transparent select-none`,"aria-hidden":`true`,children:c}):null,(0,h.jsx)(`span`,{className:`ml-auto px-2 text-body text-transparent tabular-nums select-none`,style:{minWidth:`${N.length}ch`},"aria-hidden":`true`,children:N})]}),(0,h.jsxs)(`div`,{className:`pointer-events-none absolute inset-0 z-[4] flex items-center px-2 text-body`,children:[c?(0,h.jsx)(a.span,{className:`px-2`,animate:{color:y||_?`var(--foreground)`:`var(--muted-foreground)`},transition:i,children:c}):null,(0,h.jsx)(a.span,{className:`ml-auto px-2 tabular-nums`,style:{minWidth:`${N.length}ch`,textAlign:`right`},animate:{color:y||_?`var(--foreground)`:`var(--muted-foreground)`},transition:i,children:M})]}),(0,h.jsx)(`input`,{id:p,type:`range`,min:n,max:x,step:S,value:C,disabled:u,"aria-label":c??`Slider`,"aria-valuetext":M,onChange:e=>t(Number(e.currentTarget.value)),onFocus:()=>v(!0),onBlur:()=>v(!1),onKeyDown:F,className:`absolute inset-0 z-20 m-0 h-full w-full cursor-ew-resize opacity-0 disabled:cursor-not-allowed`})]})})}function v(e){let t=new Map;for(let n of e){let e=t.get(n.provider)??[];e.push(n),t.set(n.provider,e)}return[...t.entries()]}function y({models:e,selectedModel:t,selectedEffort:n,effortLabel:r,onModelChange:i,onEffortChange:a}){let g=(0,m.useMemo)(()=>v(e),[e]);return(0,h.jsxs)(p,{className:`min-h-0 max-h-[min(55vh,28rem)] bg-transparent`,shouldFilter:!0,children:[(0,h.jsx)(c,{placeholder:`Search models…`,"aria-label":`Search models`}),(0,h.jsxs)(f,{className:`min-h-0 flex-1 p-1.5`,children:[(0,h.jsx)(d,{children:`No matching models`}),g.map(([e,n])=>(0,h.jsx)(l,{heading:n[0]?.providerLabel??e,children:n.map(e=>{let n=[e.id,e.name,e.provider,e.providerLabel,e.modelId,...e.keywords??[]].filter(Boolean).join(` `),r=e.id===t?.id;return(0,h.jsxs)(u,{value:n,disabled:e.disabled,onSelect:()=>{e.disabled||i?.(e.id)},className:`items-start gap-2 rounded-lg px-2.5 py-2`,children:[(0,h.jsx)(`span`,{className:`mt-0.5 shrink-0 text-muted-foreground`,children:e.icon??(0,h.jsx)(s,{"aria-hidden":`true`,className:`size-4`})}),(0,h.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,h.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,h.jsx)(`span`,{className:`truncate text-sm font-medium`,children:e.name}),e.disabled?(0,h.jsx)(`span`,{className:`shrink-0 text-micro uppercase tracking-wide text-muted-foreground`,children:`Unavailable`}):null]}),(0,h.jsxs)(`span`,{className:`mt-0.5 block truncate text-xs text-muted-foreground`,children:[e.modelId??e.id,e.reasoning?` · reasoning`:``]}),e.description?(0,h.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-muted-foreground/80`,children:e.description}):null]}),r?(0,h.jsx)(o,{"aria-hidden":`true`,className:`mt-1 size-4 shrink-0`}):null]},e.id)})},e))]}),t?.reasoning&&t.efforts?.length?(0,h.jsx)(`div`,{className:`shrink-0 border-t border-border/70 p-2`,children:(0,h.jsx)(_,{label:r,value:Math.max(0,t.efforts.findIndex(e=>e.id===n?.id)),onChange:e=>{let n=t.efforts?.[Math.round(e)];n&&!n.disabled&&a?.(n.id)},min:0,max:Math.max(0,t.efforts.length-1),formatValue:e=>t.efforts?.[Math.round(e)]?.name??``})}):null]})}export{y as ModelSelectorList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./toast-
|
|
1
|
+
import{n as e}from"./toast-lnCWGgSE.js";function t(t,n){return e.add({title:t,type:n})}var n=Object.assign(e=>t(e),{success:e=>t(e,`success`),error:e=>t(e,`error`),message:e=>t(e,`info`)});export{n as t};
|