@ckeditor/ckeditor5-ai 43.0.0 → 43.1.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/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.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/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.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/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/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/ko.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/nl.js +1 -1
- package/build/translations/no.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/sk.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/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/dist/aiassistant.d.ts +8 -8
- package/dist/aiassistantediting.d.ts +1 -1
- package/dist/index-editor.css +1 -1
- package/dist/index.css +3 -3
- package/dist/index.js +2 -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/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.js +1 -1
- package/dist/translations/en.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/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/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/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/ko.js +1 -1
- package/dist/translations/ko.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/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/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/sk.js +1 -1
- package/dist/translations/sk.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/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/dist/ui/showaiassistantcommand.d.ts +2 -2
- package/lang/contexts.json +0 -5
- package/lang/translations/af.po +0 -20
- package/lang/translations/ar.po +0 -20
- package/lang/translations/bg.po +0 -20
- package/lang/translations/bn.po +0 -20
- package/lang/translations/bs.po +0 -20
- package/lang/translations/ca.po +0 -20
- package/lang/translations/cs.po +0 -20
- package/lang/translations/da.po +0 -20
- package/lang/translations/de-ch.po +0 -20
- package/lang/translations/de.po +0 -20
- package/lang/translations/el.po +0 -20
- package/lang/translations/en-au.po +0 -20
- package/lang/translations/en.po +0 -20
- package/lang/translations/es-co.po +0 -20
- package/lang/translations/es.po +0 -20
- package/lang/translations/et.po +0 -20
- package/lang/translations/fa.po +0 -20
- package/lang/translations/fi.po +0 -20
- package/lang/translations/fr.po +0 -20
- package/lang/translations/gl.po +6 -26
- package/lang/translations/he.po +0 -20
- package/lang/translations/hi.po +0 -20
- package/lang/translations/hr.po +0 -20
- package/lang/translations/hu.po +0 -20
- package/lang/translations/id.po +0 -20
- package/lang/translations/it.po +0 -20
- package/lang/translations/ja.po +0 -20
- package/lang/translations/jv.po +0 -20
- package/lang/translations/ko.po +0 -20
- package/lang/translations/lt.po +0 -20
- package/lang/translations/lv.po +0 -20
- package/lang/translations/ms.po +0 -20
- package/lang/translations/nl.po +0 -20
- package/lang/translations/no.po +0 -20
- package/lang/translations/pl.po +0 -20
- package/lang/translations/pt-br.po +0 -20
- package/lang/translations/pt.po +0 -20
- package/lang/translations/ro.po +0 -20
- package/lang/translations/ru.po +0 -20
- package/lang/translations/sk.po +0 -20
- package/lang/translations/sr-latn.po +0 -20
- package/lang/translations/sr.po +0 -20
- package/lang/translations/sv.po +0 -20
- package/lang/translations/th.po +0 -20
- package/lang/translations/ti.po +0 -20
- package/lang/translations/tk.po +0 -20
- package/lang/translations/tr.po +0 -20
- package/lang/translations/ug.po +0 -20
- package/lang/translations/uk.po +0 -20
- package/lang/translations/ur.po +0 -20
- package/lang/translations/uz.po +0 -20
- package/lang/translations/vi.po +0 -20
- package/lang/translations/zh-cn.po +0 -20
- package/lang/translations/zh.po +0 -20
- package/package.json +8 -8
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.d.ts +8 -8
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.d.ts +2 -2
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/ai.css +3 -3
- package/dist/ui/dropdown/aicommandslistview.d.ts +0 -37
- package/src/ui/dropdown/aicommandslistview.d.ts +0 -33
- package/src/ui/dropdown/aicommandslistview.js +0 -23
package/lang/translations/sv.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "Översätt"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "Översätt till %0"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "Engelska"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "Prompthistorik"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "Sök AI-kommando"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "Inga kommandon hittades"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "Inga kommandon finns"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "%0 kommandon hittades"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "Ersätt"
|
package/lang/translations/th.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "แปล"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "แปลเป็น %0"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "ภาษาอังกฤษ"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "ประวัติพรอมต์"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "ค้นหาคำสั่ง AI"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "ไม่พบคำสั่ง"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "ไม่มีคำสั่งให้ใช้"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "พบคำสั่ง %0 รายการ"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "แทนที่"
|
package/lang/translations/ti.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr ""
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr ""
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr ""
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr ""
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr ""
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr ""
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "ተክእ"
|
package/lang/translations/tk.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr ""
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr ""
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr ""
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr ""
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr ""
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr ""
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr ""
|
package/lang/translations/tr.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "Çevir"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "%0 diline çevir"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "İngilizce"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "İstem geçmişi"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "Yapay Zekâ komutunu ara"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "Hiç komut bulunamadı"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "Kullanılabilir komut yok"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "%0 komut bulundu"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "Değiştir"
|
package/lang/translations/ug.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "تەرجىمە"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "%0 غا تەرجىمە قىل"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "ئىنگلىزچە"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "ئەسكەرتىش تارىخى"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "AI بۇيرۇقى ئىزدە"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "ھېچقانداق بۇيرۇق تېپىلمىدى"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "ھېچقانداق بۇيرۇق يوق"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "ئالماشتۇر"
|
package/lang/translations/uk.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "Перекласти"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "Перекласти %0"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "Англійською"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "Історія підказок"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "Пошук команди ШІ"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "Жодних команд не знайдено"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "Немає доступних команд"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "Знайдено %0 команд"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "Замінити"
|
package/lang/translations/ur.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr ""
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr ""
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr ""
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr ""
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr ""
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr ""
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "بدل دیں"
|
package/lang/translations/uz.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr ""
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr ""
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr ""
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr ""
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr ""
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr ""
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "Dịch"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "Dịch sang %0"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "Tiếng Anh"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "Lịch sử lời nhắc"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "Tìm kiếm lệnh AI"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "Không tìm thấy lệnh nào"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "Không có lệnh nào khả dụng"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "Đã tìm thấy %0 lệnh"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "Thay thế"
|
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "翻译"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "翻译为%0"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "英语"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "提示词历史记录"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "搜索 AI 命令"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "未找到命令"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "没有可用的命令"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "找到 %0 个命令"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "替换"
|
package/lang/translations/zh.po
CHANGED
|
@@ -97,10 +97,6 @@ msgctxt "AI command group label for translating the content."
|
|
|
97
97
|
msgid "Translate"
|
|
98
98
|
msgstr "翻譯"
|
|
99
99
|
|
|
100
|
-
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
|
-
msgid "Translate to %0"
|
|
102
|
-
msgstr "翻譯為%0"
|
|
103
|
-
|
|
104
100
|
msgctxt "Translate to (English)"
|
|
105
101
|
msgid "English"
|
|
106
102
|
msgstr "英文"
|
|
@@ -201,22 +197,6 @@ msgctxt "The label of the list group that hosts historical user prompts in the A
|
|
|
201
197
|
msgid "Prompt history"
|
|
202
198
|
msgstr "提示詞紀錄"
|
|
203
199
|
|
|
204
|
-
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
205
|
-
msgid "Search AI command"
|
|
206
|
-
msgstr "搜尋 AI 指令"
|
|
207
|
-
|
|
208
|
-
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
209
|
-
msgid "No commands found"
|
|
210
|
-
msgstr "找不到指令"
|
|
211
|
-
|
|
212
|
-
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
213
|
-
msgid "No commands available"
|
|
214
|
-
msgstr "無可用指令"
|
|
215
|
-
|
|
216
|
-
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
-
msgid "%0 commands found"
|
|
218
|
-
msgstr "已找到 %0 個指令"
|
|
219
|
-
|
|
220
200
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
201
|
msgid "AI_REPLACE_CONTENT"
|
|
222
202
|
msgstr "取代"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "43.0.0",
|
|
3
|
+
"version": "43.1.0-alpha.0",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-sdk/client-bedrock-runtime": "3.621.0",
|
|
27
|
-
"@ckeditor/ckeditor5-clipboard": "43.0.0",
|
|
28
|
-
"@ckeditor/ckeditor5-core": "43.0.0",
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "43.0.0",
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "43.0.0",
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "43.0.0",
|
|
32
|
-
"ckeditor5": "43.0.0",
|
|
33
|
-
"ckeditor5-collaboration": "43.0.0",
|
|
27
|
+
"@ckeditor/ckeditor5-clipboard": "43.1.0-alpha.0",
|
|
28
|
+
"@ckeditor/ckeditor5-core": "43.1.0-alpha.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "43.1.0-alpha.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "43.1.0-alpha.0",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "43.1.0-alpha.0",
|
|
32
|
+
"ckeditor5": "43.1.0-alpha.0",
|
|
33
|
+
"ckeditor5-collaboration": "43.1.0-alpha.0",
|
|
34
34
|
"lodash-es": "4.17.21"
|
|
35
35
|
},
|
|
36
36
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x339101=_0x3e47;(function(_0x5cbaac,_0x308966){var _0x56b78b=_0x3e47,_0x4cb532=_0x5cbaac();while(!![]){try{var _0x3c59b3=parseInt(_0x56b78b(0x19d))/0x1*(parseInt(_0x56b78b(0x199))/0x2)+-parseInt(_0x56b78b(0x19b))/0x3*(parseInt(_0x56b78b(0x193))/0x4)+-parseInt(_0x56b78b(0x18b))/0x5+-parseInt(_0x56b78b(0x19a))/0x6*(-parseInt(_0x56b78b(0x194))/0x7)+-parseInt(_0x56b78b(0x190))/0x8*(parseInt(_0x56b78b(0x191))/0x9)+-parseInt(_0x56b78b(0x18f))/0xa*(-parseInt(_0x56b78b(0x18e))/0xb)+parseInt(_0x56b78b(0x196))/0xc*(parseInt(_0x56b78b(0x18c))/0xd);if(_0x3c59b3===_0x308966)break;else _0x4cb532['push'](_0x4cb532['shift']());}catch(_0x10e212){_0x4cb532['push'](_0x4cb532['shift']());}}}(_0x56f9,0x7263b));import{Plugin as _0x388bf3}from'ckeditor5/src/core.js';function _0x3e47(_0x59a35c,_0x392608){var _0x56f9df=_0x56f9();return _0x3e47=function(_0x3e4790,_0x3dba05){_0x3e4790=_0x3e4790-0x18b;var _0x361ff8=_0x56f9df[_0x3e4790];return _0x361ff8;},_0x3e47(_0x59a35c,_0x392608);}import{CKEditorError as _0x173d7b}from'ckeditor5/src/utils.js';export default class I extends _0x388bf3{static get[_0x339101(0x18d)](){var _0x31bb3f=_0x339101;return _0x31bb3f(0x19e);}[_0x339101(0x197)](){var _0x287774=_0x339101;if(!this[_0x287774(0x198)])throw new _0x173d7b(_0x287774(0x195),null);}}export class AIRequestError extends Error{constructor(_0x66808){var _0x469653=_0x339101;super(_0x66808),this[_0x469653(0x19c)]=_0x469653(0x192);}}function _0x56f9(){var _0x42d084=['2152974RvwHsP','186117FpmjNR','name','209571jWITTa','AIAdapter','4292875KwEmSq','2119OakBJT','pluginName','913781BAGDqK','10eBpoXM','8hSFTyR','1981305kUnifA','AIRequestError','56Ifxvrj','7rdaToU','aiadapter-text-adapter-not-set','83604EbERfG','afterInit','textAdapter','8mETAqf'];_0x56f9=function(){return _0x42d084;};return _0x56f9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xb395(_0x40b54e,_0x5eb534){const _0x57ea35=_0x57ea();return _0xb395=function(_0xb39518,_0x1ae6ee){_0xb39518=_0xb39518-0x90;let _0x21cbc8=_0x57ea35[_0xb39518];return _0x21cbc8;},_0xb395(_0x40b54e,_0x5eb534);}const _0x154eea=_0xb395;(function(_0x423cd7,_0x2af0cf){const _0x3c84e7=_0xb395,_0x2119b8=_0x423cd7();while(!![]){try{const _0x31d934=-parseInt(_0x3c84e7(0x98))/0x1*(parseInt(_0x3c84e7(0xb7))/0x2)+-parseInt(_0x3c84e7(0x95))/0x3*(parseInt(_0x3c84e7(0x93))/0x4)+parseInt(_0x3c84e7(0xaf))/0x5+parseInt(_0x3c84e7(0xaa))/0x6*(-parseInt(_0x3c84e7(0xa8))/0x7)+parseInt(_0x3c84e7(0x99))/0x8*(-parseInt(_0x3c84e7(0xa6))/0x9)+parseInt(_0x3c84e7(0x91))/0xa*(parseInt(_0x3c84e7(0x9e))/0xb)+parseInt(_0x3c84e7(0x97))/0xc*(parseInt(_0x3c84e7(0x9f))/0xd);if(_0x31d934===_0x2af0cf)break;else _0x2119b8['push'](_0x2119b8['shift']());}catch(_0x179956){_0x2119b8['push'](_0x2119b8['shift']());}}}(_0x57ea,0xaf78a));import{Plugin as _0x3d1889}from'ckeditor5/src/core.js';import{CKEditorError as _0x1a73e7}from'ckeditor5/src/utils.js';import{default as _0x1bcc17,AIRequestError as _0x299b13}from'./aiadapter.js';import{getTranslation as _0x8a0b96}from'../utils/common-translations.js';export default class _ extends _0x3d1889{static get[_0x154eea(0x9b)](){return[_0x1bcc17];}constructor(_0x4a4b92){const _0x4e67c5=_0x154eea;super(_0x4a4b92),this[_0x4e67c5(0xb0)]=new AbortController();}[_0x154eea(0xac)](){const _0x6af6ae=_0x154eea;this[_0x6af6ae(0x96)][_0x6af6ae(0x92)][_0x6af6ae(0xae)](_0x1bcc17)[_0x6af6ae(0xa3)]=this;}[_0x154eea(0x9a)](){const _0x1bb819=_0x154eea;this[_0x1bb819(0xb0)][_0x1bb819(0xab)][_0x1bb819(0xb2)]||(this[_0x1bb819(0xb0)][_0x1bb819(0x9a)](),this[_0x1bb819(0xb0)]=new AbortController());}async[_0x154eea(0xa0)](_0x2080a2){const _0x2dcf8e=_0x154eea;return this[_0x2dcf8e(0x94)](_0x2080a2)[_0x2dcf8e(0x90)](_0x1ad534=>{const _0x223b8e=_0x2dcf8e;if(_0x1ad534 instanceof _0x299b13)return Promise[_0x223b8e(0xa1)](_0x1ad534);if(_0x223b8e(0xb6)==_0x1ad534[_0x223b8e(0xa5)])return Promise[_0x223b8e(0x9d)]();throw console[_0x223b8e(0xb5)](_0x1ad534),new _0x1a73e7(_0x223b8e(0xb3),null);});}async[_0x154eea(0x9c)](_0x39f8bd,_0x5e6008){const _0x200772=_0x154eea,_0x1129a1=this[_0x200772(0x96)][_0x200772(0xb1)],_0x50d487={'Content-Type':_0x200772(0xa4)};if(_0x200772(0xa7)==typeof _0x39f8bd)Object[_0x200772(0xad)](_0x50d487,_0x39f8bd);else{if(_0x39f8bd)try{const _0x241ae7=await _0x39f8bd(_0x5e6008);Object[_0x200772(0xad)](_0x50d487,_0x241ae7);}catch(_0x3284e3){return Promise[_0x200772(0xa1)](new _0x299b13(_0x8a0b96(_0x1129a1,_0x200772(0xa9))));}}return _0x50d487;}async[_0x154eea(0xa2)](_0xbef77e,_0x35b04a){const _0x37cf97=_0x154eea,_0x2e5c30=this[_0x37cf97(0x96)][_0x37cf97(0xb1)];if(_0x37cf97(0xa7)==typeof _0xbef77e)return _0xbef77e;try{return await _0xbef77e(_0x35b04a);}catch(_0x57571e){return Promise[_0x37cf97(0xa1)](new _0x299b13(_0x8a0b96(_0x2e5c30,_0x37cf97(0xb4))));}}}function _0x57ea(){const _0x2fed72=['_prepareRequestParameters','textAdapter','application/json','name','914877dGnIRZ','object','2779fBeYFi','AI_ERROR_GET_HEADERS','20700NeMzXo','signal','init','assign','get','6657050xCxedr','abortController','locale','aborted','aitextadapter-send-request-failed','AI_ERROR_GET_PARAMETERS','error','AbortError','24258ivAczj','catch','4598980YRwvOQ','plugins','285832pKJBrC','sendRequest','3cInKFB','editor','23551572ttipvl','56aPDxUk','72SNRZsV','abort','requires','_prepareRequestHeaders','resolve','11BzAWOh','13IcEqmT','makeRequest','reject'];_0x57ea=function(){return _0x2fed72;};return _0x57ea();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f5d3f=_0xcc48;function _0x441c(){const _0x3c1a91=['generations','_readStreamableResponse','length','data','map','abortController','locale','_requestHeaders','bytes','sendRequest','config','anthropic.claude-v2','\x0a\x0aAssistant:','pluginName','1436032bKtfZk','completion','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','test','utf-8','editor','cohere.command','Human:\x0a','POST','350389tPqmlr','completions','utf8','_processAWSRequest','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','7FtHltB','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','chunk','<<SYS>>\x0a','ai.aws.requestHeaders','decode','getReader','parse','json','filter','from','_prepareRequestParameters','ai.aws.apiUrl','_prepareRequestHeaders','join','getModelFamily','anthropic.claude','preparePrompt','_apiUrl','bedrock-2023-05-31','_requestParameters','_readAsyncIterableResponse','application/json','body','AI_ERROR_UNSUPPORTED_MODEL','signal','_processProxyRequest','split','1489486nyLmdV','_getGeneratedText','4194492QLjhAW','resolve','generation','ai.aws.bedrockClientConfig','1731195ZeQnJi','_bedrockClientConfig','4760024WLjJKs','stringify','2462220XlukXI','AWSTextAdapter','text','\x0a<</SYS>>\x0a[INST]\x0a','read','ai21.j2','Instruction:\x0a','ai.aws.requestParameters','meta.llama','\x0a[/INST]','send','_readStaticResponse','define','toString'];_0x441c=function(){return _0x3c1a91;};return _0x441c();}(function(_0x48ed43,_0x3446e8){const _0x4bd50f=_0xcc48,_0x1dd62f=_0x48ed43();while(!![]){try{const _0x556748=parseInt(_0x4bd50f(0x1fd))/0x1+parseInt(_0x4bd50f(0x1ce))/0x2+-parseInt(_0x4bd50f(0x1d4))/0x3+-parseInt(_0x4bd50f(0x1f4))/0x4+parseInt(_0x4bd50f(0x1d8))/0x5+-parseInt(_0x4bd50f(0x1d0))/0x6+-parseInt(_0x4bd50f(0x202))/0x7*(-parseInt(_0x4bd50f(0x1d6))/0x8);if(_0x556748===_0x3446e8)break;else _0x1dd62f['push'](_0x1dd62f['shift']());}catch(_0x20d49e){_0x1dd62f['push'](_0x1dd62f['shift']());}}}(_0x441c,0x85a60));import{default as _0x1b2b5e}from'./aitextadapter.js';import{AIRequestError as _0x272440}from'./aiadapter.js';import{BedrockRuntimeClient as _0x20a3b6,InvokeModelCommand as _0x1079f1,InvokeModelWithResponseStreamCommand as _0x5def97}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x3f84c8}from'../utils/common-translations.js';function _0xcc48(_0x59dfc7,_0x393a94){const _0x441cda=_0x441c();return _0xcc48=function(_0xcc4876,_0x21e061){_0xcc4876=_0xcc4876-0x1c3;let _0x5b3014=_0x441cda[_0xcc4876];return _0x5b3014;},_0xcc48(_0x59dfc7,_0x393a94);}export default class O extends _0x1b2b5e{static get[_0x4f5d3f(0x1f3)](){const _0x12b15f=_0x4f5d3f;return _0x12b15f(0x1d9);}constructor(_0x4085a8){const _0x5a8600=_0x4f5d3f;super(_0x4085a8),_0x4085a8[_0x5a8600(0x1f0)][_0x5a8600(0x203)](_0x5a8600(0x1df))||_0x4085a8[_0x5a8600(0x1f0)][_0x5a8600(0x1e4)](_0x5a8600(0x1df),{'model':_0x5a8600(0x1f1),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5a8600(0x1c5),'stream':!0x0}),this[_0x5a8600(0x1c4)]=_0x4085a8[_0x5a8600(0x1f0)][_0x5a8600(0x203)](_0x5a8600(0x20f)),this[_0x5a8600(0x1d5)]=_0x4085a8[_0x5a8600(0x1f0)][_0x5a8600(0x203)](_0x5a8600(0x1d3)),this[_0x5a8600(0x1ed)]=_0x4085a8[_0x5a8600(0x1f0)][_0x5a8600(0x203)](_0x5a8600(0x207)),this[_0x5a8600(0x1c6)]=_0x4085a8[_0x5a8600(0x1f0)][_0x5a8600(0x203)](_0x5a8600(0x1df));}async[_0x4f5d3f(0x1ef)]({query:_0x44d22f,context:_0x3f807d,onData:_0x434ea8,actionId:_0x358911}){const _0x31e10b=_0x4f5d3f,{model:_0x5c6603,stream:_0x4eb48a,..._0x3b0239}=await this[_0x31e10b(0x20e)](this[_0x31e10b(0x1c6)],_0x358911),_0x226310={'prompt':await this[_0x31e10b(0x1c3)](_0x44d22f,_0x3f807d,_0x5c6603,_0x358911),..._0x3b0239};this[_0x31e10b(0x1c4)]?await this[_0x31e10b(0x1cc)](_0x226310,_0x5c6603,_0x4eb48a,_0x434ea8,_0x358911):await this[_0x31e10b(0x200)](_0x226310,_0x5c6603,_0x4eb48a,_0x434ea8);}async[_0x4f5d3f(0x1c3)](_0x5bfa28,_0x461678,_0x3d7566,_0x3f79ea){const _0x27d3a4=_0x4f5d3f;let _0x58df33,_0x1a4ca7;return _0x461678?(_0x58df33=_0x27d3a4(0x1f6),_0x1a4ca7=_0x27d3a4(0x1de)+_0x5bfa28+_0x27d3a4(0x204)+_0x461678):(_0x58df33=_0x27d3a4(0x201),_0x1a4ca7=_0x5bfa28),_0x27d3a4(0x1e0)==this[_0x27d3a4(0x212)](_0x3d7566)?_0x27d3a4(0x206)+_0x58df33+_0x27d3a4(0x1db)+_0x1a4ca7+_0x27d3a4(0x1e1):_0x27d3a4(0x1fb)+_0x58df33+'\x0a'+_0x1a4ca7+_0x27d3a4(0x1f2);}[_0x4f5d3f(0x212)](_0x137a00){const _0x59f9b4=_0x4f5d3f;if(/^anthropic\.claude/[_0x59f9b4(0x1f7)](_0x137a00))return _0x59f9b4(0x213);if(/^ai21\.j2/[_0x59f9b4(0x1f7)](_0x137a00))return _0x59f9b4(0x1dd);if(/^cohere\.command/[_0x59f9b4(0x1f7)](_0x137a00))return _0x59f9b4(0x1fa);if(/^meta\.llama/[_0x59f9b4(0x1f7)](_0x137a00))return _0x59f9b4(0x1e0);throw new _0x272440(_0x3f84c8(this[_0x59f9b4(0x1f9)][_0x59f9b4(0x1ec)],_0x59f9b4(0x1ca),_0x137a00));}async[_0x4f5d3f(0x1cc)](_0x9f00d9,_0x539ab5,_0x599698,_0x5e3a34,_0x29ae5f){const _0xbd7548=_0x4f5d3f,_0x2afae1={'method':_0xbd7548(0x1fc),'headers':await this[_0xbd7548(0x210)](this[_0xbd7548(0x1ed)],_0x29ae5f),'body':JSON[_0xbd7548(0x1d7)]({..._0x9f00d9,'model':_0x539ab5,'stream':_0x599698}),'signal':this[_0xbd7548(0x1eb)][_0xbd7548(0x1cb)]},_0x44c0ff=await fetch(this[_0xbd7548(0x1c4)],_0x2afae1);_0x599698?await this[_0xbd7548(0x1e7)](_0x44c0ff,_0x539ab5,_0x5e3a34):await this[_0xbd7548(0x1e3)](_0x44c0ff,_0x539ab5,_0x5e3a34);}async[_0x4f5d3f(0x200)](_0x41b450,_0x2a4519,_0x339db4,_0x3864fb){const _0x41f232=_0x4f5d3f,_0x48fe9e=new _0x20a3b6(this[_0x41f232(0x1d5)]),_0x2a73ed={'body':JSON[_0x41f232(0x1d7)](_0x41b450),'contentType':_0x41f232(0x1c8),'accept':_0x41f232(0x1c8),'modelId':_0x2a4519};let _0x518d4c;if(_0x339db4){const _0x5dc686=new _0x5def97(_0x2a73ed);_0x518d4c=await _0x48fe9e[_0x41f232(0x1e2)](_0x5dc686,{'abortSignal':this[_0x41f232(0x1eb)][_0x41f232(0x1cb)]}),await this[_0x41f232(0x1c7)](_0x518d4c,_0x2a4519,_0x3864fb);}else{const _0x45c6d4=new _0x1079f1(_0x2a73ed);_0x518d4c=await _0x48fe9e[_0x41f232(0x1e2)](_0x45c6d4,{'abortSignal':this[_0x41f232(0x1eb)][_0x41f232(0x1cb)]}),await this[_0x41f232(0x1e3)](_0x518d4c,_0x2a4519,_0x3864fb);}}async[_0x4f5d3f(0x1c7)](_0x28d68b,_0x230941,_0x5f54ab){const _0x2a485d=_0x4f5d3f,_0x39d823=_0x28d68b[_0x2a485d(0x1c9)],_0x58da3=new TextDecoder(_0x2a485d(0x1f8));let _0x406ec0='';for await(const _0x4c8c4c of _0x39d823)if(_0x4c8c4c[_0x2a485d(0x205)]){const _0x12f966=_0x58da3[_0x2a485d(0x208)](_0x4c8c4c[_0x2a485d(0x205)][_0x2a485d(0x1ee)]),_0x46d73c=JSON[_0x2a485d(0x20a)](_0x12f966);_0x406ec0+=this[_0x2a485d(0x1cf)](_0x46d73c,_0x230941),_0x5f54ab(_0x406ec0);}return Promise[_0x2a485d(0x1d1)]();}async[_0x4f5d3f(0x1e7)](_0xe46485,_0x26814a,_0xe4028d){const _0x2636ad=_0x4f5d3f,_0x192272=_0xe46485[_0x2636ad(0x1c9)],_0xb763d8=new TextDecoder(_0x2636ad(0x1f8)),_0x1bf6aa=_0x192272[_0x2636ad(0x209)]();let _0x13e9b0='',_0x21db81='',_0x177056=!0x1;for(;!_0x177056;){const {done:_0x5e2b09,value:_0x5e2dbd}=await _0x1bf6aa[_0x2636ad(0x1dc)]();if(_0x177056=_0x5e2b09,_0x177056)break;const _0x44d71a=(_0x13e9b0+_0xb763d8[_0x2636ad(0x208)](_0x5e2dbd))[_0x2636ad(0x1cd)]('\x0a')[_0x2636ad(0x1ea)](_0x3ecca6=>{const _0x5dda84=_0x2636ad;try{return _0x13e9b0='',JSON[_0x5dda84(0x20a)](_0x3ecca6);}catch(_0x170972){return _0x13e9b0=_0x3ecca6,null;}})[_0x2636ad(0x20c)](_0x662c42=>null!==_0x662c42);_0x44d71a[_0x2636ad(0x1e8)]&&(_0x21db81+=_0x44d71a[_0x2636ad(0x1ea)](_0x51a871=>this[_0x2636ad(0x1cf)](_0x51a871,_0x26814a))[_0x2636ad(0x211)](''),_0xe4028d(_0x21db81));}return Promise[_0x2636ad(0x1d1)]();}async[_0x4f5d3f(0x1e3)](_0x291352,_0x51ba1c,_0x379957){const _0x5d6ad0=_0x4f5d3f;let _0x4b3516;return _0x4b3516=_0x291352 instanceof Response?await _0x291352[_0x5d6ad0(0x20b)]():JSON[_0x5d6ad0(0x20a)](Buffer[_0x5d6ad0(0x20d)](_0x291352[_0x5d6ad0(0x1c9)])[_0x5d6ad0(0x1e5)](_0x5d6ad0(0x1ff))),(_0x379957(this[_0x5d6ad0(0x1cf)](_0x4b3516,_0x51ba1c)),Promise[_0x5d6ad0(0x1d1)]());}[_0x4f5d3f(0x1cf)](_0x443a66,_0x3ca828){const _0x153144=_0x4f5d3f;switch(this[_0x153144(0x212)](_0x3ca828)){case _0x153144(0x213):return _0x443a66[_0x153144(0x1f5)];case _0x153144(0x1dd):return _0x443a66[_0x153144(0x1fe)][0x0][_0x153144(0x1e9)][_0x153144(0x1da)];case _0x153144(0x1fa):return _0x443a66[_0x153144(0x1e6)][0x0][_0x153144(0x1da)];case _0x153144(0x1e0):return _0x443a66[_0x153144(0x1d2)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4f3a(){const _0x8a0520=['Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','[DONE]','config','context_length_exceeded','pluginName','split','message','_prepareRequestHeaders','sendRequest','AI_ERROR_MODERATION','system','json','text','https://api.openai.com/v1/chat/completions','204RzNKiO','map','_isBufferIncomplete','reject','signal','resolve','_readStaticResponse','length','delta','3374640hnEDNg','user','body','AI_ERROR_CONTEXT_LENGTH','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','includes','join','get','_prepareRequestParameters','replace','_cleanUpData','Moderation','content','gpt-3.5-turbo','29224920rCdGlI','filter','_requestParameters','abortController','160013lCjzqT','stream','45139AYVGxx','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','read','locale','8ofsENi','572XHGURG','1973259yleGyz','ai.openAI.requestParameters','decode','parse','choices','ai.openAI.requestHeaders','24IwmxGa','OpenAITextAdapter','stringify','172730WJGfnt','editor','_readStreamableResponse','15012sAfCBy','Instruction:\x0a','1164JCeVoH','_requestHeaders','data:\x20','_apiUrl','define','prepareMessages','ai.openAI.apiUrl'];_0x4f3a=function(){return _0x8a0520;};return _0x4f3a();}const _0x1eb12d=_0xf862;(function(_0x3aa33b,_0x5f0e6c){const _0x55eacf=_0xf862,_0x442687=_0x3aa33b();while(!![]){try{const _0x159b08=parseInt(_0x55eacf(0x108))/0x1*(-parseInt(_0x55eacf(0xcd))/0x2)+-parseInt(_0x55eacf(0xd5))/0x3*(parseInt(_0x55eacf(0xd3))/0x4)+parseInt(_0x55eacf(0xf3))/0x5+parseInt(_0x55eacf(0xea))/0x6*(parseInt(_0x55eacf(0x106))/0x7)+parseInt(_0x55eacf(0xc5))/0x8*(-parseInt(_0x55eacf(0xc7))/0x9)+parseInt(_0x55eacf(0xd0))/0xa*(-parseInt(_0x55eacf(0xc6))/0xb)+parseInt(_0x55eacf(0x102))/0xc;if(_0x159b08===_0x5f0e6c)break;else _0x442687['push'](_0x442687['shift']());}catch(_0x3bde07){_0x442687['push'](_0x442687['shift']());}}}(_0x4f3a,0xbc8a9));import{default as _0x11d7f0}from'./aitextadapter.js';import{AIRequestError as _0x334b47}from'./aiadapter.js';function _0xf862(_0x4c1616,_0x31581a){const _0x4f3a0f=_0x4f3a();return _0xf862=function(_0xf862e6,_0x232276){_0xf862e6=_0xf862e6-0xc3;let _0x492695=_0x4f3a0f[_0xf862e6];return _0x492695;},_0xf862(_0x4c1616,_0x31581a);}import{getTranslation as _0x14fa0f}from'../utils/common-translations.js';export default class M extends _0x11d7f0{static get[_0x1eb12d(0xe0)](){const _0x21d798=_0x1eb12d;return _0x21d798(0xce);}constructor(_0x4a0529){const _0x2d1645=_0x1eb12d;super(_0x4a0529),_0x4a0529[_0x2d1645(0xde)][_0x2d1645(0xd9)](_0x2d1645(0xdb),_0x2d1645(0xe9)),_0x4a0529[_0x2d1645(0xde)][_0x2d1645(0xfb)](_0x2d1645(0xc8))||_0x4a0529[_0x2d1645(0xde)][_0x2d1645(0xd9)](_0x2d1645(0xc8),{'model':_0x2d1645(0x101),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x2d1645(0xd8)]=_0x4a0529[_0x2d1645(0xde)][_0x2d1645(0xfb)](_0x2d1645(0xdb)),this[_0x2d1645(0xd6)]=_0x4a0529[_0x2d1645(0xde)][_0x2d1645(0xfb)](_0x2d1645(0xcc))||{},this[_0x2d1645(0x104)]=_0x4a0529[_0x2d1645(0xde)][_0x2d1645(0xfb)](_0x2d1645(0xc8));}async[_0x1eb12d(0xe4)]({query:_0x298b45,context:_0x494683,onData:_0x361bc5,actionId:_0x40960f}){const _0x32fa94=_0x1eb12d,_0x3a417c=this[_0x32fa94(0xd1)][_0x32fa94(0xc4)],_0x1ca566=await this[_0x32fa94(0xda)](_0x298b45,_0x494683,_0x40960f),_0x565428=await this[_0x32fa94(0xe3)](this[_0x32fa94(0xd6)],_0x40960f),_0x1a9dee=await this[_0x32fa94(0xfc)](this[_0x32fa94(0x104)],_0x40960f),_0x365a6b={'messages':_0x1ca566,..._0x1a9dee},_0x366f9e={'method':_0x32fa94(0x109),'headers':_0x565428,'body':JSON[_0x32fa94(0xcf)](_0x365a6b),'signal':this[_0x32fa94(0x105)][_0x32fa94(0xee)]},_0x122db5=await fetch(this[_0x32fa94(0xd8)],_0x366f9e);if(_0x122db5['ok'])return _0x1a9dee[_0x32fa94(0x107)]?await this[_0x32fa94(0xd2)](_0x122db5,_0x361bc5):await this[_0x32fa94(0xf0)](_0x122db5,_0x361bc5),Promise[_0x32fa94(0xef)]();{const _0x221d62=await _0x122db5[_0x32fa94(0xe8)]();return _0x221d62[_0x32fa94(0xf9)](_0x32fa94(0xdf))?Promise[_0x32fa94(0xed)](new _0x334b47(_0x14fa0f(_0x3a417c,_0x32fa94(0xf6)))):_0x221d62[_0x32fa94(0xf9)](_0x32fa94(0xff))?Promise[_0x32fa94(0xed)](new _0x334b47(_0x14fa0f(_0x3a417c,_0x32fa94(0xe5)))):Promise[_0x32fa94(0xed)](new Error(_0x221d62));}}async[_0x1eb12d(0xda)](_0x3ad329,_0x208c16,_0x5b16a5){const _0x139b37=_0x1eb12d;let _0x38a596,_0x1ed55d;return _0x208c16?(_0x38a596=_0x139b37(0xdc),_0x1ed55d=_0x139b37(0xd4)+_0x3ad329+_0x139b37(0xf7)+_0x208c16):(_0x38a596=_0x139b37(0x10a),_0x1ed55d=_0x3ad329),[{'role':_0x139b37(0xe6),'content':_0x38a596},{'role':_0x139b37(0xf4),'content':_0x1ed55d}];}async[_0x1eb12d(0xd2)](_0x29863,_0x1930fd){const _0x436e2a=_0x1eb12d,_0x41f9dd=_0x29863[_0x436e2a(0xf5)][_0x436e2a(0xf8)](),_0x4c79f6=new TextDecoder();let _0x4154ec='',_0x2e9660='',_0x3d6d46='',_0x551f66=!0x1;for(;!_0x551f66;){const {done:_0x1fb3c6,value:_0x9b65e6}=await _0x41f9dd[_0x436e2a(0xc3)](),_0x230da7=_0x4154ec+_0x4c79f6[_0x436e2a(0xc9)](_0x9b65e6);let _0x2e586d='';_0x551f66=_0x1fb3c6;try{_0x2e586d=this[_0x436e2a(0xfe)](_0x230da7),_0x4154ec='';}catch(_0x22bfeb){_0x4154ec=_0x230da7;continue;}_0x2e9660+=_0x2e586d,!_0x551f66&&this[_0x436e2a(0xec)](_0x2e9660)||_0x2e9660&&(_0x3d6d46+=_0x2e9660,_0x2e9660='',_0x1930fd(_0x3d6d46));}return Promise[_0x436e2a(0xef)]();}async[_0x1eb12d(0xf0)](_0x403a61,_0x4926ba){const _0x83bf22=_0x1eb12d;return _0x4926ba((await _0x403a61[_0x83bf22(0xe7)]())[_0x83bf22(0xcb)][0x0][_0x83bf22(0xe2)][_0x83bf22(0x100)]),Promise[_0x83bf22(0xef)]();}[_0x1eb12d(0xec)](_0x5bf2b2){const _0xcca6e2=_0x1eb12d,_0x2c711d=_0x5bf2b2[_0xcca6e2(0xe1)]('<')[_0xcca6e2(0xf1)]!==_0x5bf2b2[_0xcca6e2(0xe1)]('>')[_0xcca6e2(0xf1)],_0x22f872=_0x5bf2b2[_0xcca6e2(0xf1)]<0x1e;return _0x2c711d&&_0x22f872;}[_0x1eb12d(0xfe)](_0x4d8f7e){const _0x6c25ea=_0x1eb12d;return _0x4d8f7e[_0x6c25ea(0xe1)](/\n(?![^{]*\})/g)[_0x6c25ea(0xeb)](_0x463036=>_0x463036[_0x6c25ea(0xfd)](_0x6c25ea(0xd7),''))[_0x6c25ea(0x103)](_0x46aa04=>_0x46aa04&&_0x46aa04[_0x6c25ea(0xf1)]>0x0&&_0x6c25ea(0xdd)!==_0x46aa04)[_0x6c25ea(0xeb)](_0x4de073=>{const _0x4beeab=_0x6c25ea,{choices:_0x1c6a9b}=JSON[_0x4beeab(0xca)](_0x4de073);if(_0x1c6a9b[0x0]&&_0x1c6a9b[0x0][_0x4beeab(0xf2)]&&_0x1c6a9b[0x0][_0x4beeab(0xf2)][_0x4beeab(0x100)])return _0x1c6a9b[0x0][_0x4beeab(0xf2)][_0x4beeab(0x100)];})[_0x6c25ea(0x103)](_0x56b35c=>_0x56b35c)[_0x6c25ea(0xfa)]('');}}
|