@ckeditor/ckeditor5-ai 46.1.1-alpha.3 → 47.0.0-alpha.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/LICENSE.md +18 -5
- package/README.md +10 -9
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2648 -0
- package/dist/index.css +3047 -0
- package/dist/index.js +4 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +162 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/aiassistant/legacyerrors.js +23 -0
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +82 -31
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +101 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +19 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +154 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/legacyerrors.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/model/aichatconversation
|
|
7
|
+
*/
|
|
8
|
+
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { type AIConnector } from '../../aicore/aiconnector.js';
|
|
10
|
+
import { AIChatContext, type AIChatContextConfig, type AIContextProvider, type AIContextResource, type AIContextResourceState } from './aichatcontext.js';
|
|
11
|
+
import { type AIContextItem } from '../../aicore/model/aicontext.js';
|
|
12
|
+
import { AICapabilities, type AICapabilitiesConfig } from '../../aicore/model/aicapabilities.js';
|
|
13
|
+
import type { AIChatModel, AIChatModels } from './aichatmodels.js';
|
|
14
|
+
import { type Editor } from 'ckeditor5/src/core.js';
|
|
15
|
+
import { AIChatInteraction } from './aichatinteraction.js';
|
|
16
|
+
import { type AIQuickActionRequestData } from '../../aiquickactions/aiquickactions.js';
|
|
17
|
+
declare const AIChatConversation_base: {
|
|
18
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
19
|
+
prototype: import("ckeditor5/src/utils.js").Emitter; /**
|
|
20
|
+
* The current interaction in the conversation. Set and unset by {@link #handleUserInteraction}.
|
|
21
|
+
*/
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Represents a conversation between the user and the AI endpoint on top of the
|
|
25
|
+
* {@link module:ai/aichat/model/aichatconnector~AIChatConnector} in the network layer.
|
|
26
|
+
*
|
|
27
|
+
* A conversation hosts a collection of {@link module:ai/aichat/model/aichatinteraction~AIChatInteraction user interactions}.
|
|
28
|
+
*
|
|
29
|
+
* The {@link module:ai/aichat/model/aichatconversation~AIChatConversation#currentInteraction current interaction} in the conversation
|
|
30
|
+
* is the one that is currently being processed by the AI.
|
|
31
|
+
*
|
|
32
|
+
* Note: The conversation funnels (delegates) all events from the
|
|
33
|
+
* {@link module:ai/aichat/model/aichatconversation~AIChatConversation#interactions} and their
|
|
34
|
+
* {@link module:ai/aichat/model/aichatinteraction~AIChatInteraction#replies replies}.
|
|
35
|
+
*/
|
|
36
|
+
export declare class AIChatConversation extends /* #__PURE__ */ AIChatConversation_base {
|
|
37
|
+
/**
|
|
38
|
+
* The unique conversation ID.
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the conversation has been started.
|
|
43
|
+
*
|
|
44
|
+
* This is set to `true` when {@link #start} is called and the conversation is successfully started.
|
|
45
|
+
*/
|
|
46
|
+
isStarted: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The interactions in the conversation.
|
|
49
|
+
*/
|
|
50
|
+
interactions: Array<AIChatInteraction>;
|
|
51
|
+
/**
|
|
52
|
+
* The current interaction in the conversation. Set and unset by {@link #handleUserInteraction}.
|
|
53
|
+
*/
|
|
54
|
+
currentInteraction?: AIChatInteraction;
|
|
55
|
+
/**
|
|
56
|
+
* The selected AI chat model for the conversation.
|
|
57
|
+
*
|
|
58
|
+
* This is set when the user selects a model from the list of available models.
|
|
59
|
+
* If not set, the default model will be used.
|
|
60
|
+
*/
|
|
61
|
+
selectedModel?: AIChatModel;
|
|
62
|
+
/**
|
|
63
|
+
* Service for managing the conversation context.
|
|
64
|
+
*/
|
|
65
|
+
chatContext: AIChatContext;
|
|
66
|
+
/**
|
|
67
|
+
* Service for managing the conversation capabilities.
|
|
68
|
+
*/
|
|
69
|
+
chatCapabilities: AICapabilities;
|
|
70
|
+
/**
|
|
71
|
+
* Service for providing the list of available AI chat models.
|
|
72
|
+
*/
|
|
73
|
+
chatModels: AIChatModels;
|
|
74
|
+
/**
|
|
75
|
+
* @inheritDoc
|
|
76
|
+
*/
|
|
77
|
+
constructor(options: AIChatConversationOptions);
|
|
78
|
+
/**
|
|
79
|
+
* Initializes the conversation.
|
|
80
|
+
*/
|
|
81
|
+
init(contextConfig?: AIChatContextConfig): Promise<void>;
|
|
82
|
+
start(): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Loads a conversation from the backend using the provided conversation ID.
|
|
85
|
+
*/
|
|
86
|
+
load(conversationId: string, sessionId: string): Promise<AIChatConversation>;
|
|
87
|
+
/**
|
|
88
|
+
* Processes messages to create interactions and replies.
|
|
89
|
+
*/
|
|
90
|
+
private _processMessagesToInteractions;
|
|
91
|
+
/**
|
|
92
|
+
* Handles a user interaction by creating a new interaction and starting it.
|
|
93
|
+
*/
|
|
94
|
+
handleUserInteraction({ userMessage, quickActionData }: {
|
|
95
|
+
userMessage: string;
|
|
96
|
+
quickActionData?: AIQuickActionRequestData;
|
|
97
|
+
}): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates a new interaction and stores it in the conversation.
|
|
100
|
+
*/
|
|
101
|
+
createInteraction({ userMessage, contextItems, capabilities, modelId, quickActionData }: {
|
|
102
|
+
userMessage: string;
|
|
103
|
+
contextItems: Map<string, AIContextItem>;
|
|
104
|
+
capabilities: AICapabilitiesConfig;
|
|
105
|
+
modelId: string;
|
|
106
|
+
quickActionData?: AIQuickActionRequestData;
|
|
107
|
+
}): AIChatInteraction;
|
|
108
|
+
/**
|
|
109
|
+
* Gets an interaction in the conversation by its ID.
|
|
110
|
+
*/
|
|
111
|
+
getInteraction(id: string): AIChatInteraction | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Removes an interaction from the conversation by its ID.
|
|
114
|
+
*/
|
|
115
|
+
removeInteraction(id: string): void;
|
|
116
|
+
/**
|
|
117
|
+
* Gets the last of {@link #interactions} in the conversation.
|
|
118
|
+
*/
|
|
119
|
+
get lastInteraction(): AIChatInteraction | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Adds a current document to the context.
|
|
122
|
+
*/
|
|
123
|
+
addCurrentDocumentToContext(label: string): void;
|
|
124
|
+
/**
|
|
125
|
+
* Updates the current document in the context to contain the provided content and version.
|
|
126
|
+
*/
|
|
127
|
+
updateCurrentDocumentInContext({ content, version, sessionId, selections }: {
|
|
128
|
+
content: string | undefined;
|
|
129
|
+
version: number;
|
|
130
|
+
sessionId: string | null;
|
|
131
|
+
selections: Array<{
|
|
132
|
+
start: number;
|
|
133
|
+
end: number;
|
|
134
|
+
htmlFragment: string;
|
|
135
|
+
}>;
|
|
136
|
+
}): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Returns the content of the current interaction's document.
|
|
139
|
+
*/
|
|
140
|
+
getCurrentDocumentContext(): string;
|
|
141
|
+
/**
|
|
142
|
+
* Adds a selection to the context.
|
|
143
|
+
*/
|
|
144
|
+
addSelectionToContext(selection: string): void;
|
|
145
|
+
removeSelectionFromContext(): void;
|
|
146
|
+
/**
|
|
147
|
+
* Adds files to the context.
|
|
148
|
+
*/
|
|
149
|
+
addFilesToContext(files: Array<File>): void;
|
|
150
|
+
/**
|
|
151
|
+
* Adds a URL to the context.
|
|
152
|
+
*/
|
|
153
|
+
addUrlToContext(url: string): void;
|
|
154
|
+
/**
|
|
155
|
+
* Adds a resource from a source provider to the context.
|
|
156
|
+
*/
|
|
157
|
+
addResourceToContext(source: AIContextProvider, resource: AIContextResource): void;
|
|
158
|
+
/**
|
|
159
|
+
* Loads resources for a given source provider.
|
|
160
|
+
*/
|
|
161
|
+
loadSourceResources(sourceId: string, query: string, uid: string): Promise<Array<AIContextResourceState>>;
|
|
162
|
+
/**
|
|
163
|
+
* Removes an item from the conversation context by its ID.
|
|
164
|
+
*/
|
|
165
|
+
removeFromContext(id: string): void;
|
|
166
|
+
/**
|
|
167
|
+
* Toggles the web search functionality on or off.
|
|
168
|
+
*/
|
|
169
|
+
toggleWebSearch(): void;
|
|
170
|
+
/**
|
|
171
|
+
* Toggles the reasoning functionality on or off.
|
|
172
|
+
*/
|
|
173
|
+
toggleReasoning(): void;
|
|
174
|
+
/**
|
|
175
|
+
* Checks if the current document is already in the conversation context.
|
|
176
|
+
*/
|
|
177
|
+
isCurrentDocumentInContext(): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Checks if the current document is already in the conversation context.
|
|
180
|
+
*/
|
|
181
|
+
isCurrentDocumentInConversation(): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Checks if the selection is already in the conversation context.
|
|
184
|
+
*/
|
|
185
|
+
isSelectionInContext(): boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Sets the AI model for the conversation.
|
|
188
|
+
*/
|
|
189
|
+
setModel(model: AIChatModel): Promise<void>;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* An event emitted by {@link module:ai/aichat/model/aichatconversation~AIChatConversation} when a new interaction is created.
|
|
193
|
+
*
|
|
194
|
+
* @eventName ~AIChatConversation#interactionCreated
|
|
195
|
+
*/
|
|
196
|
+
export type AIChatInteractionCreatedEvent = {
|
|
197
|
+
name: 'interactionCreated';
|
|
198
|
+
args: [interaction: AIChatInteraction];
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* An event emitted by {@link module:ai/aichat/model/aichatconversation~AIChatConversation} when an error occurs.
|
|
202
|
+
*
|
|
203
|
+
* @eventName ~AIChatConversation#error
|
|
204
|
+
*/
|
|
205
|
+
export type AIChatConversationError = {
|
|
206
|
+
name: 'error';
|
|
207
|
+
args: [
|
|
208
|
+
{
|
|
209
|
+
interactionId?: string;
|
|
210
|
+
error: CKEditorError;
|
|
211
|
+
fileName?: string;
|
|
212
|
+
url?: string;
|
|
213
|
+
sourceId?: string;
|
|
214
|
+
sourceLabel?: string;
|
|
215
|
+
}
|
|
216
|
+
];
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* An event emitted by {@link module:ai/aichat/model/aichatconversation~AIChatConversation#init} once the conversation was initialized.
|
|
220
|
+
*
|
|
221
|
+
* @eventName ~AIChatConversation#conversationInitialized
|
|
222
|
+
*/
|
|
223
|
+
export type AIChatConversationInitializedEvent = {
|
|
224
|
+
name: 'conversationInitialized';
|
|
225
|
+
args: [
|
|
226
|
+
{
|
|
227
|
+
availableModels: Array<AIChatModel>;
|
|
228
|
+
}
|
|
229
|
+
];
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* An event emitted by {@link module:ai/aichat/model/aichatconversation~AIChatConversation#start} once the conversation was started.
|
|
233
|
+
*
|
|
234
|
+
* @eventName ~AIChatConversation#conversationStarted
|
|
235
|
+
*/
|
|
236
|
+
export type AIChatConversationStartedEvent = {
|
|
237
|
+
name: 'conversationStarted';
|
|
238
|
+
args: [
|
|
239
|
+
{
|
|
240
|
+
conversationId: string;
|
|
241
|
+
selectedModel: AIChatModel;
|
|
242
|
+
}
|
|
243
|
+
];
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* An event emitted by {@link module:ai/aichat/model/aichatconversation~AIChatConversation} when a model is selected.
|
|
247
|
+
*
|
|
248
|
+
* @eventName ~AIChatConversation#modelSelected
|
|
249
|
+
*/
|
|
250
|
+
export type AIChatConversationModelSelectedEvent = {
|
|
251
|
+
name: 'modelSelected';
|
|
252
|
+
args: [
|
|
253
|
+
{
|
|
254
|
+
selectedModel: AIChatModel;
|
|
255
|
+
isDisabled?: boolean;
|
|
256
|
+
}
|
|
257
|
+
];
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Options for the AI chat conversation.
|
|
261
|
+
*/
|
|
262
|
+
export type AIChatConversationOptions = {
|
|
263
|
+
connector: AIConnector;
|
|
264
|
+
chatModels: AIChatModels;
|
|
265
|
+
getEditor?: () => Editor;
|
|
266
|
+
conversationId: string;
|
|
267
|
+
group: string;
|
|
268
|
+
defaultModelId?: string;
|
|
269
|
+
};
|
|
270
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x4d171d=_0x1231;function _0x1231(_0x1764d9,_0x21834b){const _0x3c0b30=_0x3c0b();return _0x1231=function(_0x123187,_0x18b967){_0x123187=_0x123187-0x156;let _0x1b0790=_0x3c0b30[_0x123187];return _0x1b0790;},_0x1231(_0x1764d9,_0x21834b);}(function(_0x4b2db0,_0x5d3606){const _0x50d20e=_0x1231,_0x533d48=_0x4b2db0();while(!![]){try{const _0x8b53c2=-parseInt(_0x50d20e(0x16d))/0x1*(parseInt(_0x50d20e(0x180))/0x2)+parseInt(_0x50d20e(0x1bc))/0x3+-parseInt(_0x50d20e(0x169))/0x4+-parseInt(_0x50d20e(0x17f))/0x5+parseInt(_0x50d20e(0x16c))/0x6+parseInt(_0x50d20e(0x163))/0x7+parseInt(_0x50d20e(0x195))/0x8;if(_0x8b53c2===_0x5d3606)break;else _0x533d48['push'](_0x533d48['shift']());}catch(_0x57f230){_0x533d48['push'](_0x533d48['shift']());}}}(_0x3c0b,0x5103c));import{CKEditorError as _0x1178e8,EmitterMixin as _0x1e8d8d}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x2cb7ba}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xe0fc45,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1894ce}from'./aichatcontext.js';import{AICapabilities as _0x10cc47,CAPABILITIES_MODEL_EVENT_NAMES as _0x1d8e47}from'../../aicore/model/aicapabilities.js';function _0x3c0b(){const _0x358d4d=['conversationId','getAll','getCapabilitiesConfig','currentInteraction','createInteraction','ai-chat-conversation-start-no-model-selected','isCurrentDocumentInContext','startConversation','chatModels','getCurrentDocumentContext','setModel','6305776UVauLV','model','addResourceToContext','reset','reasoning','user','ai-chat-conversation-init-from-id-failed','_extractContextItems','load','getInteraction','chatCapabilities','addCurrentDocumentToContext','delegate','getDefault','content','selectedModel','appendContent','isCurrentDocumentInConversation','removeInteraction','getEditor','getPendingContextItems','modelSelected','group','text-delta','createReply','loadSourceResources','chatContext','length','modification-delta','options','message','fetchConversationMessages','fetchConversation','ai-chat-handle-user-interaction-already-in-progress','fire','type','attributes','conversationInitialized','defaultModelId','1505442YVsIdJ','updateCurrentDocumentInContext','error','init','toLowerCase','addToConversationContext','getDocumentContext','addSelectionToContext','prompt','indexOf','setConversationTitle','removeSelectionFromContext','quickActionData','isAvailable','getMessages','getConversation','lastInteraction','currentReply','ai-chat-conversation-set-model-null','addUrlToContext','text','stack','interactionCreated','3096324mHWBnU','stop','hasOwn','ai-chat-conversation-set-model-not-available','addFilesToContext','contextItems','1742684eegQpQ','ai-chat-conversation-init-failed','destroy','810414ChuoNl','82EWZsDu','webSearch','isStarted','updateCurrentDocument','toggleReasoning','start','ai-chat-handle-user-conversation-not-initialized','conversationStarted','toggleWebSearch','push','title','splice','connector','interactions','capabilities','find','sessionId','_processMessagesToInteractions','2260650qIpEgy','15800VEMKAB','role','assistant','isSelectionInContext','populateFromMessage','set','ai-chat-conversation-start-failed','ai-chat-conversation-already-started','removeFromContext','handleUserInteraction'];_0x3c0b=function(){return _0x358d4d;};return _0x3c0b();}import{AIChatInteraction as _0x117915}from'./aichatinteraction.js';export class AIChatConversation extends _0x1e8d8d(){['id'];[_0x4d171d(0x16f)]=!0x1;[_0x4d171d(0x17a)]=[];[_0x4d171d(0x18d)];[_0x4d171d(0x1a4)];[_0x4d171d(0x179)];[_0x4d171d(0x1b2)];constructor(_0x24d471){const _0x215cd2=_0x4d171d;super(),this[_0x215cd2(0x1b2)]=_0x24d471,this[_0x215cd2(0x179)]=_0x24d471[_0x215cd2(0x179)],this[_0x215cd2(0x192)]=_0x24d471[_0x215cd2(0x192)],this['id']=_0x24d471[_0x215cd2(0x18a)];}async[_0x4d171d(0x1bf)](_0x444ea0){const _0x139bd3=_0x4d171d;try{this[_0x139bd3(0x1af)]=new _0xe0fc45({'connector':this[_0x139bd3(0x179)],'config':_0x444ea0,'ownerId':this['id']}),this[_0x139bd3(0x1af)][_0x139bd3(0x1a1)](..._0x1894ce)['to'](this),this[_0x139bd3(0x1af)][_0x139bd3(0x1bf)](),this[_0x139bd3(0x19f)]=new _0x10cc47(),this[_0x139bd3(0x19f)][_0x139bd3(0x1a1)](..._0x1d8e47)['to'](this),this[_0x139bd3(0x19f)][_0x139bd3(0x1bf)]();const _0x5801cf=await this[_0x139bd3(0x192)][_0x139bd3(0x18b)]();this[_0x139bd3(0x1b7)](_0x139bd3(0x1ba),{'availableModels':_0x5801cf});const _0x2a8788=await this[_0x139bd3(0x192)][_0x139bd3(0x1a2)](this[_0x139bd3(0x1b2)][_0x139bd3(0x1bb)]);_0x2a8788&&await this[_0x139bd3(0x194)](_0x2a8788);}catch(_0x494b1a){const _0x391981=new _0x1178e8(_0x139bd3(0x16a),null,{'message':_0x494b1a[_0x139bd3(0x1b3)]});_0x391981[_0x139bd3(0x161)]=_0x494b1a[_0x139bd3(0x161)],this[_0x139bd3(0x1b7)](_0x139bd3(0x1be),{'error':_0x391981});}}async[_0x4d171d(0x172)](){const _0x161d4a=_0x4d171d;if(this[_0x161d4a(0x16f)])throw new _0x1178e8(_0x161d4a(0x187),null,{'conversation':this});if(!this[_0x161d4a(0x1a4)])throw new _0x1178e8(_0x161d4a(0x18f),null,{'conversation':this});try{const {id:_0x21cca2}=await this[_0x161d4a(0x179)][_0x161d4a(0x191)](this['id'],this[_0x161d4a(0x1b2)][_0x161d4a(0x1ab)])[_0x161d4a(0x15b)]();this['id']=_0x21cca2,this[_0x161d4a(0x16f)]=!0x0,this[_0x161d4a(0x1b7)](_0x161d4a(0x174),{'conversationId':this['id'],'selectedModel':this[_0x161d4a(0x1a4)]});}catch(_0x58b384){const _0x5a9cd5=new _0x1178e8(_0x161d4a(0x186),null,{'message':_0x58b384[_0x161d4a(0x1b3)]});_0x5a9cd5[_0x161d4a(0x161)]=_0x58b384[_0x161d4a(0x161)],this[_0x161d4a(0x1b7)](_0x161d4a(0x1be),{'error':_0x5a9cd5});}}async[_0x4d171d(0x19d)](_0x5ab345,_0x2ed7f7){const _0x579433=_0x4d171d;try{const _0x323859=await this[_0x579433(0x179)][_0x579433(0x1b5)](_0x5ab345)[_0x579433(0x15b)](),_0x410d4d=await this[_0x579433(0x179)][_0x579433(0x1b4)](_0x5ab345)[_0x579433(0x15a)](),_0x579cea=_0x410d4d[0x0][_0x579433(0x196)];this[_0x579433(0x16f)]=!0x0,this['id']=_0x323859['id'],_0x579433(0x177)in _0x323859?this[_0x579433(0x1b7)](_0x579433(0x156),_0x323859[_0x579433(0x177)],!0x0):this[_0x579433(0x1b7)](_0x579433(0x156),'',!0x0);const _0x4e29c3=(await this[_0x579433(0x192)][_0x579433(0x18b)]())[_0x579433(0x17c)](_0x8ec376=>_0x8ec376['id'][_0x579433(0x1c0)]()===_0x579cea[_0x579433(0x1c0)]());return this[_0x579433(0x1a4)]=_0x4e29c3,this[_0x579433(0x1b7)](_0x579433(0x1aa),{'selectedModel':_0x4e29c3,'isDisabled':!0x0}),await this[_0x579433(0x17e)](_0x410d4d,_0x2ed7f7,_0x579cea),this[_0x579433(0x18d)]=void 0x0,this;}catch(_0x16088e){const _0x6c03=new _0x1178e8(_0x579433(0x19b),null,{'message':_0x16088e[_0x579433(0x1b3)],'conversationId':_0x5ab345});throw _0x6c03[_0x579433(0x161)]=_0x16088e[_0x579433(0x161)],this[_0x579433(0x1b7)](_0x579433(0x1be),{'error':_0x6c03}),_0x6c03;}}async[_0x4d171d(0x17e)](_0x3b9c99,_0xe7a8ec,_0x1e2ff8){const _0x52d455=_0x4d171d;let _0x24df30;for(const _0x586c08 of _0x3b9c99)if(_0x52d455(0x19a)===_0x586c08[_0x52d455(0x181)]){const _0x2f7c2c=await this[_0x52d455(0x19c)](_0x586c08),_0x4e6aba={'isReasoningEnabled':Object[_0x52d455(0x165)](_0x586c08[_0x52d455(0x17b)],_0x52d455(0x199)),'isWebSearchEnabled':Object[_0x52d455(0x165)](_0x586c08[_0x52d455(0x17b)],_0x52d455(0x16e))};_0x24df30=this[_0x52d455(0x18e)]({'userMessage':_0x586c08[_0x52d455(0x1c4)],'contextItems':_0x2f7c2c,'capabilities':_0x4e6aba,'modelId':_0x1e2ff8,'quickActionData':_0x586c08[_0x52d455(0x1b9)]?.[_0x52d455(0x158)]}),this[_0x52d455(0x18d)]=_0x24df30,this[_0x52d455(0x1af)][_0x52d455(0x1c1)](this[_0x52d455(0x18d)][_0x52d455(0x168)]);}else{if(_0x52d455(0x182)===_0x586c08[_0x52d455(0x181)]&&_0x24df30)for(const _0x5896aa of _0x586c08[_0x52d455(0x1a3)]){const _0xff0c2a=_0x52d455(0x160)===_0x5896aa[_0x52d455(0x1b8)]?_0x52d455(0x1ac):_0x52d455(0x1b1),_0x4e7070=_0x24df30[_0x52d455(0x1c2)]()?.[_0x52d455(0x17d)]!==_0xe7a8ec;_0x24df30[_0x52d455(0x15d)]=_0x24df30[_0x52d455(0x1ad)]({'type':_0xff0c2a,'isDone':!0x0,'interactionId':_0x24df30['id'],'areActionsDisabled':_0x4e7070}),_0x24df30[_0x52d455(0x15d)][_0x52d455(0x1a5)](_0x5896aa[_0x52d455(0x1a3)]);}}}async[_0x4d171d(0x19c)](_0x282950){const _0x66388f=_0x4d171d,_0x4f4014=new Map();if(!_0x282950[_0x66388f(0x1a3)])return _0x4f4014;for(const _0x45e56f of _0x282950[_0x66388f(0x1a3)]){const _0x2093d1=await this[_0x66388f(0x1af)][_0x66388f(0x184)](_0x45e56f);_0x2093d1&&_0x4f4014[_0x66388f(0x185)](_0x2093d1['id'],_0x2093d1);}return _0x4f4014;}async[_0x4d171d(0x189)]({userMessage:_0x37bea5,quickActionData:_0x5975f2}){const _0x322191=_0x4d171d;if(!this[_0x322191(0x16f)])throw new _0x1178e8(_0x322191(0x173),null,{'conversation':this});if(this[_0x322191(0x18d)])throw new _0x1178e8(_0x322191(0x1b6),null,{'conversation':this});try{const _0x380177=this[_0x322191(0x1af)][_0x322191(0x1a9)](),_0x431f0f=this[_0x322191(0x19f)][_0x322191(0x18c)](),_0x31ebc0=this[_0x322191(0x1a4)]['id'];this[_0x322191(0x18d)]=this[_0x322191(0x18e)]({'userMessage':_0x37bea5,'contextItems':_0x380177,'capabilities':_0x431f0f,'modelId':_0x31ebc0,'quickActionData':_0x5975f2}),await this[_0x322191(0x18d)][_0x322191(0x172)](),this[_0x322191(0x1af)][_0x322191(0x1c1)](this[_0x322191(0x18d)][_0x322191(0x168)]);}catch(_0x32b72d){this[_0x322191(0x1b7)](_0x322191(0x1be),{'interactionId':this[_0x322191(0x18d)]?this[_0x322191(0x18d)]['id']:void 0x0,'error':_0x32b72d});}finally{this[_0x322191(0x18d)]?.[_0x322191(0x164)](),this[_0x322191(0x18d)]=void 0x0;}}[_0x4d171d(0x18e)]({userMessage:_0x12eb3e,contextItems:_0xbe1a03,capabilities:_0x8386a0,modelId:_0x1add60,quickActionData:_0x202f24}){const _0x116571=_0x4d171d,_0x401fa8=new _0x117915({'userMessage':_0x12eb3e,'contextItems':_0xbe1a03,'capabilities':_0x8386a0,'conversationId':this['id'],'connector':this[_0x116571(0x179)],'editor':this[_0x116571(0x1b2)][_0x116571(0x1a8)]&&this[_0x116571(0x1b2)][_0x116571(0x1a8)](),'model':_0x1add60,'quickActionData':_0x202f24});return _0x401fa8[_0x116571(0x1a1)](..._0x2cb7ba)['to'](this),this[_0x116571(0x17a)][_0x116571(0x176)](_0x401fa8),this[_0x116571(0x1b7)](_0x116571(0x162),_0x401fa8),_0x401fa8;}[_0x4d171d(0x19e)](_0x2c7029){const _0x41d5cc=_0x4d171d;return this[_0x41d5cc(0x17a)][_0x41d5cc(0x17c)](_0x582d3e=>_0x582d3e['id']===_0x2c7029);}[_0x4d171d(0x1a7)](_0x296bfe){const _0x5ed5cd=_0x4d171d,_0x463f4b=this[_0x5ed5cd(0x19e)](_0x296bfe);_0x463f4b&&(_0x463f4b[_0x5ed5cd(0x16b)](),this[_0x5ed5cd(0x17a)][_0x5ed5cd(0x178)](this[_0x5ed5cd(0x17a)][_0x5ed5cd(0x1c5)](_0x463f4b),0x1));}get[_0x4d171d(0x15c)](){const _0x3543ff=_0x4d171d;return this[_0x3543ff(0x17a)][this[_0x3543ff(0x17a)][_0x3543ff(0x1b0)]-0x1];}[_0x4d171d(0x1a0)](_0x41a104){const _0x3b4ed5=_0x4d171d;this[_0x3b4ed5(0x1af)][_0x3b4ed5(0x1a0)](_0x41a104);}async[_0x4d171d(0x1bd)]({content:_0x392d25,version:_0x15448b,sessionId:_0x33fbba,selections:_0x21c3cd}){const _0x183d40=_0x4d171d;await this[_0x183d40(0x1af)][_0x183d40(0x170)](_0x392d25,_0x15448b,_0x33fbba,_0x21c3cd);}[_0x4d171d(0x193)](){const _0x1360d8=_0x4d171d;return this[_0x1360d8(0x18d)]?.[_0x1360d8(0x1c2)]()?.[_0x1360d8(0x1a3)]||'';}[_0x4d171d(0x1c3)](_0x2eb24b){const _0x48eca8=_0x4d171d;this[_0x48eca8(0x1af)][_0x48eca8(0x1c3)](_0x2eb24b);}[_0x4d171d(0x157)](){const _0x40d7f1=_0x4d171d;this[_0x40d7f1(0x1af)][_0x40d7f1(0x157)]();}[_0x4d171d(0x167)](_0x5f30d0){const _0x4403ee=_0x4d171d;this[_0x4403ee(0x1af)][_0x4403ee(0x167)](_0x5f30d0);}[_0x4d171d(0x15f)](_0x4bfbf0){const _0x8e314d=_0x4d171d;this[_0x8e314d(0x1af)][_0x8e314d(0x15f)](_0x4bfbf0);}[_0x4d171d(0x197)](_0x384c0a,_0x11fc44){const _0x21121d=_0x4d171d;this[_0x21121d(0x1af)][_0x21121d(0x197)](_0x384c0a,_0x11fc44);}[_0x4d171d(0x1ae)](_0x2ca3ce,_0x29320b,_0xc709d3){const _0x1b775e=_0x4d171d;return this[_0x1b775e(0x1af)][_0x1b775e(0x1ae)](_0x2ca3ce,_0x29320b,_0xc709d3);}[_0x4d171d(0x188)](_0x432698){const _0x3262fe=_0x4d171d;this[_0x3262fe(0x1af)][_0x3262fe(0x188)](_0x432698);}[_0x4d171d(0x175)](){const _0x57c8fb=_0x4d171d;this[_0x57c8fb(0x19f)][_0x57c8fb(0x175)]();}[_0x4d171d(0x171)](){const _0x42d54d=_0x4d171d;this[_0x42d54d(0x19f)][_0x42d54d(0x171)]();}[_0x4d171d(0x190)](){const _0x34a49b=_0x4d171d;return this[_0x34a49b(0x1af)][_0x34a49b(0x190)]();}[_0x4d171d(0x1a6)](){const _0x31c6d6=_0x4d171d;return this[_0x31c6d6(0x1af)][_0x31c6d6(0x1a6)]();}[_0x4d171d(0x183)](){const _0x2b4b98=_0x4d171d;return this[_0x2b4b98(0x1af)][_0x2b4b98(0x183)]();}async[_0x4d171d(0x194)](_0x3722c3){const _0x234bcd=_0x4d171d;if(!_0x3722c3)throw new _0x1178e8(_0x234bcd(0x15e),null,{'conversation':this});if(!0x1===await this[_0x234bcd(0x192)][_0x234bcd(0x159)](_0x3722c3))throw new _0x1178e8(_0x234bcd(0x166),null,{'conversation':this,'model':_0x3722c3});_0x3722c3['id']!==this[_0x234bcd(0x1a4)]?.['id']&&(this[_0x234bcd(0x1a4)]=_0x3722c3,this[_0x234bcd(0x19f)][_0x234bcd(0x198)](),this[_0x234bcd(0x1b7)](_0x234bcd(0x1aa),{'selectedModel':_0x3722c3}));}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type AICapabilitiesConfig } from '../../aicore/model/aicapabilities.js';
|
|
6
|
+
import { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.js';
|
|
7
|
+
import { type AIConnectorRequest } from '../../aicore/aiconnector.js';
|
|
8
|
+
import { type AIContextItem } from '../../aicore/model/aicontext.js';
|
|
9
|
+
import { type AIQuickActionRequestData } from '../../aiquickactions/aiquickactions.js';
|
|
10
|
+
export declare class AIChatInteraction extends AIInteraction {
|
|
11
|
+
/**
|
|
12
|
+
* The user message that was sent to the AI endpoint.
|
|
13
|
+
*/
|
|
14
|
+
readonly userMessage: string;
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the {@link module:ai/aichat/model/aichatconversation~AIChatConversation conversation} that the interaction belongs to.
|
|
17
|
+
*/
|
|
18
|
+
readonly conversationId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The context items that were sent to the AI endpoint.
|
|
21
|
+
*/
|
|
22
|
+
readonly contextItems: Map<string, AIContextItem>;
|
|
23
|
+
/**
|
|
24
|
+
* The capabilities settings that were sent to the AI endpoint.
|
|
25
|
+
*/
|
|
26
|
+
readonly capabilities: AICapabilitiesConfig;
|
|
27
|
+
/**
|
|
28
|
+
* The model of the interaction.
|
|
29
|
+
*/
|
|
30
|
+
readonly model: string;
|
|
31
|
+
/**
|
|
32
|
+
* The quick action data that was sent to the AI endpoint.
|
|
33
|
+
*/
|
|
34
|
+
readonly quickActionData?: AIQuickActionRequestData;
|
|
35
|
+
constructor(options: AIChatInteractionOptions);
|
|
36
|
+
sendRequest(): Promise<AIConnectorRequest>;
|
|
37
|
+
getDocumentContext(): AIContextItem | undefined;
|
|
38
|
+
}
|
|
39
|
+
export type AIChatInteractionOptions = {
|
|
40
|
+
conversationId: string;
|
|
41
|
+
contextItems: Map<string, AIContextItem>;
|
|
42
|
+
capabilities: AICapabilitiesConfig;
|
|
43
|
+
userMessage: string;
|
|
44
|
+
model: string;
|
|
45
|
+
quickActionData?: AIQuickActionRequestData;
|
|
46
|
+
} & AIInteractionOptions;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x33db(_0x1ce914,_0x3cadc4){var _0x165781=_0x1657();return _0x33db=function(_0x33db56,_0x52fa2f){_0x33db56=_0x33db56-0x123;var _0x5e576e=_0x165781[_0x33db56];return _0x5e576e;},_0x33db(_0x1ce914,_0x3cadc4);}var _0xa12045=_0x33db;(function(_0x238cdd,_0x2aa9e5){var _0x1ec032=_0x33db,_0x4e2228=_0x238cdd();while(!![]){try{var _0x25a7cf=parseInt(_0x1ec032(0x128))/0x1*(-parseInt(_0x1ec032(0x130))/0x2)+-parseInt(_0x1ec032(0x134))/0x3*(-parseInt(_0x1ec032(0x13a))/0x4)+-parseInt(_0x1ec032(0x12c))/0x5+-parseInt(_0x1ec032(0x132))/0x6+-parseInt(_0x1ec032(0x13b))/0x7+parseInt(_0x1ec032(0x12d))/0x8*(-parseInt(_0x1ec032(0x126))/0x9)+-parseInt(_0x1ec032(0x123))/0xa*(-parseInt(_0x1ec032(0x127))/0xb);if(_0x25a7cf===_0x2aa9e5)break;else _0x4e2228['push'](_0x4e2228['shift']());}catch(_0x526125){_0x4e2228['push'](_0x4e2228['shift']());}}}(_0x1657,0x7a252));import{AICapabilities as _0x4ef6e8}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xd5432c}from'../../aicore/model/aiinteraction.js';function _0x1657(){var _0x514163=['model','3063510slMmTD','connector','112065NwXtnS','conversationId','getDocumentContext','queryAssistant','getCapabilitiesRequestData','sendRequest','80LAwaxB','5246647tDToJW','380IPksCE','quickActionData','userMessage','135171WgKDee','650925kMndMY','1agvmIR','contextItems','get','mapContextItemsToRequestData','3792220IVxfzB','104nrveTv','capabilities','current-document','563294ExAMOE'];_0x1657=function(){return _0x514163;};return _0x1657();}import{AIChatContext as _0x5ba996}from'./aichatcontext.js';export class AIChatInteraction extends _0xd5432c{[_0xa12045(0x125)];[_0xa12045(0x135)];[_0xa12045(0x129)]=new Map();[_0xa12045(0x131)];[_0xa12045(0x124)];constructor(_0x3e49f7){var _0x2efd47=_0xa12045;super(_0x3e49f7),this[_0x2efd47(0x135)]=_0x3e49f7[_0x2efd47(0x135)],this[_0x2efd47(0x129)]=_0x3e49f7[_0x2efd47(0x129)],this[_0x2efd47(0x12e)]=_0x3e49f7[_0x2efd47(0x12e)],this[_0x2efd47(0x125)]=_0x3e49f7[_0x2efd47(0x125)],this[_0x2efd47(0x131)]=_0x3e49f7[_0x2efd47(0x131)],this[_0x2efd47(0x124)]=_0x3e49f7[_0x2efd47(0x124)];}async[_0xa12045(0x139)](){var _0x5ec35b=_0xa12045;return this[_0x5ec35b(0x133)][_0x5ec35b(0x137)]({'message':this[_0x5ec35b(0x125)],'conversationId':this[_0x5ec35b(0x135)],'parts':_0x5ba996[_0x5ec35b(0x12b)](this[_0x5ec35b(0x129)]),'capabilities':_0x4ef6e8[_0x5ec35b(0x138)](this[_0x5ec35b(0x12e)]),'model':this[_0x5ec35b(0x131)],'quickActionData':this[_0x5ec35b(0x124)]});}[_0xa12045(0x136)](){var _0x441af2=_0xa12045;return this[_0x441af2(0x129)][_0x441af2(0x12a)](_0x441af2(0x12f));}}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type AIConnector, type AIModelData } from '../../aicore/aiconnector.js';
|
|
6
|
+
declare const AIChatModels_base: {
|
|
7
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
8
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Stores the list of available AI chat models.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AIChatModels extends /* #__PURE__ */ AIChatModels_base {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
constructor({ connector }: {
|
|
18
|
+
connector: AIConnector;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Returns a list of available AI chat models.
|
|
22
|
+
*/
|
|
23
|
+
getAll(): Promise<Array<AIChatModel>>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns default AI chat model.
|
|
26
|
+
*/
|
|
27
|
+
getDefault(defaultModelId?: string): Promise<AIChatModel | null>;
|
|
28
|
+
/**
|
|
29
|
+
* Checks whether the given model is available.
|
|
30
|
+
*/
|
|
31
|
+
isAvailable(model: AIChatModel): Promise<boolean>;
|
|
32
|
+
}
|
|
33
|
+
export type AIChatModel = AIModelData;
|
|
34
|
+
/**
|
|
35
|
+
* The configuration of the AI Chat models feature.
|
|
36
|
+
*
|
|
37
|
+
* ```ts
|
|
38
|
+
* ClassicEditor.create( {
|
|
39
|
+
* ai: {
|
|
40
|
+
* chat: {
|
|
41
|
+
* models: {
|
|
42
|
+
* defaultModelId: ...,
|
|
43
|
+
* modelSelectorAlwaysVisible: ...,
|
|
44
|
+
* displayedModels: ...
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* } )
|
|
49
|
+
* .then( ... )
|
|
50
|
+
* .catch( ... );
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
54
|
+
*/
|
|
55
|
+
export type AIChatModelsConfig = {
|
|
56
|
+
/**
|
|
57
|
+
* Decides which model is selected by default when the AI Chat is initialized or when user starts a new conversation.
|
|
58
|
+
*/
|
|
59
|
+
defaultModelId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Decides whether the model selector dropdown is always visible. It is `true` by default, which means
|
|
62
|
+
* the selector will be always visible in the UI. Setting it to `false`, hides the model selector dropdown when:
|
|
63
|
+
*
|
|
64
|
+
* * Only one model is available.
|
|
65
|
+
* * User has selected a model and send first message (which is the point when model cannot be changed).
|
|
66
|
+
*/
|
|
67
|
+
modelSelectorAlwaysVisible?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Decides which models are visible in the model selector dropdown. It can be a string or an array of strings.
|
|
70
|
+
* It is optional and if not provided, all models are supported.
|
|
71
|
+
*
|
|
72
|
+
* If configured, editor will try to match the passed models by their ID, name or provider. Order by which the models are matched
|
|
73
|
+
* is later reflected in the model selector dropdown.
|
|
74
|
+
*/
|
|
75
|
+
displayedModels?: string | Array<string>;
|
|
76
|
+
};
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x268229=_0xcaeb;(function(_0x4793b4,_0x5ef9f5){const _0x204629=_0xcaeb,_0x2e162d=_0x4793b4();while(!![]){try{const _0x1840cc=parseInt(_0x204629(0xd4))/0x1+parseInt(_0x204629(0xc8))/0x2+parseInt(_0x204629(0xdc))/0x3*(-parseInt(_0x204629(0xc3))/0x4)+parseInt(_0x204629(0xd5))/0x5*(-parseInt(_0x204629(0xd0))/0x6)+-parseInt(_0x204629(0xe0))/0x7*(parseInt(_0x204629(0xe1))/0x8)+parseInt(_0x204629(0xc7))/0x9*(parseInt(_0x204629(0xd9))/0xa)+-parseInt(_0x204629(0xdf))/0xb*(parseInt(_0x204629(0xda))/0xc);if(_0x1840cc===_0x5ef9f5)break;else _0x2e162d['push'](_0x2e162d['shift']());}catch(_0x5a42e9){_0x2e162d['push'](_0x2e162d['shift']());}}}(_0x4dc9,0xc84ff));import{EmitterMixin as _0x4b5ca1,logWarning as _0x4e2311}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x4b5ca1(){[_0x268229(0xd6)]=[];[_0x268229(0xce)];constructor({connector:_0x4265e4}){const _0xb8b2d5=_0x268229;super(),this[_0xb8b2d5(0xce)]=_0x4265e4;}async[_0x268229(0xcd)](){const _0x32ded0=_0x268229;if(!this[_0x32ded0(0xd6)][_0x32ded0(0xca)]){const _0x3625c6=this[_0x32ded0(0xce)][_0x32ded0(0xcb)](),_0x20e713=(await _0x3625c6[_0x32ded0(0xd2)]())[_0x32ded0(0xd8)][_0x32ded0(0xdb)]((_0x3216a9,_0x1b0c84)=>{const _0x23763a=_0x32ded0,_0x1b2aa9=Object[_0x23763a(0xd3)](_0x3216a9[_0x23763a(0xc9)])[_0x23763a(0xc6)](_0x5c555b=>_0x5c555b[_0x23763a(0xc5)])[_0x23763a(0xca)];return Object[_0x23763a(0xd3)](_0x1b0c84[_0x23763a(0xc9)])[_0x23763a(0xc6)](_0x15750b=>_0x15750b[_0x23763a(0xc5)])[_0x23763a(0xca)]-_0x1b2aa9;});this[_0x32ded0(0xd6)]=_0x20e713;}return this[_0x32ded0(0xd6)];}async[_0x268229(0xc4)](_0x6941fc){const _0x8fc245=_0x268229,_0x5d14ea=await this[_0x8fc245(0xcd)]();if(!_0x5d14ea[_0x8fc245(0xca)])return null;if(_0x6941fc){const _0x296f08=_0x5d14ea[_0x8fc245(0xd1)](_0x403cd8=>_0x403cd8['id']===_0x6941fc);if(_0x296f08)return _0x296f08;_0x4e2311(_0x8fc245(0xde),{'defaultModelId':_0x6941fc,'fallBackModelId':_0x5d14ea[0x0]['id']});}return _0x5d14ea[0x0];}async[_0x268229(0xdd)](_0x59dbf9){const _0x337aed=_0x268229;return(await this[_0x337aed(0xcd)]())[_0x337aed(0xd7)](_0x54bad8=>_0x54bad8[_0x337aed(0xcf)]===_0x59dbf9[_0x337aed(0xcf)]&&_0x54bad8[_0x337aed(0xcc)]===_0x59dbf9[_0x337aed(0xcc)]);}}function _0xcaeb(_0x3afaa1,_0xcb0f29){const _0x4dc992=_0x4dc9();return _0xcaeb=function(_0xcaebcf,_0xc453b7){_0xcaebcf=_0xcaebcf-0xc3;let _0x390d79=_0x4dc992[_0xcaebcf];return _0x390d79;},_0xcaeb(_0x3afaa1,_0xcb0f29);}function _0x4dc9(){const _0x2bc6ff=['420405NErCAh','_modelList','some','items','20IabjdD','420dWiesp','sort','6HBwudy','isAvailable','ai-chat-default-model-id-unrecognized','112145hOrGKS','175KtwVDa','72784biDkUs','910092CguCVU','getDefault','enabled','filter','5332446VOnLTV','374994xDBpZA','capabilities','length','getModels','provider','getAll','_connector','name','6HcvmqY','find','list','values','571396pGhlAN'];_0x4dc9=function(){return _0x2bc6ff;};return _0x4dc9();}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/ui/aichatcontrolsview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, type BodyCollection } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { type AIAddContextOptionsState, type AIContextProvider, type AIContextResourceState } from '../model/aichatcontext.js';
|
|
11
|
+
import { type AIContextItem } from '../../aicore/model/aicontext.js';
|
|
12
|
+
import { type AIChatModel } from '../model/aichatmodels.js';
|
|
13
|
+
export declare class AIChatControlsView extends View {
|
|
14
|
+
/**
|
|
15
|
+
* The loading state of the controls.
|
|
16
|
+
*
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
constructor(locale: Locale, bodyCollection: BodyCollection);
|
|
21
|
+
/**
|
|
22
|
+
* Adds an item chip to the current context list.
|
|
23
|
+
*/
|
|
24
|
+
addContextItem(contextItem: AIContextItem, isLoading: boolean): void;
|
|
25
|
+
/**
|
|
26
|
+
* Removes an item from the context as chip.
|
|
27
|
+
*/
|
|
28
|
+
removeContextItem(id: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the loading state of an item chip in the current context list.
|
|
31
|
+
*/
|
|
32
|
+
setContextItemLoading(uiId: string, isLoading: boolean): void;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the upload in progress state.
|
|
35
|
+
*/
|
|
36
|
+
setIsUploadInProgress(isUploadInProgress: boolean): void;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the conversation context chips.
|
|
39
|
+
*/
|
|
40
|
+
setConversationContext(contextItems: Array<AIContextItem>): void;
|
|
41
|
+
/**
|
|
42
|
+
* Clears the pending context UI.
|
|
43
|
+
*/
|
|
44
|
+
clearPendingContextUI(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Clears the conversation context UI.
|
|
47
|
+
*/
|
|
48
|
+
clearConversationContextUI(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Updates the state of a specific resource in the balloon views.
|
|
51
|
+
*/
|
|
52
|
+
updateResourceState(sourceId: string, resourceId: string, isInContext: boolean): void;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the web search state.
|
|
55
|
+
*/
|
|
56
|
+
setWebSearch(isWebSearchEnabled: boolean): void;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the reasoning state.
|
|
59
|
+
*/
|
|
60
|
+
setReasoning(isReasoningEnabled: boolean): void;
|
|
61
|
+
/**
|
|
62
|
+
* Resets the message input.
|
|
63
|
+
*/
|
|
64
|
+
resetMessageInput(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the add context options.
|
|
67
|
+
*/
|
|
68
|
+
setAddContextOptions(options: AIAddContextOptionsState): void;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the placeholder text for the prompt input.
|
|
71
|
+
*/
|
|
72
|
+
setInputPlaceholder(placeholder: string): void;
|
|
73
|
+
/**
|
|
74
|
+
* Sets model list dropdown.
|
|
75
|
+
*/
|
|
76
|
+
setModelList(models: Array<AIChatModel>, hideIfSingleModel: boolean): void;
|
|
77
|
+
/**
|
|
78
|
+
* Sets the selected model in the model list dropdown.
|
|
79
|
+
*/
|
|
80
|
+
setModel(model: AIChatModel | null): void;
|
|
81
|
+
/**
|
|
82
|
+
* Enables the model selector in the prompt capabilities view.
|
|
83
|
+
*/
|
|
84
|
+
enableModelSelector(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Disables the model selector in the prompt capabilities view.
|
|
87
|
+
*/
|
|
88
|
+
disableModelSelector(hideSelector: boolean): void;
|
|
89
|
+
/**
|
|
90
|
+
* Populates a source resource balloon with loaded resources.
|
|
91
|
+
*/
|
|
92
|
+
populateSourceResourceBalloon(sourceId: string, source: AIContextProvider, resources: Array<AIContextResourceState>, uid: string): void;
|
|
93
|
+
/**
|
|
94
|
+
* Closes the source resource balloon and cleans up its state.
|
|
95
|
+
*/
|
|
96
|
+
closeSourceResourceBalloon(sourceId: string): void;
|
|
97
|
+
focusPromptInput(): void;
|
|
98
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x393d38=_0x13c1;(function(_0x3e9626,_0x3ce4a1){const _0x473f3d=_0x13c1,_0x1bed0f=_0x3e9626();while(!![]){try{const _0x23e662=parseInt(_0x473f3d(0x169))/0x1+parseInt(_0x473f3d(0x180))/0x2*(parseInt(_0x473f3d(0x16e))/0x3)+parseInt(_0x473f3d(0x144))/0x4*(-parseInt(_0x473f3d(0x14f))/0x5)+-parseInt(_0x473f3d(0x171))/0x6+-parseInt(_0x473f3d(0x162))/0x7+parseInt(_0x473f3d(0x170))/0x8*(parseInt(_0x473f3d(0x178))/0x9)+-parseInt(_0x473f3d(0x15d))/0xa;if(_0x23e662===_0x3ce4a1)break;else _0x1bed0f['push'](_0x1bed0f['shift']());}catch(_0x132289){_0x1bed0f['push'](_0x1bed0f['shift']());}}}(_0x1f11,0xc3cfc));import{clickOutsideHandler as _0x469e32,View as _0x53645f}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x39ec6b}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x13f221}from'./controls/aichatpromptcapabilitiesview.js';function _0x1f11(){const _0x31d94d=['_promptCapabilitiesView','ck-hidden','_handlePromptInputFocus','form','492957aGeIVC','setAddContextOptions','112GHThfU','477354zjrrel','removeContextItem','_shouldRestorePromptInputFocus','updateResourceState','isLoading','change:isLoading','setConversationContext','589086XtjnKf','populateSourceResourceBalloon','setReasoning','abortPromptStream','_createContextPanelView','focus','setWebSearch','clearConversationContextItems','16YwYAuC','ck-ai-chat-controls','220BzaeJS','div','delegate','sendUserMessage','setModel','resetMessageInput','_createLoaderView','clearPendingContextUI','setModelList','element','setPlaceholderText','20165bVczud','toggleReasoning','setInputPlaceholder','setContextItemLoading','closeSourceResourceBalloon','clearConversationContextUI','disableModelSelector','bindTemplate','enableModelSelector','selectModel','toggleWebSearch','reset','setIsUploadInProgress','focusPromptInput','20923200HyEgal','addContextItem','low','addContextButtonView','_createPromptCapabilitiesView','2091523QkXqqT','_createPromptInputView','_promptInputView','setTemplate','_loaderView','clearCurrentContextItems','_contextPanelView','1263619jBLEwv'];_0x1f11=function(){return _0x31d94d;};return _0x1f11();}import{AIChatContextPanelView as _0x3badc1,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x3da139}from'./controls/aichatcontextpanelview.js';function _0x13c1(_0x3339c,_0x2ea74d){const _0x1f11ab=_0x1f11();return _0x13c1=function(_0x13c1d,_0x2824aa){_0x13c1d=_0x13c1d-0x143;let _0x542a17=_0x1f11ab[_0x13c1d];return _0x542a17;},_0x13c1(_0x3339c,_0x2ea74d);}import{AIChatControlsLoaderView as _0x210523}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x53645f{[_0x393d38(0x168)];[_0x393d38(0x164)];[_0x393d38(0x16a)];[_0x393d38(0x166)];[_0x393d38(0x173)];constructor(_0x3c3e34,_0x40790f){const _0x33d73c=_0x393d38;super(_0x3c3e34),this[_0x33d73c(0x168)]=this[_0x33d73c(0x17c)](_0x3c3e34,_0x40790f),this[_0x33d73c(0x164)]=this[_0x33d73c(0x163)](_0x3c3e34),this[_0x33d73c(0x16a)]=this[_0x33d73c(0x161)](_0x3c3e34),this[_0x33d73c(0x166)]=this[_0x33d73c(0x14a)](_0x3c3e34),this[_0x33d73c(0x173)]=!0x1,this[_0x33d73c(0x164)][_0x33d73c(0x146)](_0x33d73c(0x147))['to'](this),this[_0x33d73c(0x166)][_0x33d73c(0x146)](_0x33d73c(0x17b))['to'](this),this[_0x33d73c(0x16a)][_0x33d73c(0x146)](_0x33d73c(0x159))['to'](this),this[_0x33d73c(0x16a)][_0x33d73c(0x146)](_0x33d73c(0x150))['to'](this),this[_0x33d73c(0x16a)][_0x33d73c(0x146)](_0x33d73c(0x158))['to'](this),this[_0x33d73c(0x168)][_0x33d73c(0x146)](..._0x3da139)['to'](this);const _0xa8a2a=this[_0x33d73c(0x156)];this[_0x33d73c(0x165)]({'tag':_0x33d73c(0x16d),'attributes':{'class':['ck',_0x33d73c(0x143)]},'children':[{'tag':_0x33d73c(0x145),'attributes':{'class':[_0xa8a2a['if'](_0x33d73c(0x175),_0x33d73c(0x16b))]},'children':[this[_0x33d73c(0x168)],this[_0x33d73c(0x164)],this[_0x33d73c(0x16a)]]},{'tag':_0x33d73c(0x145),'attributes':{'class':[_0xa8a2a['if'](_0x33d73c(0x175),_0x33d73c(0x16b),_0x5c46be=>!_0x5c46be)]},'children':[this[_0x33d73c(0x166)]]}]}),_0x469e32({'emitter':this[_0x33d73c(0x164)],'activator':()=>this[_0x33d73c(0x175)],'contextElements':()=>[this[_0x33d73c(0x14d)]],'callback':()=>{const _0x4b45dd=_0x33d73c;this[_0x4b45dd(0x173)]=!0x1;}}),this['on'](_0x33d73c(0x176),this[_0x33d73c(0x16c)],{'priority':_0x33d73c(0x15f)});}[_0x393d38(0x17c)](_0x140797,_0x4c615a){return new _0x3badc1(_0x140797,_0x4c615a);}[_0x393d38(0x163)](_0x454fa4){const _0x2488dd=_0x393d38;return new _0x39ec6b(_0x454fa4,this[_0x2488dd(0x168)][_0x2488dd(0x160)]);}[_0x393d38(0x161)](_0x1bb110){return new _0x13f221(_0x1bb110);}[_0x393d38(0x14a)](_0x1d3e43){return new _0x210523(_0x1d3e43);}[_0x393d38(0x16c)](_0x57d5aa,_0x2a034d,_0x454a26){const _0x4ed2f3=_0x393d38;_0x454a26?this[_0x4ed2f3(0x173)]=!0x0:this[_0x4ed2f3(0x173)]&&this[_0x4ed2f3(0x164)][_0x4ed2f3(0x17d)]();}[_0x393d38(0x15e)](_0x4cce97,_0x550833){const _0x5f4c1c=_0x393d38;this[_0x5f4c1c(0x168)][_0x5f4c1c(0x15e)](_0x4cce97,_0x550833);}[_0x393d38(0x172)](_0x5d0e6){const _0x55a727=_0x393d38;this[_0x55a727(0x168)][_0x55a727(0x172)](_0x5d0e6);}[_0x393d38(0x152)](_0x58208e,_0x105443){const _0x59ee50=_0x393d38;this[_0x59ee50(0x168)][_0x59ee50(0x152)](_0x58208e,_0x105443);}[_0x393d38(0x15b)](_0x3e3d24){const _0xe3356b=_0x393d38;this[_0xe3356b(0x164)][_0xe3356b(0x15b)](_0x3e3d24);}[_0x393d38(0x177)](_0x384a9d){const _0xdbd22a=_0x393d38;this[_0xdbd22a(0x168)][_0xdbd22a(0x177)](_0x384a9d);}[_0x393d38(0x14b)](){const _0x5c838b=_0x393d38;this[_0x5c838b(0x168)][_0x5c838b(0x167)]();}[_0x393d38(0x154)](){const _0x445624=_0x393d38;this[_0x445624(0x168)][_0x445624(0x17f)]();}[_0x393d38(0x174)](_0x25c139,_0x3d4f76,_0x49decd){const _0x43f645=_0x393d38;this[_0x43f645(0x168)][_0x43f645(0x174)](_0x25c139,_0x3d4f76,_0x49decd);}[_0x393d38(0x17e)](_0x3d4c6f){const _0x4c7c93=_0x393d38;this[_0x4c7c93(0x16a)][_0x4c7c93(0x17e)](_0x3d4c6f);}[_0x393d38(0x17a)](_0x29950e){const _0x12c723=_0x393d38;this[_0x12c723(0x16a)][_0x12c723(0x17a)](_0x29950e);}[_0x393d38(0x149)](){const _0xda3ebc=_0x393d38;this[_0xda3ebc(0x164)][_0xda3ebc(0x15a)]();}[_0x393d38(0x16f)](_0x4f0517){const _0x24b09c=_0x393d38;this[_0x24b09c(0x168)][_0x24b09c(0x16f)](_0x4f0517);}[_0x393d38(0x151)](_0xffdef){const _0x19f6f4=_0x393d38;this[_0x19f6f4(0x164)][_0x19f6f4(0x14e)](_0xffdef);}[_0x393d38(0x14c)](_0x2fa087,_0x8b2401){const _0x2ad966=_0x393d38;this[_0x2ad966(0x16a)][_0x2ad966(0x14c)](_0x2fa087,_0x8b2401);}[_0x393d38(0x148)](_0x43c567){const _0x48e83c=_0x393d38;this[_0x48e83c(0x16a)][_0x48e83c(0x148)](_0x43c567);}[_0x393d38(0x157)](){const _0x322d64=_0x393d38;this[_0x322d64(0x16a)][_0x322d64(0x157)]();}[_0x393d38(0x155)](_0x5b9e33){const _0x4c6da8=_0x393d38;this[_0x4c6da8(0x16a)][_0x4c6da8(0x155)](_0x5b9e33);}[_0x393d38(0x179)](_0x2de7cc,_0x33c461,_0x212514,_0x72cb2b){const _0xbd16fe=_0x393d38;this[_0xbd16fe(0x168)][_0xbd16fe(0x179)](_0x2de7cc,_0x33c461,_0x212514,_0x72cb2b);}[_0x393d38(0x153)](_0x11020d){const _0x31c205=_0x393d38;this[_0x31c205(0x168)][_0x31c205(0x153)](_0x11020d);}[_0x393d38(0x15c)](){const _0x5af9e8=_0x393d38;this[_0x5af9e8(0x164)][_0x5af9e8(0x17d)]();}}
|