@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1
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 +2742 -0
- package/dist/index.css +3141 -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 +163 -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/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
- 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 +92 -30
- 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 +102 -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 +23 -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 +255 -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/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,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 _0xa7fbfa=_0x571c;(function(_0x46f339,_0x57fdc9){const _0x2e239d=_0x571c,_0x182a01=_0x46f339();while(!![]){try{const _0x3a7c86=-parseInt(_0x2e239d(0x79))/0x1+parseInt(_0x2e239d(0x7d))/0x2*(-parseInt(_0x2e239d(0x73))/0x3)+-parseInt(_0x2e239d(0x71))/0x4+parseInt(_0x2e239d(0x80))/0x5+parseInt(_0x2e239d(0x7c))/0x6*(-parseInt(_0x2e239d(0x77))/0x7)+parseInt(_0x2e239d(0x7f))/0x8*(parseInt(_0x2e239d(0x74))/0x9)+parseInt(_0x2e239d(0x7e))/0xa;if(_0x3a7c86===_0x57fdc9)break;else _0x182a01['push'](_0x182a01['shift']());}catch(_0x5b0485){_0x182a01['push'](_0x182a01['shift']());}}}(_0x2b15,0x5766f));function _0x571c(_0x280d31,_0x2c20fb){const _0x2b15bb=_0x2b15();return _0x571c=function(_0x571c15,_0x42821b){_0x571c15=_0x571c15-0x71;let _0x525948=_0x2b15bb[_0x571c15];return _0x525948;},_0x571c(_0x280d31,_0x2c20fb);}import{ListView as _0x1d2e3a}from'ckeditor5/src/ui.js';function _0x2b15(){const _0x50f114=['ck-ai-chat-history__sections','658554kOfOdI','items','extendTemplate','3832356oxjGfW','510udTTwP','16730470azVEbi','19344FXtyul','2543975fgMYZA','2132700PCgqvM','sections','7290DZdiTb','2331rKevql','addMany','filter','7EcrxNc'];_0x2b15=function(){return _0x50f114;};return _0x2b15();}export class AIChatHistorySectionListView extends _0x1d2e3a{[_0xa7fbfa(0x72)];constructor(_0x1d2aa2,_0x2ffe87){const _0x28ad30=_0xa7fbfa;super(_0x1d2aa2),this[_0x28ad30(0x72)]=_0x2ffe87,this[_0x28ad30(0x7a)][_0x28ad30(0x75)](this[_0x28ad30(0x72)]),this[_0x28ad30(0x7b)]({'attributes':{'class':[_0x28ad30(0x78)]}});}[_0xa7fbfa(0x76)](_0x3dbc7d){const _0x841c2c=_0xa7fbfa;let _0x1041d0=0x0,_0x579da3=0x0;for(const _0x22dcc8 of this[_0x841c2c(0x72)]){const {resultsCount:_0x56f1e1,totalItemsCount:_0x3eb855}=_0x22dcc8[_0x841c2c(0x76)](_0x3dbc7d);_0x1041d0+=_0x56f1e1,_0x579da3+=_0x3eb855;}return{'resultsCount':_0x1041d0,'totalItemsCount':_0x579da3};}}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
7
|
+
import { type AIChatHistoryCategoryData } from '../aichathistoryui.js';
|
|
8
|
+
export declare class AIChatHistoryView extends View {
|
|
9
|
+
/**
|
|
10
|
+
* The button to resize the chat view.
|
|
11
|
+
*/
|
|
12
|
+
readonly resizeButton?: ButtonView;
|
|
13
|
+
/**
|
|
14
|
+
* Indicates whether the tabs view is maximized.
|
|
15
|
+
*
|
|
16
|
+
* @observable
|
|
17
|
+
*/
|
|
18
|
+
isMaximized: boolean;
|
|
19
|
+
hasItems: boolean;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
errorMessage: string;
|
|
22
|
+
isSearchViewVisible: boolean;
|
|
23
|
+
isEmptyViewVisible: boolean;
|
|
24
|
+
constructor(locale: Locale, showResizeButton: boolean);
|
|
25
|
+
/**
|
|
26
|
+
* Updates the chat history list with pre-categorized items from the model.
|
|
27
|
+
*/
|
|
28
|
+
updateHistoryItemsWithCategories(categories: Array<AIChatHistoryCategoryData>): void;
|
|
29
|
+
/**
|
|
30
|
+
* Removes a conversation item from the history list by its ID.
|
|
31
|
+
*/
|
|
32
|
+
removeHistoryItem(id: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Updates the title of a specific history item in the UI.
|
|
35
|
+
*/
|
|
36
|
+
updateItemTitle(itemId: string, title: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Updates the loading state of a specific history item in the UI.
|
|
39
|
+
*/
|
|
40
|
+
updateItemLoadingState(itemId: string, operation: string | null, isLoading: boolean): void;
|
|
41
|
+
}
|
|
@@ -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 _0x199235=_0x2f14;(function(_0x50006d,_0x1b753f){const _0x499521=_0x2f14,_0x5d3f4e=_0x50006d();while(!![]){try{const _0x2041aa=parseInt(_0x499521(0x1c8))/0x1*(-parseInt(_0x499521(0x178))/0x2)+parseInt(_0x499521(0x1ca))/0x3*(parseInt(_0x499521(0x1a2))/0x4)+parseInt(_0x499521(0x184))/0x5+parseInt(_0x499521(0x1bd))/0x6*(parseInt(_0x499521(0x1a9))/0x7)+-parseInt(_0x499521(0x183))/0x8*(-parseInt(_0x499521(0x1cf))/0x9)+-parseInt(_0x499521(0x1c3))/0xa+-parseInt(_0x499521(0x18d))/0xb;if(_0x2041aa===_0x1b753f)break;else _0x5d3f4e['push'](_0x5d3f4e['shift']());}catch(_0x38431e){_0x5d3f4e['push'](_0x5d3f4e['shift']());}}}(_0x3761,0x2cb8d));import{View as _0x5c61a2,SearchTextView as _0x246e1e,FormHeaderView as _0xca204f,ButtonView as _0x1153fd}from'ckeditor5/src/ui.js';function _0x2f14(_0xb7c001,_0x505feb){const _0x3761f0=_0x3761();return _0x2f14=function(_0x2f140b,_0x291ac1){_0x2f140b=_0x2f140b-0x174;let _0x30e5c6=_0x3761f0[_0x2f140b];return _0x30e5c6;},_0x2f14(_0xb7c001,_0x505feb);}import{IconAIHistory as _0x1e0d0a,IconCancel as _0x46ad74}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x3bf3c7}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2cc544}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3fc6b7}from'./aichathistorylistitemview.js';function _0x3761(){const _0x2be7eb=['fieldView','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','locale','push','139237rCjCZC','delegate','add','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeItem','div','ck-ai-chat-error','updateItemTitle','fire','errorMessage','ltr','search','skeletonView','extendTemplate','clear','isMaximized','searchView','updateItemLoadingState','AI_CHAT_HISTORY_EMPTY_MESSAGE','48tBzBEc','_updateViewVisibility','splice','getItem','bindTemplate','itemsViews','38970FuOeRG','resizeButton','hasItems','isVisible','ck-hidden','212879PuPQoQ','remove','6eOifzh','updateHistoryItemsWithCategories','indexOf','isEmptyViewVisible','some','1334943FXBaoB','addMany','AI_CHAT_HISTORY_HEADING','render','updateLoadingState','2JDcyzv','execute','emptyView','_createSkeletonView','title','sections','_createListItemViews','change:errorMessage','_createSearchView','queryView','ck-ai-chat-history__open-chat-button','8rYoWTg','1397420cvnRYx','updateTitle','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','items','_refreshSearch','change:hasItems','set','change:isLoading','3473844ObyIVr','bind','element','children','length','ck-reset_all','errorView','isLoading','ck-ai-chat-error__dismiss-button','ck-rounded-corners','_createEmptyStateView','AI_CHAT_HISTORY_SEARCH_LABEL','value','openChat','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','ck-ai-chat-history__empty-message','removeHistoryItem','ck-ai-chat-history__empty','sectionsView','ck-ai-chat-history__content','aiHistory','257644gJQcqU','setTemplate'];_0x3761=function(){return _0x2be7eb;};return _0x3761();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3003d2}from'../aichathistoryui.js';import{AISkeletonView as _0x129b4d,SKELETON_DEFINITIONS as _0x10e87d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x59814b}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x24314c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5c61a2{[_0x199235(0x1ba)];[_0x199235(0x193)];[_0x199235(0x1b6)];[_0x199235(0x17a)];[_0x199235(0x19f)];[_0x199235(0x1c4)];constructor(_0x384a4d,_0x4abff4){const _0x588e67=_0x199235;super(_0x384a4d),this[_0x588e67(0x18b)](_0x588e67(0x1c5),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x194),!0x0),this[_0x588e67(0x18b)](_0x588e67(0x1b3),''),this[_0x588e67(0x18b)](_0x588e67(0x1b9),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x1ac),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x1cd),!0x1);const _0x574466=new _0xca204f(_0x384a4d,{'label':_0x24314c(_0x384a4d,_0x588e67(0x175)),'icon':_0x1e0d0a,'class':_0x588e67(0x186)});_0x4abff4&&(this[_0x588e67(0x1c4)]=_0x59814b(_0x384a4d,this),_0x574466[_0x588e67(0x190)][_0x588e67(0x1ab)](this[_0x588e67(0x1c4)])),this[_0x588e67(0x19f)]=new _0x3bf3c7(_0x384a4d,[]),this[_0x588e67(0x19f)][_0x588e67(0x1aa)](..._0x3003d2)['to'](this),this[_0x588e67(0x193)]=this[_0x588e67(0x1a5)](),this[_0x588e67(0x1b6)]=this[_0x588e67(0x17b)](),this[_0x588e67(0x17a)]=this[_0x588e67(0x197)](),this[_0x588e67(0x1ba)]=this[_0x588e67(0x180)](),this['on'](_0x588e67(0x18c),()=>this[_0x588e67(0x1be)]()),this['on'](_0x588e67(0x18a),()=>this[_0x588e67(0x1be)]()),this['on'](_0x588e67(0x17f),()=>this[_0x588e67(0x1be)]()),this[_0x588e67(0x1a3)]({'tag':_0x588e67(0x1af),'attributes':{'class':['ck',_0x588e67(0x192),_0x588e67(0x187),_0x588e67(0x196)],'dir':_0x588e67(0x1b4)},'children':[_0x574466,{'tag':_0x588e67(0x1af),'attributes':{'class':[_0x588e67(0x1a0)]},'children':[this[_0x588e67(0x1b6)],this[_0x588e67(0x193)],this[_0x588e67(0x17a)],this[_0x588e67(0x1ba)]]}]});}[_0x199235(0x1be)](){const _0x54075a=_0x199235;this[_0x54075a(0x1ac)]=!this[_0x54075a(0x194)]&&this[_0x54075a(0x1c5)]&&!this[_0x54075a(0x1b3)],this[_0x54075a(0x1cd)]=!this[_0x54075a(0x194)]&&!this[_0x54075a(0x1c5)]&&!this[_0x54075a(0x1b3)];}[_0x199235(0x180)](){const _0x53479b=_0x199235,_0x312bca=new _0x246e1e(this[_0x53479b(0x1a7)],{'filteredView':this[_0x53479b(0x19f)],'queryView':{'label':_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x198))},'infoView':{'text':{'notFound':{'primary':_0x5eaa7c=>_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x1a6),_0x5eaa7c),'secondary':_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x1ad))}}}});return _0x312bca['on'](_0x53479b(0x176),()=>{const _0x40b9ea=_0x53479b;this[_0x40b9ea(0x1ba)][_0x40b9ea(0x190)][_0x40b9ea(0x1ab)](this[_0x40b9ea(0x193)],0x1);}),_0x312bca[_0x53479b(0x1b7)]({'attributes':{'class':[this[_0x53479b(0x1c1)]['if'](_0x53479b(0x1ac),_0x53479b(0x1c7),_0x5472dd=>!_0x5472dd)]}}),_0x312bca;}[_0x199235(0x17b)](){const _0x40b411=_0x199235,_0x3f74f0=new _0x129b4d(this[_0x40b411(0x1a7)],_0x10e87d[_0x40b411(0x1a1)]);return _0x3f74f0[_0x40b411(0x1b7)]({'attributes':{'class':[this[_0x40b411(0x1c1)]['if'](_0x40b411(0x194),_0x40b411(0x1c7),_0x158fb4=>!_0x158fb4)]}}),_0x3f74f0;}[_0x199235(0x1a5)](){const _0x26ad84=_0x199235,_0xeb2202=new _0x5c61a2(this[_0x26ad84(0x1a7)]),_0x58a16f=new _0x1153fd(this[_0x26ad84(0x1a7)]);return _0x58a16f[_0x26ad84(0x18b)]({'withText':!0x1,'icon':_0x46ad74,'class':_0x26ad84(0x195)}),_0x58a16f[_0x26ad84(0x18e)](_0x26ad84(0x1c6))['to'](this,_0x26ad84(0x1c5),_0x149f57=>!!_0x149f57),_0x58a16f['on'](_0x26ad84(0x179),()=>{const _0x34e2db=_0x26ad84;this[_0x34e2db(0x1b3)]='';}),_0xeb2202[_0x26ad84(0x1a3)]({'tag':_0x26ad84(0x1af),'attributes':{'class':['ck',_0x26ad84(0x1b0),this[_0x26ad84(0x1c1)]['if'](_0x26ad84(0x1b3),_0x26ad84(0x1c7),_0x5e8bde=>!_0x5e8bde)]},'children':[{'tag':'p','children':[{'text':this[_0x26ad84(0x1c1)]['to'](_0x26ad84(0x1b3))}]},_0x58a16f]}),_0xeb2202;}[_0x199235(0x197)](){const _0x11e21a=_0x199235,_0x4f16e4=new _0x1153fd(this[_0x11e21a(0x1a7)]);_0x4f16e4[_0x11e21a(0x18b)]({'withText':!0x0,'label':_0x24314c(this[_0x11e21a(0x1a7)],_0x11e21a(0x19b)),'class':_0x11e21a(0x182)}),_0x4f16e4['on'](_0x11e21a(0x179),()=>{const _0x40371e=_0x11e21a;this[_0x40371e(0x1b2)](_0x40371e(0x19a));});const _0x33e5b7=new _0x5c61a2(this[_0x11e21a(0x1a7)]);return _0x33e5b7[_0x11e21a(0x1a3)]({'tag':_0x11e21a(0x1af),'attributes':{'class':[_0x11e21a(0x19e),this[_0x11e21a(0x1c1)]['if'](_0x11e21a(0x1cd),_0x11e21a(0x1c7),_0x4b9917=>!_0x4b9917)]},'children':[{'tag':'p','attributes':{'class':[_0x11e21a(0x19c)]},'children':[_0x24314c(this[_0x11e21a(0x1a7)],_0x11e21a(0x1bc))]},_0x4f16e4]}),_0x33e5b7;}[_0x199235(0x17e)](_0xc99133,_0x4eecf2){const _0x317175=_0x199235,_0x299ccf=[];for(const _0x337754 of _0xc99133){const _0x2fd2fd=new _0x3fc6b7(_0x4eecf2,_0x337754);_0x2fd2fd[_0x317175(0x1aa)](..._0x3003d2)['to'](this),_0x299ccf[_0x317175(0x1a8)](_0x2fd2fd);}return _0x299ccf;}[_0x199235(0x1cb)](_0x173d40){const _0x1a2509=_0x199235,_0x32f377=this[_0x1a2509(0x1a7)]||'en',_0x4dc0d8=[];for(const _0x127ddc of _0x173d40){const _0x280cd4=this[_0x1a2509(0x17e)](_0x127ddc[_0x1a2509(0x188)],_0x32f377);_0x4dc0d8[_0x1a2509(0x1a8)](new _0x2cc544(_0x32f377,{'title':_0x127ddc[_0x1a2509(0x17c)],'items':_0x280cd4}));}this[_0x1a2509(0x19f)][_0x1a2509(0x17d)]=_0x4dc0d8,this[_0x1a2509(0x19f)][_0x1a2509(0x188)][_0x1a2509(0x1b8)](),this[_0x1a2509(0x19f)][_0x1a2509(0x188)][_0x1a2509(0x174)](_0x4dc0d8),this[_0x1a2509(0x1c5)]=_0x173d40[_0x1a2509(0x1ce)](_0x224875=>_0x224875[_0x1a2509(0x188)][_0x1a2509(0x191)]>0x0),this[_0x1a2509(0x189)]();}[_0x199235(0x19d)](_0x49a2f1){const _0x4f71da=_0x199235;for(const _0x2c7a1e of this[_0x4f71da(0x19f)][_0x4f71da(0x17d)]){const _0x168b94=_0x2c7a1e[_0x4f71da(0x1c0)](_0x49a2f1);if(_0x168b94){if(_0x2c7a1e[_0x4f71da(0x1ae)](_0x168b94),0x0===_0x2c7a1e[_0x4f71da(0x1c2)][_0x4f71da(0x191)]){const _0x29b5e7=this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x1cc)](_0x2c7a1e);-0x1!==_0x29b5e7&&(this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x1bf)](_0x29b5e7,0x1),this[_0x4f71da(0x19f)][_0x4f71da(0x188)][_0x4f71da(0x1c9)](_0x2c7a1e));}this[_0x4f71da(0x1c5)]=this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x191)]>0x0,this[_0x4f71da(0x189)]();break;}}}[_0x199235(0x1b1)](_0x59d9c1,_0x4a6b77){const _0x5c0216=_0x199235;for(const _0x503081 of this[_0x5c0216(0x19f)][_0x5c0216(0x17d)]){const _0x5082b2=_0x503081[_0x5c0216(0x1c0)](_0x59d9c1);if(_0x5082b2){_0x5082b2[_0x5c0216(0x185)](_0x4a6b77);break;}}}[_0x199235(0x1bb)](_0x5e2b8c,_0x21d9f3,_0x20a3e0){const _0xde5d53=_0x199235;for(const _0x41dfa0 of this[_0xde5d53(0x19f)][_0xde5d53(0x17d)]){const _0x387866=_0x41dfa0[_0xde5d53(0x1c0)](_0x5e2b8c);if(_0x387866){_0x387866[_0xde5d53(0x177)](_0x21d9f3,_0x20a3e0);break;}}}[_0x199235(0x189)](){const _0xd31e2b=_0x199235;if(this[_0xd31e2b(0x1c5)]){const _0x1ac984=this[_0xd31e2b(0x1ba)][_0xd31e2b(0x181)][_0xd31e2b(0x1a4)]?.[_0xd31e2b(0x18f)]?.[_0xd31e2b(0x199)]||'';this[_0xd31e2b(0x1ba)][_0xd31e2b(0x1b5)](_0x1ac984);}}}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module ai/aiconfig
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import type { AIAssistantConfig } from './aiassistant.js';
|
|
10
|
-
import type
|
|
11
|
-
import type
|
|
9
|
+
import type { AIAssistantConfig } from './aiassistant/aiassistant.js';
|
|
10
|
+
import { type AIChatConfig } from './aichat/aichat.js';
|
|
11
|
+
import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
|
|
12
12
|
/**
|
|
13
13
|
* The configuration for all AI-related functionalities.
|
|
14
14
|
*
|
|
@@ -18,12 +18,7 @@ import type { AIAWSTextAdapterConfig } from './adapters/awstextadapter.js';
|
|
|
18
18
|
* ClassicEditor
|
|
19
19
|
* .create( editorElement, {
|
|
20
20
|
* ai: {
|
|
21
|
-
*
|
|
22
|
-
* requestHeaders: {
|
|
23
|
-
* Authorization: 'Bearer API_KEY'
|
|
24
|
-
* }
|
|
25
|
-
* },
|
|
26
|
-
* useTheme: false
|
|
21
|
+
* ...
|
|
27
22
|
* }
|
|
28
23
|
* } )
|
|
29
24
|
* .then( ... )
|
|
@@ -34,36 +29,103 @@ import type { AIAWSTextAdapterConfig } from './adapters/awstextadapter.js';
|
|
|
34
29
|
*/
|
|
35
30
|
export interface AIConfig {
|
|
36
31
|
/**
|
|
37
|
-
* The
|
|
32
|
+
* The URL of the AI service endpoint.
|
|
38
33
|
*
|
|
39
|
-
*
|
|
40
|
-
|
|
41
|
-
aiAssistant?: AIAssistantConfig;
|
|
42
|
-
/**
|
|
43
|
-
* The configuration for the {@link module:ai/adapters/openaitextadapter~OpenAITextAdapter `OpenAITextAdapter`}.
|
|
34
|
+
* This endpoint is used by AI features: AI Chat, AI Quick Actions, and AI Review Mode.
|
|
35
|
+
* It does not affect the AI Assistant feature, which uses its own adapter configuration.
|
|
44
36
|
*
|
|
45
|
-
*
|
|
37
|
+
* **NOTE:** By default, the plugin uses the default AI service endpoint delivered by CKEditor Cloud Services.
|
|
46
38
|
*
|
|
47
|
-
*
|
|
39
|
+
* @default 'https://ai.cke-cs.com/v1'
|
|
48
40
|
*/
|
|
49
|
-
|
|
41
|
+
serviceUrl?: string;
|
|
50
42
|
/**
|
|
51
|
-
* The configuration
|
|
52
|
-
*
|
|
53
|
-
* This is required only if you connect to Amazon Bedrock service.
|
|
43
|
+
* The configuration of the {@link module:ai/aiassistant/aiassistant~AIAssistant AI Assistant feature}.
|
|
54
44
|
*
|
|
55
|
-
* Read more in {@link module:ai/
|
|
45
|
+
* Read more in {@link module:ai/aiassistant/aiassistant~AIAssistantConfig}.
|
|
56
46
|
*/
|
|
57
|
-
|
|
47
|
+
assistant?: AIAssistantConfig;
|
|
58
48
|
/**
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
* The configuration of the AI user interface provided by the {@link module:ai/aitabs/aitabs~AITabs} plugin.
|
|
50
|
+
*/
|
|
51
|
+
container?: AIContainerConfig;
|
|
52
|
+
/**
|
|
53
|
+
* The configuration of the {@link module:ai/aichat/aichat~AIChat AI Chat feature}.
|
|
63
54
|
*
|
|
64
|
-
*
|
|
55
|
+
* Read more in {@link module:ai/aichat/aichat~AIChatConfig}.
|
|
56
|
+
*/
|
|
57
|
+
chat?: AIChatConfig;
|
|
58
|
+
/**
|
|
59
|
+
* The configuration of the AI quick actions.
|
|
60
|
+
*/
|
|
61
|
+
quickActions?: AIQuickActionsConfig;
|
|
62
|
+
}
|
|
63
|
+
export type AIContainerType = 'sidebar' | 'overlay' | 'custom';
|
|
64
|
+
export type AIContainerSide = 'left' | 'right';
|
|
65
|
+
export interface AIContainerBase {
|
|
66
|
+
type: AIContainerType;
|
|
67
|
+
/**
|
|
68
|
+
* This option is used to show or hide the resize button in the AI user interface.
|
|
65
69
|
*
|
|
66
|
-
*
|
|
70
|
+
* Defaults to `true`.
|
|
67
71
|
*/
|
|
68
|
-
|
|
72
|
+
showResizeButton?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The configuration of the AI user interface container in the sidebar mode.
|
|
76
|
+
*
|
|
77
|
+
* Provide an existing DOM element to use as the container for the AI user interface.
|
|
78
|
+
*
|
|
79
|
+
* The interface will automatically render into the element.
|
|
80
|
+
*
|
|
81
|
+
* Tab buttons can be positioned on the preferred side of the element.
|
|
82
|
+
*/
|
|
83
|
+
export interface AIContainerSidebar extends AIContainerBase {
|
|
84
|
+
type: 'sidebar';
|
|
85
|
+
element: HTMLElement;
|
|
86
|
+
side?: AIContainerSide;
|
|
69
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* The configuration of the AI user interface container in the overlay mode. The AI user
|
|
90
|
+
* interface is displayed on top of the web page on a preferred side.
|
|
91
|
+
*/
|
|
92
|
+
export interface AIContainerOverlay extends AIContainerBase {
|
|
93
|
+
type: 'overlay';
|
|
94
|
+
side?: AIContainerSide;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The configuration of the AI user interface container in the custom mode.
|
|
98
|
+
*
|
|
99
|
+
* In this mode, integrator is responsible for rendering the AI user interface in the web page.
|
|
100
|
+
*
|
|
101
|
+
* * Use {@link module:ai/aitabs/aitabs~AITabs#view} to access the view of the AI user interface,
|
|
102
|
+
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTabIds} to read available IDs of individual tabs in the AI user interface,
|
|
103
|
+
* * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface.
|
|
104
|
+
*
|
|
105
|
+
* For example, to integrate the AI user interface with custom containers on the web page, use the following code:
|
|
106
|
+
*
|
|
107
|
+
* ```js
|
|
108
|
+
* const tabsPlugin = editor.plugins.get( 'AITabs' );
|
|
109
|
+
*
|
|
110
|
+
* for ( const id of tabsPlugin.view.getTabIds() ) {
|
|
111
|
+
* const tab = tabsPlugin.view.getTab( id );
|
|
112
|
+
*
|
|
113
|
+
* // Display tab button and panel in a custom container.
|
|
114
|
+
* myButtonsContainer.appendChild( tab.button.element );
|
|
115
|
+
* myPanelContainer.appendChild( tab.panel.element );
|
|
116
|
+
* }
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
export interface AIContainerCustom extends AIContainerBase {
|
|
120
|
+
type: 'custom';
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The configuration of the AI user interface provided by the {@link module:ai/aitabs/aitabs~AITabs} plugin.
|
|
124
|
+
*
|
|
125
|
+
* The AI user interface can operate in three different modes:
|
|
126
|
+
*
|
|
127
|
+
* * {@link module:ai/aiconfig~AIContainerSidebar} - the AI user interface is displayed in a specific DOM element,
|
|
128
|
+
* * {@link module:ai/aiconfig~AIContainerOverlay} - the AI user interface is displayed on top of the web page,
|
|
129
|
+
* * {@link module:ai/aiconfig~AIContainerCustom} - the AI user interface is displayed in a custom way.
|
|
130
|
+
*/
|
|
131
|
+
export type AIContainerConfig = AIContainerSidebar | AIContainerOverlay | AIContainerCustom;
|
|
@@ -0,0 +1,302 @@
|
|
|
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/aicore/aiconnector
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type EventSourceMessage } from 'eventsource-parser';
|
|
10
|
+
import { type Editor, type Context, ContextPlugin } from 'ckeditor5/src/core.js';
|
|
11
|
+
import { type AIContextItemRequestData, type AIContextItemType } from './model/aicontext.js';
|
|
12
|
+
import { type AICapabilitiesRequestData } from './model/aicapabilities.js';
|
|
13
|
+
import { type AIQuickActionRequestData } from '../aiquickactions/aiquickactions.js';
|
|
14
|
+
export declare enum AIActionsNames {
|
|
15
|
+
CONTINUE = "continue",
|
|
16
|
+
FIX_GRAMMAR = "fix-grammar",
|
|
17
|
+
IMPROVE_WRITING = "improve-writing",
|
|
18
|
+
MAKE_LONGER = "make-longer",
|
|
19
|
+
MAKE_SHORTER = "make-shorter",
|
|
20
|
+
MAKE_TONE_CASUAL = "make-tone-casual",
|
|
21
|
+
MAKE_TONE_FORMAL = "make-tone-formal",
|
|
22
|
+
TRANSLATE = "translate"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A plugin that handles communication with the AI API.
|
|
26
|
+
*/
|
|
27
|
+
export declare class AIConnector extends ContextPlugin {
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get requires(): readonly ["CloudServices"];
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static get pluginName(): "AIConnector";
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
static get isOfficialPlugin(): true;
|
|
40
|
+
/**
|
|
41
|
+
* @inheritDoc
|
|
42
|
+
*/
|
|
43
|
+
static get isPremiumPlugin(): true;
|
|
44
|
+
constructor(context: Context | Editor);
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
init(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new conversation session with the AI API.
|
|
51
|
+
*/
|
|
52
|
+
startConversation(id: string, group: string): AIConversationStartRequest;
|
|
53
|
+
/**
|
|
54
|
+
* Sends a request to the AI API '/conversations/{conversationId}/messages' endpoint and returns a response stream reader.
|
|
55
|
+
*/
|
|
56
|
+
queryAssistant({ message, conversationId, parts, capabilities, model, quickActionData }: AIConnectorQueryAssistantData): AIConnectorRequest;
|
|
57
|
+
/**
|
|
58
|
+
* Sends a request to the /actions/custom/calls endpoint and returns a response stream reader.
|
|
59
|
+
*/
|
|
60
|
+
executeCustomAction({ content, message, model, outputFormat }: AIConnectorExecuteCustomActionData): AIConnectorRequest;
|
|
61
|
+
/**
|
|
62
|
+
* Sends a request to the /actions/system/{actionName}/calls endpoint and returns a response stream reader.
|
|
63
|
+
*/
|
|
64
|
+
executeAction({ actionName, content, args }: AIConnectorExecuteActionData): AIConnectorRequest;
|
|
65
|
+
/**
|
|
66
|
+
* Uploads a file to the AI API for a specific conversation.
|
|
67
|
+
*/
|
|
68
|
+
uploadFile(conversationId: string, file: File, attributes?: {
|
|
69
|
+
resourceId: string;
|
|
70
|
+
label: string;
|
|
71
|
+
}): AIUploadRequest;
|
|
72
|
+
/**
|
|
73
|
+
* Fetches a specific document by its ID from a conversation.
|
|
74
|
+
*/
|
|
75
|
+
fetchDocument(conversationId: string, documentId: string): AIFetchDocumentRequest;
|
|
76
|
+
/**
|
|
77
|
+
* Gets a document from the AI API for a specific conversation.
|
|
78
|
+
*/
|
|
79
|
+
uploadDocument(conversationId: string, content: string, attributes?: Record<string, unknown>): AIUploadRequest;
|
|
80
|
+
/**
|
|
81
|
+
* Fetches the list of conversations from the AI API.
|
|
82
|
+
*/
|
|
83
|
+
fetchConversations(group: string, search?: string): AIFetchConversationsRequest;
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a conversation by its ID.
|
|
86
|
+
*/
|
|
87
|
+
deleteConversation(id: string): AIDeleteConversationRequest;
|
|
88
|
+
/**
|
|
89
|
+
* Updates the title and pinned status of a conversation by its ID.
|
|
90
|
+
*/
|
|
91
|
+
updateConversation(id: string, updates: {
|
|
92
|
+
title?: string;
|
|
93
|
+
pinned?: boolean;
|
|
94
|
+
}): AIUpdateConversationRequest;
|
|
95
|
+
/**
|
|
96
|
+
* Fetches a specific conversation by its ID.
|
|
97
|
+
*/
|
|
98
|
+
fetchConversation(id: string): AIGetConversationRequest;
|
|
99
|
+
/**
|
|
100
|
+
* Fetches messages for a specific conversation by its ID.
|
|
101
|
+
*/
|
|
102
|
+
fetchConversationMessages(conversationId: string): AIGetConversationMessagesRequest;
|
|
103
|
+
/**
|
|
104
|
+
* Uploads a URL to the AI API for a specific conversation.
|
|
105
|
+
*/
|
|
106
|
+
uploadUrl(conversationId: string, url: string, attributes?: {
|
|
107
|
+
resourceId: string;
|
|
108
|
+
label: string;
|
|
109
|
+
}): AIUploadRequest;
|
|
110
|
+
/**
|
|
111
|
+
* Returns a list of available AI models.
|
|
112
|
+
*/
|
|
113
|
+
getModels(): AIModelRequest;
|
|
114
|
+
/**
|
|
115
|
+
* Deletes a file from a conversation.
|
|
116
|
+
*/
|
|
117
|
+
deleteFile(conversationId: string, fileId: string): AIDeleteFileRequest;
|
|
118
|
+
/**
|
|
119
|
+
* Deletes a document from a conversation.
|
|
120
|
+
*/
|
|
121
|
+
deleteDocument(conversationId: string, documentId: string): AIDeleteDocumentRequest;
|
|
122
|
+
/**
|
|
123
|
+
* Deletes a web resource from a conversation.
|
|
124
|
+
*/
|
|
125
|
+
deleteWebResource(conversationId: string, webResourceId: string): AIDeleteWebResourceRequest;
|
|
126
|
+
/**
|
|
127
|
+
* Sends a request to the AI API '/reviews/system/{reviewName}/calls' endpoint and returns a response stream reader.
|
|
128
|
+
*/
|
|
129
|
+
callSystemReview({ reviewName, content, args }: AIConnectorSystemReviewData): AIConnectorRequest;
|
|
130
|
+
/**
|
|
131
|
+
* Sends a request to the AI API '/reviews/custom/calls' endpoint and returns a response stream reader.
|
|
132
|
+
*/
|
|
133
|
+
callCustomReview({ content, prompt, model }: AIConnectorCustomReviewData): AIConnectorRequest;
|
|
134
|
+
}
|
|
135
|
+
export type AIGenericRequest = {
|
|
136
|
+
request: Promise<Response>;
|
|
137
|
+
abortController: AbortController;
|
|
138
|
+
};
|
|
139
|
+
export type AIConversationStartReply = {
|
|
140
|
+
id: string;
|
|
141
|
+
};
|
|
142
|
+
export type AIConversationStartRequest = {
|
|
143
|
+
getConversation: () => Promise<AIConversationStartReply>;
|
|
144
|
+
abortController: AbortController;
|
|
145
|
+
};
|
|
146
|
+
export type AIEventSourceMessageParsed = EventSourceMessage & {
|
|
147
|
+
data: Record<string, any>;
|
|
148
|
+
};
|
|
149
|
+
export type AIQueryAssistantReply = AsyncGenerator<AIEventSourceMessageParsed, void, undefined>;
|
|
150
|
+
export type AIConnectorRequest = {
|
|
151
|
+
getStream: () => Promise<AIQueryAssistantReply>;
|
|
152
|
+
abortController: AbortController;
|
|
153
|
+
};
|
|
154
|
+
export type AIConnectorQueryAssistantData = {
|
|
155
|
+
message: string;
|
|
156
|
+
conversationId: string;
|
|
157
|
+
parts: Array<AIContextItemRequestData>;
|
|
158
|
+
capabilities: AICapabilitiesRequestData | undefined;
|
|
159
|
+
model: string;
|
|
160
|
+
quickActionData?: AIQuickActionRequestData;
|
|
161
|
+
};
|
|
162
|
+
export type AIFetchDocumentReply = {
|
|
163
|
+
id: string;
|
|
164
|
+
content: string;
|
|
165
|
+
attributes?: {
|
|
166
|
+
version: number;
|
|
167
|
+
sessionId: string | null;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export type AIFetchDocumentRequest = {
|
|
171
|
+
getDocument: () => Promise<AIFetchDocumentReply>;
|
|
172
|
+
abortController: AbortController;
|
|
173
|
+
};
|
|
174
|
+
export type AIUploadReply = {
|
|
175
|
+
id: string;
|
|
176
|
+
};
|
|
177
|
+
export type AIUploadRequest = {
|
|
178
|
+
getId: () => Promise<AIUploadReply>;
|
|
179
|
+
abortController: AbortController;
|
|
180
|
+
};
|
|
181
|
+
export type AIConversationItem = {
|
|
182
|
+
id: string;
|
|
183
|
+
title: string;
|
|
184
|
+
createdAt: string;
|
|
185
|
+
updatedAt?: string;
|
|
186
|
+
pinned: boolean;
|
|
187
|
+
};
|
|
188
|
+
export type AIFetchConversationsRequest = {
|
|
189
|
+
getConversations: () => Promise<Array<AIConversationItem>>;
|
|
190
|
+
abortController: AbortController;
|
|
191
|
+
};
|
|
192
|
+
export type AIUpdateConversationRequest = {
|
|
193
|
+
getResult: () => Promise<{
|
|
194
|
+
title?: string;
|
|
195
|
+
pinned?: boolean;
|
|
196
|
+
}>;
|
|
197
|
+
abortController: AbortController;
|
|
198
|
+
};
|
|
199
|
+
export type AIDeleteConversationRequest = {
|
|
200
|
+
execute: () => Promise<void>;
|
|
201
|
+
abortController: AbortController;
|
|
202
|
+
};
|
|
203
|
+
export type AIUserMessage = {
|
|
204
|
+
capabilities: Record<string, any>;
|
|
205
|
+
content: Array<{
|
|
206
|
+
id: string;
|
|
207
|
+
type: AIContextItemType;
|
|
208
|
+
content: string;
|
|
209
|
+
name?: string;
|
|
210
|
+
url?: string;
|
|
211
|
+
attributes?: {
|
|
212
|
+
resourceId: string;
|
|
213
|
+
label: string;
|
|
214
|
+
};
|
|
215
|
+
}>;
|
|
216
|
+
prompt: string;
|
|
217
|
+
model: string;
|
|
218
|
+
id: string;
|
|
219
|
+
role: 'user';
|
|
220
|
+
attributes: Record<string, any>;
|
|
221
|
+
};
|
|
222
|
+
export type AIAssistantMessage = {
|
|
223
|
+
content: Array<{
|
|
224
|
+
id: string;
|
|
225
|
+
type: 'text' | 'modification';
|
|
226
|
+
content: string;
|
|
227
|
+
}>;
|
|
228
|
+
id: string;
|
|
229
|
+
role: 'assistant';
|
|
230
|
+
};
|
|
231
|
+
export type AIConversationMessage = AIUserMessage | AIAssistantMessage;
|
|
232
|
+
export type AIGetConversationReply = {
|
|
233
|
+
id: string;
|
|
234
|
+
model: string;
|
|
235
|
+
title: string;
|
|
236
|
+
pinned: boolean;
|
|
237
|
+
};
|
|
238
|
+
export type AIGetConversationRequest = {
|
|
239
|
+
getConversation: () => Promise<AIGetConversationReply>;
|
|
240
|
+
abortController: AbortController;
|
|
241
|
+
};
|
|
242
|
+
export type AIGetConversationMessagesRequest = {
|
|
243
|
+
getMessages: () => Promise<Array<AIConversationMessage>>;
|
|
244
|
+
abortController: AbortController;
|
|
245
|
+
};
|
|
246
|
+
export type AIModelData = {
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
provider: string;
|
|
250
|
+
description: string;
|
|
251
|
+
capabilities: {
|
|
252
|
+
webSearch: {
|
|
253
|
+
enabled: boolean;
|
|
254
|
+
};
|
|
255
|
+
reasoning: {
|
|
256
|
+
enabled: boolean;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
export type AIModelRequest = {
|
|
261
|
+
list: () => Promise<{
|
|
262
|
+
items: Array<AIModelData>;
|
|
263
|
+
}>;
|
|
264
|
+
abortController: AbortController;
|
|
265
|
+
};
|
|
266
|
+
export type AIDeleteFileRequest = {
|
|
267
|
+
execute: () => Promise<void>;
|
|
268
|
+
abortController: AbortController;
|
|
269
|
+
};
|
|
270
|
+
export type AIDeleteDocumentRequest = {
|
|
271
|
+
execute: () => Promise<void>;
|
|
272
|
+
abortController: AbortController;
|
|
273
|
+
};
|
|
274
|
+
export type AIDeleteWebResourceRequest = {
|
|
275
|
+
execute: () => Promise<void>;
|
|
276
|
+
abortController: AbortController;
|
|
277
|
+
};
|
|
278
|
+
export type AIConnectorExecuteCustomActionData = {
|
|
279
|
+
content: string;
|
|
280
|
+
message: string;
|
|
281
|
+
model: string;
|
|
282
|
+
outputFormat: 'plainText' | 'html';
|
|
283
|
+
};
|
|
284
|
+
export type AIConnectorExecuteActionData = {
|
|
285
|
+
actionName: AIActionsNames;
|
|
286
|
+
content: string;
|
|
287
|
+
args?: {
|
|
288
|
+
language?: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
export type AIConnectorSystemReviewData = {
|
|
292
|
+
reviewName: string;
|
|
293
|
+
content: string;
|
|
294
|
+
args?: {
|
|
295
|
+
language?: string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
export type AIConnectorCustomReviewData = {
|
|
299
|
+
content: string;
|
|
300
|
+
prompt: string;
|
|
301
|
+
model: string;
|
|
302
|
+
};
|
|
@@ -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 _0x2b6368=_0x31e0;(function(_0x1b5aa0,_0x5d0168){const _0x4ec54f=_0x31e0,_0x5ca25d=_0x1b5aa0();while(!![]){try{const _0x1e4cb8=-parseInt(_0x4ec54f(0x154))/0x1*(parseInt(_0x4ec54f(0x197))/0x2)+-parseInt(_0x4ec54f(0x19b))/0x3+parseInt(_0x4ec54f(0x1c5))/0x4+parseInt(_0x4ec54f(0x174))/0x5*(-parseInt(_0x4ec54f(0x16a))/0x6)+-parseInt(_0x4ec54f(0x1b9))/0x7+-parseInt(_0x4ec54f(0x14f))/0x8*(-parseInt(_0x4ec54f(0x1a3))/0x9)+parseInt(_0x4ec54f(0x1a1))/0xa;if(_0x1e4cb8===_0x5d0168)break;else _0x5ca25d['push'](_0x5ca25d['shift']());}catch(_0x2a6ef4){_0x5ca25d['push'](_0x5ca25d['shift']());}}}(_0x5bc3,0x401aa));import{createParser as _0x438406}from'eventsource-parser';import{ContextPlugin as _0xc68553}from'ckeditor5/src/core.js';import{CKEditorError as _0x5673cc}from'ckeditor5/src/utils.js';import{getTranslation as _0x23048a}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x44f60a){const _0x3c2e58=_0x31e0;_0x44f60a[_0x3c2e58(0x183)]=_0x3c2e58(0x198),_0x44f60a[_0x3c2e58(0x177)]=_0x3c2e58(0x16f),_0x44f60a[_0x3c2e58(0x1b2)]=_0x3c2e58(0x182),_0x44f60a[_0x3c2e58(0x1a4)]=_0x3c2e58(0x169),_0x44f60a[_0x3c2e58(0x180)]=_0x3c2e58(0x14c),_0x44f60a[_0x3c2e58(0x196)]=_0x3c2e58(0x188),_0x44f60a[_0x3c2e58(0x19a)]=_0x3c2e58(0x1c2),_0x44f60a[_0x3c2e58(0x191)]=_0x3c2e58(0x16e);}(AIActionsNames||(AIActionsNames={}));function _0x31e0(_0x373c26,_0x580f06){const _0x5bc367=_0x5bc3();return _0x31e0=function(_0x31e071,_0xbac888){_0x31e071=_0x31e071-0x144;let _0x416186=_0x5bc367[_0x31e071];return _0x416186;},_0x31e0(_0x373c26,_0x580f06);}export class AIConnector extends _0xc68553{[_0x2b6368(0x156)];[_0x2b6368(0x187)];[_0x2b6368(0x1a7)];static get[_0x2b6368(0x195)](){const _0x4f648d=_0x2b6368;return[_0x4f648d(0x146)];}static get[_0x2b6368(0x1a5)](){const _0x5b4032=_0x2b6368;return _0x5b4032(0x158);}static get[_0x2b6368(0x150)](){return!0x0;}static get[_0x2b6368(0x14d)](){return!0x0;}constructor(_0x106389){const _0x378f11=_0x2b6368;super(_0x106389),this[_0x378f11(0x16b)][_0x378f11(0x14a)][_0x378f11(0x152)](_0x378f11(0x1a0),_0x378f11(0x175)),this[_0x378f11(0x156)]=this[_0x378f11(0x16b)][_0x378f11(0x14a)][_0x378f11(0x166)](_0x378f11(0x1a0)),this[_0x378f11(0x187)]=null,this[_0x378f11(0x1a7)]=new TextDecoder();}[_0x2b6368(0x1bd)](){const _0x3ed28c=_0x2b6368,_0x3dc682=this[_0x3ed28c(0x16b)][_0x3ed28c(0x1be)][_0x3ed28c(0x166)](_0x3ed28c(0x146));if(!_0x3dc682[_0x3ed28c(0x15f)])throw new _0x5673cc(_0x3ed28c(0x1ba),this);this[_0x3ed28c(0x187)]=_0x3dc682[_0x3ed28c(0x15f)];}[_0x2b6368(0x164)](_0x18cacd,_0x4f3ae2){const _0x39ab16=_0x2b6368,_0x1afaa4=this[_0x39ab16(0x19e)](_0x39ab16(0x144),_0x39ab16(0x18c),{'id':_0x18cacd,'group':_0x4f3ae2});return{'getConversation':async()=>(await _0x1afaa4[_0x39ab16(0x15d)])[_0x39ab16(0x1c0)](),'abortController':_0x1afaa4[_0x39ab16(0x192)]};}[_0x2b6368(0x157)]({message:_0x21d529,conversationId:_0x2feb53,parts:_0x1feca5,capabilities:_0x3dd566,model:_0x471eb8,quickActionData:_0x5b26ee}){const _0x1cd8da=_0x2b6368,_0x594762={..._0x5b26ee&&{'quickActionData':_0x5b26ee}},_0x3fedce={'prompt':_0x21d529,'content':_0x1feca5,'model':_0x471eb8,..._0x3dd566&&{'capabilities':_0x3dd566},...Object[_0x1cd8da(0x149)](_0x594762)[_0x1cd8da(0x155)]>0x0&&{'attributes':_0x594762}},_0x5457e0=this[_0x1cd8da(0x19e)](_0x1cd8da(0x17d)+_0x2feb53+_0x1cd8da(0x16c),_0x1cd8da(0x18c),_0x3fedce);return{'getStream':async()=>{const _0x4201b9=_0x1cd8da,_0x35e26e=(await _0x5457e0[_0x4201b9(0x15d)])[_0x4201b9(0x14b)];return this[_0x4201b9(0x15b)](_0x35e26e);},'abortController':_0x5457e0[_0x1cd8da(0x192)]};}[_0x2b6368(0x171)]({content:_0x5afb2a,message:_0x26ada9,model:_0x810592,outputFormat:_0x200162}){const _0x1a5669=_0x2b6368,_0x3e057f={'content':[{'type':_0x1a5669(0x1bf),'content':_0x5afb2a}],'prompt':_0x26ada9,'model':_0x810592,'outputFormat':_0x200162},_0x50667a=this[_0x1a5669(0x19e)](_0x1a5669(0x162),_0x1a5669(0x18c),_0x3e057f);return{'getStream':async()=>{const _0x44bb23=_0x1a5669,_0xfe3e25=(await _0x50667a[_0x44bb23(0x15d)])[_0x44bb23(0x14b)];return this[_0x44bb23(0x15b)](_0xfe3e25);},'abortController':_0x50667a[_0x1a5669(0x192)]};}[_0x2b6368(0x1b8)]({actionName:_0x50788a,content:_0x3e3745,args:_0xb2c49a}){const _0x366c57=_0x2b6368,_0x3a83ac={'content':[{'type':_0x366c57(0x1bf),'content':_0x3e3745}],'args':_0xb2c49a},_0x242013=this[_0x366c57(0x19e)](_0x366c57(0x1ad)+_0x50788a+_0x366c57(0x18a),_0x366c57(0x18c),_0x3a83ac);return{'getStream':async()=>{const _0x398a06=_0x366c57,_0x3d5445=(await _0x242013[_0x398a06(0x15d)])[_0x398a06(0x14b)];return this[_0x398a06(0x15b)](_0x3d5445);},'abortController':_0x242013[_0x366c57(0x192)]};}[_0x2b6368(0x172)](_0x571193,_0x35a975,_0x3dbc3a){const _0x414773=_0x2b6368,_0x4fcba5=new FormData();_0x4fcba5[_0x414773(0x1c3)](_0x414773(0x1ae),_0x35a975,_0x35a975[_0x414773(0x153)]),_0x3dbc3a&&_0x4fcba5[_0x414773(0x1c3)](_0x414773(0x148),JSON[_0x414773(0x1b3)](_0x3dbc3a));const _0x36ec5a=this[_0x414773(0x19e)](_0x414773(0x17d)+_0x571193+_0x414773(0x1b0),_0x414773(0x18c),_0x4fcba5);return{'getId':async()=>(await _0x36ec5a[_0x414773(0x15d)])[_0x414773(0x1c0)](),'abortController':_0x36ec5a[_0x414773(0x192)]};}[_0x2b6368(0x1b1)](_0x156dee,_0x59a347){const _0x197adc=_0x2b6368,_0x3499b5=this[_0x197adc(0x19e)](_0x197adc(0x17d)+_0x156dee+_0x197adc(0x1bb)+_0x59a347,_0x197adc(0x173));return{'getDocument':async()=>(await _0x3499b5[_0x197adc(0x15d)])[_0x197adc(0x1c0)](),'abortController':_0x3499b5[_0x197adc(0x192)]};}[_0x2b6368(0x176)](_0x1b6ce4,_0x15825c,_0x19db33){const _0x243591=_0x2b6368,_0xf0d6bb={'content':_0x15825c};_0x19db33&&(_0xf0d6bb[_0x243591(0x148)]=_0x19db33);const _0x3a7969=this[_0x243591(0x19e)](_0x243591(0x17d)+_0x1b6ce4+_0x243591(0x1ac),_0x243591(0x18c),_0xf0d6bb);return{'getId':async()=>(await _0x3a7969[_0x243591(0x15d)])[_0x243591(0x1c0)](),'abortController':_0x3a7969[_0x243591(0x192)]};}[_0x2b6368(0x18f)](_0xd7bdac,_0x5c3c61){const _0x110579=_0x2b6368,_0x1e7329=new URLSearchParams();_0x1e7329[_0x110579(0x1c3)](_0x110579(0x1af),_0x110579(0x17c)),_0x1e7329[_0x110579(0x1c3)](_0x110579(0x199),_0x110579(0x147)),_0x1e7329[_0x110579(0x1c3)](_0x110579(0x17b),_0xd7bdac),_0x5c3c61&&_0x1e7329[_0x110579(0x1c3)](_0x110579(0x15c),_0x5c3c61);const _0x43b7a3=this[_0x110579(0x19e)](_0x110579(0x1ab)+_0x1e7329[_0x110579(0x1b7)](),_0x110579(0x173));return{'getConversations':async()=>{const _0x43ec3e=_0x110579,_0x22bfa1=await _0x43b7a3[_0x43ec3e(0x15d)];return(await _0x22bfa1[_0x43ec3e(0x1c0)]())[_0x43ec3e(0x178)];},'abortController':_0x43b7a3[_0x110579(0x192)]};}[_0x2b6368(0x1a9)](_0xd1cc29){const _0x4467c8=_0x2b6368,_0x3456df=this[_0x4467c8(0x19e)](_0x4467c8(0x17d)+_0xd1cc29,_0x4467c8(0x19c));return{'execute':async()=>{const _0x1c03cc=_0x4467c8;await _0x3456df[_0x1c03cc(0x15d)];},'abortController':_0x3456df[_0x4467c8(0x192)]};}[_0x2b6368(0x194)](_0x35aafa,_0x374b64){const _0x3eb76d=_0x2b6368,_0x4ee2e5=this[_0x3eb76d(0x19e)](_0x3eb76d(0x17d)+_0x35aafa,_0x3eb76d(0x1a6),_0x374b64);return{'getResult':async()=>(await _0x4ee2e5[_0x3eb76d(0x15d)],_0x374b64),'abortController':_0x4ee2e5[_0x3eb76d(0x192)]};}[_0x2b6368(0x168)](_0x597269){const _0x39c34f=_0x2b6368,_0x10143b=this[_0x39c34f(0x19e)](_0x39c34f(0x17d)+_0x597269,_0x39c34f(0x173));return{'getConversation':async()=>(await _0x10143b[_0x39c34f(0x15d)])[_0x39c34f(0x1c0)](),'abortController':_0x10143b[_0x39c34f(0x192)]};}[_0x2b6368(0x161)](_0x16dfbd){const _0x501feb=_0x2b6368,_0x40987c=this[_0x501feb(0x19e)](_0x501feb(0x17d)+_0x16dfbd+_0x501feb(0x16c),_0x501feb(0x173));return{'getMessages':async()=>{const _0x1aaca7=_0x501feb,_0x29c4ef=await _0x40987c[_0x1aaca7(0x15d)];return(await _0x29c4ef[_0x1aaca7(0x1c0)]())[_0x1aaca7(0x178)];},'abortController':_0x40987c[_0x501feb(0x192)]};}[_0x2b6368(0x18b)](_0x5c03b1,_0x2e9438,_0x4ff46a){const _0x4a7a47=_0x2b6368,_0x9ca0b7=this[_0x4a7a47(0x19e)](_0x4a7a47(0x17d)+_0x5c03b1+_0x4a7a47(0x190),_0x4a7a47(0x18c),{'url':_0x2e9438,'attributes':_0x4ff46a});return{'getId':async()=>(await _0x9ca0b7[_0x4a7a47(0x15d)])[_0x4a7a47(0x1c0)](),'abortController':_0x9ca0b7[_0x4a7a47(0x192)]};}[_0x2b6368(0x17f)](){const _0xb6893e=_0x2b6368,_0x546826=this[_0xb6893e(0x19e)](_0xb6893e(0x160),_0xb6893e(0x173));return{'list':async()=>{const _0x3d7933=_0xb6893e,_0x30f69f=await(await _0x546826[_0x3d7933(0x15d)])[_0x3d7933(0x1c0)](),_0x4f8932=_0x30f69f[_0x3d7933(0x178)][_0x3d7933(0x18e)](_0x3d4049=>({..._0x3d4049,'description':_0x23048a(this[_0x3d7933(0x16b)][_0x3d7933(0x18d)],_0x3d7933(0x179)+_0x3d4049['id'][_0x3d7933(0x1b5)]())}));return{..._0x30f69f,'items':_0x4f8932};},'abortController':_0x546826[_0xb6893e(0x192)]};}[_0x2b6368(0x170)](_0x56585d,_0x492b1b){const _0x384f47=_0x2b6368,_0x378f62=this[_0x384f47(0x19e)](_0x384f47(0x17d)+_0x56585d+_0x384f47(0x165)+_0x492b1b,_0x384f47(0x19c));return{'execute':async()=>{const _0x49ee6=_0x384f47;await _0x378f62[_0x49ee6(0x15d)];},'abortController':_0x378f62[_0x384f47(0x192)]};}[_0x2b6368(0x163)](_0xe6aadc,_0x24dcf9){const _0x41f7e6=_0x2b6368,_0x1a5c5d=this[_0x41f7e6(0x19e)](_0x41f7e6(0x17d)+_0xe6aadc+_0x41f7e6(0x1bb)+_0x24dcf9,_0x41f7e6(0x19c));return{'execute':async()=>{const _0x127cc5=_0x41f7e6;await _0x1a5c5d[_0x127cc5(0x15d)];},'abortController':_0x1a5c5d[_0x41f7e6(0x192)]};}[_0x2b6368(0x19f)](_0x2bf8fe,_0x29523a){const _0x232d2c=_0x2b6368,_0x439c23=this[_0x232d2c(0x19e)](_0x232d2c(0x17d)+_0x2bf8fe+_0x232d2c(0x185)+_0x29523a,_0x232d2c(0x19c));return{'execute':async()=>{const _0x46928c=_0x232d2c;await _0x439c23[_0x46928c(0x15d)];},'abortController':_0x439c23[_0x232d2c(0x192)]};}[_0x2b6368(0x1b4)]({reviewName:_0x452d72,content:_0x31256a,args:_0x4d4fbf}){const _0x171936=_0x2b6368,_0x518eeb=this[_0x171936(0x19e)](_0x171936(0x1b6)+_0x452d72+_0x171936(0x18a),_0x171936(0x18c),{'content':[{'type':_0x171936(0x1bf),'content':_0x31256a}],'args':_0x4d4fbf});return{'getStream':async()=>{const _0x480ed5=_0x171936,_0x64cf17=(await _0x518eeb[_0x480ed5(0x15d)])[_0x480ed5(0x14b)];return this[_0x480ed5(0x15b)](_0x64cf17);},'abortController':_0x518eeb[_0x171936(0x192)]};}[_0x2b6368(0x17e)]({content:_0x37a130,prompt:_0x4176c4,model:_0x15b3d9}){const _0x59e347=_0x2b6368,_0x18e2dc=this[_0x59e347(0x19e)](_0x59e347(0x159),_0x59e347(0x18c),{'content':[{'type':_0x59e347(0x1bf),'content':_0x37a130}],'prompt':_0x4176c4,'model':_0x15b3d9});return{'getStream':async()=>{const _0x29c761=_0x59e347,_0x4071b2=(await _0x18e2dc[_0x29c761(0x15d)])[_0x29c761(0x14b)];return this[_0x29c761(0x15b)](_0x4071b2);},'abortController':_0x18e2dc[_0x59e347(0x192)]};}[_0x2b6368(0x19e)](_0x528109,_0x46be8c,_0x1552f4){const _0x25d0c6=_0x2b6368,_0x5b6b39=new AbortController(),_0x2ac2ba=_0x1552f4 instanceof FormData,_0x3e4ed8={'Authorization':_0x25d0c6(0x1c4)+this[_0x25d0c6(0x187)]?.[_0x25d0c6(0x15a)]};_0x1552f4&&!_0x2ac2ba&&(_0x3e4ed8[_0x25d0c6(0x15e)]=_0x25d0c6(0x1a8));const _0x4328a4={'method':_0x46be8c,'headers':_0x3e4ed8,'signal':_0x5b6b39[_0x25d0c6(0x189)]};return _0x1552f4&&(_0x4328a4[_0x25d0c6(0x14b)]=_0x2ac2ba?_0x1552f4:JSON[_0x25d0c6(0x1b3)](_0x1552f4)),{'request':fetch(''+this[_0x25d0c6(0x156)]+_0x528109,_0x4328a4)[_0x25d0c6(0x193)](_0x494e8a=>{const _0x57437a=_0x25d0c6;this[_0x57437a(0x151)](_0x494e8a);})[_0x25d0c6(0x184)](_0x5f5d72=>{const _0x46b254=_0x25d0c6;if(!_0x5f5d72['ok'])throw new _0x5673cc(_0x46b254(0x167),this);return _0x5f5d72;}),'abortController':_0x5b6b39};}async*[_0x2b6368(0x15b)](_0x4b17cb){const _0x2ea2fe=_0x2b6368,_0x338124=[],_0x51e9e2=_0x4b17cb[_0x2ea2fe(0x1c1)](),_0xc71c65=_0x438406({'onError':_0x3714dc=>{const _0x311ec1=_0x2ea2fe;this[_0x311ec1(0x151)](_0x3714dc);},'onEvent':_0x26e63a=>{const _0x58ef41=_0x2ea2fe;_0x26e63a[_0x58ef41(0x19d)]=JSON[_0x58ef41(0x181)](_0x26e63a[_0x58ef41(0x19d)]),_0x338124[_0x58ef41(0x14e)](_0x26e63a);}});try{let _0x1318ed=!0x1;for(;!_0x1318ed;){const {done:_0x12837d,value:_0xac9cb8}=await _0x51e9e2[_0x2ea2fe(0x1bc)]();_0x12837d&&(_0x1318ed=!0x0),_0xc71c65[_0x2ea2fe(0x1a2)](this[_0x2ea2fe(0x1a7)][_0x2ea2fe(0x17a)](_0xac9cb8,{'stream':!0x0})),yield*_0x338124,_0x338124[_0x2ea2fe(0x155)]=0x0;}}catch(_0x5e69f1){this[_0x2ea2fe(0x151)](_0x5e69f1);}finally{_0x51e9e2[_0x2ea2fe(0x186)](),_0xc71c65[_0x2ea2fe(0x145)]();}}[_0x2b6368(0x151)](_0x571c5a){const _0x514d38=_0x2b6368;if(_0x571c5a instanceof _0x5673cc)throw _0x571c5a;if(_0x571c5a instanceof Error&&_0x514d38(0x1aa)===_0x571c5a[_0x514d38(0x153)])throw new _0x5673cc(_0x514d38(0x16d),this,{'originalError':_0x571c5a});throw new _0x5673cc(_0x514d38(0x167),this,{'originalError':_0x571c5a});}}function _0x5bc3(){const _0x10f17b=['limit','MAKE_TONE_FORMAL','1485783yHRSOy','DELETE','data','_sendApiRequest','deleteWebResource','ai.serviceUrl','5317670pOzXok','feed','189hoWZXY','MAKE_LONGER','pluginName','PATCH','_decoder','application/json','deleteConversation','AbortError','/conversations?','/documents','/actions/system/','file','excludeEmpty','/files','fetchDocument','IMPROVE_WRITING','stringify','callSystemReview','toUpperCase','/reviews/system/','toString','executeAction','1274413RDNtbD','ai-missing-token','/documents/','read','init','plugins','text','json','getReader','make-tone-formal','append','Bearer\x20','2051564PWYwuY','/conversations','reset','CloudServices','100','attributes','keys','config','body','make-shorter','isPremiumPlugin','push','178088LTOkyJ','isOfficialPlugin','_handleError','define','name','199603DnQdkk','length','_apiUrl','queryAssistant','AIConnector','/reviews/custom/calls','value','_getStreamReader','search','request','Content-Type','token','/models/1','fetchConversationMessages','/actions/custom/calls','deleteDocument','startConversation','/files/','get','ai-request-failed','fetchConversation','make-longer','79866xEEJbO','context','/messages','ai-request-aborted','translate','fix-grammar','deleteFile','executeCustomAction','uploadFile','GET','65MMyaKR','https://ai.cke-cs.com/v1','uploadDocument','FIX_GRAMMAR','items','AI_MODEL_DESCRIPTION_','decode','group','true','/conversations/','callCustomReview','getModels','MAKE_SHORTER','parse','improve-writing','CONTINUE','then','/web-resources/','releaseLock','_token','make-tone-casual','signal','/calls','uploadUrl','POST','locale','map','fetchConversations','/web-resources','TRANSLATE','abortController','catch','updateConversation','requires','MAKE_TONE_CASUAL','4VJVsnD','continue'];_0x5bc3=function(){return _0x10f17b;};return _0x5bc3();}
|