auto-coder-web 0.1.71__tar.gz → 0.1.72__tar.gz
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.
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/PKG-INFO +2 -2
- auto_coder_web-0.1.72/src/auto_coder_web/version.py +1 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/main.js +1 -1
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web.egg-info/PKG-INFO +2 -2
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web.egg-info/requires.txt +1 -1
- auto_coder_web-0.1.71/src/auto_coder_web/version.py +0 -1
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/README.md +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/setup.cfg +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/setup.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/__init__.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/auto_coder_runner_wrapper.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/__init__.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/active_context_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/auto_coder_conf_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/chat_list_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/compiler_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/completions_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/file_group_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/file_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/filecacher.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/model_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/expert_routers/__init__.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/expert_routers/history_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/file_cacher/__init__.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/file_cacher/filecacher.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/file_group.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/file_manager.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/init_project.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/json_file_storage.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/lang.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/proxy.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/__init__.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/auto_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/chat_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/coding_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/commit_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/config_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/editable_preview_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/index_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/mcp_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/rag_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/settings_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/todo_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/upload_router.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/terminal.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/types.py +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/HistoryPanel-gl864o6H.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/abap-BrgZPUOV.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/apex-DyP6w7ZV.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/azcli-BaLxmfj-.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/bat-CFOPXBzS.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/bicep-BfEKNvv3.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cameligo-BFG1Mk7z.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/clojure-DTECt2xU.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/codicon-DCmgc-ay.ttf +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/coffee-CDGzqUPQ.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cpp-CLLBncYj.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/csharp-dUCx_-0o.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/csp-5Rap-vPy.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/css-D3h14YRZ.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cssMode-CQYz0o1d.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cypher-DrQuvNYM.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/dart-CFKIUWau.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/dockerfile-Zznr-cwX.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/ecl-Ce3n6wWz.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/elixir-deUWdS0T.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/flow9-i9-g7ZhI.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/freemarker2-BJU3cSen.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/fsharp-CzKuDChf.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/go-Cphgjts3.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/graphql-Cg7bfA9N.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/handlebars-VxUdciXQ.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/hcl-0cvrggvQ.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/html-DEgskwXL.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/htmlMode-58cXxJlI.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/ini-Drc7WvVn.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/java-B_fMsGYe.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/javascript-DbZlm-ig.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/jsonMode-C2HKgmE0.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/julia-Bqgm2twL.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/kotlin-BSkB5QuD.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/less-BsTHnhdd.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/lexon-YWi4-JPR.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/liquid-BFft-XkQ.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/lua-nf6ki56Z.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/m3-Cpb6xl2v.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/main-DBz8YYCp.css +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/markdown-DSZPf7rp.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/mdx-DZdDhrJW.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/mips-B_c3zf-v.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/msdax-rUNN04Wq.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/mysql-DDwshQtU.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/objective-c-B5zXfXm9.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pascal-CXOwvkN_.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pascaligo-Bc-ZgV77.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/perl-CwNk8-XU.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pgsql-tGk8EFnU.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/php-CpIb_Oan.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pla-B03wrqEc.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/postiats-BKlk5iyT.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/powerquery-Bhzvs7bI.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/powershell-Dd3NCNK9.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/protobuf-COyEY5Pt.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pug-BaJupSGV.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/python-DOHUGzLU.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/qsharp-DXyYeYxl.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/r-CdQndTaG.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/razor-Dh5mSHi2.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/redis-CVwtpugi.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/redshift-25W9uPmb.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/restructuredtext-DfzH4Xui.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/ruby-Cp1zYvxS.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/rust-D5C2fndG.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sb-CDntyWJ8.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/scala-BoFRg7Ot.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/scheme-Bio4gycK.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/scss-4Ik7cdeQ.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/shell-CX-rkNHf.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/solidity-Tw7wswEv.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sophia-C5WLch3f.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sparql-DHaeiCBh.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sql-CCSDG5nI.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/st-pnP8ivHi.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/swift-DwJ7jVG9.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/systemverilog-B9Xyijhd.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/tcl-DnHyzjbg.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/tsMode-tyI6CeIR.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/twig-CPajHgWi.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/typescript-DZzM_VgT.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/typespec-D-MeaMDU.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/vb-DgyLZaXg.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/wgsl-BIv9DU6q.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/xml-Dl6413Na.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/yaml-DML583wh.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/bridge.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/favicon.ico +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/index.html +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/logo192.png +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/logo512.png +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/manifest.json +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/base/worker/workerMain.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/abap/abap.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/apex/apex.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/azcli/azcli.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/bat/bat.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/bicep/bicep.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/cameligo/cameligo.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/clojure/clojure.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/coffee/coffee.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/cpp/cpp.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/csharp/csharp.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/csp/csp.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/css/css.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/cypher/cypher.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/dart/dart.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/dockerfile/dockerfile.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/ecl/ecl.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/elixir/elixir.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/flow9/flow9.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/freemarker2/freemarker2.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/fsharp/fsharp.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/go/go.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/graphql/graphql.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/handlebars/handlebars.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/hcl/hcl.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/html/html.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/ini/ini.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/java/java.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/javascript/javascript.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/julia/julia.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/kotlin/kotlin.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/less/less.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/lexon/lexon.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/liquid/liquid.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/lua/lua.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/m3/m3.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/markdown/markdown.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/mdx/mdx.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/mips/mips.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/msdax/msdax.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/mysql/mysql.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/objective-c/objective-c.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/pascal/pascal.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/pascaligo/pascaligo.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/perl/perl.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/pgsql/pgsql.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/php/php.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/pla/pla.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/postiats/postiats.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/powerquery/powerquery.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/powershell/powershell.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/protobuf/protobuf.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/pug/pug.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/python/python.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/qsharp/qsharp.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/r/r.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/razor/razor.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/redis/redis.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/redshift/redshift.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/restructuredtext/restructuredtext.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/ruby/ruby.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/rust/rust.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/sb/sb.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/scala/scala.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/scheme/scheme.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/scss/scss.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/shell/shell.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/solidity/solidity.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/sophia/sophia.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/sparql/sparql.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/sql/sql.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/st/st.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/swift/swift.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/systemverilog/systemverilog.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/tcl/tcl.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/twig/twig.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/typescript/typescript.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/typespec/typespec.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/vb/vb.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/wgsl/wgsl.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/xml/xml.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/basic-languages/yaml/yaml.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/editor/editor.main.css +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/editor/editor.main.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/css/cssMode.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/css/cssWorker.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/html/htmlMode.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/html/htmlWorker.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/json/jsonMode.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/json/jsonWorker.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/typescript/tsMode.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/language/typescript/tsWorker.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/loader.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.de.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.es.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.fr.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.it.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.ja.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.ko.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.ru.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.zh-cn.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/monaco-editor/min/vs/nls.messages.zh-tw.js +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/robots.txt +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web.egg-info/SOURCES.txt +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web.egg-info/dependency_links.txt +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web.egg-info/entry_points.txt +0 -0
- {auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web.egg-info/top_level.txt +0 -0
@@ -1,13 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: auto_coder_web
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.72
|
4
4
|
Summary: auto-coder.web: A Python Project
|
5
5
|
Author: allwefantasy
|
6
6
|
Classifier: Programming Language :: Python :: 3.10
|
7
7
|
Classifier: Programming Language :: Python :: 3.11
|
8
8
|
Classifier: Programming Language :: Python :: 3.12
|
9
9
|
Description-Content-Type: text/markdown
|
10
|
-
Requires-Dist: auto-coder>=0.1.
|
10
|
+
Requires-Dist: auto-coder>=0.1.348
|
11
11
|
Requires-Dist: aiofiles
|
12
12
|
Requires-Dist: psutil
|
13
13
|
Requires-Dist: watchdog
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.1.72"
|
@@ -1315,7 +1315,7 @@ ${e.toString()}`}}class q5{constructor(e=new ek,t=!1,i,r=mYt){this._services=e,t
|
|
1315
1315
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[xMe]=this[xMe]={accessors:{}}).accessors,r=this.prototype;function s(o){const a=UL(o);i[a]||(vmn(r,o),i[a]=!0)}return Lt.isArray(e)?e.forEach(s):s(e),this}};jd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Lt.reduceDescriptors(jd.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}});Lt.freezeMethods(jd);function bJ(n,e){const t=this||BM,i=e||t,r=jd.from(i.headers);let s=i.data;return Lt.forEach(n,function(a){s=a.call(t,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function KVe(n){return!!(n&&n.__CANCEL__)}function uk(n,e,t){or.call(this,n??"canceled",or.ERR_CANCELED,e,t),this.name="CanceledError"}Lt.inherits(uk,or,{__CANCEL__:!0});function GVe(n,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new or("Request failed with status code "+t.status,[or.ERR_BAD_REQUEST,or.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function bmn(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function _mn(n,e){n=n||10;const t=new Array(n),i=new Array(n);let r=0,s=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),d=i[s];o||(o=c),t[r]=l,i[r]=c;let u=s,h=0;for(;u!==r;)h+=t[u++],u=u%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),c-o<e)return;const f=d&&c-d;return f?Math.round(h*1e3/f):void 0}}function ymn(n,e){let t=0,i=1e3/e,r,s;const o=(c,d=Date.now())=>{t=d,r=null,s&&(clearTimeout(s),s=null),n.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-t;u>=i?o(c,d):(r=c,s||(s=setTimeout(()=>{s=null,o(r)},i-u)))},()=>r&&o(r)]}const S8=(n,e,t=3)=>{let i=0;const r=_mn(50,250);return ymn(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-i,c=r(l),d=o<=a;i=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(u)},t)},EMe=(n,e)=>{const t=n!=null;return[i=>e[0]({lengthComputable:t,total:n,loaded:i}),e[1]]},IMe=n=>(...e)=>Lt.asap(()=>n(...e)),Cmn=lc.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,lc.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(lc.origin),lc.navigator&&/(msie|trident)/i.test(lc.navigator.userAgent)):()=>!0,wmn=lc.hasStandardBrowserEnv?{write(n,e,t,i,r,s){const o=[n+"="+encodeURIComponent(e)];Lt.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),Lt.isString(i)&&o.push("path="+i),Lt.isString(r)&&o.push("domain="+r),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Smn(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function xmn(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function QVe(n,e,t){let i=!Smn(e);return n&&(i||t==!1)?xmn(n,e):e}const kMe=n=>n instanceof jd?{...n}:n;function b1(n,e){e=e||{};const t={};function i(c,d,u,h){return Lt.isPlainObject(c)&&Lt.isPlainObject(d)?Lt.merge.call({caseless:h},c,d):Lt.isPlainObject(d)?Lt.merge({},d):Lt.isArray(d)?d.slice():d}function r(c,d,u,h){if(Lt.isUndefined(d)){if(!Lt.isUndefined(c))return i(void 0,c,u,h)}else return i(c,d,u,h)}function s(c,d){if(!Lt.isUndefined(d))return i(void 0,d)}function o(c,d){if(Lt.isUndefined(d)){if(!Lt.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function a(c,d,u){if(u in e)return i(c,d);if(u in n)return i(void 0,c)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,d,u)=>r(kMe(c),kMe(d),u,!0)};return Lt.forEach(Object.keys(Object.assign({},n,e)),function(d){const u=l[d]||r,h=u(n[d],e[d],d);Lt.isUndefined(h)&&u!==a||(t[d]=h)}),t}const qVe=n=>{const e=b1({},n);let{data:t,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=jd.from(o),e.url=jVe(QVe(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Lt.isFormData(t)){if(lc.hasStandardBrowserEnv||lc.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(lc.hasStandardBrowserEnv&&(i&&Lt.isFunction(i)&&(i=i(e)),i||i!==!1&&Cmn(e.url))){const c=r&&s&&wmn.read(s);c&&o.set(r,c)}return e},Emn=typeof XMLHttpRequest<"u",Imn=Emn&&function(n){return new Promise(function(t,i){const r=qVe(n);let s=r.data;const o=jd.from(r.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=r,d,u,h,f,g;function m(){f&&f(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function A(){if(!p)return;const _=jd.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:_,config:n,request:p};GVe(function(E){t(E),m()},function(E){i(E),m()},C),p=null}"onloadend"in p?p.onloadend=A:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(A)},p.onabort=function(){p&&(i(new or("Request aborted",or.ECONNABORTED,n,p)),p=null)},p.onerror=function(){i(new or("Network Error",or.ERR_NETWORK,n,p)),p=null},p.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||zVe;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),i(new or(y,C.clarifyTimeoutError?or.ETIMEDOUT:or.ECONNABORTED,n,p)),p=null},s===void 0&&o.setContentType(null),"setRequestHeader"in p&&Lt.forEach(o.toJSON(),function(y,C){p.setRequestHeader(C,y)}),Lt.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),a&&a!=="json"&&(p.responseType=r.responseType),c&&([h,g]=S8(c,!0),p.addEventListener("progress",h)),l&&p.upload&&([u,f]=S8(l),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",f)),(r.cancelToken||r.signal)&&(d=_=>{p&&(i(!_||_.type?new uk(null,n,p):_),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const v=bmn(r.url);if(v&&lc.protocols.indexOf(v)===-1){i(new or("Unsupported protocol "+v+":",or.ERR_BAD_REQUEST,n));return}p.send(s||null)})},kmn=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let i=new AbortController,r;const s=function(c){if(!r){r=!0,a();const d=c instanceof Error?c:this.reason;i.abort(d instanceof or?d:new uk(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,s(new or(`timeout ${e} of ms exceeded`,or.ETIMEDOUT))},e);const a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),n=null)};n.forEach(c=>c.addEventListener("abort",s));const{signal:l}=i;return l.unsubscribe=()=>Lt.asap(a),l}},Lmn=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let i=0,r;for(;i<t;)r=i+e,yield n.slice(i,r),i=r},Nmn=async function*(n,e){for await(const t of Tmn(n))yield*Lmn(t,e)},Tmn=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},LMe=(n,e,t,i)=>{const r=Nmn(n,e);let s=0,o,a=l=>{o||(o=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await r.next();if(c){a(),l.close();return}let u=d.byteLength;if(t){let h=s+=u;t(h)}l.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(l){return a(l),r.return()}},{highWaterMark:2})},NU=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",YVe=NU&&typeof ReadableStream=="function",Dmn=NU&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),XVe=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Rmn=YVe&&XVe(()=>{let n=!1;const e=new Request(lc.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),NMe=64*1024,Sce=YVe&&XVe(()=>Lt.isReadableStream(new Response("").body)),x8={stream:Sce&&(n=>n.body)};NU&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!x8[e]&&(x8[e]=Lt.isFunction(n[e])?t=>t[e]():(t,i)=>{throw new or(`Response type '${e}' is not supported`,or.ERR_NOT_SUPPORT,i)})})})(new Response);const Mmn=async n=>{if(n==null)return 0;if(Lt.isBlob(n))return n.size;if(Lt.isSpecCompliantForm(n))return(await new Request(lc.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(Lt.isArrayBufferView(n)||Lt.isArrayBuffer(n))return n.byteLength;if(Lt.isURLSearchParams(n)&&(n=n+""),Lt.isString(n))return(await Dmn(n)).byteLength},Omn=async(n,e)=>{const t=Lt.toFiniteNumber(n.getContentLength());return t??Mmn(e)},Bmn=NU&&(async n=>{let{url:e,method:t,data:i,signal:r,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:h}=qVe(n);c=c?(c+"").toLowerCase():"text";let f=kmn([r,s&&s.toAbortSignal()],o),g;const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let p;try{if(l&&Rmn&&t!=="get"&&t!=="head"&&(p=await Omn(d,i))!==0){let C=new Request(e,{method:"POST",body:i,duplex:"half"}),S;if(Lt.isFormData(i)&&(S=C.headers.get("content-type"))&&d.setContentType(S),C.body){const[E,L]=EMe(p,S8(IMe(l)));i=LMe(C.body,NMe,E,L)}}Lt.isString(u)||(u=u?"include":"omit");const A="credentials"in Request.prototype;g=new Request(e,{...h,signal:f,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:A?u:void 0});let v=await fetch(g);const _=Sce&&(c==="stream"||c==="response");if(Sce&&(a||_&&m)){const C={};["status","statusText","headers"].forEach(k=>{C[k]=v[k]});const S=Lt.toFiniteNumber(v.headers.get("content-length")),[E,L]=a&&EMe(S,S8(IMe(a),!0))||[];v=new Response(LMe(v.body,NMe,E,()=>{L&&L(),m&&m()}),C)}c=c||"text";let y=await x8[Lt.findKey(x8,c)||"text"](v,n);return!_&&m&&m(),await new Promise((C,S)=>{GVe(C,S,{data:y,headers:jd.from(v.headers),status:v.status,statusText:v.statusText,config:n,request:g})})}catch(A){throw m&&m(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new or("Network Error",or.ERR_NETWORK,n,g),{cause:A.cause||A}):or.from(A,A&&A.code,n,g)}}),xce={http:Xpn,xhr:Imn,fetch:Bmn};Lt.forEach(xce,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const TMe=n=>`- ${n}`,Pmn=n=>Lt.isFunction(n)||n===null||n===!1,ZVe={getAdapter:n=>{n=Lt.isArray(n)?n:[n];const{length:e}=n;let t,i;const r={};for(let s=0;s<e;s++){t=n[s];let o;if(i=t,!Pmn(t)&&(i=xce[(o=String(t)).toLowerCase()],i===void 0))throw new or(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+s]=i}if(!i){const s=Object.entries(r).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
|
1316
1316
|
`+s.map(TMe).join(`
|
1317
1317
|
`):" "+TMe(s[0]):"as no adapter specified";throw new or("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:xce};function _J(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new uk(null,n)}function DMe(n){return _J(n),n.headers=jd.from(n.headers),n.data=bJ.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),ZVe.getAdapter(n.adapter||BM.adapter)(n).then(function(i){return _J(n),i.data=bJ.call(n,n.transformResponse,i),i.headers=jd.from(i.headers),i},function(i){return KVe(i)||(_J(n),i&&i.response&&(i.response.data=bJ.call(n,n.transformResponse,i.response),i.response.headers=jd.from(i.response.headers))),Promise.reject(i)})}const JVe="1.8.4",TU={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{TU[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});const RMe={};TU.transitional=function(e,t,i){function r(s,o){return"[Axios v"+JVe+"] Transitional option '"+s+"'"+o+(i?". "+i:"")}return(s,o,a)=>{if(e===!1)throw new or(r(o," has been removed"+(t?" in "+t:"")),or.ERR_DEPRECATED);return t&&!RMe[o]&&(RMe[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,a):!0}};TU.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function Fmn(n,e,t){if(typeof n!="object")throw new or("options must be an object",or.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let r=i.length;for(;r-- >0;){const s=i[r],o=e[s];if(o){const a=n[s],l=a===void 0||o(a,s,n);if(l!==!0)throw new or("option "+s+" must be "+l,or.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new or("Unknown option "+s,or.ERR_BAD_OPTION)}}const RF={assertOptions:Fmn,validators:TU},Dg=RF.validators;let By=class{constructor(e){this.defaults=e,this.interceptors={request:new SMe,response:new SMe}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
1318
|
-
`+s):i.stack=s}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=b1(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:s}=t;i!==void 0&&RF.assertOptions(i,{silentJSONParsing:Dg.transitional(Dg.boolean),forcedJSONParsing:Dg.transitional(Dg.boolean),clarifyTimeoutError:Dg.transitional(Dg.boolean)},!1),r!=null&&(Lt.isFunction(r)?t.paramsSerializer={serialize:r}:RF.assertOptions(r,{encode:Dg.function,serialize:Dg.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),RF.assertOptions(t,{baseUrl:Dg.spelling("baseURL"),withXsrfToken:Dg.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&Lt.merge(s.common,s[t.method]);s&&Lt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),t.headers=jd.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,h;if(!l){const g=[DMe.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),h=g.length,d=Promise.resolve(t);u<h;)d=d.then(g[u++],g[u++]);return d}h=a.length;let f=t;for(u=0;u<h;){const g=a[u++],m=a[u++];try{f=g(f)}catch(p){m.call(this,p);break}}try{d=DMe.call(this,f)}catch(g){return Promise.reject(g)}for(u=0,h=c.length;u<h;)d=d.then(c[u++],c[u++]);return d}getUri(e){e=b1(this.defaults,e);const t=QVe(e.baseURL,e.url,e.allowAbsoluteUrls);return jVe(t,e.params,e.paramsSerializer)}};Lt.forEach(["delete","get","head","options"],function(e){By.prototype[e]=function(t,i){return this.request(b1(i||{},{method:e,url:t,data:(i||{}).data}))}});Lt.forEach(["post","put","patch"],function(e){function t(i){return function(s,o,a){return this.request(b1(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}By.prototype[e]=t(),By.prototype[e+"Form"]=t(!0)});let $mn=class eKe{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const o=new Promise(a=>{i.subscribe(a),s=a}).then(r);return o.cancel=function(){i.unsubscribe(s)},o},e(function(s,o,a){i.reason||(i.reason=new uk(s,o,a),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new eKe(function(r){e=r}),cancel:e}}};function Hmn(n){return function(t){return n.apply(null,t)}}function Umn(n){return Lt.isObject(n)&&n.isAxiosError===!0}const Ece={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ece).forEach(([n,e])=>{Ece[e]=n});function tKe(n){const e=new By(n),t=DVe(By.prototype.request,e);return Lt.extend(t,By.prototype,e,{allOwnKeys:!0}),Lt.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return tKe(b1(n,r))},t}const xs=tKe(BM);xs.Axios=By;xs.CanceledError=uk;xs.CancelToken=$mn;xs.isCancel=KVe;xs.VERSION=JVe;xs.toFormData=LU;xs.AxiosError=or;xs.Cancel=xs.CanceledError;xs.all=function(e){return Promise.all(e)};xs.spread=Hmn;xs.isAxiosError=Umn;xs.mergeConfig=b1;xs.AxiosHeaders=jd;xs.formToJSON=n=>VVe(Lt.isHTMLForm(n)?new FormData(n):n);xs.getAdapter=ZVe.getAdapter;xs.HttpStatusCode=Ece;xs.default=xs;const{Axios:cLn,AxiosError:dLn,CanceledError:uLn,isCancel:hLn,CancelToken:fLn,VERSION:gLn,all:pLn,Cancel:mLn,isAxiosError:ALn,spread:vLn,toFormData:bLn,AxiosHeaders:_Ln,HttpStatusCode:yLn,formToJSON:CLn,getAdapter:wLn,mergeConfig:SLn}=xs,Wmn=()=>{const[n,e]=b.useState([]),[t,i]=b.useState(),[r,s]=b.useState(!1),[o,a]=b.useState(!1),[l,c]=b.useState(!1),d=async()=>{try{s(!0);const f=(await xs.get("/api/rags")).data.data||[];e(f),f.length>0&&i(f[0].name)}catch(h){console.error("Failed to fetch RAGs",h)}finally{s(!1)}};b.useEffect(()=>{d();const h=nr.subscribe(lr.RAG.UPDATED,d);return()=>h()},[]),b.useEffect(()=>{if(t){const h=n.find(f=>f.name===t);h&&xs.post("/api/conf",{rag_type:"simple",rag_url:h.base_url,rag_token:h.api_key})}},[t,n]);const u=()=>{d()};return x.jsxs("div",{className:"mb-2",children:[" ",x.jsxs("div",{className:"flex items-center justify-between mb-1",children:[x.jsx(hr,{title:"Select a Retrieval-Augmented Generation provider",children:x.jsxs("div",{className:"flex items-center cursor-pointer hover:text-blue-400",onClick:()=>{const h=!o;a(h),c(h),nr.publish(lr.RAG.ENABLED_CHANGED,h)},children:[x.jsx(xAt,{className:`mr-1 ${o?"text-blue-400":"text-gray-400"}`,style:{fontSize:"12px"}}),x.jsx("span",{className:`text-xxs ${o?"text-blue-400":"text-gray-400"}`,children:"RAG Provider"})]})}),o&&x.jsx(hr,{title:"Refresh RAG providers",children:x.jsx(on,{type:"text",size:"small",icon:x.jsx(Jb,{}),onClick:u,className:"text-gray-400 hover:text-blue-400 p-0 flex items-center justify-center h-5 w-5",disabled:r})})]}),o&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"relative",children:[x.jsx($i,{className:"w-full custom-rag-select",size:"small",loading:r,placeholder:"Select RAG",value:t,onChange:h=>i(h),options:n.map(h=>({label:h.name,value:h.name})),dropdownRender:h=>x.jsxs("div",{children:[h,n.length===0&&!r&&x.jsx(wo,{image:wo.PRESENTED_IMAGE_SIMPLE,description:"No RAG providers found",className:"my-2",imageStyle:{height:32}})]})}),x.jsx(on,{type:"text",icon:x.jsx(jAt,{}),className:"absolute right-0 top-0 text-gray-400 hover:text-blue-400 h-full px-2 flex items-center",onClick:()=>a(!0)})]})})]})},jmn=()=>{const[n,e]=b.useState(!1),t=()=>{const i=!n;e(i),nr.publish(lr.MCPS.ENABLED_CHANGED,i)};return x.jsx("div",{className:"w-full mb-2",children:x.jsx("div",{className:"flex items-center justify-between mb-1",children:x.jsx(hr,{title:n?"Disable Multi-Agent Collaboration Pattern":"Enable Multi-Agent Collaboration Pattern",children:x.jsxs("div",{className:"flex items-center cursor-pointer hover:text-green-400",onClick:t,children:[x.jsx(tue,{className:`mr-1 ${n?"text-green-400 animate-spin-slow":"text-gray-400"}`,style:{fontSize:"12px"}}),x.jsx("span",{className:`text-xxs ${n?"text-green-400":"text-gray-400"}`,children:"MCPs Provider"})]})})})})},zmn=()=>{const[n,e]=b.useState([]),[t,i]=b.useState([]),[r,s]=b.useState(!1),[o,a]=b.useState(!1),[l,c]=b.useState(!1),d=async()=>{s(!0);try{const m=await fetch("/api/models");if(!m.ok)throw new Error("Failed to fetch models");const p=await m.json();e(p)}catch(m){console.error("Error fetching models:",m),St.error(ne("processingError")||"Error fetching models")}finally{s(!1)}},u=async()=>{a(!0);try{const m=await fetch("/api/conf");if(!m.ok){console.warn("Failed to fetch initial configuration, proceeding with defaults."),i([]);return}const A=(await m.json()).conf;if(A&&A.code_model){const v=typeof A.code_model=="string"?A.code_model.split(",").map(_=>_.trim()).filter(_=>_):Array.isArray(A.code_model)?A.code_model:[];i(v)}else i([])}catch(m){console.error("Error fetching current configuration:",m),i([])}finally{a(!1)}},h=async(m,p)=>{c(!0);const A=p.length===0;try{let v;if(A?v=await fetch(`/api/conf/${m}`,{method:"DELETE"}):v=await fetch("/api/conf",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({[m]:p.join(",")})}),!v.ok){let _=`Failed to ${A?"delete":"update"} configuration key`;try{const y=await v.json();y&&y.detail&&(_=y.detail)}catch{}throw new Error(_)}nr.publish(lr.CONFIG.CODE_MODEL_UPDATED,p)}catch(v){console.error(`Error ${A?"deleting":"updating"} configuration key ${m}:`,v),St.error(v.message||`Failed to update ${m}`),u()}finally{c(!1)}};b.useEffect(()=>{d(),u()},[]),b.useEffect(()=>{const m=A=>{const v=Array.isArray(A)?A:[];i(_=>JSON.stringify(_)!==JSON.stringify(v)?(console.log("CodeModelSelector received update:",v),v):_)},p=nr.subscribe(lr.CONFIG.CODE_MODEL_UPDATED,m);return()=>{p()}},[]);const f=m=>{const p=Array.isArray(m)?m:[];i(p),h("code_model",p)},g=r||o;return x.jsxs("div",{className:"w-full mb-2",children:[x.jsx(hr,{title:ne("codeModelDescription")||"Select models for code generation",children:x.jsxs("div",{className:"flex items-center mb-1 cursor-default",children:[x.jsx(ste,{className:"mr-1 text-gray-400",style:{fontSize:"12px"}}),x.jsx("span",{className:"text-xxs text-gray-400",children:ne("codeModel")||"Code Models"})]})}),x.jsx($i,{mode:"multiple",allowClear:!0,loading:g||l,className:"custom-select w-full",popupClassName:"custom-select-dropdown",value:t,onChange:f,options:n.map(m=>({value:m.name,label:m.name})),showSearch:!0,filterOption:(m,p)=>(p==null?void 0:p.label.toLowerCase().includes(m.toLowerCase()))||!1,tagRender:m=>{const{label:p,closable:A,onClose:v}=m;return x.jsx(sA,{color:"blue",closable:A,onClose:v,style:{marginRight:3},className:"text-xs",children:p})},placeholder:ne("selectCodeModelsPlaceholder")||"Select code models...",style:{width:"100%"}})]})},Vmn=({isWriteMode:n})=>x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"flex space-x-2 w-full",children:[x.jsx("div",{className:"flex-1",children:x.jsx(zmn,{})}),!n&&x.jsx("div",{className:"flex-1",children:x.jsx(Wmn,{})}),x.jsx("div",{className:"flex-1",children:x.jsx(jmn,{})})]})});class Kmn extends WR.EventEmitter{constructor(){super(),this.eventSource=null,this.streamEvents=new Map,this.lastEventType=null,this.messageId=0,this.currentStreamMessageId=null,this.isStreamingActive=!1,this.eventFileId=null}async executeCommand(e){try{const t=await fetch("/api/coding-command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const i=await t.json();return this.eventFileId=i.event_file_id,this.startEventStream(),{event_file_id:i.event_file_id}}catch(t){throw console.error("Error executing coding command:",t),t}}startEventStream(){if(this.closeEventStream(),!this.eventFileId){console.error("No event file ID available");return}this.eventSource=new EventSource(`/api/coding-command/events?event_file_id=${this.eventFileId}`),this.eventSource.onmessage=e=>{try{const t=JSON.parse(e.data);this.handleEvent(t)}catch(t){console.error("Error parsing event data:",t)}},this.eventSource.onerror=e=>{console.error("EventSource error:",e),this.closeEventStream()}}handleEvent(e){let t;const i=Date.now(),r=C3();switch(e.event_type==="STREAM"?this.lastEventType!=="STREAM"?(t=`coding-${r}-${i}-${this.messageId++}`,this.currentStreamMessageId=t):t=this.currentStreamMessageId||`coding-${r}-${i}-${this.messageId++}`:(t=`coding-${r}-${i}-${this.messageId++}`,this.lastEventType==="STREAM"&&this.currentStreamMessageId&&this.finalizeStreamMessage(this.currentStreamMessageId),this.currentStreamMessageId=null),e.event_type){case"STREAM":this.handleStreamEvent(e,t);break;case"RESULT":this.handleResultEvent(e,t);break;case"ASK_USER":this.handleAskUserEvent(e,t);break;case"USER_RESPONSE":this.handleUserResponseEvent(e,t);break;case"ERROR":this.handleErrorEvent(e,t);break;case"COMPLETION":this.handleCompletionEvent(e,t);break;default:console.warn("Unknown event type:",e.event_type)}this.lastEventType=e.event_type}handleStreamEvent(e,t){const i=e.content;this.isStreamingActive=!0;let r=this.streamEvents.get(t);if(r)r.content+=i.content,r.isThinking=i.is_thinking,r.isStreaming=!0,i.state==="complete"?(r.isStreaming=!1,this.streamEvents.delete(t),this.emit("message",r),this.isStreamingActive=!1):(this.streamEvents.set(t,r),this.emit("message",r));else{const s={id:t,type:e.event_type,content:i.content,contentType:i.content_type,isThinking:i.is_thinking,isStreaming:!0,eventId:e.event_id,language:i.language,metadata:e.metadata};i.state!=="complete"?this.streamEvents.set(t,s):(s.isStreaming=!1,this.isStreamingActive=!1),this.emit("message",s)}}handleResultEvent(e,t){const i=e.content;console.log("原始消息",e);let r,s=i.content_type,o={...i.metadata,...e.metadata};typeof i.content=="string"?r=i.content:this.isTokenStatContent(i.content)?(s="token_stat",r=JSON.stringify(i.content),o={...o,model_name:i.content.model_name,elapsed_time:i.content.elapsed_time,first_token_time:i.content.first_token_time,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost,speed:i.content.speed}):this.isSummaryContent(i.content)?(s="summary",r=i.content.summary):this.isIndexBuildStartContent(i.content)?(s="index_build_start",r=`Processing files: ${i.content.file_number}/${i.content.total_files}`,o={...o,file_number:i.content.file_number,total_files:i.content.total_files}):this.isIndexBuildEndContent(i.content)?(s="index_build_end",r=`Index build completed: Updated ${i.content.updated_files} files, Removed ${i.content.removed_files} files`,o={...o,updated_files:i.content.updated_files,removed_files:i.content.removed_files,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost}):this.isCommandPrepareStatContent(i.content)?(s="command_prepare_stat",r=`Command: ${i.content.command}`,o={...o,command:i.content.command,parameters:i.content.parameters}):this.isCommandExecuteStatContent(i.content)?(s="command_execute_stat",r=i.content.content,o={...o,command:i.content.command}):this.isContextUsedContent(i.content)?(s="context_used",r=i.content.description,o={...o,files:i.content.files}):r=JSON.stringify(i.content);const a={id:t,type:e.event_type,content:r,contentType:s,metadata:o,eventId:e.event_id};console.log("处理过后的",a),this.emit("message",a)}isTokenStatContent(e){return e&&typeof e.model_name=="string"&&typeof e.elapsed_time=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isCommandPrepareStatContent(e){return e&&typeof e.command=="string"&&typeof e.parameters=="object"}isSummaryContent(e){return e&&typeof e.summary=="string"}isCommandExecuteStatContent(e){return e&&typeof e.command=="string"&&typeof e.content=="string"}isIndexBuildStartContent(e){return e&&typeof e.file_number=="number"&&typeof e.total_files=="number"}isIndexBuildEndContent(e){return e&&typeof e.updated_files=="number"&&typeof e.removed_files=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isContextUsedContent(e){return e&&Array.isArray(e.files)&&typeof e.title=="string"&&typeof e.description=="string"}handleAskUserEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.prompt,options:i.options,responseRequired:i.required,eventId:e.event_id};this.emit("message",r)}handleUserResponseEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.response,isUser:!0,eventId:e.event_id,responseTo:e.response_to};this.emit("message",r)}handleErrorEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.error_message,metadata:i.details,eventId:e.event_id};this.emit("message",r),setTimeout(()=>{this.emit("taskComplete",!0),nr.publish(lr.CODING.TASK_COMPLETE,{success:!1,event_file_id:this.eventFileId})},300)}handleCompletionEvent(e,t){const i=e.content,r=i.result&&typeof i.result=="object"&&"summary"in i.result?i.result.summary:null,s={id:t,type:e.event_type,content:r||i.success_message,eventId:e.event_id,metadata:{success_code:i.success_code,completion_time:i.completion_time,details:i.details,result:i.result,isWrite:!0}};this.emit("message",s),setTimeout(()=>{this.emit("taskComplete",!1),nr.publish(lr.CODING.TASK_COMPLETE,{success:!0,event_file_id:this.eventFileId})},300)}finalizeStreamMessage(e){const t=this.streamEvents.get(e);t&&(t.isStreaming=!1,this.emit("message",t),this.streamEvents.delete(e))}closeEventStream(){this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.streamEvents.forEach((e,t)=>{this.finalizeStreamMessage(t)}),this.streamEvents.clear(),this.lastEventType=null,this.currentStreamMessageId=null,this.isStreamingActive=!1}async respondToEvent(e,t){if(!this.eventFileId)throw new Error("No event file ID available");try{const i=await fetch("/api/coding-command/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_id:e,event_file_id:this.eventFileId,response:t})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`)}catch(i){throw console.error("Error sending response:",i),i}}async saveTaskHistory(e,t,i="completed"){if(!this.eventFileId){console.warn("No event file ID available, cannot save task history");return}try{const r=t.filter(o=>!(o.type==="SYSTEM"||!o.content||o.contentType==="token_stat")),s=await fetch("/api/coding-command/save-history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,event_file_id:this.eventFileId,messages:r,status:i,timestamp:Date.now()})});if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`)}catch(r){console.error("Error saving task history:",r)}}async cancelTask(){if(!this.eventFileId){console.warn("No event file ID available, cannot cancel task");return}try{const e=await fetch("/api/coding-command/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_file_id:this.eventFileId})});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);this.closeEventStream()}catch(e){throw console.error("Error cancelling task:",e),e}}}const R2=new Kmn,Gmn=({fileGroups:n,selectedGroups:e,setSelectedGroups:t,fetchFileGroups:i,isMaximized:r,setIsMaximized:s,handleEditorDidMount:o,setShouldSendMessage:a,isWriteMode:l,setIsWriteMode:c,handleRevert:d,handleSendMessage:u,handleStopGeneration:h,sendLoading:f,setConfig:g,isFullScreen:m,showFileGroupSelect:p})=>{const[A,v]=b.useState(!0),[_,y]=b.useState({human_as_model:!1,extra_conf:{},available_keys:[]}),[C,S]=b.useState(!1),[E,L]=b.useState(!1),[k,T]=b.useState(""),[D,O]=b.useState(!1),[R,B]=b.useState(!1),F=b.useRef(null),H=b.useRef(null),W=b.useCallback(()=>{if(H.current){const Q=H.current;if(R){if(F.current){const Z=F.current;Q.style.position=Z.position,Q.style.top=Z.top,Q.style.right=Z.right,Q.style.bottom=Z.bottom,Q.style.left=Z.left,Q.style.zIndex=Z.zIndex,Q.style.width="100%",Q.style.height=Z.height,Q.style.background=Z.background,Q.style.overflow="",Q.style.display="",Q.style.flexDirection=""}B(!1)}else{const Z=window.getComputedStyle(Q);F.current={position:Z.position,top:Z.top,right:Z.right,bottom:Z.bottom,left:Z.left,zIndex:Z.zIndex,width:Z.width,height:Z.height,background:Z.background},Q.style.position="fixed",Q.style.top="0",Q.style.right="0",Q.style.bottom="0",Q.style.left="0",Q.style.zIndex="9999",Q.style.width="100vw",Q.style.height="100vh",Q.style.background="#1f2937",Q.style.overflow="hidden",Q.style.display="flex",Q.style.flexDirection="column",B(!0)}}},[R]);b.useEffect(()=>{const Q=nr.subscribe(lr.UI.TOGGLE_INPUT_FULLSCREEN,W);return()=>{Q()}},[W]);const j=b.useCallback(()=>{c(!l)},[c,l]);b.useEffect(()=>{const Q=Z=>{(Z.metaKey||Z.ctrlKey)&&Z.key==="."&&j()};return window.addEventListener("keydown",Q),()=>{window.removeEventListener("keydown",Q)}},[j]);const $=b.useCallback(async()=>{try{const Q=await xs.get("/api/conf");if(Q.data&&Q.data.conf){const Z=Q.data.conf,re={human_as_model:Z.human_as_model==="true",extra_conf:Z.extra_conf||{},available_keys:Z.available_keys||[]};y(re),g(re)}}catch(Q){console.error("Error fetching config:",Q),St.error("Failed to fetch configuration")}},[g]);b.useCallback(async(Q,Z)=>{try{y(re=>{const J={...re,[Q]:Z};return g(J),J}),await xs.post("/api/conf",{[Q]:Z})}catch(re){console.error(`Error updating config ${Q}:`,re),St.error(`Failed to update ${Q}`)}},[g]),b.useEffect(()=>{K(),$();const Q=()=>{S(!1)},Z=l?R2:_S;return Z.on("taskComplete",Q),()=>{Z.off("taskComplete",Q)}},[l,$]);const P=async()=>{if(!C){S(!0);try{await h()}catch(Q){console.error("Error cancelling task:",Q),S(!1),St.error("取消任务失败")}finally{}}},U=async()=>{if(!E)try{L(!0),T("starting");const Q=await fetch("/api/index/build",{method:"POST"});if(!Q.ok)throw new Error(`Failed to build index: ${Q.statusText}`);const Z=await Q.json();T("building"),St.success("Index build started"),V()}catch(Q){console.error("Error building index:",Q),St.error("Failed to build index"),L(!1),T("error")}},K=async()=>{try{const Q=await fetch("/api/index/status");if(!Q.ok)throw new Error(`Failed to get index status: ${Q.statusText}`);const Z=await Q.json();Z.status==="completed"?(L(!1),T("completed")):Z.status==="error"?(L(!1),T("error")):Z.status==="running"?(L(!0),T("building")):Z.status==="unknown"&&(L(!1),T(""))}catch(Q){console.error("Error checking index status:",Q),L(!1)}},V=()=>{const Q=setInterval(async()=>{try{const Z=await fetch("/api/index/status");if(!Z.ok)throw new Error(`Failed to get index status: ${Z.statusText}`);const re=await Z.json();re.status==="completed"?(L(!1),T("completed"),St.success("Index build completed"),clearInterval(Q)):re.status==="error"?(L(!1),T("error"),St.error(`Index build failed: ${re.error}`),clearInterval(Q)):re.status==="running"&&(L(!0),T("building"))}catch(Z){console.error("Error polling index status:",Z),L(!1),T("error"),clearInterval(Q)}},2e3);return()=>clearInterval(Q)};return x.jsxs("div",{className:`flex flex-col w-full bg-gray-800 border-t border-gray-700 ${R?"fixed inset-0 z-[9999] p-4":""}`,ref:H,style:{width:"100%"},children:[x.jsxs("div",{className:`px-0.5 pt-0 ${R?"mb-2 flex-shrink-0":"w-full"}`,children:[x.jsx("div",{className:"space-y-0 w-full",children:x.jsxs("div",{className:"flex items-center justify-between w-full",children:[x.jsx("span",{className:"text-gray-300 text-xs font-semibold",children:ne("settingsAndGroups")}),x.jsxs("div",{className:"flex items-center",children:[x.jsx(hr,{title:"Open Documentation",children:x.jsx("button",{onClick:()=>window.open("https://uelng8wukz.feishu.cn/wiki/EFCEwiYZFit44ZkJgohcYjlMnVP?fromScene=spaceOverview","_blank"),className:"mr-1 p-0.5 rounded-md transition-all duration-200 text-blue-500 hover:text-blue-400 hover:bg-gray-700",children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("circle",{cx:"12",cy:"12",r:"10"}),x.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),x.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})})}),x.jsx(hr,{title:R?"退出全屏":"全屏模式",children:x.jsx("button",{onClick:W,className:"mr-1 p-0.5 rounded-md transition-all duration-200 text-blue-500 hover:text-blue-400 hover:bg-gray-700",children:x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R?x.jsx(x.Fragment,{children:x.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"})}):x.jsx(x.Fragment,{children:x.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})})})})}),x.jsx(hr,{title:E?"Building index...":"Build index",children:x.jsx("button",{onClick:U,disabled:E,className:`mr-1 p-0.5 rounded-md transition-all duration-200
|
1318
|
+
`+s):i.stack=s}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=b1(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:s}=t;i!==void 0&&RF.assertOptions(i,{silentJSONParsing:Dg.transitional(Dg.boolean),forcedJSONParsing:Dg.transitional(Dg.boolean),clarifyTimeoutError:Dg.transitional(Dg.boolean)},!1),r!=null&&(Lt.isFunction(r)?t.paramsSerializer={serialize:r}:RF.assertOptions(r,{encode:Dg.function,serialize:Dg.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),RF.assertOptions(t,{baseUrl:Dg.spelling("baseURL"),withXsrfToken:Dg.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&Lt.merge(s.common,s[t.method]);s&&Lt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),t.headers=jd.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,h;if(!l){const g=[DMe.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),h=g.length,d=Promise.resolve(t);u<h;)d=d.then(g[u++],g[u++]);return d}h=a.length;let f=t;for(u=0;u<h;){const g=a[u++],m=a[u++];try{f=g(f)}catch(p){m.call(this,p);break}}try{d=DMe.call(this,f)}catch(g){return Promise.reject(g)}for(u=0,h=c.length;u<h;)d=d.then(c[u++],c[u++]);return d}getUri(e){e=b1(this.defaults,e);const t=QVe(e.baseURL,e.url,e.allowAbsoluteUrls);return jVe(t,e.params,e.paramsSerializer)}};Lt.forEach(["delete","get","head","options"],function(e){By.prototype[e]=function(t,i){return this.request(b1(i||{},{method:e,url:t,data:(i||{}).data}))}});Lt.forEach(["post","put","patch"],function(e){function t(i){return function(s,o,a){return this.request(b1(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}By.prototype[e]=t(),By.prototype[e+"Form"]=t(!0)});let $mn=class eKe{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const o=new Promise(a=>{i.subscribe(a),s=a}).then(r);return o.cancel=function(){i.unsubscribe(s)},o},e(function(s,o,a){i.reason||(i.reason=new uk(s,o,a),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new eKe(function(r){e=r}),cancel:e}}};function Hmn(n){return function(t){return n.apply(null,t)}}function Umn(n){return Lt.isObject(n)&&n.isAxiosError===!0}const Ece={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ece).forEach(([n,e])=>{Ece[e]=n});function tKe(n){const e=new By(n),t=DVe(By.prototype.request,e);return Lt.extend(t,By.prototype,e,{allOwnKeys:!0}),Lt.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return tKe(b1(n,r))},t}const xs=tKe(BM);xs.Axios=By;xs.CanceledError=uk;xs.CancelToken=$mn;xs.isCancel=KVe;xs.VERSION=JVe;xs.toFormData=LU;xs.AxiosError=or;xs.Cancel=xs.CanceledError;xs.all=function(e){return Promise.all(e)};xs.spread=Hmn;xs.isAxiosError=Umn;xs.mergeConfig=b1;xs.AxiosHeaders=jd;xs.formToJSON=n=>VVe(Lt.isHTMLForm(n)?new FormData(n):n);xs.getAdapter=ZVe.getAdapter;xs.HttpStatusCode=Ece;xs.default=xs;const{Axios:cLn,AxiosError:dLn,CanceledError:uLn,isCancel:hLn,CancelToken:fLn,VERSION:gLn,all:pLn,Cancel:mLn,isAxiosError:ALn,spread:vLn,toFormData:bLn,AxiosHeaders:_Ln,HttpStatusCode:yLn,formToJSON:CLn,getAdapter:wLn,mergeConfig:SLn}=xs,Wmn=()=>{const[n,e]=b.useState([]),[t,i]=b.useState(),[r,s]=b.useState(!1),[o,a]=b.useState(!1),[l,c]=b.useState(!1),d=async()=>{try{s(!0);const f=(await xs.get("/api/rags")).data.data||[];e(f),f.length>0&&i(f[0].name)}catch(h){console.error("Failed to fetch RAGs",h)}finally{s(!1)}};b.useEffect(()=>{d();const h=nr.subscribe(lr.RAG.UPDATED,d);return()=>h()},[]),b.useEffect(()=>{if(t){const h=n.find(f=>f.name===t);h&&xs.post("/api/conf",{rag_type:"simple",rag_url:h.base_url,rag_token:h.api_key})}},[t,n]);const u=()=>{d()};return x.jsxs("div",{className:"mb-2",children:[" ",x.jsxs("div",{className:"flex items-center justify-between mb-1",children:[x.jsx(hr,{title:"Select a Retrieval-Augmented Generation provider",children:x.jsxs("div",{className:"flex items-center cursor-pointer hover:text-blue-400",onClick:()=>{const h=!o;a(h),c(h),nr.publish(lr.RAG.ENABLED_CHANGED,h)},children:[x.jsx(xAt,{className:`mr-1 ${o?"text-blue-400":"text-gray-400"}`,style:{fontSize:"12px"}}),x.jsx("span",{className:`text-xxs ${o?"text-blue-400":"text-gray-400"}`,children:"RAG Provider"})]})}),o&&x.jsx(hr,{title:"Refresh RAG providers",children:x.jsx(on,{type:"text",size:"small",icon:x.jsx(Jb,{}),onClick:u,className:"text-gray-400 hover:text-blue-400 p-0 flex items-center justify-center h-5 w-5",disabled:r})})]}),o&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"relative",children:[x.jsx($i,{className:"w-full custom-rag-select",size:"small",loading:r,placeholder:"Select RAG",value:t,onChange:h=>i(h),options:n.map(h=>({label:h.name,value:h.name})),dropdownRender:h=>x.jsxs("div",{children:[h,n.length===0&&!r&&x.jsx(wo,{image:wo.PRESENTED_IMAGE_SIMPLE,description:"No RAG providers found",className:"my-2",imageStyle:{height:32}})]})}),x.jsx(on,{type:"text",icon:x.jsx(jAt,{}),className:"absolute right-0 top-0 text-gray-400 hover:text-blue-400 h-full px-2 flex items-center",onClick:()=>a(!0)})]})})]})},jmn=()=>{const[n,e]=b.useState(!1),t=()=>{const i=!n;e(i),nr.publish(lr.MCPS.ENABLED_CHANGED,i)};return x.jsx("div",{className:"w-full mb-2",children:x.jsx("div",{className:"flex items-center justify-between mb-1",children:x.jsx(hr,{title:n?"Disable Multi-Agent Collaboration Pattern":"Enable Multi-Agent Collaboration Pattern",children:x.jsxs("div",{className:"flex items-center cursor-pointer hover:text-green-400",onClick:t,children:[x.jsx(tue,{className:`mr-1 ${n?"text-green-400 animate-spin-slow":"text-gray-400"}`,style:{fontSize:"12px"}}),x.jsx("span",{className:`text-xxs ${n?"text-green-400":"text-gray-400"}`,children:"MCPs Provider"})]})})})})},zmn=()=>{const[n,e]=b.useState([]),[t,i]=b.useState([]),[r,s]=b.useState(!1),[o,a]=b.useState(!1),[l,c]=b.useState(!1),d=async()=>{s(!0);try{const m=await fetch("/api/models");if(!m.ok)throw new Error("Failed to fetch models");const p=await m.json();e(p)}catch(m){console.error("Error fetching models:",m),St.error(ne("processingError")||"Error fetching models")}finally{s(!1)}},u=async()=>{a(!0);try{const m=await fetch("/api/conf");if(!m.ok){console.warn("Failed to fetch initial configuration, proceeding with defaults."),i([]);return}const A=(await m.json()).conf;if(A&&A.code_model){const v=typeof A.code_model=="string"?A.code_model.split(",").map(_=>_.trim()).filter(_=>_):Array.isArray(A.code_model)?A.code_model:[];i(v)}else i([])}catch(m){console.error("Error fetching current configuration:",m),i([])}finally{a(!1)}},h=async(m,p)=>{c(!0);const A=p.length===0;try{let v;if(A?v=await fetch(`/api/conf/${m}`,{method:"DELETE"}):v=await fetch("/api/conf",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({[m]:p.join(",")})}),!v.ok){let _=`Failed to ${A?"delete":"update"} configuration key`;try{const y=await v.json();y&&y.detail&&(_=y.detail)}catch{}throw new Error(_)}nr.publish(lr.CONFIG.CODE_MODEL_UPDATED,p)}catch(v){console.error(`Error ${A?"deleting":"updating"} configuration key ${m}:`,v),St.error(v.message||`Failed to update ${m}`),u()}finally{c(!1)}};b.useEffect(()=>{d(),u()},[]),b.useEffect(()=>{const m=A=>{const v=Array.isArray(A)?A:[];i(_=>JSON.stringify(_)!==JSON.stringify(v)?(console.log("CodeModelSelector received update:",v),v):_)},p=nr.subscribe(lr.CONFIG.CODE_MODEL_UPDATED,m);return()=>{p()}},[]);const f=m=>{const p=Array.isArray(m)?m:[];i(p),h("code_model",p)},g=r||o;return x.jsxs("div",{className:"w-full mb-2",children:[x.jsx(hr,{title:ne("codeModelDescription")||"Select models for code generation",children:x.jsxs("div",{className:"flex items-center mb-1 cursor-default",children:[x.jsx(ste,{className:"mr-1 text-gray-400",style:{fontSize:"12px"}}),x.jsx("span",{className:"text-xxs text-gray-400",children:ne("codeModel")||"Code Models"})]})}),x.jsx($i,{mode:"multiple",allowClear:!0,loading:g||l,className:"custom-select w-full",popupClassName:"custom-select-dropdown",value:t,onChange:f,options:n.map(m=>({value:m.name,label:m.name})),showSearch:!0,filterOption:(m,p)=>(p==null?void 0:p.label.toLowerCase().includes(m.toLowerCase()))||!1,tagRender:m=>{const{label:p,closable:A,onClose:v}=m;return x.jsx(sA,{color:"blue",closable:A,onClose:v,style:{marginRight:3},className:"text-xs",children:p})},placeholder:ne("selectCodeModelsPlaceholder")||"Select code models...",style:{width:"100%"}})]})},Vmn=({isWriteMode:n})=>x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"flex space-x-2 w-full",children:[x.jsx("div",{className:"flex-1",children:x.jsx(zmn,{})}),!n&&x.jsx("div",{className:"flex-1",children:x.jsx(Wmn,{})}),x.jsx("div",{className:"flex-1",children:x.jsx(jmn,{})})]})});class Kmn extends WR.EventEmitter{constructor(){super(),this.eventSource=null,this.streamEvents=new Map,this.lastEventType=null,this.messageId=0,this.currentStreamMessageId=null,this.isStreamingActive=!1,this.eventFileId=null}async executeCommand(e){try{const t=await fetch("/api/coding-command",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:e})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const i=await t.json();return this.eventFileId=i.event_file_id,this.startEventStream(),{event_file_id:i.event_file_id}}catch(t){throw console.error("Error executing coding command:",t),t}}startEventStream(){if(this.closeEventStream(),!this.eventFileId){console.error("No event file ID available");return}this.eventSource=new EventSource(`/api/coding-command/events?event_file_id=${this.eventFileId}`),this.eventSource.onmessage=e=>{try{const t=JSON.parse(e.data);this.handleEvent(t)}catch(t){console.error("Error parsing event data:",t)}},this.eventSource.onerror=e=>{console.error("EventSource error:",e),this.closeEventStream()}}handleEvent(e){let t;const i=Date.now(),r=C3();switch(e.event_type==="STREAM"?this.lastEventType!=="STREAM"?(t=`coding-${r}-${i}-${this.messageId++}`,this.currentStreamMessageId=t):t=this.currentStreamMessageId||`coding-${r}-${i}-${this.messageId++}`:(t=`coding-${r}-${i}-${this.messageId++}`,this.lastEventType==="STREAM"&&this.currentStreamMessageId&&this.finalizeStreamMessage(this.currentStreamMessageId),this.currentStreamMessageId=null),e.event_type){case"STREAM":this.handleStreamEvent(e,t);break;case"RESULT":this.handleResultEvent(e,t);break;case"ASK_USER":this.handleAskUserEvent(e,t);break;case"USER_RESPONSE":this.handleUserResponseEvent(e,t);break;case"ERROR":this.handleErrorEvent(e,t);break;case"COMPLETION":this.handleCompletionEvent(e,t);break;default:console.warn("Unknown event type:",e.event_type)}this.lastEventType=e.event_type}handleStreamEvent(e,t){const i=e.content;this.isStreamingActive=!0;let r=this.streamEvents.get(t);if(r)r.content+=i.content,r.isThinking=i.is_thinking,r.isStreaming=!0,i.state==="complete"?(r.isStreaming=!1,this.streamEvents.delete(t),this.emit("message",r),this.isStreamingActive=!1):(this.streamEvents.set(t,r),this.emit("message",r));else{const s={id:t,type:e.event_type,content:i.content,contentType:i.content_type,isThinking:i.is_thinking,isStreaming:!0,eventId:e.event_id,language:i.language,metadata:e.metadata};i.state!=="complete"?this.streamEvents.set(t,s):(s.isStreaming=!1,this.isStreamingActive=!1),this.emit("message",s)}}handleResultEvent(e,t){const i=e.content;console.log("原始消息",e);let r,s=i.content_type,o={...i.metadata,...e.metadata};typeof i.content=="string"?r=i.content:this.isTokenStatContent(i.content)?(s="token_stat",r=JSON.stringify(i.content),o={...o,model_name:i.content.model_name,elapsed_time:i.content.elapsed_time,first_token_time:i.content.first_token_time,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost,speed:i.content.speed}):this.isSummaryContent(i.content)?(s="summary",r=i.content.summary):this.isIndexBuildStartContent(i.content)?(s="index_build_start",r=`Processing files: ${i.content.file_number}/${i.content.total_files}`,o={...o,file_number:i.content.file_number,total_files:i.content.total_files}):this.isIndexBuildEndContent(i.content)?(s="index_build_end",r=`Index build completed: Updated ${i.content.updated_files} files, Removed ${i.content.removed_files} files`,o={...o,updated_files:i.content.updated_files,removed_files:i.content.removed_files,input_tokens:i.content.input_tokens,output_tokens:i.content.output_tokens,input_cost:i.content.input_cost,output_cost:i.content.output_cost}):this.isCommandPrepareStatContent(i.content)?(s="command_prepare_stat",r=`Command: ${i.content.command}`,o={...o,command:i.content.command,parameters:i.content.parameters}):this.isCommandExecuteStatContent(i.content)?(s="command_execute_stat",r=i.content.content,o={...o,command:i.content.command}):this.isContextUsedContent(i.content)?(s="context_used",r=i.content.description,o={...o,files:i.content.files}):r=JSON.stringify(i.content);const a={id:t,type:e.event_type,content:r,contentType:s,metadata:o,eventId:e.event_id};console.log("处理过后的",a),this.emit("message",a)}isTokenStatContent(e){return e&&typeof e.model_name=="string"&&typeof e.elapsed_time=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isCommandPrepareStatContent(e){return e&&typeof e.command=="string"&&typeof e.parameters=="object"}isSummaryContent(e){return e&&typeof e.summary=="string"}isCommandExecuteStatContent(e){return e&&typeof e.command=="string"&&typeof e.content=="string"}isIndexBuildStartContent(e){return e&&typeof e.file_number=="number"&&typeof e.total_files=="number"}isIndexBuildEndContent(e){return e&&typeof e.updated_files=="number"&&typeof e.removed_files=="number"&&typeof e.input_tokens=="number"&&typeof e.output_tokens=="number"}isContextUsedContent(e){return e&&Array.isArray(e.files)&&typeof e.title=="string"&&typeof e.description=="string"}handleAskUserEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.prompt,options:i.options,responseRequired:i.required,eventId:e.event_id};this.emit("message",r)}handleUserResponseEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.response,isUser:!0,eventId:e.event_id,responseTo:e.response_to};this.emit("message",r)}handleErrorEvent(e,t){const i=e.content,r={id:t,type:e.event_type,content:i.error_message,metadata:i.details,eventId:e.event_id};this.emit("message",r),setTimeout(()=>{this.emit("taskComplete",!0),nr.publish(lr.CODING.TASK_COMPLETE,{success:!1,event_file_id:this.eventFileId})},300)}handleCompletionEvent(e,t){const i=e.content,r=i.result&&typeof i.result=="object"&&"summary"in i.result?i.result.summary:null,s={id:t,type:e.event_type,content:r||i.success_message,eventId:e.event_id,metadata:{success_code:i.success_code,completion_time:i.completion_time,details:i.details,result:i.result,isWrite:!0}};this.emit("message",s),setTimeout(()=>{this.emit("taskComplete",!1),nr.publish(lr.CODING.TASK_COMPLETE,{success:!0,event_file_id:this.eventFileId})},300)}finalizeStreamMessage(e){const t=this.streamEvents.get(e);t&&(t.isStreaming=!1,this.emit("message",t),this.streamEvents.delete(e))}closeEventStream(){this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.streamEvents.forEach((e,t)=>{this.finalizeStreamMessage(t)}),this.streamEvents.clear(),this.lastEventType=null,this.currentStreamMessageId=null,this.isStreamingActive=!1}async respondToEvent(e,t){if(!this.eventFileId)throw new Error("No event file ID available");try{const i=await fetch("/api/coding-command/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_id:e,event_file_id:this.eventFileId,response:t})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`)}catch(i){throw console.error("Error sending response:",i),i}}async saveTaskHistory(e,t,i="completed"){if(!this.eventFileId){console.warn("No event file ID available, cannot save task history");return}try{const r=t.filter(o=>!(o.type==="SYSTEM"||!o.content||o.contentType==="token_stat")),s=await fetch("/api/coding-command/save-history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,event_file_id:this.eventFileId,messages:r,status:i,timestamp:Date.now()})});if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`)}catch(r){console.error("Error saving task history:",r)}}async cancelTask(){if(!this.eventFileId){console.warn("No event file ID available, cannot cancel task");return}try{const e=await fetch("/api/coding-command/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_file_id:this.eventFileId})});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);this.closeEventStream()}catch(e){throw console.error("Error cancelling task:",e),e}}}const R2=new Kmn,Gmn=({fileGroups:n,selectedGroups:e,setSelectedGroups:t,fetchFileGroups:i,isMaximized:r,setIsMaximized:s,handleEditorDidMount:o,setShouldSendMessage:a,isWriteMode:l,setIsWriteMode:c,handleRevert:d,handleSendMessage:u,handleStopGeneration:h,sendLoading:f,setConfig:g,isFullScreen:m,showFileGroupSelect:p})=>{const[A,v]=b.useState(!0),[_,y]=b.useState({human_as_model:!1,extra_conf:{},available_keys:[]}),[C,S]=b.useState(!1),[E,L]=b.useState(!1),[k,T]=b.useState(""),[D,O]=b.useState(!1),[R,B]=b.useState(!1),F=b.useRef(null),H=b.useRef(null),W=b.useCallback(()=>{if(H.current){const Q=H.current;if(R){if(F.current){const Z=F.current;Q.style.position=Z.position,Q.style.top=Z.top,Q.style.right=Z.right,Q.style.bottom=Z.bottom,Q.style.left=Z.left,Q.style.zIndex=Z.zIndex,Q.style.width="100%",Q.style.height=Z.height,Q.style.background=Z.background,Q.style.overflow="",Q.style.display="",Q.style.flexDirection=""}B(!1)}else{const Z=window.getComputedStyle(Q);F.current={position:Z.position,top:Z.top,right:Z.right,bottom:Z.bottom,left:Z.left,zIndex:Z.zIndex,width:Z.width,height:Z.height,background:Z.background},Q.style.position="fixed",Q.style.top="0",Q.style.right="0",Q.style.bottom="0",Q.style.left="0",Q.style.zIndex="9999",Q.style.width="100vw",Q.style.height="100vh",Q.style.background="#1f2937",Q.style.overflow="hidden",Q.style.display="flex",Q.style.flexDirection="column",B(!0)}}},[R]);b.useEffect(()=>{const Q=nr.subscribe(lr.UI.TOGGLE_INPUT_FULLSCREEN,W);return()=>{Q()}},[W]);const j=b.useCallback(()=>{c(!l)},[c,l]);b.useEffect(()=>{const Q=Z=>{(Z.metaKey||Z.ctrlKey)&&Z.key==="."&&j()};return window.addEventListener("keydown",Q),()=>{window.removeEventListener("keydown",Q)}},[j]);const $=b.useCallback(async()=>{try{const Q=await xs.get("/api/conf");if(Q.data&&Q.data.conf){const Z=Q.data.conf,re={human_as_model:Z.human_as_model==="true",extra_conf:Z.extra_conf||{},available_keys:Z.available_keys||[]};y(re),g(re)}}catch(Q){console.error("Error fetching config:",Q),St.error("Failed to fetch configuration")}},[g]);b.useCallback(async(Q,Z)=>{try{y(re=>{const J={...re,[Q]:Z};return g(J),J}),await xs.post("/api/conf",{[Q]:Z})}catch(re){console.error(`Error updating config ${Q}:`,re),St.error(`Failed to update ${Q}`)}},[g]),b.useEffect(()=>{K(),$();const Q=()=>{S(!1)},Z=l?R2:_S;return Z.on("taskComplete",Q),()=>{Z.off("taskComplete",Q)}},[l,$]);const P=async()=>{if(!C){S(!0);try{await h()}catch(Q){console.error("Error cancelling task:",Q),S(!1),St.error("取消任务失败")}finally{S(!1)}}},U=async()=>{if(!E)try{L(!0),T("starting");const Q=await fetch("/api/index/build",{method:"POST"});if(!Q.ok)throw new Error(`Failed to build index: ${Q.statusText}`);const Z=await Q.json();T("building"),St.success("Index build started"),V()}catch(Q){console.error("Error building index:",Q),St.error("Failed to build index"),L(!1),T("error")}},K=async()=>{try{const Q=await fetch("/api/index/status");if(!Q.ok)throw new Error(`Failed to get index status: ${Q.statusText}`);const Z=await Q.json();Z.status==="completed"?(L(!1),T("completed")):Z.status==="error"?(L(!1),T("error")):Z.status==="running"?(L(!0),T("building")):Z.status==="unknown"&&(L(!1),T(""))}catch(Q){console.error("Error checking index status:",Q),L(!1)}},V=()=>{const Q=setInterval(async()=>{try{const Z=await fetch("/api/index/status");if(!Z.ok)throw new Error(`Failed to get index status: ${Z.statusText}`);const re=await Z.json();re.status==="completed"?(L(!1),T("completed"),St.success("Index build completed"),clearInterval(Q)):re.status==="error"?(L(!1),T("error"),St.error(`Index build failed: ${re.error}`),clearInterval(Q)):re.status==="running"&&(L(!0),T("building"))}catch(Z){console.error("Error polling index status:",Z),L(!1),T("error"),clearInterval(Q)}},2e3);return()=>clearInterval(Q)};return x.jsxs("div",{className:`flex flex-col w-full bg-gray-800 border-t border-gray-700 ${R?"fixed inset-0 z-[9999] p-4":""}`,ref:H,style:{width:"100%"},children:[x.jsxs("div",{className:`px-0.5 pt-0 ${R?"mb-2 flex-shrink-0":"w-full"}`,children:[x.jsx("div",{className:"space-y-0 w-full",children:x.jsxs("div",{className:"flex items-center justify-between w-full",children:[x.jsx("span",{className:"text-gray-300 text-xs font-semibold",children:ne("settingsAndGroups")}),x.jsxs("div",{className:"flex items-center",children:[x.jsx(hr,{title:"Open Documentation",children:x.jsx("button",{onClick:()=>window.open("https://uelng8wukz.feishu.cn/wiki/EFCEwiYZFit44ZkJgohcYjlMnVP?fromScene=spaceOverview","_blank"),className:"mr-1 p-0.5 rounded-md transition-all duration-200 text-blue-500 hover:text-blue-400 hover:bg-gray-700",children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("circle",{cx:"12",cy:"12",r:"10"}),x.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),x.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})})}),x.jsx(hr,{title:R?"退出全屏":"全屏模式",children:x.jsx("button",{onClick:W,className:"mr-1 p-0.5 rounded-md transition-all duration-200 text-blue-500 hover:text-blue-400 hover:bg-gray-700",children:x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R?x.jsx(x.Fragment,{children:x.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"})}):x.jsx(x.Fragment,{children:x.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})})})})}),x.jsx(hr,{title:E?"Building index...":"Build index",children:x.jsx("button",{onClick:U,disabled:E,className:`mr-1 p-0.5 rounded-md transition-all duration-200
|
1319
1319
|
${E?"text-gray-500 cursor-not-allowed":"text-blue-500 hover:text-blue-400 hover:bg-gray-700"}`,children:E?x.jsx(dg,{indicator:x.jsx(L_,{style:{fontSize:14},spin:!0})}):x.jsx(Ymt,{style:{fontSize:14}})})}),k==="completed"&&x.jsx(hr,{title:"Index built successfully",children:x.jsx("span",{className:"mr-1 text-green-500 text-xs",children:"✓"})}),k==="error"&&x.jsx(hr,{title:"Index build failed",children:x.jsx("span",{className:"mr-1 text-red-500 text-xs",children:"✗"})}),x.jsx(Au,{size:"small",checked:A,onChange:v,className:"ml-0.5"})]})]})}),x.jsx("div",{className:"h-[1px] bg-gray-700/50 my-1 w-full"}),x.jsx(Vmn,{isWriteMode:l}),x.jsxs("div",{className:"w-full mt-1",children:[" ",x.jsx(upn,{fileGroups:n,selectedGroups:e,setSelectedGroups:t,fetchFileGroups:i})]})]}),x.jsxs("div",{className:`px-1 py-0.5 flex flex-col ${r&&!R?"fixed inset-0 z-50 bg-gray-800":""}
|
1320
1320
|
${R?"flex-1 overflow-hidden":"w-full"}
|
1321
1321
|
scrollbar-thin scrollbar-thumb-gray-700 scrollbar-track-gray-800`,style:{width:"100%"},children:[x.jsx("div",{className:`flex-1 ${R?"flex-grow h-full":"min-h-[80px]"}`,style:R?{display:"flex",flexDirection:"column",height:"calc(100vh - 180px)"}:{},children:x.jsx(dpn,{isMaximized:r||R,onEditorDidMount:o,onShouldSendMessage:()=>a(!0),onToggleMaximize:()=>{R||s(Q=>!Q)}})}),x.jsx("div",{className:"flex flex-col mt-0 gap-0 flex-shrink-0",children:x.jsx("div",{className:"space-y-0 bg-gray-850 p-0.5 rounded-lg shadow-inner border border-gray-700/50",children:x.jsxs("div",{className:"flex items-center justify-between px-0",children:[x.jsxs("div",{className:"flex items-center space-x-0.5",children:[x.jsx("span",{className:"text-[9px] font-medium text-gray-400",children:"Mode:"}),x.jsx(hr,{title:`Switch between Chat and Write mode (${navigator.platform.indexOf("Mac")===0?"⌘":"Ctrl"} + .)`,children:x.jsx(Au,{size:"small",checked:l,onChange:c,checkedChildren:"Write",unCheckedChildren:"Chat",className:"bg-gray-700 hover:bg-gray-600"})}),x.jsxs("kbd",{className:"px-0.5 py-0 ml-1 text-[8px] font-semibold text-gray-400 bg-gray-800 border border-gray-600 rounded shadow-sm",children:[navigator.platform.indexOf("Mac")===0?"⌘":"Ctrl"," + Enter"]}),x.jsx("span",{className:"text-[8px] text-gray-500 inline-flex items-center",children:"to send"}),x.jsxs("div",{className:"text-gray-400 text-[8px]",children:["/",navigator.platform.indexOf("Mac")===0?"⌘":"Ctrl"," + L to maximize/minimize"]})]}),x.jsxs("div",{className:"flex items-center space-x-1 mr-1",children:[x.jsx("button",{className:`p-0.5 rounded-md transition-all duration-200
|
@@ -1,13 +1,13 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: auto_coder_web
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.72
|
4
4
|
Summary: auto-coder.web: A Python Project
|
5
5
|
Author: allwefantasy
|
6
6
|
Classifier: Programming Language :: Python :: 3.10
|
7
7
|
Classifier: Programming Language :: Python :: 3.11
|
8
8
|
Classifier: Programming Language :: Python :: 3.12
|
9
9
|
Description-Content-Type: text/markdown
|
10
|
-
Requires-Dist: auto-coder>=0.1.
|
10
|
+
Requires-Dist: auto-coder>=0.1.348
|
11
11
|
Requires-Dist: aiofiles
|
12
12
|
Requires-Dist: psutil
|
13
13
|
Requires-Dist: watchdog
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.1.71"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/auto_coder_runner_wrapper.py
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/chat_list_router.py
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/compiler_router.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/file_router.py
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/filecacher.py
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/common_router/model_router.py
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/expert_routers/__init__.py
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/expert_routers/history_router.py
RENAMED
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/file_cacher/filecacher.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/routers/settings_router.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/abap-BrgZPUOV.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/apex-DyP6w7ZV.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/azcli-BaLxmfj-.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/bat-CFOPXBzS.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/bicep-BfEKNvv3.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cameligo-BFG1Mk7z.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/clojure-DTECt2xU.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/codicon-DCmgc-ay.ttf
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/coffee-CDGzqUPQ.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cpp-CLLBncYj.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/csharp-dUCx_-0o.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/csp-5Rap-vPy.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/css-D3h14YRZ.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cssMode-CQYz0o1d.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/cypher-DrQuvNYM.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/dart-CFKIUWau.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/dockerfile-Zznr-cwX.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/ecl-Ce3n6wWz.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/elixir-deUWdS0T.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/flow9-i9-g7ZhI.js
RENAMED
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/fsharp-CzKuDChf.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/go-Cphgjts3.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/graphql-Cg7bfA9N.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/handlebars-VxUdciXQ.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/hcl-0cvrggvQ.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/html-DEgskwXL.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/htmlMode-58cXxJlI.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/ini-Drc7WvVn.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/java-B_fMsGYe.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/javascript-DbZlm-ig.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/jsonMode-C2HKgmE0.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/julia-Bqgm2twL.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/kotlin-BSkB5QuD.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/less-BsTHnhdd.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/lexon-YWi4-JPR.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/liquid-BFft-XkQ.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/lua-nf6ki56Z.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/m3-Cpb6xl2v.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/main-DBz8YYCp.css
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/markdown-DSZPf7rp.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/mdx-DZdDhrJW.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/mips-B_c3zf-v.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/msdax-rUNN04Wq.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/mysql-DDwshQtU.js
RENAMED
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pascal-CXOwvkN_.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pascaligo-Bc-ZgV77.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/perl-CwNk8-XU.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pgsql-tGk8EFnU.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/php-CpIb_Oan.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pla-B03wrqEc.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/postiats-BKlk5iyT.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/powerquery-Bhzvs7bI.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/powershell-Dd3NCNK9.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/protobuf-COyEY5Pt.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/pug-BaJupSGV.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/python-DOHUGzLU.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/qsharp-DXyYeYxl.js
RENAMED
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/razor-Dh5mSHi2.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/redis-CVwtpugi.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/redshift-25W9uPmb.js
RENAMED
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/ruby-Cp1zYvxS.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/rust-D5C2fndG.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sb-CDntyWJ8.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/scala-BoFRg7Ot.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/scheme-Bio4gycK.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/scss-4Ik7cdeQ.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/shell-CX-rkNHf.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/solidity-Tw7wswEv.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sophia-C5WLch3f.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sparql-DHaeiCBh.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/sql-CCSDG5nI.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/st-pnP8ivHi.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/swift-DwJ7jVG9.js
RENAMED
File without changes
|
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/tcl-DnHyzjbg.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/tsMode-tyI6CeIR.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/twig-CPajHgWi.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/typescript-DZzM_VgT.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/typespec-D-MeaMDU.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/vb-DgyLZaXg.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/wgsl-BIv9DU6q.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/xml-Dl6413Na.js
RENAMED
File without changes
|
{auto_coder_web-0.1.71 → auto_coder_web-0.1.72}/src/auto_coder_web/web/assets/yaml-DML583wh.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|