@usetheo/ui 0.13.1 → 0.14.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/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/sheet/sheet.d.ts +3 -3
- package/dist/components/primitives/toast/toast.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 +28 -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-2A3E5Y72.js +0 -165
- package/dist/chunk-2A3E5Y72.js.map +0 -1
- package/dist/chunk-2EUKYGH5.js +0 -98
- package/dist/chunk-2EUKYGH5.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-3ZXZGZOX.js +0 -57
- package/dist/chunk-3ZXZGZOX.js.map +0 -1
- package/dist/chunk-45FWKR23.js +0 -62
- package/dist/chunk-45FWKR23.js.map +0 -1
- package/dist/chunk-4DTLUBRW.js +0 -122
- package/dist/chunk-4DTLUBRW.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-4SMYNLTA.js +0 -83
- package/dist/chunk-4SMYNLTA.js.map +0 -1
- package/dist/chunk-4UBFLXS3.js +0 -35
- package/dist/chunk-4UBFLXS3.js.map +0 -1
- package/dist/chunk-52J7SDYH.js +0 -48
- package/dist/chunk-52J7SDYH.js.map +0 -1
- package/dist/chunk-5XCTTXC3.js +0 -180
- package/dist/chunk-5XCTTXC3.js.map +0 -1
- package/dist/chunk-624AATQZ.js +0 -77
- package/dist/chunk-624AATQZ.js.map +0 -1
- package/dist/chunk-6IODJQWC.js +0 -47
- package/dist/chunk-6IODJQWC.js.map +0 -1
- package/dist/chunk-75IDWFYX.js +0 -134
- package/dist/chunk-75IDWFYX.js.map +0 -1
- package/dist/chunk-7BGCWJQR.js +0 -113
- package/dist/chunk-7BGCWJQR.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-7T4NK6W6.js +0 -192
- package/dist/chunk-7T4NK6W6.js.map +0 -1
- package/dist/chunk-A3OU6ICP.js +0 -91
- package/dist/chunk-A3OU6ICP.js.map +0 -1
- package/dist/chunk-ABBXLAJW.js +0 -74
- package/dist/chunk-ABBXLAJW.js.map +0 -1
- package/dist/chunk-AENNHS3S.js +0 -83
- package/dist/chunk-AENNHS3S.js.map +0 -1
- package/dist/chunk-AXNJFBYX.js +0 -136
- package/dist/chunk-AXNJFBYX.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-BE232OKN.js +0 -42
- package/dist/chunk-BE232OKN.js.map +0 -1
- package/dist/chunk-BP4RQSX7.js +0 -200
- package/dist/chunk-BP4RQSX7.js.map +0 -1
- package/dist/chunk-BPJ3RN3U.js +0 -112
- package/dist/chunk-BPJ3RN3U.js.map +0 -1
- package/dist/chunk-BSF4Y4UT.js +0 -77
- package/dist/chunk-BSF4Y4UT.js.map +0 -1
- package/dist/chunk-BWIDDAR7.js +0 -86
- package/dist/chunk-BWIDDAR7.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-CED2LKHI.js +0 -117
- package/dist/chunk-CED2LKHI.js.map +0 -1
- package/dist/chunk-CGWIOIEO.js +0 -27
- package/dist/chunk-CGWIOIEO.js.map +0 -1
- package/dist/chunk-CSEGVTKO.js +0 -110
- package/dist/chunk-CSEGVTKO.js.map +0 -1
- package/dist/chunk-CVFSNA4K.js +0 -716
- package/dist/chunk-CVFSNA4K.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-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-FJZKA2LV.js +0 -165
- package/dist/chunk-FJZKA2LV.js.map +0 -1
- package/dist/chunk-G2WCT6PJ.js +0 -69
- package/dist/chunk-G2WCT6PJ.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-GIXHBTHH.js +0 -59
- package/dist/chunk-GIXHBTHH.js.map +0 -1
- package/dist/chunk-GLEOUWPN.js +0 -108
- package/dist/chunk-GLEOUWPN.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-H5QPJNVD.js +0 -98
- package/dist/chunk-H5QPJNVD.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-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-JFKBFQA5.js +0 -129
- package/dist/chunk-JFKBFQA5.js.map +0 -1
- package/dist/chunk-JIZKW3WC.js +0 -74
- package/dist/chunk-JIZKW3WC.js.map +0 -1
- package/dist/chunk-JQTCCKZA.js +0 -154
- package/dist/chunk-JQTCCKZA.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-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-K72DJOXR.js +0 -81
- package/dist/chunk-K72DJOXR.js.map +0 -1
- package/dist/chunk-KDE3NYTI.js +0 -144
- package/dist/chunk-KDE3NYTI.js.map +0 -1
- package/dist/chunk-KFUFTZLS.js +0 -111
- package/dist/chunk-KFUFTZLS.js.map +0 -1
- package/dist/chunk-KHBXI6AV.js +0 -149
- package/dist/chunk-KHBXI6AV.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-MXB2GVEQ.js +0 -57
- package/dist/chunk-MXB2GVEQ.js.map +0 -1
- package/dist/chunk-NEMXW2LB.js +0 -102
- package/dist/chunk-NEMXW2LB.js.map +0 -1
- package/dist/chunk-OJPPSJMF.js +0 -65
- package/dist/chunk-OJPPSJMF.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-P44UAK45.js +0 -115
- package/dist/chunk-P44UAK45.js.map +0 -1
- package/dist/chunk-PJUP4BJD.js +0 -116
- package/dist/chunk-PJUP4BJD.js.map +0 -1
- package/dist/chunk-PJWYIOY4.js +0 -3
- package/dist/chunk-PJWYIOY4.js.map +0 -1
- package/dist/chunk-PVCW4O37.js +0 -147
- package/dist/chunk-PVCW4O37.js.map +0 -1
- package/dist/chunk-PXT47DRZ.js +0 -59
- package/dist/chunk-PXT47DRZ.js.map +0 -1
- package/dist/chunk-PZGUZHI7.js +0 -142
- package/dist/chunk-PZGUZHI7.js.map +0 -1
- package/dist/chunk-Q2BAL2PF.js +0 -965
- package/dist/chunk-Q2BAL2PF.js.map +0 -1
- package/dist/chunk-QBUTRD2M.js +0 -58
- package/dist/chunk-QBUTRD2M.js.map +0 -1
- package/dist/chunk-QCQTTOMD.js +0 -236
- package/dist/chunk-QCQTTOMD.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-QRXIYPWP.js +0 -121
- package/dist/chunk-QRXIYPWP.js.map +0 -1
- package/dist/chunk-QV4BQRNH.js +0 -29
- package/dist/chunk-QV4BQRNH.js.map +0 -1
- package/dist/chunk-REFY5MLN.js +0 -212
- package/dist/chunk-REFY5MLN.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-RLWULF5B.js +0 -113
- package/dist/chunk-RLWULF5B.js.map +0 -1
- package/dist/chunk-RPZMFGYI.js +0 -31
- package/dist/chunk-RPZMFGYI.js.map +0 -1
- package/dist/chunk-RQT5DWGG.js +0 -34
- package/dist/chunk-RQT5DWGG.js.map +0 -1
- package/dist/chunk-SBKVVVYY.js +0 -89
- package/dist/chunk-SBKVVVYY.js.map +0 -1
- package/dist/chunk-SOJW47EZ.js +0 -70
- package/dist/chunk-SOJW47EZ.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-TJLULCZW.js +0 -108
- package/dist/chunk-TJLULCZW.js.map +0 -1
- package/dist/chunk-TY6NTWN5.js +0 -29
- package/dist/chunk-TY6NTWN5.js.map +0 -1
- package/dist/chunk-U3AEEFVB.js +0 -152
- package/dist/chunk-U3AEEFVB.js.map +0 -1
- package/dist/chunk-UGKI466V.js +0 -12
- package/dist/chunk-UGKI466V.js.map +0 -1
- package/dist/chunk-V3HFDVZ3.js +0 -102
- package/dist/chunk-V3HFDVZ3.js.map +0 -1
- package/dist/chunk-V6H2RUVP.js +0 -77
- package/dist/chunk-V6H2RUVP.js.map +0 -1
- package/dist/chunk-VB53UMAL.js +0 -106
- package/dist/chunk-VB53UMAL.js.map +0 -1
- package/dist/chunk-VBEMLZGX.js +0 -86
- package/dist/chunk-VBEMLZGX.js.map +0 -1
- package/dist/chunk-VBQFE5RV.js +0 -92
- package/dist/chunk-VBQFE5RV.js.map +0 -1
- package/dist/chunk-VHK2OUCW.js +0 -38
- package/dist/chunk-VHK2OUCW.js.map +0 -1
- package/dist/chunk-VHTAVROO.js +0 -53
- package/dist/chunk-VHTAVROO.js.map +0 -1
- package/dist/chunk-VM4RMQQN.js +0 -11
- package/dist/chunk-VM4RMQQN.js.map +0 -1
- package/dist/chunk-VZX4HLBM.js +0 -84
- package/dist/chunk-VZX4HLBM.js.map +0 -1
- package/dist/chunk-W47V2F3Q.js +0 -115
- package/dist/chunk-W47V2F3Q.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-XC7SYZYR.js +0 -86
- package/dist/chunk-XC7SYZYR.js.map +0 -1
- package/dist/chunk-XJA4B3F5.js +0 -68
- package/dist/chunk-XJA4B3F5.js.map +0 -1
- package/dist/chunk-XSENM65D.js +0 -128
- package/dist/chunk-XSENM65D.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-YES6SPDT.js +0 -55
- package/dist/chunk-YES6SPDT.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-YUFFAWNB.js +0 -90
- package/dist/chunk-YUFFAWNB.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-ZAMPCRFJ.js +0 -121
- package/dist/chunk-ZAMPCRFJ.js.map +0 -1
- package/dist/chunk-ZEFOXF2I.js +0 -87
- package/dist/chunk-ZEFOXF2I.js.map +0 -1
- package/dist/chunk-ZJXOHLQE.js +0 -66
- package/dist/chunk-ZJXOHLQE.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
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slide rich-content plugin — Mermaid diagrams.
|
|
3
|
-
*
|
|
4
|
-
* Peer-dep: `mermaid` (optional, ~370 KB raw — lazy + opt-in mandatory).
|
|
5
|
-
* Render is client-only because Mermaid measures DOM nodes during layout;
|
|
6
|
-
* SSR / static render emits a labelled placeholder + source-code fallback.
|
|
7
|
-
*
|
|
8
|
-
* Pipeline contribution (D11 of the rich-content plan):
|
|
9
|
-
* - `hastTransform`: detect `<pre><code class="language-mermaid">…</code></pre>`
|
|
10
|
-
* and replace with `<div class="theo-slide-mermaid-host" data-theo-mermaid-source="…">`.
|
|
11
|
-
* - `components.div`: when div has `data-theo-mermaid-source`, render the
|
|
12
|
-
* `<MermaidDiagram>` React component that lazy-imports `mermaid` and
|
|
13
|
-
* injects the SVG via `dangerouslySetInnerHTML` after `mermaid.render()`.
|
|
14
|
-
*
|
|
15
|
-
* EC-4: complete SVG tag + attribute allow-list (~30 tags) so the rendered SVG
|
|
16
|
-
* survives sanitize. Critical: without these, sanitize strips the SVG entirely.
|
|
17
|
-
*
|
|
18
|
-
* EC-10: SSR placeholder is distinguishable from a render error. Error path
|
|
19
|
-
* surfaces the Mermaid source code in a `<pre>` so consumers can debug + the
|
|
20
|
-
* print path still shows the code (PDF cannot run dynamic Mermaid).
|
|
21
|
-
*/
|
|
22
|
-
import { type FC } from "react";
|
|
23
|
-
import type { SlidePlugin } from "../../plugin.js";
|
|
24
|
-
export interface MermaidPluginOptions {
|
|
25
|
-
/** Mermaid theme name. Defaults to `"default"`. */
|
|
26
|
-
theme?: "default" | "forest" | "dark" | "neutral" | "base";
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* React component that renders Mermaid lazily on mount.
|
|
30
|
-
*
|
|
31
|
-
* SSR / pre-load: renders the source as `<pre>` + `role="img"` for a11y.
|
|
32
|
-
* Client: lazy-loads `mermaid`, calls `mermaid.render()`, then injects the
|
|
33
|
-
* resulting SVG via `dangerouslySetInnerHTML` so React owns the DOM
|
|
34
|
-
* subtree (avoids reconciliation crashes when state flips back to the
|
|
35
|
-
* placeholder — `ref.innerHTML` would mutate under React's feet).
|
|
36
|
-
*
|
|
37
|
-
* The Mermaid output is a TRUSTED string from the `mermaid` lib itself (not
|
|
38
|
-
* user-controlled markup) — the user-supplied source is the DSL, not raw HTML.
|
|
39
|
-
* Using dangerouslySetInnerHTML here is a controlled escape hatch.
|
|
40
|
-
*
|
|
41
|
-
* Peer-dep guard: if `import("mermaid")` fails, falls back to the same
|
|
42
|
-
* pre-formatted source view + an `aria-label` hint (EC-10).
|
|
43
|
-
*/
|
|
44
|
-
export declare const MermaidDiagram: FC<{
|
|
45
|
-
source: string;
|
|
46
|
-
theme?: string;
|
|
47
|
-
}>;
|
|
48
|
-
export declare function mermaidPlugin(opts?: MermaidPluginOptions): SlidePlugin;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SlidePlugin } from "../../plugin.js";
|
|
2
|
-
export interface ShikiPluginOptions {
|
|
3
|
-
/** Dual-theme map — light/dark Shiki theme names. Defaults to `github-light` / `github-dark`. */
|
|
4
|
-
themes?: {
|
|
5
|
-
light: string;
|
|
6
|
-
dark: string;
|
|
7
|
-
};
|
|
8
|
-
/** Languages to pre-load. Unknown languages pass-through. Defaults to a tech-stack baseline. */
|
|
9
|
-
langs?: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare function shikiPlugin(opts?: ShikiPluginOptions): SlidePlugin;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sanitize schema for slide body hast trees.
|
|
3
|
-
*
|
|
4
|
-
* ADR D8: `defaultSchema` from `hast-util-sanitize` is used WITHOUT extensions
|
|
5
|
-
* in v0.1. The default schema:
|
|
6
|
-
* - Strips `<script>`, `<iframe>`, `<object>`, `<embed>`, `<form>`, `<input>`,
|
|
7
|
-
* `<style>`, `<link>` and other dangerous tags.
|
|
8
|
-
* - Keeps `clobberPrefix: "user-content-"` so user-supplied IDs cannot
|
|
9
|
-
* clobber DOM lookups.
|
|
10
|
-
* - Allows the standard CommonMark + GFM safe subset (h1-h6, p, ul, ol, li,
|
|
11
|
-
* blockquote, code, pre, a[href], img[src/alt], table family, em, strong,
|
|
12
|
-
* del, br, hr, etc.).
|
|
13
|
-
*
|
|
14
|
-
* A `looseSlideSanitizeSchema` (with `figure`/`figcaption`) is an explicit
|
|
15
|
-
* opt-in for v0.2 — gated by security review.
|
|
16
|
-
*/
|
|
17
|
-
import type { Element, Root } from "hast";
|
|
18
|
-
import type { MergedSanitizeExtensions } from "./plugin.js";
|
|
19
|
-
/**
|
|
20
|
-
* Lazy accessor for the sanitize schema.
|
|
21
|
-
*
|
|
22
|
-
* Always merges `defaultSchema` with the Tier 1 baseline (aside + className).
|
|
23
|
-
* When `extensions` is provided, plugin-declared tag names + attributes are
|
|
24
|
-
* unioned on top (D17 / EC-3). Plugins NEVER bypass sanitize — they declare
|
|
25
|
-
* what they need via `sanitizeSchemaExtension`.
|
|
26
|
-
*
|
|
27
|
-
* Implementation notes:
|
|
28
|
-
* - The baseline schema (default + Tier 1) is cached.
|
|
29
|
-
* - Plugin-merged schemas are NOT cached (depends on combination).
|
|
30
|
-
*/
|
|
31
|
-
export declare function getSlideSanitizeSchema(extensions?: MergedSanitizeExtensions): Promise<import("hast-util-sanitize").Schema>;
|
|
32
|
-
/** Count elements by tagName in a hast tree. Used for BANNED_TAG detection (ADR D13). */
|
|
33
|
-
export declare function collectTagCounts(tree: Root | Element): Map<string, number>;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for the Slide YAML frontmatter (`SlideFrontmatter`) and the
|
|
3
|
-
* composed `SlideInput` (frontmatter + body).
|
|
4
|
-
*
|
|
5
|
-
* Design (see RFC 0002 and the plan in
|
|
6
|
-
* `.claude/knowledge-base/plans/slide-view-primitive-plan.md` §16.3 and ADRs D4 / D14):
|
|
7
|
-
*
|
|
8
|
-
* - **`.strict()`** on frontmatter — unknown keys produce `INVALID_FRONTMATTER`
|
|
9
|
-
* with a precise path, so an LLM can self-correct.
|
|
10
|
-
* - Numeric values are `.finite()` to reject `NaN` / `Infinity`. (Currently no
|
|
11
|
-
* numeric directives ship; keep the helper for future fields.)
|
|
12
|
-
* - String values capped to defensible sizes to reject DoS-shaped inputs.
|
|
13
|
-
* - `body` capped to 50 KB (≈30 slides' worth of text) per the sanity rule.
|
|
14
|
-
* - `theme` is the canonical enum of built-in themes. Custom themes are not
|
|
15
|
-
* registered via frontmatter in v0.1 — caller wraps `<Slide>` with their
|
|
16
|
-
* own CSS overrides.
|
|
17
|
-
*/
|
|
18
|
-
import { z } from "zod";
|
|
19
|
-
/** Built-in slide themes. Adding a theme means landing a CSS file in `themes/`. */
|
|
20
|
-
export declare const slideTheme: z.ZodEnum<{
|
|
21
|
-
default: "default";
|
|
22
|
-
"violet-forge": "violet-forge";
|
|
23
|
-
}>;
|
|
24
|
-
export type SlideTheme = z.infer<typeof slideTheme>;
|
|
25
|
-
/** Built-in slide layouts (rich-content plan T2.1). */
|
|
26
|
-
export declare const slideLayout: z.ZodEnum<{
|
|
27
|
-
section: "section";
|
|
28
|
-
title: "title";
|
|
29
|
-
default: "default";
|
|
30
|
-
"two-column": "two-column";
|
|
31
|
-
"image-right": "image-right";
|
|
32
|
-
"image-left": "image-left";
|
|
33
|
-
"code-output": "code-output";
|
|
34
|
-
}>;
|
|
35
|
-
export type SlideLayout = z.infer<typeof slideLayout>;
|
|
36
|
-
/**
|
|
37
|
-
* Sanitize a `backgroundImage` URL.
|
|
38
|
-
*
|
|
39
|
-
* Allowed: `http(s)://...` URLs (validated via `URL` constructor).
|
|
40
|
-
* Rejected: `javascript:`, `vbscript:`, all `data:` URLs (EC-7 — perf + DoS).
|
|
41
|
-
* Accepts a bare URL or a `url(...)` wrapper. Returns the unwrapped URL on
|
|
42
|
-
* success, `null` on rejection.
|
|
43
|
-
*/
|
|
44
|
-
export declare function sanitizeBgUrl(input: string): string | null;
|
|
45
|
-
/** YAML frontmatter accepted by `<Slide>`. */
|
|
46
|
-
export declare const slideFrontmatter: z.ZodObject<{
|
|
47
|
-
theme: z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
default: "default";
|
|
49
|
-
"violet-forge": "violet-forge";
|
|
50
|
-
}>>;
|
|
51
|
-
layout: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
section: "section";
|
|
53
|
-
title: "title";
|
|
54
|
-
default: "default";
|
|
55
|
-
"two-column": "two-column";
|
|
56
|
-
"image-right": "image-right";
|
|
57
|
-
"image-left": "image-left";
|
|
58
|
-
"code-output": "code-output";
|
|
59
|
-
}>>;
|
|
60
|
-
backgroundImage: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
61
|
-
backgroundGradient: z.ZodOptional<z.ZodString>;
|
|
62
|
-
header: z.ZodOptional<z.ZodString>;
|
|
63
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
64
|
-
paginate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skip">, z.ZodLiteral<"hold">]>>;
|
|
65
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
66
|
-
color: z.ZodOptional<z.ZodString>;
|
|
67
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$strict>;
|
|
69
|
-
export type SlideFrontmatter = z.infer<typeof slideFrontmatter>;
|
|
70
|
-
/** Composed input: validated frontmatter object + raw markdown body string. */
|
|
71
|
-
export declare const slideInput: z.ZodObject<{
|
|
72
|
-
frontmatter: z.ZodObject<{
|
|
73
|
-
theme: z.ZodOptional<z.ZodEnum<{
|
|
74
|
-
default: "default";
|
|
75
|
-
"violet-forge": "violet-forge";
|
|
76
|
-
}>>;
|
|
77
|
-
layout: z.ZodOptional<z.ZodEnum<{
|
|
78
|
-
section: "section";
|
|
79
|
-
title: "title";
|
|
80
|
-
default: "default";
|
|
81
|
-
"two-column": "two-column";
|
|
82
|
-
"image-right": "image-right";
|
|
83
|
-
"image-left": "image-left";
|
|
84
|
-
"code-output": "code-output";
|
|
85
|
-
}>>;
|
|
86
|
-
backgroundImage: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
87
|
-
backgroundGradient: z.ZodOptional<z.ZodString>;
|
|
88
|
-
header: z.ZodOptional<z.ZodString>;
|
|
89
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
90
|
-
paginate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skip">, z.ZodLiteral<"hold">]>>;
|
|
91
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
92
|
-
color: z.ZodOptional<z.ZodString>;
|
|
93
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
94
|
-
}, z.core.$strict>;
|
|
95
|
-
body: z.ZodString;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
export type SlideInput = z.infer<typeof slideInput>;
|
|
98
|
-
/** Discrete validation-error codes — kept centralized so consumers can pattern-match safely. */
|
|
99
|
-
export type SlideValidationErrorCode = "INVALID_FRONTMATTER" | "FRONTMATTER_TOO_LARGE" | "MULTIPLE_SLIDES" | "CONTENT_TOO_LARGE" | "BANNED_TAG" | "BANNED_ATTRIBUTE" | "INVALID_ASPECT_RATIO" | "PLUGIN_ERROR" | "PLUGIN_PEER_DEP_MISSING" | "MARPIT_BG_UNSAFE_URL";
|
|
100
|
-
export interface SlideValidationError {
|
|
101
|
-
/** Path inside the input (frontmatter key, ['body'], or []). */
|
|
102
|
-
path: (string | number)[];
|
|
103
|
-
/** Human-readable explanation. */
|
|
104
|
-
message: string;
|
|
105
|
-
/** Discriminator for consumers. */
|
|
106
|
-
code: SlideValidationErrorCode;
|
|
107
|
-
/** Offending value when extractable from Zod's `received` or by walking the input. */
|
|
108
|
-
got?: unknown;
|
|
109
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type FC } from "react";
|
|
2
|
-
import type { SlidePlugin } from "./plugin.js";
|
|
3
|
-
import type { SlideValidationError } from "./schema.js";
|
|
4
|
-
import type { SlideTheme } from "./themes/index.js";
|
|
5
|
-
export type { SlideTheme } from "./themes/index.js";
|
|
6
|
-
export type { SlideValidationError, SlideValidationErrorCode, } from "./schema.js";
|
|
7
|
-
export type { SlidePlugin } from "./plugin.js";
|
|
8
|
-
export interface SlideAspectRatio {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
}
|
|
12
|
-
export interface SlideProps {
|
|
13
|
-
/**
|
|
14
|
-
* Slide markdown. CommonMark + GFM + optional YAML frontmatter delimited
|
|
15
|
-
* by `---`. Top-level horizontal rules (`---` on their own line outside
|
|
16
|
-
* frontmatter) imply a deck split and trigger `MULTIPLE_SLIDES`; only the
|
|
17
|
-
* first slide is rendered.
|
|
18
|
-
*
|
|
19
|
-
* Note: `<figure>`/`<figcaption>` tags are stripped by the default
|
|
20
|
-
* sanitize schema (D8). Use `<img>` directly for captionless images.
|
|
21
|
-
*/
|
|
22
|
-
markdown: string;
|
|
23
|
-
/** Theme name. Defaults to `"default"`. */
|
|
24
|
-
theme?: SlideTheme;
|
|
25
|
-
/**
|
|
26
|
-
* Aspect ratio of the logical canvas. Default `"16:9"` → 1280×720.
|
|
27
|
-
* Custom `{ width, height }` accepted; zero/negative/NaN fallback to 16:9.
|
|
28
|
-
*/
|
|
29
|
-
aspectRatio?: "16:9" | "4:3" | SlideAspectRatio;
|
|
30
|
-
/** Lower clamp for container-fit scale. Default 0.1. */
|
|
31
|
-
minScale?: number;
|
|
32
|
-
/** Upper clamp for container-fit scale. Default 4. */
|
|
33
|
-
maxScale?: number;
|
|
34
|
-
/** Best-effort callback invoked in useEffect when validation/sanitize emits errors. */
|
|
35
|
-
onValidationError?: (errors: SlideValidationError[]) => void;
|
|
36
|
-
/** Override individual element renderers (passed to hast-util-to-jsx-runtime). */
|
|
37
|
-
components?: Record<string, FC<any>>;
|
|
38
|
-
/**
|
|
39
|
-
* Rich-content plugins (Tier 2). Each plugin transforms the mdast/hast tree
|
|
40
|
-
* or adds React component overrides. Pass MEMOIZED arrays to avoid re-parses
|
|
41
|
-
* on every render (D15).
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* const plugins = useMemo(() => [emojiPlugin(), shikiPlugin()], []);
|
|
45
|
-
* <Slide markdown={md} plugins={plugins} />
|
|
46
|
-
*/
|
|
47
|
-
plugins?: SlidePlugin[];
|
|
48
|
-
/** Accessible label for the slide. Defaults to `"Slide"`. */
|
|
49
|
-
"aria-label"?: string;
|
|
50
|
-
/** Optional class applied to the outer host element (sizing/positioning hook). */
|
|
51
|
-
className?: string;
|
|
52
|
-
}
|
|
53
|
-
export declare const Slide: FC<SlideProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Theme registry for the Slide primitive. Built-in themes that ship with the
|
|
3
|
-
* `@theokit/ui/slide` subpath. Custom themes are NOT registered through this
|
|
4
|
-
* module in v0.1 — consumers override CSS variables on `.theo-slide` directly.
|
|
5
|
-
*/
|
|
6
|
-
export declare const slideThemes: readonly ["default", "violet-forge"];
|
|
7
|
-
export type SlideTheme = (typeof slideThemes)[number];
|
|
8
|
-
/** Returns true if `value` is a recognized built-in theme. */
|
|
9
|
-
export declare function isSlideTheme(value: unknown): value is SlideTheme;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Container-fit hook for the Slide primitive.
|
|
3
|
-
*
|
|
4
|
-
* Observes the host element via `ResizeObserver` and computes a CSS scale
|
|
5
|
-
* factor that fits the fixed logical canvas (default 1280×720) inside it,
|
|
6
|
-
* preserving aspect ratio. Clamped to `[minScale, maxScale]`.
|
|
7
|
-
*
|
|
8
|
-
* Algorithm: `scale = clamp(min(W / canvasW, H / canvasH), min, max)`.
|
|
9
|
-
*
|
|
10
|
-
* Adapted from Reveal.js `transformSlides` (see reference doc §4.5 / §14.2).
|
|
11
|
-
*
|
|
12
|
-
* Cleanup: disconnects the observer on unmount or when deps change.
|
|
13
|
-
*/
|
|
14
|
-
import { type RefObject } from "react";
|
|
15
|
-
export interface UseSlideFitOptions {
|
|
16
|
-
/** Lower clamp for scale. Default 0.1. */
|
|
17
|
-
minScale?: number;
|
|
18
|
-
/** Upper clamp for scale. Default 4. */
|
|
19
|
-
maxScale?: number;
|
|
20
|
-
}
|
|
21
|
-
export declare function useSlideFit(ref: RefObject<HTMLElement | null>, canvasW: number, canvasH: number, opts?: UseSlideFitOptions): number;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Async validator for slide markdown input.
|
|
3
|
-
*
|
|
4
|
-
* Returns `Promise<ValidationResult>` (ADR D11 — sync impossible because
|
|
5
|
-
* `yaml` and `mdast-util-from-markdown` are lazy-imported peer-deps).
|
|
6
|
-
*
|
|
7
|
-
* Pipeline:
|
|
8
|
-
* 1. Strip BOM + extract frontmatter (`frontmatter.ts`).
|
|
9
|
-
* 2. Reject `FRONTMATTER_TOO_LARGE` early if raw > 10 KB (ADR D14).
|
|
10
|
-
* 3. Parse YAML in safe mode → validate against `slideFrontmatter` (Zod).
|
|
11
|
-
* 4. Validate body length → emit `CONTENT_TOO_LARGE` if > 50 KB.
|
|
12
|
-
* 5. Detect multi-slide via mdast `thematicBreak` walk (ADR D12) — not
|
|
13
|
-
* a regex, so `---` inside fenced code blocks does not false-positive.
|
|
14
|
-
* 6. Return `{ ok, input, errors[] }`.
|
|
15
|
-
*
|
|
16
|
-
* Errors are structured so an LLM can self-correct from the callback.
|
|
17
|
-
*/
|
|
18
|
-
import { type SlideInput, type SlideValidationError } from "./schema.js";
|
|
19
|
-
export type ValidationResult = {
|
|
20
|
-
ok: true;
|
|
21
|
-
input: SlideInput;
|
|
22
|
-
errors: SlideValidationError[];
|
|
23
|
-
} | {
|
|
24
|
-
ok: false;
|
|
25
|
-
errors: SlideValidationError[];
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Validate the markdown input. Returns errors structured for LLM self-correction.
|
|
29
|
-
*
|
|
30
|
-
* Async because frontmatter YAML parsing and mdast multi-slide detection both
|
|
31
|
-
* use lazy-imported peer-deps (yaml + mdast-util-from-markdown).
|
|
32
|
-
*/
|
|
33
|
-
export declare function validateSlide(markdown: string): Promise<ValidationResult>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StepsRail, type RailStep } from "./steps-rail.js";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export interface RailStep {
|
|
3
|
-
id: string | number;
|
|
4
|
-
label?: ReactNode;
|
|
5
|
-
/**
|
|
6
|
-
* Visual state: "complete", "current", "pending".
|
|
7
|
-
*/
|
|
8
|
-
state?: "complete" | "current" | "pending";
|
|
9
|
-
}
|
|
10
|
-
interface StepsRailProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
11
|
-
steps: RailStep[];
|
|
12
|
-
/**
|
|
13
|
-
* Optional label rendered at the top of the rail (e.g. "STEPS").
|
|
14
|
-
*/
|
|
15
|
-
title?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* StepsRail — vertical numbered rail with connecting line.
|
|
19
|
-
*
|
|
20
|
-
* Mirrors the file-organisation wiremock right rail: 5 numbered dots, current
|
|
21
|
-
* highlighted, line connecting them.
|
|
22
|
-
*/
|
|
23
|
-
declare const StepsRail: import("react").ForwardRefExoticComponent<StepsRailProps & import("react").RefAttributes<HTMLElement>>;
|
|
24
|
-
export { StepsRail };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SubAgentDispatch, type SubAgentRun, type SubAgentState, } from "./sub-agent-dispatch.js";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export type SubAgentState = "spawning" | "running" | "completed" | "failed" | "cancelled";
|
|
3
|
-
export interface SubAgentRun {
|
|
4
|
-
id: string;
|
|
5
|
-
/** Profile name (matches AgentProfile.name). */
|
|
6
|
-
agent: string;
|
|
7
|
-
/** Short task description given to the sub-agent. */
|
|
8
|
-
task: string;
|
|
9
|
-
state: SubAgentState;
|
|
10
|
-
/** Optional duration label. */
|
|
11
|
-
duration?: string;
|
|
12
|
-
/** Optional last status line (preview of the latest event). */
|
|
13
|
-
lastEvent?: string;
|
|
14
|
-
/** Optional result summary (one-liner). */
|
|
15
|
-
result?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
interface SubAgentDispatchProps extends HTMLAttributes<HTMLElement> {
|
|
18
|
-
run: SubAgentRun;
|
|
19
|
-
/** When provided, renders a cancel button while the run is in flight. */
|
|
20
|
-
onCancel?: (id: string) => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* SubAgentDispatch — visualization for a Task() / sub-agent invocation.
|
|
24
|
-
*
|
|
25
|
-
* Shows the agent name, the task summary, current state, an inline event
|
|
26
|
-
* preview, and an optional result. Use inside the agent timeline to make
|
|
27
|
-
* delegation visible.
|
|
28
|
-
*/
|
|
29
|
-
declare const SubAgentDispatch: import("react").ForwardRefExoticComponent<SubAgentDispatchProps & import("react").RefAttributes<HTMLElement>>;
|
|
30
|
-
export { SubAgentDispatch };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SystemPromptEditor } from "./system-prompt-editor.js";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
interface SystemPromptEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
-
/** Vendor / default system prompt (read-only). */
|
|
4
|
-
defaultPrompt: string;
|
|
5
|
-
/** Current override; pass empty string for "use default". */
|
|
6
|
-
override: string;
|
|
7
|
-
onOverrideChange: (next: string) => void;
|
|
8
|
-
/** Approximate token count for the active prompt. */
|
|
9
|
-
tokenEstimate?: number;
|
|
10
|
-
title?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* SystemPromptEditor — surface the agent's system prompt with a clear
|
|
14
|
-
* "vendor default" vs "user override" toggle.
|
|
15
|
-
*
|
|
16
|
-
* Behavior:
|
|
17
|
-
* - When override is empty, the textarea shows the default (greyed out,
|
|
18
|
-
* editable starts blank).
|
|
19
|
-
* - When user types, override takes effect.
|
|
20
|
-
* - "Reset to default" wipes the override.
|
|
21
|
-
*
|
|
22
|
-
* Critical for transparency: a user must be able to see and edit the prompt.
|
|
23
|
-
*/
|
|
24
|
-
declare const SystemPromptEditor: import("react").ForwardRefExoticComponent<SystemPromptEditorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
-
export { SystemPromptEditor };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TaskNode, TaskPlan, type PlanNode, type PlanNodeStatus } from "./task-plan.js";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export type PlanNodeStatus = "pending" | "running" | "done" | "skipped" | "failed";
|
|
3
|
-
export interface PlanNode {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
status: PlanNodeStatus;
|
|
7
|
-
/** Optional details / sub-explanation. */
|
|
8
|
-
detail?: string;
|
|
9
|
-
/** Sub-nodes (rendered indented). */
|
|
10
|
-
children?: PlanNode[];
|
|
11
|
-
}
|
|
12
|
-
interface TaskNodeProps extends HTMLAttributes<HTMLLIElement> {
|
|
13
|
-
node: PlanNode;
|
|
14
|
-
depth?: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* TaskNode — single row in a task plan. Renders its own children recursively
|
|
18
|
-
* with increasing indentation.
|
|
19
|
-
*/
|
|
20
|
-
declare const TaskNode: import("react").ForwardRefExoticComponent<TaskNodeProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
21
|
-
interface TaskPlanProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
22
|
-
nodes: PlanNode[];
|
|
23
|
-
/** Header title. */
|
|
24
|
-
title?: ReactNode;
|
|
25
|
-
/** Summary line shown next to the title (e.g. "3 of 7 done"). */
|
|
26
|
-
summary?: ReactNode;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* TaskPlan — hierarchical task plan, à la Claude "plan mode".
|
|
30
|
-
*
|
|
31
|
-
* The agent emits a structured plan; the user sees each step progress from
|
|
32
|
-
* pending → running → done (or failed/skipped). Children render with one
|
|
33
|
-
* extra indent level and a left border to suggest hierarchy.
|
|
34
|
-
*/
|
|
35
|
-
declare const TaskPlan: import("react").ForwardRefExoticComponent<TaskPlanProps & import("react").RefAttributes<HTMLElement>>;
|
|
36
|
-
export { TaskNode, TaskPlan };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TerminalPanel, type TerminalLine } from "./terminal-panel.js";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export interface TerminalLine {
|
|
3
|
-
id: string;
|
|
4
|
-
/**
|
|
5
|
-
* Visual kind: command (prompted), stdout, stderr, ok (success), prompt (active line).
|
|
6
|
-
*/
|
|
7
|
-
kind?: "command" | "stdout" | "stderr" | "ok" | "prompt";
|
|
8
|
-
content: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
interface TerminalPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
11
|
-
title?: ReactNode;
|
|
12
|
-
lines: TerminalLine[];
|
|
13
|
-
/**
|
|
14
|
-
* Optional prompt prefix for commands, defaults to "$".
|
|
15
|
-
*/
|
|
16
|
-
promptPrefix?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Live-region politeness for screen readers. Use `"polite"` when streaming
|
|
19
|
-
* fresh output so assistive tech announces new lines without interrupting.
|
|
20
|
-
* Default `"off"` for static / historical views.
|
|
21
|
-
*/
|
|
22
|
-
live?: "off" | "polite";
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* TerminalPanel — minimal terminal output viewer.
|
|
26
|
-
*
|
|
27
|
-
* Visual: dark card with mono font, "$ " prefix on command lines, color-coded
|
|
28
|
-
* stdout/stderr/success. No interactivity (read-only) — pair with your own
|
|
29
|
-
* pty/xterm for live shells if needed.
|
|
30
|
-
*/
|
|
31
|
-
declare const TerminalPanel: import("react").ForwardRefExoticComponent<TerminalPanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
-
export { TerminalPanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ThinkingLevelSelector, type ThinkingLevel, type ThinkingLevelOrInherited, type ThinkingLevelSelectorProps, } from "./thinking-level-selector.js";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ThinkingLevelSelector — multi-state combobox for LLM reasoning budget.
|
|
3
|
-
*
|
|
4
|
-
* Mirrors the OpenClaw Control UI thinking selector. Values follow the SDK's
|
|
5
|
-
* `Agent.thinking` parameter ("minimal" | "low" | "medium" | "high" | "xhigh")
|
|
6
|
-
* plus a sentinel "off" and the special "inherited" mode that means "use the
|
|
7
|
-
* value resolved by the parent agent/session".
|
|
8
|
-
*
|
|
9
|
-
* Pure UI primitive. No backend dependency. Consumer wires `value` from agent
|
|
10
|
-
* state and persists `onChange` selections wherever it pleases.
|
|
11
|
-
*
|
|
12
|
-
* Phase 1 of `theokit-ui-parity-plan.md` (T1.1).
|
|
13
|
-
*/
|
|
14
|
-
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
15
|
-
export type ThinkingLevelOrInherited = ThinkingLevel | "inherited";
|
|
16
|
-
export interface ThinkingLevelSelectorProps {
|
|
17
|
-
value: ThinkingLevelOrInherited;
|
|
18
|
-
inheritedValue?: ThinkingLevel;
|
|
19
|
-
onChange: (value: ThinkingLevelOrInherited) => void;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
className?: string;
|
|
22
|
-
"data-testid"?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const ThinkingLevelSelector: import("react").ForwardRefExoticComponent<ThinkingLevelSelectorProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
export interface TokenUsagePoint {
|
|
3
|
-
/** ISO date or friendly label for the x-axis tooltip. */
|
|
4
|
-
label: string;
|
|
5
|
-
/** Input tokens for this period (e.g. day). */
|
|
6
|
-
input: number;
|
|
7
|
-
/** Output tokens for this period. */
|
|
8
|
-
output: number;
|
|
9
|
-
}
|
|
10
|
-
interface TokenUsageChartProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
11
|
-
points: TokenUsagePoint[];
|
|
12
|
-
/** Title above the chart. */
|
|
13
|
-
title?: ReactNode;
|
|
14
|
-
/** Chart height in px. Default 160. */
|
|
15
|
-
height?: number;
|
|
16
|
-
/** Show legend below the chart. Default true. */
|
|
17
|
-
showLegend?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Maximum number of bars to render. When `points.length` exceeds this, the
|
|
20
|
-
* series is binned (summed in equal-width windows) so the chart stays
|
|
21
|
-
* legible and SVG node count stays bounded. Default 60.
|
|
22
|
-
*/
|
|
23
|
-
maxBars?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Fix the y-axis maximum (the token value mapped to 100% height) so multiple
|
|
26
|
-
* charts share a scale. When omitted, the scale auto-fits the data. Bars whose
|
|
27
|
-
* value exceeds `maxScale` are clamped to 100% (the tooltip + a11y table still
|
|
28
|
-
* show the true number).
|
|
29
|
-
*/
|
|
30
|
-
maxScale?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Render input and output as two adjacent (grouped) bars per period instead of
|
|
33
|
-
* one stacked bar. Default false (stacked).
|
|
34
|
-
*/
|
|
35
|
-
splitSeries?: boolean;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* TokenUsageChart — stacked-bar chart of input vs output tokens over time.
|
|
39
|
-
*
|
|
40
|
-
* Pure SVG, no chart lib. Width is fluid; bars adjust to viewBox. Hover any
|
|
41
|
-
* bar to see the breakdown in the tooltip slot below.
|
|
42
|
-
*/
|
|
43
|
-
declare const TokenUsageChart: import("react").ForwardRefExoticComponent<TokenUsageChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
-
export { TokenUsageChart };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure aggregate + transpose helpers for `TokenUsagePoint[]` (M5-7).
|
|
3
|
-
* No React — usable to drive metric displays, fixed-scale comparisons, or
|
|
4
|
-
* other chart surfaces.
|
|
5
|
-
*/
|
|
6
|
-
import type { TokenUsagePoint } from "./token-usage-chart.js";
|
|
7
|
-
export interface UsageMetrics {
|
|
8
|
-
totalInput: number;
|
|
9
|
-
totalOutput: number;
|
|
10
|
-
total: number;
|
|
11
|
-
/** The largest per-period total (`input + output`); 0 for an empty series. */
|
|
12
|
-
peak: number;
|
|
13
|
-
pointCount: number;
|
|
14
|
-
}
|
|
15
|
-
/** Aggregate totals + the peak per-period total. Pure. */
|
|
16
|
-
export declare function toUsageMetrics(points: TokenUsagePoint[]): UsageMetrics;
|
|
17
|
-
export interface UsageSeries {
|
|
18
|
-
labels: string[];
|
|
19
|
-
input: number[];
|
|
20
|
-
output: number[];
|
|
21
|
-
}
|
|
22
|
-
/** Transpose stacked points into parallel `labels`/`input`/`output` arrays. Pure. */
|
|
23
|
-
export declare function splitUsagePoints(points: TokenUsagePoint[]): UsageSeries;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolCall } from "./tool-call.js";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
interface ToolCallProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/** Tool name e.g. "bash", "read_file", "edit_file". */
|
|
4
|
-
name?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Summary label e.g. "Ran 2 commands", "Read 18 files".
|
|
7
|
-
*/
|
|
8
|
-
summary: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Collapsible payload (e.g. command, stdout, file list).
|
|
11
|
-
*/
|
|
12
|
-
detail?: ReactNode;
|
|
13
|
-
defaultOpen?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* If true, hides the wrench icon (useful when grouping by name elsewhere).
|
|
16
|
-
*/
|
|
17
|
-
hideIcon?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* ToolCall — collapsible row representing an agent tool invocation.
|
|
21
|
-
*
|
|
22
|
-
* Visual: subtle muted container, wrench icon, summary in body text,
|
|
23
|
-
* chevron rotates on expand. Pairs with `<ToolResult>` for the rendered output.
|
|
24
|
-
*
|
|
25
|
-
* Typical usage inside a ChatMessage assistant body:
|
|
26
|
-
*
|
|
27
|
-
* <ToolCall summary="Read 18 files" detail={<ToolResult>{output}</ToolResult>} />
|
|
28
|
-
*/
|
|
29
|
-
declare const ToolCall: import("react").ForwardRefExoticComponent<ToolCallProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
-
export { ToolCall };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ToolCallCard, type ToolCallStatus } from "./tool-call-card.js";
|