@usetheo/ui 0.13.2 → 0.15.0
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/README.md +4 -466
- package/dist/components/composites/command-palette/command-palette.d.ts +1 -1
- package/dist/components/composites/metric-card/metric-card.d.ts +1 -1
- package/dist/components/primitives/alert/alert.d.ts +1 -1
- package/dist/components/primitives/badge/badge.d.ts +1 -1
- package/dist/components/primitives/button/button.d.ts +1 -1
- package/dist/components/primitives/danger-zone/danger-zone.d.ts +1 -1
- package/dist/components/primitives/dialog/dialog.d.ts +3 -3
- package/dist/components/primitives/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/primitives/empty-state/empty-state.d.ts +1 -1
- package/dist/components/primitives/plan-badge/plan-badge.d.ts +1 -1
- package/dist/components/primitives/sheet/sheet.d.ts +3 -3
- package/dist/components/primitives/stat-tile/stat-tile.d.ts +1 -1
- package/dist/components/primitives/toast/toast.d.ts +1 -1
- package/dist/components/primitives/update-banner/update-banner.d.ts +1 -1
- package/dist/index.d.ts +0 -89
- package/dist/index.js +4657 -1545
- package/dist/lib/cn.d.ts +1 -1
- package/dist/{preset-v3-legacy.js → tailwind-preset.js} +1 -16
- package/package.json +29 -788
- package/CHANGELOG.md +0 -1797
- package/DESIGN.md +0 -456
- package/NOTICE +0 -38
- package/dist/chunk-23YEYNDS.js +0 -89
- package/dist/chunk-23YEYNDS.js.map +0 -1
- package/dist/chunk-25KBUQEQ.js +0 -95
- package/dist/chunk-25KBUQEQ.js.map +0 -1
- package/dist/chunk-2NTEJRPA.js +0 -212
- package/dist/chunk-2NTEJRPA.js.map +0 -1
- package/dist/chunk-2NZYMQKT.js +0 -56
- package/dist/chunk-2NZYMQKT.js.map +0 -1
- package/dist/chunk-2OVFVPSZ.js +0 -26
- package/dist/chunk-2OVFVPSZ.js.map +0 -1
- package/dist/chunk-2UP7SECE.js +0 -78
- package/dist/chunk-2UP7SECE.js.map +0 -1
- package/dist/chunk-33ETHPT7.js +0 -112
- package/dist/chunk-33ETHPT7.js.map +0 -1
- package/dist/chunk-33IIDFSM.js +0 -43
- package/dist/chunk-33IIDFSM.js.map +0 -1
- package/dist/chunk-345HYADQ.js +0 -88
- package/dist/chunk-345HYADQ.js.map +0 -1
- package/dist/chunk-357XIC2N.js +0 -98
- package/dist/chunk-357XIC2N.js.map +0 -1
- package/dist/chunk-3YOPTHZH.js +0 -31
- package/dist/chunk-3YOPTHZH.js.map +0 -1
- package/dist/chunk-44ZNZZUS.js +0 -111
- package/dist/chunk-44ZNZZUS.js.map +0 -1
- package/dist/chunk-45FWKR23.js +0 -62
- package/dist/chunk-45FWKR23.js.map +0 -1
- package/dist/chunk-47IPOYLQ.js +0 -116
- package/dist/chunk-47IPOYLQ.js.map +0 -1
- package/dist/chunk-4EH6F54D.js +0 -69
- package/dist/chunk-4EH6F54D.js.map +0 -1
- package/dist/chunk-4EKF4EIE.js +0 -140
- package/dist/chunk-4EKF4EIE.js.map +0 -1
- package/dist/chunk-4XYFJIRC.js +0 -65
- package/dist/chunk-4XYFJIRC.js.map +0 -1
- package/dist/chunk-52J7SDYH.js +0 -48
- package/dist/chunk-52J7SDYH.js.map +0 -1
- package/dist/chunk-5YX76GH6.js +0 -70
- package/dist/chunk-5YX76GH6.js.map +0 -1
- package/dist/chunk-624AATQZ.js +0 -77
- package/dist/chunk-624AATQZ.js.map +0 -1
- package/dist/chunk-65YSFZAN.js +0 -192
- package/dist/chunk-65YSFZAN.js.map +0 -1
- package/dist/chunk-6IODJQWC.js +0 -47
- package/dist/chunk-6IODJQWC.js.map +0 -1
- package/dist/chunk-6ORS6XOE.js +0 -57
- package/dist/chunk-6ORS6XOE.js.map +0 -1
- package/dist/chunk-6V2LQEPT.js +0 -165
- package/dist/chunk-6V2LQEPT.js.map +0 -1
- package/dist/chunk-75IDWFYX.js +0 -134
- package/dist/chunk-75IDWFYX.js.map +0 -1
- package/dist/chunk-7BQXMG2A.js +0 -93
- package/dist/chunk-7BQXMG2A.js.map +0 -1
- package/dist/chunk-7RFWVNQA.js +0 -47
- package/dist/chunk-7RFWVNQA.js.map +0 -1
- package/dist/chunk-ABBXLAJW.js +0 -74
- package/dist/chunk-ABBXLAJW.js.map +0 -1
- package/dist/chunk-ACZNFEOZ.js +0 -180
- package/dist/chunk-ACZNFEOZ.js.map +0 -1
- package/dist/chunk-AJ2LNQUQ.js +0 -108
- package/dist/chunk-AJ2LNQUQ.js.map +0 -1
- package/dist/chunk-AX6P3SDS.js +0 -89
- package/dist/chunk-AX6P3SDS.js.map +0 -1
- package/dist/chunk-AXUAQM45.js +0 -154
- package/dist/chunk-AXUAQM45.js.map +0 -1
- package/dist/chunk-B2FL7KBJ.js +0 -65
- package/dist/chunk-B2FL7KBJ.js.map +0 -1
- package/dist/chunk-B42EOFRD.js +0 -106
- package/dist/chunk-B42EOFRD.js.map +0 -1
- package/dist/chunk-BE232OKN.js +0 -42
- package/dist/chunk-BE232OKN.js.map +0 -1
- package/dist/chunk-BSF4Y4UT.js +0 -77
- package/dist/chunk-BSF4Y4UT.js.map +0 -1
- package/dist/chunk-BYUWQ6OP.js +0 -45
- package/dist/chunk-BYUWQ6OP.js.map +0 -1
- package/dist/chunk-C5ULP2P5.js +0 -140
- package/dist/chunk-C5ULP2P5.js.map +0 -1
- package/dist/chunk-CCG7PXLX.js +0 -24
- package/dist/chunk-CCG7PXLX.js.map +0 -1
- package/dist/chunk-CFVSXYVT.js +0 -59
- package/dist/chunk-CFVSXYVT.js.map +0 -1
- package/dist/chunk-CGWIOIEO.js +0 -27
- package/dist/chunk-CGWIOIEO.js.map +0 -1
- package/dist/chunk-CVFSNA4K.js +0 -716
- package/dist/chunk-CVFSNA4K.js.map +0 -1
- package/dist/chunk-CX54TUTT.js +0 -144
- package/dist/chunk-CX54TUTT.js.map +0 -1
- package/dist/chunk-DJK6H3FD.js +0 -200
- package/dist/chunk-DJK6H3FD.js.map +0 -1
- package/dist/chunk-E26M7ATD.js +0 -61
- package/dist/chunk-E26M7ATD.js.map +0 -1
- package/dist/chunk-E63IRXZZ.js +0 -78
- package/dist/chunk-E63IRXZZ.js.map +0 -1
- package/dist/chunk-EOTSD2GL.js +0 -83
- package/dist/chunk-EOTSD2GL.js.map +0 -1
- package/dist/chunk-ESJUISWY.js +0 -45
- package/dist/chunk-ESJUISWY.js.map +0 -1
- package/dist/chunk-ET7A3TQZ.js +0 -158
- package/dist/chunk-ET7A3TQZ.js.map +0 -1
- package/dist/chunk-ETTL6XGU.js +0 -139
- package/dist/chunk-ETTL6XGU.js.map +0 -1
- package/dist/chunk-EWDN56AS.js +0 -24
- package/dist/chunk-EWDN56AS.js.map +0 -1
- package/dist/chunk-FELH4AAQ.js +0 -90
- package/dist/chunk-FELH4AAQ.js.map +0 -1
- package/dist/chunk-FJZKA2LV.js +0 -165
- package/dist/chunk-FJZKA2LV.js.map +0 -1
- package/dist/chunk-FM72LBCJ.js +0 -102
- package/dist/chunk-FM72LBCJ.js.map +0 -1
- package/dist/chunk-FNQASFTK.js +0 -53
- package/dist/chunk-FNQASFTK.js.map +0 -1
- package/dist/chunk-FOE3XXBJ.js +0 -965
- package/dist/chunk-FOE3XXBJ.js.map +0 -1
- package/dist/chunk-GC52HWIL.js +0 -41
- package/dist/chunk-GC52HWIL.js.map +0 -1
- package/dist/chunk-GCKFA7X7.js +0 -83
- package/dist/chunk-GCKFA7X7.js.map +0 -1
- package/dist/chunk-GDMCDW66.js +0 -19
- package/dist/chunk-GDMCDW66.js.map +0 -1
- package/dist/chunk-GLRUM43F.js +0 -121
- package/dist/chunk-GLRUM43F.js.map +0 -1
- package/dist/chunk-H3L7WZDZ.js +0 -74
- package/dist/chunk-H3L7WZDZ.js.map +0 -1
- package/dist/chunk-H55WXDME.js +0 -45
- package/dist/chunk-H55WXDME.js.map +0 -1
- package/dist/chunk-HB45JHMM.js +0 -43
- package/dist/chunk-HB45JHMM.js.map +0 -1
- package/dist/chunk-HETHTYEZ.js +0 -80
- package/dist/chunk-HETHTYEZ.js.map +0 -1
- package/dist/chunk-HHSKNB32.js +0 -55
- package/dist/chunk-HHSKNB32.js.map +0 -1
- package/dist/chunk-HILOUYES.js +0 -151
- package/dist/chunk-HILOUYES.js.map +0 -1
- package/dist/chunk-HKVOCYTN.js +0 -113
- package/dist/chunk-HKVOCYTN.js.map +0 -1
- package/dist/chunk-HNRFBJ25.js +0 -129
- package/dist/chunk-HNRFBJ25.js.map +0 -1
- package/dist/chunk-HTJVHFNW.js +0 -178
- package/dist/chunk-HTJVHFNW.js.map +0 -1
- package/dist/chunk-HZ7Z22VW.js +0 -130
- package/dist/chunk-HZ7Z22VW.js.map +0 -1
- package/dist/chunk-II5Q5RIO.js +0 -236
- package/dist/chunk-II5Q5RIO.js.map +0 -1
- package/dist/chunk-ITEIRMSH.js +0 -121
- package/dist/chunk-ITEIRMSH.js.map +0 -1
- package/dist/chunk-JIZKW3WC.js +0 -74
- package/dist/chunk-JIZKW3WC.js.map +0 -1
- package/dist/chunk-JP3SHERK.js +0 -154
- package/dist/chunk-JP3SHERK.js.map +0 -1
- package/dist/chunk-JR4H3FJ2.js +0 -74
- package/dist/chunk-JR4H3FJ2.js.map +0 -1
- package/dist/chunk-JRW53TVG.js +0 -53
- package/dist/chunk-JRW53TVG.js.map +0 -1
- package/dist/chunk-JS5T2CRO.js +0 -86
- package/dist/chunk-JS5T2CRO.js.map +0 -1
- package/dist/chunk-JXOCE27Z.js +0 -82
- package/dist/chunk-JXOCE27Z.js.map +0 -1
- package/dist/chunk-JYW5YNF7.js +0 -188
- package/dist/chunk-JYW5YNF7.js.map +0 -1
- package/dist/chunk-KHBXI6AV.js +0 -149
- package/dist/chunk-KHBXI6AV.js.map +0 -1
- package/dist/chunk-KXZH7BTX.js +0 -92
- package/dist/chunk-KXZH7BTX.js.map +0 -1
- package/dist/chunk-LB4PMLCX.js +0 -57
- package/dist/chunk-LB4PMLCX.js.map +0 -1
- package/dist/chunk-LMGE2QEO.js +0 -117
- package/dist/chunk-LMGE2QEO.js.map +0 -1
- package/dist/chunk-M74ZYBOK.js +0 -93
- package/dist/chunk-M74ZYBOK.js.map +0 -1
- package/dist/chunk-ML7WLNIK.js +0 -11
- package/dist/chunk-ML7WLNIK.js.map +0 -1
- package/dist/chunk-MLEPCMTF.js +0 -147
- package/dist/chunk-MLEPCMTF.js.map +0 -1
- package/dist/chunk-NSZEZTDO.js +0 -98
- package/dist/chunk-NSZEZTDO.js.map +0 -1
- package/dist/chunk-OMR6ZGME.js +0 -63
- package/dist/chunk-OMR6ZGME.js.map +0 -1
- package/dist/chunk-ORVYP73T.js +0 -223
- package/dist/chunk-ORVYP73T.js.map +0 -1
- package/dist/chunk-OZFUUO2Q.js +0 -50
- package/dist/chunk-OZFUUO2Q.js.map +0 -1
- package/dist/chunk-PJWYIOY4.js +0 -3
- package/dist/chunk-PJWYIOY4.js.map +0 -1
- package/dist/chunk-PXT47DRZ.js +0 -59
- package/dist/chunk-PXT47DRZ.js.map +0 -1
- package/dist/chunk-QBSJM4XI.js +0 -83
- package/dist/chunk-QBSJM4XI.js.map +0 -1
- package/dist/chunk-QBUTRD2M.js +0 -58
- package/dist/chunk-QBUTRD2M.js.map +0 -1
- package/dist/chunk-QCSMJTA6.js +0 -68
- package/dist/chunk-QCSMJTA6.js.map +0 -1
- package/dist/chunk-QNYOIVQ4.js +0 -36
- package/dist/chunk-QNYOIVQ4.js.map +0 -1
- package/dist/chunk-QPURZJJM.js +0 -88
- package/dist/chunk-QPURZJJM.js.map +0 -1
- package/dist/chunk-QTG266XU.js +0 -69
- package/dist/chunk-QTG266XU.js.map +0 -1
- package/dist/chunk-QV4BQRNH.js +0 -29
- package/dist/chunk-QV4BQRNH.js.map +0 -1
- package/dist/chunk-RJ6RAMKH.js +0 -89
- package/dist/chunk-RJ6RAMKH.js.map +0 -1
- package/dist/chunk-RJBCTMVW.js +0 -59
- package/dist/chunk-RJBCTMVW.js.map +0 -1
- package/dist/chunk-RMJYXHBX.js +0 -113
- package/dist/chunk-RMJYXHBX.js.map +0 -1
- package/dist/chunk-RQT5DWGG.js +0 -34
- package/dist/chunk-RQT5DWGG.js.map +0 -1
- package/dist/chunk-SPGNNN4R.js +0 -115
- package/dist/chunk-SPGNNN4R.js.map +0 -1
- package/dist/chunk-SQ66DCXY.js +0 -35
- package/dist/chunk-SQ66DCXY.js.map +0 -1
- package/dist/chunk-SXKGWHAM.js +0 -179
- package/dist/chunk-SXKGWHAM.js.map +0 -1
- package/dist/chunk-T2OKGV6M.js +0 -13
- package/dist/chunk-T2OKGV6M.js.map +0 -1
- package/dist/chunk-T4Z7HBZR.js +0 -110
- package/dist/chunk-T4Z7HBZR.js.map +0 -1
- package/dist/chunk-TW5I37AE.js +0 -142
- package/dist/chunk-TW5I37AE.js.map +0 -1
- package/dist/chunk-TY6NTWN5.js +0 -29
- package/dist/chunk-TY6NTWN5.js.map +0 -1
- package/dist/chunk-UGKI466V.js +0 -12
- package/dist/chunk-UGKI466V.js.map +0 -1
- package/dist/chunk-UJAWV6LM.js +0 -136
- package/dist/chunk-UJAWV6LM.js.map +0 -1
- package/dist/chunk-V2WCZBVE.js +0 -122
- package/dist/chunk-V2WCZBVE.js.map +0 -1
- package/dist/chunk-V4LRBYOD.js +0 -55
- package/dist/chunk-V4LRBYOD.js.map +0 -1
- package/dist/chunk-V6H2RUVP.js +0 -77
- package/dist/chunk-V6H2RUVP.js.map +0 -1
- package/dist/chunk-VFRFUU7A.js +0 -35
- package/dist/chunk-VFRFUU7A.js.map +0 -1
- package/dist/chunk-VHK2OUCW.js +0 -38
- package/dist/chunk-VHK2OUCW.js.map +0 -1
- package/dist/chunk-VLNFUEOR.js +0 -86
- package/dist/chunk-VLNFUEOR.js.map +0 -1
- package/dist/chunk-VM4RMQQN.js +0 -11
- package/dist/chunk-VM4RMQQN.js.map +0 -1
- package/dist/chunk-VU7XKD4G.js +0 -66
- package/dist/chunk-VU7XKD4G.js.map +0 -1
- package/dist/chunk-VZX4HLBM.js +0 -84
- package/dist/chunk-VZX4HLBM.js.map +0 -1
- package/dist/chunk-W24RR5OD.js +0 -102
- package/dist/chunk-W24RR5OD.js.map +0 -1
- package/dist/chunk-W47V2F3Q.js +0 -115
- package/dist/chunk-W47V2F3Q.js.map +0 -1
- package/dist/chunk-W743ORLA.js +0 -91
- package/dist/chunk-W743ORLA.js.map +0 -1
- package/dist/chunk-W7I3ZX66.js +0 -76
- package/dist/chunk-W7I3ZX66.js.map +0 -1
- package/dist/chunk-WD42UBGR.js +0 -64
- package/dist/chunk-WD42UBGR.js.map +0 -1
- package/dist/chunk-WQVEJJV7.js +0 -108
- package/dist/chunk-WQVEJJV7.js.map +0 -1
- package/dist/chunk-WX4Q4DTX.js +0 -121
- package/dist/chunk-WX4Q4DTX.js.map +0 -1
- package/dist/chunk-XC7SYZYR.js +0 -86
- package/dist/chunk-XC7SYZYR.js.map +0 -1
- package/dist/chunk-XSENM65D.js +0 -128
- package/dist/chunk-XSENM65D.js.map +0 -1
- package/dist/chunk-Y7JTBQUQ.js +0 -152
- package/dist/chunk-Y7JTBQUQ.js.map +0 -1
- package/dist/chunk-YD2QEVHO.js +0 -68
- package/dist/chunk-YD2QEVHO.js.map +0 -1
- package/dist/chunk-YDKRUSB5.js +0 -35
- package/dist/chunk-YDKRUSB5.js.map +0 -1
- package/dist/chunk-YNDHYMPI.js +0 -46
- package/dist/chunk-YNDHYMPI.js.map +0 -1
- package/dist/chunk-YO3WEMOH.js +0 -130
- package/dist/chunk-YO3WEMOH.js.map +0 -1
- package/dist/chunk-YVXMWUWD.js +0 -118
- package/dist/chunk-YVXMWUWD.js.map +0 -1
- package/dist/chunk-Z6HZMGO2.js +0 -106
- package/dist/chunk-Z6HZMGO2.js.map +0 -1
- package/dist/chunk-ZAP4RIUL.js +0 -81
- package/dist/chunk-ZAP4RIUL.js.map +0 -1
- package/dist/chunk-ZEDDWVBB.js +0 -112
- package/dist/chunk-ZEDDWVBB.js.map +0 -1
- package/dist/chunk-ZEFOXF2I.js +0 -87
- package/dist/chunk-ZEFOXF2I.js.map +0 -1
- package/dist/chunk-ZPURFK4C.js +0 -203
- package/dist/chunk-ZPURFK4C.js.map +0 -1
- package/dist/chunk-ZXPDS6DH.js +0 -3
- package/dist/chunk-ZXPDS6DH.js.map +0 -1
- package/dist/chunk-ZZZIOTLC.js +0 -89
- package/dist/chunk-ZZZIOTLC.js.map +0 -1
- package/dist/components/composites/agent-composer/agent-composer.d.ts +0 -41
- package/dist/components/composites/agent-composer/index.d.ts +0 -1
- package/dist/components/composites/agent-editor/agent-editor.d.ts +0 -31
- package/dist/components/composites/agent-editor/index.d.ts +0 -1
- package/dist/components/composites/agent-stream/agent-stream.d.ts +0 -72
- package/dist/components/composites/agent-stream/index.d.ts +0 -2
- package/dist/components/composites/agent-stream/to-agent-stream-items.d.ts +0 -32
- package/dist/components/composites/agent-timeline/agent-timeline.d.ts +0 -22
- package/dist/components/composites/agent-timeline/index.d.ts +0 -1
- package/dist/components/composites/agent-tool-renderer/agent-tool-renderer.d.ts +0 -60
- package/dist/components/composites/agent-tool-renderer/index.d.ts +0 -1
- package/dist/components/composites/agent-tool-renderer/tool-call-part.d.ts +0 -5
- package/dist/components/composites/approval-card/approval-card.d.ts +0 -35
- package/dist/components/composites/approval-card/index.d.ts +0 -1
- package/dist/components/composites/chat-composer/chat-composer.d.ts +0 -68
- package/dist/components/composites/chat-composer/index.d.ts +0 -1
- package/dist/components/composites/chat-message/chat-message-actions.d.ts +0 -22
- package/dist/components/composites/chat-message/chat-message-branch.d.ts +0 -17
- package/dist/components/composites/chat-message/chat-message-response.d.ts +0 -15
- package/dist/components/composites/chat-message/chat-message-toolbar.d.ts +0 -7
- package/dist/components/composites/chat-message/chat-message.d.ts +0 -94
- package/dist/components/composites/chat-message/index.d.ts +0 -23
- package/dist/components/composites/chat-message/parts/data-part.d.ts +0 -9
- package/dist/components/composites/chat-message/parts/file-part.d.ts +0 -5
- package/dist/components/composites/chat-message/parts/reasoning-part.d.ts +0 -7
- package/dist/components/composites/chat-message/parts/source-part.d.ts +0 -9
- package/dist/components/composites/chat-message/parts/text-part.d.ts +0 -11
- package/dist/components/composites/choice-prompt/choice-prompt.d.ts +0 -65
- package/dist/components/composites/choice-prompt/index.d.ts +0 -2
- package/dist/components/composites/confirm-prompt/confirm-prompt.d.ts +0 -31
- package/dist/components/composites/confirm-prompt/index.d.ts +0 -1
- package/dist/components/composites/cron-jobs-list/cron-jobs-list.d.ts +0 -15
- package/dist/components/composites/cron-jobs-list/index.d.ts +0 -1
- package/dist/components/composites/mcp-server-list/index.d.ts +0 -1
- package/dist/components/composites/mcp-server-list/mcp-server-list.d.ts +0 -15
- package/dist/components/composites/multi-select-prompt/index.d.ts +0 -1
- package/dist/components/composites/multi-select-prompt/multi-select-prompt.d.ts +0 -61
- package/dist/components/composites/permission-modal/index.d.ts +0 -1
- package/dist/components/composites/permission-modal/permission-modal.d.ts +0 -48
- package/dist/components/composites/preview-panel/index.d.ts +0 -1
- package/dist/components/composites/preview-panel/preview-panel.d.ts +0 -24
- package/dist/components/composites/rule-editor/index.d.ts +0 -1
- package/dist/components/composites/rule-editor/rule-editor.d.ts +0 -18
- package/dist/components/composites/skill-editor/index.d.ts +0 -1
- package/dist/components/composites/skill-editor/skill-editor.d.ts +0 -19
- package/dist/components/composites/skills-list/index.d.ts +0 -1
- package/dist/components/composites/skills-list/skills-list.d.ts +0 -15
- package/dist/components/composites/slide-deck/context.d.ts +0 -23
- package/dist/components/composites/slide-deck/controls.d.ts +0 -8
- package/dist/components/composites/slide-deck/fragments.d.ts +0 -20
- package/dist/components/composites/slide-deck/index.d.ts +0 -21
- package/dist/components/composites/slide-deck/notes.d.ts +0 -14
- package/dist/components/composites/slide-deck/presenter-view.d.ts +0 -15
- package/dist/components/composites/slide-deck/print-styles.d.ts +0 -21
- package/dist/components/composites/slide-deck/progress-bar.d.ts +0 -8
- package/dist/components/composites/slide-deck/schema.d.ts +0 -31
- package/dist/components/composites/slide-deck/slide-deck.d.ts +0 -78
- package/dist/components/composites/slide-deck/slide-number.d.ts +0 -11
- package/dist/components/composites/slide-deck/split-deck.d.ts +0 -2
- package/dist/components/composites/slide-deck/thumbnails.d.ts +0 -19
- package/dist/components/composites/slide-deck/use-deck-hash-routing.d.ts +0 -23
- package/dist/components/composites/slide-deck/use-deck-keyboard.d.ts +0 -25
- package/dist/components/composites/slide-deck/use-deck-state.d.ts +0 -57
- package/dist/components/composites/slide-deck/use-deck-swipe.d.ts +0 -20
- package/dist/components/composites/slide-deck/use-fullscreen.d.ts +0 -18
- package/dist/components/composites/stability-bundle-viewer/index.d.ts +0 -1
- package/dist/components/composites/stability-bundle-viewer/stability-bundle-viewer.d.ts +0 -28
- package/dist/components/composites/text-prompt/index.d.ts +0 -1
- package/dist/components/composites/text-prompt/text-prompt.d.ts +0 -48
- package/dist/components/composites/usage-meter/index.d.ts +0 -1
- package/dist/components/composites/usage-meter/usage-meter.d.ts +0 -56
- package/dist/components/primitives/agent-error-card/agent-error-card.d.ts +0 -47
- package/dist/components/primitives/agent-error-card/index.d.ts +0 -1
- package/dist/components/primitives/agent-event/agent-event.d.ts +0 -25
- package/dist/components/primitives/agent-event/index.d.ts +0 -1
- package/dist/components/primitives/agent-handoff/agent-handoff.d.ts +0 -24
- package/dist/components/primitives/agent-handoff/index.d.ts +0 -1
- package/dist/components/primitives/agent-profile/agent-profile.d.ts +0 -28
- package/dist/components/primitives/agent-profile/index.d.ts +0 -1
- package/dist/components/primitives/agent-starting-state/agent-starting-state.d.ts +0 -15
- package/dist/components/primitives/agent-starting-state/index.d.ts +0 -1
- package/dist/components/primitives/agent-streaming/agent-streaming.d.ts +0 -16
- package/dist/components/primitives/agent-streaming/index.d.ts +0 -1
- package/dist/components/primitives/artifact-preview/artifact-preview.d.ts +0 -25
- package/dist/components/primitives/artifact-preview/index.d.ts +0 -1
- package/dist/components/primitives/attachment-chip/attachment-chip.d.ts +0 -14
- package/dist/components/primitives/attachment-chip/index.d.ts +0 -1
- package/dist/components/primitives/audit-log-entry/audit-log-entry.d.ts +0 -29
- package/dist/components/primitives/audit-log-entry/index.d.ts +0 -1
- package/dist/components/primitives/auto-compact-notice/auto-compact-notice.d.ts +0 -24
- package/dist/components/primitives/auto-compact-notice/index.d.ts +0 -1
- package/dist/components/primitives/branch-indicator/branch-indicator.d.ts +0 -13
- package/dist/components/primitives/branch-indicator/index.d.ts +0 -1
- package/dist/components/primitives/browser-controls/browser-controls.d.ts +0 -19
- package/dist/components/primitives/browser-controls/index.d.ts +0 -1
- package/dist/components/primitives/build-log-stream/build-log-stream.d.ts +0 -51
- package/dist/components/primitives/build-log-stream/index.d.ts +0 -1
- package/dist/components/primitives/capability-indicator/capability-indicator.d.ts +0 -57
- package/dist/components/primitives/capability-indicator/index.d.ts +0 -1
- package/dist/components/primitives/channel-card/channel-card.d.ts +0 -28
- package/dist/components/primitives/channel-card/index.d.ts +0 -1
- package/dist/components/primitives/chat-thread/chat-thread.d.ts +0 -12
- package/dist/components/primitives/chat-thread/index.d.ts +0 -1
- package/dist/components/primitives/context-card/context-card.d.ts +0 -18
- package/dist/components/primitives/context-card/index.d.ts +0 -1
- package/dist/components/primitives/context-window-bar/context-window-bar.d.ts +0 -27
- package/dist/components/primitives/context-window-bar/index.d.ts +0 -1
- package/dist/components/primitives/cost-meter/cost-meter.d.ts +0 -23
- package/dist/components/primitives/cost-meter/index.d.ts +0 -1
- package/dist/components/primitives/created-files-card/created-files-card.d.ts +0 -30
- package/dist/components/primitives/created-files-card/index.d.ts +0 -1
- package/dist/components/primitives/cron-job-card/cron-job-card.d.ts +0 -30
- package/dist/components/primitives/cron-job-card/index.d.ts +0 -1
- package/dist/components/primitives/diff-viewer/diff-viewer.d.ts +0 -45
- package/dist/components/primitives/diff-viewer/index.d.ts +0 -1
- package/dist/components/primitives/export-chat-dialog/export-chat-dialog.d.ts +0 -18
- package/dist/components/primitives/export-chat-dialog/index.d.ts +0 -1
- package/dist/components/primitives/folder-context-card/folder-context-card.d.ts +0 -40
- package/dist/components/primitives/folder-context-card/index.d.ts +0 -1
- package/dist/components/primitives/folder-selector/folder-selector.d.ts +0 -18
- package/dist/components/primitives/folder-selector/index.d.ts +0 -1
- package/dist/components/primitives/gateway-status-indicator/gateway-status-indicator.d.ts +0 -19
- package/dist/components/primitives/gateway-status-indicator/index.d.ts +0 -1
- package/dist/components/primitives/hook-config/hook-config.d.ts +0 -27
- package/dist/components/primitives/hook-config/index.d.ts +0 -1
- package/dist/components/primitives/hook-event-log/hook-event-log.d.ts +0 -27
- package/dist/components/primitives/hook-event-log/index.d.ts +0 -1
- package/dist/components/primitives/intent-selector/index.d.ts +0 -1
- package/dist/components/primitives/intent-selector/intent-selector.d.ts +0 -22
- package/dist/components/primitives/lane-board/index.d.ts +0 -1
- package/dist/components/primitives/lane-board/lane-board.d.ts +0 -26
- package/dist/components/primitives/mcp-server-card/index.d.ts +0 -1
- package/dist/components/primitives/mcp-server-card/mcp-server-card.d.ts +0 -32
- package/dist/components/primitives/memory-editor/index.d.ts +0 -1
- package/dist/components/primitives/memory-editor/memory-editor.d.ts +0 -29
- package/dist/components/primitives/mention-menu/index.d.ts +0 -1
- package/dist/components/primitives/mention-menu/mention-menu.d.ts +0 -44
- package/dist/components/primitives/model-card/index.d.ts +0 -1
- package/dist/components/primitives/model-card/model-card.d.ts +0 -72
- package/dist/components/primitives/model-selector/index.d.ts +0 -1
- package/dist/components/primitives/model-selector/model-selector.d.ts +0 -21
- package/dist/components/primitives/permission-matrix/index.d.ts +0 -1
- package/dist/components/primitives/permission-matrix/permission-matrix.d.ts +0 -43
- package/dist/components/primitives/progress-checklist/index.d.ts +0 -1
- package/dist/components/primitives/progress-checklist/progress-checklist.d.ts +0 -18
- package/dist/components/primitives/project-switcher/index.d.ts +0 -1
- package/dist/components/primitives/project-switcher/project-switcher.d.ts +0 -32
- package/dist/components/primitives/quick-action-chips/index.d.ts +0 -1
- package/dist/components/primitives/quick-action-chips/quick-action-chips.d.ts +0 -22
- package/dist/components/primitives/recent-folders-list/index.d.ts +0 -1
- package/dist/components/primitives/recent-folders-list/recent-folders-list.d.ts +0 -21
- package/dist/components/primitives/rule-card/index.d.ts +0 -1
- package/dist/components/primitives/rule-card/rule-card.d.ts +0 -15
- package/dist/components/primitives/run-stats/index.d.ts +0 -1
- package/dist/components/primitives/run-stats/run-stats.d.ts +0 -16
- package/dist/components/primitives/run-status-pill/index.d.ts +0 -1
- package/dist/components/primitives/run-status-pill/run-status-pill.d.ts +0 -13
- package/dist/components/primitives/running-tasks-panel/index.d.ts +0 -1
- package/dist/components/primitives/running-tasks-panel/running-tasks-panel.d.ts +0 -20
- package/dist/components/primitives/session-list-item/index.d.ts +0 -1
- package/dist/components/primitives/session-list-item/session-list-item.d.ts +0 -35
- package/dist/components/primitives/session-timeline/index.d.ts +0 -1
- package/dist/components/primitives/session-timeline/session-timeline.d.ts +0 -32
- package/dist/components/primitives/skill-card/index.d.ts +0 -1
- package/dist/components/primitives/skill-card/skill-card.d.ts +0 -28
- package/dist/components/primitives/slide/alerts.d.ts +0 -31
- package/dist/components/primitives/slide/frontmatter.d.ts +0 -23
- package/dist/components/primitives/slide/index.d.ts +0 -16
- package/dist/components/primitives/slide/json-schema.d.ts +0 -9
- package/dist/components/primitives/slide/marpit-bg.d.ts +0 -36
- package/dist/components/primitives/slide/parse.d.ts +0 -59
- package/dist/components/primitives/slide/plugin.d.ts +0 -79
- package/dist/components/primitives/slide/plugins/emoji/index.d.ts +0 -8
- package/dist/components/primitives/slide/plugins/emoji/map.d.ts +0 -15
- package/dist/components/primitives/slide/plugins/math/index.d.ts +0 -6
- package/dist/components/primitives/slide/plugins/mermaid/index.d.ts +0 -48
- package/dist/components/primitives/slide/plugins/shiki/index.d.ts +0 -11
- package/dist/components/primitives/slide/sanitize.d.ts +0 -33
- package/dist/components/primitives/slide/schema.d.ts +0 -109
- package/dist/components/primitives/slide/slide.d.ts +0 -53
- package/dist/components/primitives/slide/themes/index.d.ts +0 -9
- package/dist/components/primitives/slide/use-slide-fit.d.ts +0 -21
- package/dist/components/primitives/slide/validate.d.ts +0 -33
- package/dist/components/primitives/steps-rail/index.d.ts +0 -1
- package/dist/components/primitives/steps-rail/steps-rail.d.ts +0 -24
- package/dist/components/primitives/sub-agent-dispatch/index.d.ts +0 -1
- package/dist/components/primitives/sub-agent-dispatch/sub-agent-dispatch.d.ts +0 -30
- package/dist/components/primitives/system-prompt-editor/index.d.ts +0 -1
- package/dist/components/primitives/system-prompt-editor/system-prompt-editor.d.ts +0 -25
- package/dist/components/primitives/task-plan/index.d.ts +0 -1
- package/dist/components/primitives/task-plan/task-plan.d.ts +0 -36
- package/dist/components/primitives/terminal-panel/index.d.ts +0 -1
- package/dist/components/primitives/terminal-panel/terminal-panel.d.ts +0 -32
- package/dist/components/primitives/thinking-level-selector/index.d.ts +0 -1
- package/dist/components/primitives/thinking-level-selector/thinking-level-selector.d.ts +0 -24
- package/dist/components/primitives/token-usage-chart/index.d.ts +0 -2
- package/dist/components/primitives/token-usage-chart/token-usage-chart.d.ts +0 -44
- package/dist/components/primitives/token-usage-chart/usage-metrics.d.ts +0 -23
- package/dist/components/primitives/tool-call/index.d.ts +0 -1
- package/dist/components/primitives/tool-call/tool-call.d.ts +0 -30
- package/dist/components/primitives/tool-call-card/index.d.ts +0 -1
- package/dist/components/primitives/tool-call-card/tool-call-card.d.ts +0 -30
- package/dist/components/primitives/tool-result/index.d.ts +0 -1
- package/dist/components/primitives/tool-result/tool-result.d.ts +0 -19
- package/dist/components/primitives/tools-list/index.d.ts +0 -1
- package/dist/components/primitives/tools-list/tools-list.d.ts +0 -32
- package/dist/components/primitives/whiteboard/index.d.ts +0 -2
- package/dist/components/primitives/whiteboard/render/freedraw.d.ts +0 -2
- package/dist/components/primitives/whiteboard/render/line.d.ts +0 -4
- package/dist/components/primitives/whiteboard/render/rough-paths.d.ts +0 -16
- package/dist/components/primitives/whiteboard/render/scene.d.ts +0 -3
- package/dist/components/primitives/whiteboard/render/shape.d.ts +0 -5
- package/dist/components/primitives/whiteboard/render/style.d.ts +0 -24
- package/dist/components/primitives/whiteboard/render/text.d.ts +0 -2
- package/dist/components/primitives/whiteboard/schema.d.ts +0 -596
- package/dist/components/primitives/whiteboard/seed.d.ts +0 -22
- package/dist/components/primitives/whiteboard/validate.d.ts +0 -26
- package/dist/components/primitives/whiteboard/viewport/use-pointer-pan.d.ts +0 -11
- package/dist/components/primitives/whiteboard/viewport/use-viewport.d.ts +0 -33
- package/dist/components/primitives/whiteboard/whiteboard.d.ts +0 -21
- package/dist/components.css +0 -2
- package/dist/composites/account-menu/index.js +0 -6
- package/dist/composites/account-menu/index.js.map +0 -1
- package/dist/composites/agent-composer/index.js +0 -8
- package/dist/composites/agent-composer/index.js.map +0 -1
- package/dist/composites/agent-editor/index.js +0 -11
- package/dist/composites/agent-editor/index.js.map +0 -1
- package/dist/composites/agent-stream/index.js +0 -24
- package/dist/composites/agent-stream/index.js.map +0 -1
- package/dist/composites/agent-timeline/index.js +0 -5
- package/dist/composites/agent-timeline/index.js.map +0 -1
- package/dist/composites/agent-tool-renderer/index.js +0 -17
- package/dist/composites/agent-tool-renderer/index.js.map +0 -1
- package/dist/composites/approval-card/index.js +0 -5
- package/dist/composites/approval-card/index.js.map +0 -1
- package/dist/composites/chat-composer/index.js +0 -6
- package/dist/composites/chat-composer/index.js.map +0 -1
- package/dist/composites/chat-message/index.js +0 -20
- package/dist/composites/chat-message/index.js.map +0 -1
- package/dist/composites/choice-prompt/index.js +0 -11
- package/dist/composites/choice-prompt/index.js.map +0 -1
- package/dist/composites/code-block/index.js +0 -5
- package/dist/composites/code-block/index.js.map +0 -1
- package/dist/composites/command-palette/index.js +0 -6
- package/dist/composites/command-palette/index.js.map +0 -1
- package/dist/composites/confirm-dialog/index.js +0 -8
- package/dist/composites/confirm-dialog/index.js.map +0 -1
- package/dist/composites/confirm-prompt/index.js +0 -7
- package/dist/composites/confirm-prompt/index.js.map +0 -1
- package/dist/composites/cron-jobs-list/index.js +0 -5
- package/dist/composites/cron-jobs-list/index.js.map +0 -1
- package/dist/composites/data-table/index.js +0 -11
- package/dist/composites/data-table/index.js.map +0 -1
- package/dist/composites/deployment-row/index.js +0 -5
- package/dist/composites/deployment-row/index.js.map +0 -1
- package/dist/composites/domain-config/index.js +0 -8
- package/dist/composites/domain-config/index.js.map +0 -1
- package/dist/composites/env-var-editor/index.js +0 -9
- package/dist/composites/env-var-editor/index.js.map +0 -1
- package/dist/composites/mcp-server-list/index.js +0 -6
- package/dist/composites/mcp-server-list/index.js.map +0 -1
- package/dist/composites/metric-card/index.js +0 -5
- package/dist/composites/metric-card/index.js.map +0 -1
- package/dist/composites/multi-select-prompt/index.js +0 -11
- package/dist/composites/multi-select-prompt/index.js.map +0 -1
- package/dist/composites/page-shell/index.js +0 -8
- package/dist/composites/page-shell/index.js.map +0 -1
- package/dist/composites/permission-modal/index.js +0 -7
- package/dist/composites/permission-modal/index.js.map +0 -1
- package/dist/composites/preview-env-card/index.js +0 -6
- package/dist/composites/preview-env-card/index.js.map +0 -1
- package/dist/composites/preview-panel/index.js +0 -5
- package/dist/composites/preview-panel/index.js.map +0 -1
- package/dist/composites/project-card/index.js +0 -6
- package/dist/composites/project-card/index.js.map +0 -1
- package/dist/composites/rollback-ui/index.js +0 -7
- package/dist/composites/rollback-ui/index.js.map +0 -1
- package/dist/composites/rule-editor/index.js +0 -12
- package/dist/composites/rule-editor/index.js.map +0 -1
- package/dist/composites/skill-editor/index.js +0 -12
- package/dist/composites/skill-editor/index.js.map +0 -1
- package/dist/composites/skills-list/index.js +0 -6
- package/dist/composites/skills-list/index.js.map +0 -1
- package/dist/composites/stability-bundle-viewer/index.js +0 -5
- package/dist/composites/stability-bundle-viewer/index.js.map +0 -1
- package/dist/composites/status-indicator/index.js +0 -4
- package/dist/composites/status-indicator/index.js.map +0 -1
- package/dist/composites/task-header/index.js +0 -5
- package/dist/composites/task-header/index.js.map +0 -1
- package/dist/composites/text-prompt/index.js +0 -10
- package/dist/composites/text-prompt/index.js.map +0 -1
- package/dist/composites/usage-meter/index.js +0 -5
- package/dist/composites/usage-meter/index.js.map +0 -1
- package/dist/fonts/LICENSE-GEIST.txt +0 -92
- package/dist/fonts/geist-400.woff2 +0 -0
- package/dist/fonts/geist-500.woff2 +0 -0
- package/dist/fonts/geist-600.woff2 +0 -0
- package/dist/fonts/geist-mono-400.woff2 +0 -0
- package/dist/fonts/geist-mono-500.woff2 +0 -0
- package/dist/fonts/geist-mono-600.woff2 +0 -0
- package/dist/fonts-cdn.css +0 -28
- package/dist/fonts.css +0 -75
- package/dist/index.js.map +0 -1
- package/dist/lib/markdown/code-block.d.ts +0 -14
- package/dist/lib/markdown/inline-code.d.ts +0 -10
- package/dist/lib/markdown/math.d.ts +0 -12
- package/dist/lib/markdown/mermaid.d.ts +0 -6
- package/dist/lib/markdown/parser.d.ts +0 -47
- package/dist/lib/markdown/streaming-preprocess.d.ts +0 -39
- package/dist/lib/prompt.d.ts +0 -40
- package/dist/lib/sdk-tools-adapters/index.d.ts +0 -1
- package/dist/lib/sdk-tools-adapters/index.js +0 -3
- package/dist/lib/sdk-tools-adapters/index.js.map +0 -1
- package/dist/lib/sdk-tools-adapters/sdk-tools-adapters.d.ts +0 -60
- package/dist/preset-v3-legacy.d.ts +0 -32
- package/dist/preset-v3-legacy.js.map +0 -1
- package/dist/preset.css +0 -27
- package/dist/primitives/action-bar/index.js +0 -4
- package/dist/primitives/action-bar/index.js.map +0 -1
- package/dist/primitives/agent-error-card/index.js +0 -5
- package/dist/primitives/agent-error-card/index.js.map +0 -1
- package/dist/primitives/agent-event/index.js +0 -5
- package/dist/primitives/agent-event/index.js.map +0 -1
- package/dist/primitives/agent-handoff/index.js +0 -4
- package/dist/primitives/agent-handoff/index.js.map +0 -1
- package/dist/primitives/agent-profile/index.js +0 -4
- package/dist/primitives/agent-profile/index.js.map +0 -1
- package/dist/primitives/agent-starting-state/index.js +0 -5
- package/dist/primitives/agent-starting-state/index.js.map +0 -1
- package/dist/primitives/agent-streaming/index.js +0 -5
- package/dist/primitives/agent-streaming/index.js.map +0 -1
- package/dist/primitives/alert/index.js +0 -4
- package/dist/primitives/alert/index.js.map +0 -1
- package/dist/primitives/artifact-preview/index.js +0 -4
- package/dist/primitives/artifact-preview/index.js.map +0 -1
- package/dist/primitives/attachment-chip/index.js +0 -4
- package/dist/primitives/attachment-chip/index.js.map +0 -1
- package/dist/primitives/audit-log-entry/index.js +0 -4
- package/dist/primitives/audit-log-entry/index.js.map +0 -1
- package/dist/primitives/auto-compact-notice/index.js +0 -5
- package/dist/primitives/auto-compact-notice/index.js.map +0 -1
- package/dist/primitives/avatar/index.js +0 -4
- package/dist/primitives/avatar/index.js.map +0 -1
- package/dist/primitives/badge/index.js +0 -4
- package/dist/primitives/badge/index.js.map +0 -1
- package/dist/primitives/branch-indicator/index.js +0 -4
- package/dist/primitives/branch-indicator/index.js.map +0 -1
- package/dist/primitives/browser-controls/index.js +0 -4
- package/dist/primitives/browser-controls/index.js.map +0 -1
- package/dist/primitives/build-log-stream/index.js +0 -7
- package/dist/primitives/build-log-stream/index.js.map +0 -1
- package/dist/primitives/button/index.js +0 -4
- package/dist/primitives/button/index.js.map +0 -1
- package/dist/primitives/capability-indicator/index.js +0 -4
- package/dist/primitives/capability-indicator/index.js.map +0 -1
- package/dist/primitives/card/index.js +0 -5
- package/dist/primitives/card/index.js.map +0 -1
- package/dist/primitives/channel-card/index.js +0 -4
- package/dist/primitives/channel-card/index.js.map +0 -1
- package/dist/primitives/chat-thread/index.js +0 -5
- package/dist/primitives/chat-thread/index.js.map +0 -1
- package/dist/primitives/checkbox/index.js +0 -4
- package/dist/primitives/checkbox/index.js.map +0 -1
- package/dist/primitives/context-card/index.js +0 -4
- package/dist/primitives/context-card/index.js.map +0 -1
- package/dist/primitives/context-window-bar/index.js +0 -4
- package/dist/primitives/context-window-bar/index.js.map +0 -1
- package/dist/primitives/copy-button/index.js +0 -5
- package/dist/primitives/copy-button/index.js.map +0 -1
- package/dist/primitives/cost-meter/index.js +0 -4
- package/dist/primitives/cost-meter/index.js.map +0 -1
- package/dist/primitives/created-files-card/index.js +0 -4
- package/dist/primitives/created-files-card/index.js.map +0 -1
- package/dist/primitives/cron-job-card/index.js +0 -4
- package/dist/primitives/cron-job-card/index.js.map +0 -1
- package/dist/primitives/danger-zone/index.js +0 -4
- package/dist/primitives/danger-zone/index.js.map +0 -1
- package/dist/primitives/dialog/index.js +0 -4
- package/dist/primitives/dialog/index.js.map +0 -1
- package/dist/primitives/diff-viewer/index.js +0 -4
- package/dist/primitives/diff-viewer/index.js.map +0 -1
- package/dist/primitives/dropdown-menu/index.js +0 -4
- package/dist/primitives/dropdown-menu/index.js.map +0 -1
- package/dist/primitives/empty-state/index.js +0 -4
- package/dist/primitives/empty-state/index.js.map +0 -1
- package/dist/primitives/export-chat-dialog/index.js +0 -5
- package/dist/primitives/export-chat-dialog/index.js.map +0 -1
- package/dist/primitives/folder-context-card/index.js +0 -4
- package/dist/primitives/folder-context-card/index.js.map +0 -1
- package/dist/primitives/folder-selector/index.js +0 -4
- package/dist/primitives/folder-selector/index.js.map +0 -1
- package/dist/primitives/form-field/index.js +0 -5
- package/dist/primitives/form-field/index.js.map +0 -1
- package/dist/primitives/gateway-status-indicator/index.js +0 -4
- package/dist/primitives/gateway-status-indicator/index.js.map +0 -1
- package/dist/primitives/hook-config/index.js +0 -5
- package/dist/primitives/hook-config/index.js.map +0 -1
- package/dist/primitives/hook-event-log/index.js +0 -4
- package/dist/primitives/hook-event-log/index.js.map +0 -1
- package/dist/primitives/input/index.js +0 -4
- package/dist/primitives/input/index.js.map +0 -1
- package/dist/primitives/intent-selector/index.js +0 -4
- package/dist/primitives/intent-selector/index.js.map +0 -1
- package/dist/primitives/label/index.js +0 -4
- package/dist/primitives/label/index.js.map +0 -1
- package/dist/primitives/lane-board/index.js +0 -4
- package/dist/primitives/lane-board/index.js.map +0 -1
- package/dist/primitives/login-split/index.js +0 -4
- package/dist/primitives/login-split/index.js.map +0 -1
- package/dist/primitives/mcp-server-card/index.js +0 -4
- package/dist/primitives/mcp-server-card/index.js.map +0 -1
- package/dist/primitives/memory-editor/index.js +0 -4
- package/dist/primitives/memory-editor/index.js.map +0 -1
- package/dist/primitives/mention-menu/index.js +0 -5
- package/dist/primitives/mention-menu/index.js.map +0 -1
- package/dist/primitives/metrics-panel/index.js +0 -4
- package/dist/primitives/metrics-panel/index.js.map +0 -1
- package/dist/primitives/model-card/index.js +0 -4
- package/dist/primitives/model-card/index.js.map +0 -1
- package/dist/primitives/model-selector/index.js +0 -4
- package/dist/primitives/model-selector/index.js.map +0 -1
- package/dist/primitives/pagination/index.js +0 -4
- package/dist/primitives/pagination/index.js.map +0 -1
- package/dist/primitives/permission-matrix/index.js +0 -5
- package/dist/primitives/permission-matrix/index.js.map +0 -1
- package/dist/primitives/pin-input/index.js +0 -5
- package/dist/primitives/pin-input/index.js.map +0 -1
- package/dist/primitives/plan-badge/index.js +0 -4
- package/dist/primitives/plan-badge/index.js.map +0 -1
- package/dist/primitives/progress/index.js +0 -4
- package/dist/primitives/progress/index.js.map +0 -1
- package/dist/primitives/progress-checklist/index.js +0 -4
- package/dist/primitives/progress-checklist/index.js.map +0 -1
- package/dist/primitives/project-switcher/index.js +0 -4
- package/dist/primitives/project-switcher/index.js.map +0 -1
- package/dist/primitives/quick-action-chips/index.js +0 -4
- package/dist/primitives/quick-action-chips/index.js.map +0 -1
- package/dist/primitives/radio-group/index.js +0 -4
- package/dist/primitives/radio-group/index.js.map +0 -1
- package/dist/primitives/recent-folders-list/index.js +0 -4
- package/dist/primitives/recent-folders-list/index.js.map +0 -1
- package/dist/primitives/rule-card/index.js +0 -4
- package/dist/primitives/rule-card/index.js.map +0 -1
- package/dist/primitives/run-stats/index.js +0 -4
- package/dist/primitives/run-stats/index.js.map +0 -1
- package/dist/primitives/run-status-pill/index.js +0 -4
- package/dist/primitives/run-status-pill/index.js.map +0 -1
- package/dist/primitives/running-tasks-panel/index.js +0 -4
- package/dist/primitives/running-tasks-panel/index.js.map +0 -1
- package/dist/primitives/scroll-area/index.js +0 -5
- package/dist/primitives/scroll-area/index.js.map +0 -1
- package/dist/primitives/select/index.js +0 -4
- package/dist/primitives/select/index.js.map +0 -1
- package/dist/primitives/session-list-item/index.js +0 -4
- package/dist/primitives/session-list-item/index.js.map +0 -1
- package/dist/primitives/session-timeline/index.js +0 -4
- package/dist/primitives/session-timeline/index.js.map +0 -1
- package/dist/primitives/sheet/index.js +0 -4
- package/dist/primitives/sheet/index.js.map +0 -1
- package/dist/primitives/sidebar/index.js +0 -4
- package/dist/primitives/sidebar/index.js.map +0 -1
- package/dist/primitives/skeleton/index.js +0 -5
- package/dist/primitives/skeleton/index.js.map +0 -1
- package/dist/primitives/skill-card/index.js +0 -4
- package/dist/primitives/skill-card/index.js.map +0 -1
- package/dist/primitives/social-auth-row/index.js +0 -4
- package/dist/primitives/social-auth-row/index.js.map +0 -1
- package/dist/primitives/stat-tile/index.js +0 -4
- package/dist/primitives/stat-tile/index.js.map +0 -1
- package/dist/primitives/status-dot/index.js +0 -6
- package/dist/primitives/status-dot/index.js.map +0 -1
- package/dist/primitives/steps-rail/index.js +0 -4
- package/dist/primitives/steps-rail/index.js.map +0 -1
- package/dist/primitives/sub-agent-dispatch/index.js +0 -4
- package/dist/primitives/sub-agent-dispatch/index.js.map +0 -1
- package/dist/primitives/switch/index.js +0 -4
- package/dist/primitives/switch/index.js.map +0 -1
- package/dist/primitives/system-prompt-editor/index.js +0 -5
- package/dist/primitives/system-prompt-editor/index.js.map +0 -1
- package/dist/primitives/table/index.js +0 -5
- package/dist/primitives/table/index.js.map +0 -1
- package/dist/primitives/tabs/index.js +0 -4
- package/dist/primitives/tabs/index.js.map +0 -1
- package/dist/primitives/task-plan/index.js +0 -4
- package/dist/primitives/task-plan/index.js.map +0 -1
- package/dist/primitives/terminal-panel/index.js +0 -5
- package/dist/primitives/terminal-panel/index.js.map +0 -1
- package/dist/primitives/textarea/index.js +0 -4
- package/dist/primitives/textarea/index.js.map +0 -1
- package/dist/primitives/thinking-level-selector/index.js +0 -5
- package/dist/primitives/thinking-level-selector/index.js.map +0 -1
- package/dist/primitives/timestamp/index.js +0 -6
- package/dist/primitives/timestamp/index.js.map +0 -1
- package/dist/primitives/toast/index.js +0 -5
- package/dist/primitives/toast/index.js.map +0 -1
- package/dist/primitives/token-usage-chart/index.js +0 -4
- package/dist/primitives/token-usage-chart/index.js.map +0 -1
- package/dist/primitives/tool-call/index.js +0 -5
- package/dist/primitives/tool-call/index.js.map +0 -1
- package/dist/primitives/tool-call-card/index.js +0 -5
- package/dist/primitives/tool-call-card/index.js.map +0 -1
- package/dist/primitives/tool-result/index.js +0 -4
- package/dist/primitives/tool-result/index.js.map +0 -1
- package/dist/primitives/tools-list/index.js +0 -4
- package/dist/primitives/tools-list/index.js.map +0 -1
- package/dist/primitives/tooltip/index.js +0 -4
- package/dist/primitives/tooltip/index.js.map +0 -1
- package/dist/primitives/topnav/index.js +0 -4
- package/dist/primitives/topnav/index.js.map +0 -1
- package/dist/primitives/update-banner/index.js +0 -4
- package/dist/primitives/update-banner/index.js.map +0 -1
- package/dist/screens/theo-code-shell.d.ts +0 -9
- package/dist/screens/theo-code-shell.data.d.ts +0 -147
- package/dist/slide/index.js +0 -4
- package/dist/slide/index.js.map +0 -1
- package/dist/slide/plugins/emoji/index.js +0 -157
- package/dist/slide/plugins/emoji/index.js.map +0 -1
- package/dist/slide/plugins/math/index.js +0 -145
- package/dist/slide/plugins/math/index.js.map +0 -1
- package/dist/slide/plugins/mermaid/index.js +0 -218
- package/dist/slide/plugins/mermaid/index.js.map +0 -1
- package/dist/slide/plugins/shiki/index.js +0 -87
- package/dist/slide/plugins/shiki/index.js.map +0 -1
- package/dist/slide/themes/default.css +0 -256
- package/dist/slide/themes/layouts.css +0 -143
- package/dist/slide/themes/violet-forge.css +0 -256
- package/dist/slide-deck/index.css +0 -52
- package/dist/slide-deck/index.css.map +0 -1
- package/dist/slide-deck/index.js +0 -1122
- package/dist/slide-deck/index.js.map +0 -1
- package/dist/styles-v3-legacy.css +0 -88
- package/dist/styles.css +0 -137
- package/dist/themes/anthropic-style.d.ts +0 -11
- package/dist/themes/aurora-terminal.d.ts +0 -9
- package/dist/themes/classic-paper.d.ts +0 -17
- package/dist/themes/color-value-pattern.d.ts +0 -22
- package/dist/themes/color.d.ts +0 -62
- package/dist/themes/define.d.ts +0 -65
- package/dist/themes/density.d.ts +0 -17
- package/dist/themes/dracula.d.ts +0 -14
- package/dist/themes/github-dark.d.ts +0 -11
- package/dist/themes/index.d.ts +0 -26
- package/dist/themes/linear-glass.d.ts +0 -11
- package/dist/themes/one-dark.d.ts +0 -11
- package/dist/themes/openai-style.d.ts +0 -10
- package/dist/themes/schema.d.ts +0 -112
- package/dist/themes/theme-provider.d.ts +0 -82
- package/dist/themes/theme-script.d.ts +0 -48
- package/dist/themes/theme-switcher.d.ts +0 -17
- package/dist/themes/types.d.ts +0 -88
- package/dist/themes/vercel-mono.d.ts +0 -11
- package/dist/themes/violet-forge.d.ts +0 -12
- package/dist/theo-ui-provider.d.ts +0 -50
- package/dist/tokens-v4.css +0 -223
- package/dist/tokens.css +0 -315
- package/dist/types/agent.d.ts +0 -19
- package/dist/types/chat.d.ts +0 -173
- package/dist/types/mode.d.ts +0 -16
- package/dist/types/permission.d.ts +0 -8
- package/dist/types/rule.d.ts +0 -28
- package/dist/vite-plugin.d.ts +0 -25
- package/dist/vite-plugin.js +0 -76
- package/dist/vite-plugin.js.map +0 -1
- package/dist/whiteboard/index.js +0 -741
- package/dist/whiteboard/index.js.map +0 -1
- package/llms.txt +0 -273
- package/registry/index.json +0 -910
- package/registry/r/account-menu.json +0 -24
- package/registry/r/action-bar.json +0 -22
- package/registry/r/agent-composer.json +0 -22
- package/registry/r/agent-editor.json +0 -27
- package/registry/r/agent-error-card.json +0 -22
- package/registry/r/agent-event.json +0 -24
- package/registry/r/agent-handoff.json +0 -22
- package/registry/r/agent-profile.json +0 -23
- package/registry/r/agent-starting-state.json +0 -22
- package/registry/r/agent-stream.json +0 -27
- package/registry/r/agent-streaming.json +0 -22
- package/registry/r/agent-timeline.json +0 -22
- package/registry/r/agent-tool-renderer.json +0 -40
- package/registry/r/agent-types.json +0 -15
- package/registry/r/alert.json +0 -22
- package/registry/r/approval-card.json +0 -25
- package/registry/r/artifact-preview.json +0 -22
- package/registry/r/attachment-chip.json +0 -24
- package/registry/r/audit-log-entry.json +0 -23
- package/registry/r/auto-compact-notice.json +0 -22
- package/registry/r/avatar.json +0 -23
- package/registry/r/badge.json +0 -22
- package/registry/r/browser-controls.json +0 -22
- package/registry/r/build-log-stream.json +0 -20
- package/registry/r/button.json +0 -23
- package/registry/r/capability-indicator.json +0 -23
- package/registry/r/card.json +0 -22
- package/registry/r/chat-composer.json +0 -23
- package/registry/r/chat-message.json +0 -124
- package/registry/r/chat-thread.json +0 -20
- package/registry/r/chat-types.json +0 -15
- package/registry/r/checkbox.json +0 -24
- package/registry/r/choice-prompt.json +0 -25
- package/registry/r/cn.json +0 -19
- package/registry/r/code-block.json +0 -21
- package/registry/r/command-palette.json +0 -25
- package/registry/r/confirm-dialog.json +0 -25
- package/registry/r/confirm-prompt.json +0 -21
- package/registry/r/context-card.json +0 -23
- package/registry/r/context-window-bar.json +0 -20
- package/registry/r/copy-button.json +0 -22
- package/registry/r/cost-meter.json +0 -22
- package/registry/r/created-files-card.json +0 -23
- package/registry/r/cron-job-card.json +0 -22
- package/registry/r/cron-jobs-list.json +0 -23
- package/registry/r/danger-zone.json +0 -20
- package/registry/r/data-table.json +0 -27
- package/registry/r/deployment-row.json +0 -23
- package/registry/r/dialog.json +0 -23
- package/registry/r/diff-viewer.json +0 -20
- package/registry/r/domain-config.json +0 -25
- package/registry/r/dropdown-menu.json +0 -23
- package/registry/r/empty-state.json +0 -20
- package/registry/r/env-var-editor.json +0 -26
- package/registry/r/env.json +0 -15
- package/registry/r/folder-context-card.json +0 -23
- package/registry/r/folder-selector.json +0 -22
- package/registry/r/form-field.json +0 -23
- package/registry/r/hook-config.json +0 -22
- package/registry/r/hook-event-log.json +0 -22
- package/registry/r/input.json +0 -22
- package/registry/r/intent-selector.json +0 -24
- package/registry/r/label.json +0 -22
- package/registry/r/lane-board.json +0 -20
- package/registry/r/live-region-context.json +0 -16
- package/registry/r/login-split.json +0 -20
- package/registry/r/mcp-server-card.json +0 -22
- package/registry/r/mcp-server-list.json +0 -23
- package/registry/r/memory-editor.json +0 -23
- package/registry/r/mention-menu.json +0 -23
- package/registry/r/metric-card.json +0 -23
- package/registry/r/metrics-panel.json +0 -22
- package/registry/r/mode-types.json +0 -15
- package/registry/r/model-card.json +0 -23
- package/registry/r/model-selector.json +0 -23
- package/registry/r/multi-select-prompt.json +0 -25
- package/registry/r/page-shell.json +0 -25
- package/registry/r/pagination.json +0 -22
- package/registry/r/permission-matrix.json +0 -22
- package/registry/r/permission-modal.json +0 -24
- package/registry/r/permission-types.json +0 -15
- package/registry/r/pin-input.json +0 -20
- package/registry/r/plan-badge.json +0 -20
- package/registry/r/preview-env-card.json +0 -25
- package/registry/r/preview-panel.json +0 -21
- package/registry/r/progress-checklist.json +0 -23
- package/registry/r/progress.json +0 -20
- package/registry/r/project-card.json +0 -25
- package/registry/r/project-switcher.json +0 -22
- package/registry/r/prompt.json +0 -15
- package/registry/r/quick-action-chips.json +0 -21
- package/registry/r/radio-group.json +0 -23
- package/registry/r/recent-folders-list.json +0 -22
- package/registry/r/rollback-ui.json +0 -24
- package/registry/r/rule-card.json +0 -23
- package/registry/r/rule-editor.json +0 -28
- package/registry/r/rule-types.json +0 -18
- package/registry/r/run-stats.json +0 -22
- package/registry/r/running-tasks-panel.json +0 -22
- package/registry/r/safe-href.json +0 -16
- package/registry/r/scroll-area.json +0 -22
- package/registry/r/select.json +0 -24
- package/registry/r/session-list-item.json +0 -20
- package/registry/r/session-timeline.json +0 -22
- package/registry/r/sheet.json +0 -24
- package/registry/r/sidebar.json +0 -19
- package/registry/r/skeleton.json +0 -19
- package/registry/r/skill-card.json +0 -24
- package/registry/r/skill-editor.json +0 -28
- package/registry/r/skills-list.json +0 -23
- package/registry/r/slide-deck.json +0 -130
- package/registry/r/slide-plugin-emoji.json +0 -28
- package/registry/r/slide-plugin-math.json +0 -24
- package/registry/r/slide-plugin-mermaid.json +0 -23
- package/registry/r/slide-plugin-shiki.json +0 -23
- package/registry/r/slide.json +0 -123
- package/registry/r/social-auth-row.json +0 -21
- package/registry/r/stat-tile.json +0 -22
- package/registry/r/status-dot.json +0 -21
- package/registry/r/status-indicator.json +0 -20
- package/registry/r/steps-rail.json +0 -20
- package/registry/r/sub-agent-dispatch.json +0 -22
- package/registry/r/switch.json +0 -23
- package/registry/r/system-prompt-editor.json +0 -22
- package/registry/r/table.json +0 -22
- package/registry/r/tabs.json +0 -22
- package/registry/r/tailwind-preset.json +0 -19
- package/registry/r/task-header.json +0 -24
- package/registry/r/task-plan.json +0 -22
- package/registry/r/task-types.json +0 -15
- package/registry/r/terminal-panel.json +0 -22
- package/registry/r/text-prompt.json +0 -24
- package/registry/r/textarea.json +0 -22
- package/registry/r/theme-provider.json +0 -60
- package/registry/r/theme-script.json +0 -18
- package/registry/r/theo-ui-provider.json +0 -20
- package/registry/r/timestamp.json +0 -21
- package/registry/r/toast.json +0 -30
- package/registry/r/token-usage-chart.json +0 -20
- package/registry/r/tokens.json +0 -21
- package/registry/r/tool-call-card.json +0 -23
- package/registry/r/tool-call.json +0 -22
- package/registry/r/tool-result.json +0 -20
- package/registry/r/tools-list.json +0 -23
- package/registry/r/tooltip.json +0 -22
- package/registry/r/topnav.json +0 -22
- package/registry/r/types.json +0 -15
- package/registry/r/usage-meter.json +0 -21
- package/registry/r/whiteboard.json +0 -101
package/dist/chunk-FOE3XXBJ.js
DELETED
|
@@ -1,965 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { safeHref } from './chunk-GDMCDW66.js';
|
|
3
|
-
import { AgentToolRenderer } from './chunk-2NTEJRPA.js';
|
|
4
|
-
import { Button } from './chunk-25KBUQEQ.js';
|
|
5
|
-
import { cn } from './chunk-EWDN56AS.js';
|
|
6
|
-
import { memo, forwardRef, createContext, useState, useEffect, createElement, useCallback, useMemo, useContext } from 'react';
|
|
7
|
-
import { BrainCircuitIcon, ImageIcon, FileIcon, ExternalLinkIcon, FileTextIcon, CodeIcon, ChevronLeftIcon, ChevronRightIcon, CheckIcon, CopyIcon } from 'lucide-react';
|
|
8
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
// src/types/chat.ts
|
|
11
|
-
function isTextUIPart(part) {
|
|
12
|
-
return part.type === "text";
|
|
13
|
-
}
|
|
14
|
-
function isReasoningUIPart(part) {
|
|
15
|
-
return part.type === "reasoning";
|
|
16
|
-
}
|
|
17
|
-
function isFileUIPart(part) {
|
|
18
|
-
return part.type === "file";
|
|
19
|
-
}
|
|
20
|
-
function isReasoningFileUIPart(part) {
|
|
21
|
-
return part.type === "reasoning-file";
|
|
22
|
-
}
|
|
23
|
-
function isSourceUrlUIPart(part) {
|
|
24
|
-
return part.type === "source-url";
|
|
25
|
-
}
|
|
26
|
-
function isSourceDocumentUIPart(part) {
|
|
27
|
-
return part.type === "source-document";
|
|
28
|
-
}
|
|
29
|
-
function isStepStartUIPart(part) {
|
|
30
|
-
return part.type === "step-start";
|
|
31
|
-
}
|
|
32
|
-
function isCustomContentUIPart(part) {
|
|
33
|
-
return part.type === "custom";
|
|
34
|
-
}
|
|
35
|
-
function isToolUIPart(part) {
|
|
36
|
-
return part.type === "dynamic-tool" || part.type.startsWith("tool-");
|
|
37
|
-
}
|
|
38
|
-
function isDataUIPart(part) {
|
|
39
|
-
return part.type.startsWith("data-");
|
|
40
|
-
}
|
|
41
|
-
function deriveDataName(part) {
|
|
42
|
-
return part.type.slice("data-".length);
|
|
43
|
-
}
|
|
44
|
-
function DataPart({ part, renderers }) {
|
|
45
|
-
const name = deriveDataName(part);
|
|
46
|
-
const renderer = renderers?.[part.type] ?? renderers?.[name];
|
|
47
|
-
if (renderer) return renderer(part.data, part);
|
|
48
|
-
return /* @__PURE__ */ jsxs(
|
|
49
|
-
"details",
|
|
50
|
-
{
|
|
51
|
-
className: cn("my-2 rounded-md border border-border bg-muted/20 px-3 py-1.5 text-body-sm"),
|
|
52
|
-
"data-theo-data": name,
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ jsxs("summary", { className: "flex cursor-pointer items-center gap-1.5 font-mono text-label-caps text-muted-foreground uppercase tracking-wider", children: [
|
|
55
|
-
/* @__PURE__ */ jsx(CodeIcon, { className: "size-3", "aria-hidden": "true" }),
|
|
56
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
57
|
-
"data-",
|
|
58
|
-
name
|
|
59
|
-
] })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ jsx("pre", { className: "mt-2 overflow-x-auto border-border border-t pt-2 text-code-sm", children: /* @__PURE__ */ jsx("code", { children: safeStringify(part.data) }) })
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
function safeStringify(value) {
|
|
67
|
-
try {
|
|
68
|
-
return JSON.stringify(value, null, 2);
|
|
69
|
-
} catch {
|
|
70
|
-
return String(value);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function isImage(mediaType) {
|
|
74
|
-
return mediaType.startsWith("image/") || mediaType === "image";
|
|
75
|
-
}
|
|
76
|
-
function FilePart({ part }) {
|
|
77
|
-
const safeUrl = safeHref(part.url);
|
|
78
|
-
const label = part.filename ?? part.url.split("/").pop() ?? "file";
|
|
79
|
-
if (isImage(part.mediaType)) {
|
|
80
|
-
if (!safeUrl) {
|
|
81
|
-
return /* @__PURE__ */ jsxs(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
"data-slot": "file-part",
|
|
85
|
-
className: cn(
|
|
86
|
-
"my-2 inline-flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",
|
|
87
|
-
"text-body-sm text-muted-foreground"
|
|
88
|
-
),
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ jsx(ImageIcon, { className: "size-4", "aria-hidden": "true" }),
|
|
91
|
-
/* @__PURE__ */ jsx("span", { children: label }),
|
|
92
|
-
/* @__PURE__ */ jsx("span", { className: "text-destructive", children: "(blocked)" })
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
return /* @__PURE__ */ jsxs(
|
|
98
|
-
"figure",
|
|
99
|
-
{
|
|
100
|
-
className: "my-3 overflow-hidden rounded-lg border border-border",
|
|
101
|
-
"data-theo-file": "image",
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ jsx("img", { src: safeUrl, alt: label, className: "block max-w-full", loading: "lazy" }),
|
|
104
|
-
part.filename ? /* @__PURE__ */ jsx("figcaption", { className: "border-border border-t bg-muted/30 px-3 py-1.5 font-mono text-label-caps text-muted-foreground uppercase tracking-wider", children: part.filename }) : null
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
return /* @__PURE__ */ jsxs(
|
|
110
|
-
"div",
|
|
111
|
-
{
|
|
112
|
-
className: cn(
|
|
113
|
-
"my-2 inline-flex items-center gap-2 rounded-md border border-border bg-card px-3 py-2",
|
|
114
|
-
"text-body-sm"
|
|
115
|
-
),
|
|
116
|
-
"data-theo-file": "generic",
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ jsx(FileIcon, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }),
|
|
119
|
-
safeUrl ? /* @__PURE__ */ jsx("a", { href: safeUrl, className: "text-primary hover:text-primary-deep hover:underline", children: label }) : /* @__PURE__ */ jsx("span", { children: label }),
|
|
120
|
-
/* @__PURE__ */ jsx("span", { className: "font-mono text-label-caps text-muted-foreground uppercase tracking-wider", children: part.mediaType })
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
var DEFAULT_THEMES = { light: "github-light", dark: "github-dark" };
|
|
126
|
-
var cachedHighlighter = null;
|
|
127
|
-
var highlighterFailed = false;
|
|
128
|
-
async function getHighlighter(themes) {
|
|
129
|
-
if (cachedHighlighter) return cachedHighlighter;
|
|
130
|
-
if (highlighterFailed) return null;
|
|
131
|
-
try {
|
|
132
|
-
const shiki = await import('shiki');
|
|
133
|
-
cachedHighlighter = await shiki.createHighlighter({
|
|
134
|
-
themes: [themes.light, themes.dark],
|
|
135
|
-
langs: [
|
|
136
|
-
"ts",
|
|
137
|
-
"tsx",
|
|
138
|
-
"js",
|
|
139
|
-
"jsx",
|
|
140
|
-
"python",
|
|
141
|
-
"go",
|
|
142
|
-
"rust",
|
|
143
|
-
"java",
|
|
144
|
-
"json",
|
|
145
|
-
"yaml",
|
|
146
|
-
"bash",
|
|
147
|
-
"shell",
|
|
148
|
-
"html",
|
|
149
|
-
"css",
|
|
150
|
-
"sql",
|
|
151
|
-
"markdown"
|
|
152
|
-
]
|
|
153
|
-
});
|
|
154
|
-
return cachedHighlighter;
|
|
155
|
-
} catch {
|
|
156
|
-
highlighterFailed = true;
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function CodeBlock({ code, language, themes, className }) {
|
|
161
|
-
const [html, setHtml] = useState(null);
|
|
162
|
-
const [copied, setCopied] = useState(false);
|
|
163
|
-
const effectiveThemes = themes ?? DEFAULT_THEMES;
|
|
164
|
-
useEffect(() => {
|
|
165
|
-
let cancelled = false;
|
|
166
|
-
if (!language) return;
|
|
167
|
-
getHighlighter(effectiveThemes).then((hl) => {
|
|
168
|
-
if (cancelled || !hl) return;
|
|
169
|
-
try {
|
|
170
|
-
const out = hl.codeToHtml(code, {
|
|
171
|
-
lang: language,
|
|
172
|
-
themes: { light: effectiveThemes.light, dark: effectiveThemes.dark },
|
|
173
|
-
defaultColor: "light"
|
|
174
|
-
});
|
|
175
|
-
setHtml(out);
|
|
176
|
-
} catch {
|
|
177
|
-
}
|
|
178
|
-
}).catch(() => {
|
|
179
|
-
});
|
|
180
|
-
return () => {
|
|
181
|
-
cancelled = true;
|
|
182
|
-
};
|
|
183
|
-
}, [code, language, effectiveThemes.light, effectiveThemes.dark, effectiveThemes]);
|
|
184
|
-
const handleCopy = async () => {
|
|
185
|
-
try {
|
|
186
|
-
await navigator.clipboard.writeText(code);
|
|
187
|
-
setCopied(true);
|
|
188
|
-
setTimeout(() => setCopied(false), 2e3);
|
|
189
|
-
} catch {
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
return /* @__PURE__ */ jsxs(
|
|
193
|
-
"div",
|
|
194
|
-
{
|
|
195
|
-
className: cn(
|
|
196
|
-
"group relative my-4 overflow-hidden rounded-lg border border-border bg-muted/30",
|
|
197
|
-
className
|
|
198
|
-
),
|
|
199
|
-
"data-theo-code-block": "",
|
|
200
|
-
children: [
|
|
201
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-border border-b bg-muted/50 px-3 py-1.5", children: [
|
|
202
|
-
/* @__PURE__ */ jsx("span", { className: "font-mono text-label-caps text-muted-foreground uppercase tracking-wider", children: language || "text" }),
|
|
203
|
-
/* @__PURE__ */ jsx(
|
|
204
|
-
"button",
|
|
205
|
-
{
|
|
206
|
-
type: "button",
|
|
207
|
-
onClick: handleCopy,
|
|
208
|
-
className: cn(
|
|
209
|
-
"inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-label",
|
|
210
|
-
"text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground",
|
|
211
|
-
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring"
|
|
212
|
-
),
|
|
213
|
-
"aria-label": copied ? "Copied" : "Copy code",
|
|
214
|
-
children: copied ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
215
|
-
/* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5", "aria-hidden": "true" }),
|
|
216
|
-
/* @__PURE__ */ jsx("span", { children: "Copied" })
|
|
217
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
218
|
-
/* @__PURE__ */ jsx(CopyIcon, { className: "size-3.5", "aria-hidden": "true" }),
|
|
219
|
-
/* @__PURE__ */ jsx("span", { children: "Copy" })
|
|
220
|
-
] })
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
] }),
|
|
224
|
-
html ? /* @__PURE__ */ jsx(
|
|
225
|
-
"div",
|
|
226
|
-
{
|
|
227
|
-
className: "[&_pre]:!bg-transparent [&_pre]:!m-0 [&_pre]:!p-0 overflow-x-auto p-3 text-code-sm",
|
|
228
|
-
dangerouslySetInnerHTML: { __html: html }
|
|
229
|
-
}
|
|
230
|
-
) : /* @__PURE__ */ jsx("pre", { className: "overflow-x-auto p-3 text-code-sm", children: /* @__PURE__ */ jsx("code", { className: language ? `language-${language}` : void 0, children: code }) })
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
function InlineCode({ className, children, ...props }) {
|
|
236
|
-
return /* @__PURE__ */ jsx(
|
|
237
|
-
"code",
|
|
238
|
-
{
|
|
239
|
-
className: cn(
|
|
240
|
-
"rounded bg-muted px-1.5 py-0.5 font-mono text-code-sm text-foreground",
|
|
241
|
-
className
|
|
242
|
-
),
|
|
243
|
-
...props,
|
|
244
|
-
children
|
|
245
|
-
}
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// src/lib/markdown/streaming-preprocess.ts
|
|
250
|
-
function preprocessStreaming(markdown, isStreaming = true) {
|
|
251
|
-
if (!isStreaming) return markdown;
|
|
252
|
-
let buf = markdown;
|
|
253
|
-
const fenceCount = countTripleBackticks(buf);
|
|
254
|
-
if (fenceCount % 2 === 1) {
|
|
255
|
-
buf = `${buf.endsWith("\n") ? buf : `${buf}
|
|
256
|
-
`}\`\`\``;
|
|
257
|
-
return buf;
|
|
258
|
-
}
|
|
259
|
-
const blockMathCount = countOccurrences(buf, "$$");
|
|
260
|
-
if (blockMathCount % 2 === 1) {
|
|
261
|
-
buf = `${buf}$$`;
|
|
262
|
-
return buf;
|
|
263
|
-
}
|
|
264
|
-
const inlineBackticks = countSingleBackticks(buf);
|
|
265
|
-
if (inlineBackticks % 2 === 1) {
|
|
266
|
-
buf = `${buf}\``;
|
|
267
|
-
}
|
|
268
|
-
const inlineDollars = countSingleDollars(buf);
|
|
269
|
-
if (inlineDollars % 2 === 1) {
|
|
270
|
-
buf = `${buf}$`;
|
|
271
|
-
}
|
|
272
|
-
for (const marker of ["**", "__", "*", "_"]) {
|
|
273
|
-
if (countMarker(buf, marker) % 2 === 1) {
|
|
274
|
-
buf = `${buf}${marker}`;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
buf = closeUnclosedLink(buf);
|
|
278
|
-
return buf;
|
|
279
|
-
}
|
|
280
|
-
function countTripleBackticks(s) {
|
|
281
|
-
let count = 0;
|
|
282
|
-
let i = 0;
|
|
283
|
-
while (i < s.length) {
|
|
284
|
-
if (s[i] === "`" && s[i + 1] === "`" && s[i + 2] === "`") {
|
|
285
|
-
count++;
|
|
286
|
-
i += 3;
|
|
287
|
-
} else {
|
|
288
|
-
i++;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
return count;
|
|
292
|
-
}
|
|
293
|
-
function countSingleBackticks(s) {
|
|
294
|
-
let count = 0;
|
|
295
|
-
let i = 0;
|
|
296
|
-
while (i < s.length) {
|
|
297
|
-
if (s[i] === "`") {
|
|
298
|
-
if (s[i + 1] === "`" && s[i + 2] === "`") {
|
|
299
|
-
i += 3;
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
count++;
|
|
303
|
-
}
|
|
304
|
-
i++;
|
|
305
|
-
}
|
|
306
|
-
return count;
|
|
307
|
-
}
|
|
308
|
-
function countOccurrences(s, needle) {
|
|
309
|
-
if (needle.length === 0) return 0;
|
|
310
|
-
let count = 0;
|
|
311
|
-
let i = s.indexOf(needle);
|
|
312
|
-
while (i !== -1) {
|
|
313
|
-
count++;
|
|
314
|
-
i = s.indexOf(needle, i + needle.length);
|
|
315
|
-
}
|
|
316
|
-
return count;
|
|
317
|
-
}
|
|
318
|
-
function countSingleDollars(s) {
|
|
319
|
-
let count = 0;
|
|
320
|
-
let i = 0;
|
|
321
|
-
while (i < s.length) {
|
|
322
|
-
if (s[i] === "$") {
|
|
323
|
-
if (s[i + 1] === "$") {
|
|
324
|
-
i += 2;
|
|
325
|
-
continue;
|
|
326
|
-
}
|
|
327
|
-
if (i > 0 && s[i - 1] === "\\") {
|
|
328
|
-
i++;
|
|
329
|
-
continue;
|
|
330
|
-
}
|
|
331
|
-
count++;
|
|
332
|
-
}
|
|
333
|
-
i++;
|
|
334
|
-
}
|
|
335
|
-
return count;
|
|
336
|
-
}
|
|
337
|
-
function countMarker(s, marker) {
|
|
338
|
-
if (marker.length === 0) return 0;
|
|
339
|
-
if (marker.length === 1) {
|
|
340
|
-
let count2 = 0;
|
|
341
|
-
let i2 = 0;
|
|
342
|
-
while (i2 < s.length) {
|
|
343
|
-
if (s[i2] === marker) {
|
|
344
|
-
if (s[i2 + 1] === marker) {
|
|
345
|
-
i2 += 2;
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
if (i2 > 0 && s[i2 - 1] === "\\") {
|
|
349
|
-
i2++;
|
|
350
|
-
continue;
|
|
351
|
-
}
|
|
352
|
-
count2++;
|
|
353
|
-
}
|
|
354
|
-
i2++;
|
|
355
|
-
}
|
|
356
|
-
return count2;
|
|
357
|
-
}
|
|
358
|
-
let count = 0;
|
|
359
|
-
let i = 0;
|
|
360
|
-
while (i <= s.length - marker.length) {
|
|
361
|
-
if (s.substring(i, i + marker.length) === marker) {
|
|
362
|
-
count++;
|
|
363
|
-
i += marker.length;
|
|
364
|
-
} else {
|
|
365
|
-
i++;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
return count;
|
|
369
|
-
}
|
|
370
|
-
function closeUnclosedLink(s) {
|
|
371
|
-
const lastOpenParen = s.lastIndexOf("(");
|
|
372
|
-
const lastCloseParen = s.lastIndexOf(")");
|
|
373
|
-
if (lastOpenParen === -1 || lastOpenParen <= lastCloseParen) return s;
|
|
374
|
-
if (s[lastOpenParen - 1] !== "]") return s;
|
|
375
|
-
const closingBracket = lastOpenParen - 1;
|
|
376
|
-
const openingBracket = s.lastIndexOf("[", closingBracket - 1);
|
|
377
|
-
if (openingBracket === -1) return s;
|
|
378
|
-
return `${s})`;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
// src/lib/markdown/parser.ts
|
|
382
|
-
async function parseBody(body) {
|
|
383
|
-
const [{ fromMarkdown }, { gfmFromMarkdown }, { gfm }] = await Promise.all([
|
|
384
|
-
import('mdast-util-from-markdown'),
|
|
385
|
-
import('mdast-util-gfm'),
|
|
386
|
-
import('micromark-extension-gfm')
|
|
387
|
-
]);
|
|
388
|
-
return fromMarkdown(body, {
|
|
389
|
-
extensions: [gfm()],
|
|
390
|
-
mdastExtensions: [gfmFromMarkdown()]
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
async function mdastToHast(tree) {
|
|
394
|
-
const { toHast } = await import('mdast-util-to-hast');
|
|
395
|
-
const hast = toHast(tree, { allowDangerousHtml: false });
|
|
396
|
-
if (!hast || hast.type !== "root") {
|
|
397
|
-
return { type: "root", children: hast ? [hast] : [] };
|
|
398
|
-
}
|
|
399
|
-
return hast;
|
|
400
|
-
}
|
|
401
|
-
async function sanitizeHast(tree) {
|
|
402
|
-
const { sanitize, defaultSchema } = await import('hast-util-sanitize');
|
|
403
|
-
const schema = {
|
|
404
|
-
...defaultSchema,
|
|
405
|
-
attributes: {
|
|
406
|
-
...defaultSchema.attributes ?? {},
|
|
407
|
-
code: [...defaultSchema.attributes?.code ?? [], ["className", /^language-./]],
|
|
408
|
-
pre: [...defaultSchema.attributes?.pre ?? [], ["className", /./]],
|
|
409
|
-
span: [...defaultSchema.attributes?.span ?? [], ["className", /./], ["style"]]
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
const safe = sanitize(tree, schema);
|
|
413
|
-
return safe.type === "root" ? safe : { type: "root", children: [safe] };
|
|
414
|
-
}
|
|
415
|
-
async function hastToReact(tree, components) {
|
|
416
|
-
const { Fragment: Fragment4, jsx: jsx13, jsxs: jsxs9 } = await import('react/jsx-runtime');
|
|
417
|
-
const { toJsxRuntime } = await import('hast-util-to-jsx-runtime');
|
|
418
|
-
return toJsxRuntime(tree, {
|
|
419
|
-
Fragment: Fragment4,
|
|
420
|
-
jsx: jsx13,
|
|
421
|
-
jsxs: jsxs9,
|
|
422
|
-
components
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
async function parseMarkdownToReact(markdown, opts = {}) {
|
|
426
|
-
const preprocessed = preprocessStreaming(markdown, opts.isStreaming ?? false);
|
|
427
|
-
const mdast = await parseBody(preprocessed);
|
|
428
|
-
const hast = await mdastToHast(mdast);
|
|
429
|
-
const safe = await sanitizeHast(hast);
|
|
430
|
-
return hastToReact(safe, opts.components);
|
|
431
|
-
}
|
|
432
|
-
async function parseMarkdownToReactSafe(markdown, opts = {}) {
|
|
433
|
-
try {
|
|
434
|
-
return await parseMarkdownToReact(markdown, opts);
|
|
435
|
-
} catch {
|
|
436
|
-
return createElement("span", { className: "whitespace-pre-wrap" }, markdown);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
function isFenced(props) {
|
|
440
|
-
const cls = props.className;
|
|
441
|
-
if (typeof cls === "string") return cls.startsWith("language-");
|
|
442
|
-
if (Array.isArray(cls))
|
|
443
|
-
return cls.some((c) => typeof c === "string" && c.startsWith("language-"));
|
|
444
|
-
return false;
|
|
445
|
-
}
|
|
446
|
-
function extractLanguage(props) {
|
|
447
|
-
const cls = props.className;
|
|
448
|
-
const list = typeof cls === "string" ? [cls] : Array.isArray(cls) ? cls : [];
|
|
449
|
-
for (const c of list) {
|
|
450
|
-
if (typeof c === "string" && c.startsWith("language-")) {
|
|
451
|
-
return c.slice("language-".length);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
return void 0;
|
|
455
|
-
}
|
|
456
|
-
function extractText(children) {
|
|
457
|
-
if (typeof children === "string") return children;
|
|
458
|
-
if (Array.isArray(children)) return children.map(extractText).join("");
|
|
459
|
-
if (children && typeof children === "object" && "props" in children && children.props) {
|
|
460
|
-
return extractText(children.props.children);
|
|
461
|
-
}
|
|
462
|
-
return "";
|
|
463
|
-
}
|
|
464
|
-
var MARKDOWN_COMPONENTS = {
|
|
465
|
-
code: (props) => {
|
|
466
|
-
if (isFenced(props)) {
|
|
467
|
-
const language = extractLanguage(props);
|
|
468
|
-
const code = extractText(props.children);
|
|
469
|
-
return /* @__PURE__ */ jsx(CodeBlock, { code, language });
|
|
470
|
-
}
|
|
471
|
-
return /* @__PURE__ */ jsx(InlineCode, { ...props, children: props.children });
|
|
472
|
-
},
|
|
473
|
-
// Strip the default `<pre>` since `<CodeBlock>` ships its own wrapper.
|
|
474
|
-
// Inline `<pre>` still works for raw whitespace-preserving text.
|
|
475
|
-
pre: ({ children }) => {
|
|
476
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
function ChatMessageResponseImpl({
|
|
480
|
-
text,
|
|
481
|
-
isStreaming = false,
|
|
482
|
-
className
|
|
483
|
-
}) {
|
|
484
|
-
const [tree, setTree] = useState(null);
|
|
485
|
-
useEffect(() => {
|
|
486
|
-
let cancelled = false;
|
|
487
|
-
parseMarkdownToReactSafe(text, {
|
|
488
|
-
isStreaming,
|
|
489
|
-
components: MARKDOWN_COMPONENTS
|
|
490
|
-
}).then((next) => {
|
|
491
|
-
if (!cancelled) setTree(next);
|
|
492
|
-
});
|
|
493
|
-
return () => {
|
|
494
|
-
cancelled = true;
|
|
495
|
-
};
|
|
496
|
-
}, [text, isStreaming]);
|
|
497
|
-
return /* @__PURE__ */ jsx(
|
|
498
|
-
"div",
|
|
499
|
-
{
|
|
500
|
-
"data-slot": "chat-message-response-impl",
|
|
501
|
-
className: cn(
|
|
502
|
-
"prose-theo max-w-none text-body-md text-foreground leading-relaxed",
|
|
503
|
-
// First/last child margin reset — fork from vercel/ai-elements
|
|
504
|
-
"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
|
|
505
|
-
// Heading sizes inside chat use our typescale, not browser defaults
|
|
506
|
-
"[&_h1]:mt-4 [&_h1]:mb-2 [&_h1]:font-semibold [&_h1]:text-title-lg",
|
|
507
|
-
"[&_h2]:mt-3 [&_h2]:mb-2 [&_h2]:font-semibold [&_h2]:text-title-md",
|
|
508
|
-
"[&_h3]:mt-3 [&_h3]:mb-1.5 [&_h3]:font-semibold [&_h3]:text-body-lg",
|
|
509
|
-
"[&_p]:my-2",
|
|
510
|
-
"[&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5",
|
|
511
|
-
"[&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5",
|
|
512
|
-
"[&_li]:my-0.5",
|
|
513
|
-
"[&_blockquote]:my-2 [&_blockquote]:border-primary/40 [&_blockquote]:border-l-2 [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground",
|
|
514
|
-
"[&_a:hover]:text-primary-deep [&_a]:text-primary [&_a]:underline",
|
|
515
|
-
"[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse",
|
|
516
|
-
"[&_th]:border [&_th]:border-border [&_th]:bg-muted/40 [&_th]:px-3 [&_th]:py-1.5 [&_th]:text-left",
|
|
517
|
-
"[&_td]:border [&_td]:border-border [&_td]:px-3 [&_td]:py-1.5",
|
|
518
|
-
"[&_hr]:my-4 [&_hr]:border-border",
|
|
519
|
-
className
|
|
520
|
-
),
|
|
521
|
-
"data-theo-chat-response": "",
|
|
522
|
-
children: tree
|
|
523
|
-
}
|
|
524
|
-
);
|
|
525
|
-
}
|
|
526
|
-
var ChatMessageResponse = memo(ChatMessageResponseImpl, (prev, next) => {
|
|
527
|
-
return prev.text === next.text && prev.isStreaming === next.isStreaming;
|
|
528
|
-
});
|
|
529
|
-
ChatMessageResponse.displayName = "ChatMessageResponse";
|
|
530
|
-
function ReasoningPart({ part, defaultOpen }) {
|
|
531
|
-
const isStreaming = part.state === "streaming";
|
|
532
|
-
const open = defaultOpen ?? isStreaming;
|
|
533
|
-
return /* @__PURE__ */ jsxs(
|
|
534
|
-
"details",
|
|
535
|
-
{
|
|
536
|
-
"data-slot": "reasoning-part",
|
|
537
|
-
className: cn(
|
|
538
|
-
"my-2 rounded-md border border-border bg-muted/20 px-3 py-2",
|
|
539
|
-
"[&[open]]:bg-muted/40"
|
|
540
|
-
),
|
|
541
|
-
open,
|
|
542
|
-
"data-theo-reasoning": "",
|
|
543
|
-
children: [
|
|
544
|
-
/* @__PURE__ */ jsxs(
|
|
545
|
-
"summary",
|
|
546
|
-
{
|
|
547
|
-
className: cn(
|
|
548
|
-
"cursor-pointer list-none font-mono text-label-caps text-muted-foreground uppercase tracking-wider",
|
|
549
|
-
"flex items-center gap-1.5 marker:hidden",
|
|
550
|
-
"transition-colors hover:text-foreground"
|
|
551
|
-
),
|
|
552
|
-
children: [
|
|
553
|
-
/* @__PURE__ */ jsx(BrainCircuitIcon, { className: "size-3.5", "aria-hidden": "true" }),
|
|
554
|
-
/* @__PURE__ */ jsx("span", { children: "Reasoning" }),
|
|
555
|
-
isStreaming ? /* @__PURE__ */ jsx("span", { className: "text-primary/80", children: "\u2026" }) : null
|
|
556
|
-
]
|
|
557
|
-
}
|
|
558
|
-
),
|
|
559
|
-
/* @__PURE__ */ jsx("div", { className: "mt-2 border-border border-t pt-2", children: /* @__PURE__ */ jsx(ChatMessageResponse, { text: part.text, isStreaming }) })
|
|
560
|
-
]
|
|
561
|
-
}
|
|
562
|
-
);
|
|
563
|
-
}
|
|
564
|
-
function SourceUrlPart({ part }) {
|
|
565
|
-
const safe = safeHref(part.url);
|
|
566
|
-
const label = part.title || part.url;
|
|
567
|
-
return /* @__PURE__ */ jsxs(
|
|
568
|
-
"span",
|
|
569
|
-
{
|
|
570
|
-
"data-slot": "source-url-part",
|
|
571
|
-
className: cn(
|
|
572
|
-
"my-1 inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-card px-2 py-1",
|
|
573
|
-
"align-middle font-mono text-label"
|
|
574
|
-
),
|
|
575
|
-
"data-theo-source": "url",
|
|
576
|
-
children: [
|
|
577
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-3 text-muted-foreground", "aria-hidden": "true" }),
|
|
578
|
-
safe ? /* @__PURE__ */ jsx(
|
|
579
|
-
"a",
|
|
580
|
-
{
|
|
581
|
-
href: safe,
|
|
582
|
-
className: "truncate text-primary hover:text-primary-deep hover:underline",
|
|
583
|
-
rel: "noopener noreferrer",
|
|
584
|
-
target: "_blank",
|
|
585
|
-
children: label
|
|
586
|
-
}
|
|
587
|
-
) : /* @__PURE__ */ jsx("span", { className: "truncate text-muted-foreground", children: label })
|
|
588
|
-
]
|
|
589
|
-
}
|
|
590
|
-
);
|
|
591
|
-
}
|
|
592
|
-
function SourceDocumentPart({ part }) {
|
|
593
|
-
return /* @__PURE__ */ jsxs(
|
|
594
|
-
"span",
|
|
595
|
-
{
|
|
596
|
-
"data-slot": "source-document-part",
|
|
597
|
-
className: cn(
|
|
598
|
-
"my-1 inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-card px-2 py-1",
|
|
599
|
-
"align-middle font-mono text-label"
|
|
600
|
-
),
|
|
601
|
-
"data-theo-source": "document",
|
|
602
|
-
children: [
|
|
603
|
-
/* @__PURE__ */ jsx(FileTextIcon, { className: "size-3 text-muted-foreground", "aria-hidden": "true" }),
|
|
604
|
-
/* @__PURE__ */ jsx("span", { className: "truncate text-foreground", children: part.title }),
|
|
605
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\xB7" }),
|
|
606
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: part.mediaType })
|
|
607
|
-
]
|
|
608
|
-
}
|
|
609
|
-
);
|
|
610
|
-
}
|
|
611
|
-
function TextPart({ part }) {
|
|
612
|
-
return /* @__PURE__ */ jsx(
|
|
613
|
-
ChatMessageResponse,
|
|
614
|
-
{
|
|
615
|
-
"data-slot": "text-part",
|
|
616
|
-
text: part.text,
|
|
617
|
-
isStreaming: part.state === "streaming"
|
|
618
|
-
}
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
var ChatMessageRoot = forwardRef(
|
|
622
|
-
({ className, from, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
623
|
-
"div",
|
|
624
|
-
{
|
|
625
|
-
"data-slot": "chat-message-root",
|
|
626
|
-
ref,
|
|
627
|
-
className: cn(
|
|
628
|
-
"group flex w-full max-w-[95%] flex-col gap-2",
|
|
629
|
-
from === "user" ? "is-user ml-auto justify-end" : from === "assistant" ? "is-assistant" : "is-system",
|
|
630
|
-
className
|
|
631
|
-
),
|
|
632
|
-
"data-theo-chat-message": from,
|
|
633
|
-
...props,
|
|
634
|
-
children
|
|
635
|
-
}
|
|
636
|
-
)
|
|
637
|
-
);
|
|
638
|
-
ChatMessageRoot.displayName = "ChatMessageRoot";
|
|
639
|
-
var ChatMessageContent = forwardRef(
|
|
640
|
-
({ className, variant, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
641
|
-
"div",
|
|
642
|
-
{
|
|
643
|
-
"data-slot": "chat-message-content",
|
|
644
|
-
ref,
|
|
645
|
-
className: cn(
|
|
646
|
-
"flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-body-md",
|
|
647
|
-
// User bubble — secondary surface, right-aligned (within the `is-user` group)
|
|
648
|
-
"group-[.is-user]:ml-auto",
|
|
649
|
-
variant !== "flat" && "group-[.is-user]:rounded-2xl group-[.is-user]:rounded-tr-md group-[.is-user]:border group-[.is-user]:border-border/40 group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3",
|
|
650
|
-
// Assistant card — primary accent border-left
|
|
651
|
-
variant === "contained" && "group-[.is-assistant]:rounded-2xl group-[.is-assistant]:rounded-tl-md group-[.is-assistant]:border group-[.is-assistant]:border-border/40 group-[.is-assistant]:border-l-2 group-[.is-assistant]:border-l-primary group-[.is-assistant]:bg-card group-[.is-assistant]:px-5 group-[.is-assistant]:py-4 group-[.is-assistant]:shadow-sm",
|
|
652
|
-
// System callout — accent-deep border
|
|
653
|
-
"group-[.is-system]:rounded-lg group-[.is-system]:border group-[.is-system]:border-accent-deep/40 group-[.is-system]:border-l-4 group-[.is-system]:bg-accent/10 group-[.is-system]:px-4 group-[.is-system]:py-2 group-[.is-system]:text-body-sm",
|
|
654
|
-
"group-[.is-assistant]:text-foreground group-[.is-user]:text-secondary-foreground",
|
|
655
|
-
className
|
|
656
|
-
),
|
|
657
|
-
"data-theo-chat-content": "",
|
|
658
|
-
...props,
|
|
659
|
-
children
|
|
660
|
-
}
|
|
661
|
-
)
|
|
662
|
-
);
|
|
663
|
-
ChatMessageContent.displayName = "ChatMessageContent";
|
|
664
|
-
function renderPart(part, opts = {}) {
|
|
665
|
-
const overrides = opts.partRenderers ?? {};
|
|
666
|
-
if (isTextUIPart(part)) {
|
|
667
|
-
return overrides.text?.(part) ?? /* @__PURE__ */ jsx(TextPart, { part });
|
|
668
|
-
}
|
|
669
|
-
if (isReasoningUIPart(part)) {
|
|
670
|
-
return overrides.reasoning?.(part) ?? /* @__PURE__ */ jsx(ReasoningPart, { part });
|
|
671
|
-
}
|
|
672
|
-
if (isReasoningFileUIPart(part)) {
|
|
673
|
-
return overrides["reasoning-file"]?.(part) ?? null;
|
|
674
|
-
}
|
|
675
|
-
if (isFileUIPart(part)) {
|
|
676
|
-
return overrides.file?.(part) ?? /* @__PURE__ */ jsx(FilePart, { part });
|
|
677
|
-
}
|
|
678
|
-
if (isSourceUrlUIPart(part)) {
|
|
679
|
-
return overrides["source-url"]?.(part) ?? /* @__PURE__ */ jsx(SourceUrlPart, { part });
|
|
680
|
-
}
|
|
681
|
-
if (isSourceDocumentUIPart(part)) {
|
|
682
|
-
return overrides["source-document"]?.(part) ?? /* @__PURE__ */ jsx(SourceDocumentPart, { part });
|
|
683
|
-
}
|
|
684
|
-
if (isToolUIPart(part)) {
|
|
685
|
-
if (overrides.tool) return overrides.tool(part);
|
|
686
|
-
return /* @__PURE__ */ jsx(
|
|
687
|
-
AgentToolRenderer,
|
|
688
|
-
{
|
|
689
|
-
part,
|
|
690
|
-
toolRenderers: opts.toolRenderers,
|
|
691
|
-
classifyTool: opts.classifyTool
|
|
692
|
-
}
|
|
693
|
-
);
|
|
694
|
-
}
|
|
695
|
-
if (isDataUIPart(part)) {
|
|
696
|
-
return overrides.data?.(part) ?? /* @__PURE__ */ jsx(DataPart, { part, renderers: opts.dataRenderers });
|
|
697
|
-
}
|
|
698
|
-
if (isStepStartUIPart(part)) {
|
|
699
|
-
return overrides["step-start"]?.() ?? /* @__PURE__ */ jsx("hr", { className: "my-3 border-border", "aria-label": "Step boundary" });
|
|
700
|
-
}
|
|
701
|
-
return null;
|
|
702
|
-
}
|
|
703
|
-
var ChatMessage = forwardRef(
|
|
704
|
-
({
|
|
705
|
-
message,
|
|
706
|
-
avatar,
|
|
707
|
-
actions,
|
|
708
|
-
variant,
|
|
709
|
-
partRenderers,
|
|
710
|
-
dataRenderers,
|
|
711
|
-
toolRenderers,
|
|
712
|
-
classifyTool,
|
|
713
|
-
className,
|
|
714
|
-
...props
|
|
715
|
-
}, ref) => {
|
|
716
|
-
const inner = /* @__PURE__ */ jsxs(
|
|
717
|
-
ChatMessageContent,
|
|
718
|
-
{
|
|
719
|
-
variant: variant ?? (message.role === "assistant" ? "contained" : void 0),
|
|
720
|
-
children: [
|
|
721
|
-
message.parts.map((part, idx) => /* @__PURE__ */ jsx("div", { children: renderPart(part, { dataRenderers, partRenderers, toolRenderers, classifyTool }) }, `${part.type}-${idx}`)),
|
|
722
|
-
actions
|
|
723
|
-
]
|
|
724
|
-
}
|
|
725
|
-
);
|
|
726
|
-
if (message.role === "user") {
|
|
727
|
-
return /* @__PURE__ */ jsxs(
|
|
728
|
-
ChatMessageRoot,
|
|
729
|
-
{
|
|
730
|
-
"data-slot": "chat-message",
|
|
731
|
-
ref,
|
|
732
|
-
from: "user",
|
|
733
|
-
className,
|
|
734
|
-
...props,
|
|
735
|
-
children: [
|
|
736
|
-
inner,
|
|
737
|
-
avatar ? /* @__PURE__ */ jsx("div", { className: "shrink-0", children: avatar }) : null
|
|
738
|
-
]
|
|
739
|
-
}
|
|
740
|
-
);
|
|
741
|
-
}
|
|
742
|
-
return /* @__PURE__ */ jsxs(
|
|
743
|
-
ChatMessageRoot,
|
|
744
|
-
{
|
|
745
|
-
"data-slot": "chat-message",
|
|
746
|
-
ref,
|
|
747
|
-
from: message.role,
|
|
748
|
-
className,
|
|
749
|
-
...props,
|
|
750
|
-
children: [
|
|
751
|
-
avatar ? /* @__PURE__ */ jsx("div", { className: "shrink-0", children: avatar }) : null,
|
|
752
|
-
inner
|
|
753
|
-
]
|
|
754
|
-
}
|
|
755
|
-
);
|
|
756
|
-
}
|
|
757
|
-
);
|
|
758
|
-
ChatMessage.displayName = "ChatMessage";
|
|
759
|
-
function ChatMessageActions({
|
|
760
|
-
className,
|
|
761
|
-
children,
|
|
762
|
-
...props
|
|
763
|
-
}) {
|
|
764
|
-
return /* @__PURE__ */ jsx(
|
|
765
|
-
"div",
|
|
766
|
-
{
|
|
767
|
-
"data-slot": "chat-message-actions",
|
|
768
|
-
className: cn("flex items-center gap-1", className),
|
|
769
|
-
"data-theo-chat-actions": "",
|
|
770
|
-
...props,
|
|
771
|
-
children
|
|
772
|
-
}
|
|
773
|
-
);
|
|
774
|
-
}
|
|
775
|
-
function ChatMessageAction({
|
|
776
|
-
tooltip,
|
|
777
|
-
label,
|
|
778
|
-
variant = "ghost",
|
|
779
|
-
size = "icon",
|
|
780
|
-
className,
|
|
781
|
-
children,
|
|
782
|
-
...props
|
|
783
|
-
}) {
|
|
784
|
-
return /* @__PURE__ */ jsxs(
|
|
785
|
-
Button,
|
|
786
|
-
{
|
|
787
|
-
"data-slot": "chat-message-action",
|
|
788
|
-
type: "button",
|
|
789
|
-
variant,
|
|
790
|
-
size,
|
|
791
|
-
title: tooltip,
|
|
792
|
-
className: cn(className),
|
|
793
|
-
...props,
|
|
794
|
-
children: [
|
|
795
|
-
children,
|
|
796
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: label || tooltip })
|
|
797
|
-
]
|
|
798
|
-
}
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
function ChatMessageToolbar({
|
|
802
|
-
className,
|
|
803
|
-
children,
|
|
804
|
-
...props
|
|
805
|
-
}) {
|
|
806
|
-
return /* @__PURE__ */ jsx(
|
|
807
|
-
"div",
|
|
808
|
-
{
|
|
809
|
-
"data-slot": "chat-message-toolbar",
|
|
810
|
-
className: cn("mt-3 flex w-full items-center justify-between gap-3", className),
|
|
811
|
-
"data-theo-chat-toolbar": "",
|
|
812
|
-
...props,
|
|
813
|
-
children
|
|
814
|
-
}
|
|
815
|
-
);
|
|
816
|
-
}
|
|
817
|
-
var MessageBranchContext = createContext(null);
|
|
818
|
-
function useMessageBranch() {
|
|
819
|
-
const ctx = useContext(MessageBranchContext);
|
|
820
|
-
if (!ctx) {
|
|
821
|
-
throw new Error("ChatMessageBranch* components must be wrapped in <ChatMessageBranch>.");
|
|
822
|
-
}
|
|
823
|
-
return ctx;
|
|
824
|
-
}
|
|
825
|
-
function ChatMessageBranch({
|
|
826
|
-
defaultBranch = 0,
|
|
827
|
-
onBranchChange,
|
|
828
|
-
className,
|
|
829
|
-
...props
|
|
830
|
-
}) {
|
|
831
|
-
const [currentBranch, setCurrentBranch] = useState(defaultBranch);
|
|
832
|
-
const [branches, setBranches] = useState([]);
|
|
833
|
-
const handleChange = useCallback(
|
|
834
|
-
(next) => {
|
|
835
|
-
setCurrentBranch(next);
|
|
836
|
-
onBranchChange?.(next);
|
|
837
|
-
},
|
|
838
|
-
[onBranchChange]
|
|
839
|
-
);
|
|
840
|
-
const goToPrevious = useCallback(() => {
|
|
841
|
-
handleChange(currentBranch > 0 ? currentBranch - 1 : branches.length - 1);
|
|
842
|
-
}, [currentBranch, branches.length, handleChange]);
|
|
843
|
-
const goToNext = useCallback(() => {
|
|
844
|
-
handleChange(currentBranch < branches.length - 1 ? currentBranch + 1 : 0);
|
|
845
|
-
}, [currentBranch, branches.length, handleChange]);
|
|
846
|
-
const value = useMemo(
|
|
847
|
-
() => ({
|
|
848
|
-
branches,
|
|
849
|
-
currentBranch,
|
|
850
|
-
goToNext,
|
|
851
|
-
goToPrevious,
|
|
852
|
-
setBranches,
|
|
853
|
-
totalBranches: branches.length
|
|
854
|
-
}),
|
|
855
|
-
[branches, currentBranch, goToNext, goToPrevious]
|
|
856
|
-
);
|
|
857
|
-
return /* @__PURE__ */ jsx(MessageBranchContext.Provider, { "data-slot": "chat-message-branch", value, children: /* @__PURE__ */ jsx("div", { className: cn("grid w-full gap-2", className), ...props }) });
|
|
858
|
-
}
|
|
859
|
-
function ChatMessageBranchContent({
|
|
860
|
-
children,
|
|
861
|
-
...props
|
|
862
|
-
}) {
|
|
863
|
-
const { currentBranch, setBranches, branches } = useMessageBranch();
|
|
864
|
-
const childrenArray = useMemo(
|
|
865
|
-
() => Array.isArray(children) ? children : [children],
|
|
866
|
-
[children]
|
|
867
|
-
);
|
|
868
|
-
useEffect(() => {
|
|
869
|
-
if (branches.length !== childrenArray.length) {
|
|
870
|
-
setBranches(childrenArray);
|
|
871
|
-
}
|
|
872
|
-
}, [childrenArray, branches, setBranches]);
|
|
873
|
-
return /* @__PURE__ */ jsx(Fragment, { children: childrenArray.map((branch, idx) => /* @__PURE__ */ jsx(
|
|
874
|
-
"div",
|
|
875
|
-
{
|
|
876
|
-
className: cn("grid gap-2 overflow-hidden", idx === currentBranch ? "block" : "hidden"),
|
|
877
|
-
...props,
|
|
878
|
-
children: branch
|
|
879
|
-
},
|
|
880
|
-
// Prefer a stable element key; fall back to index
|
|
881
|
-
branch?.key ?? `branch-${idx}`
|
|
882
|
-
)) });
|
|
883
|
-
}
|
|
884
|
-
function ChatMessageBranchSelector({
|
|
885
|
-
className,
|
|
886
|
-
...props
|
|
887
|
-
}) {
|
|
888
|
-
const { totalBranches } = useMessageBranch();
|
|
889
|
-
if (totalBranches <= 1) return null;
|
|
890
|
-
return /* @__PURE__ */ jsx(
|
|
891
|
-
"div",
|
|
892
|
-
{
|
|
893
|
-
className: cn("inline-flex items-center gap-0.5 rounded-md border border-border", className),
|
|
894
|
-
role: "group",
|
|
895
|
-
"aria-label": "Branch selector",
|
|
896
|
-
...props
|
|
897
|
-
}
|
|
898
|
-
);
|
|
899
|
-
}
|
|
900
|
-
function ChatMessageBranchPrevious({
|
|
901
|
-
children,
|
|
902
|
-
...props
|
|
903
|
-
}) {
|
|
904
|
-
const { goToPrevious, totalBranches } = useMessageBranch();
|
|
905
|
-
return /* @__PURE__ */ jsx(
|
|
906
|
-
Button,
|
|
907
|
-
{
|
|
908
|
-
"data-slot": "chat-message-branch-previous",
|
|
909
|
-
type: "button",
|
|
910
|
-
variant: "ghost",
|
|
911
|
-
size: "icon",
|
|
912
|
-
"aria-label": "Previous branch",
|
|
913
|
-
disabled: totalBranches <= 1,
|
|
914
|
-
onClick: goToPrevious,
|
|
915
|
-
...props,
|
|
916
|
-
children: children ?? /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-3.5", "aria-hidden": "true" })
|
|
917
|
-
}
|
|
918
|
-
);
|
|
919
|
-
}
|
|
920
|
-
function ChatMessageBranchNext({
|
|
921
|
-
children,
|
|
922
|
-
...props
|
|
923
|
-
}) {
|
|
924
|
-
const { goToNext, totalBranches } = useMessageBranch();
|
|
925
|
-
return /* @__PURE__ */ jsx(
|
|
926
|
-
Button,
|
|
927
|
-
{
|
|
928
|
-
"data-slot": "chat-message-branch-next",
|
|
929
|
-
type: "button",
|
|
930
|
-
variant: "ghost",
|
|
931
|
-
size: "icon",
|
|
932
|
-
"aria-label": "Next branch",
|
|
933
|
-
disabled: totalBranches <= 1,
|
|
934
|
-
onClick: goToNext,
|
|
935
|
-
...props,
|
|
936
|
-
children: children ?? /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5", "aria-hidden": "true" })
|
|
937
|
-
}
|
|
938
|
-
);
|
|
939
|
-
}
|
|
940
|
-
function ChatMessageBranchPage({
|
|
941
|
-
className,
|
|
942
|
-
...props
|
|
943
|
-
}) {
|
|
944
|
-
const { currentBranch, totalBranches } = useMessageBranch();
|
|
945
|
-
return /* @__PURE__ */ jsxs(
|
|
946
|
-
"span",
|
|
947
|
-
{
|
|
948
|
-
"data-slot": "chat-message-branch-page",
|
|
949
|
-
className: cn(
|
|
950
|
-
"inline-flex items-center px-2 font-mono text-label-caps text-muted-foreground",
|
|
951
|
-
className
|
|
952
|
-
),
|
|
953
|
-
...props,
|
|
954
|
-
children: [
|
|
955
|
-
currentBranch + 1,
|
|
956
|
-
" of ",
|
|
957
|
-
totalBranches
|
|
958
|
-
]
|
|
959
|
-
}
|
|
960
|
-
);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
export { ChatMessage, ChatMessageAction, ChatMessageActions, ChatMessageBranch, ChatMessageBranchContent, ChatMessageBranchNext, ChatMessageBranchPage, ChatMessageBranchPrevious, ChatMessageBranchSelector, ChatMessageContent, ChatMessageResponse, ChatMessageRoot, ChatMessageToolbar, DataPart, FilePart, ReasoningPart, SourceDocumentPart, SourceUrlPart, TextPart, isCustomContentUIPart, isDataUIPart, isFileUIPart, isReasoningFileUIPart, isReasoningUIPart, isSourceDocumentUIPart, isSourceUrlUIPart, isStepStartUIPart, isTextUIPart, isToolUIPart, renderPart };
|
|
964
|
-
//# sourceMappingURL=chunk-FOE3XXBJ.js.map
|
|
965
|
-
//# sourceMappingURL=chunk-FOE3XXBJ.js.map
|