pygpt-net 2.1.37__py3-none-any.whl → 2.4.48__py3-none-any.whl
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.
- CHANGELOG.md +930 -133
- README.md +2229 -1137
- pygpt_net/CHANGELOG.txt +810 -9
- pygpt_net/LICENSE +1 -1
- pygpt_net/__init__.py +10 -4
- pygpt_net/app.py +77 -4
- pygpt_net/config.py +133 -12
- pygpt_net/container.py +23 -1
- pygpt_net/controller/__init__.py +55 -12
- pygpt_net/controller/access/__init__.py +81 -0
- pygpt_net/controller/access/control.py +410 -0
- pygpt_net/controller/access/voice.py +432 -0
- pygpt_net/controller/agent/__init__.py +21 -128
- pygpt_net/controller/agent/common.py +126 -0
- pygpt_net/controller/agent/experts.py +165 -0
- pygpt_net/controller/agent/legacy.py +398 -0
- pygpt_net/controller/agent/llama.py +154 -0
- pygpt_net/controller/assistant/__init__.py +75 -62
- pygpt_net/controller/assistant/batch.py +576 -0
- pygpt_net/controller/assistant/editor.py +171 -18
- pygpt_net/controller/assistant/files.py +115 -131
- pygpt_net/controller/assistant/store.py +480 -0
- pygpt_net/controller/assistant/threads.py +276 -58
- pygpt_net/controller/attachment.py +283 -65
- pygpt_net/controller/audio/__init__.py +158 -17
- pygpt_net/controller/calendar/__init__.py +38 -5
- pygpt_net/controller/calendar/note.py +134 -13
- pygpt_net/controller/camera.py +219 -100
- pygpt_net/controller/chat/__init__.py +73 -10
- pygpt_net/controller/chat/attachment.py +621 -0
- pygpt_net/controller/chat/audio.py +99 -0
- pygpt_net/controller/chat/command.py +90 -0
- pygpt_net/controller/chat/common.py +143 -37
- pygpt_net/controller/chat/files.py +28 -6
- pygpt_net/controller/chat/image.py +102 -145
- pygpt_net/controller/chat/input.py +130 -127
- pygpt_net/controller/chat/output.py +182 -203
- pygpt_net/controller/chat/render.py +542 -50
- pygpt_net/controller/chat/response.py +278 -0
- pygpt_net/controller/chat/stream.py +186 -0
- pygpt_net/controller/chat/text.py +167 -198
- pygpt_net/controller/chat/vision.py +36 -47
- pygpt_net/controller/command.py +39 -11
- pygpt_net/controller/config/__init__.py +45 -6
- pygpt_net/controller/config/field/checkbox.py +7 -4
- pygpt_net/controller/config/field/cmd.py +7 -5
- pygpt_net/controller/config/field/combo.py +41 -11
- pygpt_net/controller/config/field/dictionary.py +14 -11
- pygpt_net/controller/config/field/input.py +9 -6
- pygpt_net/controller/config/field/slider.py +12 -9
- pygpt_net/controller/config/field/textarea.py +8 -5
- pygpt_net/controller/config/placeholder.py +196 -25
- pygpt_net/controller/ctx/__init__.py +666 -86
- pygpt_net/controller/ctx/common.py +44 -23
- pygpt_net/controller/ctx/extra.py +76 -17
- pygpt_net/controller/ctx/summarizer.py +28 -6
- pygpt_net/controller/{debug.py → debug/__init__.py} +62 -8
- pygpt_net/controller/dialogs/confirm.py +194 -17
- pygpt_net/controller/dialogs/debug.py +10 -2
- pygpt_net/controller/dialogs/info.py +34 -2
- pygpt_net/controller/files.py +65 -13
- pygpt_net/controller/finder.py +175 -0
- pygpt_net/controller/idx/__init__.py +151 -18
- pygpt_net/controller/idx/common.py +11 -30
- pygpt_net/controller/idx/indexer.py +183 -53
- pygpt_net/controller/idx/settings.py +9 -3
- pygpt_net/controller/kernel/__init__.py +370 -0
- pygpt_net/controller/kernel/reply.py +171 -0
- pygpt_net/controller/kernel/stack.py +137 -0
- pygpt_net/controller/lang/__init__.py +24 -12
- pygpt_net/controller/lang/custom.py +46 -11
- pygpt_net/controller/lang/mapping.py +178 -19
- pygpt_net/controller/launcher.py +16 -2
- pygpt_net/controller/layout.py +78 -10
- pygpt_net/controller/mode.py +63 -24
- pygpt_net/controller/model/__init__.py +56 -20
- pygpt_net/controller/model/editor.py +9 -4
- pygpt_net/controller/notepad.py +132 -123
- pygpt_net/controller/painter/__init__.py +16 -4
- pygpt_net/controller/painter/capture.py +96 -22
- pygpt_net/controller/painter/common.py +9 -7
- pygpt_net/controller/plugins/__init__.py +90 -42
- pygpt_net/controller/plugins/presets.py +19 -10
- pygpt_net/controller/plugins/settings.py +12 -6
- pygpt_net/controller/presets/__init__.py +263 -17
- pygpt_net/controller/presets/editor.py +173 -41
- pygpt_net/controller/presets/experts.py +156 -0
- pygpt_net/controller/settings/__init__.py +49 -9
- pygpt_net/controller/settings/editor.py +132 -25
- pygpt_net/controller/settings/profile.py +569 -0
- pygpt_net/controller/settings/workdir.py +215 -0
- pygpt_net/controller/theme/__init__.py +86 -8
- pygpt_net/controller/theme/common.py +29 -5
- pygpt_net/controller/theme/markdown.py +74 -37
- pygpt_net/controller/theme/menu.py +56 -4
- pygpt_net/controller/theme/nodes.py +39 -12
- pygpt_net/controller/tools/__init__.py +91 -0
- pygpt_net/controller/ui/__init__.py +29 -43
- pygpt_net/controller/ui/mode.py +135 -35
- pygpt_net/controller/ui/tabs.py +687 -0
- pygpt_net/controller/ui/vision.py +45 -19
- pygpt_net/core/access/__init__.py +30 -0
- pygpt_net/core/access/actions.py +131 -0
- pygpt_net/core/access/helpers.py +234 -0
- pygpt_net/core/access/shortcuts.py +104 -0
- pygpt_net/core/access/voice.py +277 -0
- pygpt_net/core/agents/__init__.py +32 -0
- pygpt_net/core/agents/legacy.py +66 -0
- pygpt_net/core/agents/memory.py +80 -0
- pygpt_net/core/agents/observer/__init__.py +17 -0
- pygpt_net/core/agents/observer/evaluation.py +163 -0
- pygpt_net/core/agents/provider.py +68 -0
- pygpt_net/core/agents/runner.py +702 -0
- pygpt_net/core/agents/tools.py +175 -0
- pygpt_net/core/assistants/__init__.py +22 -141
- pygpt_net/core/assistants/files.py +359 -0
- pygpt_net/core/assistants/store.py +300 -0
- pygpt_net/core/{attachments.py → attachments/__init__.py} +124 -29
- pygpt_net/core/attachments/context.py +752 -0
- pygpt_net/core/attachments/worker.py +40 -0
- pygpt_net/core/{audio.py → audio/__init__.py} +74 -3
- pygpt_net/core/audio/context.py +39 -0
- pygpt_net/core/audio/whisper.py +37 -0
- pygpt_net/core/bridge/__init__.py +266 -0
- pygpt_net/core/bridge/context.py +113 -0
- pygpt_net/core/bridge/worker.py +157 -0
- pygpt_net/core/calendar/__init__.py +57 -11
- pygpt_net/core/chain/__init__.py +41 -23
- pygpt_net/core/chain/chat.py +55 -31
- pygpt_net/core/chain/completion.py +58 -34
- pygpt_net/core/command.py +321 -13
- pygpt_net/core/ctx/__init__.py +721 -70
- pygpt_net/core/ctx/bag.py +53 -0
- pygpt_net/core/ctx/container.py +142 -0
- pygpt_net/core/ctx/idx.py +45 -8
- pygpt_net/core/ctx/output.py +247 -0
- pygpt_net/core/ctx/reply.py +63 -0
- pygpt_net/core/db/__init__.py +109 -16
- pygpt_net/core/db/viewer.py +50 -12
- pygpt_net/core/debug/__init__.py +35 -14
- pygpt_net/core/debug/agent.py +12 -7
- pygpt_net/core/debug/assistants.py +10 -2
- pygpt_net/core/debug/attachments.py +5 -4
- pygpt_net/core/debug/config.py +11 -1
- pygpt_net/core/debug/context.py +67 -23
- pygpt_net/core/debug/events.py +58 -0
- pygpt_net/core/debug/indexes.py +3 -1
- pygpt_net/core/debug/kernel.py +30 -0
- pygpt_net/core/debug/models.py +2 -1
- pygpt_net/core/debug/presets.py +25 -9
- pygpt_net/core/debug/tabs.py +49 -0
- pygpt_net/core/dispatcher.py +86 -181
- pygpt_net/core/docker/__init__.py +410 -0
- pygpt_net/core/docker/builder.py +87 -0
- pygpt_net/core/events/__init__.py +17 -0
- pygpt_net/core/events/app.py +54 -0
- pygpt_net/core/events/base.py +73 -0
- pygpt_net/core/events/control.py +88 -0
- pygpt_net/core/events/event.py +120 -0
- pygpt_net/core/events/kernel.py +67 -0
- pygpt_net/core/events/render.py +71 -0
- pygpt_net/core/experts/__init__.py +501 -0
- pygpt_net/core/filesystem/__init__.py +257 -24
- pygpt_net/core/filesystem/actions.py +15 -10
- pygpt_net/core/filesystem/editor.py +57 -11
- pygpt_net/core/filesystem/packer.py +87 -0
- pygpt_net/core/filesystem/types.py +12 -7
- pygpt_net/core/filesystem/url.py +21 -1
- pygpt_net/core/history.py +3 -2
- pygpt_net/core/idx/__init__.py +125 -30
- pygpt_net/core/idx/chat.py +438 -83
- pygpt_net/core/idx/context.py +47 -7
- pygpt_net/core/idx/indexing.py +546 -62
- pygpt_net/core/idx/llm.py +42 -21
- pygpt_net/core/idx/metadata.py +21 -5
- pygpt_net/core/idx/types/ctx.py +32 -6
- pygpt_net/core/idx/types/external.py +41 -7
- pygpt_net/core/idx/types/files.py +31 -6
- pygpt_net/core/idx/ui/__init__.py +22 -0
- pygpt_net/core/idx/ui/loaders.py +217 -0
- pygpt_net/core/idx/worker.py +32 -3
- pygpt_net/core/image.py +22 -10
- pygpt_net/core/installer.py +2 -4
- pygpt_net/core/llm/__init__.py +13 -3
- pygpt_net/core/locale.py +43 -8
- pygpt_net/core/models.py +121 -17
- pygpt_net/core/modes.py +62 -14
- pygpt_net/core/notepad.py +38 -3
- pygpt_net/core/platforms.py +6 -3
- pygpt_net/core/plugins.py +59 -32
- pygpt_net/core/presets.py +223 -31
- pygpt_net/core/profile.py +280 -0
- pygpt_net/core/prompt/__init__.py +156 -0
- pygpt_net/core/prompt/custom.py +307 -0
- pygpt_net/core/prompt/template.py +107 -0
- pygpt_net/core/render/base.py +347 -32
- pygpt_net/core/render/markdown/__init__.py +0 -0
- pygpt_net/core/render/markdown/body.py +210 -0
- pygpt_net/core/render/markdown/helpers.py +91 -0
- pygpt_net/core/render/markdown/parser.py +78 -6
- pygpt_net/core/render/markdown/pid.py +23 -0
- pygpt_net/core/render/markdown/renderer.py +405 -383
- pygpt_net/core/render/plain/body.py +130 -0
- pygpt_net/core/render/plain/helpers.py +60 -0
- pygpt_net/core/render/plain/pid.py +22 -0
- pygpt_net/core/render/plain/renderer.py +281 -231
- pygpt_net/core/render/web/__init__.py +10 -0
- pygpt_net/core/render/web/body.py +800 -0
- pygpt_net/core/render/web/helpers.py +102 -0
- pygpt_net/core/render/web/parser.py +297 -0
- pygpt_net/core/render/web/pid.py +36 -0
- pygpt_net/core/render/web/renderer.py +1356 -0
- pygpt_net/core/render/web/syntax_highlight.py +58 -0
- pygpt_net/core/settings.py +49 -22
- pygpt_net/core/tabs/__init__.py +822 -0
- pygpt_net/core/tabs/tab.py +81 -0
- pygpt_net/core/text/finder.py +214 -0
- pygpt_net/core/text/utils.py +78 -0
- pygpt_net/core/text/web_finder.py +213 -0
- pygpt_net/core/tokens.py +97 -32
- pygpt_net/core/types/__init__.py +12 -0
- pygpt_net/core/types/mode.py +22 -0
- pygpt_net/core/updater/__init__.py +67 -6
- pygpt_net/core/vision/__init__.py +22 -0
- pygpt_net/core/vision/analyzer.py +158 -0
- pygpt_net/core/{web.py → web/__init__.py} +29 -7
- pygpt_net/core/web/helpers.py +237 -0
- pygpt_net/css.qrc +5 -0
- pygpt_net/css_rc.py +251 -0
- pygpt_net/data/audio/click_off.mp3 +0 -0
- pygpt_net/data/audio/click_on.mp3 +0 -0
- pygpt_net/data/audio/ok.mp3 +0 -0
- pygpt_net/data/config/config.json +188 -37
- pygpt_net/data/config/models.json +1509 -48
- pygpt_net/data/config/modes.json +23 -5
- pygpt_net/data/config/presets/agent_openai.json +33 -0
- pygpt_net/data/config/presets/agent_openai_assistant.json +33 -0
- pygpt_net/data/config/presets/agent_planner.json +33 -0
- pygpt_net/data/config/presets/agent_react.json +33 -0
- pygpt_net/data/config/presets/batman_and_joker.json +7 -3
- pygpt_net/data/config/presets/current.agent.json +7 -4
- pygpt_net/data/config/presets/current.agent_llama.json +32 -0
- pygpt_net/data/config/presets/current.assistant.json +6 -3
- pygpt_net/data/config/presets/current.audio.json +34 -0
- pygpt_net/data/config/presets/current.chat.json +6 -3
- pygpt_net/data/config/presets/current.completion.json +6 -3
- pygpt_net/data/config/presets/current.expert.json +23 -0
- pygpt_net/data/config/presets/current.img.json +6 -3
- pygpt_net/data/config/presets/current.langchain.json +6 -3
- pygpt_net/data/config/presets/current.llama_index.json +6 -3
- pygpt_net/data/config/presets/current.vision.json +6 -3
- pygpt_net/data/config/presets/dalle_white_cat.json +6 -3
- pygpt_net/data/config/presets/joke_agent.json +25 -0
- pygpt_net/data/config/presets/joke_expert.json +29 -0
- pygpt_net/data/config/settings.json +724 -64
- pygpt_net/data/config/settings_section.json +9 -0
- pygpt_net/data/css/markdown.css +28 -2
- pygpt_net/data/css/markdown.dark.css +2 -2
- pygpt_net/data/css/markdown.light.css +12 -3
- pygpt_net/data/css/style.css +1 -0
- pygpt_net/data/css/style.dark.css +2 -3
- pygpt_net/data/css/style.light.css +28 -4
- pygpt_net/data/css/web-blocks.css +339 -0
- pygpt_net/data/css/web-blocks.dark.css +74 -0
- pygpt_net/data/css/web-blocks.light.css +82 -0
- pygpt_net/data/css/web-chatgpt.css +350 -0
- pygpt_net/data/css/web-chatgpt.dark.css +64 -0
- pygpt_net/data/css/web-chatgpt.light.css +75 -0
- pygpt_net/data/css/web-chatgpt_wide.css +350 -0
- pygpt_net/data/css/web-chatgpt_wide.dark.css +64 -0
- pygpt_net/data/css/web-chatgpt_wide.light.css +75 -0
- pygpt_net/data/fonts/MonaspaceArgon/MonaspaceArgon-Bold.otf +0 -0
- pygpt_net/data/fonts/MonaspaceArgon/MonaspaceArgon-BoldItalic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceArgon/MonaspaceArgon-Italic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceArgon/MonaspaceArgon-Regular.otf +0 -0
- pygpt_net/data/fonts/MonaspaceKrypton/MonaspaceKrypton-Bold.otf +0 -0
- pygpt_net/data/fonts/MonaspaceKrypton/MonaspaceKrypton-BoldItalic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceKrypton/MonaspaceKrypton-Italic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceKrypton/MonaspaceKrypton-Regular.otf +0 -0
- pygpt_net/data/fonts/MonaspaceNeon/MonaspaceNeon-Bold.otf +0 -0
- pygpt_net/data/fonts/MonaspaceNeon/MonaspaceNeon-BoldItalic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceNeon/MonaspaceNeon-Italic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceNeon/MonaspaceNeon-Regular.otf +0 -0
- pygpt_net/data/fonts/MonaspaceRadon/MonaspaceRadon-Bold.otf +0 -0
- pygpt_net/data/fonts/MonaspaceRadon/MonaspaceRadon-BoldItalic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceRadon/MonaspaceRadon-Italic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceRadon/MonaspaceRadon-Regular.otf +0 -0
- pygpt_net/data/fonts/MonaspaceXenon/MonaspaceXenon-Bold.otf +0 -0
- pygpt_net/data/fonts/MonaspaceXenon/MonaspaceXenon-BoldItalic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceXenon/MonaspaceXenon-Italic.otf +0 -0
- pygpt_net/data/fonts/MonaspaceXenon/MonaspaceXenon-Regular.otf +0 -0
- pygpt_net/data/icons/accessibility.svg +1 -0
- pygpt_net/data/icons/collapse.svg +3 -0
- pygpt_net/data/icons/cursor.png +0 -0
- pygpt_net/data/icons/split_screen.svg +1 -0
- pygpt_net/data/js/highlight/DIGESTS.md +793 -0
- pygpt_net/data/js/highlight/LICENSE +29 -0
- pygpt_net/data/js/highlight/README.md +45 -0
- pygpt_net/data/js/highlight/es/core.js +2600 -0
- pygpt_net/data/js/highlight/es/core.min.js +307 -0
- pygpt_net/data/js/highlight/es/highlight.js +2600 -0
- pygpt_net/data/js/highlight/es/highlight.min.js +307 -0
- pygpt_net/data/js/highlight/es/languages/1c.js +552 -0
- pygpt_net/data/js/highlight/es/languages/1c.min.js +25 -0
- pygpt_net/data/js/highlight/es/languages/abnf.js +91 -0
- pygpt_net/data/js/highlight/es/languages/abnf.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/accesslog.js +100 -0
- pygpt_net/data/js/highlight/es/languages/accesslog.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/actionscript.js +161 -0
- pygpt_net/data/js/highlight/es/languages/actionscript.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/ada.js +273 -0
- pygpt_net/data/js/highlight/es/languages/ada.min.js +25 -0
- pygpt_net/data/js/highlight/es/languages/angelscript.js +186 -0
- pygpt_net/data/js/highlight/es/languages/angelscript.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/apache.js +109 -0
- pygpt_net/data/js/highlight/es/languages/apache.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/applescript.js +157 -0
- pygpt_net/data/js/highlight/es/languages/applescript.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/arcade.js +425 -0
- pygpt_net/data/js/highlight/es/languages/arcade.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/arduino.js +1014 -0
- pygpt_net/data/js/highlight/es/languages/arduino.min.js +54 -0
- pygpt_net/data/js/highlight/es/languages/armasm.js +132 -0
- pygpt_net/data/js/highlight/es/languages/armasm.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/asciidoc.js +269 -0
- pygpt_net/data/js/highlight/es/languages/asciidoc.min.js +35 -0
- pygpt_net/data/js/highlight/es/languages/aspectj.js +239 -0
- pygpt_net/data/js/highlight/es/languages/aspectj.min.js +30 -0
- pygpt_net/data/js/highlight/es/languages/autohotkey.js +83 -0
- pygpt_net/data/js/highlight/es/languages/autohotkey.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/autoit.js +186 -0
- pygpt_net/data/js/highlight/es/languages/autoit.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/avrasm.js +86 -0
- pygpt_net/data/js/highlight/es/languages/avrasm.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/awk.js +76 -0
- pygpt_net/data/js/highlight/es/languages/awk.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/axapta.js +196 -0
- pygpt_net/data/js/highlight/es/languages/axapta.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/bash.js +415 -0
- pygpt_net/data/js/highlight/es/languages/bash.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/basic.js +238 -0
- pygpt_net/data/js/highlight/es/languages/basic.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/bnf.js +47 -0
- pygpt_net/data/js/highlight/es/languages/bnf.min.js +6 -0
- pygpt_net/data/js/highlight/es/languages/brainfuck.js +62 -0
- pygpt_net/data/js/highlight/es/languages/brainfuck.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/c.js +340 -0
- pygpt_net/data/js/highlight/es/languages/c.min.js +40 -0
- pygpt_net/data/js/highlight/es/languages/cal.js +168 -0
- pygpt_net/data/js/highlight/es/languages/cal.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/capnproto.js +107 -0
- pygpt_net/data/js/highlight/es/languages/capnproto.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/ceylon.js +148 -0
- pygpt_net/data/js/highlight/es/languages/ceylon.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/clean.js +75 -0
- pygpt_net/data/js/highlight/es/languages/clean.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/clojure-repl.js +35 -0
- pygpt_net/data/js/highlight/es/languages/clojure-repl.min.js +4 -0
- pygpt_net/data/js/highlight/es/languages/clojure.js +192 -0
- pygpt_net/data/js/highlight/es/languages/clojure.min.js +25 -0
- pygpt_net/data/js/highlight/es/languages/cmake.js +72 -0
- pygpt_net/data/js/highlight/es/languages/cmake.min.js +7 -0
- pygpt_net/data/js/highlight/es/languages/coffeescript.js +374 -0
- pygpt_net/data/js/highlight/es/languages/coffeescript.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/coq.js +453 -0
- pygpt_net/data/js/highlight/es/languages/coq.min.js +7 -0
- pygpt_net/data/js/highlight/es/languages/cos.js +148 -0
- pygpt_net/data/js/highlight/es/languages/cos.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/cpp.js +611 -0
- pygpt_net/data/js/highlight/es/languages/cpp.min.js +46 -0
- pygpt_net/data/js/highlight/es/languages/crmsh.js +108 -0
- pygpt_net/data/js/highlight/es/languages/crmsh.min.js +19 -0
- pygpt_net/data/js/highlight/es/languages/crystal.js +320 -0
- pygpt_net/data/js/highlight/es/languages/crystal.min.js +48 -0
- pygpt_net/data/js/highlight/es/languages/csharp.js +414 -0
- pygpt_net/data/js/highlight/es/languages/csharp.min.js +49 -0
- pygpt_net/data/js/highlight/es/languages/csp.js +66 -0
- pygpt_net/data/js/highlight/es/languages/csp.min.js +6 -0
- pygpt_net/data/js/highlight/es/languages/css.js +862 -0
- pygpt_net/data/js/highlight/es/languages/css.min.js +31 -0
- pygpt_net/data/js/highlight/es/languages/d.js +280 -0
- pygpt_net/data/js/highlight/es/languages/d.min.js +20 -0
- pygpt_net/data/js/highlight/es/languages/dart.js +270 -0
- pygpt_net/data/js/highlight/es/languages/dart.min.js +22 -0
- pygpt_net/data/js/highlight/es/languages/delphi.js +254 -0
- pygpt_net/data/js/highlight/es/languages/delphi.min.js +19 -0
- pygpt_net/data/js/highlight/es/languages/diff.js +70 -0
- pygpt_net/data/js/highlight/es/languages/diff.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/django.js +83 -0
- pygpt_net/data/js/highlight/es/languages/django.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/dns.js +86 -0
- pygpt_net/data/js/highlight/es/languages/dns.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/dockerfile.js +52 -0
- pygpt_net/data/js/highlight/es/languages/dockerfile.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/dos.js +175 -0
- pygpt_net/data/js/highlight/es/languages/dos.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/dsconfig.js +74 -0
- pygpt_net/data/js/highlight/es/languages/dsconfig.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/dts.js +165 -0
- pygpt_net/data/js/highlight/es/languages/dts.min.js +22 -0
- pygpt_net/data/js/highlight/es/languages/dust.js +55 -0
- pygpt_net/data/js/highlight/es/languages/dust.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/ebnf.js +62 -0
- pygpt_net/data/js/highlight/es/languages/ebnf.min.js +7 -0
- pygpt_net/data/js/highlight/es/languages/elixir.js +287 -0
- pygpt_net/data/js/highlight/es/languages/elixir.min.js +34 -0
- pygpt_net/data/js/highlight/es/languages/elm.js +151 -0
- pygpt_net/data/js/highlight/es/languages/elm.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/erb.js +37 -0
- pygpt_net/data/js/highlight/es/languages/erb.min.js +5 -0
- pygpt_net/data/js/highlight/es/languages/erlang-repl.js +62 -0
- pygpt_net/data/js/highlight/es/languages/erlang-repl.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/erlang.js +207 -0
- pygpt_net/data/js/highlight/es/languages/erlang.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/excel.js +553 -0
- pygpt_net/data/js/highlight/es/languages/excel.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/fix.js +47 -0
- pygpt_net/data/js/highlight/es/languages/fix.min.js +7 -0
- pygpt_net/data/js/highlight/es/languages/flix.js +87 -0
- pygpt_net/data/js/highlight/es/languages/flix.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/fortran.js +582 -0
- pygpt_net/data/js/highlight/es/languages/fortran.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/fsharp.js +635 -0
- pygpt_net/data/js/highlight/es/languages/fsharp.min.js +47 -0
- pygpt_net/data/js/highlight/es/languages/gams.js +189 -0
- pygpt_net/data/js/highlight/es/languages/gams.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/gauss.js +314 -0
- pygpt_net/data/js/highlight/es/languages/gauss.min.js +36 -0
- pygpt_net/data/js/highlight/es/languages/gcode.js +89 -0
- pygpt_net/data/js/highlight/es/languages/gcode.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/gherkin.js +57 -0
- pygpt_net/data/js/highlight/es/languages/gherkin.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/glsl.js +136 -0
- pygpt_net/data/js/highlight/es/languages/glsl.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/gml.js +3138 -0
- pygpt_net/data/js/highlight/es/languages/gml.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/go.js +164 -0
- pygpt_net/data/js/highlight/es/languages/go.min.js +19 -0
- pygpt_net/data/js/highlight/es/languages/golo.js +89 -0
- pygpt_net/data/js/highlight/es/languages/golo.min.js +6 -0
- pygpt_net/data/js/highlight/es/languages/gradle.js +198 -0
- pygpt_net/data/js/highlight/es/languages/gradle.min.js +6 -0
- pygpt_net/data/js/highlight/es/languages/graphql.js +86 -0
- pygpt_net/data/js/highlight/es/languages/graphql.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/groovy.js +198 -0
- pygpt_net/data/js/highlight/es/languages/groovy.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/haml.js +121 -0
- pygpt_net/data/js/highlight/es/languages/haml.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/handlebars.js +266 -0
- pygpt_net/data/js/highlight/es/languages/handlebars.min.js +29 -0
- pygpt_net/data/js/highlight/es/languages/haskell.js +225 -0
- pygpt_net/data/js/highlight/es/languages/haskell.min.js +32 -0
- pygpt_net/data/js/highlight/es/languages/haxe.js +175 -0
- pygpt_net/data/js/highlight/es/languages/haxe.min.js +30 -0
- pygpt_net/data/js/highlight/es/languages/hsp.js +67 -0
- pygpt_net/data/js/highlight/es/languages/hsp.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/http.js +105 -0
- pygpt_net/data/js/highlight/es/languages/http.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/hy.js +145 -0
- pygpt_net/data/js/highlight/es/languages/hy.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/inform7.js +78 -0
- pygpt_net/data/js/highlight/es/languages/inform7.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/ini.js +129 -0
- pygpt_net/data/js/highlight/es/languages/ini.min.js +16 -0
- pygpt_net/data/js/highlight/es/languages/irpf90.js +115 -0
- pygpt_net/data/js/highlight/es/languages/irpf90.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/isbl.js +3213 -0
- pygpt_net/data/js/highlight/es/languages/isbl.min.js +25 -0
- pygpt_net/data/js/highlight/es/languages/java.js +298 -0
- pygpt_net/data/js/highlight/es/languages/java.min.js +38 -0
- pygpt_net/data/js/highlight/es/languages/javascript.js +775 -0
- pygpt_net/data/js/highlight/es/languages/javascript.min.js +81 -0
- pygpt_net/data/js/highlight/es/languages/jboss-cli.js +71 -0
- pygpt_net/data/js/highlight/es/languages/jboss-cli.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/json.js +62 -0
- pygpt_net/data/js/highlight/es/languages/json.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/julia-repl.js +59 -0
- pygpt_net/data/js/highlight/es/languages/julia-repl.min.js +4 -0
- pygpt_net/data/js/highlight/es/languages/julia.js +450 -0
- pygpt_net/data/js/highlight/es/languages/julia.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/kotlin.js +294 -0
- pygpt_net/data/js/highlight/es/languages/kotlin.min.js +46 -0
- pygpt_net/data/js/highlight/es/languages/lasso.js +179 -0
- pygpt_net/data/js/highlight/es/languages/lasso.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/latex.js +286 -0
- pygpt_net/data/js/highlight/es/languages/latex.min.js +34 -0
- pygpt_net/data/js/highlight/es/languages/ldif.js +39 -0
- pygpt_net/data/js/highlight/es/languages/ldif.min.js +5 -0
- pygpt_net/data/js/highlight/es/languages/leaf.js +105 -0
- pygpt_net/data/js/highlight/es/languages/leaf.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/less.js +963 -0
- pygpt_net/data/js/highlight/es/languages/less.min.js +45 -0
- pygpt_net/data/js/highlight/es/languages/lisp.js +147 -0
- pygpt_net/data/js/highlight/es/languages/lisp.min.js +16 -0
- pygpt_net/data/js/highlight/es/languages/livecodeserver.js +181 -0
- pygpt_net/data/js/highlight/es/languages/livecodeserver.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/livescript.js +386 -0
- pygpt_net/data/js/highlight/es/languages/livescript.min.js +35 -0
- pygpt_net/data/js/highlight/es/languages/llvm.js +143 -0
- pygpt_net/data/js/highlight/es/languages/llvm.min.js +16 -0
- pygpt_net/data/js/highlight/es/languages/lsl.js +84 -0
- pygpt_net/data/js/highlight/es/languages/lsl.min.js +19 -0
- pygpt_net/data/js/highlight/es/languages/lua.js +88 -0
- pygpt_net/data/js/highlight/es/languages/lua.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/makefile.js +94 -0
- pygpt_net/data/js/highlight/es/languages/makefile.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/markdown.js +256 -0
- pygpt_net/data/js/highlight/es/languages/markdown.min.js +32 -0
- pygpt_net/data/js/highlight/es/languages/mathematica.js +7367 -0
- pygpt_net/data/js/highlight/es/languages/mathematica.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/matlab.js +115 -0
- pygpt_net/data/js/highlight/es/languages/matlab.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/maxima.js +422 -0
- pygpt_net/data/js/highlight/es/languages/maxima.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/mel.js +243 -0
- pygpt_net/data/js/highlight/es/languages/mel.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/mercury.js +116 -0
- pygpt_net/data/js/highlight/es/languages/mercury.min.js +16 -0
- pygpt_net/data/js/highlight/es/languages/mipsasm.js +112 -0
- pygpt_net/data/js/highlight/es/languages/mipsasm.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/mizar.js +35 -0
- pygpt_net/data/js/highlight/es/languages/mizar.min.js +4 -0
- pygpt_net/data/js/highlight/es/languages/mojolicious.js +44 -0
- pygpt_net/data/js/highlight/es/languages/mojolicious.min.js +6 -0
- pygpt_net/data/js/highlight/es/languages/monkey.js +192 -0
- pygpt_net/data/js/highlight/es/languages/monkey.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/moonscript.js +149 -0
- pygpt_net/data/js/highlight/es/languages/moonscript.min.js +23 -0
- pygpt_net/data/js/highlight/es/languages/n1ql.js +373 -0
- pygpt_net/data/js/highlight/es/languages/n1ql.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/nestedtext.js +91 -0
- pygpt_net/data/js/highlight/es/languages/nestedtext.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/nginx.js +161 -0
- pygpt_net/data/js/highlight/es/languages/nginx.min.js +21 -0
- pygpt_net/data/js/highlight/es/languages/nim.js +193 -0
- pygpt_net/data/js/highlight/es/languages/nim.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/nix.js +103 -0
- pygpt_net/data/js/highlight/es/languages/nix.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/node-repl.js +41 -0
- pygpt_net/data/js/highlight/es/languages/node-repl.min.js +5 -0
- pygpt_net/data/js/highlight/es/languages/nsis.js +565 -0
- pygpt_net/data/js/highlight/es/languages/nsis.min.js +23 -0
- pygpt_net/data/js/highlight/es/languages/objectivec.js +261 -0
- pygpt_net/data/js/highlight/es/languages/objectivec.min.js +23 -0
- pygpt_net/data/js/highlight/es/languages/ocaml.js +91 -0
- pygpt_net/data/js/highlight/es/languages/ocaml.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/openscad.js +85 -0
- pygpt_net/data/js/highlight/es/languages/openscad.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/oxygene.js +95 -0
- pygpt_net/data/js/highlight/es/languages/oxygene.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/parser3.js +63 -0
- pygpt_net/data/js/highlight/es/languages/parser3.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/perl.js +512 -0
- pygpt_net/data/js/highlight/es/languages/perl.min.js +40 -0
- pygpt_net/data/js/highlight/es/languages/pf.js +68 -0
- pygpt_net/data/js/highlight/es/languages/pf.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/pgsql.js +533 -0
- pygpt_net/data/js/highlight/es/languages/pgsql.min.js +69 -0
- pygpt_net/data/js/highlight/es/languages/php-template.js +62 -0
- pygpt_net/data/js/highlight/es/languages/php-template.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/php.js +621 -0
- pygpt_net/data/js/highlight/es/languages/php.min.js +58 -0
- pygpt_net/data/js/highlight/es/languages/plaintext.js +27 -0
- pygpt_net/data/js/highlight/es/languages/plaintext.min.js +3 -0
- pygpt_net/data/js/highlight/es/languages/pony.js +98 -0
- pygpt_net/data/js/highlight/es/languages/pony.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/powershell.js +325 -0
- pygpt_net/data/js/highlight/es/languages/powershell.min.js +40 -0
- pygpt_net/data/js/highlight/es/languages/processing.js +442 -0
- pygpt_net/data/js/highlight/es/languages/processing.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/profile.js +51 -0
- pygpt_net/data/js/highlight/es/languages/profile.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/prolog.js +105 -0
- pygpt_net/data/js/highlight/es/languages/prolog.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/properties.js +76 -0
- pygpt_net/data/js/highlight/es/languages/properties.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/protobuf.js +87 -0
- pygpt_net/data/js/highlight/es/languages/protobuf.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/puppet.js +154 -0
- pygpt_net/data/js/highlight/es/languages/puppet.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/purebasic.js +108 -0
- pygpt_net/data/js/highlight/es/languages/purebasic.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/python-repl.js +40 -0
- pygpt_net/data/js/highlight/es/languages/python-repl.min.js +5 -0
- pygpt_net/data/js/highlight/es/languages/python.js +444 -0
- pygpt_net/data/js/highlight/es/languages/python.min.js +42 -0
- pygpt_net/data/js/highlight/es/languages/q.js +46 -0
- pygpt_net/data/js/highlight/es/languages/q.min.js +8 -0
- pygpt_net/data/js/highlight/es/languages/qml.js +197 -0
- pygpt_net/data/js/highlight/es/languages/qml.min.js +29 -0
- pygpt_net/data/js/highlight/es/languages/r.js +265 -0
- pygpt_net/data/js/highlight/es/languages/r.min.js +26 -0
- pygpt_net/data/js/highlight/es/languages/reasonml.js +150 -0
- pygpt_net/data/js/highlight/es/languages/reasonml.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/rib.js +45 -0
- pygpt_net/data/js/highlight/es/languages/rib.min.js +6 -0
- pygpt_net/data/js/highlight/es/languages/roboconf.js +90 -0
- pygpt_net/data/js/highlight/es/languages/roboconf.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/routeros.js +172 -0
- pygpt_net/data/js/highlight/es/languages/routeros.min.js +22 -0
- pygpt_net/data/js/highlight/es/languages/rsl.js +157 -0
- pygpt_net/data/js/highlight/es/languages/rsl.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/ruby.js +456 -0
- pygpt_net/data/js/highlight/es/languages/ruby.min.js +54 -0
- pygpt_net/data/js/highlight/es/languages/ruleslanguage.js +84 -0
- pygpt_net/data/js/highlight/es/languages/ruleslanguage.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/rust.js +324 -0
- pygpt_net/data/js/highlight/es/languages/rust.min.js +27 -0
- pygpt_net/data/js/highlight/es/languages/sas.js +565 -0
- pygpt_net/data/js/highlight/es/languages/sas.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/scala.js +222 -0
- pygpt_net/data/js/highlight/es/languages/scala.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/scheme.js +204 -0
- pygpt_net/data/js/highlight/es/languages/scheme.min.js +19 -0
- pygpt_net/data/js/highlight/es/languages/scilab.js +81 -0
- pygpt_net/data/js/highlight/es/languages/scilab.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/scss.js +852 -0
- pygpt_net/data/js/highlight/es/languages/scss.min.js +33 -0
- pygpt_net/data/js/highlight/es/languages/shell.js +41 -0
- pygpt_net/data/js/highlight/es/languages/shell.min.js +5 -0
- pygpt_net/data/js/highlight/es/languages/smali.js +134 -0
- pygpt_net/data/js/highlight/es/languages/smali.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/smalltalk.js +77 -0
- pygpt_net/data/js/highlight/es/languages/smalltalk.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/sml.js +83 -0
- pygpt_net/data/js/highlight/es/languages/sml.min.js +14 -0
- pygpt_net/data/js/highlight/es/languages/sqf.js +2670 -0
- pygpt_net/data/js/highlight/es/languages/sqf.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/sql.js +690 -0
- pygpt_net/data/js/highlight/es/languages/sql.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/stan.js +529 -0
- pygpt_net/data/js/highlight/es/languages/stan.min.js +28 -0
- pygpt_net/data/js/highlight/es/languages/stata.js +61 -0
- pygpt_net/data/js/highlight/es/languages/stata.min.js +11 -0
- pygpt_net/data/js/highlight/es/languages/step21.js +75 -0
- pygpt_net/data/js/highlight/es/languages/step21.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/stylus.js +912 -0
- pygpt_net/data/js/highlight/es/languages/stylus.min.js +36 -0
- pygpt_net/data/js/highlight/es/languages/subunit.js +52 -0
- pygpt_net/data/js/highlight/es/languages/subunit.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/swift.js +951 -0
- pygpt_net/data/js/highlight/es/languages/swift.min.js +66 -0
- pygpt_net/data/js/highlight/es/languages/taggerscript.js +67 -0
- pygpt_net/data/js/highlight/es/languages/taggerscript.min.js +7 -0
- pygpt_net/data/js/highlight/es/languages/tap.js +55 -0
- pygpt_net/data/js/highlight/es/languages/tap.min.js +7 -0
- pygpt_net/data/js/highlight/es/languages/tcl.js +199 -0
- pygpt_net/data/js/highlight/es/languages/tcl.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/thrift.js +85 -0
- pygpt_net/data/js/highlight/es/languages/thrift.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/tp.js +180 -0
- pygpt_net/data/js/highlight/es/languages/tp.min.js +19 -0
- pygpt_net/data/js/highlight/es/languages/twig.js +268 -0
- pygpt_net/data/js/highlight/es/languages/twig.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/typescript.js +909 -0
- pygpt_net/data/js/highlight/es/languages/typescript.min.js +98 -0
- pygpt_net/data/js/highlight/es/languages/vala.js +69 -0
- pygpt_net/data/js/highlight/es/languages/vala.min.js +9 -0
- pygpt_net/data/js/highlight/es/languages/vbnet.js +165 -0
- pygpt_net/data/js/highlight/es/languages/vbnet.min.js +25 -0
- pygpt_net/data/js/highlight/es/languages/vbscript-html.js +32 -0
- pygpt_net/data/js/highlight/es/languages/vbscript-html.min.js +4 -0
- pygpt_net/data/js/highlight/es/languages/vbscript.js +228 -0
- pygpt_net/data/js/highlight/es/languages/vbscript.min.js +10 -0
- pygpt_net/data/js/highlight/es/languages/verilog.js +558 -0
- pygpt_net/data/js/highlight/es/languages/verilog.min.js +17 -0
- pygpt_net/data/js/highlight/es/languages/vhdl.js +224 -0
- pygpt_net/data/js/highlight/es/languages/vhdl.min.js +13 -0
- pygpt_net/data/js/highlight/es/languages/vim.js +137 -0
- pygpt_net/data/js/highlight/es/languages/vim.min.js +12 -0
- pygpt_net/data/js/highlight/es/languages/wasm.js +147 -0
- pygpt_net/data/js/highlight/es/languages/wasm.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/wren.js +310 -0
- pygpt_net/data/js/highlight/es/languages/wren.min.js +30 -0
- pygpt_net/data/js/highlight/es/languages/x86asm.js +161 -0
- pygpt_net/data/js/highlight/es/languages/x86asm.min.js +18 -0
- pygpt_net/data/js/highlight/es/languages/xl.js +213 -0
- pygpt_net/data/js/highlight/es/languages/xl.min.js +15 -0
- pygpt_net/data/js/highlight/es/languages/xml.js +249 -0
- pygpt_net/data/js/highlight/es/languages/xml.min.js +29 -0
- pygpt_net/data/js/highlight/es/languages/xquery.js +368 -0
- pygpt_net/data/js/highlight/es/languages/xquery.min.js +33 -0
- pygpt_net/data/js/highlight/es/languages/yaml.js +203 -0
- pygpt_net/data/js/highlight/es/languages/yaml.min.js +25 -0
- pygpt_net/data/js/highlight/es/languages/zephir.js +137 -0
- pygpt_net/data/js/highlight/es/languages/zephir.min.js +18 -0
- pygpt_net/data/js/highlight/es/package.json +1 -0
- pygpt_net/data/js/highlight/highlight.js +60739 -0
- pygpt_net/data/js/highlight/highlight.min.js +3861 -0
- pygpt_net/data/js/highlight/languages/1c.js +554 -0
- pygpt_net/data/js/highlight/languages/1c.min.js +25 -0
- pygpt_net/data/js/highlight/languages/abnf.js +93 -0
- pygpt_net/data/js/highlight/languages/abnf.min.js +11 -0
- pygpt_net/data/js/highlight/languages/accesslog.js +102 -0
- pygpt_net/data/js/highlight/languages/accesslog.min.js +13 -0
- pygpt_net/data/js/highlight/languages/actionscript.js +163 -0
- pygpt_net/data/js/highlight/languages/actionscript.min.js +17 -0
- pygpt_net/data/js/highlight/languages/ada.js +275 -0
- pygpt_net/data/js/highlight/languages/ada.min.js +25 -0
- pygpt_net/data/js/highlight/languages/angelscript.js +188 -0
- pygpt_net/data/js/highlight/languages/angelscript.min.js +21 -0
- pygpt_net/data/js/highlight/languages/apache.js +111 -0
- pygpt_net/data/js/highlight/languages/apache.min.js +14 -0
- pygpt_net/data/js/highlight/languages/applescript.js +159 -0
- pygpt_net/data/js/highlight/languages/applescript.min.js +19 -0
- pygpt_net/data/js/highlight/languages/arcade.js +427 -0
- pygpt_net/data/js/highlight/languages/arcade.min.js +27 -0
- pygpt_net/data/js/highlight/languages/arduino.js +1016 -0
- pygpt_net/data/js/highlight/languages/arduino.min.js +54 -0
- pygpt_net/data/js/highlight/languages/armasm.js +134 -0
- pygpt_net/data/js/highlight/languages/armasm.min.js +17 -0
- pygpt_net/data/js/highlight/languages/asciidoc.js +271 -0
- pygpt_net/data/js/highlight/languages/asciidoc.min.js +35 -0
- pygpt_net/data/js/highlight/languages/aspectj.js +241 -0
- pygpt_net/data/js/highlight/languages/aspectj.min.js +31 -0
- pygpt_net/data/js/highlight/languages/autohotkey.js +85 -0
- pygpt_net/data/js/highlight/languages/autohotkey.min.js +14 -0
- pygpt_net/data/js/highlight/languages/autoit.js +188 -0
- pygpt_net/data/js/highlight/languages/autoit.min.js +21 -0
- pygpt_net/data/js/highlight/languages/avrasm.js +88 -0
- pygpt_net/data/js/highlight/languages/avrasm.min.js +12 -0
- pygpt_net/data/js/highlight/languages/awk.js +78 -0
- pygpt_net/data/js/highlight/languages/awk.min.js +11 -0
- pygpt_net/data/js/highlight/languages/axapta.js +198 -0
- pygpt_net/data/js/highlight/languages/axapta.min.js +11 -0
- pygpt_net/data/js/highlight/languages/bash.js +417 -0
- pygpt_net/data/js/highlight/languages/bash.min.js +21 -0
- pygpt_net/data/js/highlight/languages/basic.js +240 -0
- pygpt_net/data/js/highlight/languages/basic.min.js +10 -0
- pygpt_net/data/js/highlight/languages/bnf.js +49 -0
- pygpt_net/data/js/highlight/languages/bnf.min.js +6 -0
- pygpt_net/data/js/highlight/languages/brainfuck.js +64 -0
- pygpt_net/data/js/highlight/languages/brainfuck.min.js +8 -0
- pygpt_net/data/js/highlight/languages/c.js +342 -0
- pygpt_net/data/js/highlight/languages/c.min.js +40 -0
- pygpt_net/data/js/highlight/languages/cal.js +170 -0
- pygpt_net/data/js/highlight/languages/cal.min.js +15 -0
- pygpt_net/data/js/highlight/languages/capnproto.js +109 -0
- pygpt_net/data/js/highlight/languages/capnproto.min.js +11 -0
- pygpt_net/data/js/highlight/languages/ceylon.js +150 -0
- pygpt_net/data/js/highlight/languages/ceylon.min.js +15 -0
- pygpt_net/data/js/highlight/languages/clean.js +77 -0
- pygpt_net/data/js/highlight/languages/clean.min.js +8 -0
- pygpt_net/data/js/highlight/languages/clojure-repl.js +37 -0
- pygpt_net/data/js/highlight/languages/clojure-repl.min.js +4 -0
- pygpt_net/data/js/highlight/languages/clojure.js +194 -0
- pygpt_net/data/js/highlight/languages/clojure.min.js +25 -0
- pygpt_net/data/js/highlight/languages/cmake.js +74 -0
- pygpt_net/data/js/highlight/languages/cmake.min.js +7 -0
- pygpt_net/data/js/highlight/languages/coffeescript.js +376 -0
- pygpt_net/data/js/highlight/languages/coffeescript.min.js +29 -0
- pygpt_net/data/js/highlight/languages/coq.js +455 -0
- pygpt_net/data/js/highlight/languages/coq.min.js +7 -0
- pygpt_net/data/js/highlight/languages/cos.js +150 -0
- pygpt_net/data/js/highlight/languages/cos.min.js +15 -0
- pygpt_net/data/js/highlight/languages/cpp.js +613 -0
- pygpt_net/data/js/highlight/languages/cpp.min.js +47 -0
- pygpt_net/data/js/highlight/languages/crmsh.js +110 -0
- pygpt_net/data/js/highlight/languages/crmsh.min.js +19 -0
- pygpt_net/data/js/highlight/languages/crystal.js +322 -0
- pygpt_net/data/js/highlight/languages/crystal.min.js +48 -0
- pygpt_net/data/js/highlight/languages/csharp.js +416 -0
- pygpt_net/data/js/highlight/languages/csharp.min.js +49 -0
- pygpt_net/data/js/highlight/languages/csp.js +68 -0
- pygpt_net/data/js/highlight/languages/csp.min.js +7 -0
- pygpt_net/data/js/highlight/languages/css.js +864 -0
- pygpt_net/data/js/highlight/languages/css.min.js +31 -0
- pygpt_net/data/js/highlight/languages/d.js +282 -0
- pygpt_net/data/js/highlight/languages/d.min.js +20 -0
- pygpt_net/data/js/highlight/languages/dart.js +272 -0
- pygpt_net/data/js/highlight/languages/dart.min.js +22 -0
- pygpt_net/data/js/highlight/languages/delphi.js +256 -0
- pygpt_net/data/js/highlight/languages/delphi.min.js +19 -0
- pygpt_net/data/js/highlight/languages/diff.js +72 -0
- pygpt_net/data/js/highlight/languages/diff.min.js +9 -0
- pygpt_net/data/js/highlight/languages/django.js +85 -0
- pygpt_net/data/js/highlight/languages/django.min.js +13 -0
- pygpt_net/data/js/highlight/languages/dns.js +88 -0
- pygpt_net/data/js/highlight/languages/dns.min.js +11 -0
- pygpt_net/data/js/highlight/languages/dockerfile.js +54 -0
- pygpt_net/data/js/highlight/languages/dockerfile.min.js +8 -0
- pygpt_net/data/js/highlight/languages/dos.js +177 -0
- pygpt_net/data/js/highlight/languages/dos.min.js +12 -0
- pygpt_net/data/js/highlight/languages/dsconfig.js +76 -0
- pygpt_net/data/js/highlight/languages/dsconfig.min.js +9 -0
- pygpt_net/data/js/highlight/languages/dts.js +167 -0
- pygpt_net/data/js/highlight/languages/dts.min.js +22 -0
- pygpt_net/data/js/highlight/languages/dust.js +57 -0
- pygpt_net/data/js/highlight/languages/dust.min.js +8 -0
- pygpt_net/data/js/highlight/languages/ebnf.js +64 -0
- pygpt_net/data/js/highlight/languages/ebnf.min.js +7 -0
- pygpt_net/data/js/highlight/languages/elixir.js +289 -0
- pygpt_net/data/js/highlight/languages/elixir.min.js +34 -0
- pygpt_net/data/js/highlight/languages/elm.js +153 -0
- pygpt_net/data/js/highlight/languages/elm.min.js +18 -0
- pygpt_net/data/js/highlight/languages/erb.js +39 -0
- pygpt_net/data/js/highlight/languages/erb.min.js +5 -0
- pygpt_net/data/js/highlight/languages/erlang-repl.js +64 -0
- pygpt_net/data/js/highlight/languages/erlang-repl.min.js +13 -0
- pygpt_net/data/js/highlight/languages/erlang.js +209 -0
- pygpt_net/data/js/highlight/languages/erlang.min.js +28 -0
- pygpt_net/data/js/highlight/languages/excel.js +555 -0
- pygpt_net/data/js/highlight/languages/excel.min.js +10 -0
- pygpt_net/data/js/highlight/languages/fix.js +49 -0
- pygpt_net/data/js/highlight/languages/fix.min.js +7 -0
- pygpt_net/data/js/highlight/languages/flix.js +89 -0
- pygpt_net/data/js/highlight/languages/flix.min.js +10 -0
- pygpt_net/data/js/highlight/languages/fortran.js +584 -0
- pygpt_net/data/js/highlight/languages/fortran.min.js +17 -0
- pygpt_net/data/js/highlight/languages/fsharp.js +637 -0
- pygpt_net/data/js/highlight/languages/fsharp.min.js +47 -0
- pygpt_net/data/js/highlight/languages/gams.js +191 -0
- pygpt_net/data/js/highlight/languages/gams.min.js +28 -0
- pygpt_net/data/js/highlight/languages/gauss.js +316 -0
- pygpt_net/data/js/highlight/languages/gauss.min.js +36 -0
- pygpt_net/data/js/highlight/languages/gcode.js +91 -0
- pygpt_net/data/js/highlight/languages/gcode.min.js +16 -0
- pygpt_net/data/js/highlight/languages/gherkin.js +59 -0
- pygpt_net/data/js/highlight/languages/gherkin.min.js +8 -0
- pygpt_net/data/js/highlight/languages/glsl.js +138 -0
- pygpt_net/data/js/highlight/languages/glsl.min.js +8 -0
- pygpt_net/data/js/highlight/languages/gml.js +3140 -0
- pygpt_net/data/js/highlight/languages/gml.min.js +10 -0
- pygpt_net/data/js/highlight/languages/go.js +166 -0
- pygpt_net/data/js/highlight/languages/go.min.js +20 -0
- pygpt_net/data/js/highlight/languages/golo.js +91 -0
- pygpt_net/data/js/highlight/languages/golo.min.js +6 -0
- pygpt_net/data/js/highlight/languages/gradle.js +200 -0
- pygpt_net/data/js/highlight/languages/gradle.min.js +5 -0
- pygpt_net/data/js/highlight/languages/graphql.js +88 -0
- pygpt_net/data/js/highlight/languages/graphql.min.js +12 -0
- pygpt_net/data/js/highlight/languages/groovy.js +200 -0
- pygpt_net/data/js/highlight/languages/groovy.min.js +21 -0
- pygpt_net/data/js/highlight/languages/haml.js +123 -0
- pygpt_net/data/js/highlight/languages/haml.min.js +18 -0
- pygpt_net/data/js/highlight/languages/handlebars.js +268 -0
- pygpt_net/data/js/highlight/languages/handlebars.min.js +29 -0
- pygpt_net/data/js/highlight/languages/haskell.js +227 -0
- pygpt_net/data/js/highlight/languages/haskell.min.js +32 -0
- pygpt_net/data/js/highlight/languages/haxe.js +177 -0
- pygpt_net/data/js/highlight/languages/haxe.min.js +29 -0
- pygpt_net/data/js/highlight/languages/hsp.js +69 -0
- pygpt_net/data/js/highlight/languages/hsp.min.js +14 -0
- pygpt_net/data/js/highlight/languages/http.js +107 -0
- pygpt_net/data/js/highlight/languages/http.min.js +14 -0
- pygpt_net/data/js/highlight/languages/hy.js +147 -0
- pygpt_net/data/js/highlight/languages/hy.min.js +16 -0
- pygpt_net/data/js/highlight/languages/inform7.js +80 -0
- pygpt_net/data/js/highlight/languages/inform7.min.js +11 -0
- pygpt_net/data/js/highlight/languages/ini.js +131 -0
- pygpt_net/data/js/highlight/languages/ini.min.js +15 -0
- pygpt_net/data/js/highlight/languages/irpf90.js +117 -0
- pygpt_net/data/js/highlight/languages/irpf90.min.js +15 -0
- pygpt_net/data/js/highlight/languages/isbl.js +3215 -0
- pygpt_net/data/js/highlight/languages/isbl.min.js +25 -0
- pygpt_net/data/js/highlight/languages/java.js +300 -0
- pygpt_net/data/js/highlight/languages/java.min.js +38 -0
- pygpt_net/data/js/highlight/languages/javascript.js +777 -0
- pygpt_net/data/js/highlight/languages/javascript.min.js +81 -0
- pygpt_net/data/js/highlight/languages/jboss-cli.js +73 -0
- pygpt_net/data/js/highlight/languages/jboss-cli.min.js +10 -0
- pygpt_net/data/js/highlight/languages/json.js +64 -0
- pygpt_net/data/js/highlight/languages/json.min.js +8 -0
- pygpt_net/data/js/highlight/languages/julia-repl.js +61 -0
- pygpt_net/data/js/highlight/languages/julia-repl.min.js +5 -0
- pygpt_net/data/js/highlight/languages/julia.js +452 -0
- pygpt_net/data/js/highlight/languages/julia.min.js +18 -0
- pygpt_net/data/js/highlight/languages/kotlin.js +296 -0
- pygpt_net/data/js/highlight/languages/kotlin.min.js +46 -0
- pygpt_net/data/js/highlight/languages/lasso.js +181 -0
- pygpt_net/data/js/highlight/languages/lasso.min.js +29 -0
- pygpt_net/data/js/highlight/languages/latex.js +288 -0
- pygpt_net/data/js/highlight/languages/latex.min.js +33 -0
- pygpt_net/data/js/highlight/languages/ldif.js +41 -0
- pygpt_net/data/js/highlight/languages/ldif.min.js +5 -0
- pygpt_net/data/js/highlight/languages/leaf.js +107 -0
- pygpt_net/data/js/highlight/languages/leaf.min.js +12 -0
- pygpt_net/data/js/highlight/languages/less.js +965 -0
- pygpt_net/data/js/highlight/languages/less.min.js +45 -0
- pygpt_net/data/js/highlight/languages/lisp.js +149 -0
- pygpt_net/data/js/highlight/languages/lisp.min.js +17 -0
- pygpt_net/data/js/highlight/languages/livecodeserver.js +183 -0
- pygpt_net/data/js/highlight/languages/livecodeserver.min.js +21 -0
- pygpt_net/data/js/highlight/languages/livescript.js +388 -0
- pygpt_net/data/js/highlight/languages/livescript.min.js +35 -0
- pygpt_net/data/js/highlight/languages/llvm.js +145 -0
- pygpt_net/data/js/highlight/languages/llvm.min.js +16 -0
- pygpt_net/data/js/highlight/languages/lsl.js +86 -0
- pygpt_net/data/js/highlight/languages/lsl.min.js +19 -0
- pygpt_net/data/js/highlight/languages/lua.js +90 -0
- pygpt_net/data/js/highlight/languages/lua.min.js +15 -0
- pygpt_net/data/js/highlight/languages/makefile.js +96 -0
- pygpt_net/data/js/highlight/languages/makefile.min.js +14 -0
- pygpt_net/data/js/highlight/languages/markdown.js +258 -0
- pygpt_net/data/js/highlight/languages/markdown.min.js +32 -0
- pygpt_net/data/js/highlight/languages/mathematica.js +7369 -0
- pygpt_net/data/js/highlight/languages/mathematica.min.js +21 -0
- pygpt_net/data/js/highlight/languages/matlab.js +117 -0
- pygpt_net/data/js/highlight/languages/matlab.min.js +15 -0
- pygpt_net/data/js/highlight/languages/maxima.js +424 -0
- pygpt_net/data/js/highlight/languages/maxima.min.js +12 -0
- pygpt_net/data/js/highlight/languages/mel.js +245 -0
- pygpt_net/data/js/highlight/languages/mel.min.js +8 -0
- pygpt_net/data/js/highlight/languages/mercury.js +118 -0
- pygpt_net/data/js/highlight/languages/mercury.min.js +16 -0
- pygpt_net/data/js/highlight/languages/mipsasm.js +114 -0
- pygpt_net/data/js/highlight/languages/mipsasm.min.js +15 -0
- pygpt_net/data/js/highlight/languages/mizar.js +37 -0
- pygpt_net/data/js/highlight/languages/mizar.min.js +4 -0
- pygpt_net/data/js/highlight/languages/mojolicious.js +46 -0
- pygpt_net/data/js/highlight/languages/mojolicious.min.js +6 -0
- pygpt_net/data/js/highlight/languages/monkey.js +194 -0
- pygpt_net/data/js/highlight/languages/monkey.min.js +17 -0
- pygpt_net/data/js/highlight/languages/moonscript.js +151 -0
- pygpt_net/data/js/highlight/languages/moonscript.min.js +23 -0
- pygpt_net/data/js/highlight/languages/n1ql.js +375 -0
- pygpt_net/data/js/highlight/languages/n1ql.min.js +13 -0
- pygpt_net/data/js/highlight/languages/nestedtext.js +93 -0
- pygpt_net/data/js/highlight/languages/nestedtext.min.js +9 -0
- pygpt_net/data/js/highlight/languages/nginx.js +163 -0
- pygpt_net/data/js/highlight/languages/nginx.min.js +21 -0
- pygpt_net/data/js/highlight/languages/nim.js +195 -0
- pygpt_net/data/js/highlight/languages/nim.min.js +15 -0
- pygpt_net/data/js/highlight/languages/nix.js +105 -0
- pygpt_net/data/js/highlight/languages/nix.min.js +13 -0
- pygpt_net/data/js/highlight/languages/node-repl.js +43 -0
- pygpt_net/data/js/highlight/languages/node-repl.min.js +5 -0
- pygpt_net/data/js/highlight/languages/nsis.js +567 -0
- pygpt_net/data/js/highlight/languages/nsis.min.js +23 -0
- pygpt_net/data/js/highlight/languages/objectivec.js +263 -0
- pygpt_net/data/js/highlight/languages/objectivec.min.js +23 -0
- pygpt_net/data/js/highlight/languages/ocaml.js +93 -0
- pygpt_net/data/js/highlight/languages/ocaml.min.js +14 -0
- pygpt_net/data/js/highlight/languages/openscad.js +87 -0
- pygpt_net/data/js/highlight/languages/openscad.min.js +15 -0
- pygpt_net/data/js/highlight/languages/oxygene.js +97 -0
- pygpt_net/data/js/highlight/languages/oxygene.min.js +13 -0
- pygpt_net/data/js/highlight/languages/parser3.js +65 -0
- pygpt_net/data/js/highlight/languages/parser3.min.js +10 -0
- pygpt_net/data/js/highlight/languages/perl.js +514 -0
- pygpt_net/data/js/highlight/languages/perl.min.js +41 -0
- pygpt_net/data/js/highlight/languages/pf.js +70 -0
- pygpt_net/data/js/highlight/languages/pf.min.js +10 -0
- pygpt_net/data/js/highlight/languages/pgsql.js +535 -0
- pygpt_net/data/js/highlight/languages/pgsql.min.js +69 -0
- pygpt_net/data/js/highlight/languages/php-template.js +64 -0
- pygpt_net/data/js/highlight/languages/php-template.min.js +8 -0
- pygpt_net/data/js/highlight/languages/php.js +623 -0
- pygpt_net/data/js/highlight/languages/php.min.js +58 -0
- pygpt_net/data/js/highlight/languages/plaintext.js +29 -0
- pygpt_net/data/js/highlight/languages/plaintext.min.js +4 -0
- pygpt_net/data/js/highlight/languages/pony.js +100 -0
- pygpt_net/data/js/highlight/languages/pony.min.js +12 -0
- pygpt_net/data/js/highlight/languages/powershell.js +327 -0
- pygpt_net/data/js/highlight/languages/powershell.min.js +39 -0
- pygpt_net/data/js/highlight/languages/processing.js +444 -0
- pygpt_net/data/js/highlight/languages/processing.min.js +18 -0
- pygpt_net/data/js/highlight/languages/profile.js +53 -0
- pygpt_net/data/js/highlight/languages/profile.min.js +9 -0
- pygpt_net/data/js/highlight/languages/prolog.js +107 -0
- pygpt_net/data/js/highlight/languages/prolog.min.js +11 -0
- pygpt_net/data/js/highlight/languages/properties.js +78 -0
- pygpt_net/data/js/highlight/languages/properties.min.js +10 -0
- pygpt_net/data/js/highlight/languages/protobuf.js +89 -0
- pygpt_net/data/js/highlight/languages/protobuf.min.js +11 -0
- pygpt_net/data/js/highlight/languages/puppet.js +156 -0
- pygpt_net/data/js/highlight/languages/puppet.min.js +18 -0
- pygpt_net/data/js/highlight/languages/purebasic.js +110 -0
- pygpt_net/data/js/highlight/languages/purebasic.min.js +11 -0
- pygpt_net/data/js/highlight/languages/python-repl.js +42 -0
- pygpt_net/data/js/highlight/languages/python-repl.min.js +5 -0
- pygpt_net/data/js/highlight/languages/python.js +446 -0
- pygpt_net/data/js/highlight/languages/python.min.js +42 -0
- pygpt_net/data/js/highlight/languages/q.js +48 -0
- pygpt_net/data/js/highlight/languages/q.min.js +8 -0
- pygpt_net/data/js/highlight/languages/qml.js +199 -0
- pygpt_net/data/js/highlight/languages/qml.min.js +29 -0
- pygpt_net/data/js/highlight/languages/r.js +267 -0
- pygpt_net/data/js/highlight/languages/r.min.js +26 -0
- pygpt_net/data/js/highlight/languages/reasonml.js +152 -0
- pygpt_net/data/js/highlight/languages/reasonml.min.js +18 -0
- pygpt_net/data/js/highlight/languages/rib.js +47 -0
- pygpt_net/data/js/highlight/languages/rib.min.js +6 -0
- pygpt_net/data/js/highlight/languages/roboconf.js +92 -0
- pygpt_net/data/js/highlight/languages/roboconf.min.js +12 -0
- pygpt_net/data/js/highlight/languages/routeros.js +174 -0
- pygpt_net/data/js/highlight/languages/routeros.min.js +22 -0
- pygpt_net/data/js/highlight/languages/rsl.js +159 -0
- pygpt_net/data/js/highlight/languages/rsl.min.js +11 -0
- pygpt_net/data/js/highlight/languages/ruby.js +458 -0
- pygpt_net/data/js/highlight/languages/ruby.min.js +54 -0
- pygpt_net/data/js/highlight/languages/ruleslanguage.js +86 -0
- pygpt_net/data/js/highlight/languages/ruleslanguage.min.js +9 -0
- pygpt_net/data/js/highlight/languages/rust.js +326 -0
- pygpt_net/data/js/highlight/languages/rust.min.js +27 -0
- pygpt_net/data/js/highlight/languages/sas.js +567 -0
- pygpt_net/data/js/highlight/languages/sas.min.js +18 -0
- pygpt_net/data/js/highlight/languages/scala.js +224 -0
- pygpt_net/data/js/highlight/languages/scala.min.js +28 -0
- pygpt_net/data/js/highlight/languages/scheme.js +206 -0
- pygpt_net/data/js/highlight/languages/scheme.min.js +20 -0
- pygpt_net/data/js/highlight/languages/scilab.js +83 -0
- pygpt_net/data/js/highlight/languages/scilab.min.js +13 -0
- pygpt_net/data/js/highlight/languages/scss.js +854 -0
- pygpt_net/data/js/highlight/languages/scss.min.js +33 -0
- pygpt_net/data/js/highlight/languages/shell.js +43 -0
- pygpt_net/data/js/highlight/languages/shell.min.js +5 -0
- pygpt_net/data/js/highlight/languages/smali.js +136 -0
- pygpt_net/data/js/highlight/languages/smali.min.js +13 -0
- pygpt_net/data/js/highlight/languages/smalltalk.js +79 -0
- pygpt_net/data/js/highlight/languages/smalltalk.min.js +11 -0
- pygpt_net/data/js/highlight/languages/sml.js +85 -0
- pygpt_net/data/js/highlight/languages/sml.min.js +14 -0
- pygpt_net/data/js/highlight/languages/sqf.js +2672 -0
- pygpt_net/data/js/highlight/languages/sqf.min.js +17 -0
- pygpt_net/data/js/highlight/languages/sql.js +692 -0
- pygpt_net/data/js/highlight/languages/sql.min.js +17 -0
- pygpt_net/data/js/highlight/languages/stan.js +531 -0
- pygpt_net/data/js/highlight/languages/stan.min.js +28 -0
- pygpt_net/data/js/highlight/languages/stata.js +63 -0
- pygpt_net/data/js/highlight/languages/stata.min.js +11 -0
- pygpt_net/data/js/highlight/languages/step21.js +77 -0
- pygpt_net/data/js/highlight/languages/step21.min.js +10 -0
- pygpt_net/data/js/highlight/languages/stylus.js +914 -0
- pygpt_net/data/js/highlight/languages/stylus.min.js +36 -0
- pygpt_net/data/js/highlight/languages/subunit.js +54 -0
- pygpt_net/data/js/highlight/languages/subunit.min.js +9 -0
- pygpt_net/data/js/highlight/languages/swift.js +953 -0
- pygpt_net/data/js/highlight/languages/swift.min.js +66 -0
- pygpt_net/data/js/highlight/languages/taggerscript.js +69 -0
- pygpt_net/data/js/highlight/languages/taggerscript.min.js +8 -0
- pygpt_net/data/js/highlight/languages/tap.js +57 -0
- pygpt_net/data/js/highlight/languages/tap.min.js +7 -0
- pygpt_net/data/js/highlight/languages/tcl.js +201 -0
- pygpt_net/data/js/highlight/languages/tcl.min.js +15 -0
- pygpt_net/data/js/highlight/languages/thrift.js +87 -0
- pygpt_net/data/js/highlight/languages/thrift.min.js +12 -0
- pygpt_net/data/js/highlight/languages/tp.js +182 -0
- pygpt_net/data/js/highlight/languages/tp.min.js +19 -0
- pygpt_net/data/js/highlight/languages/twig.js +270 -0
- pygpt_net/data/js/highlight/languages/twig.min.js +18 -0
- pygpt_net/data/js/highlight/languages/typescript.js +911 -0
- pygpt_net/data/js/highlight/languages/typescript.min.js +98 -0
- pygpt_net/data/js/highlight/languages/vala.js +71 -0
- pygpt_net/data/js/highlight/languages/vala.min.js +9 -0
- pygpt_net/data/js/highlight/languages/vbnet.js +167 -0
- pygpt_net/data/js/highlight/languages/vbnet.min.js +25 -0
- pygpt_net/data/js/highlight/languages/vbscript-html.js +34 -0
- pygpt_net/data/js/highlight/languages/vbscript-html.min.js +4 -0
- pygpt_net/data/js/highlight/languages/vbscript.js +230 -0
- pygpt_net/data/js/highlight/languages/vbscript.min.js +10 -0
- pygpt_net/data/js/highlight/languages/verilog.js +560 -0
- pygpt_net/data/js/highlight/languages/verilog.min.js +17 -0
- pygpt_net/data/js/highlight/languages/vhdl.js +226 -0
- pygpt_net/data/js/highlight/languages/vhdl.min.js +13 -0
- pygpt_net/data/js/highlight/languages/vim.js +139 -0
- pygpt_net/data/js/highlight/languages/vim.min.js +12 -0
- pygpt_net/data/js/highlight/languages/wasm.js +149 -0
- pygpt_net/data/js/highlight/languages/wasm.min.js +14 -0
- pygpt_net/data/js/highlight/languages/wren.js +312 -0
- pygpt_net/data/js/highlight/languages/wren.min.js +30 -0
- pygpt_net/data/js/highlight/languages/x86asm.js +163 -0
- pygpt_net/data/js/highlight/languages/x86asm.min.js +19 -0
- pygpt_net/data/js/highlight/languages/xl.js +215 -0
- pygpt_net/data/js/highlight/languages/xl.min.js +15 -0
- pygpt_net/data/js/highlight/languages/xml.js +251 -0
- pygpt_net/data/js/highlight/languages/xml.min.js +29 -0
- pygpt_net/data/js/highlight/languages/xquery.js +370 -0
- pygpt_net/data/js/highlight/languages/xquery.min.js +33 -0
- pygpt_net/data/js/highlight/languages/yaml.js +205 -0
- pygpt_net/data/js/highlight/languages/yaml.min.js +25 -0
- pygpt_net/data/js/highlight/languages/zephir.js +139 -0
- pygpt_net/data/js/highlight/languages/zephir.min.js +18 -0
- pygpt_net/data/js/highlight/package.json +93 -0
- pygpt_net/data/js/highlight/styles/1c-light.css +107 -0
- pygpt_net/data/js/highlight/styles/1c-light.min.css +9 -0
- pygpt_net/data/js/highlight/styles/a11y-dark.css +94 -0
- pygpt_net/data/js/highlight/styles/a11y-dark.min.css +7 -0
- pygpt_net/data/js/highlight/styles/a11y-light.css +94 -0
- pygpt_net/data/js/highlight/styles/a11y-light.min.css +7 -0
- pygpt_net/data/js/highlight/styles/agate.css +127 -0
- pygpt_net/data/js/highlight/styles/agate.min.css +20 -0
- pygpt_net/data/js/highlight/styles/an-old-hope.css +75 -0
- pygpt_net/data/js/highlight/styles/an-old-hope.min.css +9 -0
- pygpt_net/data/js/highlight/styles/androidstudio.css +60 -0
- pygpt_net/data/js/highlight/styles/androidstudio.min.css +1 -0
- pygpt_net/data/js/highlight/styles/arduino-light.css +78 -0
- pygpt_net/data/js/highlight/styles/arduino-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/arta.css +66 -0
- pygpt_net/data/js/highlight/styles/arta.min.css +1 -0
- pygpt_net/data/js/highlight/styles/ascetic.css +45 -0
- pygpt_net/data/js/highlight/styles/ascetic.min.css +1 -0
- pygpt_net/data/js/highlight/styles/atom-one-dark-reasonable.css +105 -0
- pygpt_net/data/js/highlight/styles/atom-one-dark-reasonable.min.css +1 -0
- pygpt_net/data/js/highlight/styles/atom-one-dark.css +90 -0
- pygpt_net/data/js/highlight/styles/atom-one-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/atom-one-light.css +90 -0
- pygpt_net/data/js/highlight/styles/atom-one-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/brown-paper.css +63 -0
- pygpt_net/data/js/highlight/styles/brown-paper.min.css +1 -0
- pygpt_net/data/js/highlight/styles/brown-papersq.png +0 -0
- pygpt_net/data/js/highlight/styles/codepen-embed.css +57 -0
- pygpt_net/data/js/highlight/styles/codepen-embed.min.css +1 -0
- pygpt_net/data/js/highlight/styles/codeschool.css +163 -0
- pygpt_net/data/js/highlight/styles/codeschool.min.css +7 -0
- pygpt_net/data/js/highlight/styles/color-brewer.css +66 -0
- pygpt_net/data/js/highlight/styles/color-brewer.min.css +1 -0
- pygpt_net/data/js/highlight/styles/darcula.css +163 -0
- pygpt_net/data/js/highlight/styles/darcula.min.css +7 -0
- pygpt_net/data/js/highlight/styles/dark.css +62 -0
- pygpt_net/data/js/highlight/styles/dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/default-dark.css +163 -0
- pygpt_net/data/js/highlight/styles/default-dark.min.css +7 -0
- pygpt_net/data/js/highlight/styles/default-light.css +163 -0
- pygpt_net/data/js/highlight/styles/default-light.min.css +7 -0
- pygpt_net/data/js/highlight/styles/default.css +117 -0
- pygpt_net/data/js/highlight/styles/default.min.css +9 -0
- pygpt_net/data/js/highlight/styles/devibeans.css +90 -0
- pygpt_net/data/js/highlight/styles/devibeans.min.css +7 -0
- pygpt_net/data/js/highlight/styles/docco.css +83 -0
- pygpt_net/data/js/highlight/styles/docco.min.css +1 -0
- pygpt_net/data/js/highlight/styles/far.css +67 -0
- pygpt_net/data/js/highlight/styles/far.min.css +1 -0
- pygpt_net/data/js/highlight/styles/felipec.css +94 -0
- pygpt_net/data/js/highlight/styles/felipec.min.css +7 -0
- pygpt_net/data/js/highlight/styles/foundation.css +80 -0
- pygpt_net/data/js/highlight/styles/foundation.min.css +1 -0
- pygpt_net/data/js/highlight/styles/github-dark-dimmed.css +117 -0
- pygpt_net/data/js/highlight/styles/github-dark-dimmed.min.css +9 -0
- pygpt_net/data/js/highlight/styles/github-dark.css +118 -0
- pygpt_net/data/js/highlight/styles/github-dark.min.css +10 -0
- pygpt_net/data/js/highlight/styles/github.css +118 -0
- pygpt_net/data/js/highlight/styles/github.min.css +10 -0
- pygpt_net/data/js/highlight/styles/gml.css +72 -0
- pygpt_net/data/js/highlight/styles/gml.min.css +1 -0
- pygpt_net/data/js/highlight/styles/googlecode.css +79 -0
- pygpt_net/data/js/highlight/styles/googlecode.min.css +1 -0
- pygpt_net/data/js/highlight/styles/gradient-dark.css +90 -0
- pygpt_net/data/js/highlight/styles/gradient-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/gradient-light.css +90 -0
- pygpt_net/data/js/highlight/styles/gradient-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/grayscale.css +89 -0
- pygpt_net/data/js/highlight/styles/grayscale.min.css +1 -0
- pygpt_net/data/js/highlight/styles/hybrid.css +88 -0
- pygpt_net/data/js/highlight/styles/hybrid.min.css +1 -0
- pygpt_net/data/js/highlight/styles/idea.css +86 -0
- pygpt_net/data/js/highlight/styles/idea.min.css +1 -0
- pygpt_net/data/js/highlight/styles/intellij-light.css +107 -0
- pygpt_net/data/js/highlight/styles/intellij-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/ir-black.css +66 -0
- pygpt_net/data/js/highlight/styles/ir-black.min.css +1 -0
- pygpt_net/data/js/highlight/styles/isbl-editor-dark.css +94 -0
- pygpt_net/data/js/highlight/styles/isbl-editor-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/isbl-editor-light.css +93 -0
- pygpt_net/data/js/highlight/styles/isbl-editor-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/kimbie-dark.css +69 -0
- pygpt_net/data/js/highlight/styles/kimbie-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/kimbie-light.css +69 -0
- pygpt_net/data/js/highlight/styles/kimbie-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/lightfair.css +81 -0
- pygpt_net/data/js/highlight/styles/lightfair.min.css +1 -0
- pygpt_net/data/js/highlight/styles/lioshi.css +76 -0
- pygpt_net/data/js/highlight/styles/lioshi.min.css +1 -0
- pygpt_net/data/js/highlight/styles/magula.css +66 -0
- pygpt_net/data/js/highlight/styles/magula.min.css +1 -0
- pygpt_net/data/js/highlight/styles/material-darker.css +163 -0
- pygpt_net/data/js/highlight/styles/material-darker.min.css +7 -0
- pygpt_net/data/js/highlight/styles/material-lighter.css +163 -0
- pygpt_net/data/js/highlight/styles/material-lighter.min.css +7 -0
- pygpt_net/data/js/highlight/styles/material-palenight.css +163 -0
- pygpt_net/data/js/highlight/styles/material-palenight.min.css +7 -0
- pygpt_net/data/js/highlight/styles/material-vivid.css +163 -0
- pygpt_net/data/js/highlight/styles/material-vivid.min.css +7 -0
- pygpt_net/data/js/highlight/styles/material.css +163 -0
- pygpt_net/data/js/highlight/styles/material.min.css +7 -0
- pygpt_net/data/js/highlight/styles/mono-blue.css +56 -0
- pygpt_net/data/js/highlight/styles/mono-blue.min.css +1 -0
- pygpt_net/data/js/highlight/styles/monokai-sublime.css +76 -0
- pygpt_net/data/js/highlight/styles/monokai-sublime.min.css +1 -0
- pygpt_net/data/js/highlight/styles/monokai.css +70 -0
- pygpt_net/data/js/highlight/styles/monokai.min.css +1 -0
- pygpt_net/data/js/highlight/styles/night-owl.css +174 -0
- pygpt_net/data/js/highlight/styles/night-owl.min.css +1 -0
- pygpt_net/data/js/highlight/styles/nnfx-dark.css +104 -0
- pygpt_net/data/js/highlight/styles/nnfx-dark.min.css +10 -0
- pygpt_net/data/js/highlight/styles/nnfx-light.css +104 -0
- pygpt_net/data/js/highlight/styles/nnfx-light.min.css +10 -0
- pygpt_net/data/js/highlight/styles/nord.css +275 -0
- pygpt_net/data/js/highlight/styles/nord.min.css +1 -0
- pygpt_net/data/js/highlight/styles/obsidian.css +79 -0
- pygpt_net/data/js/highlight/styles/obsidian.min.css +1 -0
- pygpt_net/data/js/highlight/styles/panda-syntax-dark.css +92 -0
- pygpt_net/data/js/highlight/styles/panda-syntax-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/panda-syntax-light.css +89 -0
- pygpt_net/data/js/highlight/styles/panda-syntax-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/paraiso-dark.css +67 -0
- pygpt_net/data/js/highlight/styles/paraiso-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/paraiso-light.css +67 -0
- pygpt_net/data/js/highlight/styles/paraiso-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/pojoaque.css +76 -0
- pygpt_net/data/js/highlight/styles/pojoaque.jpg +0 -0
- pygpt_net/data/js/highlight/styles/pojoaque.min.css +1 -0
- pygpt_net/data/js/highlight/styles/purebasic.css +103 -0
- pygpt_net/data/js/highlight/styles/purebasic.min.css +1 -0
- pygpt_net/data/js/highlight/styles/qtcreator-dark.css +76 -0
- pygpt_net/data/js/highlight/styles/qtcreator-dark.min.css +1 -0
- pygpt_net/data/js/highlight/styles/qtcreator-light.css +74 -0
- pygpt_net/data/js/highlight/styles/qtcreator-light.min.css +1 -0
- pygpt_net/data/js/highlight/styles/rainbow.css +77 -0
- pygpt_net/data/js/highlight/styles/rainbow.min.css +1 -0
- pygpt_net/data/js/highlight/styles/routeros.css +86 -0
- pygpt_net/data/js/highlight/styles/routeros.min.css +1 -0
- pygpt_net/data/js/highlight/styles/school-book.css +62 -0
- pygpt_net/data/js/highlight/styles/school-book.min.css +1 -0
- pygpt_net/data/js/highlight/styles/shades-of-purple.css +84 -0
- pygpt_net/data/js/highlight/styles/shades-of-purple.min.css +1 -0
- pygpt_net/data/js/highlight/styles/srcery.css +89 -0
- pygpt_net/data/js/highlight/styles/srcery.min.css +1 -0
- pygpt_net/data/js/highlight/styles/stackoverflow-dark.css +117 -0
- pygpt_net/data/js/highlight/styles/stackoverflow-dark.min.css +13 -0
- pygpt_net/data/js/highlight/styles/stackoverflow-light.css +117 -0
- pygpt_net/data/js/highlight/styles/stackoverflow-light.min.css +13 -0
- pygpt_net/data/js/highlight/styles/sunburst.css +89 -0
- pygpt_net/data/js/highlight/styles/sunburst.min.css +1 -0
- pygpt_net/data/js/highlight/styles/tokyo-night-dark.css +114 -0
- pygpt_net/data/js/highlight/styles/tokyo-night-dark.min.css +8 -0
- pygpt_net/data/js/highlight/styles/tokyo-night-light.css +114 -0
- pygpt_net/data/js/highlight/styles/tokyo-night-light.min.css +8 -0
- pygpt_net/data/js/highlight/styles/tomorrow-night-blue.css +69 -0
- pygpt_net/data/js/highlight/styles/tomorrow-night-blue.min.css +1 -0
- pygpt_net/data/js/highlight/styles/tomorrow-night-bright.css +68 -0
- pygpt_net/data/js/highlight/styles/tomorrow-night-bright.min.css +1 -0
- pygpt_net/data/js/highlight/styles/vs.css +63 -0
- pygpt_net/data/js/highlight/styles/vs.min.css +1 -0
- pygpt_net/data/js/highlight/styles/vs2015.css +100 -0
- pygpt_net/data/js/highlight/styles/vs2015.min.css +1 -0
- pygpt_net/data/js/highlight/styles/windows-10-light.css +163 -0
- pygpt_net/data/js/highlight/styles/windows-10-light.min.css +7 -0
- pygpt_net/data/js/highlight/styles/windows-10.css +163 -0
- pygpt_net/data/js/highlight/styles/windows-10.min.css +7 -0
- pygpt_net/data/js/highlight/styles/xcode.css +90 -0
- pygpt_net/data/js/highlight/styles/xcode.min.css +1 -0
- pygpt_net/data/js/highlight/styles/xt256.css +79 -0
- pygpt_net/data/js/highlight/styles/xt256.min.css +1 -0
- pygpt_net/data/js/katex/auto-render.min.js +1 -0
- pygpt_net/data/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- pygpt_net/data/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- pygpt_net/data/js/katex/katex.min.css +1 -0
- pygpt_net/data/js/katex/katex.min.js +1 -0
- pygpt_net/data/locale/locale.de.ini +580 -124
- pygpt_net/data/locale/locale.en.ini +820 -282
- pygpt_net/data/locale/locale.es.ini +580 -124
- pygpt_net/data/locale/locale.fr.ini +581 -125
- pygpt_net/data/locale/locale.it.ini +581 -125
- pygpt_net/data/locale/locale.pl.ini +584 -128
- pygpt_net/data/locale/locale.uk.ini +1046 -0
- pygpt_net/data/locale/locale.zh.ini +642 -189
- pygpt_net/data/locale/plugin.agent.de.ini +17 -0
- pygpt_net/data/locale/plugin.agent.en.ini +13 -18
- pygpt_net/data/locale/plugin.agent.es.ini +17 -0
- pygpt_net/data/locale/plugin.agent.fr.ini +17 -0
- pygpt_net/data/locale/plugin.agent.it.ini +17 -0
- pygpt_net/data/locale/plugin.agent.pl.ini +15 -18
- pygpt_net/data/locale/plugin.agent.uk.ini +17 -0
- pygpt_net/data/locale/plugin.agent.zh.ini +17 -0
- pygpt_net/data/locale/plugin.audio_input.de.ini +63 -0
- pygpt_net/data/locale/plugin.audio_input.en.ini +41 -67
- pygpt_net/data/locale/plugin.audio_input.es.ini +63 -0
- pygpt_net/data/locale/plugin.audio_input.fr.ini +63 -0
- pygpt_net/data/locale/plugin.audio_input.it.ini +63 -0
- pygpt_net/data/locale/plugin.audio_input.pl.ini +51 -64
- pygpt_net/data/locale/plugin.audio_input.uk.ini +63 -0
- pygpt_net/data/locale/plugin.audio_input.zh.ini +63 -0
- pygpt_net/data/locale/plugin.audio_output.de.ini +30 -0
- pygpt_net/data/locale/plugin.audio_output.en.ini +23 -36
- pygpt_net/data/locale/plugin.audio_output.es.ini +30 -0
- pygpt_net/data/locale/plugin.audio_output.fr.ini +30 -0
- pygpt_net/data/locale/plugin.audio_output.it.ini +30 -0
- pygpt_net/data/locale/plugin.audio_output.pl.ini +26 -27
- pygpt_net/data/locale/plugin.audio_output.uk.ini +30 -0
- pygpt_net/data/locale/plugin.audio_output.zh.ini +30 -0
- pygpt_net/data/locale/plugin.cmd_api.de.ini +12 -0
- pygpt_net/data/locale/plugin.cmd_api.en.ini +9 -13
- pygpt_net/data/locale/plugin.cmd_api.es.ini +12 -0
- pygpt_net/data/locale/plugin.cmd_api.fr.ini +12 -0
- pygpt_net/data/locale/plugin.cmd_api.it.ini +12 -0
- pygpt_net/data/locale/plugin.cmd_api.pl.ini +10 -17
- pygpt_net/data/locale/plugin.cmd_api.uk.ini +12 -0
- pygpt_net/data/locale/plugin.cmd_api.zh.ini +12 -0
- pygpt_net/data/locale/plugin.cmd_code_interpreter.de.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_code_interpreter.en.ini +60 -34
- pygpt_net/data/locale/plugin.cmd_code_interpreter.es.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_code_interpreter.fr.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_code_interpreter.it.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_code_interpreter.pl.ini +32 -26
- pygpt_net/data/locale/plugin.cmd_code_interpreter.uk.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_code_interpreter.zh.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_custom.de.ini +6 -0
- pygpt_net/data/locale/plugin.cmd_custom.en.ini +4 -6
- pygpt_net/data/locale/plugin.cmd_custom.es.ini +6 -0
- pygpt_net/data/locale/plugin.cmd_custom.fr.ini +6 -0
- pygpt_net/data/locale/plugin.cmd_custom.it.ini +6 -0
- pygpt_net/data/locale/plugin.cmd_custom.pl.ini +4 -5
- pygpt_net/data/locale/plugin.cmd_custom.uk.ini +6 -0
- pygpt_net/data/locale/plugin.cmd_custom.zh.ini +6 -0
- pygpt_net/data/locale/plugin.cmd_files.de.ini +56 -0
- pygpt_net/data/locale/plugin.cmd_files.en.ini +42 -68
- pygpt_net/data/locale/plugin.cmd_files.es.ini +56 -0
- pygpt_net/data/locale/plugin.cmd_files.fr.ini +56 -0
- pygpt_net/data/locale/plugin.cmd_files.it.ini +56 -0
- pygpt_net/data/locale/plugin.cmd_files.pl.ini +55 -75
- pygpt_net/data/locale/plugin.cmd_files.uk.ini +56 -0
- pygpt_net/data/locale/plugin.cmd_files.zh.ini +56 -0
- pygpt_net/data/locale/plugin.cmd_history.de.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_history.en.ini +25 -39
- pygpt_net/data/locale/plugin.cmd_history.es.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_history.fr.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_history.it.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_history.pl.ini +28 -44
- pygpt_net/data/locale/plugin.cmd_history.uk.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_history.zh.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.de.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.en.ini +33 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.es.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.fr.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.it.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.pl.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.uk.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_mouse_control.zh.ini +31 -0
- pygpt_net/data/locale/plugin.cmd_serial.de.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_serial.en.ini +13 -20
- pygpt_net/data/locale/plugin.cmd_serial.es.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_serial.fr.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_serial.it.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_serial.pl.ini +14 -31
- pygpt_net/data/locale/plugin.cmd_serial.uk.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_serial.zh.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.de.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.en.ini +23 -0
- pygpt_net/data/locale/plugin.cmd_system.es.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.fr.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.it.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.pl.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.uk.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_system.zh.ini +17 -0
- pygpt_net/data/locale/plugin.cmd_web.de.ini +62 -0
- pygpt_net/data/locale/plugin.cmd_web.en.ini +58 -71
- pygpt_net/data/locale/plugin.cmd_web.es.ini +62 -0
- pygpt_net/data/locale/plugin.cmd_web.fr.ini +62 -0
- pygpt_net/data/locale/plugin.cmd_web.it.ini +62 -0
- pygpt_net/data/locale/plugin.cmd_web.pl.ini +59 -76
- pygpt_net/data/locale/plugin.cmd_web.uk.ini +62 -0
- pygpt_net/data/locale/plugin.cmd_web.zh.ini +62 -0
- pygpt_net/data/locale/plugin.crontab.de.ini +9 -0
- pygpt_net/data/locale/plugin.crontab.en.ini +5 -8
- pygpt_net/data/locale/plugin.crontab.es.ini +9 -0
- pygpt_net/data/locale/plugin.crontab.fr.ini +9 -0
- pygpt_net/data/locale/plugin.crontab.it.ini +9 -0
- pygpt_net/data/locale/plugin.crontab.pl.ini +7 -10
- pygpt_net/data/locale/plugin.crontab.uk.ini +9 -0
- pygpt_net/data/locale/plugin.crontab.zh.ini +9 -0
- pygpt_net/data/locale/plugin.experts.de.ini +3 -0
- pygpt_net/data/locale/plugin.experts.en.ini +3 -0
- pygpt_net/data/locale/plugin.experts.es.ini +3 -0
- pygpt_net/data/locale/plugin.experts.fr.ini +3 -0
- pygpt_net/data/locale/plugin.experts.it.ini +3 -0
- pygpt_net/data/locale/plugin.experts.pl.ini +3 -0
- pygpt_net/data/locale/plugin.experts.uk.ini +3 -0
- pygpt_net/data/locale/plugin.experts.zh.ini +3 -0
- pygpt_net/data/locale/plugin.extra_prompt.de.ini +5 -0
- pygpt_net/data/locale/plugin.extra_prompt.en.ini +3 -4
- pygpt_net/data/locale/plugin.extra_prompt.es.ini +5 -0
- pygpt_net/data/locale/plugin.extra_prompt.fr.ini +5 -0
- pygpt_net/data/locale/plugin.extra_prompt.it.ini +5 -0
- pygpt_net/data/locale/plugin.extra_prompt.pl.ini +4 -6
- pygpt_net/data/locale/plugin.extra_prompt.uk.ini +5 -0
- pygpt_net/data/locale/plugin.extra_prompt.zh.ini +5 -0
- pygpt_net/data/locale/plugin.idx_llama_index.de.ini +23 -0
- pygpt_net/data/locale/plugin.idx_llama_index.en.ini +20 -30
- pygpt_net/data/locale/plugin.idx_llama_index.es.ini +23 -0
- pygpt_net/data/locale/plugin.idx_llama_index.fr.ini +23 -0
- pygpt_net/data/locale/plugin.idx_llama_index.it.ini +23 -0
- pygpt_net/data/locale/plugin.idx_llama_index.pl.ini +21 -16
- pygpt_net/data/locale/plugin.idx_llama_index.uk.ini +23 -0
- pygpt_net/data/locale/plugin.idx_llama_index.zh.ini +23 -0
- pygpt_net/data/locale/plugin.mailer.en.ini +21 -0
- pygpt_net/data/locale/plugin.openai_dalle.de.ini +5 -0
- pygpt_net/data/locale/plugin.openai_dalle.en.ini +2 -3
- pygpt_net/data/locale/plugin.openai_dalle.es.ini +5 -0
- pygpt_net/data/locale/plugin.openai_dalle.fr.ini +5 -0
- pygpt_net/data/locale/plugin.openai_dalle.it.ini +5 -0
- pygpt_net/data/locale/plugin.openai_dalle.pl.ini +3 -4
- pygpt_net/data/locale/plugin.openai_dalle.uk.ini +5 -0
- pygpt_net/data/locale/plugin.openai_dalle.zh.ini +5 -0
- pygpt_net/data/locale/plugin.openai_vision.de.ini +15 -0
- pygpt_net/data/locale/plugin.openai_vision.en.ini +11 -16
- pygpt_net/data/locale/plugin.openai_vision.es.ini +15 -0
- pygpt_net/data/locale/plugin.openai_vision.fr.ini +15 -0
- pygpt_net/data/locale/plugin.openai_vision.it.ini +15 -0
- pygpt_net/data/locale/plugin.openai_vision.pl.ini +11 -16
- pygpt_net/data/locale/plugin.openai_vision.uk.ini +15 -0
- pygpt_net/data/locale/plugin.openai_vision.zh.ini +15 -0
- pygpt_net/data/locale/plugin.real_time.de.ini +12 -0
- pygpt_net/data/locale/plugin.real_time.en.ini +8 -11
- pygpt_net/data/locale/plugin.real_time.es.ini +12 -0
- pygpt_net/data/locale/plugin.real_time.fr.ini +12 -0
- pygpt_net/data/locale/plugin.real_time.it.ini +12 -0
- pygpt_net/data/locale/plugin.real_time.pl.ini +8 -11
- pygpt_net/data/locale/plugin.real_time.uk.ini +12 -0
- pygpt_net/data/locale/plugin.real_time.zh.ini +12 -0
- pygpt_net/data/locale/plugin.voice_control.de.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.en.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.es.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.fr.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.it.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.pl.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.uk.ini +5 -0
- pygpt_net/data/locale/plugin.voice_control.zh.ini +5 -0
- pygpt_net/data/prompts.csv +169 -0
- pygpt_net/data/win32/README.rtf +0 -0
- pygpt_net/data/win32/USER-LICENSE.rtf +0 -0
- pygpt_net/data/win32/banner.bmp +0 -0
- pygpt_net/data/win32/banner_welcome.bmp +0 -0
- pygpt_net/fonts.qrc +64 -0
- pygpt_net/fonts_rc.py +67878 -0
- pygpt_net/icons.qrc +138 -403
- pygpt_net/icons_rc.py +214 -133
- pygpt_net/item/assistant.py +192 -28
- pygpt_net/item/attachment.py +35 -3
- pygpt_net/item/ctx.py +294 -17
- pygpt_net/item/model.py +58 -3
- pygpt_net/item/preset.py +41 -1
- pygpt_net/item/prompt.py +63 -0
- pygpt_net/js.qrc +8 -0
- pygpt_net/js_rc.py +50785 -0
- pygpt_net/launcher.py +81 -3
- pygpt_net/migrations/Version20240408180000.py +34 -0
- pygpt_net/migrations/Version20240426050000.py +55 -0
- pygpt_net/migrations/Version20240501030000.py +31 -0
- pygpt_net/migrations/Version20241122130000.py +34 -0
- pygpt_net/migrations/Version20241126170000.py +28 -0
- pygpt_net/migrations/Version20241215110000.py +25 -0
- pygpt_net/migrations/__init__.py +13 -2
- pygpt_net/plugin/agent/__init__.py +25 -154
- pygpt_net/plugin/agent/config.py +146 -0
- pygpt_net/plugin/audio_input/__init__.py +54 -263
- pygpt_net/plugin/audio_input/config.py +247 -0
- pygpt_net/plugin/audio_input/simple.py +68 -9
- pygpt_net/plugin/audio_input/worker.py +43 -2
- pygpt_net/plugin/audio_output/__init__.py +61 -34
- pygpt_net/plugin/audio_output/config.py +34 -0
- pygpt_net/plugin/audio_output/worker.py +56 -13
- pygpt_net/plugin/base/__init__.py +0 -0
- pygpt_net/plugin/base/config.py +26 -0
- pygpt_net/plugin/{base.py → base/plugin.py} +212 -133
- pygpt_net/plugin/base/signals.py +23 -0
- pygpt_net/plugin/base/worker.py +268 -0
- pygpt_net/plugin/cmd_api/__init__.py +16 -112
- pygpt_net/plugin/cmd_api/config.py +91 -0
- pygpt_net/plugin/cmd_api/worker.py +19 -25
- pygpt_net/plugin/cmd_code_interpreter/__init__.py +166 -194
- pygpt_net/plugin/cmd_code_interpreter/builder.py +82 -0
- pygpt_net/plugin/cmd_code_interpreter/config.py +390 -0
- pygpt_net/plugin/cmd_code_interpreter/docker.py +63 -0
- pygpt_net/plugin/cmd_code_interpreter/ipython/__init__.py +13 -0
- pygpt_net/plugin/cmd_code_interpreter/ipython/docker_kernel.py +546 -0
- pygpt_net/plugin/cmd_code_interpreter/ipython/local_kernel.py +220 -0
- pygpt_net/plugin/cmd_code_interpreter/output.py +42 -0
- pygpt_net/plugin/cmd_code_interpreter/runner.py +207 -48
- pygpt_net/plugin/cmd_code_interpreter/worker.py +188 -120
- pygpt_net/plugin/cmd_custom/__init__.py +15 -75
- pygpt_net/plugin/cmd_custom/config.py +54 -0
- pygpt_net/plugin/cmd_custom/worker.py +15 -30
- pygpt_net/plugin/cmd_files/__init__.py +31 -436
- pygpt_net/plugin/cmd_files/config.py +426 -0
- pygpt_net/plugin/cmd_files/output.py +42 -0
- pygpt_net/plugin/cmd_files/worker.py +203 -356
- pygpt_net/plugin/cmd_history/__init__.py +33 -294
- pygpt_net/plugin/cmd_history/config.py +270 -0
- pygpt_net/plugin/cmd_history/worker.py +56 -88
- pygpt_net/plugin/cmd_mouse_control/__init__.py +166 -0
- pygpt_net/plugin/cmd_mouse_control/config.py +277 -0
- pygpt_net/plugin/cmd_mouse_control/worker.py +327 -0
- pygpt_net/plugin/cmd_serial/__init__.py +15 -127
- pygpt_net/plugin/cmd_serial/config.py +105 -0
- pygpt_net/plugin/cmd_serial/worker.py +28 -59
- pygpt_net/plugin/cmd_system/__init__.py +169 -0
- pygpt_net/plugin/cmd_system/config.py +137 -0
- pygpt_net/plugin/cmd_system/docker.py +63 -0
- pygpt_net/plugin/cmd_system/output.py +42 -0
- pygpt_net/plugin/cmd_system/runner.py +258 -0
- pygpt_net/plugin/cmd_system/worker.py +120 -0
- pygpt_net/plugin/cmd_web/__init__.py +127 -321
- pygpt_net/plugin/cmd_web/config.py +367 -0
- pygpt_net/plugin/cmd_web/websearch.py +96 -35
- pygpt_net/plugin/cmd_web/worker.py +226 -118
- pygpt_net/plugin/crontab/__init__.py +20 -83
- pygpt_net/plugin/crontab/config.py +73 -0
- pygpt_net/plugin/experts/__init__.py +81 -0
- pygpt_net/plugin/experts/config.py +26 -0
- pygpt_net/plugin/extra_prompt/__init__.py +10 -42
- pygpt_net/plugin/extra_prompt/config.py +44 -0
- pygpt_net/plugin/idx_llama_index/__init__.py +88 -162
- pygpt_net/plugin/idx_llama_index/config.py +134 -0
- pygpt_net/plugin/idx_llama_index/worker.py +31 -31
- pygpt_net/plugin/mailer/__init__.py +123 -0
- pygpt_net/plugin/mailer/config.py +149 -0
- pygpt_net/plugin/mailer/runner.py +285 -0
- pygpt_net/plugin/mailer/worker.py +123 -0
- pygpt_net/plugin/openai_dalle/__init__.py +63 -67
- pygpt_net/plugin/openai_dalle/config.py +72 -0
- pygpt_net/plugin/openai_vision/__init__.py +105 -143
- pygpt_net/plugin/openai_vision/config.py +118 -0
- pygpt_net/plugin/openai_vision/worker.py +159 -0
- pygpt_net/plugin/real_time/__init__.py +101 -51
- pygpt_net/plugin/real_time/config.py +61 -0
- pygpt_net/plugin/voice_control/__init__.py +158 -0
- pygpt_net/plugin/voice_control/config.py +35 -0
- pygpt_net/provider/agents/__init__.py +0 -0
- pygpt_net/provider/agents/base.py +36 -0
- pygpt_net/provider/agents/openai.py +43 -0
- pygpt_net/provider/agents/openai_assistant.py +77 -0
- pygpt_net/provider/agents/planner.py +52 -0
- pygpt_net/provider/agents/react.py +68 -0
- pygpt_net/provider/audio_input/base.py +2 -2
- pygpt_net/provider/audio_output/base.py +2 -2
- pygpt_net/provider/audio_output/openai_tts.py +5 -11
- pygpt_net/provider/core/assistant/base.py +5 -3
- pygpt_net/provider/core/assistant/json_file.py +21 -5
- pygpt_net/provider/core/assistant_file/__init__.py +10 -0
- pygpt_net/provider/core/assistant_file/base.py +55 -0
- pygpt_net/provider/core/assistant_file/db_sqlite/__init__.py +201 -0
- pygpt_net/provider/core/assistant_file/db_sqlite/patch.py +27 -0
- pygpt_net/provider/core/assistant_file/db_sqlite/storage.py +352 -0
- pygpt_net/provider/core/assistant_file/db_sqlite/utils.py +62 -0
- pygpt_net/provider/core/assistant_store/__init__.py +10 -0
- pygpt_net/provider/core/assistant_store/base.py +56 -0
- pygpt_net/provider/core/assistant_store/db_sqlite/__init__.py +135 -0
- pygpt_net/provider/core/assistant_store/db_sqlite/patch.py +27 -0
- pygpt_net/provider/core/assistant_store/db_sqlite/storage.py +240 -0
- pygpt_net/provider/core/assistant_store/db_sqlite/utils.py +66 -0
- pygpt_net/provider/core/assistant_store/json_file.py +150 -0
- pygpt_net/provider/core/attachment/base.py +5 -3
- pygpt_net/provider/core/attachment/json_file.py +14 -4
- pygpt_net/provider/core/calendar/base.py +5 -3
- pygpt_net/provider/core/calendar/db_sqlite/__init__.py +6 -5
- pygpt_net/provider/core/calendar/db_sqlite/storage.py +5 -4
- pygpt_net/provider/core/config/base.py +8 -6
- pygpt_net/provider/core/config/json_file.py +9 -7
- pygpt_net/provider/core/config/patch.py +535 -1
- pygpt_net/provider/core/ctx/base.py +47 -19
- pygpt_net/provider/core/ctx/db_sqlite/__init__.py +152 -20
- pygpt_net/provider/core/ctx/db_sqlite/storage.py +530 -46
- pygpt_net/provider/core/ctx/db_sqlite/utils.py +87 -17
- pygpt_net/provider/core/index/base.py +129 -23
- pygpt_net/provider/core/index/db_sqlite/__init__.py +130 -23
- pygpt_net/provider/core/index/db_sqlite/storage.py +130 -23
- pygpt_net/provider/core/index/db_sqlite/utils.py +4 -2
- pygpt_net/provider/core/mode/base.py +5 -3
- pygpt_net/provider/core/mode/json_file.py +7 -6
- pygpt_net/provider/core/model/base.py +6 -4
- pygpt_net/provider/core/model/json_file.py +13 -7
- pygpt_net/provider/core/model/patch.py +274 -1
- pygpt_net/provider/core/notepad/base.py +5 -3
- pygpt_net/provider/core/notepad/db_sqlite/__init__.py +5 -4
- pygpt_net/provider/core/notepad/db_sqlite/storage.py +4 -3
- pygpt_net/provider/core/plugin_preset/base.py +4 -2
- pygpt_net/provider/core/plugin_preset/json_file.py +5 -3
- pygpt_net/provider/core/preset/base.py +6 -4
- pygpt_net/provider/core/preset/json_file.py +75 -33
- pygpt_net/provider/core/preset/patch.py +63 -1
- pygpt_net/provider/core/prompt/__init__.py +0 -0
- pygpt_net/provider/core/prompt/base.py +51 -0
- pygpt_net/provider/core/prompt/json_file.py +170 -0
- pygpt_net/provider/gpt/__init__.py +107 -60
- pygpt_net/provider/gpt/assistants.py +252 -239
- pygpt_net/provider/gpt/audio.py +64 -0
- pygpt_net/provider/gpt/chat.py +159 -54
- pygpt_net/provider/gpt/completion.py +67 -36
- pygpt_net/provider/gpt/image.py +77 -47
- pygpt_net/provider/gpt/store.py +608 -0
- pygpt_net/provider/gpt/summarizer.py +15 -3
- pygpt_net/provider/gpt/utils.py +27 -0
- pygpt_net/provider/gpt/vision.py +110 -46
- pygpt_net/provider/gpt/worker/assistants.py +454 -36
- pygpt_net/provider/gpt/worker/importer.py +320 -38
- pygpt_net/provider/llms/anthropic.py +23 -20
- pygpt_net/provider/llms/azure_openai.py +39 -6
- pygpt_net/provider/llms/base.py +64 -10
- pygpt_net/provider/llms/google.py +73 -0
- pygpt_net/provider/llms/hugging_face.py +18 -6
- pygpt_net/provider/llms/hugging_face_api.py +85 -0
- pygpt_net/provider/llms/local.py +43 -0
- pygpt_net/provider/llms/ollama.py +83 -5
- pygpt_net/provider/llms/openai.py +50 -6
- pygpt_net/provider/loaders/base.py +25 -1
- pygpt_net/provider/loaders/file_csv.py +5 -1
- pygpt_net/provider/loaders/file_html.py +5 -1
- pygpt_net/provider/loaders/file_image_vision.py +12 -3
- pygpt_net/provider/loaders/file_ipynb.py +5 -1
- pygpt_net/provider/loaders/file_markdown.py +5 -1
- pygpt_net/provider/loaders/file_pdf.py +4 -1
- pygpt_net/provider/loaders/file_video_audio.py +5 -1
- pygpt_net/provider/loaders/file_xml.py +4 -1
- pygpt_net/provider/loaders/hub/github/issues.py +5 -5
- pygpt_net/provider/loaders/hub/google/gmail.py +2 -2
- pygpt_net/provider/loaders/hub/image_vision/base.py +22 -0
- pygpt_net/provider/loaders/hub/json/base.py +2 -2
- pygpt_net/provider/loaders/hub/pandas_excel/base.py +2 -2
- pygpt_net/provider/loaders/hub/simple_csv/base.py +2 -2
- pygpt_net/provider/loaders/hub/yt/base.py +6 -1
- pygpt_net/provider/loaders/web_bitbucket.py +6 -1
- pygpt_net/provider/loaders/web_chatgpt_retrieval.py +7 -1
- pygpt_net/provider/loaders/web_database.py +22 -3
- pygpt_net/provider/loaders/web_github_issues.py +22 -1
- pygpt_net/provider/loaders/web_github_repo.py +23 -1
- pygpt_net/provider/loaders/web_google_calendar.py +13 -1
- pygpt_net/provider/loaders/web_google_docs.py +10 -1
- pygpt_net/provider/loaders/web_google_drive.py +18 -2
- pygpt_net/provider/loaders/web_google_gmail.py +12 -2
- pygpt_net/provider/loaders/web_google_keep.py +8 -1
- pygpt_net/provider/loaders/web_google_sheets.py +10 -1
- pygpt_net/provider/loaders/web_microsoft_onedrive.py +20 -1
- pygpt_net/provider/loaders/web_page.py +4 -2
- pygpt_net/provider/loaders/web_rss.py +3 -1
- pygpt_net/provider/loaders/web_sitemap.py +13 -3
- pygpt_net/provider/loaders/web_twitter.py +8 -2
- pygpt_net/provider/loaders/web_yt.py +35 -2
- pygpt_net/provider/vector_stores/__init__.py +113 -14
- pygpt_net/provider/vector_stores/base.py +45 -10
- pygpt_net/provider/vector_stores/chroma.py +22 -6
- pygpt_net/provider/vector_stores/ctx_attachment.py +125 -0
- pygpt_net/provider/vector_stores/elasticsearch.py +21 -6
- pygpt_net/provider/vector_stores/pinecode.py +21 -6
- pygpt_net/provider/vector_stores/redis.py +21 -6
- pygpt_net/provider/vector_stores/simple.py +17 -6
- pygpt_net/provider/vector_stores/temp.py +21 -7
- pygpt_net/provider/web/base.py +11 -4
- pygpt_net/provider/web/google_custom_search.py +9 -3
- pygpt_net/provider/web/microsoft_bing.py +9 -3
- pygpt_net/tools/__init__.py +150 -0
- pygpt_net/{controller/audio/transcript.py → tools/audio_transcriber/__init__.py} +105 -41
- pygpt_net/tools/audio_transcriber/ui/__init__.py +0 -0
- pygpt_net/tools/audio_transcriber/ui/dialogs.py +150 -0
- pygpt_net/tools/base.py +113 -0
- pygpt_net/tools/code_interpreter/__init__.py +563 -0
- pygpt_net/tools/code_interpreter/ui/__init__.py +0 -0
- pygpt_net/tools/code_interpreter/ui/dialogs.py +127 -0
- pygpt_net/tools/code_interpreter/ui/widgets.py +386 -0
- pygpt_net/tools/html_canvas/__init__.py +320 -0
- pygpt_net/tools/html_canvas/ui/__init__.py +0 -0
- pygpt_net/tools/html_canvas/ui/dialogs.py +142 -0
- pygpt_net/tools/html_canvas/ui/widgets.py +135 -0
- pygpt_net/tools/image_viewer/__init__.py +303 -0
- pygpt_net/tools/image_viewer/ui/__init__.py +0 -0
- pygpt_net/tools/image_viewer/ui/dialogs.py +152 -0
- pygpt_net/tools/indexer/__init__.py +520 -0
- pygpt_net/tools/indexer/ui/__init__.py +0 -0
- pygpt_net/tools/indexer/ui/browse.py +46 -0
- pygpt_net/tools/indexer/ui/ctx.py +96 -0
- pygpt_net/tools/indexer/ui/dialogs.py +199 -0
- pygpt_net/tools/indexer/ui/files.py +101 -0
- pygpt_net/tools/indexer/ui/web.py +199 -0
- pygpt_net/tools/indexer/ui/widgets.py +121 -0
- pygpt_net/tools/media_player/__init__.py +202 -0
- pygpt_net/tools/media_player/ui/__init__.py +0 -0
- pygpt_net/tools/media_player/ui/dialogs.py +113 -0
- pygpt_net/{ui/widget/video/player.py → tools/media_player/ui/widgets.py} +61 -33
- pygpt_net/tools/text_editor/__init__.py +293 -0
- pygpt_net/tools/text_editor/ui/__init__.py +0 -0
- pygpt_net/tools/text_editor/ui/dialogs.py +80 -0
- pygpt_net/tools/text_editor/ui/widgets.py +77 -0
- pygpt_net/ui/__init__.py +90 -22
- pygpt_net/ui/base/config_dialog.py +2 -1
- pygpt_net/ui/base/context_menu.py +81 -0
- pygpt_net/ui/dialog/about.py +44 -29
- pygpt_net/ui/dialog/applog.py +17 -4
- pygpt_net/ui/dialog/assistant.py +45 -29
- pygpt_net/ui/dialog/assistant_store.py +525 -0
- pygpt_net/ui/dialog/db.py +111 -49
- pygpt_net/ui/dialog/editor.py +16 -68
- pygpt_net/ui/dialog/find.py +29 -0
- pygpt_net/ui/dialog/image.py +4 -44
- pygpt_net/ui/dialog/logger.py +2 -1
- pygpt_net/ui/dialog/plugins.py +8 -6
- pygpt_net/ui/dialog/preset.py +118 -47
- pygpt_net/ui/dialog/profile.py +118 -0
- pygpt_net/ui/dialog/settings.py +23 -7
- pygpt_net/ui/dialog/start.py +5 -2
- pygpt_net/ui/dialog/url.py +29 -0
- pygpt_net/ui/dialog/workdir.py +108 -0
- pygpt_net/ui/dialogs.py +35 -19
- pygpt_net/ui/layout/chat/__init__.py +3 -3
- pygpt_net/ui/layout/chat/attachments.py +56 -6
- pygpt_net/ui/layout/chat/attachments_ctx.py +162 -0
- pygpt_net/ui/layout/chat/attachments_uploaded.py +41 -16
- pygpt_net/ui/layout/chat/calendar.py +15 -21
- pygpt_net/ui/layout/chat/explorer.py +39 -0
- pygpt_net/ui/layout/chat/input.py +48 -11
- pygpt_net/ui/layout/chat/output.py +112 -99
- pygpt_net/ui/layout/chat/painter.py +35 -29
- pygpt_net/ui/layout/ctx/__init__.py +4 -1
- pygpt_net/ui/layout/ctx/ctx_list.py +233 -36
- pygpt_net/ui/layout/status.py +9 -1
- pygpt_net/ui/layout/toolbox/__init__.py +17 -23
- pygpt_net/ui/layout/toolbox/agent.py +23 -13
- pygpt_net/ui/layout/toolbox/agent_llama.py +74 -0
- pygpt_net/ui/layout/toolbox/assistants.py +12 -8
- pygpt_net/ui/layout/toolbox/footer.py +33 -7
- pygpt_net/ui/layout/toolbox/image.py +2 -1
- pygpt_net/ui/layout/toolbox/indexes.py +99 -12
- pygpt_net/ui/layout/toolbox/mode.py +11 -49
- pygpt_net/ui/layout/toolbox/model.py +12 -48
- pygpt_net/ui/layout/toolbox/presets.py +44 -12
- pygpt_net/ui/layout/toolbox/prompt.py +30 -15
- pygpt_net/ui/main.py +98 -20
- pygpt_net/ui/menu/__init__.py +11 -1
- pygpt_net/ui/menu/about.py +14 -3
- pygpt_net/ui/menu/audio.py +40 -11
- pygpt_net/ui/menu/config.py +61 -11
- pygpt_net/ui/menu/debug.py +34 -9
- pygpt_net/ui/menu/donate.py +46 -0
- pygpt_net/ui/menu/file.py +25 -3
- pygpt_net/ui/menu/theme.py +19 -1
- pygpt_net/ui/menu/tools.py +83 -0
- pygpt_net/ui/menu/video.py +1 -13
- pygpt_net/ui/tray.py +5 -5
- pygpt_net/ui/widget/anims/loader.py +229 -0
- pygpt_net/ui/widget/anims/toggles.py +167 -0
- pygpt_net/ui/widget/audio/input_button.py +53 -3
- pygpt_net/ui/widget/calendar/select.py +30 -4
- pygpt_net/ui/widget/dialog/alert.py +3 -1
- pygpt_net/ui/widget/dialog/{interpreter.py → assistant_store.py} +14 -14
- pygpt_net/ui/widget/dialog/audio.py +1 -38
- pygpt_net/ui/widget/dialog/base.py +22 -8
- pygpt_net/ui/widget/dialog/confirm.py +8 -7
- pygpt_net/ui/widget/dialog/debug.py +2 -1
- pygpt_net/ui/widget/dialog/editor_file.py +117 -13
- pygpt_net/ui/widget/dialog/find.py +88 -0
- pygpt_net/ui/widget/dialog/image.py +1 -1
- pygpt_net/ui/widget/dialog/preset_plugins.py +2 -2
- pygpt_net/ui/widget/dialog/profile.py +177 -0
- pygpt_net/ui/widget/dialog/url.py +207 -0
- pygpt_net/ui/widget/dialog/{video_player.py → workdir.py} +11 -11
- pygpt_net/ui/widget/draw/painter.py +40 -2
- pygpt_net/ui/widget/element/button.py +87 -3
- pygpt_net/ui/widget/element/group.py +38 -2
- pygpt_net/ui/widget/filesystem/explorer.py +46 -13
- pygpt_net/ui/widget/image/display.py +42 -9
- pygpt_net/ui/widget/lists/assistant_store.py +114 -0
- pygpt_net/ui/widget/lists/attachment.py +82 -15
- pygpt_net/ui/widget/lists/attachment_ctx.py +173 -0
- pygpt_net/ui/widget/lists/base.py +2 -2
- pygpt_net/ui/widget/lists/base_combo.py +130 -0
- pygpt_net/ui/widget/lists/base_list_combo.py +121 -0
- pygpt_net/ui/widget/lists/context.py +359 -173
- pygpt_net/ui/widget/lists/db.py +7 -3
- pygpt_net/ui/widget/lists/experts.py +136 -0
- pygpt_net/ui/widget/lists/index.py +3 -3
- pygpt_net/ui/widget/lists/index_combo.py +130 -0
- pygpt_net/ui/widget/lists/llama_mode_combo.py +35 -0
- pygpt_net/ui/widget/lists/mode.py +2 -6
- pygpt_net/ui/widget/lists/mode_combo.py +34 -0
- pygpt_net/ui/widget/lists/model_combo.py +34 -0
- pygpt_net/ui/widget/lists/preset.py +48 -1
- pygpt_net/ui/widget/lists/profile.py +141 -0
- pygpt_net/ui/widget/lists/uploaded.py +20 -7
- pygpt_net/ui/widget/option/checkbox.py +69 -6
- pygpt_net/ui/widget/option/cmd.py +11 -5
- pygpt_net/ui/widget/option/combo.py +41 -4
- pygpt_net/ui/widget/option/dictionary.py +33 -10
- pygpt_net/ui/widget/option/input.py +106 -2
- pygpt_net/ui/widget/option/prompt.py +14 -1
- pygpt_net/ui/widget/option/textarea.py +18 -1
- pygpt_net/ui/widget/option/toggle.py +63 -0
- pygpt_net/ui/widget/option/toggle_label.py +79 -0
- pygpt_net/ui/widget/tabs/Input.py +2 -2
- pygpt_net/ui/widget/tabs/body.py +36 -0
- pygpt_net/ui/widget/tabs/layout.py +195 -0
- pygpt_net/ui/widget/tabs/output.py +305 -26
- pygpt_net/ui/widget/textarea/calendar_note.py +55 -32
- pygpt_net/ui/widget/textarea/editor.py +66 -115
- pygpt_net/ui/widget/textarea/find.py +52 -0
- pygpt_net/ui/widget/textarea/html.py +329 -0
- pygpt_net/ui/widget/textarea/input.py +67 -33
- pygpt_net/ui/widget/textarea/notepad.py +77 -44
- pygpt_net/ui/widget/textarea/output.py +54 -40
- pygpt_net/ui/widget/textarea/search_input.py +9 -1
- pygpt_net/ui/widget/textarea/url.py +43 -0
- pygpt_net/ui/widget/textarea/web.py +361 -0
- pygpt_net/utils.py +100 -15
- {pygpt_net-2.1.37.dist-info → pygpt_net-2.4.48.dist-info}/LICENSE +2 -0
- {pygpt_net-2.1.37.dist-info → pygpt_net-2.4.48.dist-info}/METADATA +2288 -1173
- pygpt_net-2.4.48.dist-info/RECORD +2181 -0
- pygpt_net/controller/agent/flow.py +0 -223
- pygpt_net/controller/editor.py +0 -54
- pygpt_net/controller/interpreter.py +0 -299
- pygpt_net/controller/video.py +0 -107
- pygpt_net/core/bridge.py +0 -121
- pygpt_net/core/prompt.py +0 -69
- pygpt_net/data/locale/locale.ua.ini +0 -591
- pygpt_net/provider/llms/llama.py +0 -47
- pygpt_net/ui/dialog/audio.py +0 -75
- pygpt_net/ui/dialog/interpreter.py +0 -107
- pygpt_net/ui/dialog/video_player.py +0 -36
- pygpt_net/ui/widget/textarea/interpreter.py +0 -104
- pygpt_net-2.1.37.dist-info/RECORD +0 -760
- /pygpt_net/{ui/widget/video → core/text}/__init__.py +0 -0
- {pygpt_net-2.1.37.dist-info → pygpt_net-2.4.48.dist-info}/WHEEL +0 -0
- {pygpt_net-2.1.37.dist-info → pygpt_net-2.4.48.dist-info}/entry_points.txt +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
# GitHub: https://github.com/szczyglis-dev/py-gpt #
|
7
7
|
# MIT License #
|
8
8
|
# Created By : Marcin Szczygliński #
|
9
|
-
# Updated Date: 2024.
|
9
|
+
# Updated Date: 2024.11.18 21:00:00 #
|
10
10
|
# ================================================== #
|
11
11
|
|
12
12
|
import fnmatch
|
@@ -17,7 +17,7 @@ import ssl
|
|
17
17
|
from urllib.request import Request, urlopen
|
18
18
|
from PySide6.QtCore import Slot
|
19
19
|
|
20
|
-
from pygpt_net.plugin.base import BaseWorker, BaseSignals
|
20
|
+
from pygpt_net.plugin.base.worker import BaseWorker, BaseSignals
|
21
21
|
|
22
22
|
|
23
23
|
class WorkerSignals(BaseSignals):
|
@@ -39,6 +39,8 @@ class Worker(BaseWorker):
|
|
39
39
|
def run(self):
|
40
40
|
responses = []
|
41
41
|
for item in self.cmds:
|
42
|
+
if self.is_stopped():
|
43
|
+
break
|
42
44
|
try:
|
43
45
|
response = None
|
44
46
|
if item["cmd"] in self.plugin.allowed_cmds and self.plugin.has_cmd(item["cmd"]):
|
@@ -67,6 +69,10 @@ class Worker(BaseWorker):
|
|
67
69
|
elif item["cmd"] == "list_dir":
|
68
70
|
response = self.cmd_list_dir(item)
|
69
71
|
|
72
|
+
# tree
|
73
|
+
elif item["cmd"] == "tree":
|
74
|
+
response = self.cmd_tree(item)
|
75
|
+
|
70
76
|
# mkdir
|
71
77
|
elif item["cmd"] == "mkdir":
|
72
78
|
response = self.cmd_mkdir(item)
|
@@ -127,48 +133,25 @@ class Worker(BaseWorker):
|
|
127
133
|
elif item["cmd"] == "find":
|
128
134
|
response = self.cmd_find(item)
|
129
135
|
|
130
|
-
#
|
136
|
+
# store response
|
131
137
|
if response:
|
132
138
|
responses.append(response)
|
133
139
|
|
134
140
|
except Exception as e:
|
135
|
-
responses.append(
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
self.error(e)
|
142
|
-
self.log("Error: {}".format(e))
|
141
|
+
responses.append(
|
142
|
+
self.make_response(
|
143
|
+
item,
|
144
|
+
self.throw_error(e)
|
145
|
+
)
|
146
|
+
)
|
143
147
|
|
144
148
|
# send response
|
145
149
|
if len(responses) > 0:
|
146
|
-
|
147
|
-
self.reply(response, self.get_extra_data())
|
150
|
+
self.reply_more(responses)
|
148
151
|
|
149
152
|
if self.msg is not None:
|
150
153
|
self.status(self.msg)
|
151
154
|
|
152
|
-
def prepare_request(self, item) -> dict:
|
153
|
-
"""
|
154
|
-
Prepare request item for result
|
155
|
-
|
156
|
-
:param item: item with parameters
|
157
|
-
:return: request item
|
158
|
-
"""
|
159
|
-
request = {"cmd": item["cmd"]} # prepare request item for result
|
160
|
-
return request
|
161
|
-
|
162
|
-
def get_extra_data(self) -> dict:
|
163
|
-
"""
|
164
|
-
Return extra data for response
|
165
|
-
|
166
|
-
:return: extra data
|
167
|
-
"""
|
168
|
-
return {
|
169
|
-
"post_update": ["file_explorer"], # update file explorer after processing
|
170
|
-
}
|
171
|
-
|
172
155
|
def cmd_save_file(self, item: dict) -> dict:
|
173
156
|
"""
|
174
157
|
Save file
|
@@ -176,27 +159,18 @@ class Worker(BaseWorker):
|
|
176
159
|
:param item: item with parameters
|
177
160
|
:return: response item
|
178
161
|
"""
|
179
|
-
request = self.prepare_request(item)
|
180
162
|
try:
|
181
163
|
path = self.prepare_path(item["params"]['path'])
|
164
|
+
data = item["params"]['data']
|
182
165
|
self.msg = "Saving file: {}".format(path)
|
183
166
|
self.log(self.msg)
|
184
|
-
data = item["params"]['data']
|
185
167
|
with open(path, 'w', encoding="utf-8") as file:
|
186
168
|
file.write(data)
|
187
|
-
|
188
|
-
"request": request,
|
189
|
-
"result": "OK",
|
190
|
-
}
|
169
|
+
result = "OK"
|
191
170
|
self.log("File saved: {}".format(path))
|
192
171
|
except Exception as e:
|
193
|
-
|
194
|
-
|
195
|
-
"result": "Error: {}".format(e),
|
196
|
-
}
|
197
|
-
self.error(e)
|
198
|
-
self.log("Error: {}".format(e))
|
199
|
-
return response
|
172
|
+
result = self.throw_error(e)
|
173
|
+
return self.make_response(item, result)
|
200
174
|
|
201
175
|
def cmd_append_file(self, item: dict) -> dict:
|
202
176
|
"""
|
@@ -205,27 +179,18 @@ class Worker(BaseWorker):
|
|
205
179
|
:param item: item with parameters
|
206
180
|
:return: response item
|
207
181
|
"""
|
208
|
-
request = self.prepare_request(item)
|
209
182
|
try:
|
210
183
|
path = self.prepare_path(item["params"]['path'])
|
184
|
+
data = item["params"]['data']
|
211
185
|
self.msg = "Appending file: {}".format(path)
|
212
186
|
self.log(self.msg)
|
213
|
-
data = item["params"]['data']
|
214
187
|
with open(path, 'a', encoding="utf-8") as file:
|
215
188
|
file.write(data)
|
216
|
-
|
217
|
-
"request": request,
|
218
|
-
"result": "OK",
|
219
|
-
}
|
189
|
+
result = "OK"
|
220
190
|
self.log("File appended: {}".format(path))
|
221
191
|
except Exception as e:
|
222
|
-
|
223
|
-
|
224
|
-
"result": "Error: {}".format(e),
|
225
|
-
}
|
226
|
-
self.error(e)
|
227
|
-
self.log("Error: {}".format(e))
|
228
|
-
return response
|
192
|
+
result = self.throw_error(e)
|
193
|
+
return self.make_response(item, result)
|
229
194
|
|
230
195
|
def cmd_read_file(self, item: dict) -> dict:
|
231
196
|
"""
|
@@ -234,7 +199,7 @@ class Worker(BaseWorker):
|
|
234
199
|
:param item: item with parameters
|
235
200
|
:return: response item
|
236
201
|
"""
|
237
|
-
|
202
|
+
context_result = ""
|
238
203
|
try:
|
239
204
|
self.msg = "Reading file: {}".format(item["params"]['path'])
|
240
205
|
self.log(self.msg)
|
@@ -248,20 +213,13 @@ class Worker(BaseWorker):
|
|
248
213
|
context_str = None
|
249
214
|
if context:
|
250
215
|
context_str = "\n\n".join(context)
|
251
|
-
|
252
|
-
"request": request,
|
253
|
-
"result": data,
|
254
|
-
}
|
216
|
+
result = data
|
255
217
|
if context_str:
|
256
|
-
|
218
|
+
context_result = context_str
|
257
219
|
except Exception as e:
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
}
|
262
|
-
self.error(e)
|
263
|
-
self.log("Error: {}".format(e))
|
264
|
-
return response
|
220
|
+
result = self.throw_error(e)
|
221
|
+
extra = self.prepare_extra(item, context_result)
|
222
|
+
return self.make_response(item, result, extra=extra)
|
265
223
|
|
266
224
|
def cmd_query_file(self, item: dict) -> dict:
|
267
225
|
"""
|
@@ -270,8 +228,8 @@ class Worker(BaseWorker):
|
|
270
228
|
:param item: item with parameters
|
271
229
|
:return: response item
|
272
230
|
"""
|
273
|
-
|
274
|
-
|
231
|
+
result = None
|
232
|
+
context = None
|
275
233
|
query = None
|
276
234
|
try:
|
277
235
|
path = self.prepare_path(item["params"]['path'])
|
@@ -285,13 +243,11 @@ class Worker(BaseWorker):
|
|
285
243
|
if query is not None:
|
286
244
|
# query file using temp index (created on the fly)
|
287
245
|
self.log("Querying file: {}".format(path))
|
288
|
-
|
289
246
|
# get tmp query model
|
290
247
|
model = self.plugin.window.core.models.from_defaults()
|
291
248
|
tmp_model = self.plugin.get_option_value("model_tmp_query")
|
292
249
|
if self.plugin.window.core.models.has(tmp_model):
|
293
250
|
model = self.plugin.window.core.models.get(tmp_model)
|
294
|
-
|
295
251
|
answer = self.plugin.window.core.idx.chat.query_file(
|
296
252
|
ctx=self.ctx,
|
297
253
|
path=path,
|
@@ -300,12 +256,8 @@ class Worker(BaseWorker):
|
|
300
256
|
)
|
301
257
|
self.log("Response from temporary in-memory index: {}".format(answer))
|
302
258
|
if answer:
|
303
|
-
|
304
|
-
|
305
|
-
"result": answer,
|
306
|
-
"context": "From: " + os.path.basename(path) + ":\n--------------------------------\n" + answer,
|
307
|
-
# add additional context
|
308
|
-
}
|
259
|
+
result = answer
|
260
|
+
context = "From: " + os.path.basename(path) + ":\n--------------------------------\n" + answer
|
309
261
|
|
310
262
|
# + auto-index file to main index using Llama-index
|
311
263
|
if self.plugin.get_option_value("auto_index"):
|
@@ -315,19 +267,13 @@ class Worker(BaseWorker):
|
|
315
267
|
path,
|
316
268
|
)
|
317
269
|
else:
|
318
|
-
|
319
|
-
"request": request,
|
320
|
-
"result": "File not found",
|
321
|
-
}
|
270
|
+
result = "File not found"
|
322
271
|
self.log("File not found: {}".format(path))
|
323
272
|
except Exception as e:
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
self.error(e)
|
329
|
-
self.log("Error: {}".format(e))
|
330
|
-
return response
|
273
|
+
result = self.throw_error(e)
|
274
|
+
|
275
|
+
extra = self.prepare_extra(item, context)
|
276
|
+
return self.make_response(item, result, extra=extra)
|
331
277
|
|
332
278
|
def cmd_delete_file(self,item: dict) -> dict:
|
333
279
|
"""
|
@@ -336,29 +282,20 @@ class Worker(BaseWorker):
|
|
336
282
|
:param item: item with parameters
|
337
283
|
:return: response item
|
338
284
|
"""
|
339
|
-
request = self.prepare_request(item)
|
340
285
|
try:
|
341
286
|
path = self.prepare_path(item["params"]['path'])
|
342
287
|
self.msg = "Deleting file: {}".format(path)
|
343
288
|
self.log(self.msg)
|
344
289
|
if os.path.exists(path):
|
345
290
|
os.remove(path)
|
346
|
-
|
291
|
+
result = "OK"
|
347
292
|
self.log("File deleted: {}".format(path))
|
348
293
|
else:
|
349
|
-
|
350
|
-
"request": request,
|
351
|
-
"result": "File not found",
|
352
|
-
}
|
294
|
+
result = "File not found"
|
353
295
|
self.log("File not found: {}".format(path))
|
354
296
|
except Exception as e:
|
355
|
-
|
356
|
-
|
357
|
-
"result": "Error: {}".format(e),
|
358
|
-
}
|
359
|
-
self.error(e)
|
360
|
-
self.log("Error: {}".format(e))
|
361
|
-
return response
|
297
|
+
result = self.throw_error(e)
|
298
|
+
return self.make_response(item, result)
|
362
299
|
|
363
300
|
def cmd_list_dir(self, item: dict) -> dict:
|
364
301
|
"""
|
@@ -367,7 +304,6 @@ class Worker(BaseWorker):
|
|
367
304
|
:param item: item with parameters
|
368
305
|
:return: response item
|
369
306
|
"""
|
370
|
-
request = self.prepare_request(item)
|
371
307
|
try:
|
372
308
|
path = self.plugin.window.core.config.get_user_dir('data')
|
373
309
|
if "path" in item["params"]:
|
@@ -376,26 +312,57 @@ class Worker(BaseWorker):
|
|
376
312
|
self.log(self.msg)
|
377
313
|
if os.path.exists(path):
|
378
314
|
files = os.listdir(path)
|
379
|
-
|
380
|
-
"request": request,
|
381
|
-
"result": files,
|
382
|
-
}
|
315
|
+
result = files
|
383
316
|
self.log("Files listed: {}".format(path))
|
384
317
|
self.log("Result: {}".format(files))
|
385
318
|
else:
|
386
|
-
|
387
|
-
"request": request,
|
388
|
-
"result": "Directory not found",
|
389
|
-
}
|
319
|
+
result = "Directory not found"
|
390
320
|
self.log("Directory not found: {}".format(path))
|
391
321
|
except Exception as e:
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
322
|
+
result = self.throw_error(e)
|
323
|
+
extra = self.prepare_extra(item, result)
|
324
|
+
return self.make_response(item, result, extra=extra)
|
325
|
+
|
326
|
+
def cmd_tree(self, item: dict) -> dict:
|
327
|
+
"""
|
328
|
+
Get directory tree
|
329
|
+
|
330
|
+
:param item: item with parameters
|
331
|
+
:return: response item
|
332
|
+
"""
|
333
|
+
context = None
|
334
|
+
try:
|
335
|
+
path = self.plugin.window.core.config.get_user_dir('data')
|
336
|
+
if "path" in item["params"]:
|
337
|
+
path = self.prepare_path(item["params"]['path'])
|
338
|
+
self.msg = "Listing directory: {}".format(path)
|
339
|
+
self.log(self.msg)
|
340
|
+
tree_str = ""
|
341
|
+
tree = {}
|
342
|
+
if os.path.exists(path):
|
343
|
+
for root, dirs, files in os.walk(path):
|
344
|
+
dirs.sort()
|
345
|
+
files.sort()
|
346
|
+
level = root.replace(path, '').count(os.sep)
|
347
|
+
indent = ' ' * 4 * (level)
|
348
|
+
tree_str += '{}{}/\n'.format(indent, os.path.basename(root))
|
349
|
+
sub_indent = ' ' * 4 * (level + 1)
|
350
|
+
files = sorted(files)
|
351
|
+
for f in files:
|
352
|
+
tree_str += '{}{}\n'.format(sub_indent, f)
|
353
|
+
tree[os.path.basename(root)] = files
|
354
|
+
result = tree
|
355
|
+
context = path + "\n--------------------------------\n" + tree_str
|
356
|
+
self.log("Directory tree: {}".format(path))
|
357
|
+
self.log("Result: {}".format(tree_str))
|
358
|
+
else:
|
359
|
+
result = "Directory not found"
|
360
|
+
self.log("Directory not found: {}".format(path))
|
361
|
+
except Exception as e:
|
362
|
+
result = self.throw_error(e)
|
363
|
+
|
364
|
+
extra = self.prepare_extra(item, result)
|
365
|
+
return self.make_response(item, result, extra=extra)
|
399
366
|
|
400
367
|
def cmd_mkdir(self, item: dict) -> dict:
|
401
368
|
"""
|
@@ -404,32 +371,20 @@ class Worker(BaseWorker):
|
|
404
371
|
:param item: item with parameters
|
405
372
|
:return: response item
|
406
373
|
"""
|
407
|
-
request = self.prepare_request(item)
|
408
374
|
try:
|
409
375
|
path = self.prepare_path(item["params"]['path'])
|
410
376
|
self.msg = "Creating directory: {}".format(path)
|
411
377
|
self.log(self.msg)
|
412
378
|
if not os.path.exists(path):
|
413
379
|
os.makedirs(path)
|
414
|
-
|
415
|
-
"request": request,
|
416
|
-
"result": "OK",
|
417
|
-
}
|
380
|
+
result = "OK"
|
418
381
|
self.log("Directory created: {}".format(path))
|
419
382
|
else:
|
420
|
-
|
421
|
-
|
422
|
-
"result": "Directory already exists",
|
423
|
-
}
|
424
|
-
self.log("Directory already exists: {}".format(path))
|
383
|
+
result = "Directory already exists"
|
384
|
+
self.log("{}: {}".format(result, path))
|
425
385
|
except Exception as e:
|
426
|
-
|
427
|
-
|
428
|
-
"result": "Error: {}".format(e),
|
429
|
-
}
|
430
|
-
self.error(e)
|
431
|
-
self.log("Error: {}".format(e))
|
432
|
-
return response
|
386
|
+
result = self.throw_error(e)
|
387
|
+
return self.make_response(item, result)
|
433
388
|
|
434
389
|
def cmd_rmdir(self, item: dict) -> dict:
|
435
390
|
"""
|
@@ -438,32 +393,20 @@ class Worker(BaseWorker):
|
|
438
393
|
:param item: item with parameters
|
439
394
|
:return: response item
|
440
395
|
"""
|
441
|
-
request = self.prepare_request(item)
|
442
396
|
try:
|
443
397
|
path = self.prepare_path(item["params"]['path'])
|
444
398
|
self.msg = "Deleting directory: {}".format(path)
|
445
399
|
self.log(self.msg)
|
446
400
|
if os.path.exists(path):
|
447
401
|
shutil.rmtree(path)
|
448
|
-
|
449
|
-
"request": request,
|
450
|
-
"result": "OK",
|
451
|
-
}
|
402
|
+
result = "OK"
|
452
403
|
self.log("Directory deleted: {}".format(path))
|
453
404
|
else:
|
454
|
-
|
455
|
-
|
456
|
-
"result": "Directory not found",
|
457
|
-
}
|
458
|
-
self.log("Directory not found: {}".format(path))
|
405
|
+
result = "Directory not found"
|
406
|
+
self.log("{}: {}".format(result, path))
|
459
407
|
except Exception as e:
|
460
|
-
|
461
|
-
|
462
|
-
"result": "Error: {}".format(e),
|
463
|
-
}
|
464
|
-
self.error(e)
|
465
|
-
self.log("Error: {}".format(e))
|
466
|
-
return response
|
408
|
+
result = self.throw_error(e)
|
409
|
+
return self.make_response(item, result)
|
467
410
|
|
468
411
|
def cmd_download_file(self, item: dict) -> dict:
|
469
412
|
"""
|
@@ -472,7 +415,6 @@ class Worker(BaseWorker):
|
|
472
415
|
:param item: item with parameters
|
473
416
|
:return: response item
|
474
417
|
"""
|
475
|
-
request = self.prepare_request(item)
|
476
418
|
try:
|
477
419
|
dst = self.prepare_path(item["params"]['dst'])
|
478
420
|
self.msg = "Downloading file: {} into {}".format(item["params"]['src'], dst)
|
@@ -502,30 +444,21 @@ class Worker(BaseWorker):
|
|
502
444
|
self.plugin.window.core.config.get_user_dir('data'),
|
503
445
|
item["params"]['src'],
|
504
446
|
)
|
505
|
-
|
506
447
|
# Copy local file
|
507
448
|
with open(src, 'rb') as in_file, open(dst, 'wb') as out_file:
|
508
449
|
shutil.copyfileobj(in_file, out_file)
|
509
450
|
size = os.path.getsize(dst)
|
510
451
|
|
511
452
|
# handle result
|
512
|
-
|
513
|
-
"
|
514
|
-
"
|
515
|
-
|
516
|
-
"size_bytes": size,
|
517
|
-
"size_human": self.get_human_readable_size(size),
|
518
|
-
}
|
453
|
+
result = {
|
454
|
+
"result": "OK",
|
455
|
+
"size_bytes": size,
|
456
|
+
"size_human": self.get_human_readable_size(size),
|
519
457
|
}
|
520
458
|
self.log("File downloaded: {} into {}".format(src, dst))
|
521
459
|
except Exception as e:
|
522
|
-
|
523
|
-
|
524
|
-
"result": "Error: {}".format(e),
|
525
|
-
}
|
526
|
-
self.error(e)
|
527
|
-
self.log("Error: {}".format(e))
|
528
|
-
return response
|
460
|
+
result = self.throw_error(e)
|
461
|
+
return self.make_response(item, result)
|
529
462
|
|
530
463
|
def cmd_copy_file(self, item: dict) -> dict:
|
531
464
|
"""
|
@@ -534,26 +467,17 @@ class Worker(BaseWorker):
|
|
534
467
|
:param item: item with parameters
|
535
468
|
:return: response item
|
536
469
|
"""
|
537
|
-
request = self.prepare_request(item)
|
538
470
|
try:
|
539
471
|
src = self.prepare_path(item["params"]['src'])
|
540
472
|
dst = self.prepare_path(item["params"]['dst'])
|
541
473
|
self.msg = "Copying file: {} into {}".format(src, dst)
|
542
474
|
self.log(self.msg)
|
543
475
|
shutil.copyfile(src, dst)
|
544
|
-
|
545
|
-
"request": request,
|
546
|
-
"result": "OK",
|
547
|
-
}
|
476
|
+
result = "OK"
|
548
477
|
self.log("File copied: {} into {}".format(src, dst))
|
549
478
|
except Exception as e:
|
550
|
-
|
551
|
-
|
552
|
-
"result": "Error: {}".format(e),
|
553
|
-
}
|
554
|
-
self.error(e)
|
555
|
-
self.log("Error: {}".format(e))
|
556
|
-
return response
|
479
|
+
result = self.throw_error(e)
|
480
|
+
return self.make_response(item, result)
|
557
481
|
|
558
482
|
def cmd_copy_dir(self, item: dict) -> dict:
|
559
483
|
"""
|
@@ -562,26 +486,17 @@ class Worker(BaseWorker):
|
|
562
486
|
:param item: item with parameters
|
563
487
|
:return: response item
|
564
488
|
"""
|
565
|
-
request = self.prepare_request(item)
|
566
489
|
try:
|
567
490
|
src = self.prepare_path(item["params"]['src'])
|
568
491
|
dst = self.prepare_path(item["params"]['dst'])
|
569
492
|
self.msg = "Copying directory: {} into {}".format(src, dst)
|
570
493
|
self.log(self.msg)
|
571
494
|
shutil.copytree(src, dst)
|
572
|
-
|
573
|
-
"request": request,
|
574
|
-
"result": "OK",
|
575
|
-
}
|
495
|
+
result = "OK"
|
576
496
|
self.log("Directory copied: {} into {}".format(src, dst))
|
577
497
|
except Exception as e:
|
578
|
-
|
579
|
-
|
580
|
-
"result": "Error {}".format(e),
|
581
|
-
}
|
582
|
-
self.error(e)
|
583
|
-
self.log("Error: {}".format(e))
|
584
|
-
return response
|
498
|
+
result = self.throw_error(e)
|
499
|
+
return self.make_response(item, result)
|
585
500
|
|
586
501
|
def cmd_move(self, item: dict) -> dict:
|
587
502
|
"""
|
@@ -590,26 +505,17 @@ class Worker(BaseWorker):
|
|
590
505
|
:param item: item with parameters
|
591
506
|
:return: response item
|
592
507
|
"""
|
593
|
-
request = self.prepare_request(item)
|
594
508
|
try:
|
595
509
|
src = self.prepare_path(item["params"]['src'])
|
596
510
|
dst = self.prepare_path(item["params"]['dst'])
|
597
511
|
self.msg = "Moving: {} into {}".format(src, dst)
|
598
512
|
self.log(self.msg)
|
599
513
|
shutil.move(src, dst)
|
600
|
-
|
601
|
-
"request": request,
|
602
|
-
"result": "OK",
|
603
|
-
}
|
514
|
+
result = "OK"
|
604
515
|
self.log("Moved: {} into {}".format(src, dst))
|
605
516
|
except Exception as e:
|
606
|
-
|
607
|
-
|
608
|
-
"result": "Error: {}".format(e),
|
609
|
-
}
|
610
|
-
self.error(e)
|
611
|
-
self.log("Error: {}".format(e))
|
612
|
-
return response
|
517
|
+
result = self.throw_error(e)
|
518
|
+
return self.make_response(item, result)
|
613
519
|
|
614
520
|
def cmd_is_dir(self, item: dict) -> dict:
|
615
521
|
"""
|
@@ -618,28 +524,19 @@ class Worker(BaseWorker):
|
|
618
524
|
:param item: item with parameters
|
619
525
|
:return: response item
|
620
526
|
"""
|
621
|
-
request = self.prepare_request(item)
|
622
527
|
try:
|
623
528
|
path = self.prepare_path(item["params"]['path'])
|
624
529
|
self.msg = "Checking if directory exists: {}".format(path)
|
625
530
|
self.log(self.msg)
|
626
531
|
if os.path.isdir(path):
|
627
|
-
|
628
|
-
"request": request,
|
629
|
-
"result": "OK",
|
630
|
-
}
|
532
|
+
result = "OK"
|
631
533
|
self.log("Directory exists: {}".format(path))
|
632
534
|
else:
|
633
|
-
|
634
|
-
self.log("
|
535
|
+
result = "Directory not found"
|
536
|
+
self.log("{}: {}".format(result, path))
|
635
537
|
except Exception as e:
|
636
|
-
|
637
|
-
|
638
|
-
"result": "Error: {}".format(e),
|
639
|
-
}
|
640
|
-
self.error(e)
|
641
|
-
self.log("Error: {}".format(e))
|
642
|
-
return response
|
538
|
+
result = self.throw_error(e)
|
539
|
+
return self.make_response(item, result)
|
643
540
|
|
644
541
|
def cmd_is_file(self, item: dict) -> dict:
|
645
542
|
"""
|
@@ -648,31 +545,19 @@ class Worker(BaseWorker):
|
|
648
545
|
:param item: item with parameters
|
649
546
|
:return: response item
|
650
547
|
"""
|
651
|
-
request = self.prepare_request(item)
|
652
548
|
try:
|
653
549
|
path = self.prepare_path(item["params"]['path'])
|
654
550
|
self.msg = "Checking if file exists: {}".format(path)
|
655
551
|
self.log(self.msg)
|
656
552
|
if os.path.isfile(path):
|
657
|
-
|
658
|
-
"request": request,
|
659
|
-
"result": "OK",
|
660
|
-
}
|
553
|
+
result = "OK"
|
661
554
|
self.log("File exists: {}".format(path))
|
662
555
|
else:
|
663
|
-
|
664
|
-
|
665
|
-
"result": "File not found",
|
666
|
-
}
|
667
|
-
self.log("File not found: {}".format(path))
|
556
|
+
result = "File not found"
|
557
|
+
self.log("{}: {}".format(result, path))
|
668
558
|
except Exception as e:
|
669
|
-
|
670
|
-
|
671
|
-
"result": "Error: {}".format(e),
|
672
|
-
}
|
673
|
-
self.error(e)
|
674
|
-
self.log("Error: {}".format(e))
|
675
|
-
return response
|
559
|
+
result = self.throw_error(e)
|
560
|
+
return self.make_response(item, result)
|
676
561
|
|
677
562
|
def cmd_file_exists(self, item: dict) -> dict:
|
678
563
|
"""
|
@@ -681,31 +566,19 @@ class Worker(BaseWorker):
|
|
681
566
|
:param item: item with parameters
|
682
567
|
:return: response item
|
683
568
|
"""
|
684
|
-
request = self.prepare_request(item)
|
685
569
|
try:
|
686
570
|
path = self.prepare_path(item["params"]['path'])
|
687
571
|
self.msg = "Checking if path exists: {}".format(path)
|
688
572
|
self.log(self.msg)
|
689
573
|
if os.path.exists(path):
|
690
|
-
|
691
|
-
"request": request,
|
692
|
-
"result": "OK",
|
693
|
-
}
|
574
|
+
result = "OK"
|
694
575
|
self.log("Path exists: {}".format(path))
|
695
576
|
else:
|
696
|
-
|
697
|
-
"request": request,
|
698
|
-
"result": "File or directory not found",
|
699
|
-
}
|
577
|
+
result = "File or directory not found"
|
700
578
|
self.log("Path not found: {}".format(path))
|
701
579
|
except Exception as e:
|
702
|
-
|
703
|
-
|
704
|
-
"result": "Error: {}".format(e),
|
705
|
-
}
|
706
|
-
self.error(e)
|
707
|
-
self.log("Error: {}".format(e))
|
708
|
-
return response
|
580
|
+
result = self.throw_error(e)
|
581
|
+
return self.make_response(item, result)
|
709
582
|
|
710
583
|
def cmd_file_size(self, item: dict) -> dict:
|
711
584
|
"""
|
@@ -714,35 +587,23 @@ class Worker(BaseWorker):
|
|
714
587
|
:param item: item with parameters
|
715
588
|
:return: response item
|
716
589
|
"""
|
717
|
-
request = self.prepare_request(item)
|
718
590
|
try:
|
719
591
|
path = self.prepare_path(item["params"]['path'])
|
720
592
|
self.msg = "Checking file size: {}".format(path)
|
721
593
|
self.log(self.msg)
|
722
594
|
if os.path.exists(path):
|
723
595
|
size = os.path.getsize(path)
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
'size_bytes': size,
|
728
|
-
'size_human': self.plugin.human_readable_size(size),
|
729
|
-
},
|
596
|
+
result = {
|
597
|
+
'size_bytes': size,
|
598
|
+
'size_human': self.plugin.human_readable_size(size),
|
730
599
|
}
|
731
600
|
self.log("File size: {}".format(size))
|
732
601
|
else:
|
733
|
-
|
734
|
-
|
735
|
-
"result": "File not found",
|
736
|
-
}
|
737
|
-
self.log("File not found: {}".format(path))
|
602
|
+
result = "File not found"
|
603
|
+
self.log("{}: {}".format(result, path))
|
738
604
|
except Exception as e:
|
739
|
-
|
740
|
-
|
741
|
-
"result": "Error: {}".format(e),
|
742
|
-
}
|
743
|
-
self.error(e)
|
744
|
-
self.log("Error: {}".format(e))
|
745
|
-
return response
|
605
|
+
result = self.throw_error(e)
|
606
|
+
return self.make_response(item, result)
|
746
607
|
|
747
608
|
def cmd_file_info(self, item: dict) -> dict:
|
748
609
|
"""
|
@@ -751,14 +612,13 @@ class Worker(BaseWorker):
|
|
751
612
|
:param item: item with parameters
|
752
613
|
:return: response item
|
753
614
|
"""
|
754
|
-
request = self.prepare_request(item)
|
755
615
|
try:
|
756
616
|
path = self.prepare_path(item["params"]['path'])
|
757
617
|
self.msg = "Checking file info: {}".format(path)
|
758
618
|
self.log(self.msg)
|
759
619
|
if os.path.exists(path):
|
760
620
|
size = os.path.getsize(path)
|
761
|
-
|
621
|
+
result = {
|
762
622
|
"size": size,
|
763
623
|
"size_human": self.get_human_readable_size(size),
|
764
624
|
'mime_type': mimetypes.guess_type(path)[0] or 'application/octet-stream',
|
@@ -771,25 +631,15 @@ class Worker(BaseWorker):
|
|
771
631
|
"is_mount": os.path.ismount(path),
|
772
632
|
'stat': os.stat(path),
|
773
633
|
}
|
774
|
-
|
775
|
-
"request": request,
|
776
|
-
"result": data,
|
777
|
-
}
|
778
|
-
self.log("File info: {}".format(data))
|
634
|
+
self.log("File info: {}".format(result))
|
779
635
|
else:
|
780
|
-
|
781
|
-
|
782
|
-
"result": "File not found",
|
783
|
-
}
|
784
|
-
self.log("File not found: {}".format(path))
|
636
|
+
result = "File not found"
|
637
|
+
self.log("{}: {}".format(result, path))
|
785
638
|
except Exception as e:
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
self.error(e)
|
791
|
-
self.log("Error: {}".format(e))
|
792
|
-
return response
|
639
|
+
result = self.throw_error(e)
|
640
|
+
|
641
|
+
extra = self.prepare_extra(item, result)
|
642
|
+
return self.make_response(item, result, extra=extra)
|
793
643
|
|
794
644
|
def cmd_cwd(self, item: dict) -> dict:
|
795
645
|
"""
|
@@ -798,22 +648,15 @@ class Worker(BaseWorker):
|
|
798
648
|
:param item: item with parameters
|
799
649
|
:return: response item
|
800
650
|
"""
|
801
|
-
request = self.prepare_request(item)
|
802
651
|
try:
|
803
652
|
self.msg = "Getting CWD: {}".format(self.plugin.window.core.config.get_user_dir('data'))
|
804
653
|
self.log(self.msg)
|
805
|
-
|
806
|
-
"request": request,
|
807
|
-
"result": self.plugin.window.core.config.get_user_dir('data'),
|
808
|
-
}
|
654
|
+
result = self.plugin.window.core.config.get_user_dir('data')
|
809
655
|
except Exception as e:
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
self.error(e)
|
815
|
-
self.log("Error: {}".format(e))
|
816
|
-
return response
|
656
|
+
result = self.throw_error(e)
|
657
|
+
|
658
|
+
extra = self.prepare_extra(item, result)
|
659
|
+
return self.make_response(item, result, extra=extra)
|
817
660
|
|
818
661
|
def cmd_send_file(self, item: dict) -> dict:
|
819
662
|
"""
|
@@ -822,7 +665,6 @@ class Worker(BaseWorker):
|
|
822
665
|
:param item: item with parameters
|
823
666
|
:return: response item
|
824
667
|
"""
|
825
|
-
request = self.prepare_request(item)
|
826
668
|
try:
|
827
669
|
path = self.prepare_path(item["params"]['path'])
|
828
670
|
self.msg = "Adding attachment: {}".format(path)
|
@@ -834,25 +676,14 @@ class Worker(BaseWorker):
|
|
834
676
|
self.plugin.window.core.attachments.new(mode, title, path, False)
|
835
677
|
self.plugin.window.core.attachments.save()
|
836
678
|
self.plugin.window.controller.attachment.update()
|
837
|
-
|
838
|
-
"request": request,
|
839
|
-
"result": "Sending attachment: {}".format(title),
|
840
|
-
}
|
679
|
+
result = "Sending attachment: {}".format(title)
|
841
680
|
self.log("Added attachment: {}".format(path))
|
842
681
|
else:
|
843
|
-
|
844
|
-
|
845
|
-
"result": "File not found",
|
846
|
-
}
|
847
|
-
self.log("File not found: {}".format(path))
|
682
|
+
result = "File not found"
|
683
|
+
self.log("{}: {}".format(result, path))
|
848
684
|
except Exception as e:
|
849
|
-
|
850
|
-
|
851
|
-
"result": "Error: {}".format(e),
|
852
|
-
}
|
853
|
-
self.error(e)
|
854
|
-
self.log("Error: {}".format(e))
|
855
|
-
return response
|
685
|
+
result = self.throw_error(e)
|
686
|
+
return self.make_response(item, result)
|
856
687
|
|
857
688
|
def cmd_file_index(self, item: dict) -> dict:
|
858
689
|
"""
|
@@ -861,8 +692,11 @@ class Worker(BaseWorker):
|
|
861
692
|
:param item: item with parameters
|
862
693
|
:return: response item
|
863
694
|
"""
|
864
|
-
request = self.prepare_request(item)
|
865
695
|
try:
|
696
|
+
if "path" not in item["params"]:
|
697
|
+
self.log("Path not provided")
|
698
|
+
return self.make_response(item, "Path not provided")
|
699
|
+
|
866
700
|
path = self.prepare_path(item["params"]['path'])
|
867
701
|
self.msg = "Indexing path: {}".format(path)
|
868
702
|
self.log(self.msg)
|
@@ -873,30 +707,18 @@ class Worker(BaseWorker):
|
|
873
707
|
idx_name,
|
874
708
|
path,
|
875
709
|
)
|
876
|
-
|
710
|
+
result = {
|
877
711
|
'num_indexed': len(files),
|
878
712
|
'index_name': idx_name,
|
879
713
|
'errors': errors,
|
880
714
|
'path': path,
|
881
715
|
}
|
882
|
-
response = {
|
883
|
-
"request": request,
|
884
|
-
"result": data,
|
885
|
-
}
|
886
716
|
else:
|
887
|
-
|
888
|
-
"request": request,
|
889
|
-
"result": "File or directory not found",
|
890
|
-
}
|
717
|
+
result = "File or directory not found"
|
891
718
|
self.log("File not found: {}".format(path))
|
892
719
|
except Exception as e:
|
893
|
-
|
894
|
-
|
895
|
-
"result": "Error: {}".format(e),
|
896
|
-
}
|
897
|
-
self.error(e)
|
898
|
-
self.log("Error: {}".format(e))
|
899
|
-
return response
|
720
|
+
result = self.throw_error(e)
|
721
|
+
return self.make_response(item, result)
|
900
722
|
|
901
723
|
def cmd_find(self, item: dict) -> dict:
|
902
724
|
"""
|
@@ -905,7 +727,6 @@ class Worker(BaseWorker):
|
|
905
727
|
:param item: item with parameters
|
906
728
|
:return: response item
|
907
729
|
"""
|
908
|
-
request = self.prepare_request(item)
|
909
730
|
try:
|
910
731
|
recursive = True
|
911
732
|
path = self.plugin.window.core.config.get_user_dir('data')
|
@@ -918,25 +739,16 @@ class Worker(BaseWorker):
|
|
918
739
|
self.log(self.msg)
|
919
740
|
if os.path.exists(path):
|
920
741
|
files = self.find_files(path, pattern, recursive)
|
921
|
-
|
922
|
-
"request": request,
|
923
|
-
"result": files,
|
924
|
-
}
|
742
|
+
result = files
|
925
743
|
self.log("Result: {}".format(files))
|
926
744
|
else:
|
927
|
-
|
928
|
-
|
929
|
-
"result": "Directory not found",
|
930
|
-
}
|
931
|
-
self.log("Directory not found: {}".format(path))
|
745
|
+
result = "Directory not found"
|
746
|
+
self.log("{}: {}".format(result, path))
|
932
747
|
except Exception as e:
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
self.error(e)
|
938
|
-
self.log("Error: {}".format(e))
|
939
|
-
return response
|
748
|
+
result = self.throw_error(e)
|
749
|
+
|
750
|
+
extra = self.prepare_extra(item, result)
|
751
|
+
return self.make_response(item, result, extra=extra)
|
940
752
|
|
941
753
|
def find_files(self, directory: str, pattern: str, recursive: bool = True) -> list:
|
942
754
|
"""
|
@@ -988,6 +800,9 @@ class Worker(BaseWorker):
|
|
988
800
|
:param path: path to prepare
|
989
801
|
:return: prepared path
|
990
802
|
"""
|
803
|
+
if path in [".", "./"]:
|
804
|
+
return self.plugin.window.core.config.get_user_dir('data')
|
805
|
+
|
991
806
|
if self.is_absolute_path(path):
|
992
807
|
return path
|
993
808
|
else:
|
@@ -1046,3 +861,35 @@ class Worker(BaseWorker):
|
|
1046
861
|
})
|
1047
862
|
|
1048
863
|
return data, context
|
864
|
+
|
865
|
+
def prepare_extra(self, item: dict, context: str) -> dict:
|
866
|
+
"""
|
867
|
+
Prepare extra data for response
|
868
|
+
|
869
|
+
:param item: command item
|
870
|
+
:param context: context data
|
871
|
+
:return: extra data
|
872
|
+
"""
|
873
|
+
cmd = item["cmd"]
|
874
|
+
extra = {
|
875
|
+
'plugin': "cmd_files",
|
876
|
+
'cmd': cmd,
|
877
|
+
'code': {
|
878
|
+
'output': {
|
879
|
+
'lang': "bash",
|
880
|
+
'content': str(context),
|
881
|
+
}
|
882
|
+
}
|
883
|
+
}
|
884
|
+
extra["context"] = str(context)
|
885
|
+
return extra
|
886
|
+
|
887
|
+
def get_extra_data(self) -> dict:
|
888
|
+
"""
|
889
|
+
Return extra data for response
|
890
|
+
|
891
|
+
:return: extra data
|
892
|
+
"""
|
893
|
+
return {
|
894
|
+
"post_update": ["file_explorer"], # update file explorer after processing
|
895
|
+
}
|